* release of groffer 0.9.14
[s-roff.git] / ChangeLog
blobc182d48593d85ee30e1f6358bb508db6476df529
1 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
3         Miscellaneous script portability enhancements.
5         * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
6         generated conftest.sh script, conforming to portability
7         recommendation in autoconf docs.
8         * configure: Likewise, for code generated by GROFF_CSH_HACK.
9         * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
10         to portability recommendation in autoconf docs.
11         * contrib/gdiffmk/gdiffmk.sh: Likewise.
12         * contrib/gdiffmk/tests/runtests.in: Likewise.
13         * contrib/grap2graph/grap2graph.sh: Likewise.
14         * contrib/groffer/groffer.sh: Likewise.
15         * contrib/mm/mmroff.pl: Likewise.
16         * contrib/mom/momdoc/appendices.html: Likewise.
17         * contrib/pic2graph/pic2graph.sh: Likewise.
18         * font/devps/generate/afmname: Likewise.
19         * src/devices/xditview/ad2c: Likewise.
20         * src/preproc/eqn/neqn.sh: Likewise.
21         * src/roff/grog/grog.pl: Likewise.
22         * src/roff/grog/grog.sh: Likewise.
23         * src/roff/nroff/nroff.sh: Likewise.
24         * PROBLEMS: Likewise, in embedded script examples.
26 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
28         Improve portability of `pdfroff' shell script.
30         * arch/misc/shdeps.sh: Add space in shebang, conforming to
31         portability guidelines in `autoconf' docs.
32         (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
33         initialization code.  Used by contrib/pdfmark/pdfroff.sh's
34         `searchpath' function.
36 2005-05-14  Werner LEMBERG  <wl@gnu.org>
38         * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
39         contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
40         needed for newer ImageMagick versions.
42 2005-05-07  Werner LEMBERG  <wl@gnu.org>
44         * src/preproc/refer/refer.man: Many small typographic fixes.
46 2005-05-06  Jeff Conrad  <jeff_conrad@msn.com>
48         * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
49         Use `char *' cast for a_delete.
51 2005-05-03  Werner LEMBERG  <wl@gnu.org>
53         * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
54         src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
56 2005-05-03  Jeff Conrad  <jeff_conrad@msn.com>
58         * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
59         `a_delete' for `const char *'.
61 2005-05-03  Werner LEMBERG  <wl@gnu.org>
63         * src/devices/grohtml/post-html.cpp,
64         src/devices/grohtml/html-table.cpp,
65         src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
66         Replace malloc/free with new/delete/a_delete.
68         * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
69         are prohibited with ANSI C++.
70         (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
71         function has a variable number of arguments).
73         * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
74         Simplify function and update all callers.
76 2005-05-02  Werner LEMBERG  <wl@gnu.org>
78         Undo getopt changes from 2005-04-30.  We don't want a dependency
79         on gettext.
81         * src/include/getopt_int.h: Removed.
83         * src/include/getopt.h, src/include/groff-getopt.h,
84         src/include/Makefile.sub, src/libs/libgroff/getopt.c,
85         src/libs/libgroff/getopt1.c: Revert to previous version.
88         * src/include/nonposix.h (access) [_MSC_VER]: New macro.
90         * src/include/posix.h (F_OK): Define conditionally.
92         * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
93         different variable name in second `for' loop to avoid MSVC compiler
94         problem.
96 2005-04-30  Werner LEMBERG  <wl@gnu.org>
98         AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
100         * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
101         * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
102         * configure, src/include/config.hin: Regenerated.
104         * PROBLEMS: Updated.
107         Update getopt files.
109         * src/include/getopt.h, src/libs/libgroff/getopt.c,
110         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
112         * src/include/getopt_int.h: New file (from GNU libc CVS).
114         * src/include/groff-getopt.h: Updated.
116         * src/include/Makefile.sub (HDRS): Add getopt_int.h.
119         * font/devutf8/NOTES: Updated.
121 2005-04-28  Werner LEMBERG  <wl@gnu.org>
123         Bug fix for Win32 relocatable code.  Based on a patch from Keith
124         Marshall.
126         * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
127         also.
129         * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
130         (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
132 2005-04-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
134         Correct `gnu.eps' handling for build from distribution tarball, with
135         separate source and build directories.
137         * doc/Makefile.sub: (examples.stamp): New target; forces copy of
138         grnexmpl.g, groff.css and gnu.eps from source to build directory;
139         generate gnu.eps from gnu.xpm if required; touch examples.stamp.
140         (prepare_examples): Make it depend on examples.stamp.
141         (CLEANADD): Add examples.stamp.
143 2005-04-27  Werner LEMBERG  <wl@gnu.org>
145         Implement the rule
147           position: '(' position ')'
149         in pic.
151         * src/preproc/pic/pic.y (position, position_not_place): Handle
152         additional parentheses.
154         * doc/pic.ms: Updated.
156 2005-04-23  Larry Jones  <lawrence.jones@ugs.com>
158         * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
160 2005-04-18  Werner LEMBERG  <wl@gnu.org>
162         * src/roff/groff/pipeline.c: Don't include ctype.h.
164 2005-04-13  Werner LEMBERG  <wl@gnu.org>
166         * src/roff/nroff/nroff.man: Document option `-M'.
168 2005-04-13  Bruce Lilly  <blilly@erols.com>
170         * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
172 2005-04-01  Kees Zeelenberg  <kzlg@users.sourceforge.net>
173             Werner LEMBERG  <wl@gnu.org>
175         Add binary relocation support for Windows platforms.
177         * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
179         * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
181         * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
182         (search_path::search_path, search_path::open_file_cautious): Use
183         `relocate'.
185         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
186         src/include/Makefile.sub (HDRS): Updated.
188 2005-04-01  Werner LEMBERG  <wl@gnu.org>
190         * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
191         strsave/a_delete.
193         * src/libs/libgroff/font.cpp: Replace strdup with strsave.
195         * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
196         lib.h already does it.
198         * src/libs/libgroff/maxpathname.cpp: New file, defining
199         path_name_max.
201         * src/include/lib.h: Add prototype for path_name_max.
203         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
205         * src/include/nonposix.h (PATH_EXT): New macro.
207 2005-03-28  Werner LEMBERG  <wl@gnu.org>
209         Add support for double- and zero-width characters in grotty.
211         * src/devices/grotty/tty.cpp (glyph): Add width. 
212         (tty_printer::make_underline, tty_printer::make_bold,
213         tty_printer::add_character): Add parameter to pass character width.
214         Update all callers.
215         (tty_printer::end_page): Increase hpos by actual character width.
217         * font/devutf8/R.proto: Specify zero width for non-spacing
218         characters.
220         * tmac/unicode.tmac: Remove definitions for non-spacing entities.
222         * Makefile.comm (extraclean): Remove more junk files.
224 2005-03-25  Werner LEMBERG  <wl@gnu.org>
226         * configure.ac: Undo change from 2005-03-24.
227         * configure: Regenerated.
229 2005-03-24  Werner LEMBERG  <wl@gnu.org>
231         * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
232         (dist): Search Makefile while descending into $(EXTRADIRS).
234         * doc/Makefile.in (.PHONY): Add.
235         (clean): Don't remove *.png and *.eps.
236         Don't handle *.gif.
237         (realclean): Remove *.png and *.eps.
238         (extraclean): Depend on distclean.
240         * configure.ac: Add copyright.
241         Handle contrib/pdfmark/Makefile.
243         * configure: Regenerated.
245 2005-03-18  Larry Kollar  <kollar@alltel.net>
247         Add numbered and definition lists to www.tmac.
249         * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
250         www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
251         auxiliary string registers.
252         (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
253         www-ol-ctr3, www-dl-shift): New auxiliary number registers.
254         (www-level): Removed.
255         (www-level1, www-level2, www-level3): Initialize to empty.
256         (www-level0, www-level4, www-level5, www-level6, www-level7,
257         www-level8, www-level9): New string registers.
258         (www-push-li, www-pop-li): New macros.
259         (www-push-level, www-pop-level): Renamed to...
260         (www-push-ul-level, www-pop-ul-level): This.
261         Updated.
262         (www-push-ol-level, www-pop-ol-level): New macros.
263         (ULS, ULE): Updated.
264         (OLS, OLE, DLS, DLE): New user macros.
265         (LI): Removed.  It is aliased to one of...
266         (www-li-ul, www-li-ol, www-li-dl): New macros.
268         * tmac/groff_www.man: Document new macros.
270         * NEWS: Updated.
272 2005-03-18  Werner LEMBERG  <wl@gnu.org>
274         * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
275         doc-operating-system-NetBSD-2.0.2): New strings.
277         * tmac/groff_mdoc.man: Updated.
279 2005-03-17  Werner LEMBERG  <wl@gnu.org>
281         * doc/Makefile.sub (CLEANADD): Add `groff.html'.
283 2005-03-17  Werner LEMBERG  <wl@gnu.org>
285         * src/libs/libgroff/hypot.c: Renamed to...
286         * src/libs/libgroff/hypot.cpp: This.  Updated to C++.
288         * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
290         * src/include/lib.h: Updated.
292 2005-03-16  Werner LEMBERG  <wl@gnu.org>
294         Add workaround for broken hypot() on Interix.
296         * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
298         * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
299         (CSRCS): Add `hypot.c'.
301         * src/include/lib.h: Declare `groff_hypot'.
303         * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
304         Use `groff_hypot'.
306         * src/preproc/pic/pic.h: Don't declare `hypot'.
308         * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
310 2005-03-15  Gaius Mulley  <gaius@glam.ac.uk>
312         * src/devices/grohtml/post-html.cpp
313         (html_printer::lookahead_for_tables): End .ce properly to avoid a
314         segfault.
316 2005-03-15  Werner LEMBERG  <wl@gnu.org>
318         makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
320         * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
322         * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
324 2005-03-14  Werner LEMBERG  <wl@gnu.org>
326         Add Cyrillic support to devutf8 and devhtml.
328         * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
330         * tmac/unicode.tmac: New file.
332         * tmac/tty.tmac: Include unicode.tmac if device is utf8.
334         * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
336         * NEWS: Updated.
338 2005-03-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
340         * src/libs/libdriver/printer.cpp (check_for_output_error): New
341         function.  It has been introduced to catch peculiar error contexts
342         on MS-Windows platforms.
344 2005-02-28  Werner LEMBERG  <wl@gnu.org>
346         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
347         null pointer.
349         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
351         * configure: Regenerated.
353         * NEWS: Updated.
355 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
357         Integrate `pdfmark' into normal groff build system;
358         install macro `pdfmark' packages, build and install `pdfroff',
359         and PDF format documentation.
361         * Makefile.comm: Add PDFDOCDIR.
363         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
364         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
365         (unstall_dirs): Add pdfdocdir.
367         * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
368         `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
369         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
370         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
371         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
372         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
373         set ALT_AWK_PROGS.
374         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
375         use of GROFF_AWK_PREFS.
376         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
377         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
379         * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
380         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
381         also by modified GROFF_HTML_PROGRAMS).
383 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
385         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
386         paragraph spacing.
387         (html_text::done_para): Unset `start_space'.
388         (html_text::remove_para_align): Call `retrieve_para_space' for the
389         spacing.
391         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
392         `seen_space'.
393         (html_printer::do_check_center): Emit vertical space if necessary.
395         * src/roff/troff/env.cpp (environment_switch): Preserve
396         `seen_space', `seen_eol', and `suppress_next_eol' while switching
397         environments.
399         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
400         `is_special'.
402 2005-02-20  Werner LEMBERG  <wl@gnu.org>
404         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
405         eqn.
407 2005-02-17  Werner LEMBERG  <wl@gnu.org>
409         * doc/pic.ms, man/groff.man: Fix typos.
411         * doc/groff.texinfo: Fix typos.
412         (\LEmacro): Get proper mathematical spacing.
414 2005-02-16  Werner LEMBERG  <wl@gnu.org>
416         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
417         * configure: Regenerated with autoconf 2.59b.
419 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
421         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
422         html_printer::start_font): Fix handling of preformatted text.
424 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
426         These patches modify the indentation implementation to use `<p
427         style=margin-left: n%>'.  Many thanks to Peter and Larry for
428         suggesting this solution.  Grohtml only uses tables for `.IP' and
429         related tags when the first operand has a short width.
431         Similarly, they modify all vertical space code.  By default, grohtml
432         sets up a style sheet which uses no vertical space between `table',
433         `pre', and `p' tags.  It forces spaces when it needs them using
434         `style="margin-top: 1em"'.
436         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
437         (html_table::emit_table_header, html_table::emit_new_row):
438         Rewritten.
439         (html_table::set_space): New function.
440         (html_indent::html_indent): Don't set `is_used'.
441         (html_indent::begin): Rewritten.
442         (html_indent::end): Remove code in function.
444         * src/devices/grohtml/html-table.h: Updated.
445         (html_table): Make `out' public.
447         * src/devices/grohtml/html-text.cpp (html_text::html_text):
448         Initialize `start_space' with FALSE.
449         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
450         (html_text::issue_tag): Add argument to handle space style.
451         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
452         (html_text::flush_text): Don't set `start_space'.
453         (html_text::push_para): Don't set `p->really_issued'.
454         (html_text::do_emittext): Updated.
455         (html_text::do_para): Add paremeter to handle space.
456         Update all callers.
457         (html_text::retrieve_para_space): New function.
459         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
460         (tag_definition): Remove `really_issued'.
461         (html_text): Updated.
463         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
464         `current_column' and `row_space'.
465         Update constructor.
466         (html_printer::emit_raw, html_printer::write_header,
467         html_printer::do_indent, html_printer::do_check_center,
468         html_printer::do_tab_ts): Handle vertical space.
469         (html_printer:do_tab_te, html_printer::do_end_para): Call
470         `remove_para_space'.
471         (html_printer::do_col): Rewritten.
472         (html_printer::flush_globs): Remove debugging code.
473         (html_printer::is_line_start): New function.
474         (html_printer::start_font): Use `is_line_start'.
475         (html_printer::writeHeadMetaStyle): New function.
476         (html_printer::do_file_components, html_printer::~html_printer):
477         Call `writeHeadMetaStyle'.
479         * tmac/www.tmac (www-handle-percent): New macro.
480         (MPIMG): Handle percent values for width and height parameters.
481         (DC): Updated.
483         * tmac/groff_www.man: Updated.
485 2005-02-14  Werner LEMBERG  <wl@gnu.org>
487         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
488         $psname and $italic_angle.
489         Immediately restart file input loops if `split' returns an empty
490         array.
492 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
493             Werner LEMBERG  <wl@gnu.org>
495         Update afmtodit to better support Unicode (Michail).
496         Update afmtodit to use Perl 5 syntax (Werner).
498         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
499         `Getopts::Std'.
500         Decorate variables with `my' where necessary.
501         Use `defined' where necessary to avoid warnings.
502         Don't use `do' for subroutine calls.
503         Other minor syntax updates.
504         Check for both `uXXXX[X[X]]' and `uniXXXX'.
505         Handle glyph variants properly.
506         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
507         strings.
509         * src/utils/afmtodit/afmtodit.man: Updated.
511 2005-02-13  Werner LEMBERG  <wl@gnu.org>
513         Make groff.texinfo work with texinfo 4.8.
515         * doc/groff.texinfo (@Var): Use @r and @slanted.
516         (@defdummy, @Def*): Use @c to avoid empty lines.
517         (\angles): Replaced with...
518         (\Langlemacro, \Ranglemacro): New TeX macros.
519         (@Langlemacro, @Ranglemacro): New variables defined with @set.
520         (@angles): Use @Langlemacro and @Ranglemacro.
521         (\LE): Replaced with...
522         (\LEmacro): New TeX macro.
523         (@LEmacro): New variable defined with @set.
524         (@LE): Use @LEmacro.
525         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
526         variables defined with @set.
527         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
528         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
529         Update all callers.
531         Other minor updates.
533         * doc/texinfo.tex: Update to texinfo version 4.8.
535         * README.CVS: Updated.
537 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
539         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
540         and `FAM' registers.
542 2005-02-05  Werner LEMBERG  <wl@gnu.org>
544         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
545         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
546         Update BSD license.
548 2005-02-01  Werner LEMBERG  <wl@gnu.org>
550         * src/roff/groff/groff.man: Add information about paper size.
552 2005-01-25  Werner LEMBERG  <wl@gnu.org>
554         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
555         NetBSD bin/29114.
557 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
559         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
560         cases.
561         (Re): Emit a warning if called without `.Rs'.
562         (doc-finish-reference): Use parameter for decreasing
563         `doc-reference-count'.
564         (doc-print-reference): Pass specific count parameters to
565         `doc-finish-reference'.
567 2005-01-21  Werner LEMBERG  <wl@gnu.org>
569         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
570         Reset pointers to zero after deallocation.  This fixes a crash
571         if a driver is called with multiple input files.  Reported by
572         Ken Chilton <ken@chiltonfamily.org>.
574         * src/devices/grops/grops.man: Add more info on DSC.
576 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
578         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
579         Remove dead code.
581 2005-01-17  Werner LEMBERG  <wl@gnu.org>
583         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
584         against division by zero.
586 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
588         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
590 2004-12-19  Werner LEMBERG  <wl@gnu.org>
592         * install-sh: New version; taken from texinfo CVS.
594 2004-12-17  Werner LEMBERG  <wl@gnu.org>
596         * tmac/devtag.tmac: Protect against loading twice.
597         Protect agains compatibility mode.
598         * tmac/www.tmac: Protect against loading twice.
599         Load `devtag.tmac' before switching off compatibility mode.
600         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
602 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
604         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
605         * configure: Updated.
607 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
609         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
611 2004-12-15  Werner LEMBERG  <wl@gnu.org>
613         Make `test-groff' work again -- previously, wrong paths have been
614         used.  Additionally, it can now be called from anywhere.
616         * test-groff.in: Don't test for groff binary.  This is no longer
617         necessary since the proper paths are determined by `configure'.
618         (EXEEXT): Removed.  No longer used.
619         (srcdir, builddir): Use values provided by the configure script.
620         (XENVIRONMENT): Updated.
622         * INSTALL: Updated.
624 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
626         Make .tag and .taga work for all devices (but only grohtml actually
627         handles them).
629         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
630         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
631         html_printer::handle_assertion): Don't use hard-coded string
632         lengths.
633         (html_printer::lookahead_for_table): Reset `tbl' properly if
634         necessary.
635         (html_printer::devtag): New function, handling `devtag'.
636         (html_printer::special): Don't handle `html-tag'.
638         * src/include/printer.h, src/libs/libdriver/printer.cpp
639         (printer::devtag): New virtual function.
641         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
642         `devtag'.
644         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
645         src/roff/troff/node.cpp: s/html-tag/devtag/.
647         * src/roff/troff/input.cpp (tag, taga): Always call
648         curenv->add_node.
650         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
651         macros instead of HTML-TAG*.
653         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
655         * tmac/www.tmac: Load devtag.tmac.
656         Replace HTML-TAG* macros with DEVTAG* macros.
657         (HTML, HTML-NS): Changed definitions.
658         (URL): Use HTML-NS.
659         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
661         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
663 2004-12-10  Werner LEMBERG  <wl@gnu.org>
665         Import Mike's `gdiffmk' package.
667         * contrib/gdiffmk/*: New files.
668         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
669         * NEWS: Updated.
671 2004-12-08  Werner LEMBERG  <wl@gnu.org>
673         Import Keith's `pdfmark' package.  Integration is very preliminary.
675         * contrib/pdfmark/*: New files.
676         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
677         * NEWS: Updated.
679 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
681         Fix a bug with title handling in HTML.
683         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
684         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
685         length.
686         (html_printer::handle_tag_within_title): New function.
687         (html_printer::do_title): Use it.
689         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
690         (cov*tl-au-print): Emit `.eo.tl' tag.
692 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
694         * man/groff_char.man: Minor imrovements.
696 2004-12-04  Werner LEMBERG  <wl@gnu.org>
698         * src/preproc/eqn/eqn.man: Revised.
700 2004-11-25  Werner LEMBERG  <wl@gnu.org>
702         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
703         groff source files.
704         Include config.h.
705         Include limits.h.
706         Remove X_NOT_STDC_ENV conditional.
707         (Version_string, program_name): New global variables.
708         (groff_flag): Removed.
709         (MapFont): Updated.
710         (usage): Take a stream as argument.
711         Use `program_name'.
712         Update all callers.
713         (main): Add `long_options' array for `--help' and `--version'.
714         Make `-g' a dummy option.
715         Handle `-v' and unknown options.
716         Remove unused `position' variable.
718         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
719         (XLIBS): Add LIBGROFF.
721         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
722         New files.
724         * src/devices/xditview/Dvi.c (default_font_map): Split into three
725         parts to avoid compiler warning.
726         (resources): Don't initialize with `default_font_map'.
727         (ClassInitialize): Initialize first element of `resources'.
729         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
730         Removed.
732         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
733         src/utils/pfbtops/pfbtops.man: Revised, updated.
735         * configure.ac: Generate src/utils/xtotroff/Makefile.
736         * configure: Regenerated.
738 2004-11-24  Werner LEMBERG  <wl@gnu.org>
740         First fixes to get produce HTML.
742         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
743         attribute.
745         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
746         (HR, LI): Use `HTML</p>', not `HTML'.
748         * doc/webpage.ms: Minor updates.
750 2004-11-23  Larry Kollar  <kollar@alltel.net>
752         Add option -S grohtml to determine the file split level.
754         * src/devices/grohtml/post-html.cpp (split_level): New global
755         variable.
756         (html_header::determine_header_level): Use split_level.
757         (main): Handle `-S' command line option.
758         Sort options.
760         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
762         * src/devices/grohtml/grohtml.man: Document it.
763         Sort options.
765         * NEWS: Document it.
767 2004-11-23  Y T  <doarhop@hotmail.com>
769         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
770         the volume and number refer entries.
772 2004-11-22  Werner LEMBERG  <wl@gnu.org>
774         * src/devices/grohtml/html-table.cpp
775         (html_table::emit_table_header): Don't emit `cols' attribute which
776         doesn't exist in HTML 4.0 and is thus invalid.
778         * NEWS: More minor fixes and updates.
780 2004-11-18  Werner LEMBERG  <wl@gnu.org>
782         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
783         (HTML</p>): Minor clean-up.
785         * tmac/groff_www.man: Updated.
787         * src/devices/grohtml/grohtml.man: Revised and updated.
789         * NEWS: Updated.
791 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
793         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
794         Fix space insertion.
795         (html_printer::do_links): Fix rules generation around automatic
796         heading links.
798         * tmac/www.tmac (LK): Use HTML-TAG-NS.
799         (HR): Simplify.
800         No longer emit empty line for non-HTML devices.
802 2004-11-17  Werner LEMBERG  <wl@gnu.org>
804         * doc/Makefile.in (prepare_examples, webpage.html): Handle
805         `groff.css'.
807         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
808         prepare_examples, webpage.html): Handle `groff.css'.
810 2004-11-15  Werner LEMBERG  <wl@gnu.org>
812         * NEWS, README, doc/webpage.ms: Updated.
814         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
816 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
818         * src/include/printer.h (printer): Remove virtual function
819         `round_width'.
820         Update all source files.
822         * src/devices/grohtml/post-html.cpp (html_printer): New member
823         function `round_width'.
825 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
827         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
828         column key letter suffix.
830 2004-10-14  Werner LEMBERG  <wl@gnu.org>
832         * Makefile.in (check): Depend on `site.exp' and `docheck'.
833         (docheck): Run dejagnu's `runtest' if it exists.
834         (site.exp): Create dejagnu configuration file.
836         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
838 2004-10-13  Werner LEMBERG  <wl@gnu.org>
840         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
841         src/devices/grohtml/post-html.cpp (make_val,
842         html_printer::handle_state_assertion): Fix compiler warnings.
844         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
845         (diversion::diversion): Fix order of initializers.
847         * src/roff/troff/div.h: Don't include `mtsm.h'.
849         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
850         (environment::environment): Fix order of initializers.
851         (environment::make_tag, environment::construct_format_state): Fix
852         compiler warnings.
854         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
855         (input_iterator::input_iterator, macro::macro): Fix order of
856         initializers.
858         * src/roff/troff/mtsm.cpp: Include only necessary header files.
859         (state_set::add, state_set::val): Fix compiler warnings.
861         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
862         (bool_value_state, int_value_state, units_value_state,
863         string_value_state): Remove comma after last element which causes
864         an error with g++ 3.3.3.
866         * src/roff/troff/node.cpp: Include `stringclass.h'.
867         (hline_node::hline_node, vline_node::vline_node,
868         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
869         warnings.
870         (zero_width_node::zero_width_node): Fix order of initializers.
872         * src/roff/troff/node.h: Don't include `mtsm.h'.
873         (hmotion_node): Fix compiler warnings.
875         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
877 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
879         * doc/groff.css: New file.
881         * doc/webpage.ms: Use `groff.css'.
882         Other small fixes.
884         * tmac/an-old.tmac (need_eo_h): New number register.
885         (TH): Emit `.eo.tl' tag after title.
886         (SH): Set `need_eo_h'.
887         (an-trap): Handle `need_eo_h'.
888         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
890         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
891         (TL): Always start diversion.
892         Updated.
893         (@AI): Always call `par@reset'.
894         (@AB): Update code for -Thtml.
895         (cov*tl-au-print): Handle -Thtml.
896         (par@reset): Handle `need_eo_tl', `need_eo_h'.
897         (@IP): Simplified.
898         (@IT-html): Removed.
899         (@SH): Set `need_eo_h' for -Thtml.
900         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
901         Set `need_eo_tl'.
902         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
903         Set `need_eo_h' for -Thtml.
904         (@EQ, @EN): Don't handle -Thtml specially.
905         (par@load-init): Don't handle -Thtml specially.
907         * tmac/www.tmac (www:paraspace): New macro.
908         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
909         (HTML</p>, HTML-TAG-NEXT): New macros.
910         (HnE): Emit tag `.eo.h' instead of break.
911         (HR): s/HTML-NS/HTML/.
912         (www-end-nowhere): End diversion only if `www-html' not set.
913         Emit `.eo.tl' tag.
914         (ULS, ULE): s|HTML|HTML</p>|.
915         (LI): Call `www:paraspace'.
916         (HEAD): New macro.
918 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
920         * src/roff/troff/request.h (macro): Make `p' public.
921         New variable `is_a_diversion'.
922         New member function `is_diversion'.
925         * src/devices/grohtml/html.h (simple_output): New member function
926         `force_nl'.
928         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
929         computation of `total'.
930         (tabs::check_init): New function.
931         (html_table::emit_table_header): Emit style data.
932         (html_table::insert_column): Improved.
934         * src/devices/grohtml/html-table.h: Updated.
936         * src/devices/grohtml/html-text.cpp (html_text::html_text):
937         Initialize `start_space' with TRUE.
938         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
939         cases.
940         (html_text::flush_text): Set `start_space' flag.
941         (html_text::uses_indent, html_text::remove_para_space,
942         html_text::get_alignment): New functions.
943         (html_text::push_para): Updated.
944         (html_text::do_para): Check for empty argument.
945         Don't set `space_emitted'.
946         (html_text::do_space, html_text::emit_space): Updated.
948         * src/devices/grohtml/html-text.h (tag_definition): New variable
949         `really_issued'.
950         (html_text): New member function `uses_indent', `remove_para_space',
951         `get_alignment'.
953         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
954         function.
955         (simple_output:nl): Always emit `\n'.
957         * src/devices/grohtml/post-html.cpp: Include `string.h'.
958         (BASE_POINT_SIZE): Removed.
959         (base_point_size, head_info): New global variables.
960         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
961         `is_eo_h'.
962         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
963         tags, respectively.
964         (page::add_and_encode): Pass additional parameter for tag flag.
965         (assert_pos): New structure.
966         (assert_state): New class.
967         (html_printer): Remove `indentation', `prev_indent'.
968         Add variables `troff_indent', `device_indent', `temp_indent'.
969         Add variables `seen_indent', `next_indent', `seen_pageoffset',
970         `next_pageoffset', `seen_linelenght', `next_linelength',
971         `seen_center', `next_center', `seen_space', `seen_break', `as'.
972         Add member functions `do_check_center', `do_space', `do_head',
973         `get_troff_indent', `restore_troff_indent', `handle_assertion',
974         `handle_state_assertion', `do_end_para', `set_char_and_width'.
975         Change argument to `do_fill' to `char *'.
976         Update constructor.
977         (html_printer::emit_raw): Call `shutdown_table'.
978         Use new functions.
979         (html_printer::do_center): Simplified.
980         (html_printer::do_title): Improved.
981         (html_printer::write_header): Emit one more newline.
982         Use new functions.
983         (html_printer::do_heading, html_printer::do_indent,
984         html_printer::do_eol, html_printer::do_tab_ts,
985         html_printer::do_tab, html_printer::do_tab0,
986         html_printer::calc_po_in, html_printer::next_horiz_pos,
987         html_printer::remove_courier_tabs,
988         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
989         Updated.
990         (html_printer::do_linelength, html_printer::do_pageoffset,
991         html_printer::do_indentation, html_printer::do_tempindent,
992         html_printer::do_tab_te): Simplified.
993         (html_printer::do_pointsize): Check whether point size is really
994         associated a `.tl' tag.
995         (html_printer::do_break): Rewritten.
996         (html_printer::troff_tag): Improved.
997         (html_printer::flush_globs): Updated.
998         (html_printer::lookahead_for_tables): Handle `is_br'.
999         Use new functions.
1000         (html_printer::set_char): Check `sbuf_style.f'.
1001         (html_printer::write_navigation): Use string comparison.
1002         (html_printer::~html_printer): Emit `head_info'.
1003         (html_printer::special): Rewritten.
1004         (get_str, make_val): New functions.
1005         (main): New option `s' to set the base point size.
1007         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
1009 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
1011         * src/roff/troff/node.cpp: New extern `debug_state'.
1012         Include `stringclass.h' and `mtsm.h'.
1013         Implement new classes and class members from `node.h'.
1014         (real_output_file): Make `fp' public.
1015         (troff_output_file): New variables `cur_div_level' and `tag_list'.
1016         Update constructors.
1017         (troff_output_file::really_print_line): Check whether we should push
1018         the current troff state and use the state at the start of the
1019         invocation of this diversion.
1020         (troff_output_file::add_to_tag_list): New member function.
1021         (node::add_char): Handle `glyph_comp_np'.
1023         * src/roff/troff/node.h: Include `mtsm.h'.
1024         (node): New variables `state', `push_state', `div_nest_level',
1025         `is_special'.  Update constructors, all descendants.
1026         Pass additional argument to `add_char' member function.
1027         New virtual member functions `is_tag', `debug_node',
1028         `debug_node_list'.  Update all descendants.
1029         (tag_node): New class for handling tags.
1030         (output_file): Add variable `state'.
1032 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
1034         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
1035         providing a minimal troff state machine to emit meta tags for the
1036         post-grohtml device driver.
1038         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
1039         files.
1041 2004-10-09  Werner LEMBERG  <wl@gnu.org>
1043         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
1045 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
1047         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
1049         * src/roff/troff/div.h: Include `mtsm.h'.
1050         (diversion): New variables `any_chars_added', `needs_push',
1051         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
1052         `saved_suppress_next_eol', `modified_tag'.
1053         New virtual member function `is_diversion'.  Update all descendants.
1055         * src/roff/troff/div.cpp (diversion::diversion,
1056         macro_diversion::macro_diversion): Updated.
1057         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
1058         `suppress_next_eol'.
1059         (top_level_diversion::space): Handle `curenv->seen_space'.
1060         (page_offset): Update tag handling.
1061         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
1063         * src/roff/troff/env.h (environment): Make `tabs' public.
1064         Remove `ignore_next_eol', `emitted_node'.
1065         Update `output_line', `output'.
1066         New variables `seen_space', `seen_eol', `suppress_next_eol',
1067         `seen_break'.
1068         New member functions `construct_state', `make_tag',
1069         `construct_format_state, `construct_new_line_state,
1070         `dump_troff_state'.
1071         Remove `add_html_tag', `make_html_tag'.
1073         * src/roff/troff/env.cpp: New externs `suppress_push',
1074         `get_diversion_state', `global_diverted_space'.
1075         (pending_output_line): New variable `was_centered'.
1076         Update constructor and all callers.
1077         (pending_output_line::output): Call `curenv->construct_format_state'.
1078         (environment::environment, environment::copy): Updated.
1079         (environment::output): Handle `was_centered'.
1080         (environment::add_char): Handle construct and diversion state.
1081         (environment::add_node): Handle construct state.
1082         (environment::newline): Handle `was_centered'.
1083         (environment::output_line): Updated.
1084         (environment::possibly_break_line): Updated.
1085         Update tag handling.
1086         (environment::add_html_tag): Replaced with...
1087         (environment::make_tag): New function.
1088         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
1089         (environment::dump_troff_state): New debugging function.
1090         (environment::construct_state, environment::construct_format_state,
1091         environment::construct_new_line_state): New functions.
1092         (environment::do_break): Updated.
1093         Handle `global_diverted_space'.
1094         (environment::handle_tag): Update tag handling.
1095         (point_size, fill, do_break_request): Don't call `add_html_tag'.
1096         (no_fill): Don't call `add_html_tag'.
1097         Set `suppress_next_eol'.
1098         (center, right_justify, line_length, indent, temporary_indent,
1099         set_tabs):
1100         Update tag handling.
1102         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
1103         (input_iterator): New variables `is_diversion', `diversion_state'.
1104         Update constructors.
1105         (input_stack): New member functions `get_div_level',
1106         `get_diversion_state', `check_end_diversion'.
1107         New variables `div_level', `diversion_state'.  Initialize them.
1108         (suppress_push, global_diverted_space): New global variables.
1109         (input_stack::finish_get, input_stack::finish_peek,
1110         input_stack::remove_boundary, input_stack::end_file,
1111         input_stack::clear, input_stack::pop_macro): Call
1112         `check_end_diversion'.
1113         (input_stack::push): Handle `div_level' and `diversion_state'.
1114         (get_diversion_state): New function.
1115         (diverted_space_node::reread): Handle `global_diverted_space'.
1116         (macro::macro): Update constructors.
1117         (macro::is_diversion): New function.
1118         (macro::operator=): Set `is_a_diversion'.
1119         (string_iterator): New member function `is_diversion'.
1120         (string_iterator::string_iterator): Update constructors.
1121         (string_iterator::fill): Set `div_nest_level'.
1122         (macro_iterator): New member function `is_diversion'.
1123         (do_if_request): Handle `suppress_push'.
1124         (tag, taga): New functions.
1125         (init_input_requests): Add `tag' and `taga' requests.
1127 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
1129         * src/include/font.h (font): New member function
1130         `get_image_generator'.
1131         New variables `unscaled_charwidths' and `image_generator'.
1133         * src/libs/libgroff/font.cpp (font::get_width): Always return the
1134         character's unscaled width if `font::unscaled_charwidths' is set.
1135         (font::get_image_generator): New function.
1136         (font::load_desc): Check the `unscaled_charwidths' and
1137         `image_generator' keywords.
1139         * src/libs/libgroff/fontfile.cpp: Initialize
1140         `font::unscaled_charwidths' and `font::image_generator'.
1142         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
1144         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
1146         * man/groff_font.man: Document `unscaled_charwidths' and
1147         `image_generator'.
1149         * src/preproc/html/pre-html.cpp: Include `device.h'.
1150         (image_gen): New global variable.
1151         (imageList::createPage): Use `image_gen'.
1152         (main): Use `image_generator' keyword.
1154 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1156         * tmac/html.tmac: Handle \[sqrtex].
1158 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1160         * src/include/printer.h (printer): New virtual method `round_width'.
1162         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1163         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1164         src/devices/grotty/tty.cpp (printer::round_width): New function
1165         member.
1167         * src/devices/grohtml/post-html.cpp (printer::round_width): New
1168         function member.
1169         (html_printer::set_numbered_char): Use it.
1171 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
1173         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1175         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1177         * configure: Regenerated.
1179         * Makefile.in (GHOSTSCRIPT): New variable.
1180         (MDEFINES): Add GHOSTSCRIPT.
1182 2004-10-03  Werner LEMBERG  <wl@gnu.org>
1184         * INSTALL.gen: Updated (taken from texinfo CVS).
1186 2004-09-28  Werner LEMBERG  <wl@gnu.org>
1188         * NEWS: Updated.
1190 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1192         * tmac/groff_www.man: Revised and updated.
1194 2004-09-26  Werner LEMBERG  <wl@gnu.org>
1196         Fix \$@ and \$* to handle any number of arguments.
1198         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1199         characters.
1201         * src/roff/troff/input.cpp (input_iterator::internal_level):
1202         Removed.
1203         (input_stack): New member functions `increase_level' and
1204         `decrease_level'.
1205         (input_stack::get_level): Don't use `internal_level'.
1206         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1207         (end_quote_iterator): Completely removed.
1208         (interpolate_arg): Build string for \$@ and \$* which is then
1209         pushed onto the input stack.
1211 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
1213         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1214         2004-09-19.
1216 2004-09-23  Werner LEMBERG  <wl@gnu.org>
1218         * tmac/an-old.tmac (ne): Using default scaling operator.
1220 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1222         This change implements the following features:
1224         PORPHANS
1225           New numeric register: Defines number of lines following LP, PP,
1226           QP, IP or XP, which must be kept together, before any automatic
1227           page break.  If insufficient space remains on the current page, a
1228           page break is forced before the new paragraph begins.
1230         HORPHANS
1231           New numeric register: Sets number of lines of following paragraph
1232           which must be kept with a heading, defined by NH or SH, before any
1233           automatic page break.  If insufficient space remains on the
1234           current page, a page break is forced before the heading.
1236         GROWPS
1237           (Thanks to Joerg van den Hoff, for this idea).
1239           New numeric register: Sets the first level of heading (set with
1240           NH), which will keep the same point size as body text; e.g. if
1241           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1242           point size specified by \n[PS], but .NH 2 and .NH 1 will have
1243           progressively larger point sizes, determined by \n[PSINCR] (see
1244           below).
1246         PSINCR
1247           New numeric register: Sets the point size increment for each level
1248           of heading, (set with NH), below the threshold level set by
1249           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1250           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1251           and all other levels will remain at 10pt, (because \n[PS] = 10).
1253         SH
1254           Existing macro now accepts a numeric argument, to make heading
1255           size match that of NH with same argument value, when the
1256           GROWPS/PSINCR feature is enabled.
1258         SN-DOT
1259           New string, set by NH macro, replaces the existing (undocumented)
1260           use of SN, to represent the assigned section number.
1262         SN-NO-DOT
1263           New string, set by NH macro, represents the assigned section
1264           number, but omits the terminal period (periods at intermediate
1265           levels are retained).
1267         SN
1268           String set by NH macro, originally undocumented, now implemented
1269           as an alias for SN-DOT (which reproduces original behaviour).
1271         * tmac/s.tmac (PORPHANS): New register.
1272         (par*start): Use it.
1273         (HORPHANS, GROWPS, PSINCR): New registers.
1274         (SH-NO-TAG, @SH): Use them.
1275         (@NH): Improved.
1277 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1279         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1280         of `Ds' and `De' macros.
1282 2004-09-10  Werner LEMBERG  <wl@gnu.org>
1284         In tbl, handle \a as an interpreted leader character if in
1285         compatibility mode.
1287         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1288         LEADER_CHAR): New macros.
1289         (compatible_flag): New declaration.
1291         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1292         LEADER_3, and LEADER_4 to `state'.
1293         (table_input::get): Handle `\a'.
1295         * src/preproc/tbl/table.cpp (PREFIX): Removed.
1296         (LEADER_REG): New macro.
1297         (table::init_output): Define LEADER_REG string register if in
1298         compatibility mode.
1300         * src/preproc/tbl/tbl.man: Document it.
1302 2004-08-18  Werner LEMBERG  <wl@gnu.org>
1304         * tmac/doc.tmac (An): Fix error message.
1306 2004-08-06  Werner LEMBERG  <wl@gnu.org>
1308         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1309         file can't be opened.  UNIX tbl has the same behaviour.
1311 2004-08-05  Y T  <doarhop@hotmail.com>
1313         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1314         (DBRead): If in compatibility mode, take into account the text
1315         when computing figure boundaries.
1317 2004-08-05  Werner LEMBERG  <wl@gnu.org>
1319         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
1320         from Tadziu Hoffmann.
1322 2004-08-03  Werner LEMBERG  <wl@gnu.org>
1324         * doc/meref.me: Document `_M' register.
1326 2004-08-03  Martin Husemann  <martin@duskware.de>
1328         Make hpftodit work correctly on big-endian systems.
1330         * src/utils/hpftodit/hpftodit.cpp (File): New method
1331         `get_uint32(char *)'.
1332         (entry): New member `orig_value'.
1333         (read_tags): Use new method.
1334         (output_font_name, read_and_output_pcltypeface, dump_ascii):
1335         Updated.
1337 2004-08-01  Werner LEMBERG  <wl@gnu.org>
1339         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
1340         are already in X11's `macros.t' file.
1342 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
1344         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1345         Fix casting bug.
1346         (read_and_output_pcltypeface): Handle strings with length <= 4.
1348 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
1350         * tmac/s.tmac (pg@top): Don't save `PO' register.
1351         (pg*end-col, pg*end-page): Directly use `PO' register.
1353 2004-07-27  Werner LEMBERG  <wl@gnu.org>
1355         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1357         * src/preproc/refer/refer.cpp (output_references): Check for
1358         empty hash table.
1359         * src/preproc/refer/refer.man: Improve documentation of
1360         `bibliography' command.
1362 2004-07-26  Werner LEMBERG  <wl@gnu.org>
1364         Add requests `fcolor' and `gcolor'.
1366         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1367         New functions.
1368         (init_env_requests): Add `fcolor' and `gcolor'.
1370         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1372         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1373         Document new requests.
1375 2004-07-24  Werner LEMBERG  <wl@gnu.org>
1377         Add support for fractional point sizes in ms macros.  A value for
1378         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1379         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
1381         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1382         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1384         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1386 2004-07-19  Werner LEMBERG  <wl@gnu.org>
1388         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1389         Update constructor.
1390         (do_for, for_input::get, for_input::peek): Handle negative `by'.
1391         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1393 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
1395         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1396         * tmac/groff_mdoc.man: Updated.
1398 2004-07-05  Werner LEMBERG  <wl@gnu.org>
1400         * doc/groff.texinfo: Further improve documentation of `hcode'.
1402 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
1404         Improve appearance of arrows in pic.
1406         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1407         arrow head thin.
1408         Use two line segments for drawing non-filled arrow head.
1409         (line_object::print, spline_object::print): Shorten line length to
1410         avoid arrow sticking.
1411         (arc_object::print): Take arrow direction into account.
1413 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1415         * tmac/groff_www.man: Update documentation of .MPIMG.
1417 2004-07-03  Werner LEMBERG  <wl@gnu.org>
1419         * tmac/an-old.tmac (RI): Always start with font `R'.
1420         (RI, IR): Properly end with font `R'.
1422 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1424         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1425         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1426         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1427         Don't pass more than six arguments to .R, .I, .B, etc., for
1428         compatibility with traditional troff macros.
1430 2004-07-02  Werner LEMBERG  <wl@gnu.org>
1432         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1433         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1434         Update all users.
1435         (PUSH_COMP_MODE): New internal character constant.
1436         Update all users.
1438         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1439         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1440         (token::next, macro::append): Handle PUSH_COMP_MODE.
1441         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1442         POP_GROFFCOMP after each of the decoded arguments to make them
1443         independent from the compatibility mode status.
1444         (comp_mode): Add `COMP_ENABLE'.
1445         (do_define_string, do_define_macro): Handle COMP_ENABLE.
1446         (define_string, append_string, define_macro, define_indirect_macro,
1447         append_macro, append_indirect_macro): Handle `compatible_flag'.
1448         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1450         * man/groff_diff.man, doc/groff.texinfo: Updated.
1452 2004-07-01  Werner LEMBERG  <wl@gnu.org>
1454         * doc/groff.texinfo: Improve documentation of `hcode'.
1455         Use @documentencoding and convert document to latin-1; to do that
1456         make latin characters active and assign proper macros (within a
1457         @tex...@end tex environment).
1458         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1459         * doc/Makefile.sub (groff): Ditto.
1461 2004-06-29  Werner LEMBERG  <wl@gnu.org>
1463         Implement two new conditional operators `F <name>' and `S <name>'
1464         which check whether <name> is a valid font or style, respectively.
1466         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1467         (text_file::text_file): Updated.
1468         (text_file::error): Don't emit message if `silent' is set.
1469         (font::load_font): Add optional third argument (which is directly
1470         passed to `load'.
1471         (font::load): Add optional second argument to check the header of
1472         a font only, without emitting warning or error messages.
1473         * src/include/font.h (font): Updated.
1475         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1476         conditionals.
1477         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1478         fourth argument to check a font without mounting.
1479         (check_font, check_style): New functions.
1480         * src/roff/troff/node.h: Updated.
1482         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1483         Updated.
1485 2004-06-27  Werner LEMBERG  <wl@gnu.org>
1487         Implement new string-valued register `.sty' to return the current
1488         style name.
1490         * env.cpp (environment::get_style_name_string): New function.
1491         (init_env_requests): Add `.sty' register.
1492         * env.h (environment): Updated.
1493         * node.cpp (font_info): Make `get_style_name' a friend.
1494         (get_style_name): New function.
1495         * node.h: Updated.
1497         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1498         Updated.
1500 2004-06-15  Werner LEMBERG  <wl@gnu.org>
1502         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1503         `nospaces' option.
1505 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
1507         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1508         and \n[mo] to avoid dependency on current date.
1510 2004-06-08  Werner LEMBERG  <wl@gnu.org>
1512         * Makefile.sub (install_data): New target.
1514 2004-06-04  Werner LEMBERG  <wl@gnu.org>
1516         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1518 2004-06-03  Werner LEMBERG  <wl@gnu.org>
1520         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1521         order of libraries.
1522         (install_data): Add $(srcdir).
1524         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1525         libraries.
1527 2004-06-02  Werner LEMBERG  <wl@gnu.org>
1529         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1530         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1531         Add test for Xmu library.
1532         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1533         GROFF_APPRESDIR_DEFAULT): New macros.
1535         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1536         and GROFF_APPRESDIR_DEFAULT.
1538         * configure: Regenerated.
1540         * Makefile.in (appresdir): New variable.
1541         (MDEFINES): Add appresdir.
1543         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1544         -Xt.
1545         (install_data, uninstall_sub): New targets to handle GXditview.ad.
1547         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1548         `$(srcdir)/eign', not `eign'.
1550         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1552         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1553         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1554         Protect (g)xditview with `\%' to avoid hyphenation.
1555         Other minor formatting.
1557 2004-06-01  Werner LEMBERG  <wl@gnu.org>
1559         Integrate gxditview into groff's standard directory hierarchy.
1561         * src/xditview/*: Moved to ...
1562         * src/devices/xditview/*: Here.
1563         Moved DviChar.h and XFontName.h to src/include.
1564         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1565         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1566         Moved xtotroff.c to new directory src/utils/xtotroff.
1567         Provide proper Makefile.sub files (reusing the stuff from
1568         Imakefile.in).
1569         DESC renamed to DESC.in.
1570         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1571         Converted everything from K&R to ANSI C.
1572         Decorated with const where appropriate.
1573         Cast string constants with `String' and `char *' where appropriate.
1574         Made it compile with C++ (used as a C compiler).
1575         Removed other minor compiler warnings.
1577         * src/devices/xditview/device.c: Include config.h, string.h, and
1578         defs.h.
1579         Don't declare `exit', `strtok', `strchr', and `getenv'.
1580         (FONTPATH): Remove.
1582         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1583         `XFormatFontName'.
1585         * src/devices/xditview/xditview.c: Include config.h.
1586         Include stdio.h earlier.
1587         Protect declaration of `popen' and `pclose' with
1588         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1589         Replace `caddr_t' with `XtPointer'.
1590         (MakePromptFunc): New typedef.
1591         (DoPrint): Use RETSIGTYPE.
1592         (promptfunction): Change type to MakePromptFunc.
1593         (MakePrompt): Use MakePromptFunc for third argument.
1594         (xmalloc): Removed.
1596         * src/devices/xditview/ad2c: Add casts to `String'.
1598         * src/include/XFontName.h (XFontNameString): Don't use array
1599         notation.
1600         Add prototypes for `XParseFontName', `XFormatFontName',
1601         `XCompareFontName', and `XCopyFontName'.
1603         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1604         `XFontName.h'.
1606         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1607         Don't declare `XParseFontName' and `XFormatFontName'.
1608         (xmalloc): Removed.
1609         (main): Remove `optind' and `optarg'.
1611         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1612         (to select programs which need X).
1613         Make XDEVIDIRS depend on `FORCE'.
1614         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1615         X support).
1616         (MDEFINES): Updated.
1617         (LIBDIRS): Use XLIBDIRS.
1618         (CPROGDIRS): Use XPROGDIRS.
1619         (DEVDIRS): Remove font directories for gxditview.
1620         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1621         (EXTRADIRS): Remove src/xditview.
1623         * Makefile.sub (DISCLEANFILES): Updated.
1625         * Makefile.comm (LIBXUTIL): New variable.
1626         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1627         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1629         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1631         * aclocal.m4 (GROFF_X11): New function.
1633         * configure.ac: Call GROFF_X11.
1634         Don't create src/xditview/Imakefile.
1635         Don't emit notice how to build gxditview.
1637         * configure: Regenerated.
1639         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1641 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
1643         * Makefile.in (CPPFLAGS): Define.
1644         (MDEFINES): Add CPPFLAGS.
1646 2004-05-27  Werner LEMBERG  <wl@gnu.org>
1648         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1650 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
1652         Fix problems with `friend name injections'.
1654         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1655         make_script_box), src/roff/troff/div.h (end_diversions),
1656         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1657         change 2004-04-08.
1659 2004-05-25  Bernd Warken  <bwarken@mayn.de>
1661         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1663 2004-05-25  Werner LEMBERG  <wl@gnu.org>
1665         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1666         src/libs/libgroff/color.cpp: Include lib.h.
1668 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1670         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1671         through Forte 6u1, and for how to get GNU make on Solaris.
1673 2004-05-24  Werner LEMBERG  <wl@gnu.org>
1675         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
1676         by Paul Eggert.
1678 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1680         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1681         rule.
1683 2005-05-14  Werner LEMBERG  <wl@gnu.org>
1685         * REVISION: Set to 2.
1687         * aclocal.m4 (GROFF_STDINT_H): Removed.
1688         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1690         * configure.ac: Updated.
1691         * configure, src/include/config.hin: Regenerated.
1693         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1694         inttypes.h conditionally.
1696 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1698 Version 1.19.1 released
1699 =======================
1701 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1703         * src/preproc/refer/label.y (same_author_last_name,
1704         same_author_name): Handle empty sort keys.
1706 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1708         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1709         tmac/TODO: Updated.
1711         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1712         doc-str-Lb-librt): Reset font.
1713         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1714         Provide `doc-str-Lb' to reset font.
1715         * tmac/groff_mdoc.man: Updated.
1717 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1719         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1720         snprintf versions which don't conform to ANSI C 99 (this is,
1721         counting the string's trailing null byte in the return value).
1723 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1725         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1726         that all implementations of sprintf handle null pointers correctly.
1728 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1730         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1731         Document `.U' register.
1733         * src/roff/troff/env.cpp (environment::mark_last_line)
1734         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1736 2004-05-04  Larry Kollar  <kollar@alltel.net>
1738         New read-only register `.U'; it returns 1 in safer mode and 0
1739         otherwise.
1741         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1742         register.
1744 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1746         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1748 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1750         * src/include/font.h (font): Use `int' for ch_index.
1751         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1752         font::compact): Updated.
1754         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1755         warnings.
1757         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1758         (hyphen_word): Fix compiler warnings.
1759         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1760         `char'.
1761         Update all callers.
1762         (get_delim_number, get_line_arg): Change second argument type to
1763         `unsigned char'.
1764         (macro_header::copy, token::next, do_define_string,
1765         do_define_character, substring_request, asciify_macro,
1766         unformat_macro, read_size, non_interpreted_node::interpret,
1767         while_request, main: Fix compiler warnings.
1768         (read_color_draw_node): Initialize `col'.
1770         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1771         `start_col' and `end_col' of type `int'.
1772         (vertical_rule): Make `col' of type `int'.
1774         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1775         for EOF.
1777         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1778         New arrays.
1779         (format_serial): Use them to remove dependency on ASCII.
1781         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1782         compiler warning.
1783         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1784         Ditto.
1786         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1787         compiler warnings.
1788         (glyph): Change type of `hpos' to `int'.
1790         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1791         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1793         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1795         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1797 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1799         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1800         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1801         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1802         `double' instead of `float' everywhere.
1803         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1804         everywhere.
1805         (main): Add return value.
1806         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1807         everywhere.
1808         Update all user functions.
1810         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1811         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1812         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1813         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1814         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1815         src/roff/troff/input.cpp, src/roff/troff/request.h,
1816         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1817         declarations.
1819         * src/utils/indxbib/signal.c: Include stdlib.h.
1821 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1823         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1824         before the first page.
1826 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1828         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1829         (doc-operating-system-*): Updated.
1830         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1831         (doc-str-Lb-*): Add more library names.
1833 2004-04-10  Art Haas  <ahaas@airmail.net>
1835         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1836         use anonymous type.
1838 2004-04-09  Art Haas  <ahaas@airmail.net>
1840         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1842 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1844         * arch/misc/shdeps.sh: Generate better comment for sed script.
1846 2004-04-08  Art Haas  <ahaas@airmail.net>
1848         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1849         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1850         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1851         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1852         (polyfill), src/preproc/grn/main.cpp (polyfill),
1853         src/preproc/refer/command.cpp (command_table),
1854         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1855         gcc 3.5 doesn't like).
1857 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1859         Removing many compiler warnings.  groff should now compile with
1860         a C++ compiler used for C files also.  [Simple variable renamings
1861         to avoid shadowing aren't logged in detail.]
1863         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1864         (draw_dvi_printer::draw) ['c']: Enclose in block.
1866         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1867         (page::add_line): Fix typos.
1868         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1870         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1871         Some local variable renamings.
1872         * src/devices/grolbp/lbp.h: Some local variable renamings.
1874         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1875         variable renamings.
1877         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1878         Remove redundant local variable declaration.
1879         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1880         Don't use `caddr_t' but `void *'.
1881         Enclose functions with `extern "C"' for C++.
1883         * src/libs/libdriver/input.cpp (remember_filename,
1884         remember_source_filename): Use cast for string constant.
1886         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1887         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1888         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1889         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1890         style.
1891         Enclose functions with `extern "C"' for C++.
1892         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1893         (needs_quoting): Return `int'.
1894         (quote_arg): Add proper casts to malloc and realloc.
1895         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1896         various MS Windows environments.
1897         (spawnvp_wrapper): Add proper cast to malloc.
1899         * src/preproc/eqn/box.h: Remove redundant declarations of
1900         `make_script_box', `make_mark_box' and `make_lineup_box'.
1901         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1902         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1903         variable renamings.
1905         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1906         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1907         (dx, dy): Renamed functions to...
1908         (deltax, deltay): This.
1909         * src/preproc/grn/main.cpp: Some local variable renamings.
1910         (deffont): Add `const'.
1911         (initpic, conv): Use cast for string constant.
1913         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1914         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1915         (char_buffer::run_output_filter): Second argument is unused.
1916         * src/preproc/html/pushback.cpp: Some local variable renamings.
1918         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1919         * src/preproc/pic/object.cpp: Some local variable renamings.
1921         * src/preproc/refer/label.y (lookup_label): Remove redundant
1922         declaration of local variable.
1924         * src/preproc/soelim.cpp: Remove redundant declaration of
1925         `interpret_lf_args'.
1927         * src/preproc/tbl/main.cpp: Some local variable renamings.
1929         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1930         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1931         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1932         Don't use C++-style comments.
1934         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1935         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1936         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1937         renamings.
1938         * src/roff/troff/div.h: Remove redundant declaration of
1939         `end_diversions'.
1940         * src/roff/troff/troff.h: Remove redundant declaration of
1941         `cleanup_and_exit'
1942         * src/roff/troff/input.cpp: Remove redundant declaration of
1943         `handle_first_page_transition' and `process_input_stack'.
1945         * src/utils/hpftodit.cpp: Some local variable renamings.
1947         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1948         for C++.
1949         Don't define RETSIGTYPE.
1950         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1952         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1953         (error): Use `const' in argument.
1954         (main): Remove redundant declaration of `optind'.
1955         Move declaration of `Version_string' to top-level.
1957         * PROBLEMS: Document difficulties compiling signal.c if a C++
1958         compiler is used for C.
1960 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1962         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1964 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1966         Make scripts like nroff.sh and neqn.sh portable across various
1967         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1968         non-POSIX path separators.  The idea is to extend those scripts to
1969         decide at run-time (of the script) which path separator to use.
1971         * arch/misc/Makefile.sub: New file.
1972         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1973         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1974         a proper definition of the variable `GROFF_RUNTIME'.
1976         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1977         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1978         (PROGDEPDIRS): New variable.
1979         `FORCE' it.
1980         (PROGDIRS): Add PROGDEPDIRS.
1982         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1983         Don't substitute @SEP@ and @BINDIR@.
1984         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1985         (PATH): Use GROFF_RUNTIME.
1987         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1988         Don't substitute @SEP@ and @BINDIR@.
1989         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1990         (PATH): Use GROFF_RUNTIME.
1992 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1994         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1995         Cygwin which doesn't handle stderr correctly.
1997 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1999         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
2000         against empty argument.  Problem reported by <cgd@broadcom.com>.
2002 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2004         * Makefile.in (SEP): Replaced with...
2005         (RT_SEP, SH_SEP): Separators for the target platform's native path
2006         separator and the build environment, respectively.
2007         (fontpath, tmacpath): Use RT_SEP.
2008         (MDEFINES): Updated.
2010         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2011         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2012         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
2013         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
2015 2004-03-05  Werner LEMBERG  <wl@gnu.org>
2017         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
2018         reduce alignment problems with newer printers which use built-in
2019         TrueType fonts (instead of the older Intellifonts).  The ideal
2020         solution is to provide a second set of groff metric files, but this
2021         is extremely time-consuming to produce, given that HP's metric
2022         files are very rudimentary.
2024 2004-03-01  Werner LEMBERG  <wl@gnu.org>
2026         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
2027         s/operand/argument/ in error message.
2029 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2031         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
2032         is in use.
2034 2004-03-01  Antti Kantee  <pooka@netbsd.org>
2036         * tmac/s.tmac (XE): Fix error message.
2038 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
2040         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
2041         New macros.
2043         * src/roff/groff/pipeline.c: Declare strcasecmp.
2044         (run_pipeline) [_WIN32]: Use function name variants which don't
2045         start with `_'.
2046         Fix stream handling.
2048 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
2050         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
2051         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
2052         for platforms which use the native Win32 runtime libraries.
2053         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
2055         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
2056         QUOTE_ARG_REALLOC_ERROR): Fix string.
2058         * src/preproc/html/pre-html.cpp: Remove declaration of
2059         `spawnvp_wrapper'.
2060         Don't use __MINGW32__.
2061         s/DEBUG_FILE/DEBUG_FILE_DIR/.
2062         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
2063         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
2064         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
2065         calls to `set_redirection' and `WAIT'.
2066         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
2067         Fix calls to `set_redirection' and `save_and_redirect'.
2068         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
2069         to `set_redirection' and `save_and_redirect'.
2070         (usage): Fix message.
2071         (makeTempFiles, main): Use `DEBUG_FILE'.
2073 2004-02-21  Werner LEMBERG  <wl@gnu.org>
2075         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
2077 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
2079         * src/libs/libgroff/quotearg.c: New file, providing proper argument
2080         quoting for MSVC's spawn* and exec* functions.
2081         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
2082         spawnvp with proper quoting for MSVC.
2084         * src/libs/libgroff/assert.cpp (program_name),
2085         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
2086         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
2088         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
2090         * src/include/error.h (program_name): Declare as `extern "C"'.
2091         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
2093 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
2095         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
2096         spawnvp_wrapper.
2097         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
2099 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
2101         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
2102         variable.
2103         (sbasename) [__MSDOS__ || ...]: New function.
2104         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
2105         generic algorithm.
2106         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
2107         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
2108         of XXX.
2109         Use STDOUT_FILENO instead of hardcoded file handle.
2110         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
2112 2004-02-19  Werner LEMBERG  <wl@gnu.org>
2114         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
2115         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
2117 2004-02-18  Werner LEMBERG  <wl@gnu.org>
2119         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
2120         new font and mapping files.
2122 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
2123             Keith Marshall  <keith.d.marshall@ntlworld.com>
2125         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
2126         an input pipe.  This is needed for the MSVC compiler to make troff's
2127         `-o' option work.
2129         * src/roff/troff/div.cpp: Include nonposix.h.
2130         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
2132 2004-02-17  Werner LEMBERG  <wl@gnu.org>
2134         * font/devlj4/generate/special.awk: New script.
2135         * font/devlj4/generate/Makefile (S): Use special.awk.
2136         * font/devlj4/*: Regenerated, including the following new files:
2137         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
2138         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
2139         * NEWS: Document new lj4 fonts and revised hpftodit.
2141 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
2143         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
2145 2004-01-25  Werner LEMBERG  <wl@gnu.org>
2147         * src/libs/libgroff/progname.cpp: Replaced with...
2148         * src/libs/libgroff/progname.c: New file.
2149         * src/libs/libgroff/Makefile.sub: Updated accordingly.
2151 2004-01-17  Werner LEMBERG  <wl@gnu.org>
2153         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
2155 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
2157         * font/devlj4/generate/wingdings.map,
2158         font/devlj4/generate/symbol.map: Include unnamed glyphs.
2159         Use groff glyph names where possible.
2160         * src/devices/grolj4/lj4_font.man: Minor updates.
2162 2004-01-13  Werner LEMBERG  <wl@gnu.org>
2164         * tmac/www.tmac (DC): Handle TTY devices.
2166         * doc/webpage.ms: Document viewCVS from ffii.org.
2167         * NEWS, README: Updated.
2169         * src/roff/groff/groff.man: Mention lj4_font man page.
2171         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2172         variables.
2173         (FONTS): Add SYMBOL and WINGDINGS.
2174         (SYMBOL, WINGDINGS): New targets.
2176 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
2178         * src/devices/grolj4/lj4_font.man: New man page.
2179         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2180         * src/devices/grolj4.man: Mention lj4_font man page.
2182         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2183         * src/utils/hpftodit/hpftodit.man: Document it.
2184         (CW): New macro.
2185         Remove details about fonts (which are now in lj4_font.man).
2187         * font/devlj4/generate/symbol.map,
2188         font/devlj4/generate/wingdings.map: New files.
2190 2004-01-12  Werner LEMBERG  <wl@gnu.org>
2192         * README: Mention ffii's viewcvs access.
2194 2004-01-09  Werner LEMBERG  <wl@gnu.org>
2196         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2198 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
2200         Revert most of the change from 2004-01-03 to better control used
2201         symbol sets.
2203         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2204         (text_symbol_sets, special_symbol_sets): New arrays.
2205         (symbol_set_table): New global variable.
2206         (read_symbol_sets): Use search order given in the text_symbol_sets
2207         and special_symbol_sets arrays.  If command line flag -a is not
2208         given, search both arrays.
2209         (output_charset): Require x_height_tag only for command line flag -i.
2211 2004-01-06  Werner LEMBERG  <wl@gnu.org>
2213         Implement string-valued registers \n[.m] and \n[.M] to return the
2214         name of the current drawing and background color, respectively.
2216         * src/roff/troff/symbol.h: Moved to...
2217         * src/include/symbol.h: Here.
2218         Small fixes to make it work outside of the `troff' directory.
2219         * src/roff/troff/symbol.cpp: Moved to...
2220         * src/libs/libgroff/symbol.cpp: Here.
2221         Small fixes to make it work outside of the `troff' directory.
2223         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2224         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2225         Updated.
2227         * src/include/color.h: Include symbol.h.
2228         (color): Add new field `nm'.
2229         * src/libs/libgroff/color.cpp (color::color): Updated.
2231         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2232         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2233         src/roff/troff/reg.cpp: Don't include symbol.h.
2235         * src/roff/troff/env.cpp: Don't include symbol.h.
2236         (environment::get_glyph_color_string,
2237         environment_get_fill_color_string): New member functions.
2238         (init_env_requests): Handle `.m' and `.M' registers.
2239         * src/roff/troff/input.cpp: Don't include symbol.h.
2240         (default_symbol): Moved to symbol.cpp/symbol.h.
2241         (do_glyph_color, do_fill_color, define_color): Pass symbol name
2242         to color constructor.
2243         * src/roff/troff/env.h: Updated.
2245         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2246         Document new registers.
2248 2004-01-05  Werner LEMBERG  <wl@gnu.org>
2250         * src/roff/troff/node.cpp (space_node::get_breakpoints,
2251         space_node::nbreaks): Protect against zero `next' field.
2253 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
2255         In hpftodit, use the symbol sets offered in the TFM.
2257         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2258         (symbol_set, text_symbol_sets, special_symbol_sets,
2259         symbol_set_table): Removed.
2260         (get_printcode): Removed.
2261         (read_symbol_sets): Initialize `symbol_set' field with
2262         `NO_SYMBOL_SET'.
2263         Simplify code to just use the `kind' value.
2264         (output_charset): Improve output formatting.
2265         (dump_symbols): Simplified.
2267 2004-01-02  Werner LEMBERG  <wl@gnu.org>
2269         * font/devlj4/generate/text.map: Add more MSL numbers.
2271 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
2273         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2274         (text_symbol_sets): Add more symbol sets.
2275         (debug_flag): New static variable (moved from `main').
2276         (get_printcode, show_symset): New functions.
2277         (main): Remove `debug_flag'.
2278         (output_charset): Use `show_symset'.
2279         (dump_symbols):  Use `show_symset'.
2280         Print symsets for all glyphs.
2281         (read_map): Actually call `unicode_to_ucode_make' but this time
2282         correctly.
2284 2004-01-01  Werner LEMBERG  <wl@gnu.org>
2286         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2287         Fix placement of comments.
2289 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
2291         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2292         option `-d' is given.
2293         (output_charset): Improve warning messages to give more information.
2294         (dump_symbols): Make information more precise.
2295         (usage): Updated.
2296         (read_map): Don't call unicode_to_ucode_name; the glyph names must
2297         appear as-is and shouldn't be decomposed.
2299 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2301         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2302         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2303         (FONTS): Add TrueType font families Arial and Times New Roman.
2304         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2305         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2306         `fl'.
2308 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
2310         * test-groff.in (SEP): Quote value.
2311         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2312         `tem' to `char*' to avoid deallocation of a pointer to a constant
2313         object which some compilers don't like.
2315 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2317         * font/devlj4/generate (text.map, special.map): Rewritten to work
2318         with the new hpftodit version.
2320 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
2322         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2323         set and 8bit character code for all glyphs also.
2325 2003-12-30  Werner LEMBERG  <wl@gnu.org>
2327         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2329 2003-12-29  Werner LEMBERG  <wl@gnu.org>
2331         More fixes for MSVC compiler.
2333         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2334         $(SEP).
2336         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2337         STDERR_FILENO) [_MSC_VER]: Define conditionally.
2338         (getpid) [_MSC_VER]: Remove.
2339         Include direct.h and process.h conditionally.
2341         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2342         parentheses for a_delete.
2344         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2346         * test-groff: Replaced with...
2347         * test-groff.in: This new template to handle path separator
2348         properly.
2350         * configure.ac: Check for direct.h and process.h.
2351         Generate test-groff script.
2352         * configure, src/include/config.hin: Regenerated.
2354 2003-12-28  Werner LEMBERG  <wl@gnu.org>
2356         Add integral extension glyph.
2357         Add new option `-x' to afmtodit to suppress use of built-in AGL.
2359         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2361         * font/devps/generate/textmap: Provide entry for `integralex' to
2362         override (old) PUA value of the AGL.
2363         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2364         * font/devps/*: Regenerated.
2366         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2367         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2369 2003-12-27  Werner LEMBERG  <wl@gnu.org>
2371         Add forgotten `coproduct' symbol (already available for DVI).
2373         * font/devhtml/R.proto, font/devps/generate/textmap,
2374         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2375         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2376         U+2210 (\[coproduct]).
2378 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
2380         hpftodit has been extended to handle TrueType metric files and
2381         more glyphs.  See hpftodit.man for more details.
2383         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
2384         ctype.h, and unicode.h.
2385         s/msl/charcode/ everywhere since we now handle Unicode values also.
2386         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2387         Use it where appropriate.
2388         (MULTIPLIER): Replaced with...
2389         (multiplier): New global static variable.
2390         (scale): Updated.
2391         (tag_type): Add more TFM tags.
2392         (tag_name): New array.
2393         (ENUM_TYPE, FLOAT_TYPE): Removed.
2394         (BYTE_TYPE): New value assigned.
2395         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2396         (text_symbol_sets, special_symbol_sets): Extended to cover more
2397         sets.
2398         (check_type): Add return value.
2399         (check_units): Add parameters to get ppi and upem values.
2400         Handle TrueType TFM data.
2401         (output_font_name): New function.
2402         (output_charset): Add parameter to handle TFM type.
2403         Handle TrueType TFMs also.
2404         (em_fract): New macro.
2405         (dump_tags): Be much more verbose and handle more tags.
2406         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2407         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2408         functions.
2409         (read_map): Add parameter to handle TFM type.
2410         Handle both MSL and Unicode mappings.
2411         (main): Add two new command line options `-a' and `-q'.
2412         Updated to make use of new functions.
2413         (usage): Updated.
2415         * src/utils/hpftodit/hpuni.cpp: New file.
2417         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2418         Updated.
2420 2003-12-25  Werner LEMBERG  <wl@gnu.org>
2422         * src/include/nonposix.h (read) [_MSC_VER]: Define.
2424 2003-12-24  Werner LEMBERG  <wl@gnu.org>
2426         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2427         by Michail Vidiassov <master@iaas.msu.ru>.
2429 2003-12-20  Werner LEMBERG  <wl@gnu.org>
2431         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2432         and u0049_0307.
2433         Add missing latin-2 glyphs.
2434         * font/devutf8/R.proto: Add missing latin-2 glyphs.
2436         * tmac/troffrc: Load `composite.tmac' earlier.
2438         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2439         u00{53,73}_0327, and u0049_0307.
2440         * tmac/X.tmac: Add u00{47,67}_0306.
2441         * tmac/tty-char.tmac: Use composite glyph names for readability.
2443         * NEWS: Updated.
2445         * src/include/unicode.h: Remove `extern' keywords.
2447 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
2449         * tmac/latin5.tmac: New file.
2451 2003-12-19  Werner LEMBERG  <wl@gnu.org>
2453         Add some glyphs needed for Turkish.
2455         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2456         and u0049_0307.
2458         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
2459         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2460         u00{53,73}_0327, and u0049_0307.
2462 2003-12-18  Werner LEMBERG  <wl@gnu.org>
2464         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2465         from 2001-10-04.
2466         Remove trailing zeros.
2468 2003-12-17  Werner LEMBERG  <wl@gnu.org>
2470         Make \? transparent to end-of-sentence recognition.
2472         * src/roff/troff/input.cc (non_interpreted_node): Add
2473         `ends_sentence' member function.
2475 2003-12-16  Werner LEMBERG  <wl@gnu.org>
2477         * doc/groff.texinfo: Document `dt' request correctly.
2478         Other minor typographical improvements.
2480 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
2482         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2484 2003-12-10  Richard Stallman  <rms@gnu.org>
2486         * LICENSE: Better wording.
2488 2003-12-09  Werner LEMBERG  <wl@gnu.org>
2490         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2491         * configure, NEWS: Updated.
2493 2003-12-08  Werner LEMBERG  <wl@gnu.org>
2495         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2497 2003-12-07  Bernd Warken  <bwarken@mayn.de>
2499         * LICENSE: Updated.
2501 2003-12-07  Werner LEMBERG  <wl@gnu.org>
2503         * INSTALL: Improved.
2505 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2507         Use path separator character of target platform for compiled-in
2508         default paths.
2510         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2511         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2512         * configure: Regenerated.
2513         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2515 2003-12-05  Werner LEMBERG  <wl@gnu.org>
2517         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2518         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2520 2003-12-04  Bernd Warken  <bwarken@mayn.de>
2522         * LICENSE: New file.
2524 2003-12-03  Werner LEMBERG  <wl@gnu.org>
2526         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2527         ligatures present in AFM files since groff currently only
2528         understands some standard ligatures and nothing else.
2530 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
2532         * src/roff/groff/groff.cpp (main): Don't run the spooler if
2533         option -v is given.
2535         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2536         messages.
2537         Close stdout copy.
2538         Don't use Unix wait flags.
2540 2003-12-02  Werner LEMBERG  <wl@gnu.org>
2542         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2543         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2544         src/roff/troff/uniuni.cpp: Moved to...
2545         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2546         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2547         src/libs/libgroff/uniuni.cpp: Here.
2549         * src/include/Makefile.sub.old (HDRS),
2550         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2551         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2553 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2555         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2556         `DEBUG_FILE'.
2557         Updated all users.
2559 2003-12-01  Werner LEMBERG  <wl@gnu.org>
2561         * groff.texinfo: Document special behaviour of `.vs 0'.
2562         Improve documentation of `cflags' request.
2563         * NEWS: Updated.
2565 2003-11-29  Werner LEMBERG  <wl@gnu.org>
2567         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2568         * font/devlj4/CORONET: Regenerated.
2570 2003-11-24  Werner LEMBERG  <wl@gnu.org>
2572         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2573         if processing hyphenation patterns in traditional mode.
2574         Improve error messages.
2576 2003-11-20  Werner LEMBERG  <wl@gnu.org>
2578         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2579         troff_output_file::put_char): Fix type of local variable `c'.
2581 2003-11-19  Werner LEMBERG  <wl@gnu.org>
2583         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
2584         declarations.
2585         (i_to_a): Removed.  libgroff already provides this function.
2586         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2588 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
2590         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2591         HAVE_DECL_SYS_LIST.
2593 2003-11-17  Werner LEMBERG  <wl@gnu.org>
2595         * COPYING: Use correct version.
2597 2003-11-11  Werner LEMBERG  <wl@gnu.org>
2599         LynxOS 4.0.0 doesn't declare vfprintf.
2601         * configure.ac: Check for vfprintf.
2602         * configure: Regenerated.
2603         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2604         * src/include/config.hin: Regenerated.
2606 2003-11-10  Werner LEMBERG  <wl@gnu.org>
2608         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2610         * configure.ac: Check for vsnprintf.
2611         * configure: Regenerated.
2612         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2613         `HAVE_VSNPRINTF'.
2614         * src/include/config.hin: Regenerated.
2616 2003-11-09  Werner LEMBERG  <wl@gnu.org>
2618         * aclocal.m4: Updated syntax to autoconf 2.59.
2619         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2620         Don't check for gsos2.
2621         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
2622         working abs_top_srcdir and abs_top_builddir.
2624         * configure.ac: Updated syntax to autoconf 2.59.
2625         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2626         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2627         * configure: Regenerated.
2629         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2630         s/@groff_top_builddir@/@abs_top_builddir@/.
2632         * src/roff/groff/pipeline.c (xstrsignal):
2633         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2635 2003-11-07  Werner LEMBERG  <wl@gnu.org>
2637         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2638         make start angle smaller than end angle to circumvent a bug in tpic
2639         handling of some versions of dvipdfm (and dvipdfmx).
2641 2003-10-30  Werner LEMBERG  <wl@gnu.org>
2643         * src/devices/grops/grops.man: Improve section on creating EPS.
2645 2003-10-29  Werner LEMBERG  <wl@gnu.org>
2647         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2648         -P-pletter).
2650 2003-10-28  Werner LEMBERG  <wl@gnu.org>
2652         * doc/groff.texinfo: Fix documentation of `.if'.
2654 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
2656         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2657         the form `uniXXXX' also.
2659 2003-10-27  Werner LEMBERG  <wl@gnu.org>
2661         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2662         contrib/pic2graph/pic2graph.sh: Implement secure management of
2663         temporary files.
2664         Pass `-P-pletter' to groff to avoid data outside of the converted
2665         area -- some versions of `convert' (for example 5.3.8) don't check
2666         the bounding box of the image but always use a fixed image size
2667         (letter paper format).
2668         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2669         contrib/pic2graph/pic2graph.man: Updated.
2671         * src/roff/groff/groff.man: Document $TMP and $TEMP.
2673 2003-10-26  Werner LEMBERG  <wl@gnu.org>
2675         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2676         troff_output::simple_ellipse, troff_output::simple_arc,
2677         troff_output::simple_line, troff_output::simple_spline,
2678         troff_output::simple_polygon): Insert a space before arguments.
2679         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2680         latter doesn't produce a node, so the following `.sp -1' would do
2681         the wrong thing.
2682         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2683         (and we don't have to care about compatibility mode).
2684         (troff_output::set_color, troff_output::reset_color): Don't emit
2685         `.sp -1' after \M and \m.
2687         * src/roff/troff/input.cpp (old_have_input): New global variable.
2688         (input_stack::get): Handle `old_have_input'.
2689         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2690         `trapping_blank_line' depending on `old_have_input', not
2691         `have_input'.
2693 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2695         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2696         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2697         default directory names for temporary files.
2698         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2700         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2701         [__MSDOS__] (run_pipeline): Honour environment variables.
2702         Don't use `tmpnam' but `tempnam' to work around messy
2703         implementation.
2705         * README.MinGW: New file.
2707 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2709         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2710         `(*t)->next' without testing validity of `*t'.
2711         (usage): Make it more readable.
2713 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2715         Make html device run under both MS-DOS and Win32.
2717         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2718         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2719         spawn or fork+exec has to be used, and whether parent must sleep
2720         until the child process terminates.  Used in
2721         `char_buffer::run_output_filter'.
2722         (copyofstdoutfd): Removed.
2723         (char_buffer): Replace `write_file_html' and `write_file_troff'
2724         member functions with `emit_troff_output' and `run_output_filter'.
2725         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2726         macros.
2727         (replaceFd): Replaced with...
2728         (set_redirection): New auxiliary function.
2729         (waitForChild): Replaced with...
2730         (save_and_redirect): New auxiliary function for.
2732         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2733         functions.
2735 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2737         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2738         (GROFF_LIBC): New function.
2739         * configure.ac: Call GROFF_LIBC.
2740         Check for `kill'.
2741         * configure: Regenerated.
2743         * src/include/lib.h: Handle __MINGW32__.
2744         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2745         Add macro for `pipe'.
2746         Define P_tmpdir.
2748         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2749         correctly.
2751         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2752         Implement.
2754 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2756         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2757         <chuq@chuq.com>.
2759         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2760         directory.
2762 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2764         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2765         src/roff/troff/input.cc (usage): Updated.
2767         * NEWS, doc/groff.texinfo: Updated.
2769 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2771         * src/libs/libgroff/searchpath.cpp
2772         (search_path::open_file_cautious): New function which also handles
2773         `-' as stdin and stdout depending on the access mode.
2774         * src/include/searchpath.h (search_path): Updated.
2776         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2777         * src/devices/grops/ps.h: Include `searchpath.h'.
2778         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2779         Open resource file with `include_search_path.open_file_cautious'.
2780         * src/devices/grops/grops.man: Document new `-I' switch.
2782         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2783         (main), src/devices/grolj4/lj4.cpp (main),
2784         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2786         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2787         Replaced with...
2788         (include_search_path): New global variable.
2789         (include_path_append): Removed.
2790         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2791         (do_file): Simplify, using new
2792         `include_search_path.open_file_cautious'.
2794         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2795         parameter.
2796         (main): Pass arguments to `-I' to both troff and devices.
2797         Improve handling of `-V'.
2798         * src/roff/groff/groff.man: Document changes to -I and -V.
2800         * src/roff/troff/input.cpp (include_search_path): New global
2801         variable.
2802         (next_file, source, ps_bbox_request, transparent_file,
2803         process_input_file): Use new
2804         `include_search_path.open_file_cautious'.
2805         (main) Handle `-I' switch.
2806         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2807         Use new `include_search_path.open_file_cautious'.
2808         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2809         * src/roff/troff/troff.man: Document new `-I' switch.
2811 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2813         Support multiple calls of .Lb in LIBRARY section.
2815         * tmac/doc-common (doc-in-library-section): New register.
2816         (doc-section-library): New string.
2817         (Sh): Set `doc-in-library-section'.
2818         (Rd): Updated.
2819         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2820         if in LIBRARY section.
2821         * tmac/doc.tmac (doc-save-global-vars): Updated.
2822         * NEWS, tmac/groff_mdoc.man: Updated.
2824 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2826         * tmac/doc-common (doc-default-operating-system): New variable.
2827         (Os): Use it.
2829 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2831         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2833 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2835         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2836         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2837         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2838         $(DEVFILES) are not empty.
2839         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2841 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2843         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2844         with parallel runs of `make'.
2846 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2848         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2849         insert SORT_SEP.  With certain combinations of sort specifications,
2850         refer sorted entries in the wrong order.  In particular, entries
2851         with a missing field should be be sorted before all entries that
2852         have that field, before refer looks to the next field.
2854 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2856         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2857         g++ linker is used.  Reported by Mark J. Reed
2858         <mark.reed@turner.com>.
2860 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2862         Add key character `x' to tbl which makes tbl call a user-defined
2863         macro on a table cell.
2865         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2866         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2867         `set_modifier' after printing the compatibility request.
2868         (set_modifier): Print call to `m->macro' if not empty.
2869         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2870         `macro'.
2871         (process_format): Implement cases `x' and `X'.
2872         * src/preproc/tbl/tbl.man, NEWS: Updated.
2874 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2876         * doc/groff.texinfo: Minor fixes.
2878 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2880         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2882 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2884         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2885         argument list to nothing if there is no file to match.  Use `ls' as
2886         a protection, similar to autoconf.
2888         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2889         empty argument lists.
2891         * doc/groff.texinfo: Improve documentation how vertical spacing
2892         and line breaks interact.
2893         Other minor fixes.
2895         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2897 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2899         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2900         EPS (using eps2eps or similar programs to compute the bounding box).
2902 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2904         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2905         * doc/texinfo.tex: Updated from texinfo 4.6.
2906         * README.CVS: From now on we need texinfo 4.6.
2908 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2910         Add requests `dei1' and `ami1' for completeness.
2912         * src/roff/troff/input.cc (calling_mode): Remove
2913         CALLING_DISABLE_COMP.
2914         (comp_mode): New enumeration.
2915         (do_define_string, define_string, define_nocomp_string,
2916         append_string, append_nocomp_string): Updated.
2917         (do_define_macro): Add third parameter.
2918         (define_macro, define_nocomp_macro, define_indirect_macro,
2919         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2920         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2921         functions.
2922         (ignore): Updated.
2923         (init_input_requests): Add `dei1' and `ami1'.
2925         * tmac/trace.tmac: Handle de1 and am1.
2926         (de): Improve tracing message.
2927         (am): Add missing `do'.
2928         (return): Use de1.
2930         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2931         Document new requests.
2933 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2935         Add option -G to .MPIMG to insert a gap between text and the image.
2937         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2938         www-finish-left-ll): Updated.
2939         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2940         (MPIMG): Make option -L and -R optional.
2941         Implement option -G.
2943 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2945         * src/devices/grohtml/post-html.cpp
2946         (html_printer::do_file_components): Don't use `stdout' as lvalue
2947         since it can be a macro.
2949 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2951         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2952         the corresponding test in aclocal.m4.
2954 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2956         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2957         names but RGB values directly.  Otherwise pnmtopng depends on
2958         an external file `rgb.txt' which maps colour names to values.
2960 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2962         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2963         * configure, src/include/config.hin: Regenerated.
2965         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2967 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2969         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2971 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2973         * *.man: Switch to non-compatibility mode temporarily if GNU
2974         syntax extensions are used in the particular man page.
2976         * PROBLEMS: Add solutions for SGR problems.
2978 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2980         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2981         used to change the drawing scheme.
2983         * src/devives/grotty/tty.cpp (bold_flag_option,
2984         underline_flag_option, italic_flag_option, reverse_flag_option,
2985         bold_underline_mode_option): New global variables.
2986         (update_options): New function.
2987         (tty_printer::special): Call update_options.
2988         (main): Don't set xxx_flag but xxx_flag_option, then call
2989         update_options.
2991 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2993         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2995         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2996         values.
2997         (hline_char, vline_char): New global variables.
2998         (tty_printer::tty_printer): Initialize them.
2999         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
3000         horizontal and vertical lines.
3001         (crossings): New global array.
3002         (tty_printer::end_page): Use it to determine the proper crossing
3003         character for -Tutf8.
3005 2003-07-12  Werner LEMBERG  <wl@gnu.org>
3007         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
3008         (HTMLDOCFILES): Revert to `pic.html'.
3009         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
3011 2003-07-11  Werner LEMBERG  <wl@gnu.org>
3013         * doc/pic.ms: Improve documentation of absolute coordinates.
3014         Document absolute positioning of pictures.
3016         * NEWS: Add new pic capability.
3018 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
3020         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
3021         Rewritten.
3023 2003-07-07  Werner LEMBERG  <wl@gnu.org>
3025         Implement support for dashed and dotted ellipses in pic.  Based on
3026         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
3028         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
3029         common_output::dashed_ellipse, common_output::dotted_ellipse): New
3030         functions.  Ellipse arcs are approximated with circle arcs.
3031         * src/preproc/pic/common.h (common_output): Updated.
3032         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
3033         functions.
3034         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
3036         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
3038 2003-07-06  Werner LEMBERG  <wl@gnu.org>
3040         Make grotty work on platforms which have unsigned char as the
3041         default for char.  Based on a patch by Thomas Klausner
3042         <wiz@netbsd.org>.
3044         * src/devices/grotty/tty.cpp (schar): New typedef.
3045         Updated calls to declare_ptable and implement_ptable.
3046         (glyph): Use schar for back_color_idx and fore_color_idx.
3047         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
3048         (tty_printer::tty_color, tty_printer::tty_printer,
3049         tty_printer::color_to_idx, tty_printer::put_color): Updated.
3051 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
3053         * src/roff/nroff/nroff.sh: Add option -d for completeness.
3054         * src/roff/nroff/nroff.man: Updated.
3056 2003-07-05  Werner LEMBERG  <wl@gnu.org>
3058         * NEWS, tmac/groff_www.man: Updated.
3059         * doc/Makefile.sub: Updated.
3061 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
3063         Implement support for multiple HTML output files.
3065         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
3066         -j command line option.
3068         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
3069         global variables.
3070         (file): New fields `new_output_file', `require_links',
3071         `output_file_name'.
3072         (file::file): Updated.
3073         (files::set_file_name, files::set_links_required,
3074         files::are_links_required, files::is_new_output_file,
3075         files::file_name, files::next_file_name): New functions.
3076         (header_desc): New fields `no_of_level_one_headings',
3077         `header_filename'.
3078         (header_desc::header_desc): Updated.
3079         (header_desc::write_headings): Handle multiple files.
3080         (html_printer::write_header): Save file name in which header occurs.
3081         (html_printer::determine_header_level): Possibly split files on
3082         level one headings.
3083         (html_printer::do_links, html_printer::troff_tag): Updated.
3084         (html_printer::insert_split_file, html_printer::do_job_name,
3085         html_printer::emit_link, html_printer::write_navigation,
3086         html_printer::do_file_components): New functions.
3087         (html_printer::~html_printer): Handle multiple files.
3088         (main): Handle command line option `-j'.
3090         * src/devices/grohtml/grohtml.man: Updated.
3092         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
3093         which splits file.
3095         * tmac/www.tmac (JOBNAME): New macro.
3096         * tmac/s.tmac (SH-NO-TAG): New macro.
3097         (@SH): Call SH-NO-TAG.
3098         (@NH): Updated.
3100 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
3102         * tmac/groff_mdoc.man: Improve documentation of punctuation
3103         characters.
3105 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
3107         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
3109 2003-07-03  Werner LEMBERG  <wl@gnu.org>
3111         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
3113 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
3115         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
3116         after `/*' and `*/'.
3117         Fix spacing.
3118         (Fn, Fo): Reduce indentation in synopsis.
3120         * tmac/doc-common (doc-check-depth): New macro.
3121         (doc-end-macro, Sh, Ss): Use it.
3122         (Cd): Fix behaviour in synopsis.
3123         (In): Make it parsed and callable.
3124         If not in the synopsis, represent the C header file enclosed in
3125         angle brackets.
3126         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
3127         Use minus, not hyphen.
3129         * tmc/groff_mdoc.man: Updated.
3131 2003-07-01  Werner LEMBERG  <wl@gnu.org>
3133         Integrated grap2graph, contributed by Eric S. Raymond.
3135         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
3136         New files.
3137         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
3138         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
3140 2003-07-01  Colin Watson  <cjwatson@debian.org>
3142         * src/xditview/*.c: Add prototypes, fix return types, add includes.
3143         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
3145 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
3147         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
3149 2003-06-31  Werner LEMBERG  <wl@gnu.org>
3151         * doc/Makefile.sub (CLEANADD): Remove all files created by
3152         running `make groff.{pdf,dvi}'.
3154         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
3155         src/xditview also.
3157 2003-06-30  Werner LEMBERG  <wl@gnu.org>
3159         * Makefile.in (SHELL): Define as @SHELL@.
3160         (mkinstalldirs): Use $(SHELL).
3161         (MDEFINES): Add $(SHELL).
3162         * Makefile.comm (SHELL): Removed.
3164 2003-06-29  Werner LEMBERG  <wl@gnu.org>
3166         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3167         The X11 documentation files use them.
3168         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3170 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
3172         * tmac/e.tmac (@C): Handle .ad also.
3174 2003-06-12  Werner LEMBERG  <wl@gnu.org>
3176         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3178         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3179         Assign `n' even here.  It is possible to construct a node
3180         immediately following an escape character:
3182           .di xx
3183           \?\\\?a
3184           .br
3185           .di
3186           .xx
3188 2003-06-10  Werner LEMBERG  <wl@gnu.org>
3190         * README.WIN32: Removed.
3191         * MANIFEST: Updated.
3193 2003-06-07  Werner LEMBERG  <wl@gnu.org>
3195         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3197 2003-06-05  Werner LEMBERG  <wl@gnu.org>
3199         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3200         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3202 2003-06-03  Werner LEMBERG  <wl@gnu.org>
3204         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3205         is done by the calling function.
3207 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
3209         * tmac/X.tmac: Fix definition of `em'.
3211 2003-05-22  Werner LEMBERG  <wl@gnu.org>
3213         * src/roff/troff/input.cc (return_macro_request): Fix detection of
3214         argument.
3216 2003-05-18  Werner LEMBERG  <wl@gnu.org>
3218         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3219         to make items work which consist only of a tag.
3221 2003-05-17  Werner LEMBERG  <wl@gnu.org>
3223         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3224         aren't stretched in a tag (this can fail with unformatted boxes).
3225         Instead, insert a break and go back one line.
3227 2003-05-16  Werner LEMBERG  <wl@gnu.org>
3229         * src/roff/troff/input.cc (return_macro_request): If called with
3230         argument pop macro twice.  We need this to trace `return'.
3232         * tmac/trace.tmac: Handle `return'.
3233         Fix typos.
3235         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3236         Document.
3238 2003-05-15  Larry Kollar  <kollar@alltel.net>
3240         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3241         registers `FPS', `FVS', and `FPD'.
3243 2003-05-15  Werner LEMBERG  <wl@gnu.org>
3245         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3246         correctly.
3248 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
3250         * tmac/groff_mdoc.man: Slight improvements.
3252 2003-05-03  Werner LEMBERG  <wl@gnu.org>
3254         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3255         `doc-header-space' after header line if register `cR' is set.
3257 2003-05-02  Werner LEMBERG  <wl@gnu.org>
3259         * TODO: Updated.
3261 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
3263         * tmac/doc-common (Nd): Use \[em].
3265 2003-05-01  Werner LEMBERG  <wl@gnu.org>
3267         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3268         doc-footer-space): Initialize to 0.5i.
3269         (doc-setup-page-layout): Don't set doc-header-space and
3270         doc-footer-space.
3272 2003-04-30  Werner LEMBERG  <wl@gnu.org>
3274         * REVISION: Set to 1.
3276         * doc/pic.ms: Document possible problems with `figname'.
3278 2003-04-29  Werner LEMBERG  <wl@gnu.org>
3280 Version 1.19 released
3281 =====================
3283         * VERSION: Set to 1.19.
3284         * REVISION: Set to 0.
3285         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3287         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3288         Define charset as `US-ASCII' in html output.
3290         * tmac/www.tmac (ULE): Add missing scaling indicator.
3292         * win32-diffs: Removed.
3294 2003-04-28  Werner LEMBERG  <wl@gnu.org>
3296         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3297         `.da' and `.boxa'.
3298         Document how to insert discardable whitespace with `.ss'.
3300 2003-04-27  Werner LEMBERG  <wl@gnu.org>
3302         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3303         work with plain TeX also.
3305         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3307 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
3309         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3310         Use a loose DTD.
3312 2003-04-24  Werner LEMBERG  <wl@gnu.org>
3314         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3315         vbox with positive height and zero depth if in TeX mode.
3317         * NEWS: Document glyph name changes for grodvi and grolj4.
3319 2003-04-23  Werner LEMBERG  <wl@gnu.org>
3321         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3322         * doc/pic.ms: Fixed.
3324 2003-04-21  Werner LEMBERG  <wl@gnu.org>
3326         HP-UX 10.20 has `snprintf' but it isn't declared.
3328         * configure.ac: Add declaration test for snprintf.
3329         * configure: Regenerated.
3330         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3331         * src/include/config.hin: Regenerated.
3333 2003-04-19  Werner LEMBERG  <wl@gnu.org>
3335         Add keyword `figname' to pic, specifying the name of the picture
3336         box in TeX mode.  Based on a patch from William J Poser
3337         <wjposer@unagi.cis.upenn.edu>.
3339         * src/preproc/pic/pic.y: New token `FIGNAME'.
3340         (macro_name): New rule of type <str>.
3341         (placeless_element): Handle `FIGNAME'.
3342         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3343         * src/preproc/pic/main.cpp (graphname): New global variable.
3344         (do_picture): Initialize `graphname'.
3345         * src/preproc/pic/pic.h: Updated.
3346         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3347         `graphname'.
3348         Simplify TeX code.
3349         (tex_output::text): Beautify output.
3350         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3351         `shaded' and `outlined' unconditionally.
3352         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3353         Minor improvements.
3355         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3356         greater is necessary.
3358 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
3360         Add option -r to soelim to avoid emission of `.lf' lines.
3361         Add option -t to produces TeX comment lines instead of `.lf' lines.
3363         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3364         and `tex_flag'.
3365         (usage): Updated.
3366         (main): Handle `-r' and `-t'.
3367         (set_location): Handle `raw_flag' and `tex_flag'.
3368         * src/preproc/soelim/soelim.man, NEWS: Updated.
3370 2003-04-17  Werner LEMBERG  <wl@gnu.org>
3372         * tmac/hyphenex.sh: Replaced with...
3373         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3374         nightmares.
3376         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3377         if --quiet is used for the configure script.
3378         * configure: Regenerated.
3380 2003-04-16  Werner LEMBERG  <wl@gnu.org>
3382         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3383         Add `const' to second argument.
3384         (html_printer::add_table_end): Add `const' to argument.
3385         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3386         `const' to arguments.
3387         * src/devices/grohtml/html-text.h: Updated.
3389         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3390         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3391         argument.
3393         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3394         cast for integer constant.
3396         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3397         (writeNbytes): Add `const' to first argument.
3398         (writeString): Add `const' to argument.
3399         (char_buffer::can_see): Add `const' to third argument.
3400         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3401         `const' to argument.
3402         * src/preproc/html/pushback.h: Updated.
3404         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3405         (include_path_append): Add `const' to argument.
3406         (do_file): Updated.
3408         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3409         for `value'.
3410         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3411         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3412         for `value'.
3413         (unicode_decompose_init::unicode_decompose_init): Updated.
3414         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3415         for `value'.
3416         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3417         * src/roff/troff/input.cc (process_startup_file): Add `const' to
3418         argument.
3420         * tmac/hyphenex.sh: Make script more portable by using a here
3421         document.
3423 2003-04-15  Werner LEMBERG  <wl@gnu.org>
3425         Renamed all `*.cc' files to `*.cpp'.
3426         Updated all configuration files, makefiles, and documentation.
3428 2003-04-14  Werner LEMBERG  <wl@gnu.org>
3430         * tmac/hyphenex.sh: Slight improvements.
3432 2003-04-13  Werner LEMBERG  <wl@gnu.org>
3434         * font/devascii/R.proto, font/devcp1037/R.proto,
3435         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3436         character slots with unnamed glyphs.
3438         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3439         (an-first): New global variable.
3440         (an-header): Emit vertical space between multiple man pages.
3442 2003-04-11  Werner LEMBERG  <wl@gnu.org>
3444         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3445         values.
3447 2003-04-10  Werner LEMBERG  <wl@gnu.org>
3449         * PROBLEMS: Revised.
3451 2003-04-10  Bernd Warken  <bwarken@mayn.de>
3453         * doc/webpage.ms: Improved.
3455 2003-04-09  Werner LEMBERG  <wl@gnu.org>
3457         Add register \n[.height] which returns the value of \H.
3458         Add register \n[.slant] which returns the value of \S.
3460         * src/roff/troff/env.cc (init_env_requests): Implement.
3461         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3462         Document.
3464 2003-04-08  Werner LEMBERG  <wl@gnu.org>
3466         * tmac/html.tmac: Move some of the data into html-end.tmac.
3467         Remove most of the character translations for eqn since html fonts
3468         now cover those characters.
3469         Load www.tmac.
3470         * tmac/html-end.tmac: New file.
3471         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3472         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3473         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3475 2003-04-07  Werner LEMBERG  <wl@gnu.org>
3477         * man/groff_out.man: Document negative values of `N' if -Thtml is
3478         used.
3480 2003-04-06  Werner LEMBERG  <wl@gnu.org>
3482         * Makefile.comm (depend.temp): Check location of YTABC.
3484 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3486         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3487         binary path.
3488         (groff_bin_path): Rename to GROFF_BIN_PATH.
3489         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3490         * doc/Makefile.in (TROFFBIN): New variable for troff
3491         binary path.
3492         (GROFFBIN): New variable for groff binary path.
3493         (groff_bin_path): Rename to GROFF_BIN_PATH.
3494         (TROFF): Use TROFFBIN.
3495         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3496         * doc/Makefile.sub (GROFFBIN): New variable for groff
3497         binary path.
3498         (groff_bin_path): Rename to GROFF_BIN_PATH.
3499         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3501         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3502         with INSTALL_SCRIPT.
3503         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3504         * Makefile.dev (all): Depend on DEVSCRIPTS.
3505         (install_dev): Likewise.
3506         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3507         scripts.
3508         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3509         (DEVGENSCRIPTS): New variable to hold generated scripts.
3511 2003-04-05  Werner LEMBERG  <wl@gnu.org>
3513         * src/libs/libdriver/input.cc (IntArray::operator[],
3514         IntArray::get_data): Remove meaningless `const' in return value.
3516         * README.CVS: New file.
3518 2003-04-04  Werner LEMBERG  <wl@gnu.org>
3520         Check for stdint.h in C++, not in C.
3522         * aclocal.m4 (GROFF_STDINT_H): New function,
3523         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3524         AC_CHECK_HEADERS.
3525         * configure, src/include/config.hin: Regenerated.
3526         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3529         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
3530         with a negative value, representing the width of the unbreakable
3531         space (only for -Thtml).  grohtml then converts this back to
3532         &nbsp; and uses the value of N as its width.
3534         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3535         unbreakable_space_node::tprint): Emit `N-<width>'.
3536         * src/include/printer.h (printer::set_numbered_char): Make it
3537         virtual.
3538         Make members `font_table' and `nfonts' protected instead of private.
3539         * src/devices/grohtml/post-html.cc
3540         (html_printer::set_numbered_char): New member function.
3543         * src/libs/libgroff/maxfilename.cc:
3544         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3546         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3547         emit word marker.
3549 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
3551         * man/roff.man: Small fixes.
3553 2003-04-03  Werner LEMBERG  <wl@gnu.org>
3555         Make groff independent from locale's numeric settings.
3557         * configure.ac: Check for `setlocale'.
3558         * configure, src/include/config.hin: Regenerated.
3560         * src/include/lib.h: Handle HAVE_SETLOCALE.
3562         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3563         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3564         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3567         * doc/groff.texinfo: Change dir category to `Typesetting'.
3568         (Man font macros): Mention that there is no space between arguments
3569         of .BI and friends.
3571         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3572         (*printer::change_color, *printer::change_fill_color): Add missing
3573         `const'.
3575 2003-04-02  Werner LEMBERG  <wl@gnu.org>
3577         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3578         html_table::is_gap): Compute table widths after converting border
3579         positions to avoid rounding errors.
3581 2003-04-01  Werner LEMBERG  <wl@gnu.org>
3583         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3584         `space_emitted' properly.
3586 2003-03-31  Werner LEMBERG  <wl@gnu.org>
3588         * src/devices/grohtml/html-table.cc: Fix column width calculation.
3589         (html_table::set_linelength): Don't add 1.
3590         (html_table::add_indent): Don't subtract 1.
3592         * tmac/html.tmac: Set default page offset to zero.
3594 2003-03-30  Werner LEMBERG  <wl@gnu.org>
3596         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
3598         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3599         unbreakable_space_node::tprint): New functions.
3600         (troff_output_file): Make space_char_hmotion_mode::tprint and
3601         unbreakable_space_node::tprint to friends.
3602         * src/roff/troff/node.h: Updated.
3604         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
3605         in the HTML standard).
3607 2003-03-29  Werner LEMBERG  <wl@gnu.org>
3609         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3610         Otherwise, the following code
3612           .di xxx
3613           .ps 10
3614           a
3615           .br
3616           .di
3617           x\*[xxx]
3619         produces `x a' instead of `xa'.  This is a temporary fix, disabling
3620         font changes in diversions for -Thtml.
3622         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3623         `HTML-TAG'.
3624         (an-do-tag-html): Merge with ...
3625         (an-do-tag): This macro.
3626         Change code slightly to circumvent grohtml bug.
3627         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3629         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3630         html_table::is_gap): Round `width' properly.
3632         * tmac/html.tmac: Provide some default layout parameters for
3633         grohtml.
3635         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3636         command.
3638 2003-03-28  Werner LEMBERG  <wl@gnu.org>
3640         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3642 2003-03-27  Werner LEMBERG  <wl@gnu.org>
3644         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3645         defined.
3647 2003-03-20  Werner LEMBERG  <wl@gnu.org>
3649         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3650         `.vs'.
3651         * doc/groff.texinfo: Updated.
3653 2003-03-19  Werner LEMBERG  <wl@gnu.org>
3655         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3656         TOKEN_END_TRAP>: Reset `have_input'.
3658 2003-03-18  Werner LEMBERG  <wl@gnu.org>
3660         * src/roff/groff/groff.man: Mention groff_trace man page.
3662 2003-03-16  Werner LEMBERG  <wl@gnu.org>
3664         * Makefile.in (LIBEXT): New variable to indicate the file extension
3665         of library files.  Computed heuristically from $(OBJEXT).
3666         (MDEFINES): Add $(LIBEXT).
3667         * Makefile.lib, Makefile.comm: Use it.
3669         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
3670         overlong lines into smaller chunks.
3671         (get_binary): New function.
3672         (main): Use them.
3673         * src/utils/pfbtops/pfbtops.man: Updated.
3675 2003-03-15  Colin Watson  <cjwatson@debian.org>
3677         * src/roff/groff/groff.man: Minor syntax fix.
3679 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3681         * src/devices/grops/ps.cc (ps_printer::media_set,
3682         ps_printer::~ps_printer): Handle zero paper width and length.
3684 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3686         Add options -p and -l to grodvi.
3688         * src/devices/grodvi/dvi.cc: Include paper.h.
3689         (landscape_flag, user_paper_length, user_paper_width): New global
3690         variables.
3691         (dvi_printer::begin_page): Emit `papersize' special.
3692         Set color after initialization of `cur_h' and `cur_v'.
3693         (main): Add options `-l' and `-p'.
3694         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3695         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3697         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3699 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3701         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3702         * man/groff_tmac.man: This man page.
3703         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3704         deprecated.
3706         * tmac/X.tmac: Don't load pspic.tmac.
3708 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3710         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3711         by Bernd Warken <bwarken@mayn.de>.
3713         * src/include/driver.h (pr): Removed.
3715         * src/libs/libdriver/input.cc (pr): New global variable.
3716         (do_file): Deallocate `pr'.
3717         * src/libs/libdriver/printer.cc (pr): Removed.
3719         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3720         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3721         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3722         (main): Don't delete `pr'.
3724 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3726         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3727         * tmac/papersize.tmac: New file.
3728         * tmac/troffrc: Include `papersize.tmac'.
3729         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3730         * tmac/an-old.tmac: Set LT to LL by default.
3732         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3733         doc/groff.texinfo: Updated.
3735         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3736         bug which caused all odd iso papers to have wrong dimensions.
3738         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3739         (main) <'p'>: Set `user_paper_width' also.
3740         (ps_printer::media_width, ps_printer::media_height): Use values
3741         given with option `-p'.
3743 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3745         * src/include/nonposix.h: Provide default for SET_BINARY.
3747         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3748         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3749         unconditionally.
3751         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3752         (main): Treat \r\n as \n.
3754 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3756         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3757         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3759 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3761         Added support to access more than 256 glyphs in Type 1 fonts.
3763         * src/devices/grops/ps.cc (subencoding): New structure.
3764         (style): Add `sub' field.
3765         Updated all users.
3766         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3767         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3768         functions.
3769         Updated all users.
3770         (ps_printer::set_char): Use `set_subencoding'.
3771         (make_subencoding_name): New function.
3772         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3773         (ps_printer::~ps_printer): Emit subencoding definitions.
3775         * src/devices/grops/psrm.cc (valid_input_table): New array to
3776         properly support EBCDIC.
3777         (white_space): Add `\f'.
3778         (ps_get_line): Change first argument to be of type `string &'.
3779         Updated all callers.
3780         This allows to get lines of arbitrary length.
3781         Use `valid_input_table'.
3782         Remove warning about non-conforming PS line length.  This seems
3783         not to be of great importance -- for example, dvips don't emit
3784         a warning either.
3785         (PS_LINE_MAX): Removed.
3786         (matches_comment): Change first argument to be of type `string &'.
3788         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3790         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3791         %AGL_to_unicode, %default_ligatures): New hash tables.
3792         Read all map entries.
3793         Add unencoded characters.
3794         Check for default ligatures if there are no `L' entries.
3795         Print all kern entries.
3796         Print all characters in charset.
3797         * src/utils/afmtodit/afmtodit.man: Updated.
3799         * font/devps/*: Regerated all fonts.
3801         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3802         of characters, just use `.trin'.  Otherwise the mapping depends
3803         on the font encoding.
3804         * tmac/ps.tmac: Add `fi' and `fl'.
3805         Improve `Fi' and `Fl'.
3806         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3807         * tmac/Xps.tmac: Fix `em'.
3809         * NEWS: Updated.
3811 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3813         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3814         `have_input'.
3816 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3818         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3820         * font/devps/generate/textmap: Remove entry `similarequal'.
3821         * font/devps/symbolmap: Updated.
3823 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3825         * src/libs/libgroff/font.cc (font::load): Fix error message for
3826         bad character type.
3828         * src/devices/grops/grops.man: Improve documentation of the -b
3829         flag.
3831         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3832         `ascii' and `cp1047'.
3834 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3836         Document composite glyphs and the `composite' request.
3838         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3840 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3842         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3843         * font/devdvi/*EC: Updated.
3845         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3846         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3847         * tmac/troffrc: Load `composite.tmac'.
3848         * tmac/Makefile.sub (NORMALFILES): Updated.
3850         * doc/groff.texinfo (Input Encodings): New section.
3851         * NEWS: Updated.
3853 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3855         * doc/texinfo.tex: New version 2003-02-11.06.
3857         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3858         * tmac/groff_mdoc.man: Fix description of `Dt'.
3860 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3862         * font/devps/prologue.ps: Fix for included Postscript that does
3863         a setpagedevice -- which is now safely ignored.
3865         * NEWS: Updated.
3867         * src/devices/grops/ps.cc: Now sets the page size in the generated
3868         document.  This is done in two ways: Via a %%-comment for gv and
3869         the like, and via a PageSize and setpagedevice for programs that
3870         understands Postscript proper, like ps2pdf.
3872         * src/devices/grops/ps.h: New broken-flag to avoid page size
3873         definition, if required.
3875         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3877         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3878         Not really necessary due to the fix in prologue.ps, but cleaner:
3879         Such information does not belong in an .eps file.
3881         * doc/Makefile.sub: See doc/Makefile.in.
3883 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3885         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3886         instead of P1 since the latter is broken in some versions of netpbm.
3887         * configure: Updated.
3889 2003-02-26  Larry Kollar  <kollar@alltel.net>
3891         Make man pages more customizable.
3893         * tmac/an-old.tmac (FT): New register holding footer distance from
3894         bottom.
3895         (HF): New string holding the default heading font.
3896         (TH): Handle registers `IN' and `SN' set on the command line.
3897         Use `FT'.
3898         (PT, BT): New strings to customize header and footer lines.
3899         (an-header, an-footer): Use them.
3900         (SH, SS): Use `HF'.
3901         * tmac/groff_man.man: Document changes.
3903         * doc/groff.texinfo: Document man changes.
3904         Document Ultrix extensions of man.
3906 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3908         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3909         `have_input' after changing back to old environment.
3911         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3912         function up to be defined before first call.  This is necessary to
3913         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3915         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3916         the default font directory also.  Based on a patch from James
3917         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3918         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3919         * src/utils/afmtodit/afmtodit.man: Document it.
3921         * NEWS: Updated.
3923         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3925 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3927         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3928         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3929         * configure.ac: Use it.
3930         * configure: Regenerated.
3931         * Makefile.in: Updated.
3933         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3934         (CLEANADD): Add www.tmac-sed.
3935         (pnmtops_nosetpage): Define default.
3936         (install_data): Handle www.tmac-sed and substitute
3937         @PNMTOPS_NOSETPAGE@.
3938         (stamp-sed): Add www.tmac.
3939         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3940         It now breaks URLs at suitable places.
3941         (www:substring_ok): New register set by...
3942         (www:@test_substring): New macro.
3943         (www:error): New alias to www-error.
3944         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3945         New macros.
3946         (URL): Use www:url_breaks.
3947         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3948         (CDS, CDE): New macros.
3950 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3952         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3953         buffer overflow.
3955 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3957         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3958         can be negative also.
3960         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3961         `int16'.
3962         (read_char_table): Avoid negative ascenders.
3963         (output_charset): Add cast.
3964         * font/devlj4/*: Regenerated.
3966         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3967         possible.
3969         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3970         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3971         of `<>'.
3972         * font/devdvi/*: Regenerated.
3974         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3975         normal width, while the previously used characters (U+2329 and
3976         U+232A) are classified as wide due to canonical equivalence with the
3977         CJK punctuation characters U+3008 and U+3009.
3979         * font/devutf8/R.proto: Updated.
3980         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3982         * man/groff_char.man: Simplify handling of table traps by
3983         introducing `start block' and `end block' macros.
3984         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3985         (DL): Make it work with Unix troff also.
3986         Fix code values of `la' and `ra'.
3988         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3990 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3992         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3993         New destructor, fixing a major memory leak.
3995 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3997         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3998         to be in conformance with Unicode 3.0 and newer.
4000         * font/devlj4/generate/text.map: Add `Eu'.
4001         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
4002         * font/devlj4/S: Regenerated.
4004         * man/groff_char.man: Completely rewritten.
4006         * doc/groff.texinfo: Fix description of request and macro arguments.
4008 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
4010         Valgrind fixes.
4012         * src/devices/grohtml/html-table.cc (html_table::~html_table):
4013         Deallocate `columns' list.
4014         * src/devices/grohtml/post-html.cc (char_block::~char_block):
4015         New destructor.
4016         (text_glob::text_glob_html, text_glob::text_glob_special,
4017         text_glob::text_glob_line, text_glob::text_glob_auto_image,
4018         text_glob::text_glob_tag): Avoid memory leaks.
4019         (text_glob::remember_table): Free memory before reassigning.
4021 2003-02-19  Werner LEMBERG  <wl@gnu.org>
4023         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
4024         alias `hbar'), the Planck constant over two pi.
4026         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
4027         `+e' for position 34.
4028         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
4029         `u2662' and `u2661'.
4030         * font/devdvi/{MI,S}: Regenerated.
4031         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
4032         * font/devlbp/*: Add `hbar' alias.
4033         * font/devlj4/generate/special.map: Ditto.
4034         * font/devlj4/S: Regenerated.
4035         * font/devps/generate/symbolchars: Add `+e'.
4036         * font/devps/generate/textmap: Fix PS name for `-h'.
4037         Add `hbar' alias.
4038         * font/devps/symbolmap: Regenerated.
4040         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
4042         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
4043         `-h', `hbar'.
4044         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
4045         `-h'.
4047         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
4048         `hbar'.
4049         * tmac/tty-char.tmac: Add `+e'.
4051 2003-02-17  Werner LEMBERG  <wl@gnu.org>
4053         Another round trying to really fix problems with `have_input'.
4055         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
4056         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
4058         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
4059         handling if both foreground and background colors are default.
4061         * doc/groff.texinfo (Debugging): Document .lf differences to
4062         AT&T troff.
4064 2003-02-16  Werner LEMBERG  <wl@gnu.org>
4066         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
4067         null-bytes in created string.
4069         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
4070         alias_macro, lookup_request): Improve warning messages.
4072         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
4073         not `strdup'.
4074         Free `last_image_filename'.
4076         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
4077         `buffer'.
4078         (imageList::createPage, imageList::createImage): Use `free', not
4079         `a_delete'.
4080         (imageItem::~imageItem): Free `imageName'.
4081         (addRegDef): Use `strsave', not `strdup'.
4082         (get_resolution): Free `pathp'.
4084 2003-02-15  Werner LEMBERG  <wl@gnu.org>
4086         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
4087         to `dummy'.
4089 2003-02-14  Werner LEMBERG  <wl@gnu.org>
4091         Add memory management for colors to deallocate unnamed colors
4092         properly.
4094         * src/include/color.h (color): New members `free_list' and `next'.
4095         New member functions `new' and `delete'.
4096         Add destructor.
4097         * src/libs/libgroff/color.cc: Implement it.
4099         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
4100         for array size of new operator.
4102         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
4103         redundant comparison.
4105         * src/roff/troff/input.cc (word_space_node::reread,
4106         hmotion_node::reread): Avoid warning about unused parameter.
4107         (reset_output_registers): Remove redundant parameter.
4108         (define_color): Undo change 2003-02-12.
4110         * src/roff/troff/reg.h: Updated.
4112         * src/roff/troff/node.cc (troff_output_file::really_print_line,
4113         output_file::put_filename, real_output_file::really_put_filename,
4114         ascii_output_file::really_print_line,
4115         break_char_node::get_hyphen_list): Avoid warning about unused
4116         parameter.
4117         (suppress_node::tprint): Updated.
4119         * configure.ac: Check declaration for rand() and srand().
4120         * configure: Regenerated.
4122         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
4123         conditionally.
4124         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
4125         and srand().
4127         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
4128         to avoid compiler warnings.
4130         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
4131         unused.
4133         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
4134         is unused.
4135         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
4136         (unused) parameter.
4137         Updated all callers.
4139         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
4140         is unused.
4141         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
4142         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
4144         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
4145         Parameter is unused.
4146         (html_printer::add_table_end): Define parameter conditionally.
4147         * src/devices/grohtml/output.cc (simple_output::special): Parameter
4148         is unused.
4150         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
4151         (lbp_printer::set_char): Last parameter is unused.
4153         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
4155 2003-02-13  Werner LEMBERG  <wl@gnu.org>
4157         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
4158         Make \D'f ...' move horizontally again for backwards compatibility.
4159         Replace it with \D'Fg ...' where appropriate to avoid dependency
4160         on horizontal resolution.
4162         * src/roff/troff/input.cc (do_get_long_name): New function.
4163         (get_long_name): Call it.
4165         (read_draw_node): Handle `\D'Fx ...' by calling ...
4166         (read_color_draw_node): New function.
4168         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4169         `end'.
4170         Pass it to `do_get_long_name' which is used instead of
4171         `get_long_name'.
4173         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4174         unnecessary value guard.
4175         (parse_D_command) <'f'>: Add horizontal shift.
4177         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4178         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4179         (FILL_MAX): Removed.
4181         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4182         Updated.
4184 2003-02-12  Werner LEMBERG  <wl@gnu.org>
4186         * src/roff/troff/input.cc (do_name_test, do_expr_test,
4187         do_zero_width): Push `\n' if closing delimiter is missing.
4189         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4190         <'F'>: Make \F non-transparent at the beginning of line.
4191         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4192         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4193         `have_input'.
4195         (define_color): Free color in case of reassignment.
4197         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4198         @DefescListEnd): Use @Var, not @var.
4199         Fix all calls.
4201         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4203         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4204         `shaded' and `outlined' arrays.
4205         (object_spec::object_spec): Initialize `shaded' and `outlined'.
4206         (graphic_object::set_fill_color, graphic_object::set_outline_color):
4207         Use strsave.
4208         (closed_object::set_fill_color): Ditto.
4209         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4210         instead of strdup.
4211         (troff_output::reset_color): Use a_delete instead of free.
4212         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4214 2003-02-11  Werner LEMBERG  <wl@gnu.org>
4216         * doc/groff.texinfo: Improve documentation of `ad'.
4217         Document that \D'f...' is dependent on the horizontal resolution.
4218         * man/groff_diff.man: Improve documentation of \D'f...'.
4220         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4221         compensating \h'...' for \D'f ...' since the latter no longer moves
4222         current position.
4223         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4225 2003-02-10  Werner LEMBERG  <wl@gnu.org>
4227         Improve error messages for `x F' (and `F') commands.
4229         * src/include/error.h: Add declaration for
4230         `current_source_filename'.
4231         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4232         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4233         parameter for source file string.
4234         Updated all callers.
4236         * src/libs/libdriver/input.cc: Add `current_source_filename'.
4237         (remember_source_filename): New function.
4238         (parse_x_command <'F'>, do_file <'F'>): Use it.
4240 2003-02-09  Werner LEMBERG  <wl@gnu.org>
4242         Make grotty not emit warnings about unknown colors more than
4243         necessary.
4245         * src/devices/grotty/tty.cc: Include `ptable.h'.
4246         (TTY_MAX_COLORS): Removed.
4247         (DEFAULT_COLOR_IDX): Defined to -1.
4248         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4249         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4250         Change `tty_colors' to be a ptable.
4251         First arg of `put_color' is now `char'.
4252         New functions `make_rgb_string' and `tty_color'.
4253         (tty_printer::tty_printer): Use `tty_color'.
4254         (tty_printer::color_to_idx): Return value is now `char'.
4255         Use `tty_color'.
4257         * src/include/color.h (color): Add `print_color' member function.
4258         * src/libs/libgroff/color.cc (color::print_color): Implement it.
4260 2003-02-08  Werner LEMBERG  <wl@gnu.org>
4262         Valgrind fixes.
4264         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4265         encoding file.
4267         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4268         assume that value has been allocated with `new[]', thus use
4269         `a_delete' for deallocation.
4271         * src/libs/libdriver/input.cc (get_integer_arg,
4272         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4273         where appropriate.
4275         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4276         * src/libs/libgroff/nametoindex.cc
4277         (character_indexer::named_char_index): Use `new <type>[1]'.
4279         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4280         <type>[1]'.
4281         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4282         (split_text): Use `a_delete'.
4284         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4285         <type>[1]'.
4287         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4288         harmless memory leak.
4289         (hyphen_trie::read_patterns_file): Initialize `buf'.
4290         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4291         Initialize `current_fill_color'and `current_glyph_color'.
4292         * src/roff/troff/glyphuni.cc
4293         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4294         * src/roff/troff/uniuni.cc
4295         (unicode_decompose_init::unicode_decompose_init): Ditto.
4296         * src/roff/troff/uniglyph.cc
4297         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4299 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4301         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4302         `access' before calling `unlink'.
4303         (do_file): Handle __EMX__.
4305         * src/include/nonposix.h: Handle __EMX__.
4307         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4308         (fontpath,tmacpath): Use it.
4309         (MDEFINES): Add it.
4310         Sorted alphabetically.
4312         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4313         @SEP@.
4314         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4315         @SEP@.
4317 2003-01-27  Werner LEMBERG  <wl@gnu.org>
4319         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4320         New files, copied from gnulib.
4321         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4322         * configure.ac: Updated.
4323         * configure: Regenerated.
4325         * src/include/config.hin: Regenerated.
4326         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4327         Don't define `strcasecmp' as `strcmp'.
4328         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4329         Dont define `strncasecmp' as `strncmp'.
4331         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4332         Removed.
4334 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4336         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4337         s/unline/unlink/.
4339 2003-01-25  Werner LEMBERG  <wl@gnu.org>
4341         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4343 2003-01-24  Werner LEMBERG  <wl@gnu.org>
4345         Add US-english hyphenation exceptions (converted from Barbara
4346         Beeton's hyphenation exception log reports which appear irregularly
4347         in TUGBoat).
4349         * tmac/hyphen.us: Updated to latest version.
4350         * tmac/README: Updated.
4351         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4352         * tmac/troffrc: Load `hyphenex.us'.
4353         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4354         * doc/groff.texinfo: Updated.
4356 2003-01-23  Werner LEMBERG  <wl@gnu.org>
4358         Improve hyphenation slightly.  This is a first step in redesigning
4359         the hyphenation algorithm to make it more flexible (e.g. allowing
4360         kerns and ligatures between the hyphenation character and the
4361         following character -- while not used normally in English, other
4362         languages like German would benefit).
4364         * src/roff/troff/env.cc (environment::hyphenate_line): Use
4365         assertion instead of if-clause.
4366         Let `get_hyphen_list' return the number of involved characters in
4367         the hyphenation pattern instead of computing it directly (which
4368         often yields too small values).
4369         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4370         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4371         parameter.
4373 2003-01-22  Werner LEMBERG  <wl@gnu.org>
4375         Fixing a bug which caused groff to hang if the hyphenation exception
4376         dictionary tried to grow.
4378         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4379         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4380         pointer to dictionary.
4382 2003-01-20  Werner LEMBERG  <wl@gnu.org>
4384         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4385         negative left italic correction.
4386         * src/utils/afmtodit/afmtodit.man: Document it.
4388         * font/devps/generate/Makefile (RFLAG): Add `-m'.
4389         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4390         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4392         * NEWS: Updated.
4394 2003-01-16  Werner LEMBERG  <wl@gnu.org>
4396         * NEWS: Updated.
4398 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
4400         * src/preproc/refer/refer.man: Mention REFER environment variable.
4402 2003-01-05  Werner LEMBERG  <wl@gnu.org>
4404         Similar to \[is], the square root glyph (\[sr]) and the square root
4405         extension glyph (\[radicalex]) are now text symbols.  The new
4406         mathematical versions are called \[sqrt] and \[sqrtex],
4407         respectively.
4409         * font/devX*/S: Regenerated.
4410         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4411         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4412         * font/devdvi/EX, font/devdvi/S: Regenerated.
4413         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4414         * font/devlj4/generate/special.map: Add `sqrt'.
4415         * font/devlj4/S: Regenerated.
4416         * font/devps/generate/textmap: Add `sqrt'.
4417         * font/devps/S, font/devps/symbolmap: Regenerated.
4419         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4420         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4421         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4422         overlap horizontally.
4424         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4425         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4426         Fix `radicalex'.
4428         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4429         and `sqrtex' are overlapping glyphs.
4431 2003-01-04  Werner LEMBERG  <wl@gnu.org>
4433         * font/devdvi/generate/texsy.map: Add `is'.
4434         * font/devps/symbolmap: Regenerated.
4435         * font/devdvi/*TC, MI, S: Regenerated.
4437         * tmac/dvi.tmac: Remove `is'.
4439 2003-01-03  Werner LEMBERG  <wl@gnu.org>
4441         `is' is now a text symbol (only relevant for dvi).  The math variant
4442         can be accessed with `integral'.
4444         * font/devX*/S: Regenerated.
4445         * font/devdvi/generate/texex.map: Remove `is'.
4446         * font/devdvi/EX: Updated.
4447         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4448         * font/devlj4/generate/special.map: Ditto.
4449         * font/devlj4/S: Regenerated.
4450         * font/devps/generate/textmap: Add `integral'.
4451         * font/devps/S: Regenerated.
4453         * tmac/dvi.tmac: Define `is'.
4455         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4457         * src/preproc/tbl/main.cc (process_format): Fix error message.
4459 2003-01-02  Werner LEMBERG  <wl@gnu.org>
4461         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4462         * font/devps/textmap: Fix entries for `ne' and `nc'.
4463         * font/devps/symbolmap: Regenerated.
4465         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4466         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4467         `38', `58', `78', `-+', `|=', `nc', `ne'.
4469         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4470         Use `schar' for `aq'.
4471         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4472         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4473         * tmac/tty.tmac: Add `ne'.
4475         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4476         for fallback glyphs.
4478 2002-12-29  Werner LEMBERG  <wl@gnu.org>
4480         Add glyph `|='.
4482         * font/devX*/*: Regenerated.
4483         * font/devdvi/generate/ec.map: Remove `eq'.
4484         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4485         Assign `|=' to position 39.
4486         * font/devdvi/*EC, S: Regenerated.
4487         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4488         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4489         Assign `|=' to position 549.
4490         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4491         `equalmath'.
4492         Add `uni2243' for `|='.
4494         * tmac/ec.tmac: Add `eq'.
4495         * tmac/dvi.tmac: Add `=~'.
4496         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4497         `|='.
4499 2002-12-21  Werner LEMBERG  <wl@gnu.org>
4501         * font/devdvi/generate/tc.map: Remove `**'.
4502         * font/devdvi/*TC: Regenerated.
4503         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4504         `78', `<<', `>>'.
4505         * font/devutf8/NOTES: Updated.
4507         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4508         Don't give default parameter to `set_macro'.
4509         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4510         instead of `set_macro'.
4511         (charinfo::setx_macro): Implement it.
4512         (charinfo::set_macro): Don't change `mode'.
4514         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4515         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4516         * tmac/dvi.tmac: Define `!=' with `.schar'.
4518 2002-12-20  Werner LEMBERG  <wl@gnu.org>
4520         * font/devX*/S: Regenerated.
4521         * font/devdvi/generate/ec.map: Remove `pl'.
4522         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4523         * font/devdvi/*{TC,EC}: Regenerated.
4524         * font/devhtml/R.proto: Add `-+'.
4525         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4526         * font/devlbp/*: Remove `or'.
4527         * font/devlj4/generate/special.map: Remove `or'.
4528         * font/devlj4/S: Regenerated.
4529         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4530         `seveneighths', `threeeighths'.
4531         Remove `plusmath'.
4532         Replace `minusplus' with `uni2213'.
4533         * font/devps/symbolmap: Regenerated.
4534         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4535         Add `-+'.
4537         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4538         function.
4539         * src/roff/troff/node.cc (troff_output_file::put_char_width):
4540         Call glyph_color and fill_color even if tcommand_flag isn't set.
4541         (make_node, node::add_char): Check not ci->is_fallback but
4542         ci->is_normal.
4544         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4545         * tmac/ec.tmac: Add .rchar entry for `f/'.
4546         Don't remove `12', `14', `34'.
4547         Define `pl' to be always roman.
4548         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4549         Define `18', `38', `58', `78'.
4550         * tmac/tty.tmac: Add `-+'.
4551         * tmac/dvi.tmac: Define `f/'.
4552         (dvi-frac): Use `f/'.
4553         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4554         Define `18', `38', `58', `78'.
4556 2002-12-15  Colin Watson  <cjwatson@debian.org>
4558         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4560 2002-12-10  Werner LEMBERG  <wl@gnu.org>
4562         Add glyph `tno', a textual variant of `no'.
4564         * font/devX*/*: Regenerated.
4565         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4566         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4567         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4568         * font/devdvi/*: Regenerated.
4569         * font/devlbp/*: Add `tno'.
4570         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4571         * font/devlj4/*: Regenerated.
4572         * font/devps/generate/textmap: Replace `no' with `tno'.
4573         * font/devps/generate/symbolchars: Add `no'.
4574         * font/devps/*: Regenerated.
4576         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4578         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4579         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4581         * NEWS: Updated.
4583         * tmac/dvi.tmac: Replace most `\\' with `\E'.
4584         Add definition for `sd'.
4585         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4587         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4589 2002-12-08  Werner LEMBERG  <wl@gnu.org>
4591         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4592         mode to avoid rounding errors.
4593         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4595         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4596         src/roff/troff/troff.man: Improve documentation of -T.
4598 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
4600         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4601         (run_pipeline) [_WIN32]: Provide working function without `fork'.
4603 2002-12-06  Werner LEMBERG  <wl@gnu.org>
4605         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4606         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4607         Scaling Euro.sansserif glyphs down to have the same height as
4608         digits.
4609         Removed unnecessary points; added some extrema.
4611         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4612         Regenerated.
4614 2002-12-04  Werner LEMBERG  <wl@gnu.org>
4616         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4617         and `Euro.symbol.bold.slanted'.
4618         Improve some glyph offsets and widths.
4619         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4620         Regenerated.
4621         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4622         typo.
4623         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4624         direcory.
4626         * tmac/europs.tmac: Updated to new glyph indices.
4627         Use Euro.symbol for font familiy `A'.
4629         * doc/groff.texinfo: Minor improvements.
4631 2002-12-02  Werner LEMBERG  <wl@gnu.org>
4633         * font/devdvi/generate.tc.map: s/%O/%0/.
4634         * font/devdvi/*TC: Regenerated.
4636         * src/roff/troff/div.cc (init_div_requests): Sorted.
4638         * tmac/dvi.tmac: Remove `Ye'.
4639         * tmac/ec.tmac: Remove `Ye'.
4640         Add .rchar entry for `de'.
4642         * man/groff.man, man/groff_diff.man: Document register `.pe'.
4643         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4644         * NEWS: Updated.
4646 2002-11-30  Werner LEMBERG  <wl@gnu.org>
4648         Add PS font for various Euro glyphs.
4650         * font/devps/generate/freeeuro.sfd: New master font file for
4651         pfaedit.
4652         * font/devps/generate/sfdtopfa.pe: New conversion script for
4653         pfaedit.
4654         * font/devps/generate/Makefile (FONTS): Add `EURO'.
4655         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4656         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4657         `freeeuro.sfd'.
4658         * font/devps/EURO: Generated from `freeeuro.afm'.
4659         * font/devps/download: Add `freeuro.pfa'.
4660         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4661         `freeeuro.pfa'.
4663         * tmac/europs.tmac: New file.
4664         * tmac/ps.tmac: Include `europs.tmac'.
4665         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4667 2002-11-29  Werner LEMBERG  <wl@gnu.org>
4669         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4670         * font/devdvi/S: Regenerated.
4671         * font/devhtml/R.proto: Fix `CR' and `ci'.
4672         Add `OK'.
4673         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4674         Remove `bs'.
4675         * font/devps/symbolmap: Regenerated.
4676         * font/devutf8/R.proto: Fix `CR' and `ci'.
4677         Add `OK'.
4678         * font/devutf8/NOTES: Updated.
4680         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4681         `ci'.
4682         Add `OK'.
4683         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4685         * tmac/dvi.tmac: Add `lh' and `rh'.
4686         * tmac/Xps.tmac: Fix `lh' and `rh'.
4687         * tmac/X.tmac: Add `OK'.
4688         * tmac/lj4.tmac: Ditto.
4690 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4692         * font/devX*/S: Regenerated.
4693         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4694         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4695         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4696         * font/devdvi/S: Regenerated.
4697         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4698         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4699         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4700         `bracketleftbt', `bracketrighttp', `bracketrightex',
4701         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4702         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4703         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4704         `rb', and `bv'.
4705         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4706         * font/devutf8/NOTES: Updated.
4707         * font/devlj4/generate/special.map: Add glyph `braceex'.
4708         * font/devlj4/S: Regenerated.
4710         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4712 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4714         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4715         and `vA'.
4716         Fix code for `an'.
4717         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4719         * doc/texinfo.tex: New version from texinfo 4.3.
4720         * doc/groff.texinfo: Updated for texinfo 4.3.
4721         Use @tie{} where appropriate.
4722         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4723         * font/devdvi/generate/tc.map: Remove `rn'.
4724         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4725         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4726         Fix code for `an'.
4727         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4728         font/devX75-12/*: Regenerated.
4730         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4731         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4732         Improve definition of `an'.
4733         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4734         `ru'.
4735         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4736         * tmac/X.tmac: Add definition for `or'.
4737         * tmac/Xps.tmac: Undo change 2002-11-05.
4738         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4740 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4742         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4743         call flush_tbuf.
4745 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4747         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4748         defines a glyph which is searched after the check for fonts declared
4749         with `.special' (and before the check for all mounted special
4750         fonts).  `fschar' defines a glyph for a particular font which is
4751         searched after the check for fonts declared with `.fspecial' (and
4752         before the check for fonts declared with `.special').  `rfschar'
4753         removes glyphs defined with `fschar'.
4755         * src/roff/troff/token.h (char_mode): New enum.
4756         Declare do_define_character.
4757         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4758         `mode'.
4759         (charinfo::is_fallback): Updated.
4760         (charinfo::is_special): New method.
4761         * src/roff/troff/input.cc (do_define_character): Add and use
4762         optional second parameter used as a prefix for font-specific glyph
4763         names.
4764         (define_character, define_fallback_character): Updated.
4765         (define_special_character): New function.
4766         (init_input_requests): Add `schar'.
4767         (charinfo::charinfo, charinfo::set_macro): Updated.
4768         * src/roff/troff/node.cc: Include `stringclass.h'.
4769         (make_glyph_node): Handle special glyphs defined with `.schar' and
4770         `.fschar'.
4771         (define_font_special_character, remove_font_special_character): New
4772         functions.
4773         (init_node_requests): Sorted.
4774         Add `fschar' and `rfschar'.
4775         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4776         Document new requests.
4778         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4779         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4781 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4783         Added new font `SC' (cmtex10) to devdvi.
4785         * devdvi/generate/Makefile (FONTS): Add `SC'.
4786         (SC): New rule.
4787         * devdvi/generate/textex.map: New map file for cmtex.
4788         * devdvi/SC: New.
4789         * devdvi/Makefile.sub (DEVFILES): Updated.
4790         * tmac/dvi.tmac: Add fspecial entries for SC.
4791         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4792         found before `S' since the font position of `SC' is lower due to the
4793         gaps in DESC's `font' line.
4794         * tmac/ec.tmac: Add a `special' call.
4795         * NEWS: Updated.
4797         * font/devhtml/R.proto: Remove double entry for `ti'.
4798         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4799         * tmac/tty-char.tmac: Remove entry for `bq'.
4800         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4801         * tmac/ec.tmac: Don't remove `aq' glyph.
4802         * tmac/X.tmac: Fix entry for `em'.
4803         Add entries for `fo' and `fc'.
4804         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4806         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4807         documentation of `special' and `fspecial' requests.
4809 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4811         * font/devascii/R.proto, font/devcp1047/R.proto,
4812         font/devlatin1/R.proto: Remove entry for `.i'.
4813         * font/devdvi/generate/textt.map: Add entry for `ad'.
4814         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4815         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4816         We need this for getting kerning values to compose `/l' and `/L'.
4817         * font/devdvi: Regenerated font definition files for CM fonts.
4818         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4819         * font/devutf8/R.proto: Ditto.
4820         Remove double entry for `ti'.
4822         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4823         for (groff) ligatures, `la', and `ra'.
4824         Add "'C", "'c", `IJ', and `ij'.
4825         Remove double entry for `ti'.
4826         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4827         double entries.
4828         Add "'C", "'c", `IJ', and `ij'.
4829         Fix entries for (groff) ligatures, `la', and `ra'.
4831         * tmac/ps.tmac (ps-achar): New macro.
4832         Define "'c" and "'C".
4833         * tmac/tty.tmac: Add entry for `.i'.
4834         * tmac/X.tmac (X-achar): New macro.
4835         Define "'c", "'C", and `:Y'.
4836         Add entries for `IJ' and `ij'.
4837         * tmac/Xps.tmac (Xps-achar): New macro.
4838         Define "'c" and "'C".
4839         Add entries for `IJ' and `ij'.
4840         * tmac/lbp.tmac (lbp-achar): New macro.
4841         Add fallback characters for all groff ligatures and many other
4842         glyphs.
4843         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4844         Add entries for `/l' and `/L'.
4845         Define "'c" and "'C".
4846         Add entries for `IJ' and `ij'.
4848 2002-11-02  Larry Kollar  <kollar@alltel.net>
4850         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4852 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4854         Adding support for composite glyphs: \[xxx yyy ...] and the
4855         `composite' request.
4857         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4858         to Unicode-based glyph names.
4859         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4860         glyph names to groff glyph names.
4861         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4862         Unicode-based glyph names.
4863         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4864         for handling Unicode glyph names.
4865         * src/roff/troff/input.cc: Include unicode.h.
4866         (composite_glyph_name): New function.
4867         (token::next) <'['>: Handle Unicode glyph names and composite
4868         glyphs.
4869         (composite_dictionary): New dictionary for the `composite' request.
4870         (composite_request): Implement `composite' request.
4871         (init_input_requests): Add `composite'.
4872         Alphabetically sorted.
4873         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4874         commented out).
4875         (init_env_requests): Alphabetically sorted.
4876         Removed `tas' and `tar' (already commented out).
4877         * src/roff/troff/Makefile.sub: Updated.
4879 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4881         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4882         of options.
4884 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4886         Fix computation of .trunc register.  Additionally, its value (and
4887         the value of the .ne register) is now always set before entering the
4888         trap.
4890         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4891         `needed_space' before calling `space'.
4892         (top_level_diversion::space): Remove special code for 'sp before the
4893         first page.
4894         Call `begin_page' with the discarded space as a parameter.
4895         (top_level_diversion::begin_page): Add optional parameter to set
4896         `truncated_space'.
4897         * src/roff/troff/div.h: Updated.
4899         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4900         \n[.ne].
4902         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4903         (LP): Remove superfluous call to `br'.
4904         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4905         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4907 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4909         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4910         (doc-setup-header): Don't set page register `%'.
4911         * tmac/doc-nroff: Remove variable `C'.
4912         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4913         (doc-setup-header): Don't set page register `%'.
4914         Don't call `bp'.
4915         * tmac/doc-common (doc-header): Call `ns'.
4916         (doc-paragraph): Protect .sp with .br so that it survives traps
4917         possibly set by the user.
4918         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4920         * tmac/doc*: Replace ' with . for consistency if no effect.
4922 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4924         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4925         so that it survives traps possibly set by the user.
4927         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4928         (troff_output_file::set_font): Call flush_tbuf if necessary.
4929         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4930         flush_tbuf and do_motion only if necessary.
4931         (troff_output_file::start_special,
4932         troff_output_file::put_char_width, troff_output_file::put_char,
4933         troff_output_file::draw): Updated.
4934         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4935         vmotion_node::tprint): Undo change 2002-10-23.
4937 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4939         * tmac/www.tmac (DC): Fix case of overlapping images.
4941 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4943         * src/roff/troff/node.cc (troff_output_file::fill_color,
4944         troff_output_file::glyph_color): Set current color before testing
4945         color_flag.
4946         (troff_output_file::put_char_width, troff_output_file::put_char,
4947         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4948         before glyph_color.
4949         (troff_output_file::file_color, troff_output_file::glyph_color):
4950         Call do_motion.
4951         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4952         vmotion_node::tprint): Move first, then call fill_color.
4954 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4956         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4957         possible to use multiple main macro packages.
4959 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4961         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4962         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4963         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4964         is set.
4965         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4966         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4968 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4970         * NEWS, doc/webpage.ms: Updated.
4972 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4974         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4975         troff_output_file::put_char, troff_output_file::fill_color,
4976         troff_output_file::glyph_color): Handle case where color pointer
4977         is null.
4979 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4981         Add the new -r option to grotty.  It is similar to the -i option
4982         except it tells grotty(1) to use the "reverse video" attribute to
4983         render italic fonts.
4985         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4986         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4987         (tty_printer::make_underline, tty_printer::put_color,
4988         tty_printer::end_page): Use it.
4989         (main): Add -r switch.
4990         (usage): Updated.
4991         * src/devices/grotty/grotty.man: Document it.
4993 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4995         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4996         cast to `unsigned char' to properly read patterns with 8bit
4997         characters.
4999 2002-10-08  Werner LEMBERG  <wl@gnu.org>
5001         * REVISION: Increased to 2.
5003 Version 1.18.1 released
5004 =======================
5006 2002-10-08  Werner LEMBERG  <wl@gnu.org>
5008         * doc/webpage.ms, NEWS: Updated.
5010 2002-10-07  Werner LEMBERG  <wl@gnu.org>
5012         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
5013         suppress additional whitespace after the header.
5015         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
5016         with NetBSD.
5018         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
5020 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
5022         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
5023         (Dt): Use it to improve language localization (especially Russian
5024         and French).
5026 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
5028         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
5029         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
5030         drawing commands.
5031         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
5032         curve type.
5033         Call `picurve' for BSPLINE.
5034         (HGPrintElt): Handle BSPLINE.
5035         * src/preproc/grn/README: Document it.
5037 2002-10-03  Werner LEMBERG  <wl@gnu.org>
5039         * src/roff/troff/node.cc (break_char_node::col): New variable.
5040         Updated constructor.
5041         (space_node::tprint, word_space_node::tprint): Call `fill_color'
5042         unconditionally.
5043         (space_node::space_node): Remove assertion.
5044         (break_char_node::add_self): Pass color argument to space node.
5045         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
5046         Ditto.
5047         * src/roff/troff/env.cc (environment::do_break,
5048         environment::add_padding): Ditto.
5050 2002-10-02  Werner LEMBERG  <wl@gnu.org>
5052         Redesigning color support in troff.  Colors are no longer
5053         represented as separate nodes but are now part of glyph nodes and
5054         friends.  This fixes the current formatting misbehaviour due to the
5055         changes introduced on 2002-09-20.  Some extra code is necessary for
5056         proper grotty support: Without adding color variables to
5057         space-related nodes, the background color would be changed too late.
5059         * src/roff/troff/node.h, src/roff/troff/node.cc:
5060         s/current_pagecolor/current_fill_color/.
5061         s/current_glyphcolor/current_glyph_color/.
5062         (glyph_color_node, fill_color_node): Removed.
5063         (node::get_glyph_color, node::get_fill_color): New virtual member
5064         functions.
5065         (space_node::col): New variable.
5066         Updated constructors of space_node and derived classes accordingly.
5067         (hmotion_node::col): New variable.
5068         Updated constructors of hmotion_node and space_char_hmotion_node
5069         accordingly.
5070         (vmotion_node::col): New variable.
5071         Updated constructor accordingly.
5072         (draw_node::gcol, draw_node::fcol): New variables.
5073         Updated constructor accordingly.
5074         (special_node::gcol, special_node::fcol): New variables.
5075         Updated constructors accordingly.
5076         (troff_output_file::put_char, troff_output_file::put_charwidth,
5077         troff_output_file::draw): Set glyph and fill color.
5078         (troff_output_file::start_special): Set glyph and fill color.
5079         Always set current font.
5080         (troff_output_file::fill_color, troff_output_file::glyph_color):
5081         Don't call `do_motion'.
5082         (glyph_node::gcol, glyph_node::fcol): New variables.
5083         Updated constructors of glyph_node and ligature_node accordingly.
5084         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
5085         member functions.
5086         (glyph_node::merge_glyph_node,
5087         kern_pair_node::add_discretionary_hyphen,
5088         node::add_discretionary_hyphen): Updated.
5089         (break_char_node::merge_self): Updated.
5090         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5091         vmotion_node::tprint): Handle color.
5092         (make_glyph_node, make_node, node::add_char): Updated.
5094         * src/roff/troff/env.cc (environment::space_newline,
5095         environment::space, environment::output_line, environment::do_break,
5096         environment::make_tab_node, environment::add_padding, title):
5097         Updated.
5098         (environment_switch, environment_copy): Don't add color nodes.
5100         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
5101         nothing.
5102         (token::next): Updated.
5103         \m and \M now are as transparent as \s.
5104         (process_input_stack, token::add_to_node_list, token::process,
5105         read_draw_node): Updated.
5106         (charinfo_to_node_list): Don't add color nodes.
5108         * doc/groff.texinfo: Updated.
5110 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
5112         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
5113         strings.
5115 2002-09-27  Colin Watson  <cjwatson@debian.org>
5117         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
5119 2002-09-23  Werner LEMBERG  <wl@gnu.org>
5121         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
5122         appropriate.
5123         (DEFAULT_LINEWIDTH_FACTOR): New macro.
5124         (linewidth_factor): New global variable.
5125         (lbp_printer::set_line_thickness): Fix case for size < 0, using
5126         linewidth_factor.
5127         (long_options): Add -w/--linewidth option.
5128         (usage): Updated.
5129         (main): Handle -w option to set linewidth_factor.
5130         (lbp_printer::lbp_printer): Initialize req_linethickness, not
5131         line_thickness.
5133         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
5135 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
5137         Fixed a bug in the line thickness setting code.
5139         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
5140         variable.
5141         (lbp_printer::set_line_thickness): Pass environment as second
5142         parameter.
5143         Implement it actually.
5144         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
5145         and `set_line_thickness, depending on the current font size.
5147 2002-09-21  Werner LEMBERG  <wl@gnu.org>
5149         Some Debian patches.
5151         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
5152         * src/roff/troff/node.cc (bracket_node::copy): Initialize
5153         `list->last'.
5155 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5157         * configure: Regenerated with autoconf 2.54.
5159 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5161         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
5162         glyph_color.
5163         Rename cur_fill_color to fill_color.
5164         * src/roff/troff/env.cc: Updated.
5166 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5168         * src/roff/troff/env.cc (title): Copy color status after processing
5169         title.
5170         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
5171         fill color nodes to reset colors properly.
5173         * tmac/www.tmac (DC): Fix color handling.
5175         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
5176         * doc/groff.texinfo: Fixing documentation of `tl' request.
5177         * doc/webpage.ms: Updated.
5179 2002-09-19  Werner LEMBERG  <wl@gnu.org>
5181         * src/roff/troff/env.cc (environent_switch, environment_copy):
5182         Emit glyph and fill color nodes to initialize colors properly.
5184 2002-09-17  Colin Watson  <cjwatson@debian.org>
5186         * src/roff/troff/env.cc (environment::set_glyph_color,
5187         environment::set_fill_color): Fix typo which prevented \m[] work
5188         correctly.
5190 2002-09-17  Werner LEMBERG  <wl@gnu.org>
5192         Add left and right italic correction to non-slanted PS fonts.  This
5193         is an experimental feature to improve image rendering of grohtml.
5195         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
5196         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
5197         * font/devps/*: All non-slanted fonts regenerated.
5198         * NEWS: Updated.
5200 2002-09-16  Werner LEMBERG  <wl@gnu.org>
5202         Add a site-specific font directory.
5204         * Makefile.in (localfontdir, legacyfontdir): New variables.
5205         (fontpath): Use them.
5206         (MDEFINES, uninstall_dirs): Updated.
5207         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
5208         Remove `FONTPATH' and `MACROPATH'.
5210         * src/roff/troff/troff.man, NEWS: Updated.
5211         * doc/groff.texinfo (Font Directories): New section.
5212         Other minor fixes.
5214         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
5215         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
5216         src/preproc/grn/grn.man: Minor fixes.
5218         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
5219         Remove unused variable.
5221 2002-09-11  Werner LEMBERG  <wl@gnu.org>
5223         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
5224         * man/groff_out.man: Fix documentation of 'N'.
5226 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
5228         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
5229         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
5230         set.
5231         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
5232         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5233         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5234         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5235         PRE_TAG>: Call `begin' with `FALSE'.
5237 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5239         * src/libs/libgroff/string.cc (string::extract): Fix position of
5240         terminating null byte.
5242 2002-09-08  Werner LEMBERG  <wl@gnu.org>
5244         Add global option `nospaces' to tbl so that leading and trailing
5245         spaces in data items are ignored.
5247         * src/libs/libgroff/string.cc (string::remove_spaces): New member
5248         function to remove leading and trailing spaces.
5249         * src/include/stringclass.h: Updated.
5251         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5253         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5254         option.
5255         Fix typo in error messages.
5256         (process_data): Implement `nospaces' option.
5257         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5259 2002-09-07  Werner LEMBERG  <wl@gnu.org>
5261         * src/include/config.hin: Add `HAVE_ISATTY'.
5262         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5263         `fname' member.
5264         * src/libs/libgroff/tmpname.cc: Include `time.h'.
5265         * src/libs/libdriver/input.cc (Char): Add `operator==' and
5266         `operator!=' for `char'.
5267         * doc/groff.texinfo: Replace @ifnottex block for top node with
5268         @ifhtml block.
5270 2002-09-06  Werner LEMBERG  <wl@gnu.org>
5272         * doc/Makefile.in (.texinfo.html): Add -I switch.
5273         * doc/groff.texinfo: Add @ifnottex block for top node to make
5274         translation to HTML work.
5276 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
5278         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5279         (get_papersize, determine_vertical_offset): Removed.
5280         (char_buffer::do_image): Always specify letter size.
5281         (main): Updated.
5282         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5283         -sPAPERSIZE.
5285 2002-09-05  Werner LEMBERG  <wl@gnu.org>
5287         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5288         default indentation.
5290 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
5292         * src/preproc/html/pre-html.cc (imageList::createPage): Use
5293         -sPAPERSIZE for gs.
5294         (generateImages): Clean up push-back buffer.
5296 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5298         * doc/groff.texinfo: Minor fixes.
5300 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5302         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5303         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5304         (gsPaper): Removed.
5305         (determine_vertical_offset): Use LETTER_LENGTH.
5306         (createPage): Moved to ...
5307         (imageList::createPage): This.
5308         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5309         (imageList::getMaxX): New function.
5310         (createImage): Moved to ...
5311         (imageList::createImage): This.
5312         (imageList::createImages): New function.
5313         (generateImages): Read `maxx' directly.
5314         Updated.
5315         (scanArguments): Don't specify `gsPaper' for `-o'.
5316         (makeTempFiles): Call `xtmpfile' with the last argument set to
5317         `TRUE'.
5319 2002-08-24  Werner LEMBERG  <wl@gnu.org>
5321         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5322         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5323         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5324         * src/preproc/html/pushback.cc: Include nonposix.h.
5325         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5326         conditionally.
5328 2002-08-23  Werner LEMBERG  <wl@gnu.org>
5330         Use $(OBJEXT) for the object file extension.
5332         * Makefile.comm (.SUFFIXES): Add .obj.
5333         (.cc.obj, .c.obj): New implicit rules.
5334         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5335         (MDEFINES): Add EXEEXT and OBJEXT.
5336         * */Makefile.sub: s/.o/.$(OBJEXT)/.
5338 2002-08-22  Werner LEMBERG  <wl@gnu.org>
5340         * INSTALL: Mention texinfo 4.2 as a prerequisite.
5342 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5344         * src/devices/grohtml/post-html.cc (colType): Make enum global to
5345         the file.
5346         (html_printer::update_min_max, html_printer::add_table_end): New
5347         methods.
5348         (html_printer::lookahead_for_tables): Use them.
5349         Reset page offset correctly.
5350         (html_printer::~html_printer): Add creation of creator comment up.
5352 2002-08-20  Werner LEMBERG  <wl@gnu.org>
5354         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5355         * man/groff_tmac.man: Fix typos.
5356         * man/groff_font.man: Minor reordering.
5357         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5359 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5361         Avoid endless loops while scanning for tables.
5363         * src/devices/grohtml/post-html.cc (list::insert): Set
5364         ptr->right->left.
5365         (html_printer::next_horiz_pos): Add `text_glob' argument; update
5366         all callers.
5367         Return immediately if that argument is NULL.
5368         (html_printer::calc_nf): Don't test if `g' is NULL.
5369         (html_printer::lookahead_for_tables): Use
5370         `glyphs.move_right_get_data'.
5371         Don't test if `g' is NULL.
5373 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5375         A better fix, replacing fix 2002-08-15, for increasing SIZE.
5377         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5378         a pointer.
5379         (char_block::char_block): Allocate `buffer'.
5380         (char_buffer::add_string): Use it.
5382 2002-08-15  Werner LEMBERG  <wl@gnu.org>
5384         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5385         src/devices/grodvi/grodvi.man: Document default line thickness.
5387 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
5389         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5390         8192.
5392 2002-08-14  Werner LEMBERG  <wl@gnu.org>
5394         * doc/webpage.ms: Updated.
5396 2002-08-09  Werner LEMBERG  <wl@gnu.org>
5398         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5399         unbreakable space.
5401 2002-08-08  Aaron Campbell  <aaron@monkey.org>
5403         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5404         (&& -> &).
5406 2002-08-08  Werner LEMBERG  <wl@gnu.org>
5408         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5409         tok.next().
5410         (read_gray): Ditto.
5411         Don't push back a space but a newline onto the stack.
5413 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
5415         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5416         inadvertently.
5418         * src/devices/grohtml/post-html.cc (html_printer::end_font,
5419         html_printer::start_font): Handle them.
5420         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5421         reset bold and tt.
5422         (html_text::do_bold): Don't reset italic and tt.
5423         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5424         * font/devhtml/DESC.proto: Add those fonts.
5425         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5427 2002-08-07  Werner LEMBERG  <wl@gnu.org>
5429         * MORE.STUFF: Added gpresent.
5431         * tmac/trace.tmac: Show nesting level by a corresponding amount of
5432         whitespace before printing the logging message.
5434 2002-07-31  Colin Watson  <cjwatson@debian.org>
5436         * src/devices/grohtml/html-table.cc (html_table::finish_row):
5437         Initialize `n' to zero.  This fixes a segfault on ARM.
5439 2002-07-30  Werner LEMBERG  <wl@gnu.org>
5441         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5443 2002-07-29  Werner LEMBERG  <wl@gnu.org>
5445         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5446         final semicolon.
5448 2002-07-28  Colin Watson  <cjwatson@debian.org>
5450         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5451         `.ps'.
5452         (html_printer::html_printer): Initialize `pointsize'.
5454 2002-07-26  Werner LEMBERG  <wl@gnu.org>
5456         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5457         gnu.png.
5458         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5459         (gnu.eps): Add -rle switch to pnmtops.
5460         (distfiles): Add gnu.eps and gnu.png.
5462 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
5464         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5465         Add `operator!='.
5467 2002-07-24  Werner LEMBERG  <wl@gnu.org>
5469         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5470         ' \+' but '  *' for sed.
5471         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5473 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5475         * doc/groff.texinfo: Document `papersize' keyword.
5476         * NEWS, man/groff_font.man: Updated.
5478 2002-07-23  Colin Watson  <cjwatson@debian.org>
5480         Extend papersize keyword to accept more than a single entry.  The
5481         first valid will be used.
5483         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5484         (font::scan_papersize): Really skip final newline.
5485         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5487 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5489         * configure.ac: Test for isatty.
5490         * configure: Regenerated.
5491         * src/include/posix.h: Check HAVE_ISATTY.
5492         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5493         * src/utils/lookbib/lookbib.cc: Include posix.h.
5494         Don't declare isatty.
5496 2002-07-21  Werner LEMBERG  <wl@gnu.org>
5498         * NEWS: Add `output' request.
5500         * REVISION: Increased to 1.
5502 Version 1.18.0 released
5503 =======================
5505 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
5507         Allow internal glyph indices > 0xFF in grohtml for input characters.
5509         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5510         as parameter.
5511         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5512         Updated all callers.
5513         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5514         (html_printer): Updated.
5516 2002-07-19  Werner LEMBERG  <wl@gnu.org>
5518         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5519         * font/devutf8/R.proto: Adding some missing glyphs.
5520         * font/devutf8/NOTES: Updated.
5522         * tmac/dvi.tmac: Add more composite glyphs.
5523         * tmac/html.tmac: Updated.
5525         * man/groff_char.man: Add `sum' and `product' entities.
5527         * NEWS: Updated.
5529 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
5531         Improved table, tab, and indenting support.
5533         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5534         string_iterator::suppress_newline_flag): Removed.  Updated all
5535         function which have used it.
5537         * src/roff/troff/env.cc: Include `input.h'.
5538         (environment::add_node): Accept 0 as parameter.
5539         (environment::add_html_tag): Add `force' parameter.
5540         Updated all callers.
5541         (environment::add_html_tag_tabs): Ditto.
5542         For the moment, support left-aligned tabs only.
5543         (environment::make_html_tag): New function.
5544         (fill, no_fill): Set .br html tag additionally.
5545         (environment::newline): Emit `eol.ce' or `eol' tag for html.
5546         (environment::add_html_tag_eol): Removed.
5547         (tab_stops::distance_to_next_tab): Add variant for handling 
5548         nextpos'.
5549         (environment::distance_to_next_tab): Ditto.
5550         Updated all callers.
5551         (environment::handle_tab): Handle tabs for html.
5552         
5553         * src/roff/troff/env.h: Updated.
5555         * src/roff/troff/div.cc: Updated all callers of
5556         `environment::add_html_tag'.
5558         * src/devices/grohtml/html-table.cc,
5559         src/devices/grohtml/html-table.h: New files.
5561         * src/devices/grohtml/html-text.cc (html_text): New members
5562         `blank_para' and `start_space'.
5563         (html_text::issue_tag): Don't emit TABLE_TAG.
5564         Handle indentation for PRE_TAG and P_TAG.
5565         (html_text::end_tag): Updated.
5566         (html_text::table_is_void, html_text::issue_table_begin,
5567         html_text::issue_table_end): Removed.
5568         (html_text::do_push): Simplified.
5569         [DEBUGGING]: Small fix.
5570         (html_text::push_para): Add new parameter for indentation; updated
5571         all callers.
5572         Handle PRE_TAG.
5573         (html_text::do_indent, html_text::do_table, html_text::done_table,
5574         html_text::is_in_table): Removed.
5575         (html_text::do_pre): Handle P_TAG also.
5576         (html_text::shutdown): Handle p->indent.
5577         (html_text::check_emit_text): Simplified.
5578         (html_text::do_emittext): Reset `blank_para'.
5579         (html_text::do_para): Add new parameter for indentation; updated
5580         all callers.
5581         (html_text::remove_indent): New function.
5582         (html_text::do_space): Handle verbatim text properly.
5583         (html_text::ever_emitted_text, html_text::starts_with_space,
5584         html_text::remove_para_align): New functions.
5585         (html_text::dump_stack_element, html_text::dump_stack): Updated.
5587         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5588         Updated.
5590         * src/devices/grohtml/post-html.cc: Include html-table.h.
5591         (INDENTATION): Removed.
5592         (text_glob): Added many `is_<foo>' functions.
5593         Added table description `tab'.
5594         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5595         member functions.
5596         (list): Add `insert' and `move_to' member functions.
5597         (page): Add `insert_tag' member function.
5598         (page::dump_page) [DEBUG_TABLES]: Improved.
5599         (html_printer): Add `table' and `max_linelength' elements.
5600         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5601         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5602         `remove_tabs', `remove_courier_tabs'.
5603         (html_printer::emit_raw): Handle indentation.
5604         (html_printer::do_center, html_printer::write_header): Updated.
5605         (html_printer::is_courier_until_eol): Check for tag.
5606         (html_printer::do_linelength): Handle max_linelength.
5607         (html_printer::do_page_offset, html_printer::do_indentation): Handle
5608         fill_on.
5609         (html_printer::do_tempindent): Updated.
5610         (html_printer::do_indentedparagraph): Removed.
5611         (html_printer::do_indent): Simplified.
5612         (html_printer::do_eol): Use `ever_emitted_text'.
5613         (html_printer::do_flush, html_printer::do_links): Don't call
5614         done_table.
5615         (html_printer::do_break): Handle end_tempindent.
5616         (html_printer::troff_tag): Get argument.
5617         Don't handle `.ip'.
5618         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5619         (html_printer::flush_page): Call `lookahead_for_tables'.
5620         Don't call `done_table'.
5621         (html_printer::add_to_sbuf): Always call do_indent.
5623         * src/devices/grohtml/Makefile.sub: Updated.
5625         * tmac/an-old.tmac (TP): Don't handle html device specially.
5626         (an-do-tag-html): New function which will be used instead of
5627         `an-do-tag' if html device is used.
5629         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5631         * tmac/s.tmac (@IP): Don't handle html device specially.
5632         (@IP-html): New function which will be used instead of `@IP' if
5633         html device is used.
5635         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5636         is a hack which will eventually vanish again.
5637         (PIMG): Handle `-C' option correctly if not html.
5638         (HR): Use HTML-NS.
5640 2002-07-17  Werner LEMBERG  <wl@gnu.org>
5642         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5644 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
5646         * contrib/pic2graph/pic2graph.*: Use convert(1).
5647         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5649 2002-07-14  Bernd Warken  <bwarken@mayn.de>
5651         * tmac/groff_trace.man: New file.
5652         * tmac/Makefile.sub: Updated.
5653         * NEWS: Updated.
5655 2002-07-13  Werner LEMBERG  <wl@gnu.org>
5657         * src/roff/groff/groff.man: Add some cross references.
5659 2002-07-12  Werner LEMBERG  <wl@gnu.org>
5661         * src/roff/troff/input.cc (substring_request): Add warnings for
5662         string indices out of range.
5664 2002-07-11  Werner LEMBERG  <wl@gnu.org>
5666         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5667         * font/devdvi/*EC: Regenerated.
5669 2002-07-10  Bernd Warken  <bwarken@mayn.de>
5671         * man/groff_char.man: Updated and extended.
5673 2002-07-10  Werner LEMBERG  <wl@gnu.org>
5675         * src/roff/troff/input.cc (length_macro): Renamed to...
5676         (length_request): This.
5677         Move call of `tok.next()' to the very end, otherwise the register
5678         value hasn't been updated yet.
5679         (init_input_requests): Updated.
5681 2002-07-09  Werner LEMBERG  <wl@gnu.org>
5683         * src/roff/troff/input.cc (substring_macro): Renamed to...
5684         (substring_request): This.
5685         (init_input_requests): Updated.
5686         * src/roff/troff/request.h: Updated.
5688 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
5690         * src/roff/grog/grog.sh: Fix typo.
5692 2002-07-08  Werner LEMBERG  <wl@gnu.org>
5694         * win32-diffs: Updated.
5696         Handle `papersize' keyword properly in DESC.
5698         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5699         type.
5700         Updated all callers.
5701         * src/libs/libgroff/paper.cc: Add four more paper formats used by
5702         grolj4.
5703         * src/include/paper.h: Updated.
5705         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5706         Other minor C syntax fixes.
5707         (papersize, paperlength, paperwidth): Renamed to `user_*'.
5708         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5709         members.
5710         (lbp_printer::lbp_printer): Pass three arguments.
5711         Set paper dimensions properly.
5712         (make_printer, main): Updated.
5713         (handle_unknown_desc_command): Fix error messages.
5714         (main): Handle papersize keyword in DESC properly.
5716         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5717         `user_paper_size'.
5718         (lbp_printer::lbp_printer): Pass an argument.
5719         Set paper_size properly.
5720         (handle_unknown_desc_command): Removed.
5721         (make_printer, main): Updated.
5722         * src/devices/grolj4/grolj4.man: Minor documentation fix.
5724         * man/groff_font.man, NEWS: Updated.
5726 2002-07-07  Werner LEMBERG  <wl@gnu.org>
5728         Integrated eqn2graph, contributed by Eric S. Raymond.
5730         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5731         files.
5732         * Makefile.in, NEWS: Updated.
5734 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5736         Changing the substring request to make it fit better with other
5737         string manipulation functions in other programming languages:
5738         Index 0 is now the first character in the string, and index -1
5739         indicates the last character.  Since this request didn't work
5740         properly anyway in the last release, it doesn't harm too much to
5741         change the syntax.
5743         * src/roff/troff/input.cc (substring_macro): Use loops to get
5744         the real string length (ignoring COMPATIBLE_SAVE and
5745         COMPATIBLE_RESTORE) and offsets.
5746         Implement change described above.
5748         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5749         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5751         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5753 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5755         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
5756         COMPATIBLE_RESTORE are completely ignored.
5758         * src/roff/troff/input.cc (char_list::set, char_list::get): New
5759         functions.
5760         (macro): `length' field renamed to `len'.
5761         Added new field `empty_macro' (1 if macro is empty), to be used
5762         instead of checking `len'.
5763         Updated all callers.
5764         (macro::empty): Updated.
5765         (macro::length, macro::set, macro::get): New functions.
5766         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5767         Set `empty_macro'.
5768         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5769         COMPATIBLE_RESTORE pairs.
5770         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5771         * src/roff/troff/request.h: Updated.
5773         * doc/groff.texinfo: Document .chop's behaviour better.
5775 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5777         * doc/pic.ms: Fix documentation for the addition of positions.
5779         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5781 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5783         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5785         * src/roff/troff/input.cc (have_string_arg): New global variable.
5786         (read_mode): New enumeration.
5787         (read_escape_name): Use it.  Update all calls.
5788         (read_long_escape_name): Use it.  Update all calls.
5789         Set have_string_arg if appropriate.
5790         (get_char_for_escape_name): Add parameter for handling space
5791         character.
5792         (interpolate_string_with_args, decode_string_args): New functions.
5793         (get_copy, token::next): Call it if necessary.
5794         (interpolate_string): Fix error message.
5796         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5797         Document it.
5799 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5801         * man/groff_tmac.man: Updated and extended.
5803 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5805         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5807 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5809         * doc/pic.ms: Improve documentation of composite block objects.
5811 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5813         * src/roff/troff/input.cc (init_registers): Add three registers
5814         `seconds', `minutes', and `hours' to hold the current time.
5816         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5817         Updated.
5819 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5821         Make \X accept both `\ ' and `\~', converting them to single space
5822         characters.
5824         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5825         (token::unstretchable_space): New inline function.
5826         * src/roff/troff/input.cc (token::next, token::delimiter,
5827         token::description, token::add_to_node_list, token::process): Handle
5828         TOKEN_UNSTRETCHABLE_NODE.
5829         (encode_char): Handle tok.stretchable_space and
5830         tok.unstretchable_space.
5832         * NEWS, doc/groff.texinfo: Document it..
5834 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5836         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5838         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5839         keyword to enable/disable SGR output.
5840         (tty_printer::change_fill_color): New function.
5841         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5843         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5844         call.
5846 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5848         Add a `color' request and a `.color' register to control usage of
5849         colours.
5851         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5852         (color_flag): This (which is the inverse).
5853         (activate_color): New function.
5854         (main, init_input_requests): Updated.
5855         * src/roff/troff/troff.h, src/roff/troff/node.cc
5856         (troff_output_file::fill_color, troff_output_file::glyph_color):
5857         Updated.
5859         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5860         Document the changes.
5862 2002-06-17  Colin Watson  <cjwatson@debian.org>
5864         Circumvent bug in autoconf 2.53 regarding top_builddir.
5866         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5867         * Makefile.in, doc/Makefile.in:
5868         s/@top_builddir@/@groff_top_builddir@/.
5869         * configure: Regenerated (with autoconf 2.53).
5871 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5873         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5874         `paperwidth' and `paperlength' for the `papersize' keyword.
5876 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5878         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5880 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5882         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5883         html_printer::do_linelength, html_printer::do_pageoffset,
5884         html_printer::do_indentation, html_printer::do_tempindent,
5885         html_printer::do_break, html_printer::begin_page): Clear indented
5886         text.
5887         * tmac/html.tmac: Disable hyphenation.
5889 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5891         Don't produce HTML files if utility programs are missing.
5893         * Makefile.in (make_html, make_install_html): New variables.
5894         (MDEFINES): Updated.
5896         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5897         utility programs.
5898         * configure.ac: Use it.
5899         * configure: Regenerated.
5901         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5902         (HTMLEXAMPLESFILES): This new variable.
5903         (EXAMPLESIMAGEFILES): Renamed to...
5904         (HTMLEXAMPLEIMAGEFILES): This.
5905         (CLEANADD): Add HTMLEXAMPLEFILES.
5906         (all): Use `make_html'.
5907         (html): New target.
5908         (install_data): Use `make_install_html'.
5909         Move html stuff to...
5910         (install_html): This new target.
5911         (uninstall_sub): Updated.
5913 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5915         * src/roff/grog/Makefile.sub (grog): Renamed to...
5916         (grog.old): This.
5917         (grog): New rule to always install grog.sh as grog.
5919 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5921         * src/roff/grog/grog.pl: Fix typo.
5923 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5925         * doc/groff.texinfo: Add more info on .tr arguments.
5927 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5929         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5931         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5932         * configure: Regenerated.
5934 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5936         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5938         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5940 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5942         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5943         is not initialized at the time we need it in case `--prefix' hasn't
5944         been set.  Check for `ac_default_prefix' also.
5945         Test for `papersize' keyword also and generalize allowed whitespace.
5946         * configure: Regenerated.
5948         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5949         `paperlength'.
5951         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5952         with...
5953         (src_version, src_revision): New variables to avoid overwriting
5954         from parent make process.
5955         (version.cc): Updated.
5957         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5958         (linebuf, linebufsize): New global variables.
5959         (sys_fatal): Use `fatal' to abort properly.
5960         (get_line): New function.
5961         (get_resolution): Use it.
5962         Improve error messages.
5963         (get_papersize): Check `papersize' also.
5964         Use `get_line'.
5965         Improve error messages.
5967 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5969         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5970         should be removed only if builddir is not srcdir.
5971         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5972         (clean): Depend on `mostlyclean'.
5973         (distclean): Depend on `clean'.
5974         (realclean, extraclean): Depend on `distclean'.
5975         (.y.cc, .y.o): Simplified.  The output files are no longer written
5976         to srcdir but to builddir.
5977         * Makefile.in (MDEFINES): Add `version' and `revision'.
5978         (uninstall_dirs): Fix order of directories.
5979         * doc/Makefile.sub (version, revision): Removed.
5980         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5981         Added `HTMLDOCFILES'.
5982         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5983         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5984         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5985         as prefix.
5987         * doc/texinfo.tex (\authortt): New macro.
5988         (\shortcontt): Define.
5989         (\titlepage): Set \tt to \authortt while defining \authorfont.
5990         (\appendixbox): New macro.
5991         (\chapmacro, \appendixentry): Use \appendixbox to get even
5992         indentation for letters.
5993         (\summarycontents): Set \tt.
5994         (\internalpagesize): Add two arguments for real paper width and
5995         height as needed by pdfTeX.
5996         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5997         Updated.
5998         (\tempdima, \tempdimb): New temporary dimensions.
5999         (\pagesizesyyy): Updated.
6001 2002-06-02  Werner LEMBERG  <wl@gnu.org>
6003         Adding a new keyword `papersize' to the DESC file format (similar
6004         but not completely identical to grolbp's extension).  grops now has
6005         a -p command line option to override `papersize'.  Finally, grolbp
6006         has been adapted to the new syntax.
6008         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
6009         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
6010         elements.
6011         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
6012         (CCSRCS): Add `paper.cc'.
6014         * src/include/font.h (font): Add `papersize' element.
6015         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
6016         (font::scan_papersize): New function.
6017         (font::load_desc): Use it for handling `papersize' keyword.
6018         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
6020         * src/devices/grops/ps.cc: Include paper.h.
6021         (user_paper_length): New global variable.
6022         (ps_printer): Use paper length as initializer.
6023         (make_printer): Updated.
6024         (main): Handle new `-p' option.
6025         * src/devices/grops/grops.man: Updated.
6027         * src/devices/grolbp/lbp.cc: Include paper.h.
6028         s/papersizes/lbp_papersizes/.
6029         (set_papersize): Use new `papersizes' array.
6030         (handle_unknown_desc_command): Don't handle `papersize'.
6031         (main): Use `font::scan_papersize' for handling `-p' option.
6032         * src/devices/grolbp/grolbp.man: Updated.
6034         * man/groff_font.man: Document `papersize'.
6035         * NEWS: Updated.
6037 2002-05-30  Werner LEMBERG  <wl@gnu.org>
6039         * src/devices/grops/TODO: Updated.
6040         * src/devices/grops/grops.man: More info on paper formats.
6041         * man/groff_font.man: Document `paperheight' and `paperwidth'.
6043 2002-05-29  Werner LEMBERG  <wl@gnu.org>
6045         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
6046         to list only if srcdir != currdir.
6047         (distfiles): New target.
6049         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
6050         (NOMAKEDIRS): New variable.
6051         (DISTDIRS): Use it.
6053 2002-05-26  Werner LEMBERG  <wl@gnu.org>
6055         Add .output request, similar to \! at top-level.
6057         * src/roff/troff/input.cc (transparent): Remove unused declaration.
6058         (output_request): New function.
6059         (init_input_requests): Add it.
6060         Sorted.
6061         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6062         Document it.
6064         * Makefile.in (MDEFINES): Add INSTALL_INFO.
6065         (prepare_examples): Fix typo.
6066         * doc/groff.texinfo (@direntry): Fix it.
6068 2002-05-25  Werner LEMBERG  <wl@gnu.org>
6070         Including the doc subdir into groff's Makefile system.
6072         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
6073         * configure.ac: Use it.
6074         Generate `doc/Makefile'.
6075         * configure: Regenerated.
6077         * Makefile.in (infodir, INSTALL_INFO): New variables.
6078         (MDEFINES, uninstall_dirs): Updated.
6079         (OTHERDIRS): Add `doc'.
6080         * Makefile.comm (CLEANDIRADD): New variable.
6081         (mostlyclean): Use it.
6083         * doc/Makefile.sub, doc/Makefile.in: New files.
6084         * doc/Makefile: Removed.
6086         * NEWS, INSTALL: Updated.
6088 2002-05-24  Werner LEMBERG  <wl@gnu.org>
6090         * doc/homepage.ms: Renamed to ...
6091         * doc/webpage.ms: This.
6092         Use `.NHR'.
6094 2002-05-23  Werner LEMBERG  <wl@gnu.org>
6096         Integrating the `mom' macro package, contributed by Peter Schaffter
6097         <df191@ncf.ca>.
6099         * contrib/mom/*: New subdirectory tree.
6100         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
6101         be used for documentation files.
6102         (MDEFINES, uninstall_dirs): Use them.
6103         (OTHERDIRS): Add contrib/mom.
6104         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
6105         @HTMLDOCDIR@.
6106         * MANIFEST, NEWS: Updated.
6108 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
6110         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
6111         if at outer level; at start-up we are at outer level.
6113         * src/roff/troff/input.cc (do_suppress): Implement it.
6114         Simplify \O[3].
6116         Add option -p to show progress information.
6117         pre-grohtml will now render only one page at a time, reducing the
6118         size of needed disk resources enormously.
6120         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
6121         (imagePageName): New global variable.
6122         (psPageName, show_progress, currentPageNo): New global variables.
6123         (html_system): Close saved stderr and stdout handles.
6124         (write_end_image): Accept a parameter to control \O escape.
6125         (write_start_image): Adapted to new \O meaning.
6126         (char_buffer::write_upto_newline): Updated.
6127         (createAllPages): Replaced with...
6128         (createPage): This new function to create a single page for images.
6129         It uses `psselect' from the psutils package.
6130         (removeAllPages): Removed.
6131         (createImage): Updated.
6132         Handle progress display.
6133         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
6134         (scanArguments): Add option -p.
6135         (makeTempFiles): Updated to create temp files for psPageName and
6136         imagePageName.
6137         (removeTempFiles): Removed.
6138         (main): Updated.
6140         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
6141         html_printer::write_header): Append `\0' to `buffer'.
6142         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
6143         (main): Handle -p.
6144         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
6145         Handle `text_emitted'.
6146         (html_text::table_is_void): Slightly rewritten.
6147         (stop): New external symbol.
6148         (html_text::do_push) [DEBUGGING]: Use it and simplify.
6149         (html_text::shutdown): Call `dump_stack'.
6150         (html_text::do_space): Rewritten.
6151         * src/devices/grohtml/grohtml.man: Document -p and the need of
6152         `psselect'.
6154         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
6155         new \O syntax.
6156         Call \O[0] if `ps4html' is active.
6157         * tmac/s.tmac (@EQ, @EN): Handle html better.
6158         (@TS, TE): Ditto.
6159         * tmac/html.tmac: Don't use black for background colour.
6161         * src/roff/troff/node.cc: Include `div.h'.
6162         (troff_output_file::really_print_line): Don't use `is_on'. 
6163         (troff_output_file::word_marker, troff_output_file::flush_tbuf
6164         troff_output_file::check_charinfo,
6165         troff_output_file::put_char_width, troff_output_file::put_char,
6166         troff_output_file::determine_line_limits, troff_output_file::draw,
6167         real_output_file::begin_page, glyph_color_node::tprintf,
6168         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
6169         Use `is_on'.
6170         (troff_output_file::really_on): Call `do_motion'.
6171         (suppress_node::tprint): Use `get_page_number' instead of `%'
6172         register.
6173         Call `reset_output_registers' conditionally on `is_on'.
6175         * doc/groff.texinfo: Document new syntax of \O.
6176         * NEWS, man/groff_diff.man: Updated.
6178 2002-05-22  Werner LEMBERG  <wl@gnu.org>
6180         * MORE.STUFF: Add info about David Frey's deroff implementation.
6181         Mention troff.org.
6183 2002-05-16  Werner LEMBERG  <wl@gnu.org>
6185         Pic's `with' attribute now accepts positions.
6187         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
6188         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
6189         conflicts.
6190         (object_spec): Add rule for `WITH' and `position'.
6191         (relative_path): Give `corner' the precedence of `CHOP'.
6192         * src/preproc/pic/object.h (path): New members `pos' and
6193         `is_position'.
6194         * src/preproc/pic/object.cc: Updated initializers of `path'.
6195         (path::follow): Handle `is_position'.
6197         * doc/pic.ms: Completely updated grammar description.
6198         Many typographical improvements.
6200 2002-05-15  Werner LEMBERG  <wl@gnu.org>
6202         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
6203         code of x in range 0-127) also.
6204         * doc/groff.texinfo, man/groff_diff.man: Updated.
6206         Added keywords `north', `south', `east', and `west' for corners
6207         in pic.
6209         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
6210         and WEST.
6211         (yylex): Handle them.
6212         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
6213         (corner): Handle them.
6215 2002-05-14  Werner LEMBERG  <wl@gnu.org>
6217         * src/devices/grops/grops.man: Clarify handling of `download' file.
6219 2002-05-11  Werner LEMBERG  <wl@gnu.org>
6221         Adding `warnscale' and `spreadwarn' requests, based on a patch from
6222         Jeffrey Friedl <jfriedl@yahoo.com>.
6224         * src/roff/troff/input.cc (spread_limit, warn_scale,
6225         warn_scaling_indicator): New global variables.
6226         (warnscale_request, spreadwarn_requests): New functions.
6227         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
6228         (init_input_requests): Updated.
6229         (error_type): Add `OUTPUT_WARNING'.
6230         (do_error): Handle it.
6231         (output_warning): New warning function which shows output location.
6232         * src/roff/troff/env.h (spread_limit): New external variable.
6233         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6234         `output_warning'.
6235         (distribute_space): Emit warning if added space is larger than
6236         `spread_limit'.
6237         (environment::possibly_break_line): Emit warning if a line can't
6238         be adjusted on both sides.
6240         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6242 2002-05-08  Werner LEMBERG  <wl@gnu.org>
6244         * src/roff/troff/node.cc (special_node::special_node): Use
6245         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
6246         \X''\% crashes, for example.
6248         * doc/groff.texinfo: Document \! and \? used at top-level.
6250 2002-05-06  Werner LEMBERG  <wl@gnu.org>
6252         * src/preproc/pic/pic.man: Fix some keyword syntax.
6253         Other minor typographical fixes.
6255         * src/roff/groff/groff.man: Fix typos.
6257 2002-05-04  Werner LEMBERG  <wl@gnu.org>
6259         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6260         (ShortOpt[]): This to avoid problems with refer.
6262         * doc/pic.ms: Fix typo.
6263         Fix pic grammar description.
6265         * tmac/an-old.tmac (ne): Use de1, not de.
6267 2002-05-03  Werner LEMBERG  <wl@gnu.org>
6269         * doc/groff.texinfo: Finished separation of glyphs and characters.
6270         Don't use the string `Appendix' for appendix headers (both in
6271         the text and the table of contents).
6272         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6273         directories.
6275         Use registers LL and LT (similar to -ms) for controlling the
6276         length of title and line, respectively, in the -man and -mdoc
6277         macro packages.
6279         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6280         (doc-setup-page-layout): Use \n[LL] and \n[LT].
6281         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6282         (TH): Use \n[LL].
6283         (an-header, an-p-footer): Use \n[LT].
6284         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6285         doc/groff.texinfo: Document it.
6287 2002-05-02  Werner LEMBERG  <wl@gnu.org>
6289         * doc/fdl.texi: New file.
6290         * doc/groff.texinfo: Include it.
6291         Define and use @copying.
6292         Starting with separating glyph, symbol, and character.
6294 2002-04-27  Werner LEMBERG  <wl@gnu.org>
6296         * Makefile.in (EXEEXT): Set it.
6297         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6298         programs.
6300         * src/include/nonposix.h: Define GS_NAME.
6301         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6303         Some preliminary changes for EMX support under OS/2.
6305         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6306         __EMX__ similar to __MSDOS__.
6307         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6309 2002-04-25  Werner LEMBERG  <wl@gnu.org>
6311         * doc/groff.texinfo: Integrated groff_out.man.
6312         Some macro fixes.
6314 2002-04-23  Werner LEMBERG  <wl@gnu.org>
6316         * man/groff_out.man: Minor fixes.
6318 2002-04-23  Werner LEMBERG  <wl@gnu.org>
6320         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6321         correct page references.
6322         Fixed many index entries.
6324 2002-04-23  Bernd Warken  <bwarken@mayn.de>
6326         * man/roff.man: Enlarged.
6328 2002-04-22  Werner LEMBERG  <wl@gnu.org>
6330         * doc/groff.texinfo: More examples, other fixes.
6332 2002-04-20  Werner LEMBERG  <wl@gnu.org>
6334         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6335         will now form a chain, e.g.
6337           .pi foo
6338           .pi bar
6340         is now the same as
6342           .pi foo | bar
6344         This is for compatibility with plan 9's troff.
6346         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6347         with UNIX troff.
6348         * NEWS: Updated.
6350         * doc/groff.texinfo: Add documentation of remaining requests and
6351         registers.
6353 2002-04-19  Werner LEMBERG  <wl@gnu.org>
6355         * doc/groff.texinfo: Add documentation of remaining escapes.
6357         * font/devdvi/generate/tc.map: Remove entry for `sr'.
6358         * font/devdvi/*TC: Regenerated.
6360 2002-04-18  Werner LEMBERG  <wl@gnu.org>
6362         * src/roff/troff/input.cc (token::next): Make \H behave consistently
6363         if not in compatibility mode, i.e., increment relative to the
6364         previous height.
6365         * doc/groff.texinfo: Updated accordingly.
6367 2002-04-17  Werner LEMBERG  <wl@gnu.org>
6369         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6371 2002-04-16  Bernd Warken  <bwarken@mayn.de>
6373         * src/roff/groff/groff.man: Improve documentation of -P option.
6374         Other minor fixes.
6376 2002-04-15  Werner LEMBERG  <wl@gnu.org>
6378         Add new escape \F to switch font family.
6380         * src/roff/troff/input.cc (token::next): Handle \F.
6381         * src/roff/troff/env.cc (environment::set_family): Handle
6382         `interrupted' flag.
6383         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6384         Document it.
6386 2002-04-14  Werner LEMBERG  <wl@gnu.org>
6388         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6389         spaces in tags.
6391 2002-04-13  Werner LEMBERG  <wl@gnu.org>
6393         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
6394         \m[] and \M[], respectively.
6396         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6397         (symbol::symbol): Handle NULL string and empty string differently.
6398         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6399         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6400         Add optional parameter.
6401         Updated calling functions.
6402         (get_copy, do_glyph_color, do_fill_color, token::next): Use
6403         `symbol::is_empty'.
6404         * src/roff/troff/env.cc (environment::set_font): Ditto.
6406         * src/preproc/pic/troff.cc (troff_output::set_fill,
6407         troff_output::reset_color: Updated.
6409         * tmac/www.tmac: Updated.
6411         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6412         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6413         Updated.
6415         * tmac/Xps.tmac: Remove some redundant code.
6417         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6418         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6419         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6420         \f[].
6422 2002-04-13  Bernd Warken  <bwarken@mayn.de>
6424         * src/include/printer.h, src/libs/libdriver/printer.cc
6425         (printer::change_fill_color): New member function.
6426         * src/libs/libdriver/input.cc (parse_D_command): Use it.
6428 2002-04-12  Werner LEMBERG  <wl@gnu.org>
6430         * doc/groff.texinfo: Completed pass on gtroff reference.
6432 2002-04-11  Werner LEMBERG  <wl@gnu.org>
6434         * doc/groff.texinfo: More fixes.
6436 2002-04-11  Bernd Warken  <bwarken@mayn.de>
6438         * src/include/color.h: Decorate with `const'.
6439         Use `size_t'.
6440         Include `stddef.h'.
6441         * src/libs/libgroff.color.cc: Decorate with `const'.
6442         Use `size_t'.
6443         (color::color): Initialize members.
6444         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6445         command according to the documentation.
6447         * man/groff_out.man: Updated.
6448         Minor fixes.
6450 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
6452         * src/preproc/html/pre-html.cc (write_start_image): Remove
6453         redundant output.
6454         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6456         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6457         \C'hy' caused an assertion failure.
6459         * src/roff/troff/env.cc (environment::environment): Initialize
6460         `emitted_node'.
6461         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6463 2002-04-10  Werner LEMBERG  <wl@gnu.org>
6465         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6466         Document pvs request and .pvs register.
6468 2002-04-09  Werner LEMBERG  <wl@gnu.org>
6470         * doc/groff.texinfo: Improve and fix documentation of diversions
6471         and environments.
6473 2002-04-08  Werner LEMBERG  <wl@gnu.org>
6475         * doc/groff.texinfo: Fix documentation of drawing functions.
6476         Other minor fixes.
6478 2002-04-07  Werner LEMBERG  <wl@gnu.org>
6480         * doc/groff.texinfo: Better documentation of double quotes as
6481         arguments.
6482         Other minor fixes.
6484 2002-04-06  Werner LEMBERG  <wl@gnu.org>
6486         * man/groff_font.man: Document names of special characters better.
6487         * doc/groff.texinfo: Minor improvements.
6489         * tmac/lbp.tmac: Load latin1.tmac.
6490         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6492         * font/devX*/*: Regenerated (all chars > 0x80 removed).
6494 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6496         * tmac/tty.tmac: Don't use shc request.
6497         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6498         * NEWS: Updated.
6500         * man/groff_diff.man: Minor fixes.
6502         * font/devlbp/*: Remove all `charXXX' entities.
6504         * src/libs/libgroff/font.cc (font::~font): Deallocate
6505         `special_device_coding'.
6506         (font::load): Use `new' for allocating `special_device_coding'.
6507         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6508         Removed unused member.
6510 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6512         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6513         (resource_manager::do_begin_binary,
6514         resource_manager::do_begin_data): Use it.
6516         * doc/texinfo.tex: Updated to version 4.2.
6518         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6519         (token::zero_width_break): New inline function.
6520         * src/roff/troff/input.cc (token::next): Use it.
6521         (token::description): Updated.
6522         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6523         (token::add_to_node_list, token::process): Use it.
6524         * NEWS, doc/groff.texinfo: Updated.
6526         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6527         * tmac/tty.tmac: Add missing backslash.
6529 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
6531         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6532         `.ps' register instead of `.s' to handle fractional point sizes.
6533         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6534         limit_box::output): Ditto.
6535         * src/preproc/eqn/other.cc (size_box::compute_metrics,
6536         size_box::output): Ditto.
6537         * src/preproc/eqn/over.cc (over_box::compute_metrics,
6538         over_box::output): Ditto.
6539         * src/preproc/eqn/script.cc (script_box::compute_metrics,
6540         script_box::output): Ditto.
6541         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6542         sqrt_box::output): Ditto.
6544 2002-04-03  Michael Selway  <mas@ssl.co.uk>
6546         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6547         Fix typo.
6549 2002-04-03  Werner LEMBERG  <wl@gnu.org>
6551         * doc/homepage.ms: Reduce title size.
6552         * doc/groff.texinfo: Fix documentation of .t register.
6553         Fix handling of colon.
6554         Fix `\' vs. `\\'.
6556         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6557         only if page length is positive to avoid a loop.
6559         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6560         tbl.
6562 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
6564         * src/include/nonposix.h, src/roff/groff/pipeline.c:
6565         s/__CYGWIN32__/__CYGWIN__/.
6567 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
6569         * doc/gnu.xpm: New image contributed by Emily Mulley.
6570         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6571         (homepage.html): Be dependent on gnu.eps.
6572         * doc/homepage.ms: Updated to new image.
6574         * src/devices/grohtml/post-html.cc (html_printer): New member
6575         `sbuf_prev_hpos'.
6576         (html_printer::flush_sbuf, html_printer::set_char): Set it.
6577         (html_printer::sbuf_continuation): Use it.
6579 2002-03-28  Werner LEMBERG  <wl@gnu.org>
6581         * src/libs/libgroff/getopt.c: Updated to latest version.
6583         * tmac/README: More on hyphen.tex license.
6585 2002-03-26  Larry Kollar  <kollar@alltel.net>
6587         * doc/groff.texinfo: Add documentation of most missing requests.
6589 2002-03-25  Werner LEMBERG  <wl@gnu.org>
6591         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6592         of `+-', `mu', and `di', respectively.
6594         * font/devascii/R.proto, font/devutf8/R.proto,
6595         font/devlatin1/R.proto, font/devhtml/R.proto,
6596         font/devcp1047/R.proto, font/devlpb/*: Add them.
6597         * font/devps/generate/textmap: Ditto.
6598         * font/devps/*: Regenerated.
6599         * font/devlj4/generate/text.map: Add them.
6600         * font/devlj4/*: Regenerated.
6601         * font/devdvi/generate/tc.map: Use them.
6602         * font/devdvi/generate/texsy.map: Add them.
6603         * font/devdvi/*: Regenerated.
6604         * font/devX*/*: Regenerated.
6606         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6607         tmac/tty-char.tmac: Updated.
6609         * NEWS, man/groff_char.man: Updated.
6611 2002-03-24  Werner LEMBERG  <wl@gnu.org>
6613         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6614         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6615         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6616         we use `.fchar' in dvi.tmac.
6617         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6618         * tmac/Xps.tmac: Simplify some char definitions.
6619         Add definition for \[f/].
6620         * man/groff_char.man: Updated for new X.tmac.
6622         * tmac/README: New file.
6624 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
6626         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6627         internal .y.o rule took precendence over the .y.cc rule, compiling
6628         the yacc files with gcc instead of g++.
6630 2002-03-23  Werner LEMBERG  <wl@gnu.org>
6632         * tmac/dvi.tmac: Add replacement font for `CB'.
6634         * tmac/doc.tmac: s/request/macro/ in messages.
6635         (doc-generic-macro): Improve error message.
6636         * tmac/groff_mdoc.man: Minor improvements.
6638 2002-03-22  Werner LEMBERG  <wl@gnu.org>
6640         * doc/groff.texinfo: Document possible conflict between `tr' and
6641         `char' requests.
6643 2002-03-21  Werner LEMBERG  <wl@gnu.org>
6645         Improve handling of hyphenation patterns.  It is now possible to
6646         use most of TeX's pattern files unmodified.  To make the process
6647         more flexible, a new request `hpfcode' has been added which
6648         provides a character code mapping for the `hpf' request.  See
6649         comment before hpf_getc() for more details.
6651         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6652         functions.
6653         (read_patterns_file): Additional parameter for exception dictionary.
6654         Extended to recognize \pattern, \hyphenation, and \endinput.
6655         (do_hyphenation_patterns_file): Updated.
6656         * src/roff/troff/env.h (hpf_code_table): New extern.
6658         * src/roff/troff/input.cc (hpf_code_table): New array.
6659         (init_hpf_code_table, hyphenation_patterns_file_code): New
6660         functions.
6661         (hyphenation_code): Handle translation from `trin' correctly.
6662         (main, init_input_requests): Updated.
6663         (charinfo::set_translation): Handle hyphenation code also.
6665         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6666         inline function.
6668         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6669         char' is used for offsets in hyphenation exceptions.
6671         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6673         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6675 2002-03-20  Larry Kollar  <kollar@alltel.net>
6677         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6678         requests.
6680 2002-03-18  Werner LEMBERG  <wl@gnu.org>
6682         * tmac/html.tmac: Fix serious typo.
6684 2002-03-17  Larry Kollar  <kollar@alltel.net>
6686         * doc/groff.texinfo: Add documentation for `writec' request.
6688 2002-03-17  Werner LEMBERG  <wl@gnu.org>
6690         Added request `hpfa' to append hyphenation patterns.
6692         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6693         parameter `append'.
6694         (hyphenation_patterns_file): Renamed to...
6695         (do_hyphenation_patterns_file): This.
6696         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6697         functions.
6698         (init_hyphen_requests): Updated.
6699         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6701 2002-03-16  Werner LEMBERG  <wl@gnu.org>
6703         Added request `writec' in analogy to `tmc'.
6705         * src/roff/troff/input.cc (write_request): Renamed to...
6706         (do_write_request): This.
6707         Added one parameter.
6708         (write_request, write_request_continue): New functions.
6709         (init_input_requests): Updated.
6710         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6712         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6713         5-10000pt.
6714         * NEWS: Document it.
6716 2002-03-15  Werner LEMBERG  <wl@gnu.org>
6718         * man/groff.man: Add writem request.
6720         Add request `trin' (translate input) to make `.asciify' work
6721         correctly.  This is necessary since `charXXX' entity names are no
6722         longer hardcoded in font definition files.
6724         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6725         `translate_input' members.
6726         (charinfo::set_asciify_code, charinfo::get_asciify_code,
6727         charinfo::set_translation_input): New methods.
6728         (charinfo::set_translation): Add third argument.
6729         * src/roff/troff/input.cc (charinfo:set_translation): Set
6730         `asciify_code'.
6731         (do_translate): Add second argument.
6732         (translate_input): New function.
6733         (init_input_requests): Updated.
6734         * src/roff/troff/node.cc (glyph_node::asciify,
6735         composite_node::asciify): Use `get_asciify_code'.
6737         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6739         * NEWS, man/groff.man, man/groff_diff.man: Updated.
6741 2002-03-14  Larry Kollar  <kollar@alltel.net>
6743         * doc/groff.texinfo: Improve documentation of .RS and .RE.
6745 2002-03-14  Werner LEMBERG  <wl@gnu.org>
6747         Add a new request `sizes' similar to the `sizes' command in DESC
6748         files.
6750         * src/roff/troff/env.cc (override_sizes): New function.
6751         (init_env_requests): Use it.
6752         * src/roff/troff/token.h: Export `read_string'.
6753         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6755 2002-03-12  Werner LEMBERG  <wl@gnu.org>
6757         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6759 2002-03-10  Werner LEMBERG  <wl@gnu.org>
6761         * tmac/pspic.tmac: Add support for -Tdvi.
6762         * tmac/dvi.tmac: Include pspic.tmac.
6763         * src/devices/grodvi/grodvi.man: Document it.
6764         * NEWS: Updated.
6766         * font/devlj4/generate/Makefile: Fix URL of metric files.
6768 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6770         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6772 2002-03-09  Larry Kollar  <kollar@alltel.net>
6774         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6776 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6778         * doc/groff.texinfo: Fixes for texinfo 4.1.
6780 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6782         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6783         included.
6784         Handle CYGWIN properly.
6786 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6788         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6789         * tmac/lbp.tmac: Add some font translations.
6791 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6793         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6794         font/devhtml/R.proto: Remove `charXXX'  entries.
6795         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6796         where appropriate.
6798         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6799         * font/devlj4/*: Regenerated all font definition files.
6800         * tmac/lj4.tmac: Load latin1.tmac.
6802         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6803         from 2000-06-17: LJ4 metric files are *not* text files.
6805         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6806         register to test for EBCDIC.
6808 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6810         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6811         files (as grops already does).
6812         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6813         files.
6814         * src/devices/grops/grops.man: Document comment lines in encoding
6815         files.
6817         * tmac/cp1047.tmac: New file.
6818         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6819         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6820         * tmac/Makefile.sub (NORMALFILES): Updated.
6822         * tmac/ec.tmac: Don't load latin1.tmac again.
6824         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6825         font/devps/generate/dingbats.map,
6826         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6827         font/devps/generate/Makefile (symbolmap): Add header comment.
6828         * font/devps/generate/textmap: Ditto.
6829         Remove `charXXX' entries.
6830         * font/devps/symbolmap: Regenerated.
6831         * font/devps/*: Regenerated all font definition files.
6833 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6835         Add color support to grodvi (for drawing colors are currently
6836         translated to gray values).
6838         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6839         (dvi_printer): Add `cur_color' member.
6840         (dvi_printer::set_color): New function.
6841         (draw_dvi_printer): Remove `fill'.
6842         (draw_dvi_printer::fill_next): Pass environment as parameter.
6843         Update code for new color support translated to gray.
6844         (dvi_printer::set_char): Updated.
6845         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6846         changes crossing the page border.
6847         (dvi_printer::draw): Updated.
6848         Remove cases `f' and `F'.
6849         * tmac/dvi.tmac: Add color definitions.
6850         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6852         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6853         used incorrectly.
6855         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6856         versions of autoconf.
6857         * configure: Updated.
6859         * doc/homepage.ms: Use `.blm'.
6860         * tmac/www.tmac (www-depth): New auxiliary variable.
6861         (www-pop-level): Don't issue HTML tag.
6862         (ULS, ULE, LI): Use absolute indentation.
6864         * src/devices/grops/ps.cc (ps_printer::begin_page,
6865         ps_printer::end_page): Switch forth and back to default color while
6866         starting a new page.
6868 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6870         Add EC and TC fonts to devdvi.
6872         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6873         * font/devdvi/generate/cork.map: Renamed to...
6874         * font/devdvi/generate/ec.map: This.
6875         Remove entry for `aq'.
6876         * font/devdvi/generate/tc.map: New file.
6877         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6878         EC and TC fonts.
6879         (FONTS): Updated.
6880         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6881         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6882         * tmac/ec.tmac: New file.
6883         * tmac/Makefile.sub (NORMALFILES): Updated.
6884         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6885         * man/groff_char.man: Check `ECFONTS' register.
6887         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6889 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6891         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6892         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6893         * font/devdvi/*: Updated.
6894         * tmac/dvi.tmac: Formatting.
6896         Add font `HBI' for the dvi output.
6897         Add support for font families `T' and `H'.
6899         * font/devdvi/HBI: New file.
6900         * font/devdvi/B: Renamed to ...
6901         * font/devdvi/TB: This.
6902         * font/devdvi/BI: Renamed to ...
6903         * font/devdvi/TBI: This.
6904         * font/devdvi/I: Renamed to ...
6905         * font/devdvi/TI: This.
6906         * font/devdvi/R: Renamed to ...
6907         * font/devdvi/TR: This.
6908         * font/devdvi/H: Renamed to ...
6909         * font/devdvi/HR: This.
6910         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6911         * font/devdvi/generate/Makefile (HBI): New rule.
6912         (FONTS): Updated.
6913         (R, I, B, BI, H): Renamed to ...
6914         (TR, TI, TB, TBI, HR): This, respectively.
6915         (srcdir): Fixed.
6916         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6917         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6918         Add `styles' and `family' keywords.
6919         * tmac/dvi.tmac: Alias `H' to `HR'.
6920         Add some fspecial requests for italic fonts.
6921         Add TR and TI as special.
6922         Add support for `_' with font CWI.
6924         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6925         operator `:'.  Until now, the expression `0:1' would return 2
6926         instead of 1.
6928 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6930         * man/groff_char.man: Added some missing PS glyph names (from the
6931         Adobe Glyph List).
6932         * font/devps/generate/textmap, font/devps/symbolmap: Add
6933         `arrowupdn'.
6935         * doc/groff.texinfo: Minor additions and fixes.
6936         * man/groff_diff.man: Remove documentation of fp request.  This
6937         is already covered in the original troff manual.
6938         Updated to be consistent with other doc files.
6939         * NEWS: Updated.
6941 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6943         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6944         TTYDEVDIRS.
6945         Define new variable OTHERDEVDIRS (containing `font/devlj4
6946         font/devlbp' if not EBCDIC).
6947         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6948         (OTHERDEVDIRS): New variable.
6949         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6950         * configure: Regenerated.
6952         * NEWS, src/devices/grotty/grotty.man: Updated.
6954 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6956         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6957         get_line_arg): Honour input level.
6959         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6961         * font/*/*: Implement it in all font files.
6962         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6963         * font/devps/symbolmap: Updated.
6964         * font/devlj4/generate/text.map: Updated.
6965         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6966         * font/devdvi/generate/texmi.map: Updated.
6968         * font/devutf8/R.proto: Remove all `charXXX' entries.
6969         * font/devutf8/NOTES: Updated.
6971         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6972         version 4.1.0.
6974         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6976         * NEWS, man/groff_char.man: Updated.
6978 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6980         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6982 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6984         * src/roff/grog/grog.pl: Fix computation of $refer.
6986 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6988         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6989         `snprintf' and `vsnprintf'.
6991         * src/include/htmlindicate.h: Renamed to...
6992         * src/include/htmlhint.h: This.
6993         * src/include/Makefile.sub: Updated.
6994         * src/preproc/eqn/main.cc: Updated.
6996 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6998         * man/roff.man, man/groff_out.man, man/groff.man,
6999         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
7000         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
7002         * win32-diffs: Updated.
7004 2002-02-17  Werner LEMBERG  <wl@gnu.org>
7006         * doc/Makefile (clean): Add *.eps.
7007         (MEMACROS): Removed.
7008         (TFLAG): New variable.
7009         (TROFF): Use it.
7010         Add -ww.
7011         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
7012         (.me.dit): Fixed.
7013         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
7015         * tmac/www.tmac: Use dummy diversion while resetting and disabling
7016         `.tl'.
7017         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
7018         unstripped.
7019         * src/roff/troff/troff.man: Fix order of parameter description.
7021         * NEWS: Updated.
7023 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
7025         Simplify image handling for grohtml.
7026         Fix <p> bug.
7028         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
7029         comment out.
7030         (html_text::dump_stack): Don't emit newline while debugging.
7031         (html_text::do_push) [DEBUGGING]: Print more info.
7032         (html_text::check_emit_text): Fix handling of <p>.
7033         * src/devices/grohtml/html.h: Updated.
7034         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
7035         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
7036         send its data to stderr also.
7037         Update all callers.
7038         (simple_output::space_or_newline) [DEBUGGING]: Removed.
7039         * src/devices/grohtml/post-html.cc (html_printer::do_links,
7040         html_printer::html_printer): Remove `DEBUGGING' conditionals.
7042         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
7043         Removed.
7044         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
7045         is_inline_image): Removed.
7046         (html_begin_suppress, html_end_suppress): Don't take a parameter.
7047         (graphic_start, graphic_end): Removed.
7048         * src/include/htmlindicate.h: Updated.
7049         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
7050         (macroset_template): New global variable.
7051         (makeFileName): Use `macroset_template'.
7052         (write_end_image): Don't take a parameter.
7053         Don't emit newline.
7054         (write_start_image: Don't emit newline.
7055         (char_buffer::write_upto_newline): Updated.
7056         (char_buffer::skip_to_newline): Renamed to ...
7057         (char_buffer::skip_until_newline): This.
7058         Fix code.
7059         (char_buffer::write_file_troff, char_buffer::write_file_html):
7060         Simplified.
7061         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
7062         (removeAllPages): Remove `DEBUGGING' conditionals.
7063         (addRegDef, dump_args): New functions.
7064         (char_buffer::do_html, char_buffer::do_image): Handle
7065         `www-image-template' command line variable.
7066         Add more debugging code.
7067         (addps4html): Removed.
7068         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
7070         * src/preproc/eqn/main.cc: Include `ctype.h'.
7071         (suppress_html): Removed.
7072         (do_file): Updated.
7073         (inline_equation): Use `html_begin_suppress' and
7074         `html_end_suppress'.
7075         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
7076         (troff_output::start_picture, troff_output::finish_picture):
7077         Updated.
7078         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
7079         (process_input_file): Updated.
7081         * src/roff/troff/div.cc (page_number): Set page number only if the
7082         `ps4html' register isn't defined.
7083         * src/roff/troff/input.cc (image_no): New external variable.
7084         (do_suppress): Use it.
7085         * src/roff/troff/node.h (suppress_node::image_id): New member.
7086         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
7087         (suppress_node::suppress_node): Initialize `image_id' member.
7088         (suppress_node::same): Handle `image_id' also.
7089         (suppress_node::copy): Updated.
7090         (last_image_id): New global variable.
7091         (suppress_node::tprint): Use it.
7093         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
7094         HTML-IMAGE-END.
7095         * tmac/pspic.mac (PSPIC): Fix html support.
7096         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
7097         * tmac/www.tmac (www-image-template): Set up.
7098         (HTMLINDEX): Renamed to...
7099         (HX): This.
7100         (BODYCOLOR): Renamed to...
7101         (BCL): This.
7102         (BACKGROUND): Renamed to...
7103         (BGIMG): This.
7104         (URL): Change order of parameters for consistency.
7105         (MAILTO): Renamed to...
7106         (MTO): This.
7107         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
7108         (IMG, PIMG, MPIMG): This.
7109         (HTML-H-BEGIN, HTML-H-END): Renamed to...
7110         (HnS, HnE): This.
7111         (LINKS): Renamed to...
7112         (LK): This.
7113         (LINE): Renamed to...
7114         (HR): This.
7115         (NO-AUTO-RULE): Renamed to...
7116         (NHR): This.
7117         (HTML-TL): Renamed to...
7118         (HTL): This.
7119         (UL-BEGIN, UL-END): Renamed to...
7120         (ULS, ULE): This.
7121         (DROPCAP): Renamed to...
7122         (DC): This.
7123         (TS, TE, EQ, EN): Provide default definitions.
7124         (www-make-unique-name): Updated.
7125         (HTML-IMAGE-INLINE): Fix typo.
7126         * tmac/groff_www.man: Updated.
7128         * doc/Makefile (homepage.html): Add option -r to grohtml.
7129         Use shortened image name.
7130         * doc/groff.texinfo: Updated info on grohtml strings and macros.
7131         * doc/homepage.ms: Updated and extended.
7133 2002-02-14  Werner LEMBERG  <wl@gnu.org>
7135         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
7137         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
7138         SGR_BACK_DEFAULT_COLOR): Replaced with ...
7139         (tty_printer::put_color): Use it.
7140         (ttr_printer::end_page): Simplify.
7142 2002-02-13  Werner LEMBERG  <wl@gnu.org>
7144         * tmac/groff_tmac.man: Moved to...
7145         * man/groff_tmac.man: This place.
7146         * tmac/Makefile.sub, man/Makefile.sub: Updated.
7148 2002-02-12  Werner LEMBERG  <wl@gnu.org>
7150         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
7151         $(COMPILE.c) to not include groff's assert.h.
7153         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
7154         variable.
7155         * NEWS, src/drivers/grotty/grotty.man: Document it.
7157 2002-02-11  Werner LEMBERG  <wl@gnu.org>
7159         * src/libs/snprintf/snprintf.c: Updated to latest version
7160         (2002-02-11).
7162         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
7163         test whether there is `.]' also.
7164         Don't check for spaces after `.['.
7165         * src/roff/grog/grog.sh: Do the same.
7167 2002-02-10  Werner LEMBERG  <wl@gnu.org>
7169         Illegal -> Invalid.
7171         * src/libs/libgroff/illegal.cc: Renamed to ...
7172         * src/libs/libgroff/invalid.cc: This.
7173         (illegal_char_table): Renamed to ...
7174         (invalid_char_table): This.
7175         * src/libs/libgroff/Makefile.sub: Updated.
7176         * win32-diffs: Updated.
7178         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
7179         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
7180         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
7181         font::load), src/preproc/eqn/main.cc (read_line, main),
7182         src/preproc/eqn/lex.cc (file_input::read_line),
7183         src/preproc/pic/lex.cc (file_input::read_line,
7184         simple_file_input::get, simple_file_input::peek),
7185         src/preproc/pic/main.cc (top_input::get, top_input::peek),
7186         src/preproc/pic/pic.man, src/preproc/refer/main.cc
7187         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
7188         do_bib), src/preproc/tbl/main.cc (table_input::get),
7189         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
7190         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
7191         do_zero_width, read_request, encode_char, ps_get_line,
7192         transparent_file, get_char_for_escape_name, transparent_translate,
7193         asciify, input_char_description, read_string, set_string),
7194         src/roff/troff/env.cc (environment::add_html_tag),
7195         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
7197         * src/include/lib.h: Updated.
7199         * src/preproc/eqn/eqn.cc: Removed.
7201         * NEWS: Updated.
7203         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
7205 2002-02-09  Werner LEMBERG  <wl@gnu.org>
7207         * doc/gnu.xpm: New image.
7208         * doc/Makefile (DOCS): Add homepage.ps.
7209         Add rules for converting xpm->png and xpm->eps.
7210         Use `gnu.{xpm,eps}' as image names.
7211         * doc/homepage.ms: Updated.
7213 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
7215         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
7216         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
7217         Remove calls to `B1' and `B2'
7218         (PNG-IMAGE): New macro for inclusion of images in PNG format.
7219         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
7220         auxiliary variables for MARGIN-PNG-IMAGE.
7221         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
7222         auxiliary macros for MARGIN-PNG-IMAGE.
7223         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
7224         the margin.
7225         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
7226         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
7227         (DROPCAP): New macro to produce dropcap characters.
7228         (www-do-image): Renamed back to...
7229         (HTML-DO-IMAGE): This.
7230         Updated all callers.
7232         * doc/Makefile (gnubw.eps): Updated.
7233         * doc/homepage.ms: Updated.
7235 2002-02-08  Werner LEMBERG  <wl@gnu.org>
7237         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7238         Added `linethick' to table in section `Style Variables'.
7240 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
7242         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7244 2002-02-07  Werner LEMBERG  <wl@gnu.org>
7246         Adding options -C (compatibility mode) and -c (grotty's old output
7247         scheme) to nroff.
7249         * src/roff/nroff/nroff.sh: Implement it.
7250         Remove `-Wall'.
7251         * NEWS, src/roff/nroff/nroff.man: Updated.
7253         * PROBLEMS: Document bison 1.32 bug.
7255         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7257         * src/roff/troff/node.cc (make_tfont): Define it earlier.
7258         * src/roff/troff/div.h: Add prototype for `end_diversions'.
7259         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7260         * src/roff/troff/env.h: Add prototype for `title'.
7262         Adding EBCDIC support to grotty.
7264         * src/devices/grotty/tty.cc (CSI): New macro.
7265         (SGR_*, tty_printer::put_color): Use it.
7267 2002-02-06  Werner LEMBERG  <wl@gnu.org>
7269         Implementing color support in grotty.  The new switch -c activates
7270         the old drawing scheme, disabling color at the same time.  The new
7271         switch `-i' selects italic instead of underlining (SGR only).
7273         * src/devices/grotty/tty.cc (putstring): New define instead of
7274         `fputs'.  Updated all callers.
7275         (old_drawing_scheme): New global variable.
7276         (COLOR_CHANGE): New enum value.
7277         (SGR_*): New defines containing color handling escape sequences.
7278         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7279         (glyph): New members `back_color_idx' and `fore_color_idx'.
7280         (glyph::order): Add COLOR_CHANGE.
7281         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7282         `is_underline', `is_bold', `cu_flag', `tty_colors'.
7283         New methods `make_underline', `make_bold', `color_to_idx',
7284         `change_color', `put_color'.
7285         (cu_flag): Moved into `tty_printer' class.
7286         (tty_printer::tty_printer): Initialize colors.
7287         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7288         tty_printer::draw, tty_printer::end_page): Handle colors also.
7289         (main): Add options `-c' and `-i'.
7290         (usage): Updated.
7291         * NEWS, src/devices/grotty/grotty.man: Updated.
7293         * src/include/errarg.h (errarg): Add support for `unsigned int'.
7294         * src/libs/libgroff/errarg.c: Implement it.
7296         * src/include/printer.h (printer): Add `change_color' method
7297         (currently used by grotty only).
7298         * src/libs/libdriver/printer.cc: Implement it.
7299         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7300         call to `pr->change_color'.
7302         * src/roff/troff/node.cc (troff_output_file::fill_color,
7303         troff_output_file::glyph_color): Call `do_motion'.
7305         * tmac/tty.tmac: Add color definitions.
7307         * src/roff/groff/groff.man: Minor fixes.
7309 2002-02-05  Bernd Warken  <bwarken@mayn.de>
7311         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7312         it.  This is a preparation for future changes.
7314 2002-02-05  Werner LEMBERG  <wl@gnu.org>
7316         * src/roff/troff/input.cc (process_input_stack): Fix the case
7317         where leading spaces are followed by \f or \s; previously, an
7318         incorrect space width has been used.
7320         * doc/roff.man (quoted_char): Fix argument.
7321         (comment): Define string.
7323 2002-02-04  Larry Kollar  <kollar@alltel.net>
7325         * doc/groff.texinfo: More fixes.
7327 2002-02-04  Werner LEMBERG  <wl@gnu.org>
7329         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7330         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7331         `restore_compatibility' before `output_string' -- the LINE_STRING
7332         register now already contains proper switches from and to
7333         compatibility mode.
7335         * man/groff_char.man: Add Euro symbol.
7336         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7337         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7338         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7339         Other minor fixes.
7341         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7342         texinfo->pdf.
7343         (.texinfo.html): Add support for texinfo->html.
7345 2002-02-03  Werner LEMBERG  <wl@gnu.org>
7347         Added three new requests `ds1', `as1', and `ami'.  The former two
7348         are equivalent to `ds' and `as' with the difference that
7349         compatibility mode is saved on entry, switched off during string
7350         expansion, and restored on exit.  The latter is the pendant to `dei'
7351         for `am'.
7353         (do_define_string): Use `define_mode' and `calling mode'.
7354         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7355         end of string, respectively.
7356         (define_string, append_string): Use `calling_mode'.
7357         (define_nocomp_string, append_nocomp_string,
7358         define_string_indirect): New functions.
7359         (init_input_requests): Updated.
7360         * NEWS, man/groff_diff.man, man/groff.man: Document it.
7362         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7363         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
7364         mm macro package accesses this string register directly.
7365         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7367         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
7368         compatibility mode.
7370 2002-02-02  Larry Kollar  <kollar@alltel.net>
7372         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7374 2002-01-31  Werner LEMBERG  <wl@gnu.org>
7376         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7378 2002-01-31  Bernd Warken  <bwarken@mayn.de>
7380         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7381         * man/groff_out.man: Revised and updated.
7383 2002-01-30  Bernd Warken  <bwarken@mayn.de>
7385         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7386         out the unused `{' and `}' commands.  Undefined by default.
7387         (IntArray): Make `data' private.
7388         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7389         new methods instead.
7390         (skip_line_D, skip_to_end_of_line): New functions.
7391         (get_D_fixed_args): Use `skip_line_D'.
7392         Changed to handle dummy odd arguments by ...
7393         (get_D_fixed_args_odd_dummy): This new function.
7394         (get_D_variable_args): Split some code into ...
7395         (get_possibly_integer_args): This new function.
7396         (send_draw): Use more `const'.
7397         (delete_current_env): New function.
7398         (position_to_end_of_args): Use `size_t'.
7399         Updated.
7400         (send_draw): Updated.
7401         (parse_D_command): Handle `c', `C', and `t' better.
7402         Updated.
7403         (do_file): Updated.
7405 2002-01-29  Werner LEMBERG  <wl@gnu.org>
7407         * NEWS: Revised.
7408         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7409         @Def...ListEnd which replaces @Def...x.  This is necessary to get
7410         proper HTML output -- see the comment in the file for more
7411         information.
7412         Updated all calls.
7414 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
7416         Fixes to make color changes of 2002-01-21 work with grohtml.
7418         * src/devices/grohtml/post-html.cc (style): Updated.
7419         (html_printer): Remove unused methods.
7420         (html_printer::do_font, html_printer::draw, html_printer::set_char,
7421         html_printer::special): Updated.
7422         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7423         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7424         Added some debugging code.
7425         (html_text::start_tag): Updated.
7426         (html_text::do_push): New method.
7427         (html_text::push_para): Call it.
7428         Add method for handling color.
7429         (html_text::do_color): Updated.
7430         (html_text::shutdown): Handle color.
7431         * src/devices/grohtml/html-text.h (tag_definition): New member
7432         `col'.
7433         Updated.
7435 2002-01-28  Werner LEMBERG  <wl@gnu.org>
7437         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7439 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
7441         Add two switches -a and -g to control the antialiasing bits for
7442         text and graphics, respectively.
7444         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7445         `-g'.
7446         * src/devices/grohtml/grohtml.man: Document them.
7447         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7448         New macros.
7449         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7450         (setupAntiAlias): New function.
7451         (createAllPages): Updated.
7452         (scanArguments): Handle `-a' and `-g'.
7453         (main): Call `setupAntiAlias'.
7454         * NEWS: Updated.
7456 2002-01-27  Werner LEMBERG  <wl@gnu.org>
7458         * doc/groff.texinfo (Def*): Call index function after deffn.
7460         * tmac/html.tmac: Call `nroff' request.
7462 2002-01-26  Larry Kollar  <kollar@alltel.net>
7464         * tmac/groff_ms.man: Add some omissions.
7466 2002-01-25  Larry Kollar  <kollar@alltel.net>
7468         * tmac/groff_ms.man: Typographical improvements.
7470 2002-01-25  Werner LEMBERG  <wl@gnu.org>
7472         * doc/groff.texinfo: Updated version and copyright.
7473         * src/devices/grops/grops.man: Updated.
7475         * tmac/groff_tmac.man: Fix `ig' macro.
7477         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7478         nroff mode.
7479         Use `.ne' unconditionally everywhere.
7480         (TS): Only insert some vertical space.  Doing a page break is no
7481         longer necessary due to the redefinition of the `ne' request.
7483         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7484         warning for unknown subcommands but parse and pass them to the
7485         device driver.
7487 2002-01-24  Werner LEMBERG  <wl@gnu.org>
7489         * tmac/groff_www.man, NEWS: Fix typos.
7491 2002-01-21  Werner LEMBERG  <wl@gnu.org>
7493         Complete revision of color support:
7495           Adapt programs to the new libdriver/input.cc.
7497           Color spaces are no longer converted to RGB but transferred as-is
7498           in the troff intermediate output format.
7500           Handle default color gracefully.  troff now supports a `default'
7501           color (which can't be changed).
7503           grops will now use the proper color space functions if available.
7505           Update pic.
7507         Note that currently grohtml doesn't handle colors properly.  This
7508         has to be fixed.
7510         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7511         (ui_to_a): New function.
7512         * src/include/lib.h: Updated.
7514         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7515         (color): Simplified; removed all `double' members and methods.
7516         A new array `components' now holds the color parameters.
7517         (color::is_default, color::get_components): New methods.
7518         (color::operator==, color:operator!=): New.
7519         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7520         to make access to the `components' array more comprehensible.
7521         * src/libs/libgroff/color.cc: Implement new color support.
7522         (atoh): Small fixes.
7523         (color::read_encoding): Simplified for new troff intermediate color
7524         output format.
7525         (default_color): New global variable.
7527         * src/roff/troff/input.cc (default_symbol): New global variable.
7528         (lookup_color): Use it.
7529         (default_black): Removed.
7530         (do_glyph_color, do_fill_color): Simplified.
7531         (define_color): Handle default color.
7532         Improve warnings.
7533         (do_if_request): Handle default color.
7534         * src/roff/troff/env.cc (environment::environment): Initialize
7535         colors with `default_color'.
7536         * src/roff/troff/node.cc (troff_output_file::put): Add method
7537         for `unsigned int'.
7538         (troff_output_file::hex): Removed.
7539         (troff_output_file::fill_color, troff_output_file::glyph_color):
7540         Updated to include/color.h and libdriver/input.cc.
7542         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7543         fill color properly (identically to the outline color).  \D'f...'
7544         doesn't work any more.
7545         All function calls to it updated.
7547         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7548         Updated.
7549         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7550         Updated.
7552         * src/devices/grops/ps.cc (ps_output::put_color): New method.
7553         (ps_printer::sbuf_color): Make a real member instead of pointer.
7554         (ps_printer::fill_color, ps_printer::output_color): Removed.
7555         (ps_printer::ps_printer): Updated.
7556         (ps_printer::set_char): Ditto.
7557         (ps_printer::set_color): Use various color schemes.
7558         Use `put_color' method.
7559         (ps_printer::flush_sbuf): Don't set color.
7560         (ps_printer::fill_path): Take `environment' as parameter.
7561         Simplify color handling.
7562         (ps_printer::set_line_thickness): Renamed to ...
7563         (ps_printer::set_line_thickness_and_color): This (and updated).
7564         (ps_printer::set_color): Change second parameter from `complete'
7565         to `fill' which better describes what it does.
7566         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7567         and text in the right order.
7568         Updated.
7569         Remove branches for `f' and `F'; this is handled by
7570         libdriver/input.cc.
7571         * src/devices/grops/ps.h: Updated.
7572         * font/devps/prologue (FL): Redefined.
7573         ({F,C}r,k,g: New color functions (with and without filling).
7575         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7576         * man/groff_diff.man, man/groff.man, man/groff_out.man,
7577         doc/groff.texinfo, NEWS: Updated.
7579 2002-01-20  Bernd Warken  <bwarken@mayn.de>
7581         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
7582         in this file for what has been changed.
7584 2002-01-19  Werner LEMBERG  <wl@gnu.org>
7586         * test-groff: Fix GROFF_FONT_PATH.
7587         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7588         is read before .TH or .Dd is parsed.
7590 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
7592         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7593         quadrant boundaries.
7595 2002-01-18  Werner LEMBERG  <wl@gnu.org>
7597         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
7598         applied last patch.
7600 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
7602         * tmac/doc.common: Initialize %I register for the %I macro to
7603         avoid (harmless) warning.
7604         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7605         when in the SYNOPSIS section.
7607 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
7609         * src/preproc/pic/lex.cc (get_token): Fix typo.
7611 2002-01-17  Werner LEMBERG  <wl@gnu.org>
7613         * devices/grops/ps.cc: Fix incorrectly applied last patch.
7615 2002-01-17  Larry Kollar  <kollar@alltel.net>
7617         * tmac/groff_ms.man: Completely rewritten.
7619 2002-01-16  Werner LEMBERG  <wl@gnu.org>
7621         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7623 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7625         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7626         fill colors.
7627         (ps_printer::draw): Ditto.
7629 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
7631         * tmac/groff_mdoc.man: Minor fixes.
7633 2002-01-13  Werner LEMBERG  <wl@gnu.org>
7635         * man/groff_out.man: Some fixes.
7637 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
7639         * doc/pic.ms: Fix typos.
7641 2002-01-12  Werner LEMBERG  <wl@gnu.org>
7643         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7645 2002-01-10  Werner LEMBERG  <wl@gnu.org>
7647         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7648         symbols.
7649         * NEWS: Updated.
7651 2002-01-09  Bernd Warken  <bwarken@mayn.de>
7653         * man/groff_out.man: Revised.
7654         * man/roff.man: Minor fixes.
7655         * src/roff/troff/troff.man: Some reordering.
7657 2002-01-09  Werner LEMBERG  <wl@gnu.org>
7659         * tmac/an-old.tmac: Add dummy macros for equation support.
7661 2002-01-07  Werner LEMBERG  <wl@gnu.org>
7663         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7665         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
7666         man pages.
7667         * tmac/groff_man.man: Small improvements.
7669 2002-01-07  Bernd Warken  <bwarken@mayn.de>
7671         * man/groff_diff.man: Revised.
7673 2002-01-06  Werner LEMBERG  <wl@gnu.org>
7675         * tmac/www.tmac: Remove extraneous backslash.
7677 2002-01-06  Bernd Warken  <bwarken@mayn.de>
7679         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7681 2002-01-05  Werner LEMBERG  <wl@gnu.org>
7683         Integrated groffer, contributed by Bernd Warken.
7685         * contrib/groffer/*: New.       
7686         * Makefile.in, NEWS: Updated.
7688 2002-01-04  Werner LEMBERG  <wl@gnu.org>
7690         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7691         registers defined in macro packages.
7692         Revising the ms part.
7694 2002-01-04  Larry Kollar  <kollar@alltel.net>
7696         * doc/groff.texinfo: Add documentation for ms macros.
7698 2002-01-02  Werner LEMBERG  <wl@gnu.org>
7700         First step in adding PS support for the Euro symbol.  `eu' is the
7701         official Euro logo, `Eu' is a font-specific glyph variant.
7703         * font/devps/text.enc: Add `Euro' at position 9.
7704         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7705         * font/devps/symbolmap: Regenerated.
7707         * NEWS: Updated.
7709 2002-01-02  Bernd Warken  <bwarken@mayn.de>
7711         * man/roff.man: Revised.
7713 2002-01-01  Bernd Warken  <bwarken@mayn.de>
7715         * src/roff/groff/groff.man: Completely rewritten.
7717 2001-12-31  Werner LEMBERG  <wl@gnu.org>
7719         * doc/Makefile: Updated.
7721 2001-12-30  Werner LEMBERG  <wl@gnu.org>
7723         * tmac/www.tmac: Make all names of internal macros/registers/strings
7724         lowercase, and prepend `www-'.
7725         Other minor changes.
7726         * src/roff/troff/troff.man: Add preprocessor string at BOF.
7728 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
7730         Implement option `-b' in grohtml to set the HTML background colour.
7732         * src/devices/grohtml/post-html.cc (default_background): New global
7733         variable.
7734         (html_printer::html_printer): Initialize `background' to
7735         `default_background'.
7736         (main): Implement option `-b'.
7737         (usage): Updated.
7738         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7739         of `-b' option.
7740         * src/devices/grohtml/grohtml.man: Updated.
7741         * doc/Makefile (.ms.html): Use `-b'.
7742         * tmac/html.tmac: Don't set background color.
7744         Add new grohtml tag `.html-tl'.
7746         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7747         member variable.
7748         (title_desc::title_desc): Updated.
7749         (html_printer::troff_tag): Handle `.html-tl'.
7750         (html_printer::write_title): Use `with_h1'.
7751         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7752         (HTML-TL): New macro.
7754         Add support for unordered lists in HTML.
7756         * tmac/www.tmac (www-level): New auxiliary register.
7757         (www-level1, www-level2, www-level3): New auxiliary strings.
7758         (www-push-level, www-pop-level): New auxiliary macros
7759         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7761         Miscellaneous.
7763         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7764         (DEFAULT_VERTICAL_OFFSET): Removed.
7765         (IMAGE_BOARDER_PIXELS): Set to 0.
7766         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7767         (vertical_offset): Initialize with 0.
7768         (gsPaper): New global variable.
7769         (get_resolution): Scan for and return unsigned int.
7770         (get_papersize): New function to get paper length from devps/DESC.
7771         (determine_vertical_offset): New function.
7772         (createAllPages): Produce gray-level images and use proper page
7773         length.
7774         (createImage): Use `-quiet' option of pnmcrop.
7775         (addZ): Fix passing of `-Z'.
7776         (scanArguments): Fix handling of `-o'.
7777         (main): Call `determine_vertical_offset'.
7778         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7779         code for `l'.
7781         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7782         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7783         glyph descenders properly.
7785         * doc/homepage.ms: Include `gnubw.eps'.
7786         * doc/Makefile (gnubw.eps): New rule.
7787         (homepage.html): Depend on `gnubw.eps'.
7789 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7791         * src/roff/troff/input.cc (default_black): Fix return value.
7793 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7795         * tmac/doc-common (Dt): Change output of architecture strings.
7796         Do some syntax cleanup.
7797         * tmac/groff_mdoc.man: Updated.
7799 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7801         Adding an `itc' request (input line trap accepting \c).
7803         * src/roff/troff/env.h (environment): New member
7804         `continued_input_trap'.
7805         Make `do_input_trap' a friend function instead of `input_trap'.
7806         * src/roff/troff/env.cc (environment::environment,
7807         environment::copy): Updated.
7808         (environment::newline): Implement it.
7809         (do_input_trap): New function.
7810         (input_trap): Call `do_input_trap'.
7811         (input_trap_continued): New function.
7812         (init_env_requests): Updated.
7813         * src/roff/troff/TODO: Updated.
7815         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7816         `.it'.
7818         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7820 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7822         * tmac/doc-common, tmac/doc-syms: Small updates.
7824 2001-12-22  Colin Watson  <cjwatson@debian.org>
7826         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7828 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7830         * MANIFEST: New file.
7832 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7834         * src/preproc/grn/grn.man: Updated.
7836 2001-12-22  Solar Designer  <solar@openwall.com>
7838         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7839         (DBRead): Use it.
7841 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7843         Implement a fallback character request `.fchar'.
7845         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7846         (is_fallback): New inline function.
7847         * src/roff/troff/input.cc (do_define_character): New function.
7848         (define_character): Call `do_define_character'.
7849         (define_fallback_character): New function.
7850         (init_input_requests): Add `fchar'.
7851         (charinfo::charinfo): Updated.
7852         (charinfo::set_macro): New argument to set `fallback' flag.
7853         * src/roff/troff/node.cc (make_glyph_node, make_node,
7854         node::add_char): Check `fallback' flag.
7855         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7857 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7859         * groff.texinfo: Document exact search algorithm for glyphs.
7861 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7863         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7864         the left side of $(MANPAGES) rule to make it always non-empty.
7866 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7868         * src/roff/troff/input.cc (default_black): Define default color
7869         `black' if not yet defined.
7871 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7873         Implement new string-valued register `.fn' to return the current
7874         real (internal) font name.
7876         * env.cc (environment::get_font_name_string): New function.
7877         (init_env_requests): Add `.fn' register.
7878         * env.h (environment): Updated.
7879         * node.cc (font_info): Make `get_font_name' a friend.
7880         (get_font_name): New function.
7881         * node.h: Updated.
7883         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7885 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7887         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7889 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7891         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7893 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7895         * man/groff_diff.man: Adding documentation for \O.
7897 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7899         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7900         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7902 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7904         * man/roff.man: Revised.
7905         * src/roff/groff/groff.man: Replace man page references with a
7906         pointer to roff.man.
7908 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7910         * man/roff.man: Completely rewritten.
7912 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7914         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7916 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7918         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7919         longer used.
7920         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7921         order of initializers.
7922         * NEWS: Updated.
7924 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7926         * doc/groff.texinfo: Fix documentation of \O.
7928         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7929         html_text::do_table, html_text::do_emittext, html_text::do_para):
7930         Use `const' for first argument.
7931         (html_text::do_table): Use cast.
7932         * src/devices/grohtml/html-text.h: Updated.
7933         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7934         method for `const string &s'.
7935         * src/devices/grohtml/html.h: Updated.
7936         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7937         (ANCHOR_TEMPLATE): Modified.
7938         (manufacture_headings): New global variable to handle `-h' option.
7939         (is_subsection): Removed.
7940         (char_buffer::add_string): Add `const' to first argument.
7941         Protect against invalid string argument.
7942         Add method for `const string &s'.
7943         (text_glob): Completely redesigned.
7944         (page): Use `const' for strings and remove string length variable.
7945         (page::add_html): Removed.
7946         (page::add_end_encode): New member function.
7947         (to_unicode): Moved upwards.
7948         (title_desc, header_desc): Updated.
7949         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7950         definition.
7951         (html_printer::is_bold, html_printer::make_bold): New member
7952         functions.
7953         (html_printer::end_of_line): Updated.
7954         (generate_img_src, html_printer::do_auto_image,
7955         html_printer::do_title, html_printer::write_header,
7956         html_printer::determine_header_level, html_printer::do_heading,
7957         html_printer::do_linelength, html_printer::do_pageoffset,
7958         html_printer::do_indentation, html_printer::do_tempindent,
7959         html_printer::do_indentedparagraph, html_printer::do_break,
7960         html_printer::flush_sbuf, get_html_translation,
7961         html_printer::begin_page, html_printer::special): Rewritten to get
7962         rid of static string length limit.
7963         (html_printer::troff_tag): Added `.no-auto-rule'.
7964         (html_printer::flush_globs): Small fix.
7965         (html_printer::determine_space): Don't compute `space_width'.
7966         (html_printer::translate_to_html): Renamed to ...
7967         (html_printer::emit_html): This (with updates).
7968         (html_printer::write_header): Implement `-h' option.
7969         (html_printer::draw): Remove commented-out code.  Handle `F'
7970         command.
7971         (html_printer::add_char_to_sbuf): Removed.
7972         (html_printer::add_to_sbuf): Rewritten.
7973         (html_printer::sbuf_continuation): Fixed.
7974         (html_printer::seen_backwards_escape, reverse,
7975         html_printer::remove_last_char_from_sbuf): Removed.
7976         (char_translate_to_html, str_translate_to_html): Removed.
7977         (html_printer::overstrike): New function member.
7978         (html_printer::set_char): Use it.
7979         (html_printer::do_body): New function member.
7980         (html_printer::~html_printer): Use it.
7981         (main): Handle `-h' option.
7982         (usage): Updated.
7983         * src/devices/grohtml/grohtml.man: Document -h switch.
7985         * src/preproc/html/pre-html.cc: Include searchpath.h
7986         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7987         (get_resolution): New function.
7988         (checkImageDir): Use `0777' permissions in mkdir()
7989         (write_start_image): Rewritten to use `\O[5...]'.
7990         (createImage, generateImages): Updated.
7991         (main): Handle `F' and `h' options.
7992         Use `get_resolution'.
7994         * src/roff/troff/input.cc (begin, end, image): Removed.
7995         (do_suppress): Take parameter.
7996         Handle modified syntax of `\O'.
7997         (token::next): Updated.
7998         (init_markup_requests): Removed.
7999         (main): Updated.
8001         * src/roff/troff/div.h: Add declaration for begin_page().
8003         * tmac/color-html.tmac: Removed.  Contents moved to...
8004         * tmac/html.tmac: Here.  Set background color.
8005         * tmac/color.tmac: Removed.  Contents moved to...
8006         * tmac/ps.tmac: Here.
8007         * tmac/www.tmac: Remove the title command when generating images
8008         for html.
8009         (NO_AUTO_RULE): New macro.
8010         (HTML_DO_IMAGE): Use revised `\O' escapes.
8011         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
8013 2001-12-02  Werner LEMBERG  <wl@gnu.org>
8015         * tmac/groff_mdoc.man: Fix typo.
8017 2001-12-01  Colin Watson  <cjwatson@debian.org>
8019         * man/roff.man: Fix typo.
8021 2001-11-29  Werner LEMBERG  <wl@gnu.org>
8023         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
8024         stdlib.h.
8026         * src/roff/troff/input.cc (read_draw_node): Emit error message if
8027         more than one argument to \D'f ...'.
8029         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
8031 2001-11-28  Werner LEMBERG  <wl@gnu.org>
8033         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
8034         loaded only once.
8036         * tmac/groff_man.man: Minor cosmetic fix.
8038 2001-11-27  Werner LEMBERG  <wl@gnu.org>
8040         * src/roff/groff/groff.man, tmac/groff_tmac.man,
8041         tmac/groff_www.man: s/mwww/www/.
8043 2001-11-26  Werner LEMBERG  <wl@gnu.org>
8045         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
8046         * configure: Regenerated.
8047         * win32-diffs: Updated.
8049         * tmac/groff_mwww.tmac: Renamed to ...
8050         * tmac/groff_www.tmac: This.
8051         * tmac/mwww.tmac: Removed.
8052         * NEWS, tmac/Makefile.sub: Updated.
8054 2001-11-21  Werner LEMBERG  <wl@gnu.org>
8056         * doc/groff.texinfo: Improve documentation of the `\v' escape.
8057         Fix explanation of `\D' and `rt'.
8059 2001-11-20  Werner LEMBERG  <wl@gnu.org>
8061         * tmac/an-old.tmac (an-header): Set header length equal to page
8062         width.
8063         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
8064         minor fixes.
8065         * NEWS: Small fix.
8067 2001-11-19  Werner LEMBERG  <wl@gnu.org>
8069         * NEWS, man/Makefile.sub: Updated.
8071 2001-11-19  Bernd Warken  <bwarken@mayn.de>
8073         * man/ditroff.man: New file.
8075 2001-11-17  Werner LEMBERG  <wl@gnu.org>
8077         * man/groff_differences.man: Renamed to ...
8078         * man/groff_diff.man: This.  Updated.
8079         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
8081         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
8082         * src/preproc/html/pushback.cc: This.  Updated.
8083         * src/preproc/html/pushbackbuffer.h: Renamed to ...
8084         * src/preproc/html/pushback.h: This.
8085         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
8086         Updated.
8088         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
8089         * src/libs/libgroff/htmlhint.cc: This.
8090         * src/libs/libgroff/Makefile.sub: Updated.
8092         * tmac/an-old.tmac (an-end): Fix page length.
8094 2001-11-16  Werner LEMBERG  <wl@gnu.org>
8096         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
8097         * man/Makefile.sub: Include groff_differences.man.
8098         * VERSION: Set to 1.18.
8099         * REVISION: Set to 0.
8101 2001-11-16  Bernd Warken  <bwarken@mayn.de>
8103         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
8104         the second dot (or ending macro name) to end a macro.
8105         * doc/groff.texinfo: Doc fix.
8107 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
8109         * tmac/doc-common (doc-header): Handle very long document titles
8110         better.
8112 2001-11-16  Werner LEMBERG  <wl@gnu.org>
8114         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
8116 2001-11-15  Werner LEMBERG  <wl@gnu.org>
8118         * src/roff/troff/troff.man: Revised and split into troff.man and...
8119         * man/groff_differences.man: New file.
8120         * NEWS: Updated.
8122 2001-11-13  Werner LEMBERG  <wl@gnu.org>
8124         * tmac/an-old.tmac (TS, TE): New macros for table support.
8126 2001-11-12  Werner LEMBERG  <wl@gnu.org>
8128         * src/include/lib.h: Provide a fix for emx to not include
8129         groff-getopt.h.
8131 2001-10-27  Werner LEMBERG  <wl@gnu.org>
8133         * src/roff/troff/input.cc (substring_macro): Fix computation of
8134         boundary values.
8136 2001-10-20  Werner LEMBERG  <wl@gnu.org>
8138         Undo change from 2001-08-28.
8140         * src/roff/troff/input.cc (have_input): New global variable.
8141         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
8142         in compatibility mode.
8143         (process_input_stack): Use it.
8145 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
8147         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
8148         being handled as end-of-sentence characters,
8150 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
8152         * src/roff/troff/input.cc (file_iterator): New members
8153         `suppress_newline_flag' and `seen_escape'.
8154         (file_iterator::next_file): Updated.
8155         (file_iterator::fill): Use it.
8156         (string_iterator): New member `suppress_newline_flag'.
8157         (string_iterator::fill): Set it.
8158         (get_color_element): Use MAX_COLOR_VAL.
8159         * src/roff/troff/env.cc (environment): Remove `need_eol'.
8160         (no_fill): Don't set `env->ignore_next_eol'.
8161         (environment::newline): Handle `eol' tag properly.
8162         Emit `eol.ce'.
8163         (environment::add_html_tag): Set `env->ignore_next_eol'.
8164         Don't handle `.ce'.
8165         * src/roff/troff/env.h (environment): Updated.
8167         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
8168         member function.
8169         (html_printer::outstanding_eol): New member function.
8170         (html_printer::do_title): Use new functions.
8171         (html_printer::troff_tag): Test `id_eol_ce'.
8173 2001-10-10  Werner LEMBERG  <wl@gnu.org>
8175         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
8176         files work with -C also.
8178 2001-10-05  Werner LEMBERG  <wl@gnu.org>
8180         * doc/pic.ms: Minor fix.
8181         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
8182         as a valid command line switch.
8183         * src/devices/grohtml/post-html.cc (main): Ditto.
8184         (usage): Updated.
8185         * src/devices/grohtml/grohtml.man: Updated.
8186         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
8188 2001-10-04  Werner LEMBERG  <wl@gnu.org>
8190         Implementing color support in troff, pic, grops, and grohtml.  These
8191         changes are based on a major patch provided by Gaius Mulley
8192         <gaius@glam.ac.uk>.
8194         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
8195         definitions with both hex values and fractions.
8197         New escapes: \m and \M for drawing and background color,
8198         respectively.  This corresponds to the troff output commands `m'
8199         and `DF'.
8201         groff and troff accept command line switch `-c' to disable color
8202         output (which is automatically disabled in compatibility mode).
8204         New scaling indicator `f' for fractions (1f = 65536u).
8206         New conditional operator `m' to test for defined colors with `if'
8207         and `ie'.
8209         New keywords `color' (or `colour', `colored', `coloured'), `outline'
8210         (or `outlined'), and `shaded' added to pic.
8212         * src/include/color.h: New file.
8213         * src/include/driver.h: Include it.
8214         * src/include/printer.h: Include color.h.
8215         (environment): New members `col' and `fill'.
8216         (printer): Remove `adjust_arc_center' member function.
8217         * src/include/Makefile.sub: Updated.
8219         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
8220         `env.fill'.
8221         Handle `m' and `DF' troff commands.
8222         * src/libs/libgroff/color.cc: New file.
8223         * src/libs/libgroff/Makefile.sub: Updated.
8225         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
8226         (stop): Removed.
8227         (createImage): Fix computation of `y2'.
8228         Use `pnmcrop' also.
8229         (buffer::write_file_html): Remove calls to `stop'.
8231         * src/preproc/pic/common.h (common_output): New abstract function
8232         members `set_color', `reset_color', `get_last_filled', and
8233         `get_outline_color'.
8234         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8235         (object_spec): Add members `shaded' and `outlined'.
8236         * src/preproc/pic/output.h (output): `command' is now abstract.
8237         New function members `set_color', `reset_color', `get_last_filled',
8238         and `get_outline_color'.
8239         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8240         `outline[d]', and `shaded'.
8241         * src/preproc/pic/object.cc (output::command): Removed.
8242         (output::set_location): Moved to output.h.
8243         (graphic_object): Add protected members `outline_color' and
8244         `color_fill'.
8245         Add member functions `set_outline_color', `get_outline_color', and
8246         `set_fill_color'.
8247         (closed_object): Add member function `set_fill_color'.
8248         Add member `color_fill'.
8249         (graphic_object::print_text): Use `out->set_color' and
8250         `out->reset_color'.
8251         (box_object::print, ellipse_object::print, circle_object::print,
8252         line_object::print, spline_object::print, arc_object::print): Ditto.
8253         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8254         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8255         `SHADED', making them `%left'.
8256         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8257         * src/preproc/pic/tex.cc (tex_output): New dummy function members
8258         `set_color', `reset_color', `get_last_filled', and
8259         `get_outline_color'.
8260         * src/preproc/pic/troff.cc (simple_output): New abstract function
8261         members `set_color', `reset_color', and `get_last_filled'.
8262         (simple_output::polygon, simple_output::circle,
8263         simple_output::ellipse): Use `get_last_filled'.
8264         (troff_output): New members `last_filled' and `last_outlined'.
8265         New function members `set_color', `reset_color', `get_last_filled',
8266         and `get_outline_color'.
8267         (troff_output::finish_picture): Use `reset_color'.
8268         (troff_output::set_fill): Test `last_filled'.
8269         * src/preproc/pic/pic.man: Updated.
8271         * src/roff/groff/groff.cc (main): Implement `-c' option.
8272         (synopsis, help): Updated.
8273         src/roff/groff/groff.man: Updated.
8275         * src/roff/troff/troff.h: Include color.h.
8276         (warning_type): Add WARN_COLOR.
8277         * src/roff/troff/env.h (environment): New members
8278         `{cur,prev}_{glyph,fill}_color'.
8279         New member functions `get_{prev_,}{glyph,fill}_color'.
8280         * src/roff/troff/env.cc: Initialize and implement them.
8281         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8282         Replace `NULL' with `0' everywhere for consistency.
8283         (lookup_color, default_black, do_glyph_color, do_fill_color,
8284         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8285         define_color): New functions.
8286         (token::next): Implement \M and \m escapes.
8287         (do_if_request): Implement `m' operator.
8288         (usage): Updated.
8289         (main): Implement `-c' option.
8290         (init_markup_requests): Add `defcolor' request.
8291         (warning_table): Add `color' warning.
8292         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8293         classes.
8294         * src/roff/troff/node.cc (troff_output_file): New members
8295         `current_{page,glyph}color'.  New member functions `put_hex',
8296         `glyph_color', and `fill_color'.
8297         (glyph_color_node::*, fill_color_node::*): Implement it.
8298         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8299         (parse_term): Add support for `f'.
8300         * src/roff/troff/troff.man: Updated.
8302         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8303         entry for `F'.
8304         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8305         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8307         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8308         (tag_definition): Use `void *' for arg1.
8309         (html_text): New member functions `do_color' and `done_color'.
8310         Use `void *' for second parameter of `push_para' member function.
8311         New `push_para' member function with a single parameter.
8312         Use `char *' for parameter of `issue_table_begin' member funtion.
8313         New `issue_color_begin' member function.
8314         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8315         COLOR_TAG.
8316         (html_text::issue_color_begin): New function.
8317         (html_text::issue_table_begin): Use `char *' for parameter.
8318         (html_text::start_tag, html_text::shutdown,
8319         html_text::check_emit_text): Updated.
8320         (html_text::push_para): Use `void *' for second parameter.
8321         Add same function with only one parameter.
8322         (html_text::do_*): Updated.
8323         (html_text::do_color, html_text::done_color): New functions.
8324         * src/devices/grohtml/post-html.cc (style): New member `col'.
8325         Mew member `style' with 6 parameters.
8326         (style::style, style::operator==): Updated.
8327         (html_printer::do_font): Use it.
8328         (html_printer::draw): Add dummy entry for `F'.
8329         (html_printer::set_char): Updated.
8330         * src/devices/grohtml/grohtml.man: Updated.
8332         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8333         trailing zeroes removed.
8334         (ps_printer): New members `sbuf_color', `fill_color', and
8335         `output_color'.
8336         Removed member `fill'.
8337         New member function `set_color'.
8338         (ps_printer::ps_printer, ps_printer::set_char): Updated.
8339         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8340         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8342         * tmac/color-html.tmac, tmac/color.tmac: New files.
8343         * tmac/troffrc: Include them.
8344         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8345         * tmac/Makefile.sub: Updated.
8347         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8348         man/groff.man: Updated.
8349         * font/devps/prologue.ps: Define FC and CO functions.
8351 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
8353         Fix incorrect cropping of images and incorrect handling of special
8354         characters.  Fix handling of file names in \O.
8356         * src/include/geometry.h: New file.
8357         * src/libs/libgroff/geometry.cc: New file.
8358         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8359         to `geometry.cc'.
8360         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8361         initial spaces.
8362         (do_suppress): Updated.
8363         * src/roff/troff/node.cc: Include geometry.h.
8364         (troff_output_file::flush_tbuf): Fixed parameters to
8365         `check_output_limits'.
8366         (troff_output_file::check_charinfo): Ditto.
8367         (troff_output_file::determine_line_limits): Add support for `Da'
8368         and `Dl' commands.
8370         * src/devices/grohtml/post-html.cc (str_translate_to_html):
8371         Add new parameter `is_special' to decode special characters from
8372         escape sequences.
8373         (html_printer::do_title, html_printer::do_heading,
8374         html_printer::do_indentedparagraph,
8375         html_printer::translate_to_html, html_printer::special): Updated.
8377 2001-10-03  Werner LEMBERG  <wl@gnu.org>
8379         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8380         Fix entry for config.h.
8381         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8382         * tmac/troffrc: Translate nonbreakable space character to `\~'.
8383         * src/preproc/eqn/eqn.man: Document -d command line option.
8385 2001-09-27  Werner LEMBERG  <wl@gnu.org>
8387         * man/groff.man: Use
8389           .ev xxx
8390           .na
8391           .nh
8392           <table>
8393           .ev
8395         instead of the old code (`.ad .hy' after the table) to suppress
8396         incorrect hyphenation for grohtml output.
8398 2001-09-22  Werner LEMBERG  <wl@gnu.org>
8400         * man/groff_font.man, man/groff_out.man: Minor fixes.
8402 2001-09-20  Werner LEMBERG  <wl@gnu.org>
8404         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
8405         Arnold Robbins <arnold@skeeve.com>).
8407 2001-09-09  Werner LEMBERG  <wl@gnu.org>
8409         * configure: Regenerated with autoconf 2.52.
8411         * doc/groff.texinfo: Complete revision of indices.
8413 2001-09-07  Werner LEMBERG  <wl@gnu.org>
8415         * doc/Makefile (clean): Updated to delete all indices.
8417 2001-09-05  Werner LEMBERG  <wl@gnu.org>
8419         * src/roff/troff/troff.man: Remove superfluous line.
8421         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8422         given on the command line (or rather, if only the default warnings
8423         are set).
8425 2001-09-03  Werner LEMBERG  <wl@gnu.org>
8427         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8428         use .ne for TTY devices.
8430 2001-08-31  Werner LEMBERG  <wl@gnu.org>
8432         * src/roff/troff/token.h, src/roff/troff/input.cc:
8433         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8435 2001-08-28  Werner LEMBERG  <wl@gnu.org>
8437         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8438         * src/roff/troff/input.cc (token::next): Return
8439         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8440         compatibility mode.
8441         (token::description): Updated.
8442         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8443         (token::add_to_node_list, token::process): Ignore
8444         TOKEN_TRANSPARENT_ESCAPE.
8446 2001-08-27  Werner LEMBERG  <wl@gnu.org>
8448         * tmac/an-old.tmac: Fix `S' string.
8450 2001-08-26  Werner LEMBERG  <wl@gnu.org>
8452         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8454 2001-08-25  Werner LEMBERG  <wl@gnu.org>
8456         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8457         backslashes).
8458         Many other minor fixes.
8460         * configure.ac: Add message at end to inform how to compile
8461         xditview.
8462         * configure: Regenerated.
8464 2001-08-24  Werner LEMBERG  <wl@gnu.org>
8466         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8467         Updated to latest version of libc.
8469 2001-08-23  Werner LEMBERG  <wl@gnu.org>
8471         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8472         Autoconf 2.50 and newer can handle this.
8473         * configure: Regenerated.
8475 2001-08-21  Werner LEMBERG  <wl@gnu.org>
8477         * doc/pic.ms: Fix typo.
8478         * src/preproc/tbl/tbl.man: Document case of global options.
8480 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
8482         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8483         handling of `CR' font.
8485 2001-08-20  Werner LEMBERG  <wl@gnu.org>
8487         Use a config.h file.
8489         * src/include/lib.h: Include config.h.
8490         * All C files: Ditto (if necessary).
8491         * All C++ source and header files: Include lib.h first (if
8492         necessary).
8494         * src/include/config.hin: New file (autogenerated by autoheader).
8495         * stamp-h.in: New file.
8496         * configure.ac: Updated.
8497         * aclocal.m4: Add third parameters to AC_DEFINE macros.
8498         (GROFF_ARRAY_DELETE): Simplified.
8499         * Makefile.sub (DISTCLEANFILES): Updated.
8500         Added targets for remaking config.status, config.hin, config.h,
8501         stamp-h.in, and stamp-h.
8502         * configure: Regenerated.
8504 2001-08-19  Werner LEMBERG  <wl@gnu.org>
8506         * NEWS: Updated.
8508 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
8510         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8511         (do_sprintf): Use snprintf().
8513 2001-08-18  Werner LEMBERG  <wl@gnu.org>
8515         * src/libs/snprintf/*: Added an snprintf module written by Mark
8516         Martinec.
8517         * src/libs/libgroff/Makefile.sub: Updated.
8518         * configure.ac: Add test for snprintf().
8519         * Makefile.in: Updated.
8520         * configure: Regenerated.
8522         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8523         uses snprintf().
8525 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
8527         * tmac/doc.tmac (Ex): New implementation.
8528         * tmac/doc-common, tmac/groff_tmac.man: Updated.
8530 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
8532         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8533         argument.
8534         * tmac/groff_tmac.man: Updated.
8536 2001-08-13  Werner LEMBERG  <wl@gnu.org>
8538         * src/preproc/tbl/tbl.man: Minor documentation update.
8540 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8542         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8543         * configure.ac: Add declaration test for gettimeofday().
8544         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8545         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8546         * configure: Regenerated.
8548 2001-08-11  Werner LEMBERG  <wl@gnu.org>
8550         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8551         * configure.ac: Add declaration test for strcasecmp().
8552         * Makefile.in: Updated.
8553         * configure: Regenerated.
8554         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8555         this is necessary because groff's mkstemp.cc is C++.
8556         Add declaration conditionally for strcasecmp().
8558 2001-08-10  Werner LEMBERG  <wl@gnu.org>
8560         Integrated pic2graph, contributed by Eric S. Raymond.
8562         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8563         files.
8564         * Makefile.in, NEWS: Updated.
8566         * src/preproc/tbl/tbl.man: Revised.
8568 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
8570         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8572 2001-08-09  Werner LEMBERG  <wl@gnu.org>
8574         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8575         requests.
8577 2001-08-08  Paul Eggert  <eggert@twinsun.com>
8579         * Makefile.sub (configure): Depend on configure.ac, not
8580         configure.in.
8581         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8583 2001-08-07  Werner LEMBERG  <wl@gnu.org>
8585         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8586         fixes.
8588 2001-08-06  Werner LEMBERG  <wl@gnu.org>
8590         * src/roff/troff/troff.man: Improve documentation of -E option.
8592 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8594         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8595         Simplified.
8597 2001-07-27  Werner LEMBERG  <wl@gnu.org>
8599         * src/preproc/refer/refer.cc: Undo last change.
8600         * src/devices/grohtml/post-html.cc: Ditto.
8602 2001-07-26  Werner LEMBERG  <wl@gnu.org>
8604         * src/preproc/refer/refer.cc: Include `lib.h'.
8605         * src/devices/grohtml/post-html.cc: Ditto.
8607 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
8609         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8610         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8611         * Makefile.in: Comment updated.
8612         * configure: Regenerated.
8614 2001-07-25  Werner LEMBERG  <wl@gnu.org>
8616         * src/preproc/pic/pic.cc: Removed.
8617         * src/preproc/pic/pic_tab.h: Removed.
8618         * src/preproc/refer/label.cc: Removed.
8620         * doc/Makefile (.ms.html): Don't use a file name extension in
8621         argument to grohtml's -I option.
8622         * Makefile.in (dist): Remove CVS directories.
8623         Call `distfiles' target.
8625         * src/devices/grohtml/grohtml.man: Add information about valid
8626         versions of pnmtopng.
8627         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8628         name instead of number.
8630 2001-07-24  Werner LEMBERG  <wl@gnu.org>
8632         * doc/groff.texinfo: Minor fixes.
8634 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
8636         * doc/Makefile (.ms.html): Put image files into a subdirectory.
8637         (clean): Updated.
8639 2001-07-20  Werner LEMBERG  <wl@gnu.org>
8641         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8642         * src/libs/libgroff/mkstemp.cc: New file.
8643         * src/libs/libgroff/mksdir.cc: New file.
8644         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8645         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8646         * src/libs/libgroff/Makefile.sub: Updated.
8647         * src/include/lib.h: Add mksdir() prototype.
8648         * src/include/posix.h: Define S_IXUSR if not yet defined.
8650         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8651         (createAllPages): Use mksdir() instead of current code.
8652         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8653         (main): [!HAVE_MKSTEMP]: Removed.
8655         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8656         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8657         macros.
8658         * configure.ac: Add tests for stdint.h, sys/time.h, and
8659         gettimeofday().
8660         Call new GROFF_xxx macros.
8661         * configure: Regenerated.
8662         * Makefile.in: Comments updated.
8664 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
8666         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8667         instead of current code.
8668         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8669         * src/roff/groff/groff.cc (possible_command::insert_args): New
8670         function.
8671         (main): Use it for predriver handling instead of insert_arg().
8673 2001-07-19  Werner LEMBERG  <wl@gnu.org>
8675         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8676         groff also.
8678         * src/include/posix.h: Define S_IWUSR if not yet defined.
8680 2001-07-18  Werner LEMBERG  <wl@gnu.org>
8682         * NEWS: Updated.
8684 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
8686         * tmac/groff_mdoc.man: Document new -width and -column syntax.
8687         Some other minor fixes.
8688         * tmac/an-old.tmac: Add `AT' and `UC' macros.
8690 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
8692         Replace call to `troff' with `groff -Z' to make it aware of
8693         GROFF_BIN_PATH.
8695         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8696         (troff_command, command_prefix): Removed.
8697         (alterDeviceTo): Use groff.
8698         (addZ): New function.
8699         (char_buffer::do_html): Use it.
8700         (scanArguments): Use TROFF_COMMAND.
8701         (findPrefix): Removed.
8702         (main): Updated.
8703         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8705 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
8707         * doc/pic.ms: Documentation fixes.
8709 2001-07-17  Werner LEMBERG  <wl@gnu.org>
8711         Replace atexit() with global destructor.
8713         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8714         (xtmpfile_list_init): New global structure to deallocate
8715         xtmpfile_list on exit.  Its destructor inherits most code from
8716         remove_tmp_files().
8717         (remove_tmp_files): Deleted.
8718         (add_tmp_file): Simplified.
8720 2001-07-16  Werner LEMBERG  <wl@gnu.org>
8722         Replace strdup() with strsave().
8724         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8725         (set_papersize): Use strsave() and a_delete.
8726         (main): Use strsave().
8727         * src/preproc/html/pre-html.cc (make_message, createAllPages,
8728         removeAllPages): Use strsave() and a_delete.
8730         * configure.ac: Remove test for strdup.
8731         * Makefile.in: Comment updated.
8732         * configure: Regenerated.
8734 2001-07-15  Werner LEMBERG  <wl@gnu.org>
8736         * win32-diffs: Updated.
8738 2001-07-14  Werner LEMBERG  <wl@gnu.org>
8740         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8741         removing the old one.
8742         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8744 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8746         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8748 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
8750         Merge -xwidth into -width.  Add -xwidth functionality to -column
8751         also.
8753         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8754         avoid warning.
8755         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
8756         string immediately following a leading dot starts with a valid mdoc
8757         argument.
8758         Add similar code to the -column branch.
8759         (doc-Bl-usage): Updated.
8760         * groff_mdoc.man: s/-xwidth/-width/.
8762 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
8764         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8765         running into centered or non-formatted text.
8767 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8769         Introduce short and long prefixes to have the selection at run-time
8770         whether there is a 8+3 limit for names of temporary files.
8772         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8773         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8774         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8775         variables.
8776         (temp_init): New global structure to initialize above three
8777         variables.
8778         (xtmptemplate): Use two parameters for long and short prefix.
8779         Simplify code use above three variables.
8780         (xtmpfile): Use long and short prefixes as parameters.
8781         * src/include/lib.h: Updated.
8783         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8784         with ...
8785         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8786         (createAllPages, makeTempFiles): Updated.
8788 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8790         * REVISION: Increased to 3.
8792 Version 1.17.2 released
8793 =======================
8795 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8797         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8798         to size_t.
8800 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8802         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8803         Fix synopsis.
8804         * tmac/groff_mdoc.man: Fix synopsis.
8806 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8808         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8809         Restore `doc-Pa-font'.
8811 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8813         * src/utils/indxbib/dirnamemax.c: Moved to ...
8814         * src/libs/libgroff/maxfilename.cc: Here.
8815         s/dir_name_max/file_name_max/.
8816         Add copyright.
8817         * src/include/lib.h: Add file_name_max.
8818         * src/utils/indxbib/indxbib.cc: Updated.
8819         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8820         Updated.
8822         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8823         as empty.
8824         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8826         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8827         REGION_TEMPLATE): New macros.
8828         (createAllPages, makeTempFiles): Use them.
8829         Include `nonposix.h'.
8830         (html_system): New function.
8831         (createAllPages, createImage): Use it.
8832         Use EXE_EXT.
8834         * tmac/www.tmac: Fix typos.
8836 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8838         * tmac/www.tmac: Disable hyphenation in normal text only if output
8839         device is html.
8840         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8841         * tmac/groff_mwww.man, NEWS: Updated.
8843 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8845         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8846         image location.
8848 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8850         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8851         doc-display-ps-stack): Implement font and font size stack for
8852         displays.
8854 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8856         * REVISION: Increased to 2.
8857         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8859         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8860         beginning of a line.
8861         * src/groff/grog/grog.sh: Ditto.
8863 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8865         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8866         make it portable.
8868 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8870         Fix problems with preprocessor string for `man' program.
8872         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8873         Updated/added copyright.
8874         Moved Emacs's local variable to identify nroff mode to the end of
8875         the file; add local variable if missing.
8877 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8879         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8880         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8881         * configure: Regenerated.
8883 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8885         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8886         * configure: Regenerated.
8888 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8890         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8891         but www.tmac.
8892         * doc/pic.ms: Fix typos.
8894 Version 1.17.1 released
8895 =======================
8897 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8899         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8900         * configure: Updated.
8902 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8904         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8905         image names.
8906         * src/roff/troff/dic.cc (blank_line): Add html tag.
8908 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8910         * src/roff/troff/input.cc (do_suppress): Fix typo.
8912 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8914         Added two new options (-D and -I) to specify image names and a
8915         subdirectory to place the images in.
8917         Change syntax from \\Ox to \\O[x].
8919         * src/devices/grohtml/post-html.cc (main): Add options.
8920         (usage): Updated.
8921         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8922         Use `NULL' instead of `0' for null string pointers.
8923         (MAX_RETRIES): New macro.
8924         (lengthOfintToStr, intToStr, make_message): New functions.
8925         (makeFileName): Make function static.
8926         Implement -D and -I options.
8927         (checkImageDir): New function.
8928         (write_end_image, write_start_image): Use new syntax of \O.
8929         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8930         make_message().
8931         (createImage): Use make_message().
8932         (addps4html): Add guard for malloc().
8933         (usage, scanArguments): Updated.
8934         (makeTempFiles): Use mkstemp().
8935         (removeTempFiles): Use unlink().
8936         (findPrefix): Add guard for malloc().
8937         (main): Updated.
8938         * src/roff/troff/input.cc (get_delim_file_name): New function to
8939         parse \O.
8940         (do_suppress): Updated to parse new syntax.
8941         * src/devices/grohtml/grohtml.man: Updated.
8942         * tmac/www.tmac: Updated to new syntax.
8944         * NEWS: Updated.
8946 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8948         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8950         * src/devices/grohtml/grohtml.man: Minor improvements.
8952 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8954         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8956 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8958         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8959         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8960         the former.
8961         * src/preproc/grn/grn.man: Add proper '\" string.
8963 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8965         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8967 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8969         Updated to autoconf 2.50.
8971         * configure.in: Renamed to...
8972         * configure.ac: This.
8973         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8974         (GROFF_OS390): Updated.
8975         * configure: Regenerated.
8977 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8979         * src/roff/troff/env.c, src/roff/troff/env.h,
8980         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8981         from 2000-12-21.
8983 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8985         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8987 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8989         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8990         less than or equal zero; set it to 1 then.
8991         * src/roff/troff/node.h (node::node): Initialize `last'.
8993 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8995         * tmac/an-old.tmac: Make predefined strings work in compatibility
8996         mode.
8997         Add troff version guard.
8998         * tmac/doc.tmac: Simplify version guard.
9000 2001-05-07  Werner LEMBERG  <wl@gnu.org>
9002         The .ns and .rs requests are now honoured not only in the top-level
9003         but in all diversions (similar to UNIX troff).
9005         This change is based on a patch from Tadziu Hoffmann
9006         <hoffmann@usm.uni-muenchen.de>.
9008         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
9009         (top_level_diversion): Remove `no_space_mode' member.
9010         * src/roff/troff/div.cc (diversion::diversion,
9011         top_level_diversion::top_level_diversion): Updated.
9012         (macro_diversion::output): Reset `no_space_mode'.
9013         (no_space, restore_spacing): Use `curdiv' unconditionally.
9014         (space_request, blank_line): Check `curdiv->no_space_mode'.
9015         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
9016         `curdiv' unconditionally.
9017         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9018         Updated.
9020 2001-05-06  Werner LEMBERG  <wl@gnu.org>
9022         Added two new requests `de1' and `am1' which are similar to `de' and
9023         `am' with the difference that compatibility mode is saved on entry,
9024         switched off during macro execution, and restored on exit.
9026         * src/roff/troff/input.h: Added two new special characters
9027         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
9028         * src/roff/troff/input.cc (input_iterator): Added two member
9029         functions `save_compatible_flag' and `get_compatible_flag'.
9030         (input_stack): Ditto.
9031         (string_iterator): Ditto.  Also add private member
9032         `saved_compatible_flag'.
9033         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
9034         (calling_mode): New enumeration.
9035         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
9036         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
9037         (define_macro, define_indirect_macro, append_macro, ignore): Use
9038         `calling_mode'.
9039         (define_nocomp_macro, append_nocomp_macro): New functions.
9040         (init_input_requests): Updated.
9041         (do_request): Rename local variable `saved_compatible_flag' to
9042         `old_compatible_flag'.
9043         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9045         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
9046         public and trap-invoked macros.  As a consequence, the man macros
9047         work in compatibility mode also.
9049 2001-05-06  Solar Designer  <solar@openwall.com>
9051         * Makefile.in: Use $(mandir).
9053 2001-05-06  Alexios Zavras  <zvr@pobox.com>
9055         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
9057 2001-05-05  Werner LEMBERG  <wl@gnu.org>
9059         Added `.ns' number register: Returns 1 in no-space mode (if in
9060         top-level diversion), 0 otherwise.
9062         * src/roff/troff/div.cc (no_space_mode_reg): New class.
9063         (init_div_requests): Updated.
9064         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9065         Document it.
9067 2001-05-04  Werner LEMBERG  <wl@gnu.org>
9069         * src/roff/nroff/nroff.man: Improved documentation (especially
9070         locales).
9072 2001-05-02  Werner LEMBERG  <wl@gnu.org>
9074         Added `brp' request: This is \p as a request.
9076         * src/roff/troff/env.cc (environment::do_break): Add parameter
9077         `spread'.
9078         (do_break_request): New function (was `break_request').
9079         (break_request): Calls `do_break_request'.
9080         (break_spread_request): New; calls `do_break_request'.
9081         (init_env_requests): Updated.
9082         * src/roff/troff/env.h: Updated.
9083         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9085         * REVISION: Increased to 1.
9086         * win32-diffs: Updated.
9088 2001-05-01  Werner LEMBERG  <wl@gnu.org>
9090         * tmac/an-old.tmac: Fix minor compatibility mode issue.
9091         * tmac/troffrc-end: Make it really work in compatibility mode.
9093 2001-04-27  Werner LEMBERG  <wl@gnu.org>
9095         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
9096         stdlib.h.
9098 2001-04-22  Werner LEMBERG  <wl@gnu.org>
9100         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
9101         latest versions from glibc CVS archive.
9103         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
9104         <c.zeelenberg@hccnet.nl>.
9106 2001-04-21  Werner LEMBERG  <wl@gnu.org>
9108         * configure.in: Move check for mkstemp() to...
9109         * aclocal.m4 (GROFF_MKSTEMP): This new function.
9110         * configure: Regenerated.
9112         * src/include/groff-getopt.h: Don't use variable names in
9113         declarations.
9115         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
9116         * src/devices/grohtml/Makefile.sub,
9117         src/devices/grohtml/post-html.cc: Updated.
9119 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
9121         * configure.in: Add special check for mkstemp().
9122         * src/libs/libgroff/tmpfile.cc: Use it.
9123         * src/utils/indxbib/indxbib.cc: Ditto.
9124         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
9125         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
9126         `const'.
9128 2001-04-20  Bruce Lilly  <blilly@erols.com>
9130         `Version_string' as C++ object was not visible to linker from C
9131         object files.
9132         Add `const' to `Version_string'.
9134         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
9135         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
9136         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
9137         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
9138         (scanArguments), src/preproc/refer/refer.cc (main),
9139         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
9140         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
9141         (main), src/devices/grohtml/post-html.cc (main),
9142         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
9143         (main), src/utils/hpftodit/hpftodit.cc (main),
9144         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
9145         (main), src/utils/lkbib/lkbib.cc (main),
9146         src/utils/addftinfo/addftinfo.cc (main): Implement it.
9148         * src/roff/groff/pipeline.c: Add _UWIN.
9149         * src/include/nonposix.h: Ditto.
9151 2001-04-20  Werner LEMBERG  <wl@gnu.org>
9153         * src/include/lib.h: Use HAVE_STRERROR.
9154         * src/roff/groff/pipeline.c: Ditto.
9155         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
9156         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
9157         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
9158         * win32-diffs: Updated.
9159         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
9161 2001-04-19  Werner LEMBERG  <wl@gnu.org>
9163         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
9164         instead of hardwired `"troff"'.
9165         (char_buffer::read_file): Remove unused variables.
9166         (char_buffer::write_file_troff): Ditto.
9167         (char_buffer::write_file_html): Ditto.
9168         (generateImages): Ditto.
9169         (abs): Removed.
9170         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
9172         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
9174         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
9175         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
9176         index_search_item::search1): Ditto.
9177         * src/roff/troff/node.h (width_list): Reorder members.
9178         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
9179         (lookup_warning): Ditto.
9180         (prepend_string): Commented out.
9181         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
9182         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
9183         * src/preproc/tbl/main.cc (process_format): Ditto.
9184         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
9185         compiler warnings.
9186         * src/preproc/pic/pic.cc: Updated.
9187         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
9188         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
9189         * src/preproc/refer/command.cc (execute_command): Ditto.
9190         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
9191         * src/preproc/refer/token.cc (lookup_token): Ditto.
9192         * src/preproc/soelim/soelim.cc: Ditto.
9193         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
9194         (isHexDigit): Commented out.
9195         (pushBackBuffer::isString): Remove unused variable.
9196         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
9197         warning.
9198         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
9199         resource_manager::read_resource_arg, read_one_of, parse_extensions):
9200         Ditto.
9201         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
9202         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
9203         lookup_paper_size): Ditto.
9204         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
9205         (text_glob, element_list): Reorder members.
9206         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
9207         compiler warning.
9208         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
9209         return value to `void'.
9210         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
9211         of initializers.
9212         * src/devices/grohtml/html.h (simple_output::check_newline,
9213         simple_output::space_or_newline, simple_output::enable_newlines):
9214         Add return value.
9215         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
9216         compiler warnings.
9217         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
9218         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
9219         output_ligatures, output_charset, read_map): Ditto.
9220         * src/utils/lookbib/lookbib.cc (main): Ditto.
9221         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
9222         (do_file): Fix typo (`=' -> `==').
9223         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
9224         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
9226 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
9228         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
9229         Fix usage of GROFF_BIN_PATH.
9230         * src/roff/nroff/nroff.man: Updated.
9232 2001-04-18  Werner LEMBERG  <wl@gnu.org>
9234         * NEWS: Fixing typos.
9235         Updated.
9237 Version 1.17 released
9238 =====================
9240 2001-04-17  Werner LEMBERG  <wl@gnu.org>
9242         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9243         directory, not in $(srcdir).
9245 2001-04-16  Werner LEMBERG  <wl@gnu.org>
9247         * doc/groff.texinfo: More info on conditionals.
9249 2001-04-15  Werner LEMBERG  <wl@gnu.org>
9251         * doc/groff.texinfo: Added some info about groff internals.
9253         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9254         about missing special character only if the name is non-null.
9256 2001-04-14  Werner LEMBERG  <wl@gnu.org>
9258         Removing the grohtml-old device driver which is now obsolete.
9260         * src/devices/grohtml-old/*: Removed.
9261         * font/devhtml-old/*: Removed.
9262         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9263         Remove comments.
9264         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9265         * test-groff (PATH): Updated.
9266         * tmac/Makefile.sub (NORMALFILES): Updated.
9267         * tmac/an-old.tmac: Remove special code for html-old device.
9268         Replace `html-or-html-old' register with `an-html'.
9269         * tmac/eqnrc: Updated.
9270         * tmac/html-old.tmac: Removed.
9271         * tmac/troffrc, tmac/troffrc-end: Updated.
9272         * tmac/www.tmac: Remove special code for html-old device.
9273         Replace `html-or-html-old' register with `www-html'.
9275         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9276         src/libs/libgroff/htmlindicate.cc (graphic_end),
9277         include/htmlindicate.h, src/preproc/grn/*.cc,
9278         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9279         single argument for consistency with rest of source code.
9281         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9283 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
9285         * src/roff/troff/troff.man: Fixing typos.
9287 2001-04-13  Werner LEMBERG  <wl@gnu.org>
9289         * doc/pic.ms: Fixing many font switches.
9290         * doc/groff.texinfo: Fixes, additions.
9291         * MORE.STUFF: Updated.
9293 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
9295         * src/devices/grohtml/grohtml.man: Updated manual page regarding
9296         simple anchor.
9297         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9298         cropping of images.
9299         (removeTempFiles): New function to tidy up temporary files.
9300         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9301         Many fixes to do with the new inline suppress node and image regions
9302         are much tighter.
9303         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9304         (generate_img_src): New function.
9305         (html_printer::do_auto_image): Utilizes it.
9306         (do_heading, do_title): Include inline images within their contents.
9307         (html_printer::begin_page): Tidied up comments that are issued to
9308         the html output file.
9309         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9310         than courier.
9311         (text_glob::is_br): New method used by do_heading.
9312         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9313         equivalent diversion.
9314         * src/include/html-strings.h: Altered image tags to reflect the
9315         inline image node.
9316         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9317         parameter.
9318         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9319         it is already inside a pic image.  Only emit tags if the argument
9320         `-Tps:html' is present.
9321         * src/preproc/tbl/main.cc: Changes to reflect additional
9322         `html_end_suppress' parameter.
9323         * src/roff/troff/env.cc: Only emit eol tag if a node has been
9324         emitted since the last eol tag was written.
9325         * src/roff/troff/env.h: New boolean `emitted_node'.
9326         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9327         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
9328         * src/roff/troff/node.cc (check_charinfo): New method. 
9329         (troff_output_file::determine_line_limits): Alterations to limit
9330         checking.
9331         * tmac/www.tmac: Changes to reflect new suppress nodes.
9332           
9333 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
9335         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9336         Escape the html_glyph in the buffer.
9337         (str_translate_to_html): Output the unescaped escaped_char.
9338         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9339         `frame=void', not `frame=none'.  Add `border=0'.
9341 2001-04-12  Werner LEMBERG  <wl@gnu.org>
9343         * PROBLEMS: Add some words on how to avoid wrapper macros.
9345 2001-04-11  Blake McBride  <blake@florida-software.com>
9347         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9349 2001-04-11  Werner LEMBERG  <wl@gnu.org>
9351         * font/devlbp/Makefile.sub (CLEANADD): Set it.
9352         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9353         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9354         * Makefile.sub (DISTCLEANFILES): Here.
9356         * libs/libgroff/new.cc: Include `nonposix.h'.
9357         * win32-diffs: Updated.
9359 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
9361         Added skeleton macro for defunct macros.
9363         Updated documentation.
9365         When inside displays, an empty input line warning should be
9366         suppressed.  If another macro call is put inside a display,
9367         all subsequent empty lines found in that display caused a
9368         warning to be emitted.
9370         * tmac/doc.tmac (doc-defunct-macro): New macro.
9371         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9372         (doc-restore-global-vars): Fixed typo.
9373         (doc-empty-line): Check the `doc-display-depth' register to
9374         determine whether we are inside display or not.
9376         * tmac/doc-common: Removed `Or' and `Sf' registers.
9377         Moved obsolete `Ds' macro to doc.tmac.
9379         * tmac/groff_mdoc.man: Bump document date.
9380         Document `.Vt' under ``Variable Types''.
9381         Removed documentation for obsolete `.Or' macro.
9383 2001-04-10  Werner LEMBERG  <wl@gnu.org>
9385         * NEWS: Updated.
9386         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9388 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
9390         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9391         (usage): Add stream argument. Don't exit.
9392         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9393         Write --version output to stdout, not stderr.
9394         (usage): Add stream argument. Don't exit.
9395         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9396         (usage): Add stream argument. Don't exit.
9397         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9398         constants.
9399         (usage): Add stream argument. Don't exit.
9400         (main): Write --help output to stdout, not stderr.
9401         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9402         (usage): Add stream argument. Don't exit.
9403         * src/devices/grops/ps.cc (main): Accept --help and --version.
9404         (usage): Add stream argument. Don't exit.
9405         * src/devices/grotty/tty.cc (main): Accept --help and --version.
9406         (usage): Add stream argument. Don't exit.
9407         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9408         (main): Accept --help and --version.
9409         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9410         (main): Accept --help and --version.
9411         * src/preproc/html/pre-html.cc (usage): Add stream argument.
9412         (scanArguments): Accept --help and --version.
9413         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9414         (main): Accept --help and --version.
9415         * src/preproc/refer/refer.cc (main): Accept --help and --version.
9416         (usage): Add stream argument. Don't exit.
9417         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9418         exit.
9419         (main): Accept --help and --version.
9420         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9421         (main): Accept --help and --version.
9422         * src/roff/groff/groff.cc (main): Accept --help and --version.
9423         (synopsis): Add stream argument.
9424         (help): Write --help output to stdout, not stderr.
9425         (usage): Add stream argument. Don't exit.
9426         * src/roff/grog/grog.pl: Accept --help and --version.
9427         (help): New sub.
9428         * src/roff/grog/grog.sh: Accept --help and --version.
9429         * src/roff/nroff/nroff.sh: Accept --help and --version.
9430         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9431         (usage): Add stream argument. Don't exit.
9432         (main): Accept --help and --version.
9433         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9434         (usage): New function with stream argument, doesn't exit.
9435         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9436         (usage): New function with stream argument, doesn't exit.
9437         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9438         (usage): Add stream argument. Don't exit.
9439         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9440         (main): Accept --help and --version.
9441         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9442         exit.
9443         (main): Accept --help and --version.
9444         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9445         (main): Accept --help and --version.
9446         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9447         (usage): Add stream argument. Don't exit.
9449 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
9451         Fix indentation in SYNOPSIS.
9453         Updated to include changes of latest BSD mdoc version (basically,
9454         the only change is that `.Fn' and `.Fc' put a final semicolon after
9455         a function declaration in the SYNOPSIS section).
9457         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9458         (doc-in-synopsis-section): New variable.  Updated all related
9459         functions.
9460         (doc-indent-synopsis-active): New register.
9461         (Nd, Fn, Fo): Use it.
9462         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9463         `.Cd' with long argument line produces indented wrapped lines. 
9464         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9465         undesirable line break to be output.
9466         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9467         `.rs'.
9468         (Fn, Fc): Add final `;' to output.
9469         (doc-save-global-vars, doc-restore-global-vars): Updated.
9470         * tmac/doc-common: Remove `Ex' register.
9471         Updated.
9472         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9473         copyright.
9475 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9477         * tmac/doc.tmac (Cd): Simplify code.
9478         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9480 2001-04-06  Werner LEMBERG  <wl@gnu.org>
9482         Implement continuous underlining for nroff mode.  To do that, a new
9483         request in the ditroff language has been added: `x u N' (N is 0
9484         or 1).
9486         \X and \Y are now transparent to end-of-sentence recognition.
9488         * src/include/printer.h (printer): Add `type' parameter to `special'
9489         method.
9490         * src/libs/libdriver/printer.cc (printer::special): Updated.
9491         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9493         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9494         specials of type `p'.
9495         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9496         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9497         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9498         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9499         (glyph::order): New method.
9500         (tty_printer::add_char): Use it.
9501         (tty_printer::special): New method.
9502         (tty_printer::end_page): Implement it.
9504         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9505         * src/roff/troff/node.cc (special_node::special_node): Add parameter
9506         to set `no_init_string'.
9507         (special_node::tprint_start): Use it.
9508         (special_node::same, special_node::copy): Updated.
9509         (special_node::ends_sentence): New method.
9510         (troff_output_file::start_special): Add parameter to include
9511         inititialization of special conditionally.
9513         * src/roff/troff/env.h (environment): New member `underline_spaces'.
9514         * src/roff/troff/env.cc (do_underline_special): New function.
9515         (environment::set_font): Use it.
9516         (do_underline): Use it.  This was `underline()'.
9517         (underline): Call `do_underline()'.
9518         (continuous_underline): New function which calls `do_underline()'.
9519         (environment::newline): Use `do_underline_special()'.
9520         (init_env_requests): Updated.
9522         * NEWS, man/troff_out.man: Updated.
9524 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
9526         * font/devutf8/R.proto: Fix code of 'shc'.
9528 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9530         Many fixes.  Diag lists can now be nested also; additionally,
9531         `-compact' and `-offset' are supported.
9533         * tmac/doc.tmac (doc-have-indent): Replaced with ...
9534         (doc-list-have-indent-stackXXX): A new register stack.
9535         (doc-have-diag-list): Removed.
9536         (Bl): Use `doc-list-have-indent-stackXXX'.
9537         (El): Updated.
9538         (doc-diag-list): Use `doc-compact-list-stackXXX'.
9539         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9540         (doc-set-vertical-and-indent): Ditto.
9541         (doc-next-list-depth): Removed.
9542         (doc-increment-list-stack): Updated.
9543         (doc-decrement-list-stack): Use `doc-list-depth' instead of
9544         `doc-next-list-depth'.
9545         (doc-end-list, doc-end-column-list): Don't use
9546         `doc-increment-list-stack'.
9547         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9548         (doc-save-global-vars, doc-restore-global-vars): Updated.
9549         * tmac/doc-common: Updated.
9550         * tmac/groff_mdoc.man: Updated.
9551         * NEWS: Fix typo.
9553 2001-04-02  Werner LEMBERG  <wl@gnu.org>
9555         * src/devices/grotty/grotty.man: Fix grammatical error.
9557 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
9559         Remove .Ld from mdoc package; replace it with special handling of
9560         `...'.
9562         * tmac/doc-common: Remove `Ld' register.
9563         Uncomment `doc-volume-ds-*' strings.
9564         Remove `doc-operating-system-default'.
9565         (Os): Updated.
9566         * tmac/doc-syms (Ld): Removed.
9567         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9568         `...' specially.
9569         * NEWS: Updated.
9571         * tmac/groff_mdoc.man: Many fixes and updates.
9573 2001-03-29  Werner LEMBERG  <wl@gnu.org>
9575         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
9576         Bond <tkb@tkb.mpl.com>.
9577         * tmac/www.tmac: Save compatibility mode.
9579 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
9581         * tmac/groff_mdoc.man: Many fixes.
9583 2001-03-28  Werner LEMBERG  <wl@gnu.org>
9585         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9586         isn't recognized.
9588 2001-03-27  Werner LEMBERG  <wl@gnu.org>
9590         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9591         diversion.  This fixes overlong tags.
9593 2001-03-26  Werner LEMBERG  <wl@gnu.org>
9595         * doc/groff.texinfo: Fixed and improved documentation of fonts.
9596         * tmac/doc-syms: Fix error messages.
9597         * tmac/an-old.tmac: Remove incorrect double backslashes.
9599 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
9601         * tmac/Makefile.sub: Strip mdoc.local also
9602         * tmac/strip.sed: Fixed.
9604 2001-03-24  Werner LEMBERG  <wl@gnu.org>
9606         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9607         selecting the font size.
9608         * tmac/groff_mdoc.man, NEWS: Document it.
9610 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9612         * src/roff/troff/div.cc (save_vertical_space): Add default argument
9613         to `sv' request.
9614         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9615         argument to restore previous font family.
9616         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9618         * doc/groff.texinfo: More fixes and additions (mainly for font
9619         manipulating commands).
9621         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9622         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
9623         * tmac/Makefile.sub, NEWS: Updated.
9625 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9627         Replaced mdoc implementation.  The new version is `state of the
9628         art', using almost all new features of groff 1.17 -- it won't run
9629         with older versions.
9631         * tmac/doc.tmac: Completely rewritten.
9632         * tmac/doc-common: Ditto.
9633         * tmac/doc-nroff: Ditto.
9634         * tmac/doc-ditroff: Ditto.
9635         * tmac/doc-syms: Ditto.
9636         * tmac/mdoc.local: New file.
9637         * tmac/groff_mdoc.samples.man: Replaced with ...
9638         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9639         * tmac/strip.sed: Updated.
9640         * tmac/Makefile.sub: Updated.
9641         * INSTALL: Updated.
9643         * tmac/groff_man.man: Add `man.local' to the FILES section.
9645 2001-03-22  Werner LEMBERG  <wl@gnu.org>
9647         * doc/groff.texinfo: Added many @noindent.
9648         Replaced @end_Example -> @endExample.
9649         Added info whether registers are r/o.
9650         Many other additions and fixes.
9652 2001-03-21  Werner LEMBERG  <wl@gnu.org>
9654         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9655         in makeinfo of texinfo 4.0) to be used in @Def* macros.
9656         Improved @Def* macros: Now the exact syntax of request, register,
9657         and escapes is shown.
9658         Added macros for parentheses and brackets to be used in @Def*.
9659         Many fixes and improvements of the documentation.
9661 2001-03-20  Werner LEMBERG  <wl@gnu.org>
9663         * doc/groff.texinfo: Added new index: `st' (for strings).
9664         Added macros @Defstr(x).
9665         Added macro @Example (adding @group).
9666         Other minor improvements.
9668 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9670         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9671         `rq' for requests.  `fn' is no longer used.
9672         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9673         Removed @Deffn(x).
9675         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9676         number with name of man page.
9678 2001-03-19  Larry Kollar  <kollar@alltel.net>
9680         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
9681         consistency.
9683 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9685         * man/groff_font.man: Document `prepro', `postpro', and `print'.
9686         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9687         * src/devices/grohtml/grohtml.man: Fixing typos.
9689 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
9691         * tmac/s.tmac (@IP): Pass `.ip' html tag.
9692         * tmac/groff_mwww.man: Remove .LINE macro
9693         * tmac/www.tmac (LINE): Add `.ti'.
9695         * src/devices/grohtml/post-html.cc (html_printer): New member
9696         `indent'.
9697         (html_printer::emit_raw): Use it.
9698         (html_printer::do_linelength): Ditto.
9699         (html_printer::do_pageoffset): Ditto.
9700         (html_printer::do_indentation): Ditto.
9701         (html_printer::do_tempindent): Ditto.
9702         (html_printer::do_break): Ditto.
9703         (html_printer::begin_page): Ditto.
9704         (html_printer::do_indentedparagraph): New function.
9705         (html_printer::troff_tag): Handle `.ip'.
9706         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9707         Add `<td width=...>' handling.
9708         (html_text::do_table): Add parameter.
9709         (html_text::do_indent): Updated.
9710         * src/devices/groohtml/html-text.h: Updated.
9712 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
9714         Introduced simple html tables to implement indentation.
9716         * src/devices/grohtml/html.h (word, word_list): New structures.
9717         (simple_output): Use it.
9718         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9719         (html_printer): Improve indentation handling.
9720         (html_printer::emit_raw): Set `in_table' element.  Handle
9721         indentation if set.
9722         (html_printer::write_header): Move conditional downwards.
9723         Don't allow whitespace in tags.
9724         (html_printer::do_linelength): Handle line length and indentation
9725         conditionally.
9726         (html_printer::do_pageoffset): Handle indentation conditionally.
9727         (html_printer::do_indentation): Ditto.
9728         (html_printer::do_tempindent): New function member.
9729         (html_printer::do_fill): Take care of indentation.
9730         (html_printer::do_flush): Finish table.
9731         (html_printer::do_links): Ditto.
9732         (html_printer::do_break): New function for handling `.br' and `.ti'.
9733         (html_printer::troff_tag): Use it.
9734         Handle `.ti'.
9735         (html_printer::flush_globs): Fix.
9736         (html_printer::flush_page): Finish table.
9737         (html_printer::html_printer): Fix error message.  Set up
9738         `linelength'.
9739         (html_printer::add_to_sbuf): Remove special handling of character
9740         code 255.
9741         (to_unicode): Remove `stop()'.
9742         (html_printer::write_title): Cleanup.
9743         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
9744         (html_printer::~html_printer): Flush text and end the line.
9745         Use `put_string()'.
9746         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9747         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9748         emission of tags.
9749         (html_text::start_tag): Disable newlines.
9750         (html_text::table_is_void): New function.
9751         (html_text::issue_table_begin): Ditto.
9752         (html_text::issue_table_end): Ditto.
9753         (html_text::push_para): Better table handling.
9754         (html_text::do_indent): New function.
9755         (html_text::do_table): Ditto.
9756         (html_text::done_table): Ditto.
9757         (html_text::do_tt): Handle PRE_TAG.
9758         (html_text::is_in_table): New function.
9759         (html_text::check_emit_text): Handle tables.
9760         (html_text::do_emittext): Use `nl()'.
9761         (html_text::do_para): Handle table.
9762         (html_text::remove_def): New function.
9763         * src/devices/grohtml/output.cc (word, word_list): Implement
9764         methods.
9765         (simple_output::end_line): Flush last word.
9766         (simple_output::simple_comment): Ditto.
9767         (simple_output::begin_comment): Recoded.
9768         (simple_output::end_comment): Ditto.
9769         (simple_output::comment_arg): Removed.
9770         (simple_output::check_newline): Improve test and flush last word.
9771         (simple_output::space_or_newline): Improved.
9772         (simple_output::write_newline): Replaced with...
9773         (simple_output::nl): This.
9774         (simple_output::put_raw_char): Flush last word.
9775         (simple_output::check_space): Removed.
9776         (simple_output::put_translated_string): Ditto.
9777         (simple_output::put_string): Simplified.
9778         (simple_output::put_number): Updated.
9779         (simple_output::put_float): Ditto.
9780         (simple_output::put_symbol): Removed.
9781         (simple_output::enable_newlines): Add `check_newline()'.
9782         (simple_output::flush_last_word): New function.
9784         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9785         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9787         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9788         * tmac/an-old.tmac (TP): Ditto.
9790 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9792         * mdate.sh: Make it POSIX compliant.
9794 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9796         Added the `return' request to end a macro immediately.  It simply
9797         pops iterators from the input stack until a macro iterator is found.
9799         * src/roff/troff/input.cc (input_iterator::is_macro,
9800         macro_iterator::is_macro): New member.
9801         (input_return_boundary): New class to signal an immediate return
9802         to while_request().
9803         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9804         New functions.
9805         (input_stack::clear): Use it.
9806         (input_stack::pop_macro): New function.
9807         (while_request): Use `is_return_boundary()'.
9808         (return_macro_request): New function.
9809         (init_input_requests): Use it.
9811         * src/roff/troff/TODO: Updated.
9812         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9814 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9816         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9817         cleanup.
9819 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9821         Make `\B' more rigid.
9823         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9824         parameter.
9825         (get_number_rigidly): New function.
9826         * src/roff/troff/input.cc (do_expr_test): Use it.
9827         * src/roff/troff/token.h: Updated.
9829         * src/roff/troff/request.h: Fix typo (init_html_request ->
9830         init_markup_request).
9832 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9834         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9835         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9836         are now `.begin', `.end', `.image'.
9838         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9839         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9840         Use add_char_to_sbuf().
9841         (to_unicode): New function.
9842         (char_translate_to_html): Changing type of `ch' parameter.
9843         Use `to_unicode()'.
9844         (html_printer::~html_printer): Comment out doctype string.
9845         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9846         instead of `.html-end'.
9847         (write_start_image): Use `.begin' and `.image' instead of
9848         `.html-begin' and `.html-image'.
9849         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9850         (html_begin): Renamed to ...
9851         (begin): This.
9852         (html_end): Renamed to ...
9853         (end): This.
9854         (html_image): Renamed to ...
9855         (image): This.
9856         (init_html_requests): Renamed to ...
9857         (init_markup_requests): This.
9858         * tmac/www.tmac: Updated.
9860 2001-02-28  Bram  <bram@avontuur.org>
9862         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9863         constructor.
9865 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9867         * doc/meref.me: Fixing some typos.
9869 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9871         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9872         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9873         * src/roff/troff/node.h: Updated.
9875 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9877         * tmac/groff_tmac.man: Fix typo.
9879 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9881         Fixing a bug which prevented proper end-of-sentence recognition
9882         between an `unformatted' box and the following text.  As a
9883         consequence, vertical line distances are no longer preserved in
9884         boxes after a call to `.unformat' -- because boxes aren't
9885         line-oriented (contrary to diversions), this doesn't make sense
9886         anyway.
9888         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9889         value.
9890         (vertical_size_node::set_unformat_flag): New method.
9891         * src/roff/troff/node.hh: Updated.
9892         * src/roff/troff/input.cc (word_space_node::reread,
9893         hmotion_node::reread): Reset `unformat' flag after usage.
9894         (unformat_macro): Append only if `set_unformat_flag()' returns
9895         non-zero.
9896         * src/roff/troff/troff.man: Updated.
9898 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9900         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9901         documentation of `asciify' and `unformat' requests.
9903 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9905         Redesigned the `unformat' request.  It is no longer connected with
9906         `asciify' but rather uses new `reread()' methods if the `unformat'
9907         flag is set.  Additionally, the handling of space characters after
9908         unformatting has been fixed so that they retain their width.
9910         * src/roff/troff/node.h (width_list): New structure to store
9911         original widths of spaces.
9912         (node): Added `unformat' member.
9913         Replaced `num_spaces' variable with `orig_width' list.
9914         * src/roff/troff/node.cc (*node::asciify,
9915         asciify_reverse_node_list): Removed `unformat_only' flag and related
9916         code.
9917         (word_space_node::asciify, word_space_node::word_space_node): Use
9918         `orig_width'.
9919         (word_space_node::~word_space_node): New destructor.
9920         (word_space_node::copy): Updated to handle `orig_width'.
9921         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9922         (*node::merge_space): Update `orig_width' list if necessary.
9923         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9924         * src/roff/troff/enc.cc (environment::space_newline): Use
9925         `width_list'.
9926         (environment::space): Added method to handle space width and
9927         sentence space width as parameters.  Use `width_list'.
9928         (environment::make_tab_node): Updated.
9929         * src/roff/troff/env.h: Updated.
9930         * src/roff/troff/input.cc (word_space_node::reread,
9931         unbreakable_space_node::reread, hmotion_node::reread): New methods
9932         to handle nodes specially if `unformat' flag is set.
9933         (do_asciify_macro): Renamed back to ...
9934         (asciify_macro): This.
9935         (unformat_macro): New implementation to simply set the `unformat'
9936         flag.
9938         * MORE.STUFF: Added more info about deroff.
9940 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9942         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9943         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9944         and `add_self()' methods to avoid hyphenation.  For example, the
9945         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9946         soft hyphen after `foo'.  Now the hyphen list is correctly
9947         `foo<ignore><ignore>bar'.
9949 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9951         * tmac/groff_tmac.man: Fix `BIR' macro.
9953 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9955         A new escape sequence `\:', inserting a zero-width break point.
9957         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9958         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9959         Implement it.
9960         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9961         method.
9962         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9963         and `asciify()' methods.
9964         * src/roff/troff/node.cc (space_node::space_node): Updated.
9965         (space_node::asciify): Handle `was_escape_colon'.
9966         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9968         Handle `\~' similar to other comparable requests.
9970         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9971         label.
9972         (token::next): Move creation of an unbreakable_space_node to...
9973         (token::add_to_node_list): Here.
9975         Fix a bug which sometimes prevented hyphenation of words connected
9976         with `\~' or `\ ' (and other escape sequences handled as
9977         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9978         (after a call to the `unformat' request).
9980         * src/roff/troff/env.h (environment::possibly_break_line,
9981         environment::hyphenate_line): Introducing `start_here' parameter.
9982         * src/roff/troff/env.cc (environment::space_newline,
9983         environment::space): Use it.
9984         (environment::possibly_break_line, environment::hyphenate_line):
9985         Implement it.
9986         * src/roff/troff/input.cc (process_input_stack): Use it.
9987         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9988         space_char_hmotion_node, overstrike_node): Add
9989         `get_hyphenation_type()' method.
9990         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9991         if `unformat_only' is active.
9993 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9995         Implemented new read-only number register `.linetabs' which
9996         returns 1 if in line-tabs mode, 0 otherwise.
9998         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9999         * src/roff/troff/env.cc (get_line_tabs): New function.
10000         (init_env_requests): Use it.
10001         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10003         * VERSION, REVISION: Changing to 1.17.0.
10005 2001-01-28  Werner LEMBERG  <wl@gnu.org>
10007         Fixed a bug which prevented hyphenation of words which are finished
10008         with `\)'.
10010         * src/roff/troff/token.h (token): Add enum type
10011         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
10012         * src/roff/troff/input.cc (token::next, token::description,
10013         get_line_arg, token::add_to_node_list, token::process): Use it.
10015 2001-01-27  Werner LEMBERG  <wl@gnu.org>
10017         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
10018         * src/roff/troff/div.cc (do_divert): Use it.
10020         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
10022 2001-01-25  Werner LEMBERG  <wl@gnu.org>
10024         Adding the `linetabs' request.  If set, tab distances are not
10025         computed relative to the input line but relative to the output line.
10027         * src/roff/troff/env.h (environment): New member `line_tabs'.
10028         * src/roff/troff/env.cc (line_tabs_request): Implement request.
10029         (environment::environment, environment::copy): Updated.
10030         (environment::distance_to_next_tab): Use `line_tabs'.
10031         (init_env_requests): Register request.
10032         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
10033         fixes.
10035 2001-01-24  Werner LEMBERG  <wl@gnu.org>
10037         Introducing a new read-only register `.int' which is set to a
10038         positive value if the last output line is interrupted (i.e., if it
10039         contains `\c').
10041         * src/roff/troff/env.cc (init_env_requests): Add it.
10042         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10044 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
10046         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
10047         * src/preproc/html/pre-html.cc (findPrefix): New function which
10048         generates the troff executable name via the system prefix.
10049         * src/preproc/eqn/main.cc: Modified warning message.
10051 2001-01-23  Werner LEMBERG  <wl@gnu.org>
10053         troff's `box' and `boxa' requests didn't preserve temporary
10054         indentation.
10056         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
10057         `saved_target_text_length' members.
10058         * src/roff/troff/div.cc (do_divert): Use them.
10060         Tabs (but not yet leaders and fields) are now handled correctly by
10061         `asciify' request.
10063         * node.h (hmotion_node): Add field `was_tab'.
10064         * env.cc (environment::make_tab_node): Set it.
10065         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
10067         Added new request `unformat' which will, contrary to `asciify',
10068         preserve font information after unformatting (i.e., only nodes
10069         dealing with horizontal space are converted back to input
10070         characters).
10072         * input.cc (asciify_macro): Renamed to ...
10073         (do_asciify_macro): this, having a new parameter `unformat_only'.
10074         (asciify_macro, unformat_macro): New; using do_asciify_macro.
10075         (init_input_requests): Added `unformat'.
10076         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
10077         parameter to control asciification process.
10078         * node.h (*_node::asciify): Ditto.
10079         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10081 2001-01-20  Werner LEMBERG  <wl@gnu.org>
10083         * doc/groff.texinfo: Minor improvement of `.in' documentation.
10085 2001-01-18  Werner LEMBERG  <wl@gnu.org>
10087         * tmac/ps.tmac: Remove call of psold.tmac.
10088         * tmac/psold.tmac: Comment updated.
10089         * tmac/psnew.tmac: Removed since no longer needed.
10090         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
10092         * font/devutf8/R.proto: Adding `shc' glyph.
10093         * font/devutf8/NOTES: Updated.
10095         * test-groff: Updated.
10097 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
10099         First cut of the new html device driver.  Changes to pre-html and
10100         the new grohtml are too numerous to be documented here.
10102         Stuff related to `html' has been renamed to `html-old' and `html2'
10103         stuff has been renamed to `html' (including directories).  The new
10104         html device driver is therefore invoked as `-Thtml'.
10106         Added new `\O' escape to suppress output (needed by html driver).
10108         Added functions and code to pass info about input-level commands
10109         (`.in', `.fl', etc.) to html driver.
10111         Three new functions (.html-begin, .html-end, and .html-image) for
10112         better html handling: `html-begin' will execute the remaining line
10113         if at the outermost nesting level, increasing an internal counter.
10114         `html-end' does the same but decreases the internal counter.
10115         `html_image' puts its arguments into a special node (suppress_node)
10116         to define an image region.
10118         The `output' request has been removed.
10120         * tmac/html-tags.tmac: Removed.
10121         * tmac/arkup.tmac: Updated and renamed to ...
10122         * tmac/www.tmac: New file.
10123         * tmac/markup.tmac Updated and renamed to ...
10124         * tmac/mwww.tmac: New file.
10125         * tmac/Makefile.sub: Updated.
10126         * tmac/an-old.tmac: Updated.
10127         * tmac/eqnrc: Updated.
10128         * tmac/groff_man.man
10129         * tmac/groff_markup.man: Updated and renamed to ...
10130         * tmac/groff_mwww.man: New file.
10131         * tmac/groff_tmac.man: Updated.
10132         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
10133         * tmac/html.tmac: Updated and renamed from html2.tmac.
10134         * tmac/pspic.tmac: Updated html support.
10135         * tmac/s.tmac: Added html output support.
10136         * tmac/troffrc, tmac/troffrc-end: Updated.
10138         * Makefile.in, doc/Makefile: Updated.
10139         * doc/groff.texinfo: Added info about new `\O' escape.
10140         * doc/homepage.ms: Use `MAILTO' macro.
10142         * font/devhtml/DESC.proto: Add `C' font.
10143         * font/devhtml/Makefile.sub: Updated.
10144         * font/devhtml/R.proto: Minor fixes.
10145         * font/devhtml-old/Makefile.sub: Updated.
10147         * src/devices/grohtml-old/Makefile.sub: Updated.
10149         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
10150         method.
10151         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
10152         graphic_start): Add `inline' parameter.  Update.
10153         (html_end_suppress, graphic_end): Update.
10155         * src/include/html-strings.h: New file.
10156         * src/include/htmlindicate.h: Comments updated.
10157         * src/include/printer.h: Updated.
10159         * src/preproc/eqn/main.cc (do_file, main): Updated.
10160         * src/preproc/pic/troff.cc (troff_output::start_picture,
10161         troff_output::finish_picture): Updated.
10162         * src/preproc/tbl/main.cc (process_input_file): Updated.
10164         * src/roff/groff/groff.cc (main): Updated.
10165         Pass device arguments to predrivers also.
10166         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
10167         * src/roff/troff/env.h (environment): Updated.
10168         New elements `need_eol' and `ignore_next_eol' (for html output).
10169         * src/roff/troff/env.cc (environment::environment): Add initializers
10170         for `need_eol' and `ignore_next_eol'.
10171         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
10172         functions.
10173         (point_size, fill, no_fill, center, right_justify, line_length,
10174         indent, temporary_indent, break_request, handle_tab): Use
10175         `add_html_tag()'.
10176         (set_tabs): Use `add_html_tag_tabs()'.
10177         (environment::add_html_tag): Updated.
10178         (environment::do_break): Updated.
10179         * src/roff/troff/div.cc (space_request, flush_output): Use
10180         `environment::add_html_tag()'.
10181         * src/roff/troff/input.cc: Updated.
10182         New variable `html_level' to indicate nested `html-begin' requests.
10183         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
10184         (non_interpreted_char_node, token_node, non_interpreted_node): Add
10185         `force_tprint()' method.
10186         (token::next): Handle `\O'.
10187         (do_suppress): Implement it.
10188         (html_begin, html_end, html_image): New functions.
10189         (init_output_requests): Renamed to ...
10190         (init_html_requests): this.
10191         (main): Use it.
10192         (macro::append_str, macro::append_unsigned, macro::append_int): New
10193         methods.
10194         New variable `output_low_mark_miny' to limit minimal value of y.
10195         (reset_output_registers): Use it.
10196         (output_request): Removed.
10197         (get_output_registers): New function.
10198         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
10199         (*_node): Added `force_tprint()' if necessary.
10200         (special_node): New elements `tf' and `get_tfont()'.
10201         (suppress_node): New class.
10202         * src/roff/troff/node.cc:
10203         New global variables `image_no' and `suppress_start_page'.
10204         (real_output_file): New method `is_on()'.
10205         (troff_output_file): New method `start_special(tfont)'.
10206         (troff_output_file::really_print_line): Use `tprint' conditionally.
10207         (real_output_file::print_line): Updated.
10208         (real_output_file::on): Updated.
10209         (*_node): Added `force_tprint()'.
10210         (special_node::special_node): Initializer updated.
10211         (special_node::same, special_node::copy, special_node::tprint_start):
10212         Updated.
10213         (get_reg_int, get_reg_str): New functions.
10214         (suppress_node::*): New methods.
10215         New global variables last_position, last_image_filename;
10216         (min): New inline function.
10217         * src/roff/troff/reg.h, src/roff/troff/request.h,
10218         src/roff/troff/troff.h: Updated.
10220 2001-01-13  Werner LEMBERG  <wl@gnu.org>
10222         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
10223         documentation of `asciify' request.
10225 2001-01-12  Werner LEMBERG  <wl@gnu.org>
10227         * src/roff/troff/input.cc: Move definition of special characters
10228         like `ESCAPE_TILDE' to ...
10229         * src/roff/troff/input.h: New file.
10230         * src/roff/troff/Makefile.sub (HDRS): Add it.
10232         Extending the .asciify request to `unformat' space characters also.
10234         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10235         to count input space characters.
10236         Update constructors to take care of it.
10237         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10238         `ESCAPE_SPACE' instead of normal space.
10239         (word_space_node::asciify): New method.
10240         (unbreakable_space_node::asciify): New method.
10241         (word_space_node::merge_space): New method.
10242         * src/roff/troff/env.cc (environment::space_newline,
10243         environment::space): Add code to initialize `num_spaces' (using the
10244         constructor of `word_space_node').
10245         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10246         Document it.
10248 2001-01-09  Werner LEMBERG  <wl@gnu.org>
10250         * man/groff_char.man: Use table header traps only conditionally.
10252 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
10254         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10256 2001-01-08  Werner LEMBERG  <wl@gnu.org>
10258         Introducing the `box' and `boxa' requests which are similar to
10259         `di' resp. `da' but omitting a partially filled line (which is
10260         restored after ending the diversion).
10262         * src/roff/troff/div.h (diversion): Add elements to save partially
10263         filled line.
10264         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10265         partially filled line.
10266         (divert, divert_append): Updated.
10267         (box, box_append): New functions.
10268         (init_div_requests): Use them.
10269         * src/roff/troff/env.h (environment): do_divert() is now a friend.
10270         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10272         * doc/groff.texinfo: Fix documentation of `lf' request.
10274 2000-12-25  Werner LEMBERG  <wl@gnu.org>
10276         * src/roff/troff/troff.man, NEWS: Document `writem' request.
10278 2000-12-21  Werner LEMBERG  <wl@gnu.org>
10280         Ignore `ss' request if in compatibility mode.
10282         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10283         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10284         * src/roff/troff/env.cc (space_size): Use it.
10286         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10287         `ss' request in nroff mode.
10289         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10290         changes.
10292 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
10294         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10296 2000-12-13  Werner LEMBERG  <wl@gnu.org>
10298         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10299         * src/preproc/eqn/neqn.man: Small fixes and additions.
10301 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
10303         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10304         Fixing typo.
10306         * src/preproc/eqn/neqn.man: New file.
10308         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10309         negative' warning.
10311         * tmac/e.tmac: Add `T&' macro.
10312         Fix `indent cannot be negative' warning.
10313         * tmac/s.tmac: Fix `indent cannot be negative' warning.
10315 2000-12-07  Werner LEMBERG  <wl@gnu.org>
10317         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10319 2000-12-06  Werner LEMBERG  <wl@gnu.org>
10321         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10322         `alloca' symbol .
10324         * MORE.STUFF: Added info about deroff for djgpp.
10326         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10327         documentation of -rcR switch.
10329 2000-12-03  Werner LEMBERG  <wl@gnu.org>
10331         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10332         if -rcR=1 (which is now the default in nroff mode), a single, very
10333         long page is created instead of multiple pages: All `ne' and `wh'
10334         requests are put into conditionals; a new macro `an-end' is added to
10335         be called with `em'.
10337         Some other minor cleanups.
10339         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10341 2000-12-02  Werner LEMBERG  <wl@gnu.org>
10343         Fixing a bug which prevented hyphenation in words followed
10344         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10346         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10347         Adding possibly_break_line().
10348         * src/roff/troff/env.h (environment): Make possibly_break_line()
10349         public.
10351         Make `\~' usable in .tr request.
10353         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10354         (token): Add stretchable_space().
10355         * src/roff/troff/input.cc (token::next, token::delimiter,
10356         token::description, process_input_stack, do_translate,
10357         add_to_node_list, token::process): Use it.
10358         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10359         for adjusting the space.
10360         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
10361         for stretchable space.
10362         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10363         (make_node): Add code for stretchable space.
10364         * src/roff/troff/env.cc (environment::add_char): Use it.
10365         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10366         (get_copy, token::next, transparent_translate, asciify): Use it.
10368         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10369         doc/groff.texinfo: Updated.
10370         * man/groff.man: Small reorderings.
10372 2000-11-23  Werner LEMBERG  <wl@gnu.org>
10374         * NEWS: Fixes.
10375         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10376         option.
10377         * src/roff/troff/input.cc (main): Add `config_macro_path' and
10378         `safer_macro_path' to -M option.
10379         * src/roff/troff/troff.man: Fixes.
10381 2000-11-22  Werner LEMBERG  <wl@gnu.org>
10383         Use safer path (except for config files) if -U isn't specified.  Add
10384         a special macro path (without home and current directory) for config
10385         files.  Add home directory to unsafe path for consistency.  Don't
10386         include the home directory in the font path.
10388         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10389         `macro_path'.
10390         * src/include/macropath.h: Add `config_macrp_path'.
10391         * src/libs/libgroff/fontfile.cc: Fix font path.
10392         * src/roff/troff/input.cc (process_startup_file): Use
10393         `config_macro_path'.
10394         (main): Select unsafe path if -U is given.
10396         * src/preproc/eqn/main.cc (main): Fixing search path for
10397         configuration file.
10398         * src/preproc/eqn/eqn.man: Updated.
10400         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10401         Updated.
10403         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10404         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10405         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10406         src/devices/grotty/grotty.man: Updated.
10408         * Makefile.in: Fix comments.
10410 2000-11-17  Werner LEMBERG  <wl@gnu.org>
10412         * tmac/safer.tmac: Empty file added (again) for compatibility
10413         reasons.
10414         * tmac/Makefile.sub: Updated.
10416 2000-11-16  Werner LEMBERG  <wl@gnu.org>
10418         * src/devices/grodvi/dvi.cc (main),
10419         src/devices/grohtml2/post-html.cc (main),
10420         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10421         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10422         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10423         (main), src/preproc/html2/pre-html.cc (main),
10424         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10425         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10426         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10427         (main), src/utils/hpftodit/hpftodit.cc (main),
10428         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10429         (main), src/utils/lookbib/lookbib.cc (main),
10430         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10431         (main): Use stdout for -v.
10432         * src/roff/groff/groff.cc (run_commands),
10433         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10434         to make direct printing to stdout possible.
10435         * src/roff/groff/pipeline.h: Updated.
10437         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10438         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10439         * src/utils/afmtodit/afmtodit.man: Updated.
10441         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10442         (version): New function.
10443         (usage): Updated.
10444         * src/utils/addftinfo/addftinfo.man: Updated.
10446         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10447         Fixing copyright dates.
10449         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10450         replacing it.
10452         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10453         version_string.
10455         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10457 2000-11-15  Werner LEMBERG  <wl@gnu.org>
10459         In all programs, make -v return immediately with exit status 0 to
10460         be compliant with the GNU standard.
10462         * src/devices/grodvi/dvi.cc (main),
10463         src/devices/grohtml2/post-html.cc (main),
10464         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10465         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10466         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10467         (main), src/preproc/html2/pre-html.cc (main),
10468         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10469         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10470         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10471         (main): Implement it.
10472         * NEWS: Updated.
10474         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
10475         and postprocessors to the -v option.
10477         * src/roff/grog/grog.pl: Implement -v.
10478         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10479         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10481         * src/roff/nroff/nroff.sh: Implement -v.
10482         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10483         * src/roff/nroff/nroff.man: Updated.
10484         
10485         * src/preproc/eqn/main.cc (main): Fix comment typo.
10487         * MORE.STUFF: Added info about djgpp port of grap.
10489 2000-11-14  Werner LEMBERG  <wl@gnu.org>
10491         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10492         mode (or rather, implemented non-compatibility mode).
10493         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10495         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10496         replacing it -- we don't find gxditview otherwise.
10497         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10499         * src/preproc/pic/depend: Removed.  Unnecessary.
10501         Implemented dummy keyword `solid' in pic for compatibility with
10502         AT&T pic.
10504         * lex.cc (lookup_keyword): Added `solid'.
10505         * pic.y: Added SOLID with dummy rule.
10506         * pic.cc, pic_tab.h: Regenerated.
10507         * doc/pic.ms: Updated.
10509 2000-11-13  Werner LEMBERG  <wl@gnu.org>
10511         For security reasons, don't use the current directory but the home
10512         directory while searching and scanning troffrc and troffrc-end.
10513         Similarly, replace the current directory with the home directory
10514         in the font path.
10516         * Makefile.in (fontpath, tmacpath): Remove current directory.
10518         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10519         two parameters `add_home' and `add_current'.
10520         (search_path::~search_path, search_path::command_line_dir,
10521         search_path::open_file): Remove tests for `dirs' being zero.
10522         * src/include/searchpath.h: Adjust.
10523         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10524         `safer_macro_path'.
10525         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10527         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10528         * src/roff/troff/input.cc: Use `mac_path', initialized with
10529         `macro_path'.
10530         (process_startup_file): Set `mac_path' to `safer_macro_path'.
10531         * src/roff/troff/env.cc: Use `mac_path'.
10533         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10535         * NEWS, man/roff.man, src/roff/troff/troff.man,
10536         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10537         Updated.
10539 2000-11-12  Werner LEMBERG  <wl@gnu.org>
10541         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10543         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10544         * configure.in: Fix typo in comment.
10545         * configure: Regenerated.
10547         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10548         copyright dates.
10550 2000-11-08  Werner LEMBERG  <wl@gnu.org>
10552         Add system tmac directory (/usr/local/lib/groff/site-tmac).
10554         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10555         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10556         $(systemtmacdir).
10557         Use @libdir@.
10558         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10559         * tmac/Makefile.sub (install_data): Create
10560         $(systemtmacdir) and $(localtmacdir).
10561         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10562         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10563         NEWS, doc/groff.texinfo: Updated and minor fixes.
10565         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10566         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10567         $(systemtmacdir) since the wrapper files are platform-dependent.
10569 2000-11-01  Werner LEMBERG  <wl@gnu.org>
10571         * doc/groff.texinfo: Fix typo.
10573 2000-10-26  Werner LEMBERG  <wl@gnu.org>
10575         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
10576           tmac.doc.old -> doc-old.tmac
10577           tmac.an.old  -> an-old.tmac
10579         * tmac/tmac.*: Moved to ...
10580         * tmac/*.tmac: this.
10581         * tmac/man.local: Fix comment.
10582         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10583         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
10584         Added some `FILES' sections.  More use of @...@ directives.  Other
10585         minor updates.
10586         * arch/djgpp/README, font/devutf8/NOTES: Updated.
10587         * doc/homepage.ms, doc/groff.texinfo: Updated.
10588         * man/groff.man, man/roff.man: Updated.
10589         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10590         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10591         src/devices/grotty/grotty.man: Updated.
10592         * src/preproc/pic/pic.man: Updated.
10593         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10594         instead of -mdoc.old.
10595         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10596         * src/roff/nroff/nroff.man: Updated.
10597         * NEWS: Updated.
10599         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10601         * tmac/mm.diff: Removed -- it has no use now since the mm package
10602         is part of groff.
10604         * tmac/*: Removed trailing spaces.
10606         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10607         the tmac subdirectory also).
10609         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10610         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10611         stuff since it is no longer needed.
10613         * README, PROBLEMS: Updated.
10615 2000-10-25  Werner LEMBERG  <wl@gnu.org>
10617         Invert current behaviour: Search first FOOBAR.tmac, then
10618         tmac.FOOBAR.
10620         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10621         (open_mac_file, macro_source): Implement it.
10622         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10623         doc/groff.texinfo, NEWS: Document it.
10625         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10626         Small documentation improvements.
10628         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10629         subdirectory also).
10631         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10633 2000-10-24  Werner LEMBERG  <wl@gnu.org>
10635         Add local tmac directory (groff/site-tmac).
10637         * Makefile.in: Add $(localtmacdir).
10638         (uninstall_dirs): Add $(localtmacdir).
10639         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10640         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10641         in $(localtmacdir).  Create $(localtmacdir).
10642         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10643         Updated and minor fixes.
10645         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10647         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10649 2000-10-23  Werner LEMBERG  <wl@gnu.org>
10651         Move hyphen.us to tmac directory.
10653         * src/roff/troff/hyphen.us: Removed.
10654         * src/tmac/hyphen.us: Added.
10655         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10657         Change installation structure for data files from .../groff/... to
10658         .../groff/<version><revision>/... to be conform with other GNU
10659         programs.
10661         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10662         doc/Makefile: Implement it.
10663         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10664         * configure: Updated.
10665         * arch/djgpp/README, font/devutf8/NOTES: Use it.
10666         * NEWS: Document it.
10667         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10668         @MACRODIR@ instead of hard-coded directories.
10670 2000-10-22  Werner LEMBERG  <wl@gnu.org>
10672         Implement $GROFF_BIN_PATH environment variable (which defaults to
10673         $bindir) used for child programs of groff and similar wrappers.
10675         * gendefs.sh: Improve documentation.
10676         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10677         src/preproc/eqn/Makefile.sub (neqn),
10678         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10679         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10680         $GROFF_BIN_PATH.
10681         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10682         $GROFF_PATH__ (the latter for communication with troff).
10683         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10684         set.
10685         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10686         doc/groff.texinfo: Document it.
10688         * doc/groff.texinfo: Improve documentation of troff's -a option.
10690 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
10692         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10693         non-intrusive eol marker.
10694         (troff_output_file::determine_line_limits): New function.
10695         (troff_output_file::draw): Use it.
10696         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10697         output_pending_lines() instead of output_line().
10698         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10699         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10700         createImage): Small fixes.
10701         
10702 2000-10-14  Werner LEMBERG  <wl@gnu.org>
10704         Replace tmac.safer with a real secure solution.
10706         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10707         system_request, pipe_output): Disable requests if in safer mode.
10708         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10709         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10710         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10711         doc/groff.texinfo, src/roff/groff/groff.man,
10712         src/roff/troff/troff.man, arch/djgpp/README: Updated.
10714         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10715         (resource_manager::output_prolog): Replace setenv() with putenv().
10717 2000-10-09  Werner LEMBERG  <wl@gnu.org>
10719         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10720         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10721         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10722         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10723         compilation errors with some compilers.  It seems that this code
10724         is no longer necessary -- if yes, it is easy to add some #ifdef's
10725         for that particular old-fashioned compiler.
10727         * MORE.STUFF: Added info about Meta-tbl.
10729         * doc/groff.texinfo: Added more info about `.if "..."..."'.
10731 2000-10-07  Werner LEMBERG  <wl@gnu.org>
10733         Adding a new escape sequence \B'...': If the string between
10734         the delimiters is a valid numeric expression, return the character
10735         `1', and `0' otherwise.  This is an analogon to \A.
10737         * src/roff/troff/input.cc (do_expr_test): Implement it.
10738         (token::next): Use it.
10739         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10741         * tmac/tmac.trace: Made independent from escape character.
10743 2000-10-06  Werner LEMBERG  <wl@gnu.org>
10745         Adding a new request .dei: define indirect.  The first and second
10746         parameter of .dei are taken from string registers instead directly;
10747         this very special request is needed to make tmac.trace independent
10748         from the escape character (which might even be disabled).
10750         * src/roff/troff/input.cc (do_define_macro): Implement it.
10751         (define_macro_indirect): New function.
10752         (init_input_requests): Use it.
10754         Adding two requests .ecs and .ecr: Save and restore the escape
10755         character.  These two requests are needed to make tmac.trace
10756         independent from the escape character (which might even be
10757         disabled).
10759         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10760         Implement it.
10761         (init_input_requests): Use it.
10763         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10765 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10767         Adding a new option -P and new environment variable GROPS_PROLOGUE
10768         to grops, selecting a different prologue file (minor modifications
10769         by WL).
10771         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10772         src/devices/grops/ps.cc (main): Implement it.
10773         * src/devices/grops/grops.man, NEWS: Document it.
10775 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10777         * INSTALL: Add info about selecting paper format.
10779 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10781         * src/roff/troff/input.cc (main): Fixing compiler warning.
10782         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10783         strings.h from the former to the latter.
10784         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10785         stuff from the former to the latter.
10787 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10789         Implementing two new requests .tm1 and .tmc: The former is similar
10790         to .tm but can output leading spaces; its syntax is similar to
10791         defining a string, i.e., a `"' can be used to mark the beginning of
10792         the string to be written to stderr: `.tm1 " test'.  The latter is
10793         similar to .tm1 but doesn't write out a final newline character.
10795         * src/roff/troff/input.cc (terminal1, terminal_continue,
10796         do_terminal): New functions.
10797         (init_input_requests): Use them.
10798         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10800 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10802         * tmac/groff_mdoc.samples.man: Small fixes.
10804 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10806         * tmac/groff_mdoc.man: Fixing typo.
10808 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10810         Implementing a .nop request which does nothing.
10812         * src/roff/troff/input.cc (nop_request): New function.
10813         (init_input_requests): Use it.
10814         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10816 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10818         * doc/groff.texinfo: Added some comments.
10820 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10822         * src/roff/troff/TODO: Updated.
10824 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10826         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10828 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10830         * font/devps/generate/Makefile (SHELL): Define explicitly to
10831         "/bin/sh", for non-Unix platforms.
10832         (extraclean): Use a more portable "" quoting instead of a
10833         backslash (which doesn't work on DOS/Windows).
10834         
10835         * font/devlj4/generate/Makefile (extraclean): Ditto.
10837         * font/devdvi/generate/Makefile (extraclean): Ditto.
10839 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10841         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10842         src/roff/troff/troff.man: Document Eli's latest changes.
10844 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10846         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10847         macro file names of the form NAME.tmac as well as tmac.NAME.
10849 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10851         * src/include/posix.h: Remove definition of FILENAME_MAX.
10853         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10854         `sys_fatal' and `stop' function().
10856         * test-groff: Updated.
10858 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10860         Added the new troff command .output <arg> to suppress output (while
10861         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10862         registers (for passing the output dimensions to the output device).
10864         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10865         parameter.
10866         * src/roff/troff/node.h, src/roff/troff/node.cc
10867         (troff_output_file::really_print_line,
10868         ascii_output_file::really_print_line,
10869         supress_output_file::really_print_line): Use `width' parameter.
10870         (troff_output_file::really_on, troff_output_file::really_off,
10871         output_file::on, output_file::off, real_output_file::on,
10872         real_output_file::off, real_output_file::really_on,
10873         real_output_file::really_off): New functions.
10874         (real_output_file:public output_file): New variable `output_on'.
10875         (real_output_file::begin_page, real_output_file::copy_file,
10876         real_output_file::transparent_char, real_output_file::print_line):
10877         Use it.
10878         (real_output_file::print_line): Use check_output_limits.
10879         * src/roff/troff/reg.h, src/roff/troff/request.h,
10880         src/roff/troff/input.cc (assign_registers): New function to remove
10881         two `goto's.
10882         (do_ps_file): Use it.
10883         (check_output_limits, reset_output_registers, output_request,
10884         init_output_requests): New functions.
10885         (init_input_requests): Updated.
10887         Added new grohtml2 device and html2 preprocessor (coding
10888         not yet finished) which will eventually replace grohtml.
10890         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10891         Updated.
10892         * src/include/htmlindicate.h, src/include/htmlindicate
10893         (html_begin_suppress, html_end_suppress): New functions.
10894         * src/preproc/tbl/main.cc: Use it.
10895         * src/roff/groff/groff.cc: Add support for html2 device (which will
10896         automatically invoke the html2 preprocessor).
10897         * src/roff/troff/input.cc (is_html2): New variable.
10898         * src/roff/troff/troff.h, src/roff/troff/env.h,
10899         src/roff/troff/env.cc (environment::add_html_tag): New function
10900         (uses `is_html2').
10901         (environment::do_break): Use it.
10902         * font/devhtml2/*: New files.
10903         * src/devices/grohtml2: New device.
10904         * src/preproc/html2: New preprocessor.
10905         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10907 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10909         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10911 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10913         * src/include/lib.h: Provide a fix for IRIX to not include
10914         groff-getopt.h.
10916 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10918         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10919         since some non-GNU sed programs can't handle null regexps.
10920         * configure, src/preproc/eqn/Makefile.sub,
10921         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10923         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10924         bug (string.h and strings.h are both needed according to latest
10925         POSIX standard).
10927         * MORE.STUFF: Added info about unroff and troffcvt.
10929 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10931         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10932         used before -ms.
10934         * tmac/tmac.man.old: Remove unused number register.
10936         * tmac.doc: Minor documentation fix.
10938 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10940         * src/roff/groff/pipeline.c (is_system_shell):
10941         Fix typo: "monocased_shell" no longer exists.
10943 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10945         Remove FILENAME_MAX limits.
10947         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10948         that the argument length is less than FILENAME_MAX.
10949         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10950         Use struct hack to allocate and free file name.
10951         (struct xtmpfile_list): fname is now part of the structure,
10952         not a pointer to another string.
10954 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10956         * src/include/posix.h: Add a default value for FILENAME_MAX.
10958 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10960         Add support for new BSD-style man pages (with ".Dd" instead of
10961         ".TH"), so that "groff -man" understands both styles, even
10962         when running "groff -man" on a host whose system man page
10963         macros don't support ".Dd".
10965         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10966         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10967         in case the system man macros don't define Dd or TH.
10969         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10970         * tmac/tmac.an: New one-line file.
10971         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10973 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10975         * src/roff/troff/troff.man: Fixing typos.
10977 Version 1.16.1 released
10978 =======================
10980 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10982         Preparing release 1.16.1.
10984         * REVISION: Revision number set to 1.
10985         * MORE.STUFF: Added info about port to DOS.
10986         * NEWS, win32-diffs: Updated.
10988         * src/include/nonposix.h: Remove first line -- this file is used
10989         in C also.
10991         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10992         link to it.
10994 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10996         * doc/texinfo.tex: Update to latest version.
10998 2000-06-28  Paul Eggert  <eggert@twinsun.com>
11000         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
11001         commands that fail.  Don't assume that "export a=b" is valid shell
11002         syntax.  This is needed for Solaris 2.5.1.
11004         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
11005         comment about missing Solaris headers.
11007         * PROBLEMS: Add section about problems with Sun Make and VPATH.
11009 2000-06-25  Werner LEMBERG  <wl@gnu.org>
11011         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
11012         SET_BINARY().
11014         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
11016         * win32-diffs: Updated.
11017         * README.WIN32: Added CRs to make all Windows editors happy.
11019         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
11020         src/roff/groff/pipeline.c).
11022 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
11024         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
11025         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
11027 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
11029         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
11030         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
11031         are binary files.
11032         (main): Support non-Posix systems with several different styles of
11033         slash characters in file names.
11035         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
11036         (main) [SET_BINARY]: Switch stdin into binary mode.
11038         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
11039         (main): Support file names with several possible slash-type
11040         characters, as given by DIR_SEPS[] in nonposix.h.
11041         (main) [__MSDOS__]: If renaming the temporary index file fails
11042         because it has more than one dot in its trunk, replace the dot
11043         with an underscore and try again.
11044         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
11045         Newline.
11046         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
11048         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
11049         (File::File): Open the input file in binary mode.  Strip CR
11050         characters from each CR-LF pair.
11051         (xbasename): Support file names with several possible slash-type
11052         characters, as given by DIR_SEPS[] in nonposix.h.
11054         * src/include/Makefile.sub (HDRS): Add nonposix.h.
11056         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
11057         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
11058         [!_POSIX_VERSION]: Define for traditional Unix systems.
11059         (real_output_file::real_output_file): Remove the MSVC-specific
11060         call to popen, use instead POPEN_WT, appropriately defined on
11061         nonposix.h.  #include nonposix.h.
11062         (real_output_file::~real_output_file): Remove the MSVC-specific
11063         call to pclose, a suitable macro is now defined on nonposix.h.
11064         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
11065         and WEXITSTATUS instead of assuming traditional Unix
11066         interpretation of the status returned by pclose.
11068         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
11069         call to popen, use POPEN_RT instead (appropriately defined on
11070         nonposix.h).  #include nonposix.h.
11071         (ps_bbox_request): Open the PostScript file in binary mode.
11072         Close the file after processing it.
11073         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
11074         nonposix.h.
11076         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
11077         A version of run_pipeline that doesn't use `fork'.
11078         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
11079         (system_shell_name, system_shell_dash_c)
11080         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
11081         the ugliness of testing DOS/Windows file names for equality, and
11082         support both stock shells and ports of Unix shells.
11084         * src/roff/groff/groff.cc: #include nonposix.h.
11085         (BSHELL): Definition moved to nonposix.h.
11086         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
11087         instead of a literal "-c".
11088         (xbasename): Support file names with several possible slash-type
11089         characters, as given by DIR_SEPS[] in nonposix.h.
11090         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
11091         of literal strings.
11093         * src/preproc/soelim/soelim.cc: #include nonposix.h.
11094         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
11096         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
11097         pic_tab.h.
11099         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
11101         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
11102         eqn_tab.h.
11104         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
11106         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
11107         P_tmpdir is defined, use it instead of the literal "/tmp".
11108         (remove_tmp_files, add_tmp_file): New functions.
11109         (xtmpfile): Record temporary files and register an atexit function
11110         to delete them explicitly, instead of relying on the OS to do
11111         that, which doesn't work on non-Unix systems.
11113         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
11114         (search_path::search_path): Use PATH_SEP instead of a literal
11115         colon.
11116         (search_path::command_line_dir): Ditto.
11117         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
11118         to support non-Posix systems.
11120         * src/libs/libbib/search.cc: #include nonposix.h.
11121         (search_list::add_file): Open the file in binary mode.
11123         * src/libs/libbib/linear.cc: #include nonposix.h.
11124         (file_buffer::load): Remove \r characters preceding \n from the
11125         loaded buffer.
11127         * src/libs/libbib/index.cc: #include nonposix.h.
11128         (make_index_search_item): Open index_filename in O_BINARY mode.
11129         (index_search_item_iterator::get_tag): Ditto.  Remove \r
11130         characters before \n characters.
11131         (index_search_item::check_files): Open files in binary mode.
11132         (index_search_item::munge_filename): Support DOS-style file names
11133         with backslashes and drive letters, use IS_ABSOLUTE.
11135         * src/devices/grops/ps.cc: #include nonposix.h.
11136         (main) [SET_BINARY]: Switch stdout to binary mode.
11138         * src/devices/grolj4/lj4.cc: #include nonposix.h.
11139         (main) [SET_BINARY]: Switch stdout to binary mode.
11141         * src/devices/grolbp/lbp.cc: #include nonposix.h
11142         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
11144         * src/devices/grodvi/dvi.cc: #include nonposix.h.
11145         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
11146         nonposix.h).
11147         (main) [SET_BINARY]: Switch stdout to binary mode.
11148         [_MSC_VER]: Remove an explicit call to _setmode.
11150         * src/include/nonposix.h: New file.
11152         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
11153         operation when building with DJGPP.
11154         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
11155         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
11156         ENVSETUP.
11158         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
11159         MS-DOS.
11160         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
11161         etc. can include a semi-colon on DOS/Windows.
11162         (depend.temp): Use depend1.temp instead of depend.temp1, to
11163         prevent files from overerwiting each other on 8+3 filesystems.
11165         * gendef.sh (t): Change definition to work with DOS/Windows.
11167         doc/groff.texinfo: Apart of some typo corrections, I also changed
11168         some index entris, to make them more non-ambiguous, and also put
11169         @ignore around some parts that are not yet written, to allow the
11170         Info output be readable.
11172 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
11174         Replaced specific checks for function declarations with a generic
11175         routine taken from GNU bfd.
11177         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
11178         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
11179         * configure.in: Use it.
11180         * src/devices/grolbp/lbp.cc, src/include/lib.h,
11181         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
11182         src/roff/groff/groff.cc: Use it.
11183         * Makefile.in, configure: Updated.
11185 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
11187         * src/devides/grolbp/lbp.h: Removed unused variables.
11189 2000-05-31  Keith Thompson  <kst@sdsc.edu>
11191         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
11192         strncasecmp().
11194 2000-05-31  Werner LEMBERG  <wl@gnu.org>
11196         * aclocal.m4 (GROFF_SRAND): New function to test the return value
11197         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
11198         * configure.in: Use it.
11199         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
11200         * configure, Makefile.in: Updated.
11202         * configure.in: Add test for strncasecmp().
11203         * src/include/lib.h: Use it.
11205 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
11207         * src/preproc/grn/Makefile.sub: Add MLIB.
11209 2000-05-29  Nix  <nix@esperi.demon.co.uk>
11211         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
11213 2000-05-29  Werner LEMBERG  <wl@gnu.org>
11215         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
11217         * PROBLEMS: Small update.
11219         * src/devices/grolbp/lbp.cc: Various small fixes.
11221 2000-05-28  Keith Thompson  <kst@sdsc.edu>
11223         * src/roff/nroff/nroff.sh: Fix main loop syntax.
11225         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
11227 2000-05-25  Werner LEMBERG  <wl@gnu.org>
11229         * man/roff.man: Removed unused macro.
11231 2000-05-24  Werner LEMBERG  <wl@gnu.org>
11233         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
11234         This is needed e.g. if you do
11235         `make distclean; ./configure; make dist'.
11237 Version 1.16 released
11238 =====================
11240 2000-05-23  Werner LEMBERG  <wl@gnu.org>
11242         Adding font CWI (constant width italic) to devdvi.
11244         * font/devdvi/CWI: New file.
11245         * font/devdvi/generate/Makefile: Add generating rule.
11246         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11247         tmac/tmac.dvi: Use it.
11248         * NEWS: Announce it.
11250         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11251         * font/devlj4/generate/Makefile: Cosmetic changes only.
11253         * man/groff.man: Removed most of the redundant description of
11254         special characters (which is in groff_char.man).  Added font
11255         translation CB->CR for devdvi.  Other minor fixes.
11257         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11258         (registered) symbols.
11260 2000-05-22  Werner LEMBERG  <wl@gnu.org>
11262         * doc/Makefile: Added rule for creating info files.
11264         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
11265         AMS font metrics.
11266         * font/devdvi/generate/Makefile: Fixed dependencies.
11268         * font/devps/*: Regenerated.  Heavy changes for Bookman and
11269         NewCentury Schoolbook!
11270         * font/devps/generate/afmname: Will now run with GNU awk.
11271         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11272         * font/devps/generate/Makefile: Cosmetic changes only.
11274 2000-05-21  Werner LEMBERG  <wl@gnu.org>
11276         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11277         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
11278         `.SS' now produces a heading with a smaller size than `.SH'. 
11279         Completely formatted.
11280         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11282         * man/groff.man: Improved table appearance.  Use of `eo' request
11283         to reduce number of doubled backslashes in macro definitions.
11284         Replacing `\e' with `\(rs'.  Other minor fixes.
11286         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11287         to have correct line number.
11289         * INSTALL: Small improvement.
11291 2000-05-20  Bernd Warken  <bwarken@mayn.de>
11293         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11294         WL).
11296 2000-05-19  Bernd Warken  <bwarken@mayn.de>
11298         * man/groff.man: Complete update (with a lot of corrections by WL).
11300 2000-05-18  Werner LEMBERG  <wl@gnu.org>
11302         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11304         * font/*/*: Implement it.
11305         * man/groff_char.man, NEWS: Document it.
11307         * src/include/unix.h: Removed.  It isn't used.
11309         * doc/groff.texinfo: Slight improvements.
11311 2000-05-17  Werner LEMBERG  <wl@gnu.org>
11313         * README, win32-diffs: Small fixes and improvements.
11315 2000-05-16  Werner LEMBERG  <wl@gnu.org>
11317         * FDL: New file (the Free Documentation License version 1.1).
11319         * doc/groff.texinfo: Added many start-up values for gtroff.
11320         Some structural improvements of the source code.
11322 2000-05-15  Werner LEMBERG  <wl@gnu.org>
11324         * src/roff/troff/input.cc: Added small comment about troffrc-end.
11325         * src/roff/troff/troff.man: Added info about troffrc-end.
11327 2000-05-14  Werner LEMBERG  <wl@gnu.org>
11329         * Makefile.in (EXTRADIRS): Fix typos.
11330         (dist): Handle deletion of old .tar.gz file correctly.
11331         (DISTDIRS): Include all tty output devices.
11333         * doc/groff.texinfo: Adding more cross references; countless other
11334         fixes.
11336 2000-05-13  Werner LEMBERG  <wl@gnu.org>
11338         * MORE.STUFF: Added Robert Marks's utilities.
11340 2000-05-12  Werner LEMBERG  <wl@gnu.org>
11342         Added win32 port contributed by Blake McBride
11343         <blake@florida-software.com>.
11345         * README.WIN32, win32-diffs: New files.
11346         * NEWS: Updated.
11348         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11349         (tmove, tmove2): Added parentheses to avoid compiler warnings.
11350         (change): Removed unused variables.
11352         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11353         (savebounds): Changed return value from `int' to `void'.
11354         * src/preproc/grn/hdb.cc: Ditto.
11356         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11357         final backslash in comment to avoid compiler warning.
11359         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11361         * doc/groff.texinfo: More fixes.
11363 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
11365         * tmac/tmac.doc: Documentation fix.
11367 2000-05-11  Werner LEMBERG  <wl@gnu.org>
11369         * doc/groff.texinfo: Reading the source code shows up a lot of
11370         omissions and incorrect data...  More conversion to @Deffn macros.
11372 2000-05-10  Werner LEMBERG  <wl@gnu.org>
11374         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11375         dependency.
11377         * src/roff/troff/request.h: Removing unused `no_break_flag'.
11379 2000-05-09  Werner LEMBERG  <wl@gnu.org>
11381         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11382         improvements.
11384         * doc/groff.texinfo: Extended history section.  More conversion to
11385         @Deffn macros.  More .tr documentation.
11387 2000-05-07  Werner LEMBERG  <wl@gnu.org>
11389         * doc/groff.texinfo: Completed tab section.  Added info about
11390         fields.
11392 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
11394         * PROBLEMS: Describe configure script fix for OS/390 Unix.
11396 2000-05-05  Werner LEMBERG  <wl@gnu.org>
11398         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11399         LaTeX 2e).
11400         * NEWS: Document it.
11402         * man/troff.man: Minor optical improvements.
11404 2000-05-03  Werner LEMBERG  <wl@gnu.org>
11406         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11408         * font/*/*: Implement it.
11409         * man/groff_char.man, NEWS: Document it.
11411 2000-05-02  Werner LEMBERG  <wl@gnu.org>
11413         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11414         expansion.
11415         * NEWS: Document the three new man pages.
11417         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11418         * configure: Updated.
11420         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11422 2000-05-01  Werner LEMBERG  <wl@gnu.org>
11424         Added grap support to grog.
11426         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11427         * src/roff/grog/grog.man: Document it.
11429         * doc/groff.texinfo, NEWS: Add info about grap support.
11431         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11432         (with slight fixes by me).
11434         * tmac/groff_tmac.man: New file documenting tmac mechanism.
11435         * tmac/Makefile.sub: Add groff_tmac.man.
11436         * man/roff.man: New file giving overview of roff system.
11437         * man/troff.man: A short reference of troff.
11438         * man/Makefile.sub: Add roff.man and troff.man.
11440 2000-04-30  Werner LEMBERG  <wl@gnu.org>
11442         Added grap support to groff.
11444         * src/roff/groff/groff.cc: Implement it.
11445         * src/roff/groff/groff.man: Document it.
11447         * src/devices/grotty/grotty.man: Add cp1047 device.
11448         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11449         Ditto.
11450         * src/roff/groff/groff.man: Ditto.
11451         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11452         * doc/groff.texinfo: Ditto.
11454         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11455         for cp1047.
11457 2000-04-29  Werner LEMBERG  <wl@gnu.org>
11459         * man/groff_char.man: Add `pc' glyph.
11460         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11461         * tmac/tmac.tty: Add `pc' glyph.
11462         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
11463         we use cp1047 output device.
11465         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11466         there are still hardcoded latin1->unicode values in utf8's font
11467         definition files.
11468         * configure: Updated.
11469         * NEWS: Minor clarification.  Updated.
11471         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
11472         Unix.
11474 2000-04-28  Werner LEMBERG  <wl@gnu.org>
11476         Adding EBCDIC code page 1047.
11478         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11479         font/devcp1047/DESC.proto: New files.
11481         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11482         either ascii/latin1 or cp1047.
11483         * Makefile.in: Use it.
11484         * configure: Updated.
11486         Replacing and/or adding `md' (mathdot) glyph with `pc'
11487         (periodcentered) in all text fonts.
11489         * font/*/*: Change it.
11491 2000-04-27  Werner LEMBERG  <wl@gnu.org>
11493         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11495         * configure.in: Add check for strings.h.
11496         * src/include/driver.h: Use HAVE_STRINGS_H.
11497         * src/devices/grolbp/lpb.cc: Remove string.h.
11499         * src/include/groff-getopt.h: New file.  It will be used instead of
11500         getopt.h (to be included in lib.h) to avoid endless problems with
11501         picky C++ compilers.
11502         * src/include/lib.h: Use groff-getopt.h.
11503         * src/include/Makefile.sub: Updated.
11505         * configure: Updated.
11506         * Makefile.in: Updated.
11508         * NEWS: Mention EBCDIC support.
11510 2000-04-26  Werner LEMBERG  <wl@gnu.org>
11512         * TODO: Some additions.
11514 2000-04-25  Werner LEMBERG  <wl@gnu.org>
11516         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11517         of mso request.
11519 2000-04-23  Werner LEMBERG  <wl@gnu.org>
11521         * src/roff/troff/troff.man: Minor fixes.
11523 2000-04-22  Werner LEMBERG  <wl@gnu.org>
11525         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11526         `.T' string register and the incompatible definition of the `.T'
11527         number register (compared to Unix troff).
11529         * man/groff_char.man: Add some missing characters.
11530         * font/devutf8/NOTES: Update.
11532 2000-04-21  Werner LEMBERG  <wl@gnu.org>
11534         * src/include/htmlindicate.h, src/include/lib.h,
11535         src/include/posix.h: Fix copyright.
11537         * src/include/Makefile.sub: Update.
11539 2000-04-20  Werner LEMBERG  <wl@gnu.org>
11541         * src/roff/troff/input.cc (input_char_description): Removing
11542         superfluous space char.
11544         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11546         * doc/groff.texinfo: Document EBCDIC.
11548 2000-04-19  Werner LEMBERG  <wl@gnu.org>
11550         Introducing `shc' as the glyph name for the soft hyphen character.
11552         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11553         font/devlatin1/R.proto: Use it.
11555         * NEWS: Updated.
11557 2000-04-18  Werner LEMBERG  <wl@gnu.org>
11559         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11560         dependency on ASCII order.
11562 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
11564         * src/libs/libgroff/illegal.c: Added EBCDIC table.
11565         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11567         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11568         to increase portability.
11570 2000-04-15  Werner LEMBERG  <wl@gnu.org>
11572         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11573         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11574         the generic `\n' if under OS/390 Unix.
11576         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11578         * configure: Regenerated.
11580 2000-04-14  Werner LEMBERG  <wl@gnu.org>
11582         * doc/groff.texinfo: More conversions to @Deffn.
11584 2000-04-12  Werner LEMBERG  <wl@gnu.org>
11586         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11587         with `:'.
11589         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11591 2000-04-10  Werner LEMBERG  <wl@gnu.org>
11593         * doc/groff.texinfo: More conversions to @Deffn.
11595 2000-04-08  Werner LEMBERG  <wl@gnu.org>
11597         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11598         Updated to latest version (glibc 2.1.3).
11600 2000-04-07  Werner LEMBERG  <wl@gnu.org>
11602         * doc/Makefile (clean): Include more index files.
11603         Add rule texinfo->dvi.
11605 2000-04-05  Werner LEMBERG  <wl@gnu.org>
11607         * doc/groff.texinfo: Added new index `op' for operators.  More
11608         info on end of sentence characters.  More use of @Deffn.
11610 2000-03-30  Werner LEMBERG  <wl@gnu.org>
11612         * */*.man: Adding a note that a whitespace can be inserted between
11613         a command line option and its parameter -- we are using GNU getopt.
11615         * src/roff/groff/groff.man: Add example of `-m mandoc'.
11617 2000-03-28  Werner LEMBERG  <wl@gnu.org>
11619         Correct anachronism of calling the man macro file with `-man'
11620         instead of `-m man' etc.
11622         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11623         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11624         load tmac.<package>.
11626         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
11628         * NEWS: Updated.
11630         * doc/groff.texinfo: Updated.
11632         * tmac/groff_man.man: Copyright added.
11634 2000-03-27  Werner LEMBERG  <wl@gnu.org>
11636         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11637         typeset the request resp. escape name with a tt font -- due to a
11638         bug in texinfo.tex it is necessary to use the `-e' switch with
11639         texi2dvi.
11641         Improving info about usage of groff units.
11643         Other minor fixes.
11645 2000-03-20  Werner LEMBERG  <wl@gnu.org>
11647         * doc/groff.texinfo: Added section about man macro package
11648         (I've basically taken groff_man.man).  Introducing new indices `ma'
11649         for macros/strings and `gl' for glyph names.  Other minor fixes.
11651         * tmac/groff_man.man: Fixed some typos.
11653 2000-03-19  Werner LEMBERG  <wl@gnu.org>
11655         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11656         Other minor fixes.
11658         * doc/texinfo.tex: New file.
11660 2000-03-18  Werner LEMBERG  <wl@gnu.org>
11662         * doc/groff.texinfo: Improved section on number registers.  Other
11663         minor updates.
11665 2000-03-16  Werner LEMBERG  <wl@gnu.org>
11667         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
11668         synopsis.
11670         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11671         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11672         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11673         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11675         * src/preproc/grn/grn.man: Better synopsis; added copyright.
11677         * src/roff/grog/grog.man: Updated copyright date.
11679 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
11681         * configure.in: Added test for strdup.
11683         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11684         is available.
11686         Replaced dynamic allocation of arrays `[...]' with `new' operator.
11688         Other minor fixes.
11690 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
11692         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11694 2000-03-11  Werner LEMBERG  <wl@gnu.org>
11696         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11697         compilers silent.
11698         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11699         * src/include/lib.h: Remove some spaces.
11701 2000-03-10  Werner LEMBERG  <wl@gnu.org>
11703         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11704         initializers from arguments (some compilers don't like this).
11706 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
11708         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11709         used by pic and eqn to tell grohtml where the graphic regions start
11710         and end.
11711         * src/libs/libgroff/Makefile.sub: Use it.
11712         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11713         graphic_start() and graphic_end() from htmlindicate.cc.
11715 2000-03-09  Werner LEMBERG  <wl@gnu.org>
11717         * tmac/tmac.safer: Will now work correctly in compatibility mode.
11718         * tmac/groff_man.man: More fixes.
11720 2000-03-08  Werner LEMBERG  <wl@gnu.org>
11722         * doc/Makefile: Added texput.log to the `clean' target.
11723         * doc/groff.texinfo: Added info about delimiters for escapes.
11725 2000-03-08  Bernd Warken  <bwarken@mayn.de>
11727         * src/preproc/pic/pic.man: Add info on conversion of pic images to
11728         other graphic formats.
11730 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
11732         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11733         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11734         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11735         files.
11737 2000-03-07  Werner LEMBERG  <wl@gnu.org>
11739         * doc/groff.texinfo: Spelling fixes.
11741 2000-03-06  Werner LEMBERG  <wl@gnu.org>
11743         * tmac/groff_man.man: Completely revised to cover everything in
11744         tmac.an.
11746         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11747         Other minor fixings.
11748         * src/roff/troff/env.cc (environment_copy): Improve error message and
11749         fix itoa->i_to_a.
11750         * src/roff/troff/TODO: Updated.
11752         * doc/Makefile: Bug fixes -- this is still provisional, though...
11754         * tmac/eqnrc: Small fixes.
11756 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
11758         Adding a request `evc' to copy environments.
11760         * src/roff/troff/env.cc (environment::copy, environment_copy):
11761         Implement it.
11762         * src/roff/troff/env.h: Add prototype.
11764 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11766         Adding strsep() -- Solaris 8 doesn't have it.
11768         * configure.in: Test it.
11769         * src/devices/grolbp/lbp.cc: Add code.
11771 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11773         * src/roff/troff/div.cc (macro_diversion::output,
11774         top_level_diversion::output): Fixing an incompatibility with
11775         original troff: \x'0' updates the .a register also.  Thanks to
11776         <Andries.Brouwer@cwi.nl> for pointing this out.
11777         * doc/groff.texinfo: Document it.
11779         * Makefile.in: Create Makefile.dep if necessary before calling the
11780         submake process to avoid warning about nonexistent file.
11782         * NEWS, PROJECTS: Updated.
11784 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11786         * tmac/troffrc: Add tmac.lbp.
11788 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11790         * tmac/tmac.lbp: New file.
11791         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11792         command.
11794 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11796         * Makefile.in: Fixing $(subdir).
11798         * README, NEWS: Small fixes.
11800         * test-groff: Adding path to grolbp.
11802         * configure.in: The (new) file src/xditview/Imakefile.in will be
11803         also configured -- it is now possible to build gxditview in a
11804         directory different from $srcdir.
11806 2000-03-02  Blake McBride  <blake@florida-software.com>
11808         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11810         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11812 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11814         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11815         files.
11817 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11819         Adding GNU getopt to the groff distribution.
11821         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11822         New files.
11823         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11824         * aclocal.a4: Remove GROFF_GETOPT function.
11825         * configure.in, Makefile.in, PROBLEMS: Update.
11826         * src/include/lib.h: Replace getopt tests with getopt.h.
11827         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11829         * doc/groff.texinfo: Further checking/updating.  Adding more index
11830         entries.
11832         * man/groff_out.man: Fix nroff mode activation (for emacs).
11833         * man/groff_font.man: Add missing ligature.
11835 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11837         * doc/groff.texinfo: Further checking/updating.  Adding more index
11838         entries.
11840         * src/devices/grolbp/grolbp.man: Added a comment line at the
11841         beginning of the file (similar to shell scripts) which indicates
11842         that `tbl' should be used as a preprocessor.
11844 2000-02-27  Blake McBride  <blake@florida-software.com>
11846         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11847         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11849         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11850         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11851         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11852         src/include/lib.h, src/libs/libgroff/errarg.cc,
11853         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11854         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11855         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11856         src/roff/troff/div.cc, src/roff/troff/env.cc,
11857         src/roff/troff/input.cc, src/roff/troff/node.cc,
11858         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11859         if_to_a() to avoid name clashes.
11860         * src/include/posix.h: Don't use unistd.h.
11861         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11862         clause for integrating non-Unix xtmpfile() code.
11863         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11864         structure; use "rt" for popen() in pipe_source(); add getpid()
11865         dummy function.
11866         * src/roff/troff/node.cc: Use special versions of popen() in
11867         real_output_file() and pclose() in ~real_output_file().
11869 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11871         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11872         LBP-8 series laser printers).  This code has been contributed by
11873         Francisco Andrés Verdú <pandres@dragonet.es>.
11875         * src/devices/grolbp/*: The grolbp output device.
11876         * font/devlpb/*: The font description files.
11877         * Makefile.in: Add grolpb and devlbp subdirectories.
11879         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11880         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11881         typographic fixes.
11883         * doc/groff.texinfo: Further checking/updating.  Adding more index
11884         entries.
11886         * NEWS: Updated.
11888         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11890         * man/groff_font.man: Adding info about obsolete DESC keywords.
11891         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11892         keywords.
11894 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11896         * src/preproc/grn/grn.man: Added info about the gremlin file format
11897         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11899 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11901         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11902         friends to be non-integer.
11904         * src/preproc/grn/grn.man: Document it.
11906         * doc/groff.texinfo: Further checking/updating.  Adding more index
11907         entries.
11909 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11911         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11912         line thicknesses to be integer multiples of this value.
11914         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11915         corresponding code doesn't work (yet).
11917         * doc/groff.texinfo: Further checking/updating.  Adding more index
11918         entries.
11920 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11922         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11923         specify line thickness instead of base units.  The new default
11924         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11925         thick lines respectively.
11927         Removed unused variable `prevval'.
11929         * src/preproc/grn/grn.man: Updated.
11931 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11933         * src/preproc/grn/main.cc: Slight formatting.
11935         * src/roff/groff/groff.man: Formatting fix.
11936         * src/preproc/grn/grn.man: Ditto.
11938         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11940         * doc/groff.texinfo: Further checking/updating.
11942 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11944         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11946         * test-groff: Added grn subdir to path.
11948         * doc/groff.texinfo: Some restructing and other small improvements.
11950         * src/roff/groff/groff.cc (help): Fixed info string.
11952 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11954         * doc/meref.me: Fix description of .GS request.
11956         * src/roff/troff/troff.man: Fixing typo.
11958         Adding the `grn' preprocessor for gremlin graphic files.
11960         * src/preproc/grn/*: This is the Berkeley distribution written by
11961         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11962         Senderowicz and Werner Lemberg.
11964         * doc/grnexampl.{me,g}: A sample for grn.
11966         * Makefile.in: Added subdirectory entry for grn.
11968         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11969         called with the switch `-g'.
11971         * src/roff/groff/groff.man: Updated.
11973         * src/roff/grog/grog.{man,pl,sh}: Updated.
11975         * NEWS: Updated.
11977 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11979         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11980         parametrically polymorphic.
11982         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11983         and the alterations to xtmpfile.
11984         xtmpfile can be requested to return the filename created
11985         and asked not to unlink the temp file.  The default behaviour
11986         if parameters are absent is exactly the same as before.
11988 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11990         A new request `length' is available which returns the length of a
11991         string in a number register:
11993         * src/roff/troff/input.cc (length_macro): Implement it.
11994         * src/roff/troff/input.cc (init_input_requests): Register it.
11996 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11998         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11999         of the `substring' request.
12001         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
12002         request.
12004         * src/roff/troff/TODO, NEWS: Updated.
12006 2000-02-09  Werner LEMBERG  <wl@gnu.org>
12008         * src/roff/groff/groff.man: Added an example.
12010 2000-02-06  Werner LEMBERG  <wl@gnu.org>
12012         I've considerably modified the directory structure of the
12013         distribution to get a more vertical layout.  For example, the number
12014         of top level directories has been reduced from 42 to 6.
12016         As a consequence, many changes, especially to the makefiles, were
12017         necessary:
12019         * The makefile variables `top_builddir' and `top_srcdir' have been
12020         introduced.  Virtually all relative paths have been replaced with
12021         absolute ones using these two variables.
12023         * Dependencies (in the files `Makefile.dep') are no longer part of
12024         the distribution.  Instead, they are created during a `make install'
12025         in the build directory.
12027         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
12028         make `top_srcdir' and `top_builddir' absolute.
12030         Some other changes:
12032         * Man pages now depend on the files `VERSION' and `REVISION'.
12034         * The added shell script `mkinstalldirs' will replace `mkdir' in
12035         almost all cases.
12037         * VERSION: Version number increased to 1.16.
12039 2000-02-04  Werner LEMBERG  <wl@gnu.org>
12041         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
12043         * Makefile.in: Removed $(tmac_m) since it is no longer needed
12044         (after an update of the mm stuff).
12046         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
12048 2000-02-03  Werner LEMBERG  <wl@gnu.org>
12050         The .psbb request will now also accept Mac PS images (i.e. using LF
12051         as the EOL character).
12053         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
12054         (with slight modifications).
12055         * troff/input.cc (do_ps_file): Use it.
12057         * test-groff: Add grohtml and grolj4 output devices to PATH.
12059 2000-01-30  Werner LEMBERG  <wl@gnu.org>
12061         * NEWS, MORE.STUFF: Updated.
12063 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
12065         Add the `srand' command to pic.
12067         * pic/lex.cc, pic/pic.y: Implement it.
12068         * pic/pic.man: Document it.
12069         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
12071 2000-01-30  Werner LEMBERG  <wl@gnu.org>
12073         Add a new request `.psbb'.  This does exactly what the external
12074         program psbb did.  It scans a PostScript image file for a
12075         %%BoundingBox comment and extracts the bounding box values (in
12076         PostScript units) which are then stored in the four new (read-only)
12077         number registers `llx', `lly', `urx', and `ury'.
12079         This will allow the usage of the .PSPIC macro without worrying
12080         about unsafe behaviour of groff, i.e., it will work without the
12081         `-U' switch of groff.
12083         * troff/input.cc: Implement it.
12084         * tmac/tmac.pspic: Use it.
12085         * troff/troff.man, grops/grops.man, NEWS: Document it.
12086         * psbb/*, Makefile.in: Remove it since it is no longer needed.
12088         This is bloody C code simply adapted from psbb.c!  Any improvements
12089         welcome.
12091 2000-01-29  Werner LEMBERG  <wl@gnu.org>
12093         * man/groff_font.man: Minor clarifications.
12095         * NEWS: Updated.
12097 2000-01-28  Werner LEMBERG  <wl@gnu.org>
12099         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
12101 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
12103         * man/groff_font.man: Brought up to date regarding tcommand
12104         extensions.
12105         * libgroff/font.cc: Handle everything after `--' as a comment
12106         in the font files.
12107         * devps/*: Added comment delimiter inside devps font files.
12109 2000-01-28  Werner LEMBERG  <wl@gnu.org>
12111         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
12112         \fC...\fP (which now works as expected).
12114         * troff/troff.man: Fix typo.
12116 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
12118         Completed the pass_filenames implementation in troff.
12120         * libdriver/input.cc: Will read the new `F' tcommand.
12121         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
12122         * troff/input.cc: Use it.
12124 2000-01-26  Werner LEMBERG  <wl@gnu.org>
12126         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
12127         font will now be updated even if an invalid font is selected.
12129 2000-01-24  Werner LEMBERG  <wl@gnu.org>
12131         * doc/homepage.ms: Updated for new tmac.arkup.
12133         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
12135         * tmac/tmac.arkup: Cleanup.
12137         Added `\&' to .HTML macro to `leave vertical mode', so to say.
12139         Removed obsolete .LINK macro completely.
12141         The macros .URL, .FTP, and .MAILTO now accept a third argument which
12142         will be immediately appended to the second argument (to be used with
12143         punctuation, for example).
12145         Disabled .CDFTP macro temporarily for security reasons.
12147         * tmac/groff_markup.man: Complete revision for latest changes in
12148         tmac.arkup -- note that it does not yet format correctly with
12149         grohtml :-(
12151 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
12153         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
12154         * devutf8/R.proto: Add mappings for wp, lh, rh.
12155         * devutf8/NOTES: Updated.
12157 2000-01-23  Werner LEMBERG  <wl@gnu.org>
12159         * doc/groff.texinfo: Updated version/copyright info.
12161 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
12163         Added support for two new directives in device descriptions:
12164         `pass_filenames' (to pass the input file name to the output device)
12165         and `use_charnames_in_special' (to support e.g. accented characters
12166         in the `X' request).
12168         * include/font.h, troff/charinfo.h: Declare it.
12170         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
12172         * devhtml/DESC: Use it.
12174         * troff/input.cc: New function encoded_char.
12176         * troff/token.h: Add test for `specialness'.
12178 2000-01-21  Werner LEMBERG  <wl@gnu.org>
12180         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
12181         mistake from the list of files to be installed.
12183 2000-01-18  Werner LEMBERG  <wl@gnu.org>
12185         * README: Added info how to apply patches.
12187 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
12189         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
12191 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
12193         * troff/input.cc: Add support for troffrc-end.
12195         * tbl/main.cc: Altered to issue table-start and table-end special
12196         characters if using the html device.
12198         * devhtml/*: Modified font files to incorporate html encoding of
12199         characters.
12201         * tmac/groff_markup.man: New file documenting tmac.arkup.
12203         * tmac/troffrc-end: New file.  This is invoked after all user
12204         specified macros.  Currently used by the html device to include
12205         tmac.html.  Thus no need for users to specify -mhtml anymore.
12207         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
12208         (MAN7): Add groff_markup.man.
12210         * tmac/tmac.an, tmac/tmac.html: Small html updates.
12212         * tmac/troffrc: tmac.arkup will now be called for the html device.
12214         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
12215         extra device specific information about fonts.
12217         * doc/homepage.ms: New file.  It is an example how an HTML home page
12218         could look like with grohtml.
12220         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
12222 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
12224         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
12225         of Im, Re.
12227         * devutf8/NOTES: Updated.
12229 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
12231         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
12232         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12233         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12234         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12235         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12236         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12237         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12238         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12239         warnings.
12241         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12243 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
12245         grolj4: Paper size will be searched case-insensitively.
12247         * include/lib.h: Add check for strcasecmp().
12248         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12249         * configure.in: Check for strcasecmp().
12251 2000-01-11  Werner LEMBERG  <wl@gnu.org>
12253         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12254         `REVISION'.
12256 2000-01-10  Werner LEMBERG  <wl@gnu.org>
12258         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12259         revision scheme.
12261         Add a new read-only register, `.Y', which contains the groff
12262         revision.
12264         * troff/input.cc (init_input_requests): Define it.
12265         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12266         * doc/groff.texinfo, troff/troff.man: Document it.
12268         * libgroff/Makefile.sub (version.cc): Add definition of
12269         `Version_string[]', consisting of `<major>.<minor>.<revision>'
12270         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12271         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12272         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12273         troff/input.cc, pfbtops/pfbtops.c: Use it.
12275 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
12277         Add a revision scheme to the groff package.
12279         * REVISION: New file.
12280         * libgroff/Makefile.sub (version.cc): Use it to define
12281         `revision_string[]'.
12282         * grops/psrm.cc: Use revision_string (converted to an unsigned
12283         integer) in constructor of resource_manager.
12285 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
12287         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12288         files.
12289         * Makefile.in (DEVDIRS): Add devutf8.
12290         * grotty/tty.cc: Include device.h.
12291         (glyph): Change type of `code' to `unsigned int'.
12292         (tty_printer): New field is_utf8.  Constructor takes device argument.
12293         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12294         (tty_printer::add_char): Change type of first arg to `unsigned int'.
12295         (tty_printer::put_char): New function.
12296         (tty_printer::end_page): Use put_char() instead of ::putchar().
12297         (make_printer): Pass device to tty_printer constructor.
12298         * nroff.sh: Determine default device by calling 'locale'.  As a
12299         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12300         Recognize UTF-8 locales.
12301         * tmac/eqnrc: Recognize utf8 like latin1.
12302         * tmac/troffrc: Device utf8 needs tmac.tty.
12304 2000-01-07  Werner LEMBERG  <wl@gnu.org>
12306         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12308 2000-01-07  Paul Eggert  <eggert@twinsun.com>
12310         Add a new predefined writeable number register, `year',
12311         which contains the current year.
12313         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12314         * tmac/tmac.s: Use it.
12315         * troff/input.cc (init_registers): Initialize it.
12317 2000-01-06  Werner LEMBERG  <wl@gnu.org>
12319         * PROBLEMS: Fixed typo.
12321 2000-01-04  Paul Eggert  <eggert@twinsun.com>
12323         * PROBLEMS: Add Y2k advice for the yr number register.
12325 2000-01-03  Paul Eggert  <eggert@twinsun.com>
12327         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12329 2000-01-02  Werner LEMBERG  <wl@gnu.org>
12331         * tmac/tmac.arkup: Slight modification of macros to provide better
12332         appearance for non-HTML formats.
12334 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
12336         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12337         does not automatically translate to malloc(n) on all OSes
12338         (e.g., SunOS) so do it explicitly.  Also, check the returned
12339         value.
12341 2000-01-01  Werner LEMBERG  <wl@gnu.org>
12343         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
12345         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12346         expects this variable
12348 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
12350         * doc/Makefile: Added instructions to create HTML and text
12351         versions of some files.
12353 1999-12-31  Werner LEMBERG  <wl@gnu.org>
12355         * Updated INSTALL.gen.
12357         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12358         better resp. correctly with non-HTML devices.
12360 Version 1.15 released
12361 =====================
12363 1999-12-28  Werner LEMBERG  <wl@gnu.org>
12365         * NEWS, VERSION: Changed to 1.15
12367 1999-12-27  Paul Eggert  <eggert@twinsun.com>
12369         * nroff/nroff.man: -S is safer, not safe.
12371         * groff/groff.cc (main): Use `safer', not `safe', in variable
12372         names.  This does not change the behavior.
12374         * troff/input.cc (main): Likewise.
12376         * nroff/nroff.sh: Likewise.
12378         * troff/input.cc (prepend_string): New function.
12379         (main): Prepend -msafer, so that we check macro libraries for
12380         safety.
12382         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12384 Version 1.14 released
12385 =====================
12387 1999-12-26  Werner LEMBERG  <wl@gnu.org>
12389         * NEWS, VERSION: Changed to 1.14.
12391 1999-12-24  Werner LEMBERG  <wl@gnu.org>
12393         * refer/refer.cc: Fixing the last fix.
12395 Version 1.13 released
12396 =====================
12398 1999-12-23  Werner LEMBERG  <wl@gnu.org>
12400         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12401         number disappear.
12403         * NEWS: Updated.
12405         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12407         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12408         document conventions, the version number must be a real.
12410 Version 1.12.1 released
12411 =======================
12413 1999-12-22  Werner LEMBERG  <wl@gnu.org>
12415         * VERSION: Changed to 1.12.1.
12417 1999-12-22  Alan Rooks  <arooks@istar.ca>
12419         * refer/refer.cc (do_file): Slight modification to satisfy the
12420         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12421         UnixWare 7.1.
12423 1999-12-20  Werner LEMBERG  <wl@gnu.org>
12425         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12426         notices.
12428         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12429         list of unsafe requests.
12431         * pic/pic.man: Fixed a typo.
12433         * man/groff_out.man: Fixed a typo.
12435 1999-12-18  Werner LEMBERG  <wl@gnu.org>
12437         * Makefile.in: Doc fixes.
12439 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
12441         * groff/groff.cc: Missing `U' option added to getopt().
12443         * troff/troff.man: Missing `U' option added to synopsis.
12445 Version 1.12 released
12446 =====================
12448 1999-12-14  Werner LEMBERG  <wl@gnu.org>
12450         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12451         to the synopsis.
12453         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12454         with the more appropriate terms `safer' and `unsafe'.
12456         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12457         sys_nerr and sys_errlist[].
12459         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12461         * pic/pic.y, pic/pic.cc: Added check for fmod().
12463 1999-12-13  Werner LEMBERG  <wl@gnu.org>
12465         * VERSION: Changed to 1.12.
12467         Here some patches from various sources; most of them taken from
12468         the Debian distribution.
12470         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12471         tmac/Makefile.sub: New files copied directly from the NetBSD
12472         distribution.  Probably, some additional adaptation later on is
12473         necessary...
12475         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12476         of unsafe requests.
12478         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12479         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12480         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
12481         (`-S') is now the default.
12483         * README, NEWS: Updated.
12485 1999-12-09  Werner LEMBERG  <wl@gnu.org>
12487         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12489         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12491 1999-12-06  Werner LEMBERG  <wl@gnu.org>
12493         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12494         grief than relief today.  Additionally, it is against the GNU
12495         coding standards.
12497         * configure: Recreated.
12499 1999-12-05  Werner LEMBERG  <wl@gnu.org>
12501         * configure.in: Added GROFF_LIBM.
12503         * configure: Recreated.
12505         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12506         necessary.
12508         * Makefile.in: Added definition of $(LIBM).
12510         * Makefile.comm (LIBM): Removed.
12512         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12514 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
12516         * doc/Makefile: Added rule for generation pic.html.
12518         (clean): Files produced by grohtml will be removed also.
12520         * doc/pic.ms: Small fix.
12522         * tmac/tmac.html: Fixed suppression of headers.
12524 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
12526         * tmac/tmac.html: Fixing horizontal arrows.
12528         Turning off hyphenation.
12530         * tmac/tmac.an: Improved support for grohtml; better indentation,
12531         no footers/headers.
12533 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
12535         * tmac/tmac.arkup: Added CDFTP macro
12537         * tmac/tmac.html: All headers are turned off for ms, me, and mm
12538         macros.
12540         * tmac/troffrc: Some additions for HTML stuff.
12542 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
12544         * tmac/tmac.html: Small changes.
12546 1999-09-26  Werner LEMBERG  <wl@gnu.org>
12548         * doc/groff.texinfo: Minor fixes.
12550 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
12552         * devhtml/TR: Changed spacewidth to 3.
12554         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12556         * tmac/tmac.html: Moved markup macros to tmap.arkup.
12558         * tmac/tmac.arkup: New file.
12560         * grohtml/ChangeLog: New file.
12562 1999-09-16  Werner LEMBERG  <wl@gnu.org>
12564         * doc/groff.texinfo (Common Features): Added Copying chapter.
12565         Changed format to @smallbook.
12567 1999-09-15  Werner LEMBERG  <wl@gnu.org>
12569         * NEWS: Added info about groff.texinfo.
12571         * doc/groff.texinfo: Will now compile (using texi2dvi) without
12572         warning messages.
12574 1999-09-14  Werner LEMBERG  <wl@gnu.org>
12576         * groff/groff.man: More updates.
12578 1999-09-13  Werner LEMBERG  <wl@gnu.org>
12580         * doc/groff.texinfo: New file.  This manual is still very
12581         rudimentary.  It has been originally contributed by Trent
12582         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12583         additions by me.
12585         * INSTALL: Added information about the `doc' subdir
12587         * troff/troff.man: Minor fixes.
12589         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12590         reordered options.
12592         * troff/input.cc (usage): Added missing `-ffam' to usage message.
12594         * Makefile.in (dist): groff-$(version).tar.gz must be removed
12595         also, otherwise it is included itself in another call of `make
12596         dist'.
12598         * groff/groff.cc (synopsis): Removed superfluous space.
12600         * PROJECTS, PROBLEMS, NEWS: Updated.
12602         * VERSION: Updated to 1.12beta.
12604         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
12606         * README: Updated: Included documentation about CVS repository,
12607         mailing lists, and daily snapshots.
12609         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12611 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
12613         * tmac/tmac.an: If the tag didn't fit into the space that the
12614         macro `TP' specifies, the rest of the tag went into the space for
12615         the next line.
12617 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
12619         * grolj4/lj4.cc: Added duplex printing (option `-d').
12621         * grolj4/grolj4.man: Document duplex printing.
12623 1999-09-12  Werner LEMBERG  <wl@gnu.org>
12625         * doc/Makefile (pic.ps): Fixed rule which caused problems with
12626         non-GNUish sed programs.
12628         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12629         definition.
12631         * configure.in (LIBS): Added `-lc'
12633         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12635         * pic/tex.cc (solid_arc): Casting M_PI to double.
12637         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12639         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12640         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12641         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12643         * groff/groff_man.man: New file.  This manual page was originally
12644         written for the Debian GNU/Linux system by Susan G. Kleinmann
12645         <sgk@debian.org>.
12647         * eqn/list.cc (list_box::compute_metrics,
12648         list_box::compute_sublist_width): Removed variable declaration to
12649         avoid shadowing warnings.
12651         * grops/psrm.cc (resource_manager::process_file): Ditto.
12653         * tfmtodit/tfmtodit.cc (main): Ditto.
12655         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12656         to avoid shadowing warnings.
12658         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12659         shadowing loop variable.
12661         * groff/groff.man, troff/troff.man: Added doc about grohtml.
12663 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
12665         New grohtml frontend to convert groff input to html.
12667         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12669         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12671         * tmac/eqnrc: Added html device.
12673         * tmac/tmac.html: New file.
12675         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12676         (troff_output::start_picture, troff_output::finish_picture),
12677         tbl/main.cc (process_input_file):
12678         Surrounded output with `graphics_start' and `graphics_end' so that
12679         the html driver can identify non-text portions.
12681         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12682         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12683         grotty/tty.ps (tty_printer::set_char): Additional parameter
12684         `name'.
12686         * include/printer.h: Class printer: New function
12687         set_char_and_width; new variables (is_char_named, is_named_set,
12688         named_command, named_char_s, named_char_n) to hold information
12689         about named characters -- needed by the html driver.
12691         * libdriver/printer.cc (printer::set_ascii_char,
12692         printer::set_special_char): Use set_char_and_width.
12694         * devhtml/*: New device files for html driver.
12696         * grohtml/*: New driver grohtml.
12698 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
12700         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12701         default strings.
12703 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
12705         * libgroff/string.cc (search): Small fix to test against NULL
12706         pointer.
12708 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
12710         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12711         \b'abc') were stacked in reverse order when processed in a
12712         diversion.
12714         * troff/node.h: Added `*last' to struct `node' to make the above
12715         fix work.
12717         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12718         The default scale for the 'f' and 't' graphics functions were 'm'
12719         rather than 'u' (i.e., no scaling).
12721 1999-09-11  Peter Miller  <peterm@jna.com.au>
12723         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12724         do_file), soelim/soelim.man: Added `-I file' option to soelim,
12725         defining include paths.
12727         * soelim/soelim.cc (include_path_append): New function.
12729 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
12731         * tbl/main.cc (process_options): Unix (at least Documenter's
12732         Workbench) tbl allows arbitrary non-alpha characters between
12733         options.
12735 1999-09-11  Paul Eggert  <eggert@twinsun.com>
12737         Y2k fixes.  Don't assume that the current year precedes 2000.
12739         * doc/meref.me: Add \n(y2, \n(y4.
12741         * tmac/doc-common (Yr): New number register.
12742         (Dd): Don't assume current year precedes 2000.
12744         * tmac/tmac.e (td): Likewise.
12745         (y2, y4): New number registers.
12747         * pic/pic.man: Update reference for pic paper to May, 1991
12748         version.
12750 1999-09-11  Werner LEMBERG  <wl@gnu.org>
12752         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12753         Removed quotation marks which prevented correct expansion of
12754         $(tmac_wrap).
12756         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12758 1999-09-10  Werner LEMBERG  <wl@gnu.org>
12760         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12761         `config.cache'.
12763         * Removed configure.old.
12765 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12767         * VERSION: Updated to 1.11.1
12769 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12771         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12773         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12774         added quotations around $(tmac_wrap) to avoid syntax error if
12775         variable is empty.
12777         * configure: Newly generated using autoconf 2.13.
12779         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12781 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12783         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12784         doc/Makefile. doc/pic.ms, groff/groff.man:
12785         Prepare for 1.11 release.  No code changes.
12786         Documentation for pic added (doc/pic.ms).
12788 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12790         * Version 1.10 released.
12792 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12794         * afmtodit/afmtodit.pl: Avoid comment on first line.
12796 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12798         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12799         * configure.in: Call it.
12801         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12802         (distfiles): Doesn't depend on config.log or config.cache.
12804 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12806         * grog/grog.sh: Use print "" rather than print in END rule.
12808 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12810         * tbl/main.cc (process_data): Don't give error for excess data
12811         entries that are comments.
12813 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12815         * tbl/main.cc (process_data): Fix case where new for-scope rules
12816         silently change meaning of code.
12818 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12820         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12821         of non-zero hyphenation codes.
12823 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12825         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12827 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12829         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12831 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12833         * tmac/tmac.andoc: Make it work in compatibility mode.
12835         * refer/token.h (token_info::is_range_sep): New function.
12836         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12837         * refer/ref.cc (reference::output): More sophisticated check for
12838         multiple pages.
12840         * devps/prologue.ps (MANUAL): New procedure.
12841         * grops/ps.cc (main): New -m option.
12842         (usage): Include -m.
12843         (ps_printer::~ps_printer): Implement -m.
12845         * aclocal.m4 (GROFF_G): New macro.
12846         * configure.in: Call it.
12847         * Makefile.in (g): Provided by configure.
12849         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12851         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12852         translations.
12854         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12855         (tmac_m, tmac_s): Deleted.
12856         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12857         tmac_s_prefix): New variables.
12858         (MDEFINES): Change accordingly.
12859         * Makefile.comm (.man.n): Use new TMAC_* variables.
12860         * configure.in (GROFF_TMAC): Call.
12861         * aclocal.m4 (GROFF_TMAC): Define.
12862         * tmac/Makefile.sub (stamp_wrap): New target.
12863         (install_data, uninstall_sub): Handle macro wrapping.
12865 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12867         * tbl/main.cc (main): Ignore -T option.
12869 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12871         * devlj4/generate/special.map: Add definition of \(nb.
12873         * tmac/tmac.dvi: Add definition of \(nb.
12875         * troff/dictionary.c (dictionary::dictionary): association::v gets
12876         initialized by association::association.
12878         * tmac/Makefile.sub: Avoid using temporary files when installing.
12880         * troff/env.cc (environment::set_font): Make bad font number a
12881         warning.
12883         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12885         * Makefile.in (datadir): Use share rather than lib.
12887         * groff/groff.cc (basename): Rename to xbasename.
12889 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12891         * Makefile (CCLIBS): Don't use.
12892         * Makefile.ccpg: Likewise.
12894         * acgroff.m4: Rename to...
12895         * aclocal.m4: Modify extensively for autoconf 2.
12896         * configure.in: Likewise.
12897         * Makefile.in: Likewise.
12899         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12900         defined.
12901         (xstrsignal): Check for definition of NSIG. Conditionalize
12902         on SYS_SIGLIST_DECLARED.  Make return type const.
12904 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12906         * troff/input.cc (interpolate_macro): Rephrase missing space
12907         warning.
12909 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12911         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12912         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12913         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12914         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12915         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12916         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12917         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12918         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12919         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12920         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12921         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12922         Fix 'for' scoping.
12924 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12926         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12927         string_iterator.
12928         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12929         file.
12930         (macro_iterator::macro_iterator): Add additional argument.
12932 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12934         * troff/div.cc (vertical_size::vertical_size): In place of integer
12935         specifying line spacing use cunits specifying post vertical
12936         space.
12937         (macro_diversion::output, top_level_diversion::output): Likewise.
12938         * troff/div.h: Change declarations accordingly.
12939         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12940         field.
12941         (pending_output_line::pending_output_line,
12942         pending_output_line::output, environment::output,
12943         environment::output_line, environment::output_title,
12944         environment::hyphenate_line):  In place of
12945         integer specifying line spacing use cunits specifying post vertical
12946         space.
12947         (environment::environment): Add post_vertical_spacing and
12948         prev_post_vertical_spacing arguments.
12949         (environment::get_post_vertical_spacing): New function.
12950         (environment::total_post_vertical_spacing): New function.
12951         (environment::post_vertical_spacing): New function.
12952         (init_env_requests): Initialize pvs request and .pvs register.
12953         * troff/env.h: Change declarations.
12955 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12957         * tmac/tmac.pspic: Immediately remove the temporary file.
12959 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12961         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12962         height is specified.
12964 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12966         * tbl/table.c (struct vertical rule, class table_entry): Use int
12967         not short for start_row and end_row.
12969 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12971         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12972         functions.
12973         (diverted_space_node::reread, process_input_stack): Call
12974         trapping_blank_line() rather than blank_line().
12975         (init_input_requests): Bind "blm" to blank_line_macro().
12977         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12979 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12981         * troff/env.cc (environment::possibly_break_line): Require that
12982         width total excluding width of final space node be greater than
12983         the target text length.
12985 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12987         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12989 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12991         * troff/node.cc (charinfo_node): New class.
12992         (glyph_node, composite_node): Derive from charinfo_node.  Change
12993         member functions accordingly.
12995 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12997         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12999 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
13001         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
13003         * devps/generate/textmap (notsubset): Add.
13005         * tmac/tmac.a4: New file.
13007 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
13009         * pic/main.cc (had_parse_error): New variable.
13010         (do_picture, do_whole_file): Set had_parse_error if yyparse()
13011         returns non-zero.
13012         (main): Return 1 if had_parse_error is true.
13014 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
13016         * grolj4/lj4.cc (main): Avoid use of strtoul.
13018 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
13020         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
13021         iso_8859_1 or $LESSCHARSET is latin1.
13023 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
13025         * hpftodit: New directory.
13026         * Makefile.in (CCPROGDIRS): Add hpftodit.
13027         * devlj4/generate: New directory.
13029 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
13031         * configure.in: Don't use AC_VFORK.
13032         * groff/pipeline.c (run_pipeline): Use fork() always.
13034 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
13036         * grops/ps.cc (main): Use %1 not %s in error message for -w.
13038         * Makefile.in (CCPROGDIRS): Add grolj4.
13039         (DEVDIRS): Add devlj4.
13040         * grolj4, devlj4: New directories.
13041         * tmac/troffrc: Handle lj4.
13042         * tmac/tmac.lj4: New file.
13044 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
13046         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
13048 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
13050         * troff/input.cc (do_if_request): At end of second string, switch
13051         environments before getting next token.
13053 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
13055         * devps/psstrip.sed: Split rule that strips whitespace on either
13056         side of delimiters.
13058 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
13060         * troff/node.h (font_family::make_definition): Add return value to
13061         declaration.  * troff/symbol.h (symbol::operator==,
13062         symbol::operator!=): Likewise.
13064 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
13066         * groff/groff.cc (main, help, synopsis): Handle -S.
13067         (possible_command::insert_arg): New function.
13069         * tmac/tmac.safer: New file.
13070         * tmac/msafer.man: New file.
13071         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
13073 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
13075         * pic/pic.h, pic/main.cc (safer_flag): New variable.
13076         * pic/pic.y (placeless_element): Avoid unsafe operations if
13077         `safer_flag' is set.
13078         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
13080 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
13082         * eqn/lex.cc (get_token): Put call to add_context() in block to
13083         work around Sun C++ 4.0 bug.
13085         * include/stringclass.h (operator +): Use ?: instead of `if' to
13086         work around Sun C++ 4.0 bug.
13088 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
13090         * tbl/main.cc (process_format): Accept - as a synonym for the _
13091         key letter.
13093         * libbib/index.cc (minus_one): Don't declare as const.
13095 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
13097         * troff/input.cc (get_char_for_escape_name): Push back a newline.
13099 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
13101         * troff/input.cc (write_macro_request): New function.
13102         (init_input_requests): Bind write_macro_request to writem.
13104 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
13106         * tmac/tmac.s (@EN): Turn filling back on even if there was no
13107         equation.
13109         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
13111         * tmac/tmac.s (@TS): Renamed from TS.
13112         (TS): Call LP then TS again.
13113         (cov*ab-init): Alias @TS to TS.
13115         * tmac/tmac.s: Allow QP or RS to initialize.
13117         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
13118         Move initializations of PS and LL here.
13119         (par@init): Don't initialize HY.  Avoid changing environment 0.
13120         (par*env-init): Don't all par@reset.
13122 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
13124         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
13126 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
13128         * Makefile.in (MDEFINES): Add LDFLAGS.
13129         (LDFLAGS): Add definition line.
13131 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
13133         * troff/input.cc (get_optional_char): Split off error check into...
13134         (check_missing_character): New function.
13135         * troff/token.h: Declare it.
13136         * troff/env.cc (margin_character): Don't call get_optional_char.
13137         Only call tok.next() after making the node.
13139         * include/lib.h (getopt): Make 2nd argument char *const *.
13141 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
13143         * nroff/conftest.sh: Deleted.
13145 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
13147         * pic/make-dos-dist: Deleted.
13149 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
13151         * devps/psstrip.sed: Strip comments before stripping trailing
13152         white space.
13154 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
13156         * Version 1.09 released.
13158 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
13160         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
13162 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
13164         * libgroff/font.cc (font::load_desc): Fix typo in error message.
13166 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
13168         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
13169         about returning without a value.
13171         * troff/charinfo.h (charinfo::get_special_translation): Cast
13172         TRANSLATE_NONE to int.
13174         * refer/token.cc (lookup_token, store_token): Remove bogus loop
13175         test.  Fix test so that it works with n unsigned.
13177         * pic/pic.y (defaults_table): Fully bracket initializer.
13178         * pic/lex.cc (lookup_keyword): Likewise.
13179         * eqn/lex.cc (token_table, def_table): Likewise.
13180         * eqn/box.cc (param_table): Likewise.
13181         * troff/input.cc (warning_table): Likewise.
13182         * libgroff/font.cc (table): Likewise.
13183         * grops/ps.cc (ps_printer::special): Likewise.
13184         * grops/psrm.cc (resource_manager::process_file): Likewise.
13185         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
13186         * refer/command.cc (command_table): Likewise.
13187         * addftinfo/addftinfo.cc (param_table): Likewise.
13189         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
13190         about temp's being unused.
13191         (unused): New function.
13193         * groff/pipeline.cc: Declare c_fatal.
13195         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
13196         uchar.
13198         * libbib/index.cc (index_search_item::load): Prevent compiler
13199         warnings about fd_closer's being unused.
13200         (unused): New function.
13202 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
13204         * troff/input.cc (copy_mode_error): Make `prefix' static.
13205         Fix typo.
13207         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
13208         defined.
13209         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
13210         HAVE_CC_OSFCN_H and modify accordingly.
13212         * troff/input.cc (init_charset_table): radicalex overlaps
13213         horizontally.
13215         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
13216         udodo!hans@relay.NL.net).
13217         * groff/configure.in: Call it.
13219         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
13220         * groff/configure.in: Call it.
13221         * include/lib.h: Conditionalize declaration of pclose.
13223         * troff/div.cc (last_page_number): New global variable.
13224         (top_level_diversion::begin_page): Exit if we just printed the
13225         last page.
13226         * troff/div.h (last_page_number): Declare it.
13227         * troff/input.cc (parse_output_page_list): Set last_page_number.
13229         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
13230         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
13231         tmac/tmac.X: Likewise.
13232         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13233         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13235 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
13237         * tmac/doc-ditroff (hK): Remove groff specific code which
13238         prevented page-breaks between separate manual entries.  If this is
13239         the first page, don't set the page number to 1.
13241         * acgroff.m4 (GROFF_POSIX): New macro.
13242         * configure.in: Use it.
13244         * troff/node.cc (class real_output_file,
13245         real_output_file::real_output_file,
13246         real_output_file::~real_output_file): Conditionalize use of
13247         popen/pclose on POPEN_MISSING.
13248         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13249         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13250         (pipe_source): Similarily.
13252         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13254         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13255         presence of declarations by trying to compile example with
13256         conflicting declarations.  (gcc only gives a warning for missing
13257         declarations.)
13259 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
13261         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13262         (from Ulrich Lauther).
13264 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
13266         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13268 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
13270         * indxbib/indxbib.cc (write_hash_table): Add code for case where
13271         pointers and ints have different sizes.
13273 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
13275         * tmac/tmac.s (par*env-init): Call par@reset.
13277 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
13279         * tmac/tmac.s (@IP): Switch to a new environment when diverting
13280         tag.
13281         (par*push-tag-env, par*pop-tag-env): New macros.
13283 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
13285         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13286         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
13288         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13289         comment.  Include <time.h>.
13291 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
13293         * grops/ps.cc (is_small_h, is_small_v): Deleted.
13294         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13295         lines.
13297 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
13299         * troff/input.cc (read_request): Only print a prompt if reading
13300         from the terminal.  Also clearerr on EOF if reading from the
13301         terminal.  Declare isatty.
13303 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
13305         * refer/label.y: Rename map_t to map_func and extractor_t to
13306         extractor_func.
13308 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
13310         * include/assert.h: Don't use volatile.
13311         * libgroff/assert.cc: Likewise.
13313 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
13315         * troff/input.cc (abort_request): Look at character in tok before
13316         calling get_copy().
13318 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
13320         * troff/troff.h (NO_RETURN): Deleted.
13321         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
13322         * troff/input.cc (exit_troff): Likewise
13324         * Makefile.in: Remove `Making ...' messages since GNU make now
13325         gives these. 
13327         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13329 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
13331         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13332         to constant 1 inch.
13334 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
13336         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13338 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
13340         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13341         MARK_REG if there was no left delimiter.
13343 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
13345         * pic/troff.cc (troff_output::text): Set line thickness to
13346         relative before outputting text.
13348         * tmac/tmac.e (@k): Don't zero ?T.
13349         ((z): Likewise.
13351 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
13353         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13355 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
13357         * troff/input.cc (decode_args): Warn about unquoted tabs (from
13358         Paul Eggert).
13360 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
13362         * troff/input.cc (ignoring): New variable.
13363         (ignore): Set ignoring during call to do_define_macro.
13364         (do_define_macro): Clear ignoring before interpolating terminating
13365         macro.
13366         (copy_mode_error): New function.
13367         (get_char_for_escape_name, read_long_escape_name,
13368         interpolate_arg): Use copy_mode_error.
13369         (warning_table): Add WARN_IG.
13370         * troff/troff.h (WARN_IG): Declare.
13371         (WARN_TOTAL): Change accordingly.
13373         * groff/pipeline.c (strsignal): Rename to xstrsignal.
13374         * groff/groff.cc (strsignal): Delete declaration.
13376 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
13378         * troff/div.cc (page_offset): Use 'm' as default scaling.
13380 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
13382         * nroff/nroff.sh: Ignore -u.
13384 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
13386         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13388 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
13390         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13391         drawing box.
13392         (B2): With -Tascii, leave additional vertical space before
13393         and after. Ensure that the left and right indent is restored to
13394         what it was even if the point size changes.  Don't call
13395         par@finish. Change the indent, line length and title length
13396         directly.  With -Tascii, make the width of the box 1n less.
13397         (B1): Remember 1n at the current point size.  Don't call
13398         par@reset.  Change the indent, line length and title length
13399         directly.  Ensure that the temporary indent is preserved.
13400         (par*box-mark-top): Turn off no spacing mode.
13402 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
13404         * Makefile.in (dist): Use .gz suffix.
13406 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
13408         * troff/input.cc (main): Add return 0.
13409         * pic/main.cc (main): Use return instead of exit.
13410         * tbl/main.cc (main): Likewise.
13411         * eqn/main.cc (main): Likewise.
13412         * grops/ps.cc (main): Likewise.
13413         * grotty/tty.cc (main): Likewise.
13414         * groff/groff.cc (main): Likewise.
13415         * grodvi/dvi.cc (main): Likewise.
13416         * refer/refer.cc (main): Likewise.
13417         * indxbib/indxbib.cc (main): Likewise.
13418         * lkbib/lkbib.cc (main): Likewise.
13419         * soelim/soelim.cc (main): Likewise.
13420         * addftinfo/addftinfo.cc (main): Likewise.
13421         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13422         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13424         * troff/token.h (process_input_stack): Don't declare as static.
13425         * troff/input.cc: Likewise.
13427         * troff/node.c (invalidate_fontno): Make it a static member of
13428         class font_family.  Change callers.
13429         * troff/node.c: Change declaration.
13431         * tbl/main.cc (struct input_entry_format): Add explicit public
13432         specifier.
13433         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13434         struct double_hline_stuff): Likewise.
13435         * tbl/table.h (struct entry_format): Likewise.
13436         * pic/object.h (struct saved_state): Likewise.
13438         * include/stringclass.h: Add forward declarations of friend
13439         functions that are later declared as inline.  Don't include inline
13440         specifier in friend declaration.
13442         * libgroff/lib.h: Declare popen and pclose.
13443         * acgroff.m4 (GROFF_POPEN): New macro.
13444         * configure.in: Call it.
13446         * include/lib.h (PI): New constant. Undef first if necessary.
13447         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13448         * grops/ps.cc (degrees, radians): Likewise.
13449         * libgroff/font.cc (font::get_skew): Likewise.
13451         * grops/ps.cc (is_ascii): New function.
13452         (ps_output::put_string): Use is_ascii.  Use csprint rather than
13453         isprint.
13454         (ps_printer::define_encoding): Use csspace.
13455         * libgroff/strtol.c (ISASCII): New macro.
13456         (strtol): Cast arguments to is*() and tolower() to unsigned char.
13457         Use ISASCII rather than isascii.
13458         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13459         * libgroff/cset.cc: Likewise.
13460         * libdriver/input.cc: Include cset.h.
13461         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13462         than isdigit().
13464         * refer/refer.cc (main): Use %ld rather than %d for longs.
13466         * libbib/index.cc (index_search_item_iterator::get_tag): Use
13467         S_ISREG macro.
13469         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13471 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
13473         * troff/input.cc (hyphenation_code): Skip white space between
13474         char/code pairs.
13476 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
13478         * tbl/table.h (table::entry_list_tailp): New member.
13479         (table::table): Initialize it.
13480         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13481         behaviour.
13483 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
13485         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13486         with negative horizontal positions. Remove casts of glyph::hpos to
13487         int.
13488         (USHRT_MAX): Delete definition.
13489         (SHRT_MAX, SHRT_MIN): New definitions.
13490         (glyph::hpos): Change type to short.
13491         (tty_printer::end_page): Output multiple backspaces if necessary.
13492          Remove casts of glyph::hpos to int.
13493         
13494 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
13496         * tmac/tmac.s (@RT): New definition.
13498 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
13500         * refer/refer.cc (do_file): Make sure current_filename is set when
13501         filename is "-".
13503         * pic/common.cc (common_output::dot_line): Handle zero length
13504         lines.
13506 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
13508         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13509         (par@init): Initialize \n[HY].
13511 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
13513         * troff/dictionary.cc (dictionary::remove): Continue when
13514         r < j < i.
13516 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
13518         * Makefile.com (.y.cc): Avoid ending up with two versions of
13519         $(YTABH).
13521 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
13523         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13524         (\(,C): Likewise.  Also fix typo.
13526 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
13528         * lib.h: Delete extraneous semi-colon.
13530         * Add pso request: `so' from a pipe.
13531         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13532         (file_iterator::close): New function.
13533         (file_iterator::~file_iterator, file_iterator::next_file): Use
13534         file_iterator::close.
13535         (file_iterator::backtrace): Say `process' rather than `file' when
13536         the stream is popened.
13537         (pipe_source): New function.
13538         (init_input_requests): Bind ".pso" to pipe_source.
13540 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
13542         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13544         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
13545         digits in lower case.
13547 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
13549         * Version 1.08 released.
13551         * Makefile.in (dist): Insert || true after ln -s commands that
13552         might fail.
13554         * mm: Update to mm 1.16.
13556         * acgroff.m4 (GROFF_CSH_HACK): New macro.
13557         * configure.in: Call GROFF_CSH_HACK.  Substitute for
13558         SH_SCRIPT_SED_CMD.
13559         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
13560         MDEFINES.
13561         * nroff/Makefile.sub (nroff): New target.
13562         (install_data): Install nroff.
13563         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13564         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13566 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
13568         * eqn/Makefile.sub (neqn): Add chmod +x.
13570         * grog/Makefile.sub (grog): Remove spurious semi-colon.
13572 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
13574         * troff/input.cc (string_iterator::string_iterator()): Initialize
13575         lineno and count.
13577 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
13579         * troff/div.cc (macro_diversion::space,
13580         top_level_diversion::space): Don't set high_water_mark.
13581         (macro_diversion::output, top_level_diversion::output): Don't
13582         include post line space in high water mark.
13584 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
13586         * eqn/eqn.y: Don't define YYDEBUG.
13587         * pic/pic.y: Likewise.
13589 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
13591         * tmac/tmac.e ([3): Add space after comma following editors.
13592         Change double spaces to single spaces.
13593         ([4): Change double spaces to single spaces.
13595         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13596         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13597         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13598         after %!PS-Adobe- (for Newsprint).
13600         * troff/div.cc (top_level_diversion::begin_page): When
13601         before_first_page is 1, set page_number to 1.
13603 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
13605         * eqn/box.cc (box::top_level): Protect equation with \&.
13607 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
13609         * groff/groff.cc (possible_command::set_name): Delete old name.
13611         * groff/groff.cc (possible_command::~possible_command): Use
13612         a_delete.
13614         * troff/node.cc (troff_output_file::begun_page): New member.
13615         (troff_output_file::troff_output_file): Initialize it.
13616         (troff_output_file::really_begin_page): Only output V command if a
13617         page has been begun.
13619         * pic/pic.y (placeless_element): Delete argument to PRINT after
13620         use.
13622 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
13624         * Make wrapman work.
13625         * troff/div.h (class top_level_diversion): Replace
13626         first_page_begun by before_first_page (with opposite sense).
13627         * Change first_page_begun to before_first_page inverting sense.
13628         * troff/div.cc (class nl_reg): New class.
13629         (init_div_requests): Use class nl_reg for \n(nl.
13630         (top_level_diversion::begin_page): Don't call
13631         output_file::begin_page if before_first_page is 2;
13632         reset before_first_page afterwards.  If have_next_page_number is
13633         false, then always increment page_number.
13634         * tmac/tmac.an: Set traps within TH rather than at the top-level.
13635         Restore compatibility mode after loading, and then disable
13636         compatibility mode in TH.
13638 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
13640         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13641         past last line.
13642         * troff/node.h (output_file::trailer): Declare.
13643         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13644         * troff/node.cc (output_file::trailer): New function.
13645         (troff_output_file::~troff_output_file): Move most code into...
13646         (troff_output_file::trailer): New function.
13647         (class troff_output_file): Delete page_length member. Declare
13648         trailer().
13649         (troff_output_file::really_begin_page): Use current page length
13650         for final V command.
13652         * tbl/main.cc (struct options): New decimal_point_char member.
13653         (options::options): Initialize this.
13654         (process_options): Implement decimalpoint option.
13655         (process_data): Pass decimal_point_char option to table::table.
13656         * tbl/table.h (class table): New decimal_point_char member.
13657         (table::table): Add additional argument.
13658         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13659         second argument specifying decimal point character.  Use this
13660         instead of '.'.
13661         (table::table): Initialize decimal_point_char.
13662         (table::add_entry): Change call to find_dot.
13664         * troff/input.cc (get_copy, token::next): Implement \V.
13665         (interpolate_environment_variable): New function.
13667 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
13669         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13670         * pic/pic.y: Likewise.
13672         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13673         Add casts to int.
13674         * refer/ref.cc (reference::insert_field, reference::delete_field):
13675         Likewise.
13676         * troff/number.cc (parse_term): Likewise.
13678         * acgroff.m4 (GROFF_PROG_YACC): New macro.
13679         * configure.in: Use GROFF_PROG_YACC.
13681         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13682         and g++.
13683         * Makefile.in (OPTIMIZE): New define.
13684         (DEBUG): Empty by default.
13685         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13687         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13688         (GROFF_ARRAY_DELETE): Likewise.
13689         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13691         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13693         * devps/psstrip.sed: Use different delimiter on last line (so that
13694         it works with BSD 4.4 sed.)
13696 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
13698         * devps/psstrip.sed: Delete comments.
13700         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13701         optind, opterr, optarg.
13702         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13703         opterr, optarg.
13705 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
13707         * Makefile.in (check): Dummy target.
13709 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
13711         * Version 1.07 released.
13713         * Integrate mm 1.11.
13715         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13716         where start_col was meant.
13718 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
13720         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13722 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
13724         * troff/input.cc (token::next): Make \z\o'...' and similar things
13725         work.
13727         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13728         constants.
13729         (environment): Add margin_character_flags member.
13730         * env.cc (environment::environment(symbol),
13731         environment::environment(const environment *): Initialize
13732         margin_character_flags.
13733         (margin_character): Rewrite.
13734         (environment::output_line): Add a margin character if
13735         margin_character_flags is non-zero.  Turn off the
13736         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
13737         zero, use margin_character_node without copying and then set
13738         margin_character_node to 0.
13740         * devps/DESC.in: Change minimum size to 1000.
13742 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
13744         * troff/symbol.h (symbol::hash): Change return type to unsigned
13745         long.
13746         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13747         Add casts to int.
13749         * test-groff: Use -r rather than -x.
13751         * grops/psfig.diff: Include in distribution again.
13753 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
13755         * Makefile.in (dist): Use gzip.
13757 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
13759         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13760         unistd.h as well as in stdlib.h.
13761         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13762         defined; otherwise include <sys/types.h> and <unistd.h> if
13763         UNISTD_H_DECLARES_GETOPT is defined.
13765         * configure.in: use builtin(include, ... rather than include(...
13766         * configure: Regenerate with autoconf 1.3.
13768         * libdriver/print.cc (printer::adjust_arc_center): Use new
13769         algorithm suggested by Andy Fyfe.
13771         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13772         * include/printer.h: Declare this.
13773         * grops/ps.cc (ps_printer::draw): Use it.
13774         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13776 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13778         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13780 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13782         * eqn/main.cc (main): Handle "eqn -".
13784 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13786         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13788         * mm: Integrate version 1.08.
13790         * pic/troff.cc (troff_output::finish_picture): Set
13791         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13792         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13793         if it's not defined. Check whether the register is non-zero rather
13794         than whether it's not defined.
13795         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13797         * indxbib/indxbib.cc: Move all signal handling into...
13798         * indxbib/signal.c: New file.
13799         * configure.in: Call AC_RETSIGTYPE.
13801         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13802         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13803         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13805         * troff/input.cc (token::token, token::operator=): Work round SGI
13806         C++ bug.
13807         * pic/object.cc (position::position): Likewise.
13809 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13811         * pic/pic.h: Move declaration of hypot().
13813 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13815         * pic/pic.h: Declare hypot().
13817         * pic/pic.h: Define M_PI if necessary.
13819 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13821         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13822         `.ta T' feature.
13824         * devps/prologue.ps (RE): Handle the possibility that the old font
13825         doesn't have a FontName entry.
13827 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13829         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13830         (@C): Use @fam not fam.
13832 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13834         * lookbib/lookbib.cc (main): Change type of start to const char *.
13835         * lkbib/lkbib.cc (main): Likewise.
13837         * eqn/lex.cc (definition::definition): Don't use member
13838         initializer syntax for members of anonymous unions.
13840         * troff/input.cc (input_stack::backtrace): Change type of to const
13841         char *.
13843 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13845         * include/stringclass.h (class string): Declare inline friend
13846         functions as inline in class declaration.
13847         * troff/hvunits.h (class hunits, class vunits): Likewise.
13848         * include/refid.h (class reference_id): Likewise
13849         * troff/troff.h (points_to_units(units), scale(units, double)):
13850         Delete declarations.
13851         * libdriver/input.cc (get_char): Delete declaration.
13852         * include/lib.h: Change 2nd argument of getopt from const char **
13853         to char **.
13854         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13855         char **' before assigning to a `const char **'.
13856         * tbl/table.cc: Delete extra declarations of prints().
13858 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13860         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13861         char **' before assigning to a `const char **'.
13863         * libgroff/errarg.cc (errarg::errarg): Don't use member
13864         initializer syntax for members of anonymous unions.
13866 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13868         * mm: Integrate version 1.07.
13870 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13872         * troff/input.c (translate2): Rename to
13873         (translate_no_transparent).
13874         (init_input_requests): Rename tr2 to trnt.
13876 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13878         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13879         (charinfo::set_translation, charinfo::set_special_translation):
13880         Add second argument that specifies value for
13881         transparent_translate.
13882         (charinfo::get_translation, charinfo::get_special_translation):
13883         Add optional second argument that specifies whether translation is
13884         being used for transparent throughput.
13885         * troff/input.cc (charinfo::set_translation,
13886         charinfo::set_special_translation): Handle second argument.
13887         (charinfo::charinfo): Initialize transparent_translate.
13888         (translate): Split main part off into
13889         (do_translate): New function.  Pass argument saying whether
13890         translation applies to transparent throughput.
13891         (translate2): New request.
13892         (init_input_requests): Bind translate2 to `tr2'.
13894 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13896         * tbl/table.h (class table): Add `nokeep' flag.
13897         * tbl/main.cc (process_options): Handle `nokeep' option.
13898         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13899         table::do_bottom): Don't output keep/release macro definitions or
13900         calls when `nokeep' option has been specified.
13902 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13904         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13906 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13908         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13909         block_entry::divert, alphabetic_block_entry::divert): Add extra
13910         argument giving column separation.
13911         (table::compute_widths): Pass column separation to
13912         table_entry::divert().
13913         (block_entry::do_divert): If an entry spans multiple columns and a
13914         minimumum width has been specified for each column, then set the
13915         line length to the sum of the widths (plus possibly the column
13916         separations).
13918         * troff/input.cc (set_escape_char): Don't set the escape_char
13919         until after calling has_arg().
13921 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13923         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13924         case.
13926         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13927         in case where r > nrows - 1.
13929         * tbl/table.cc (BODY_HEIGHT): Deleted.
13930         (LINE_SEP): New definition.
13931         (table::print_single_hline, table::print_double_hline,
13932         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13933         table::do_row, table::do_top): Use LINE_SEP space before a line
13934         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13936         * tbl/table.cc (text_entry::print_contents): New function.
13937         (text_string_name, right_text_string_name): Deleted.
13938         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13939         (simple_text_entry::do_width, numeric_text_entry::do_width,
13940         alphabetic_text_entry::do_width): Don't store the contents of the
13941         entry in a string.
13942         (left_text_entry::simple_print, right_text_entry::simple_print,
13943         center_text_entry::simple_print,
13944         alphabetic_text_entry::simple_print,
13945         numeric_text_entry::simple_print): Print the entry directly
13946         instead of using the stored string.
13948 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13950         * devps/Makefile: Strip PostScript files.
13951         * devps/prologue: Rename to...
13952         * devps/prologue.ps.
13953         * devps/psstrip.sed: New file.
13954         * devps/download: Use .pfa rather than .ps for installed versions
13955         of fonts.
13957 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13959         * troff/env.cc (input_trap): Give a warning if the argument is out
13960         of range.
13962         * troff/env.cc (adjust): Treat negative argument as missing. Round
13963         argument > 5 down to 5.
13965         * troff/env.cc (center, right_justify): Make negative argument zero.
13967         * troff/div.cc (page_offset, vertical_position_traps): Treat
13968         invalid argument as missing.
13969         * troff/env.cc (line_spacing, line_length, title_length, indent,
13970         underline, hyphen_line_max_request, control_char,
13971         no_break_control_char, widow_control_request, adjust, input_trap,
13972         point_size): Likewise.
13973         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13974         constant_space): Likewise.
13975         * troff/input.cc (compatible, shift, warn_request,
13976         set_escape_char): Likewise.
13978         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13979         * tbl/table.cc (table::table): Likewise.
13981         * Makefile.dev (install_dev): depends on $(DEVFILES).
13983 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13985         * devX75, devX75-12, devX100, devX100-12: New directories.
13986         * Makefile.in: Add these to DEVDIRS.
13988         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13989         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13990         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13991         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13992         targets.
13993         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13994         (uninstall): New target.
13995         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13996         uninstall_prog, uninstall_dev): New targets.
13998         * troff/div.cc (return_request): Treat an invalid argument as
13999         missing.
14001 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
14003         * tmac/tmac.e ((f): Set up the environment even when there's a
14004         current diversion.  Transperently throughput a call to @N.
14005         (@N): New macro.
14007 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
14009         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
14010         up to vertical resolution.
14012         * tbl/table.cc (table::do_row): Change row number after printing
14013         stuff list.
14015         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
14017 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
14019         * Rename CHANGES to NEWS.
14021 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
14023         * libgroff/new.cc (operator new): Avoid calling malloc(0).
14025 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
14027         * man.ultrix: Removed.
14029 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
14031         * Makefile.comm (extraclean): Delete files whose names begin with
14032         `='.
14034         * pic/troff.cc (troff_output::text): Fix typo in implementation of
14035         aligned text.
14037 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
14039         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
14040         * troff/div.cc (page_length, need_space, space_request): Treat
14041         invalid optional argument as missing.
14042         * troff/env.cc (number_lines): If the first argument is present
14043         but not a number, turn on line numbering, don't change the next
14044         line number and parse the remaining arguments.
14046         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
14048 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
14050         * eqn/box.h: Change declaration accordingly.
14051         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
14052         the specified size was bad but don't give an error.  Check for
14053         overflow.
14054         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
14055         * eqn/lex (do_size): Likewise.
14057 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
14059         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
14060         compatible headers.
14062 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
14064         * tbl/table.cc (table::init_output): Improve error message when
14065         table won't fit on one page.
14067 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
14069         * pic/troff.cc (troff_output::start_picture): Generate line
14070         containing a horizontal motion equal to the width of the picture.
14072         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
14073         using GROFF_COMMAND_PREFIX environment variable.
14075 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
14077         * mdate.sh: Use $NF rather than $(NF).
14079 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
14081         * pic/main.cc (main):  Use %1 not %c in argument to warning.
14083         * eqn/main.cc (main): Output code to check that geqn was given the
14084         correct -T option.
14086 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
14088         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
14089         `ln -s ../Makefile .; make; rm -f Makefile'.
14091         * troff/hyphen: Rename to...
14092         * troff/hyphen.us:
14093         * troff/input.cc (main): Delete -H option. Don't call
14094         read_hyphen_file().
14095         * troff/env.cc: Include searchpath.h and macropath.h.
14096         (exception_dictionary): Deleted.
14097         (ht): Deleted.
14098         (read_hyphen_file): Deleted.
14099         (hyphenation_language): New struct.
14100         (class trie, class hyphen_trie): Move declarations up.
14101         (trie_node::~trie_node): Deleted.
14102         (trie::delete_trie_node): New function.
14103         (trie::do_delete): New pure virtual function.
14104         (hyphen_trie::do_delete): New function.
14105         (trie::~trie): New function.
14106         (hyphen_trie::~hyphen_trie): New function.
14107         (trie::clear): No need to chcek that tp is not 0.
14108         (current_language, language_dictionary): New variables.
14109         (hyphen_word): Give an error if no current language.  Use
14110         exceptions dictionary in current language.
14111         (hyphen_trie::read_patterns_file): Find file using macro_path.
14112         Allow comments (starting with %) in patterns file.  Don't make it
14113         a fatal error if the file can't be found.
14114         (hyphenate): Return if no current language.  Get the exceptions
14115         dictionary and the hyphenation patterns from the current language.
14116         (set_hyphenation_language): New variable.
14117         (hyphenation_patterns_file): New function.
14118         (hyphenation_language_reg): New class.
14119         (hyphenation_language_reg::get_string): New function.
14120         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
14121         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
14122         register.
14123         * groff/groff.cc (main, help, synopsis): Delete -H option.
14124         * include/Makefile.sub: Don't define HYPHENFILE.
14125         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
14126         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
14127         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
14128         hyphenation patterns.
14130 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
14132         * eqn/neqn.sh: New file.
14133         * eqn/Makefile.sub: Handle neqn.sh.
14135         * eqn/eqn.h: Declare `nroff' variable.
14136         * eqn/box.cc (param_table): Add `nroff' param.
14137         (nroff): Define it.
14138         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
14139         variable.
14140         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
14142         * troff/troff.h (WARN_FONT): New warning.
14143         (WARN_TOTAL): Change accordingly.
14144         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
14145         (warning_table): Add WARN_FONT.
14146         * troff/node.cc (mount_font_no_translate): Pass argument to
14147         font::load_font.  If this is non-zero, give a warning.
14148         Don't give an error message when accessing a font that has already
14149         been found to be invalid.
14150         * include/font.h (font::load, font::load_font): Add additional
14151         optional argument which suppresses error message if the font is
14152         not found.
14153         * libgroff/font.cc (font::load_font): Handle additional argument.
14154         (font::load): Add additional argument. If this is non-null, set it
14155         to 1 and don't give error message.
14157         * include/printer.h (printer::end_page): Add argument giving
14158         length of page.
14159         * libdriver/input.cc (do_file): Pass this.
14160         * grops/ps.cc (ps_printer::end_page): Add argument.
14161         * grodvi/dvi.cc (dvi_printer::end_page,
14162         draw_dvi_printer::end_page): Add argument.
14163         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
14164         columns_per_page members. New member nlines.
14165         (DEFAULT_LINES_PER_PAGE): Deleted.
14166         (tty_printer::tty_printer): Don't compute lines_per_page from
14167         font::paperlength. Don't compute columns_per_page from
14168         font::paperwidth.
14169         (tty_printer::add_char): Don't check horizontal position against
14170         columns_per_page. Grow glyphs vector if neccessary.
14171         (tty_printer::end_page): Add argument giving page_length in units.
14172         Discard lines past end of page.
14174 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
14176         * tmac/tmac.tty-char: Fix definition of \(/l.
14178         * tmac/tmac.X: Define \(en.
14180 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
14182         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
14183         lpq, then use lp rather than lpr.
14185         * tmac/tmac.s (par@reset): Don't call `ad'.
14186         (par*env-init): Call `ad'.
14188 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
14190         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
14191         date.
14193         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
14194         * indxbib/indxbib.cc: Likewise.
14196 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
14198         * libgroff/putenv.c: New file.
14199         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
14200         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
14201         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
14202         stdlib.h with AC_HAVE_HEADERS.
14204 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
14206         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
14207         does not exist.
14209 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
14211         * eqn/box.cc (gsize): Make it an int.
14212         (set_gsize): Parse argument handling increment or decrement.
14213         (box::top_level): Convert gsize to a string.
14215         * troff/input.cc (exit_troff): Make buf unsigned char [].
14216         Call to make_temp_iterator casts buf to char*.
14218         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
14220         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
14221         * Makefile.cpg (depend.temp): Likewise.
14223         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
14225         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
14227 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
14229         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
14231 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
14233         * Version 1.06 released.
14235         * Integrate mm 1.04.
14237 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
14239         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14241 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
14243         * afmtodit/afmtodit.pl: Add -n option that disables generation of
14244         ligatures command.
14245         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14246         afmtodit. Regenerate.
14248         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14249         @f back past the current position.
14251         * tmac/tmac.e: Change calls to @R so that comments are not part of
14252         arguments.
14254 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
14256         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14258         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14259         check that we can link a call to a function declared in <stdio.h>.
14260         (GROFF_UNISTD_H): New macro.
14261         * configure.in: Call it.
14262         * Makefile.in: Document it.
14263         * include/posix.h: New file.
14264         * troff/troff.h: Don't include <osfcn.h>
14265         * troff/input.cc: Include posix.h.
14266         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14267         osfcn.h.
14268         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14269         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14270         <fcntl.h>.
14271         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14272         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14273         * libbib/search.cc (O_RDONLY): Delete definition.
14274         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14275         Don't include <osfcn.h>.
14277         * acgroff.m4 (GROFF_TIME_T): New macro.
14278         * configure.in: Call it.
14279         * Makefile.in: Document it.
14281         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14282         * configure.in: Call it.
14283         * Makefile.in: Document -DTRADITIONAL_CPP.
14284         * include/ptable.h: Don't include generic.h.
14285         (name2): Define it.
14287         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14288         Afterwards remove [T1 and [T2.
14289         (ref*spec!0, ref*spec!2): Use T1 rather than T.
14290         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14291         (ref*add-T2): Renamed from ref*add-T.
14292         (ref*add-T1): New macro.
14294 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
14296         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14298         * libbib/index.cc: Include <fcntl.h>.
14299         (O_RDONLY): Define if necessary.
14300         (make_index_search_item, index_search_item_iterator::get_tag,
14301         index_search_item::check_files): Use O_RDONLY.
14302         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14303         (O_RDONLY): Define if necessary.
14304         (search_list::add_file): Use O_RDONLY.
14305         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14306         <sys/stat.h>.
14307         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14308         (main): Use these.
14310         * libbib/index.cc (S_ISREG): Define it if necessary.
14311         (index_search_item::load): Use S_ISREG.
14313         * include/driver.h: Include <errno.h>.
14315 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
14317         * eqn/box.cc (body_height): Increase default value to 85.
14318         (body_depth): Increase default value to 35.
14320 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
14322         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14323         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14324         protected from expansion with \E.
14326         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14328         * Makefile (Makefile): New target.
14330         * Makefile.sub (configure, distfiles): New targets.
14332         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14333         construct.
14335 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
14337         * eqn/box.cc (param_table): Add body_height and body_depth.
14339         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14341 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
14343         * psbb/Makefile.sub: Don't link with libgroff.a.
14345         * acgroff.m4 (GROFF_PUTENV): New macro.
14346         * configure.in: Call GROFF_PUTENV.
14347         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14348         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14349         is defined.
14351         * troff/env.cc (distribute_space): Rename force_forward argument
14352         to force_reverse.  Reverse the list if force_reverse is true.
14354 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
14356         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14358         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14359         height or depth to be negative.  Guard against SUP_RAISE quantity
14360         being negative.
14362 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
14364         * devps/generate/textmap: Add `an' (arrowhorizex).
14365         * tmac/tmac.ps: \(an overlaps horizontally.
14366         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14368         * devps/symbolchars: Add arrowverttp, arrowvertbt.
14369         * devps/textmap: Add arrowvertex.
14370         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14371         updownarrow delimiters.
14372         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14374         * tbl/table.cc (simple_entry::position_vertically,
14375         block_entry::position_vertically):  For a centered entry, perform
14376         the motion in two stages.
14378         * refer/refer.cc (split_punct): Don't call lookup_token if there
14379         is no token.
14381 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
14383         * troff/input.cc (token::next): Delete token_node after copying
14384         token.
14386         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14387         cur_point_size.
14389         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14391         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14393 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
14395         * grops/ps.cc (usage): -b option takes an argument.
14397         * devps/prologue (PLG): New procedure.
14398         * grops/ps.cc (main, usage): New -g option.
14399         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
14400         length using PLG.
14402 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
14404         * include/cset.h: Include <limits.h> if we have it.
14406         * libgroff/illegal.cc: New file.
14407         * include/lib.h (illegal_input_char): Use table.
14408         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14409         * pic/lex.cc (ARG1): Renumber to 14.
14410         * eqn/lex.cc (ARG1): Likewise.
14412         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14413         (eg 1.05.90) correctly.
14415 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
14417         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14418         Rename $r and $R registers to $v and $V.
14419         ($r, $R): Initialize to 0.
14420         (@v, @V): New macros.
14421         (sz): Call @v.
14422         (@M): Call @V.
14424         * troff/input.cc (main, usage): Add -R option that says not to
14425         load troffrc.
14426         * eqn/main.cc (main, usage): Rename -n to -R.
14428 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
14430         * devps/DESC.in: Leave font positions 5-9 blank.
14431         * devdvi/DESC.in: Likewise.
14433         * grog/grog.pl: Handle `.PS <file' correctly.
14435         * troff/input.cc (input_stack::push): Improve error message when
14436         input stack limit exceeded.
14438 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
14440         * refer/refer.cc (main): Fix typo in handling of `a' option.
14442         * refer/refer.cc (do_bib): In state START after a newline remain
14443         in state START.
14445         * groff/groff.sh: Deleted.
14446         * groff/Makefile.sub: Delete handling of groff.sh.
14448         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14449         to determine whether to use \X'ps:...'.
14450         * tmac/troffrc: Set 0p register to 0.
14451         * tmac/tmac.ps: Set 0p register to 1.
14453         * groff/groff.cc: Support -X option. Give warning for -TXps and
14454         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14455         * tmac/troffrc: Support -r.X=1.
14457         * pic/troff.cc (troff_output::dot): Don't test
14458         zero_length_line_flag.
14460 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
14462         * include/lib.h: Declare getopt() and friends unless
14463         STDLIB_H_DECLARES_GETOPT is defined.
14465         * doc/chars.tr: Delete.
14466         * man/groff_char.man: New file.
14468 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
14470         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14471         user has changed register format.
14473 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
14475         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
14476         `postpro' command in DESC file.  Get spooler command from `print'
14477         command in DESC file.  Execute spooler command with /bin/sh.
14479         * groff/groff.cc: Split Unix-specific parts into...
14480         * groff/pipeline.c: New file.
14482         * LICENSE: Delete.
14483         * COPYING: New file.
14484         * all files: Update copyright notices.
14486         * Rearrange files.  Redo Makefiles.  Use autoconf.
14488 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
14490         * troff/input.c (charinfo_to_node_list): Interpret character
14491         definition with escape_char of `\'.
14493 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
14495         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14496         Define INT_DIGITS as big enough for 64-bit integer.
14497         * lib/strtol.c: Don't include lib.h.
14498         * lib/lib.h: Delete ifdef __cplusplus stuff.
14500 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
14502         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
14503         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
14504         get DESC from current directory.
14506 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
14508         * tbl/main.c (main): Always reset the line number when reading
14509         from stdin.
14511         * tbl/table.c (table::print_single_hline, table::print_double_hline,
14512         table::define_bottom_macro, table::do_row, table::do_top): Round
14513         vertical spacing up to vertical resolution.
14515 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
14517         * ps/ps.h (enum resource_type): Avoid comma at end of
14518         enumerator-list.
14519         * dvi/dvi.c (class dvi_printer): Likewise.
14520         * dvi/tfmtodit.c (gf::load): Likewise.
14521         * refer/label.y (struct expression): Likewise.
14522         * refer/refer.c (class label_processing_state): Likewise.
14523         * refer/indxbib.c (do_file): Likewise.
14524         * troff/troff.c (enum warning_type): Likewise.
14525         * tbl/main.c (process_data): Likewise.
14526         * troff/charinfo.h (class charinfo):
14528 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
14530         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
14532 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
14534         * groff.c: Move to new groff subdirectory.
14535         * groff/Makefile: New file.
14536         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14538         * man/mdate.sh: Use ls -L if supported.
14540         * Consolidate all header files produced by gendef into lib/defs.h.
14541         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14542         Don't include path.h.
14543         * lib/Makefile (path.h): Don't generate.
14544         * troff/input.c: Include defs.h. Don't include config.h.
14545         * troff/Makefile (config.h): Don't generate.
14546         * refer/index.h: Don't include suffix.h.
14547         * refer/index.c: Include defs.h.
14548         * refer/indxbib.c: Include defs.h.
14549         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14550         defs.h.
14551         * refer/Makefile (suffix.h, path.h): Don't generate.
14552         * groff.c: Don't include config.h. Include defs.h.
14553         * Makefile (config.h): Don't generate.
14554         (lib/defs.h): Generate.
14555         (topclean): Remove lib/defs.h.
14557 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
14559         * lib/malloc.c, lib/getpagesize.h: Deleted.
14560         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
14561         related stuff.
14562         * lib/Makefile: Delete malloc-related stuff.
14563         * lib/new.c: Workaround COOKIE_BUG if necessary.
14565         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
14566         needed header files directly.
14567         * refer/refer.h: Omit definition of DEFAULT_INDEX.
14568         * Makefile: Include definition of DEFAULT_INDEX in path.h.
14570 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
14572         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14573         argument.
14574         * lib/font (font::load_desc, font::load): Don't split argument of
14575         unknown command.
14576         (font::handle_unknown_font_command): Change type.
14577         * ps/ps.c (ps_font::handle_unknown_font_command,
14578         handle_unknown_desc_command): Change type.
14579         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14581 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
14583         * lib/font.h (font::handle_unknown_font_command): Add file and
14584         line arguments.
14585         * lib/font.c (font::handle_unknown_font_command):
14586         * ps/ps.c (ps_font::handle_unknown_font_command):
14587         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14588         lineno arguments.  Use _with_file_and_line functions for error
14589         reporting.
14591         * lib/fontfile.c (font::unknown_desc_command_handler): New static
14592         data member.
14593         * lib/font.c (font::set_unknown_desc_command_handler): New
14594         function.
14595         (font::load_desc): For unknown commands, call
14596         unknown_desc_command_handler if not null.
14597         * lib/font.h (class font): Declare them.
14598         (FONT_COMMAND_HANDLER): New typedef.
14599         * ps/ps.c (handle_unknown_desc_command): New function.
14600         (main): Set bflag if we had a -b option. Call
14601         font::set_unknown_desc_command_handler.
14602         (broken.h): Don't include.
14603         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
14604         submake 
14605         * ps/devps/Makefile: Add `broken' command to DESC file using
14606         BROKEN_SPOOLER_FLAGS.
14608         * macros/tmac.e ([, ]): Add as synonyms for { and }.
14610         * macros/tmac.e ($p): Only exdent if \$3 > 0.
14612         * macros/tmac.e (@R, @S): New macros.
14613         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14614         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14615         Declare $H, $[0-9], .. macros with @S.
14616         Declare |0, |1, |2, |3 strings with @S.
14618         * macros/tmac.e (@S): Rename to @U.
14620         * macros/tmac.e (@z): Define @b and bp as empty instead of
14621         deleting them,
14623         * macros/tmac.e (@m): Deleted.
14624         (@h): Don't call @m.
14625         (@z): Don't set @m trap.
14627         * macros/tmac.e ($h, $f): Define |z as empty string.
14629         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14630         (@q): Likewise.
14632         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14633         removing them.
14634         ()f): Likewise for * register.
14636         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14637         argument is missing, don't change $R.  Call sr with three
14638         arguments when initializing.
14640 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
14642         * macros/tmac.e (sr): New macro.
14643         Initialize $r and $R using sr.
14645         * macros/tmac.e (,): Delete \*(#[.
14647         * troff/env.c (set_tabs): Read the tab type even if the position
14648         is bad.  Allow the position of the first tab stop to be negative.
14650 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
14652         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14653         _POSIX_VERSION.
14654         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14655         rather than -DPATHCONF_MISSING.
14656         * Makefile: Get rid of PATHCONF_MISSING.
14658         * refer/map.c: New file.
14659         * refer/index.c: Interface to mmap through map.c.  Rename map_size
14660         to map_len.
14661         * refer/Makefile: Handle map.c.
14662         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14664 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
14666         * Makefile: RANLIB should be `true' if there is no ranlib.
14667         * lib/Makefile (libgroff.a): Simplify.
14668         * driver/Makefile (libdriver.a): Simplify.
14670         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14671         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
14672         defined.
14674 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
14676         * troff/env.c (compare_ranges): Declare as extern "C".
14678         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14680         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14682 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
14684         * pic/troff.c (troff_output::text): Merge in grops_output::text,
14685         but conditionalize use of \X based on \*(.T.
14686         (grops_output::*): Deleted.
14687         * pic/output.h: Delete declaration of make_grops_output.
14688         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
14689         by default. -n sets it to 0.
14690         (usage): Corresponding changes.
14691         * groff.c (main): Don't pass -x or -p to pic.
14692         * groff.sh: Likewise.
14694         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14695         to be non-zero.
14697         * ps/devps/afmtodit: Change calculation of asc_boundary and
14698         desc_boundary.  Make these bounds inclusive.
14699         * ps/devps: Regenerate font files.
14701 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
14703         * macros/tmac.latin1: New file.
14704         * macros/tmac.tty-char: Use tmac.latin1.
14705         (tmac.tty-tr): Deleted.
14706         * macros/Makefile: Install tmac.latin1.
14707         * macros/tmac.dvi: Use tmac.latin1.
14708         * macros/troffrc: Translate \[char160] onto no-break space here.
14709         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14711 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
14713         * macros/tmac.Xps: Use `do' request.
14715         * macros/tmac.ps: Use `do' request.
14717         * macros/tmac.e (@C): Use `do' request.
14719         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14720         * macros/Makefile: Install tmac.X*.
14722         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14723         * tty/Makefile: Don't install tmac.tty*.
14724         * macros/Makefile: Install tmac.tty*.
14726         * dvi/tmac.dvi: Move to macros.
14727         * dvi/Makefile: Don't install tmac.dvi.
14728         * macros/Makefile: Install tmac.dvi.
14730         * ps/tmac.ps*: Move to macros.
14731         * ps/Makefile: Don't install tmac.ps*.
14732         * macros/Makefile: Install tmac.ps*.
14734         * eqn/box.c: Provide draw_lines parameter corresponding to -D
14735         option.
14736         * macros/eqnrc: Set draw_lines parameter based on device.
14737         * groff.c: Don't pass -D flag to eqn.
14738         * groff.sh: Likewise.
14739         * eqn/main.c: Warn about use of -D.
14741         * troff/input.c (process_startup_file): New function.
14742         (main): Call process_startup_file().
14743         * macros/troffrc: New file.
14744         * macros/Makefile: Install troffrc.
14745         * groff.c (main): Don't pass extra -m option to troff. For a 
14746         pseudo device pass the name of the pseudo device to troff using
14747         -d.
14748         * groff.sh: Likewise.
14749         * groff.c (possible_command::prepend_arg): Deleted.
14751         * troff/input.c (do_request): New function.
14752         (init_input_requests): Bind "do" to do_request.
14754         * eqn/main.c (main): Instead of loading eqnchar from device directory,
14755         load eqnrc from macro directory.
14756         * macros/eqnrc: New file.
14757         * macros/Makefile: Install eqnrc.
14758         * ps/devps/eqnchar: Deleted.
14759         * ps/devps/Makefile: Don't install eqnchar.
14760         * dvi/devdvi/eqnchar: Deleted.
14761         * dvi/devdvi/Makefile: Don't install eqnchar.
14762         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14763         variable optM.
14765         * lib/device.[ch]: New files.
14766         * lib/font.h (font::set_device_name, font::get_device_name):
14767         Deleted.
14768         * lib/fontfile.c: Use device.h.
14769         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14770         * troff/input.c: Delete definition of `device'.
14771         (main): Don't initialize device.
14772         * troff/troff.h: Include device.h rather than declaring device.
14773         * troff/Makefile: No need to handle DEVICE.
14774         * driver/input.c: Include device.h. Don't use
14775         font::{set,get}_device_name.
14776         * groff.c, Makefile: Rename device.h to config.h.
14777         * groff.c: Use library device variable.
14778         * eqn/main.c: Use library device variable.
14779         * eqn/Makefile: No need to handle DEVICE.
14781         * lib/searchpath.[ch]: New files.
14782         * lib/Makefile: Handle searchpath.[ch].
14783         * troff/input.c (open_file, init_dirs): Deleted.
14784         (macro_dirs): Deleted.
14785         (open_mac_file, macro_source): Use class search_path.
14786         (add_string, struct string_list): Move definition.
14787         (main): Change -M option to use macro_path. Delete call to
14788         init_dirs().
14789         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14790         Rewrite to use class search_path.
14791         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14792         * lib/Makefile: fontfile.c depends on searchpath.h.
14793         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14794         MACROPATH.
14795         * lib/macropath.[ch]: New files.
14796         * troff/Makefile: No need to handle MACROPATH.
14798         * troff/input.c: Delete DUMP code.
14799         * lib/fontfile.c, lib/font.h: Delete
14800         font::forget_command_line_font_dirs.
14802         * troff/input.c (push_token): New function.
14803         (handle_first_page_transition): Use push_token().
14804         (process_input_stack): Change handling of a space at the beginning
14805         of the line.
14807 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14809         * troff/input.c (font_dirs): Delete unused variable.
14811         * eqn/lex.c (do_set): Correct error messages.
14813 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14815         * troff/input.c (do_define_string): Allow the string name to be
14816         followed immediately by a tab.
14817         (define_character): Likewise.
14819 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14821         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14822         be negative.
14824         * troff/input.c (input_iterator::is_file): New virtual function.
14825         (file_iterator::is_file): New function.
14826         (input_stack::end_file): New function.
14827         (input_stack::next_file): Handle the situation where there is no
14828         file on the input stack correctly.  Avoid making two passes over
14829         the input stack.
14830         (next_file): Make the filename optional; in this case call
14831         input_stack::end_file().
14833 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14835         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14836         produce a real _ charater when the current font is CW and _
14837         otherwise.
14839         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14840         expression to work around gcc 2.2 bug.
14842 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14844         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14846         * troff/env.c (environment::add_padding): New function.
14847         (environment::add_char): Use add_padding().
14848         (environment::space): Likewise.
14849         (environment::wrap_up_field): Add some padding if there is none
14850         and there's no current tab.
14851         * troff/env.h: Declare environment::add_padding.
14853 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14855         * pic/pic.y: undef fmod and rand before declaring them.
14857 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14859         * troff/input.c (main): If the DESC file specifies a font name of
14860         0, then leave the corresponding font position empty.
14862         * nroff.sh: New file.
14863         * Makefile (install.nobin): Install nroff.sh.
14865         * tty/devlatin1/R.proto: Add ao as synonym for de.
14866         * tty/tmac.tty-char: Define ao as o.
14868         * tty/dev{ascii,latin1}/R.proto: Add aq.
14869         * tty/tmac.tty-char: Delete definition of aq.
14871 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14873         * troff/input.c (init_charset_table): Don't translate 0240.
14874         * ps/tmac.ps: Translate char160 to space.
14875         * dvi/tmac.dvi: Likewise.
14876         * tty/tmac.tty: Likewise.
14878 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14880         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14882         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14883         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14884         \(oe, \(r?, \(r!.
14886         * tty/tmac.tty-char: Add \(ah.
14888         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14889         No need to define \(FM and \(!/. Conditionalize all character
14890         definitions.
14892         * ps/devps/lgreekmap: Add +h, +f, +p.
14894         * ps/tmac.psnew: New file.
14895         * ps/Makefile: Install tmac.psnew.
14897         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14898         character definitions in compatible mode.
14900         * troff/input.c (remove_character): New function.
14901         (init_input_requests): Bind remove_character to "rchar".
14903         * ps/tmac.psold: New file.
14904         * ps/Makefile: Install tmac.psold.
14905         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14906         characters into tmac.psold.  Make these definitions unconditional.
14908         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14910         * ps/tmac.ps: Don't define \('c and \('C.
14912         * ps/devps/textmap: Move Greek characters to...
14913         * ps/devps/symbolchars:
14915 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14917         * ps/devps/text.enc: Add quotesingle.
14918         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14919         * tty/tmac.tty-char: Likewise.
14920         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14921         * dvi/devdvi/texi.map: Add Fn.
14922         * dvi/devdvi/msam.map: Add lz.
14923         * dvi/tmac.dvi: Handle Bq, bq, aq.
14925         * pic/lex.c (get_token): Recognize 'th.
14926         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14928 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14930         * ps/devps/textmap: Move di, mu, +- to...
14931         * ps/devps/symbolchars:
14933         * macros/tmac.s (@XS): Don't call par@reset or fi.
14934         (XA): Call LP. Turn off adjustment. Reduce line length.
14936         * macros/tmac.s: Initially alias XS to LP.
14937         (XS): Rename to @XS.
14938         (cov*ab-init): Alias XS to @XS.
14940 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14942         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14943         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14944         (token::is_size, token::changes_env): Deleted.
14945         * troff/number.c (parse_term): No need to process \s explicitly.
14946         Call tok.next() only after scale indicator has been processed.
14947         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14948         \f etc explicitly.
14949         (token::next): Handle \s, \f, \S, \H immediately rather than
14950         returning them as tokens.
14951         (token::operator==, token::description, token::add_to_node_list,
14952         token::process): Remove handling of deleted tokens.
14954         * troff/env.c (environment::add_char): When adding padding
14955         indicator character, call start_line() if necessary.
14957 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14959         * ps/devps/afmtodit: Don't output 0 kerns.
14961         * ps/devps/afmtodit: Remove directory from name of encoding in
14962         font description file.
14964         * ps/devps/afmtodit: Improve error messages.
14966         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14968         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14969         * ps/devps/FontMakefile: Deleted.
14970         * ps/devps/afmname: New file.
14972         * ps/devps/symbol.sed: New file.
14973         * ps/devps/symbol.diff: Deleted.
14974         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14975         Generate zapfdr.afm from zapfd.afm.
14977         * tty/tmac.tty (tty-char): Prefix definition with ".
14979         * macros/tmac.an (TP): Don't start a diversion if one has already
14980         been started.
14982         * tty/tmac.tty-char: Add Latin-1 characters.
14984         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14986 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14988         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14989         Move declaration of struct horizontal_span.
14991         * tbl/table.c (table::table): Initialize span_list.
14992         (table::~table): Delete span_list.
14994         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14996         * ps/devps/Makefile: Avoid dependency on GNU make.
14998         * ps/tmac.ps: Check that character does not already exist before
14999         defining it.
15001         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
15002         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
15003         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
15004         files.
15006         * tty/tmac.tty-char: New file.
15007         * tty/Makefile: Install tmac.tty-char.
15008         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
15009         tmac.tty-char.
15011         * tty/tmac.tty: Fix definition of \(34.
15013         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
15014         bracket-drawing characters onto |. Add *o.
15016         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
15017         only if current_field.
15019         * troff/dictionary.c (dictionary::lookup): Free old_table after
15020         rehashing. 
15022 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
15024         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
15025         whose glyphs are identical to glyphs of some Roman character.
15027         * tty/devlatin1/R.proto (bu): Deleted.
15028         * tty/devascii/R.proto (bu): Deleted.
15029         * tty/tmac.tty: Add definition of \(bu.
15031         * eqn/main.c (do_file): Pass FILE as argument.
15032         (main): Automatically load eqnchar.  New options -F and -n.
15033         Pass do_file an opened FILE.
15034         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
15035         No need to include font.h.
15036         * groff.sh: Likewise.  Don't need to use - for standard input.
15037         Prefix files with -- if first file starts with -.
15039         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
15041         * troff/env.c (environment::possibly_break_line): Don't set line
15042         to 0 across call to output_line().  Don't call output_line() until
15043         after discarding nodes after break.
15045 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
15047         * request.h (macro::empty): Declare it.
15048         * input.c (macro::empty): New method.
15049         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
15050         macro is empty.
15052 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
15054         * troff/env.c (environment::start_field): Decrement space_total
15055         when a space is frozen.
15057 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
15059         * macros/tmac.an (R): Delete macro.
15061         * troff/input.c (get_copy, token::next): Support \# (like \" but
15062         newline is ignored).
15064         * troff/input.c (token::next): Fix error message in 'Y' case.
15066 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
15068         * eqn/delim.c (define_extensible_string): Recognize any prefix of
15069         a delimiter name.
15071 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
15073         * c++test.c: Include <osfcn.h>.
15075         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
15076         <errno.h> doesn't.
15078 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
15080         * tbl/table.c (table::divide_span): Don't count column separation
15081         if expand was specified.
15083         * tbl/main.c (process_format): Don't ignore width specs in
15084         continued format.  Give warning for changing equal widths or
15085         column separation in continued format.
15086         (process_data): Set column separation, minimum width, equal
15087         columns at end of table.
15089 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
15091         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
15092         node::add_discretionary_hyphen): Use soft_hyphen_char.
15093         (set_soft_hyphen_char): New function.
15094         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
15096         * Makefile (c++tested): Give more helpful message if test fails.
15098 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
15100         * troff/input.c (init_charset_table): Translate 0240 to
15101         an unbreakable space.
15103         * troff/token.h (token::hyphen_indicator): New function.
15104         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
15105         translation.
15106         * troff/input.c (translate): Allow translation to \%.
15107         * troff/node.c (node::add_char): Handle
15108         TRANSLATE_HYPHEN_INDICATOR.     
15109         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
15111         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
15112         for \(hy.
15114         * tty/devlatin1/R.proto: \(hy and - should print as 055.
15116 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
15118         * groff.c (run_commands): If the last command gets a SIGPIPE send
15119         a SIGPIPE to all children than haven't yet terminated.  When
15120         command terminates, set pid field to -1.
15122 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
15124         * groff.c (main): Pass an appropriate -filename option to gxditview.
15126 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
15128         * Makefile.bd (install): Remove existing program before copying.
15130         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
15131         programs which have Unix counterparts to be installed with
15132         user-specified prefix.
15134         * troff/input.c (exit_troff): Don't check if exit_started.
15135         (exit_request): Don't call exit_troff if exit_started.
15137         * Makefile.bd (install.mm): Rename to install.dwbmm.
15139 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
15141         * driver/input.c (do_file): Add missing break for '#' case.
15143 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
15145         * troff/input.c (input_stack::clear):  Clear past any boundaries and
15146         then add the boundaries back.
15148         * troff/input.c (exit_troff): Return immediately if already
15149         exiting.
15151         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
15152         end macro.
15153         (pg*end-page): If the text has ended and there are no more
15154         footnotes or keeps, exit.
15156         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
15158         * troff/input.c (init_charset_table): Make \(rq transparent by
15159         default.
15161         * macros/tmac.an: Define lq and rq strings.
15163         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
15165 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
15167         * troff/env.c (environment::final_break): New function.
15168         (environment::newline): Set prev_line_interrupted to 2 if
15169         exit_started.
15170         * troff/env.h: Declare environment::final_break.
15171         * troff/input.c (exit_troff): Call environment::final_break()
15172         instead of environment::do_break().
15174         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
15175         doesn't already exist.
15176         * macros/man.local: New file.
15177         * macros/tmac.an: Load man.local.
15178         * macros/man.ultrix: New file.
15180 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
15182         * troff/input.c (exit_groff): Rename to...
15183         (exit_troff): New function.
15185         * troff/div.c (exit_started, done_end_macro,
15186         seen_last_page_ejector): New global variables.
15187         (began_page_in_end_macro): New static variable.
15188         (exit_flag): Deleted.
15189         (top_level_diversion::top_level_diversion): Initialize
15190         last_page_count.
15191         (top_level_diversion): More elaborate test for whether
15192         cleanup_and_exit() should be called.
15193         Set began_page_in_end_macro if the end macro isn't yet finished.
15194         * troff/div.h (top_level_diversion::last_page_count): New data
15195         member.
15196         (top_level_diversion::set_last_page): New function.
15197         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
15198         * troff/env.c (do_break): Zero prev_line_interrupted.
15199         * troff/input.c (exit_flag): Delete declaration.
15200         (LAST_PAGE_EJECTOR): New magic cookie.
15201         (token::next): Handle LAST_PAGE_EJECTOR.
15202         (exit_groff): Set exit_started and done_end_macro instead of
15203         exit_flag.  Call top_level_diversion::set_last_page.  Push a
15204         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
15205         another ejection after setting seen_last_page_ejector.
15207 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
15209         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
15211         * macros/tmac.e (TH): Make sure there's room for the initial
15212         header.
15214         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
15215         Set FVS in points rather than units.
15217 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
15219         * troff/div.c (top_level_diversion::add_trap): Don't consider the
15220         position of empty slots.
15222 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
15224         * ps/devps/S: Fix height and depth of parenrightex.
15225         * ps/devps/symbol.diff: Regenerate.
15227 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
15229         * tmac.e (u): Do underlining as in -mgs.
15231 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
15233         * tty/tty.c (tty_printer::end_page): If overstriking is
15234         suppressed, still turn overstruck horizontal and vertical lines
15235         into +.
15237         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15238         2.1.
15240         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15242 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
15244         * Version 1.05 released.
15246 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
15248         * tty/tty.c: Instead of keeping an array of glyphs and then
15249         sorting it, keep a ordered linked list of glyphs for each line.
15251         * driver/driver.h: Include stddef.h.
15253         * tty/tty.c (compare_glyph):
15254         * refer/refer.c (rcompare):
15255         * troff/env.c (compare_ranges): Arguments of qsort comparison
15256         function should be const void *.
15258         * troff/number.c (parse_term):
15259         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15260         switch statement.
15262         * refer/label.y (consider_authors): Don't access variables
15263         constructed under a condition outside that condition: put braces
15264         round for statement containing declaration; redeclare use of same
15265         variable later.
15267         * pic/pic.y (text_expr): Delete production that allows
15268         parenthesised text_expr.
15269         (expr): Allow a conditional_expr to appear in parentheses.
15270         (conditional_expr): Rename to any_expr.
15272         * mm: Install new version 1.01 from jh.
15274         * lib/font.c (font::get_width): Cache scaled widths.
15275         (font::font): Initialize widths_cache.
15276         (font::~font): Destroy widths_cache.
15277         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15279 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
15281         * c++test.c, c++test.ref: New files.
15282         * Makefile: Check that the C++ compiler works.
15284         * ps/tmac.pspic (PSPIC): Do a break.
15286         * ps/tmac.ps: Move definition of PSPIC into...
15287         * ps/tmac.pspic: New file.
15288         (PSPIC): Draw box around picture, but make it invisible to grops.
15289         * ps/tmac.ps: Load tmac.pspic.
15290         * ps/Makefile: Install tmac.pspic.
15292 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
15294         * lib/font.c (scale_round): If n is negative,
15295         subtract .5 before truncating floating point result.
15297         * lib/fontfile.c: Include <errno.h>.
15299 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
15301         * driver/input.c (get_char): Inline. Don't update current_lineno.
15302         Change callers to up date current_lineno if necessary.
15303         Use get_char() instead of getc(current_file).
15305 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
15307         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15309 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
15311         * tty/tty.c (tmac.tty): Define \(rg as (R).
15313 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
15315         * lib/lib.h: New define a_delete.
15316         * Use a_delete instead of delete when deleting an array of objects
15317         without destructors.
15319         * lib/lib.h: Rename adelete to ad_delete.
15320         * Change uses of adelete.
15322 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
15324         * eqn/eqn.y: Include lib.h.
15326         * troff/node.c (grow_font_table): Delete old_font_table.
15328         * mm: Install new version from jh.
15330 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
15332         * tbl/table.h (format_type): Make global instead of local to class
15333         entry_format.  Prefix enumerators with FORMAT_.
15334         * tbl/table.c, tbl/main.c: Corresponding changes.
15335         * refer/token.h (token_type): Make global.  Prefix enumerators
15336         with TOKEN_.
15337         * refer/token.[ch]: Corresponding changes.
15338         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15340         * troff/div.c (node::set_vertical_size): Don't name argument.
15342 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
15344         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15345         * lib/lib.h: Define adelete accordingly.
15346         * pic/object.c (graphic_object::graphic_object):
15347         * tbl/main.c (format::~format):
15348         * tbl/table.c (table::~table):
15349         * refer/ref.c (reference::~reference, reference::merge,
15350         reference::insert_field, reference::delete_field): Use adelete.
15352         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15353         * refer/token.h:
15354         * tbl/table.h: Corresponding changes.
15356         * common.c (common_output::dashed_arc, common_output::dotted_arc):
15357         Ensure total_angle is positive.
15359 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
15361         * refer/ref.c (reference::merge, reference::insert_field,
15362         reference::delete_field): Avoid delete[0].
15364         * refer/token.c (init_special_chars): Move calls to cmupper
15365         outside calls to init_two_char_letter to work around bug in gcc
15366         2.0.
15368 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
15370         * lib/new.c (operator new): Use __builtin_new for g++.
15372         * pic/object.c (graphic_object::~graphic_object):  Don't use
15373         delete [] on 0.
15375         * pic/object.c (output::compute_scale): Initialize max_width and
15376         max_height.
15378 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
15380         * troff/input.c (write_request): Call fflush.
15382         * troff/node.h (class composite_node): Move declaration to node.c
15383         * troff/input.c (charinfo_to_node): Rename to ...
15384         (charinfo_to_node_list): Return node list rather than composite
15385         node.
15386         * troff/node.c (make_composite_node): New function.
15387         (make_node, add_char): Call make_composite_node instead of
15388         charinfo_to_node.
15389         (class composite_node): Add a tfont * member.  Delete font_size
15390         member.
15391         (composite_node::composite_node, composite_node::copy,
15392         composite_node::size): Corresponding changes.
15393         (composite_node::tprint): Provide constant spacing, emboldening
15394         and track kerning as specified in tfont.
15395         (composite_node::width): Change width calculation accordingly.
15396         * troff/env.h (environment::composite): New member.
15397         (environment::is_composite, environment::set_composite): New
15398         functions.
15399         * troff/env.c (environment::environment): Initialize composite.
15400         * troff/input.c (charinfo_to_node): Call
15401         environment::set_composite.
15402         * troff/node.c (make_composite_node, make_glyph_node): Use the
15403         plain version of the tfont if the environment is composite.
15405         * troff/node.c (font_info::get_space_width): Additional argument
15406         giving space_size.  Handle constant space correctly. Scale by
15407         space_size unless constant spaced.
15408         (env_sentence_space_width): New function.
15409         * troff/node.h: Declare it.
15410         * troff/env.h (environment::get_space_size,
15411         environment::get_sentence_space_size,
15412         environment::get_narrow_space_width,
15413         environment::get_half_narrow_space_width): Make inline.
15414         (environment::get_space_width): Make inline.  Just call
15415         env_space_width.
15416         * troff/env.c: Delete definitions for funtions made inline.
15417         (environment::space_newline, environment::space): Use
15418         env_sentence_space_width(). Don't scale by space_size.
15419         * troff/node.h: Move declarations of env*space_width() functions
15420         into env.h.
15422 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
15424         * macros/tmac.s (PS): Don't try to set negative indent.
15426 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
15428         * pic/pic.y: Fix min function.
15430 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
15432         * man/mdate.sh: Clear LANGUAGE.
15434 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
15436         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15437         * pic/lex.c: New COMMAND keyword.
15438         * pic/pic.y (print_args, print_arg): New rules.
15439         (placeless_element): Use print_args for PRINT.
15440         New COMMAND element.
15442 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
15444         * troff/input.c (terminal): Handle missing argument correctly.
15446         * pic/pic.y (text_expr): New rule.
15448         * pic/pic.y: Implement := operator.
15450 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
15452         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15453         mdoc.
15455 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
15457         * ps/devps/dingbatsrmap: Include this in the distribution.
15459         * macros/tmac.doc: Replace with new version from 2nd Networking
15460         Release. Fix loading of doc-* files.
15461         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15462         * macros/tmac.doc.old: New file.  Apply fixes that had been
15463         applied to old tmac.doc.
15464         * macros/tmac.andoc: Check that we're running under groff.
15465         * macros/Makefile: Rework.
15467 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
15469         * tbl/table.h (format_type): 
15470         * refer/token.h (token_type): If NESTED_TYPES is defined, use
15471         typedef to make these types visible at file scope.
15472         * Makefile: Add NESTED_TYPES configuration option.
15474         * troff/div.c (mark): At the top level use the value of
15475         nl_reg_contents rather than the current vertical position.
15477 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
15479         * tty/tty.c: Implement \D for horizontal or vertical lines.
15480         (tty_printer::set_char): Use vec_used+2 as serial number.
15481         Don't allow size of vector to exceed USHRT_MAX-2.
15482         Split off part into...
15483         (tty_printer::add_char): New function.
15484         (tty_printer::draw): New function.
15485         (compare_glyph): Handle equal serial numbers.
15486         (tty_printer::end_page): Handle overstruck characters from \D.
15487         (main, usage): Implement -d option.
15489 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
15491         * tbl/main.c (process_format):
15492         * eqn/text.c (split_text):
15493         * troff/input.c (token::next): Use inner block for declarations
15494         with initializers in switch statement.
15496 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
15498         * pic/common.c (common_output::dash_line): Cope with zero-length
15499         lines.
15501 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
15503         * Version 1.04 released.
15505 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
15507         * macros/tmac.an (TH): Define a macro an-init to define variables
15508         based on command line arguments.
15509         (an-header): Call it.
15511 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
15513         * Makefile (install.mm): Rename to install.dwbmm.
15515         * Makefile: Integrate mm.
15516         * mm: New directory.
15518 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
15520         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15521         <sys/types.h>.
15523         * pic/troff.c (troff_output::simple_spline,
15524         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15525         shadowing parameter.
15527         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15529         * lib/ptable.h: Add explicit casts when converting from unsigned
15530         long to unsigned.
15532         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15533         * dvi/devdvi/Makefile: Install SA, SB.
15535         * refer/indxbib.c: Add declaration of mktemp.
15537         * refer/lookbib.c: Add declaration of isatty.
15539 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
15541         * pic/lex.c (interpolate_macro_with_args):  While collecting
15542         arguments, keep track of whether we're in a string.
15544 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
15546         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15547         down with \v, so as to avoid problems with top of page trap
15548         setting no space mode.
15550 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
15552         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15554 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
15556         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15557         Improve error message.
15559 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
15561         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15562         printf("%03o");
15564 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
15566         * groff.c (possible_command::execp): Always use _exit() after a
15567         failed exec.
15569         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15570         NO_SYS_WAIT_H   configuration options.
15571         * groff.c: Use these options.  Use POSIX-style macros to extract
15572         fields from the status returned by wait().
15574 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
15576         * tbl/table.c (table::compute_separation_factor): Allow the
15577         separation factor to drop to 0.
15579 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
15581         * refer/search.c: Include <errno.h>.
15583 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
15585         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15587         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15588         C++. 
15590         * pic/lex.c (input_stack::bol): Move definition out of class body.
15592         * pic/main.c: On MSDOS munge argv[0].
15594         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15596         * lib/ptable.c (hash_string): Use unsigned long rather than
15597         unsigned.
15598         (next_ptable_size): Use unsigned rather than int.  Give an error
15599         message if we've hit the largest table size.
15600         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
15601         table size.
15603         * pic/object.h (object_spec): Make flags unsigned long.  Declare
15604         flags as const unisgned long rather than as enums.
15606         * pic/output.c: Deleted.
15608         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15610         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15611         Add additional argument.
15612         (line_entry::note_double_vrule_on_{left,right}): Set value of
15613         douvle_vrule_on_{right,left} flag according to argument.
15614         (simple_line_entry::simple_print,
15615         simple_line_entry::double_line_print): If adjacent to double vrule
15616         on a corner extend rather than shorten the rule by half the double
15617         vrule sep.
15619         * troff/number.c (parse_term): In checking for overflow, handle the
15620         case where the current horizontal position is negative.
15622 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
15624         * pic/object.c (draw_arrow): Check for object having zero length.
15626 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
15628         * eqn/main.c (do_file): Split off inline equation handling into...
15629         (inline_equation): New function.  Search for starting delimiter
15630         using...
15631         (delim_search): New function. Don't recognize a delimiter that
15632         occurs in the name of an escape sequence, number register, string
15633         etc.
15635 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
15637         * eqn/delim.c (delim_box::compute_metrics): Don't call
15638         define_extensible_string if left is 0.
15639         (delim_box::output):  Don't print the left delimiter if left is 0.
15640         (delim_box::debug_print): Check for left == 0 before calling printf.
15642 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
15644         * troff/Makefile (majorminor.c): Include only digits in
15645         minor_version.
15647 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
15649         * refer/dirnamemax.c: new file.
15650         * refer/genlimits.c: Deleted.
15651         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15652         Don't check path length.
15653         * refer/Makefile: Add dir_name_max.o; delete genlimits.
15654         * Makefile: Add PATHCONF_MISSING option.
15656         * refer/indxbib.c (get_cwd): New function.
15657         (main): Use get_cwd().
15658         * lib/getcwd.c: New file.
15659         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15660         GETCWD in SUBFLAGS.
15661         * lib/Makefile: Compile getcwd.o.
15663         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15664         userdict.
15666         * refer/indxbib.c (main): Check success of mktemp.
15668         * lib/tmpfile.c: New file.
15669         * lib/Makefile: Add tmpfile.c.
15670         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15671         * ps/ps.h: Delete declaration of mktemp().
15672         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15673         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15674         * driver/driver.h: No need now to include errno.h.
15676         * everywhere: Set errno to 0 before calling fopen().
15678         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15679         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15680         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15682 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
15684         * troff/env.h (translate_space_to_dummy): Declare it.
15685         * troff/env.c (environment::space_newline, environment::space):
15686         If translate_space_to_dummy is set then make the width of spaces 0.
15687         * troff/input.c (translate): If the second character of a
15688         translation is a space, translate to unbreakable space.  If the
15689         first character is a space, set or clear translate_space_to_dummy
15690         according to whether the second character is \&.  Weird!
15692 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
15694         * groff.c (run_commands): Don't use non-zero exit code because a
15695         command gets SIGPIPE.
15697         * groff.c, groff.sh: Use -mXps with -TXps.
15699         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15700         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15701         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15702         (ps_printer::special): New specials invis and endinvis.
15703         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15704         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
15705         (ps_printer::end_page): Check that invis_count == 0.
15706         (ps_printer::invis_count): New member.
15707         (ps_printer::ps_printer): Initialize invis_count to 0.
15709         * troff/env.c (environment::hyphenate_line): Hyphenation
15710         indicator at beginning of word inhibits splitting after -, \(em
15711         etc.
15713         * pic/pic.y (element): Allow another element to follow } without
15714         any intervening separator.
15716 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
15718         * pic/lex.c (get_delimited): Allow tabs before delimiter.
15720 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
15722         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
15723         declaration of wait() in header files.
15724         * Makefile: Get rid of -DHAVE_UNION_WAIT.
15726         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15728         * lib/lib.h: Declare return type of strerror as char *.
15730         * man/Makefile: Add g flag to sed substitutions.
15731         * Makefile (shgroff, bindist): Likewise.
15733 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
15735         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15736         * ps/devps/prologue (PBEGIN): Define showpage after pushing
15737         userdict.
15739 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
15741         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15742         userdict.
15744 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
15746         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15747         group.
15749 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
15751         * troff/input.c (define_number_reg):  If currently undefined,
15752         don't define it if the argument is an invalid expression.
15754         * Makefile: Ignore return value of `if' commands without `else'
15755         parts.
15757         * Makefile: Split up CPPDEFINES into a series of separate
15758         configuration options.
15760         * troff/input.c (init_registers): Use time_t instead of long
15761         unless LONG_FOR_TIME_T is defined.  Use returned result rather
15762         than passing pointer.
15763         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15765         * lib/Makefile (fontpath.h): Use gendef.
15767 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15769         * troff/input.c (input_iterator::shift): Delete argument name.
15770         * troff/node.c (suppress_output_file::really_begin_page,
15771         suppress_output_file::really_transparent_char, node::ascii_print,
15772         node::tprint): Delete names of unused arguments.
15774 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15776         * refer/label.y (string):  Pass $4 to command_error.
15778 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15780         * Version 1.03 released.
15782 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15784         * Makefile: Pass definition of SHELL in SUBFLAGS.
15786         * gendef: New file.
15787         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15788         ps/Makefile: Use gendef to construct header files that are
15789         constructed from the Makefile.
15791         * macros/Makefile: make all should build stripped version of tmac.e.
15793         * refer/Makefile (clean): Remove y.output.
15795 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15797         * ps/pfbtops.c (main): Add -v option which prints out a version
15798         number.
15799         * ps/Makefile (pfbtops): Link with libgroff.a.
15801 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15803         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15804         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15806         * refer/lkbib.c (main): Always terminate reference with blank
15807         line.
15808         * refer/lookbib.c (main): Likewise.
15810         * refer/linear.c (file_buffer::load): Check that the file is not a
15811         binary file.
15813         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15814         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15815         Delete second inclusion of <sys/param.h>.
15817 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15819         * troff/token.h (token::special): Deleted.
15821         * tbl/main.c (process_format): Rework so that opt->tab_char is
15822         recognized only when appropriate.
15824         * ps/Makefile (clean): Remove pfbtops.
15826 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15828         * lib/font.c (text_file::next): Don't return if we have got a
15829         blank line.
15831 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15833         * refer/refer.c (store_reference): Get hash code from old_table[i]
15834         when rehashing the table.
15836 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15838         * eqn/box.c (box::top_level): Save size and prev size using \R and
15839         restore it afterwards. Set the size to the size at the beginning
15840         of the line.
15841         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15842         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15844         * refer/Makefile (limits.h): Use ./genlimits.
15846 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15848         * refer/index.c: Delete declarations of stat() and fstat().
15850 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15852         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15854 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15856         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15858 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15860         * troff/input.c (token::get_char): Handle \e.
15862         * refer/linear.c: Delete declarations of fstat() and stat().
15864 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15866         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15867         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15869 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15871         * troff/input.c (do_define_macro): Improve error handling for end
15872         of file while defining macro.
15874 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15876         * eqn/box.h: Fix declaration of set_gsize.
15877         * eqn/box.c (set_gsize): Make argument const char *.
15878         (gsize): Declare as char *.
15879         * eqn/main.c (main): Don't convert gsize to int.
15880         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15882         * Version 1.02 released.
15884 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15886         * macros/tmac.andoc: New file.
15887         * macros/Makefile: Install tmac.andoc.
15889         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15890         operator new and delete on OP_DELETE_BROKEN not being defined.
15891         * Makefile: Mention OP_DELETE_BROKEN.
15893 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15895         * Makefile (bindist): Pass SUBFLAGS.
15897 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15899         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15901         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15902         parameter.
15904         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15906         * ps/ps.h, ps/psrm.c: Make comment_table and
15907         header_comment_table local to resource_manager::process_file.
15909         * groff.sh: With -TXps pass -printCommand option to gxditview.
15911         * groff.c (possible_command::print): Implement using
15912         append_arg_to_string.
15914         * xditview: Merge in new implementation with own ChangeLog.
15916 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15918         * groff.c (main): Implement PRINT_OPTION.
15919         (append_arg_to_string): New command.
15920         (device_table): Set PRINT_OPTION flag for Xps.
15922 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15924         * troff/groff.h: Rename to troff.h.
15926         * pic/lex.c (lookup_keyword, docmp): New functions.
15927         (get_token): Use new lookup_keyword.
15928         Don't include key.h.
15929         * pic/key.[ch], pic/pic.gperf: Deleted.
15930         * pic/Makefile: Remove gperf stuff.
15932         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15933         into output.h.
15934         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15936         * troff/Makefile, troff/node.c: Move definition of
15937         STORE_WIDTH into node.c.
15939         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15941 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15943         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15944         dvi/devdvi/texb.map: Add lq and rq.
15945         dvi/devdvi: Regenerate fonts.
15946         * ps/devps/textmap: Add lq and rq.
15947         * ps/devps: Regenerate fonts.
15948         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15949         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15951         * pic/object.c (position_rectangle): When checking radius
15952         cope with possiblity that width or height is negative.
15953         (box_object::box_object): Have separate xrad and yrad with
15954         signs matching signs of dim components.
15955         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15956         (box_object::print): With rounded boxes use absolute values
15957         for dim and rad arguments.
15959         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15960         in fontpath.h.
15962         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15964         * various files: Add explicit destructors to keep Saber CC +d
15965         happy.
15967 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15969         * eqn/box.c (box::top_level): Restore fonts correctly after
15970         font changes in line containing inline equation.  Also
15971         restore previous font as well as current font.
15972         * eqn/pbox.h: Define necessary string and register names.
15974         * troff/input.c (token::next): Case 'R' calls do_register.
15975         (do_register): New function.
15977 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15979         * groff.c, groff.sh: Support Xps device.  Allow each device
15980         to have a pseudo_name and a real_name.
15982         * groff.c (run_commands): Don't print `Broken pipe' messages.
15984         * ps/pfbtops.c: New file.
15985         * ps/Makefile: Add pfbtops.
15987         * troff/number.c (parse_term): Improved error message.
15989 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15991         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15993         * Makefile: Integrate refer.
15994         * refer: New directory.
15995         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15996         man/lkbib.man: New files.
15997         * man/Makefile: Support refer man pages.
15999         * lib/lib.h: Declare is_prime.
16000         * lib/prime.c: New file.
16002         * troff/input.c (macro_source): New function.
16003         (init_input_requests): Bind "mso" to macro_source.
16005         * troff/env.c (environment::possibly_break_line): Maintain
16006         pointer to pointer to node to be split in ndp so as to avoid
16007         using address of freed node.
16009         * troff/env.c (environment::hyphenate_line): Maintain pointer to
16010         pointer to first node to be hyphenated in startp so as to
16011         avoid using address of freed node.
16013         * troff/env.c (class trie, class hyphen_trie): Make the
16014         elements of the trie be of type char not unsigned char.
16015         Declare arguments to be const char* instead of unsigned char *.
16016         
16017         * troff/env.c (hyphenate): Initialize hbuf[0].
16019         * troff/input.c (set_string): Declare p to be char * and cast
16020         *p to unsigned char when necessary.
16022         * troff/input.c (do_define_macro): Declare s to be const
16023         char*. Cast element to unisgned char when necessary, Declare
16024         d to be an int.  Handle EOF better.
16026         * troff/Makefile, troff/input.c: Different scheme for passing
16027         definitions of MACROPATH, HYPHENFILE and DEVICE.
16029 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
16031         * tty/devascii/R.proto: Delete entry for em.
16032         * tty/devlatin1/R.proto: Likewise.
16034 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
16036         * troff/input.c (translate): Stop when we get a space. Treat eof
16037         like newline.
16039         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
16041 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
16043         * tbl/main.c (process_format): A font name following a `f'
16044         modifier that starts with a digit can be only one character long.
16045         Also deal with EOF on the second character of the font name.
16047 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
16049         * troff/input.c (token::next): Turn \~ into an
16050         unbreakable_space_node.
16051         * troff/node.c (unbreakable_space_node): New class.
16052         * troff/node.h: Declare it.
16054 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
16056         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
16057         it's >= 0, before outputting it as a single byte.
16059 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
16061         * lib/font.c: Make font_char_metric::code an int.
16062         (font::get_code): Change return type to int.
16063         (font::load): Allow code to be arbitrary integer.
16064         * lib/font.h (font::get_code): Change return type to int.
16065         (font::number_to_index): Change argument type to int.
16066         * troff/input.c (token::next):  In case 'N', allow any value.
16067         Store value in token::val.
16068         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
16069         (token::get_char, token::add_to_node_list, token::process): Get
16070         number from val.
16071         (charinfo::set_number): Change argument to int.
16072         (charinfo::get_number):  Require that NUMBERED flag be set.
16073         (get_charinfo_by_number): Store numbered characters not between 0
16074         and 255 in a dictionary.
16075         * troff/charinfo.h (get_charinfo_by_number): Change argument type
16076         to int.
16077         (charinfo::number): Change type to int.
16078         (charinfo::set_number): Change type of set_number to int.
16079         * troff/node.c (troff_output_file::put_char_width,
16080         troff_output_file::put_char): Test whether character is numbered
16081         using charinfo::numbered().
16082         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
16083         values of num.
16084         * lib/nametoindex.c: New implementation to cope with arbitrary
16085         number characters.
16087         * troff/input.c (token::operator==): Test val for
16088         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
16089         TOKEN_SIZE.
16091         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
16092         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
16094 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
16096         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
16097         variable.
16099         * all Makefiles: rm targets of cp and >.
16101         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
16102         it.
16104         * eqn/lex.c (def_table): Add dollar.
16106 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
16108         * troff/input.c (do_width): Push back newline before closing delim
16109         like do_bracket.
16111 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
16113         * groff.c (possible_command::prepend_arg): New function.
16114         (main): Prepend device -m option.
16115         * groff.sh: Put device -m options before command-line options.
16117 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
16119         * macros/tmac.an (IP): Quote argument to TP.
16121         * ps/ps.c (main): New option -b, which sets...
16122         (broken_flags): New variable.
16123         (ps_printer::~ps_printer): Incorporate the setup section in the
16124         prolog if (broken_flags & NO_SETUP_SECTION).
16125         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
16126         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
16127         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
16128         ps_printer::print_needed_font_comment,
16129         ps_printer::print_supplied_font_comment,
16130         ps_printer::print_include_font_comments,
16131         ps_printer::lookup_doc_font, ps_printer::download_fonts,
16132         ps_printer::read_download_file, read_document_fonts, add_font,
16133         skip_line, parse_fonts_arg, document_font::document_font,
16134         document_font::~document_font, document_font::download,
16135         ps_output::include_file):  Deleted.
16136         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
16137         rather than %!PS-Adobe-2.0.  Make calls to
16138         resource_manager::need_font for each font that we used. Replace
16139         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
16140         print_supplied_font_comment, print_needed_font_comment by call to
16141         resource_manager::print_header_comments. Output %%Orientation
16142         comment. Output %%Requirements: numcopies comment if ncopies > 1.
16143         Don't output the prolog directly.  Instead call
16144         resource_manager::output_prolog.  Only define #copies when ncopies
16145         > 1.  Delete calls to print_include_font_comments  and
16146         download_fonts.  Add call to resource_manager::document_setup.
16147         (ps_printer::do_file): Call resource_manager::import_file instead
16148         of including it ourselves.
16149         (ps_printer::do_import): Likewise.  Also don't call
16150         merge_import_fonts. Push userdict on the dictionary stack before
16151         and pop it afterwards.
16152         Move declaration of ps_output into ps.h.
16153         * ps/psrm.c: New file implementing resource_manager class.
16154         * ps/ps.h: New file declaring ps_output and resource_manager
16155         classes.
16156         * ps/devps/zapfdr.ps:
16157         * ps/devps/symbolsl.ps:
16158         * ps/devps/prologue:  Use 3.0 conventions.
16159         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
16160         Add default definition of BROKEN_SPOOLER_FLAGS.
16161         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
16162         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
16164 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
16166         * etc/grog.pl: New file.
16167         * Makefile (GROG): New variable.
16168         Add GROG to SUBFLAGS.
16169         * etc/Makefile (GROG): New variable.
16170         (install.nobin): Install $(GROG) rather than grog.sh.
16172 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
16174         * eqn/special.c (special_box::compute_metrics): Make the input and
16175         output strings the same.  Get the new height and depth from the
16176         predefined height and depth registers.  Also make subscript kern
16177         and skew available.
16178         (special_box::compute_subscript_kern, special_box::compute_skew):
16179         New functions.
16181         * eqn/box.c (pointer_box::compute_skew,
16182         simple_box::compute_metrics, box::top_level)
16183         * eqn/text.c (prime_box::compute_metrics,
16184         prime_box::comput_subscript_kern)
16185         * eqn/limit.c (limit_box::compute_metrics):
16186         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
16187         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
16188         negative numbers in `nr' requests with a leading 0.
16190 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
16192         * eqn/special.c: New file.
16193         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
16194         Add new rule for simple.
16195         * eqn/lex.c (token_table): Add SPECIAL.
16196         * eqn/box.h: Declare make_special_box.
16197         * eqn/Makefile: Add special.[co].
16199 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
16201         * ps/devps/prologue: Possibly set packing to true while defining.
16202         Create grops dictionary here.  Initialize local variables before
16203         defining procedures.
16204         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
16205         the dictionary stack. Set strokeadjust and overprint to false if
16206         the relevant operators are defined.
16207         (PEND): New procedure.
16208         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
16209         prologue.  Do everything else in the setup section.
16210         (ps_printer::do_import): Just call PBEGIN and PEND around the
16211         picture. Also push userdict before, and pop it afterwards.
16213 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
16215         * troff/node.c (bracket_node::tprint): Brackets were being printed
16216         1m too low.
16218         * macros/tmac.an (SH, SS): Set fill mode.
16220 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
16222         * troff/div.c (top_level_diversion::begin_page): Set
16223         high_water_mark to 0.
16225 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
16227         * man/mdate.sh: New file.
16228         * man/mdate.c: Deleted.
16229         * man/Makefile: Use mdate.sh instead of mdate.
16230         (mdate): Deleted.
16232         * eqn/lex.c (do_gsize): Supply missing argument to error message.
16234 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
16236         * man/mdate.c: New file.
16237         * man/*.man: Replace modification date by @MDATE@.
16238         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16239         (mdate): New target.
16241         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16242         Remove illegal input characters.
16244 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
16246         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16248 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
16250         * troff/div.c (begin_page): Change behaviour when
16251         !first_page_begun and !break_flag.
16253         * troff/input.c (do_name_test): Return 0 if argument is empty.
16255         * troff/input.c (read_long_escape_name): Require closing ] to be
16256         at same input level as opening [.
16258         * troff/input.c (read_increment_and_escape_name): New function.
16259         (get_copy, process_input_stack): Use this for \n.
16261 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
16263         * troff/div.c (top_level_diversion::begin_page): Ignore the
16264         current value of page_number if !first_page_begun.
16266         * groff.c (main): Fix declaration of buf.
16268         * troff/input.c (do_name_test): New function.
16269         (token::next): Implement \A.
16270         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16271         (token::description, token::add_to_node_list, token::process):
16272         Handle TOKEN_ESCAPE.
16273         * troff/token.h: New token TOKEN_ESCAPE.
16275 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
16277         * pic/main.c (do_picture): Allow space before and after filename
16278         following `<'.  Check that the filename is not empty.
16280 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
16282         * Version 1.01 released. 
16284         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16286         * dvi/tmac.dvi: ftr HR to H.
16288         * macros/tmac.e: Round up computation of $r.
16290         * xditview/tmac.X:  Don't give up completely in compatibility mode.
16291         Use \n(.s instead of \n[.s].
16293         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16294         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16295         Add u to factors inside \s[...]. Rename frac to dvi-frac.
16296         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16297         short names in the char definitions.
16299         * ps/tmac.ps: Don't give up completely in compatibility mode.
16300         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16301         quote in front of \n(.s. Add u to factors inside \s[...].
16303 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
16305         * tty/tmac.tty: Call the nroff request.
16307         * macros/tmac.e ((x, )x):  Better definitions that work properly
16308         in a diversion.
16309         (@0, @1): Helper macros for (x.
16311         * macros/tmac.e ($s, hl): Use \l rather than \D.
16313         * tty/tmac.tty: Make it work better in compatibility mode.
16314         (pchar): Rename to tty-char.
16316         * macros/tmac.e (@E): New macro.
16317         (r, i, b, rb, bi): Use @E.
16319         * macros/tmac.e (@F): Don't use (;...) syntax.
16321         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
16322         it was modified for groff.
16324         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16326         * macros/tmac.e (<., .>): Removed.
16327         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16329         * macros/tmac.e: Remove check that groff is being used.
16331         * macros/tmac.e (@C): Change families only if using groff; turn
16332         compatibility mode off while changing familes. Save compatibility
16333         mode before changing families and restore it afterwards.
16335         * macros/tmac.e (@h): Remove test for offset + line length.
16337         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
16338         (lo, th, ac): Define to call @S instead of using als.
16340         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16341         the ratio of the vertical spacing to the point size in units
16342         expressed as a percentage.  Use these instead of $10r and $10R,
16343         Delete $10r and $10R.
16345         * lib/font.c (font::load): In default computation of space_width,
16346         divide by sizescale.  Use scale_round.
16348         * macros/tmac.an (TP): Don't call `nf'.
16349         (an-do-tag): Don't call `fi'.
16351 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
16353         * troff/input.c (process_input_stack): Handle the case where
16354         spaces at the beginning of an input line are followed by a
16355         newline.
16357 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
16359         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16360         * groff.sh: Use pic -x with the dvi device.
16362         * dvi/devdvi/FontMakefile (H): Don't use -s.
16364         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16365         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16366         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16367         in FONTS.
16369 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
16371         * ps/psfig.diff: New file.
16372         * ps/tmac.psfig: New file.
16374 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
16376         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16377         (]-): Don't call ref*do-tl.
16379         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16381         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16382         (fn@do-FS): Rename to fn*do-FS.
16384         * troff/input.c (transparent_translate): New function.
16385         (process_input_stack): Apply transparent_translate before calling
16386         diversion::transparent_output(unsigned char).
16388 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
16390         * troff/input.c (do_define_macro): Define the macro before calling
16391         skip_line.
16393         * xditview/Makefile: Add DEVICES variable.  Change install target
16394         to use this.
16396 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
16398         * groff.c (run_commands): Handle the possibility that there are
16399         child processes other than those forked by us.
16401 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
16403         * lib/string.c (string::append): New function.
16404         * lib/stringclass.h: Declare it.
16406 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
16408         * eqn/main.c (main): New option -N which sets
16409         no_newline_in_delim_flag. 
16410         (do_file): If no_newline_in_delim_flag is set don't allow newlines
16411         in delimiters.
16412         * groff.c (main): Pass -N on to eqn.
16413         (help, synopsis): Mention -N.
16414         * groff.sh: Implement -N.
16416 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
16418         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16419         (]-): Call ref*do-tl if ref*need-tl is non-zero.
16420         (XP): Allow as initializer.
16422 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
16424         * troff/env.c (environment::wrap_up_field): If field_spaces are
16425         non-zero and we have a current_tab, subtract padding from
16426         tab_distance.  If this makes tab_distance <= 0, use the next tab
16427         stop instead.  If there isn't any next tab or it's a left tab,
16428         wrap up the current tab.
16429         (environment::start_field): Initialize tab_precedes_field.
16430         (environment::wrap_up_tab): If there's a current field, update
16431         pre_field_width, field_distance and tab_precedes_field.
16432         * troff/env.h (environment::tab_precedes_field): New member.
16434 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
16436         * ps/ps.c (ps_printer::do_file): New function.
16437         (ps_printer::special): Bind to `file' special.
16438         (ps_printer::do_exec): Set ndefined_styles to 0.
16440 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
16442         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16443         Avoid stripping first character from the start of unrecognized
16444         escapes.  Use lex_error instead of error to report errors.
16445         * eqn/lex.c (get_token): Rework handling of escapes.
16446         (lex_error): Move declaration into...
16447         * eqn/eqn.h.
16449         * xditview/xditview.c (main): Make -page option work.
16451         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16453 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
16455         * macros/tmac.s (B2): Correct size of box.
16457 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
16459         * macros/tmac.s (B2): Postpone drawing the box until in the
16460         top-level diversion.
16462         * tty/tmac.tty: Add font translations for C, CR, CW.
16464         * groff.c (synopsis, help): Document -i.
16465         * groff.sh: Implement -i.
16467         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16468         Simplify the construction of SN.
16470         * troff/number.c (parse_term): Give `|' a higher precedence.
16471         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16472         accordingly.
16474         * macros/tmac.s (B2): Use par@finish instead of par@reset.
16476 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
16478         * lib/string.c (string::move): New function.
16479         * lib/stringclass.h: Declare it.
16481 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
16483         * troff/env.c (distribute_space): Add optional argument
16484         `force_forward'.
16485         (environment::wrap_up_field): Call distribute_space with
16486         `force_forward' argument of 1.
16488 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
16490         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16491         Inline it.  Move reallocation into...
16492         (string::grow1): New function.
16493         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16494         dependencies to include library header files.
16495         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16497 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
16499         * macros/tmac.s (@NH): Use the same number registers than -ms does
16500         for the heading level counters.  Use the same string that -ms does
16501         for the number for this heading.
16503 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
16505         * lib/new.c (operator new): Cast result of malloc to char *.
16507         * troff/input.c (spring_trap, lookup_request): Add assert that nm
16508         is not null.
16510 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
16512         * groff.c (main): Support -i.
16514 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
16516         * pic/pic.h: Include <osfcn.h>.
16518         * ps/ps.c: Add declaration of mktemp.
16520         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16521         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16522         argument as union wait *.
16523         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16524         argument to union wait *.
16526 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
16528         * tty/tmac.tty: Add definition of \(co.
16530         * pic/object.c (make_arc): Only increase radius when radius
16531         strictly less than d.
16532         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16533         more than once.
16535         * troff/env.c (environment::environment(symbol),
16536         environment::environment(const environment *)):  Initialize
16537         input_trap_count.
16539 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
16541         * tbl/main.c (main): Add exit(0).
16543         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16545         * pic/main.c (main):
16546         * eqn/main.c (main):
16547         * tbl/main.c (main):
16548         * etc/soelim.c (main):
16549         * driver/printer.c (printer::~printer):
16550         * troff/node.c (real_output_file::~real_output_file,
16551         real_output_file::flush):  Check for errors on stdout.
16553         * most files: Add 1991 to copyright notice.
16555         * macros/tmac.s: Don't test \n(.x and \n(.y.
16557         * troff/input.c (token::next): Rename `escape_char' label to
16558         `handle_escape_char' and `normal_char' label to
16559         `handle_normal_char'.
16561 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
16563         * groff.c (main, synopsis, help): Support -a option.
16564         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
16565         to trflags while parsing options.
16567 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
16569         * troff/number.c (parse_term): With `m', `M' and `n' scale
16570         indicators, convert scale factor to hunits before scaling.
16572 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
16574         * lib/font.c (scale_round): Better test for overflow when n is
16575         negative.
16577 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
16579         * tbl/main.c (process_format): Add second argument of type
16580         options*. Change callers.  Allow opt->tab_char as well as '\t'
16581         between format items.
16583 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
16585         * macros/tmac.an (PD): With no arguments, make sure register PD is
16586         at least \n[.V].
16587         (TH): Call PD with no argument, instead of setting register PD
16588         directly.
16590 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
16592         * Version 1.00 released.
16594 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
16596         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16598         * dvi/devdvi/DESC: Mount CW instead of CR.
16600         * dvi/tmac.dvi: Add definition of \(tm.
16602         * dvi/devdvi/texsy.map: Add lh, and rh.
16603         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16604         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16606         * dvi/devdvi/FontMakefile: Generate H from cmss10.
16607         * dvi/devdvi/Makefile: Install H.
16608         * dvi/devdvi/H: New file.
16610 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
16612         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16613         be 0.
16615 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
16617         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16619         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16621         * macros/tmac.s (@EN): Handle the case where the equation is empty
16622         but the label is not.
16624 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
16626         * troff/groff.h: New warning category WARN_SPACE.
16627         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16628         WARN_SPACE to warning_table.
16629         (interpolate_macro): Give a warning of type WARN_SPACE if the name
16630         is longer than two characters and is not defined, but the first
16631         two characters do make a defined name.
16633         * PROBLEMS: New file.
16635         * CHANGES: New file.
16636         * README-0.6, README-1.00: Deleted.
16638         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16639         * xditview/devX75/Makefile: Make devX75-12.
16640         * xditview/devX100/Makefile: Make devX100-12.
16642         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16643         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16645 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
16647         * README-0.7: Rename to README-1.00.
16649         * macros/tmac.pic: New file.
16650         * macros/Makefile (install.nobin): Install tmac.pic.
16652 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
16654         * troff/env.c (hyphen_word): Correct the test for whether the
16655         token is a hyphen.  Reset npos to 0.
16657         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16659 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
16661         * macros/tmac.s (ds*common-end): Call par*reset.
16662         (PE): Likewise.
16663         (par@reset-indent): Deleted.
16665         * macros/tmac.s (@IP): Divert the label.
16667 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
16669         * xditview/draw.c (setGC): Use a line width of .1m rather than
16670         .04m by default; round rather than truncate value.
16672         * tbl/table.c (class empty_entry): New class.
16673         (empty_entry::empty_entry, empty_entry::line_type): New functions.
16674         (table::add_entry): Represent empty entries by objects of type
16675         empty_entry.
16676         (table_entry::line_type): Return -1.
16677         (table::determine_row_type): Ignore entries with line_type 0.
16678         Treat type -1 as non-lines.
16680 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
16682         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16683         macros/tmac.s: Rename \(-d to \(Sd.
16685 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
16687         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16688         * xditview/libXdvi/DviChar.c: Likewise.
16689         * dvi/devdvi/texsy.map: Add `<<', `>>'.
16691 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
16693         * troff/div.c (top_level_diversion::begin_page): Call
16694         init_output() if the_output is 0.
16696 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
16698         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16699         ESCAPE_c.
16700         (get_copy): Turn \E into ESCAPE_E.
16701         (token::process, asciify): Handle ESCAPE_E.
16703         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16704         (RD): New macro.
16705         (DS): Implement `.DS R'.
16707 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
16709         * macros/tmac.s (FS): New macro.
16711         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16713         * macros/tmac.s (cov*tl-init): Remove after first execution
16714         instead of aliasing to @nop.  Call top of page macro explicitly
16715         instead of setting trap; call @init first.  Set pg@top as top of
16716         page macro.
16717         (cov*auto-init): Deleted.  Set cov*tl-init instead of
16718         cov*auto-init as top of page trap. 
16719         (TL, LP): Do a break instead of calling cov*tl-init.
16720         (cov*print): With RP format but no TL, alias FS and FE to @FS and
16721         @FE; in this case also give a warning and always start another
16722         page. No need to set pg@top here.
16723         (cov*tl-init): Rename to cov*first-page-init.
16725         * macros/tmac.s (RP): Do `.pn 0'.
16726         (cov*tl-init): With RP format don't do `.pn 0'.
16728         * macros/tmac.s (pg@cs-top): Set no space mode.
16730         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16731         (cov*ab-init): Alias TL, AU and AI to these.
16733 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
16735         * macros/tmac.s (@EQ): Move the space before the equation into @EN
16736         (@EN): Do nothing unless \n[dl] is > 0.
16738 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
16740         * pic/object.c (ellipse_object::radius): New function.
16742         * VERSION: Change version to 0.7.
16744         * tbl/table.c (block_entry::do_divert): Declare return type as
16745         void.
16746         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16748 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
16750         * troff/column.c: New file.
16751         * troff/Makefile: Corresponding changes.
16753         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
16754         Friend of vunits.
16756         * troff/div.c (top_level_diversion::space): If the space causes
16757         the first-page transition and springs a trap, truncate the space
16758         to 0.
16760 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
16762         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16763         the document.
16765         * pic/troff.c (troff_output::line_thickness,
16766         troff_output::set_fill): Do a horizontal motion to compensate for
16767         the width of the \D escape sequence.
16769 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16771         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16772         (not X75).
16774         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16775         to printf.
16777         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16778         Supply empty definition.
16779         (text_entry::simple_print, simple_text_entry::simple_print):
16780         Delete declarations.
16781         (table::add_entry): Represent empty entries by objects of type
16782         `simple_entry'.
16784 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16786         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16788         * tbl/table.c (left_text_entry::add_tab): New function.
16790         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16791         initialize like LP.
16793 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16795         * troff/env.c (environment::start_field): Give an error message if
16796         there is no next tab.
16798 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16800         * troff/env.c (hyphenate): Skip initial elements with zero
16801         hyphenation code.
16803         * macros/tmac.s (par@init): Keep VS in points rather than units.
16805 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16807         * pic/main.c (main): Implement `-c' option.
16808         * pic/output.h: Declare make_tpic_output().
16809         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16810         protected.
16811         (tpic_output): New class.
16812         (tpic_output::tpic_output, tpic_output::set_pen_size,
16813         tpic_output::command, make_tpic_output): New functions.
16815 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16817         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16818         if they're not already defined.
16819         * tbl/table.c (init_output): Don't test \n(.g.
16821         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16822         `d', `r' and `c' conditions even in compatibility mode.
16824 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16826         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16827         box.
16829 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16831         * troff/env.h (environment::prev_line_interrupted): New member.
16832         (environment::get_prev_line_interrupted): New function.
16833         * troff/env.c (environment::newline): Set prev_line_interrupted.
16834         (environment::environment(const environment *),
16835         environment::environment(symbol)): Initialize
16836         prev_line_interrupted.
16837         * troff/input.c (process_input_stack): Don't give special
16838         treatment to space and newline at the beginning of the line if the
16839         previous line was interrupted.
16841 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16843         * eqn/eqn.y: Disallow PRIME by itself.
16844         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16845         PRIME.
16846         (def_table): Remove definition of '.  Define prime to be `.
16848         * eqn/eqn.y: Split off part of rule `script' into a new rule
16849         `nonsup'.
16851 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16853         * macros/tmac.s ({, }): New string aliases.
16855 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16857         * README-0.7: New file.
16859 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16861         * macros/tmac.s: New file.
16862         * man/groff_ms.man: New file.
16863         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16864         * Makefile.bd: Similarily.
16865         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16866         definition of TMAC_S.
16867         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16868         * macros/TODO: New file.
16870 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16872         * troff/env.c (right_justify): New function.
16873         (init_env_requests): Bind this to request "rj".
16874         (center_lines): Set right_justify_lines to 0. If we get a bad
16875         integer, center 1 line.
16876         (environment::environment(symbol), environment::environment(const
16877         environment *)): Initialize right_justify_lines.
16878         (environment::get_right_justify_lines): New function.
16879         (init_env_requests): Bind this to number_register ".rj".
16881         * troff/env.c (environment::choose_breakpoint): Implement
16882         hyphenation_margin and hyphenation_space.
16883         (environment::get_hyphenation_space,
16884         environment::get_hyphenation_margin): New functions.
16885         (init_env_requests): Bind these to .hys and .hym.
16886         (hyphenation_space_request, hyphenation_margin_request): New
16887         functions
16888         (init_env_requests): Bind these to hys and hym.
16889         (environment::environment(symbol), environment::environment(const
16890         environment *)): Initialize hyphenation_margin and
16891         hyphenation_space.
16892         * troff/env.h: Corresponding changes to class environment.
16894 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16896         * troff/div.c (blank_line): Always do a break.
16898         * eqn/box.c (do_text): Turn off escapes while appending text to
16899         string.
16901 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16903         * troff/input.c (while_break_request, while_continue_request): New
16904         functions.
16905         (init_input_requests): Bind these to "break" and "continue".
16906         (while_depth, while_break_flag): New variables.
16907         (while_request): Update while_depth.  Break out of loop if
16908         while_break_flag is set.
16910 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16912         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16913         rather than 0.
16915 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16917         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16919         * stringify: New file.
16920         * Makefile (groff.o): Use stringify.
16922         * xditview/tmac.X: Remove definition of \(rn.
16923         * xditview/libXdvi/DviChar.c: Remove radicalex from
16924         Adobe_symbol_map.
16926 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16928         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16929         (alphabetic_block_entry::alphabetic_block_entry,
16930         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16931         New functions.
16932         (block_entry::divert): Split off body into ...
16933         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16934         from the line length; also update the span width to dl+2n, and the
16935         alphabetic span width to dl.
16937         * driver/input.c (do_file):  While reading argument to D command,
16938         when expanding buffer, multiply szp by sizeof(int) rather than 2
16939         in the argument to memcpy.
16941         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16942         width of alphabetic columns.
16944 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16946         * troff/node.c (lookup_family): Supply second argument to lookup.
16948         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16949         search, return immediately if v is 0.
16951         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16952         (troff_output::start_picture): Set this reg.
16953         (troff_output::end_picture): Remove this reg
16954         * eqn/box.c (box::extra_space): Don't produce `\x's if
16955         EQN_NO_EXTRA_SPACE_REG is defined.
16957         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16958         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16959         character.
16961 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16963         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16964         requests.
16966         * troff/div.c (top_level_diversion::top_level_diversion):
16967         Initialize page_number to 0.
16969 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16971         * groff/troff (environment::environment(const environment *)):
16972         Initialize name to e->name, rather than "anonymous".
16974 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16976         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16977         requested_page.  Split middle part into ...
16978         (FindPage): New function.
16979         (SetValues): If we don't yet know the last page, and the requested
16980         page is greater than the current page, call FindPage.
16981         Update the font_map_string before doing this.
16983         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16984         Translate \(lh and \(rh into left and right double arrows.
16986         * troff/node.c (class hyphen_inhibitor_node): New class.
16987         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16988         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16989         hyphen_inhibitor_node::type,
16990         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16991         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16992         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16993         word.
16995 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16997         * troff/node.h (dummy_node::get_hyphenation_type,
16998         transparent_dummy_node::get_hyphenation_type):  Declare them.
16999         * troff/node.c: (dummy_node::get_hyphenation_type,
17000         transparent_dummy_node::get_hyphenation_type): New functions.
17002 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
17004         * xditview/libXdvi/draw.c: If M_PI not defined after including
17005         math.h, then define it.
17007         * xditview/Makefile: Add definition of AR. Pass it to the submake
17008         in libXdvi.
17009         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
17011 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
17013         * troff/dictionary.h (object_dictionary::alias): Declare return
17014         value as int.
17015         * troff/dictionary.c (object_dictionary::alias): Return non-zero
17016         if the old name was defined.
17017         * troff/input.c (alias_macro): Give a warning if the old name was
17018         not defined.
17019         * troff/reg.c (alias_reg): Likewise.
17021 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
17023         * troff/input.c (token::next): Delete implementation of \R.
17025         * macros/Makefile: Strip comments from tmac.e while installing it.
17027         * troff/input.c: New variable `nroff_mode'.
17028         (troff_request, nroff_request): New functions.
17029         (init_input_requests): Bind `troff' and `nroff' to troff_request
17030         and nroff_request.
17031         (do_if_request): Compute results of t and n conditions from
17032         nroff_mode.
17034         * text/text.c (split_text): Fix typo in >=.
17036         * eqn/lex.c: Add definition of `==' to def_table.
17038 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
17040         * pic/tex.c (tex_output::start_picture): Change the definitions of
17041         \graph and \graphtemp so that they work properly with Plain TeX.
17043         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
17044         argument to `ar' is not less than the first.
17046         * pic/pic.y: Allow a comma between elements of the variable list
17047         in the argument to `reset'.
17049         * pic/object.c (arc_object::arc_object): Fix computation of
17050         radius.
17052         * eqn/main.c (main): Add exit(0).
17054 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
17056         * troff/div.c (begin_page): Test no_space_mode after doing the
17057         break, but still push the page ejector cookie before doing the
17058         break.  Also set the next page number after doing the break.
17059         
17060         * xditview/xditview.c (NewFile): Don't set the title and icon name
17061         if this is the first file and its name is `-'.
17062         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
17063         the X75 and X100 devices.
17064         (main): If a device has the XT_OPTION flag set and there's exactly
17065         one file argument, pass the driver -xrm and -title options to set
17066         the icon name and window title to the name of the file.
17068         * troff/env.c (environment_switch): If there was an argument but
17069         it wasn't a valid number or name, then pop an environment but
17070         don't give an error message on underflow.
17072         * troff/number.c (start_number): Correct spelling in error message.
17074         * troff/input.c (token::delimiter): Don't print an error message
17075         if err is false.
17077         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
17078         ParseDrawFunction if dw->display_enable is true.
17080 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
17082         * pic/pic.y: Parse text positioning like normal attributes, so as
17083         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
17084         positioning attribute.
17086 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
17088         * tbl/main.c (process_data): When in state START while reading a
17089         text block, don't change to state MIDDLE if c is a newline.
17091 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
17093         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
17094         so as to avoid shadowing parameter.
17096 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
17098         * tbl/table.c (trim_space): Deleted.
17099         (table::add_entry): Don't call trim_space.
17101 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
17103         * VERSION: Change version to 0.6.
17105         * troff/number.c (parse_expr): Make == work.
17107 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
17109         * man/grog.man: New file.
17110         * man/Makefile: Add grog.n to MAN1PAGES.
17111         * etc/grog.sh: New file.
17112         * etc/Makefile: Install grog.sh as grog.
17114 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
17116         * troff/input.c (token::next): Implement \E.
17118 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
17120         * xditview/tmac.X: Change font translations to match tmac.ps.
17122         * troff/input.c (non_empty_name_warning): Don't give a warning if
17123         `\{' terminates the name.
17125 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
17127         * ps/devps/symbol.diff: New file.
17128         * ps/devps/FontMakefile: Mention symbol.diff.
17130 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
17132         * troff/node.c (font_position): Use get_long_name to read the
17133         external_name.
17135         * troff/env.c (environment_switch): If we get a number that's < 0
17136         or >= NENVIRONMENTS, treat it like a name.
17137         Change NENVIRONMENTS to 10.
17139         * troff/groff.h: Remove definition of FONTS_MAX.
17140         * troff/node.h (class font_family): Make map a pointer instead of
17141         an array. Add a map_size member. Make it a class. Make nm const
17142         and public. Make invalidate_fontno a friend.
17143         * troff/node.c: Define font_table_size. Make font_info a pointer
17144         rather than an array.
17145         (class troff_output_file): Allocate font_position dynamically. Add
17146         nfont_positions member.
17147         (troff_output_file::set_font): Grow font_position if necessary.
17148         (troff_output_file::~troff_output_file): Delete font_position.
17149         (troff_output_file::troff_output_file): Allocate font_position.
17150         (grow_font_table): New function.
17151         (troff_output_file::really_begin_page,
17152         troff_output_file:really_copy_page): Use nfont_positions rather
17153         than FONTS_MAX.
17154         (mount_font_no_translate, mount_style): Call grow_font_table if
17155         necessary.
17156         (font_family::font_family): Allocate map.
17157         (font_family::make_definite): Grow map if necessary. Use
17158         font_table_size instead of FONTS_MAX.
17159         (font_family::~font_family): New function.
17160         (invalidate_fontno): Use font_family::map_size.
17161         (get_fontno, env_space_width, env_half_narrow_space_width,
17162         env_narrow_space_width, symbol_fotno, is_good_fontno,
17163         get_bold_fontno, make_glyph_node): Use font_table_size rather than
17164         FONTS_MAX.
17165         (next_available_font_position): Never return 0.
17167 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
17169         * ps/tmac.ps: Add font translations for compatibility with dpost.
17171 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
17173         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
17174         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
17175         Move definitions baseline_sep, shift_down, column_sep,
17176         matrix_side_sep into...
17177         * eqn/box.c: Add them to param_table.
17178         * eqn/pbox.h: Add declarations to pbox.h.
17180         * troff/input.c (set_string): Cast value to unsigned char *.
17182         * troff/token.h (process_input_stack): Declare it static before
17183         declaring it a friend.
17185 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
17187         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
17188         and bottom.
17189         * dvi/devdvi/EX: Regenerate.
17191         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
17192         transparent.
17194 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
17196         * eqn/lex.c: In defaults_table, make definition of `dot' call
17197         `dot_def'.  Don't explicitly make it roman.  Similarily for other
17198         accents.
17200         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
17201         argument.
17202         (for_input::get, for_input::peek): Use this.
17203         (do_for): Add by_is_multiplicative argument.
17204         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
17205         Change semantic value of optional_by to be a double plus a flag
17206         saying whethet the by clause is multiplicative.
17208         * eqn/lex.c (get_delimited_text): Remember location of start of
17209         definition.  Improve error handling when EOF is encountered.
17211         * lib/font.h: Rename handle_x_command to
17212         handle_unknown_font_command.
17213         * lib/font.c (font::load): Call handle_unknown_font_command for
17214         any unknown command in the font description file.  Don't call
17215         handle_x_command. Include the name of the command in the argv.
17216         Improve message for unknown command after kernpairs or charset
17217         command.
17218         * ps/ps.c (ps_font::handle_x_command): Rename to
17219         handle_unknown_font_command.  Remove message about `x download'
17220         command.  Give error message for wrong number of arguments.
17221         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
17222         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
17223         handle_unknown_font_command. Give an error message for wrong
17224         number of arguments.  Rename design_size to designsize.
17225         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
17226         checksum', `designsize' instead of `design_size'.
17228 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
17230         * eqn/*.[chy]: Change underaccent to uaccent.
17232         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
17233         give it the same precedence as ACCENT.
17234         * eqn/other.c (make_underaccent_box): New function.
17235         * eqn/box.h: Declare it.
17236         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17237         def_table.
17239 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
17241         * pic/pic.y (reset_all): New function. Called in rule for RESET.
17242         (parse_init): Call reset_all.
17243         (define_variable): When defining scale reset only those
17244         pre-defined variables that are scaled.
17245         (defaults_table): Add `scale' as non-scaled value.
17247         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17248         together with the text; allow any number of positioning words;
17249         allow center as a positioning word.
17251         * pic/object.c (output::compute_scale): Get picture maximum height
17252         and width from variables called maxpswid and maxpsht.
17253         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17255 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
17257         * pic/object.c (object_spec::make_text): Multiply textht by number
17258         of text items.
17260         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17261         occur.
17262         (do_sprintf): New function.
17263         (pic.gperf): Add sprintf token.
17264         (text, sprintf): New rules.
17266         * pic/pic.y: `rand()' with no arguments returns a random number
17267         in the range [0,1).
17269         * pic/pic.y: Allow a bare expression to be an attribute: change
17270         precedences to support this.  Change optional_ordinal rule to
17271         optional_ordinal_last to avoid reduce/reduce conflict.
17272         * pic/object.c (object_spec::object_spec): Initialize direction.
17274         * pic/pic.y: Implement ^ operator meaning exponentiation.
17276         * troff/node.h: Add default argument to mount_font.
17277         * troff/node.c (font_position): Read an optional third argument
17278         giving the external_name.
17279         (mount_font): Add optional argument giving the external_name.
17280         (mount_font_not_translate): Have additional argument giving
17281         external name.  Use this name to load the font.  Pass both names
17282         to font_info::font_info.
17283         (font_info::font_info): Have additional argument giving
17284         external_name.
17285         (class tfont): New member external_name.
17286         (font_info::get_tfont): Use external name to construct tfont_spec.
17288 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
17290         * eqn/lex.c (init_table): Add argument giving device.  Define
17291         name of device to be "1".
17292         (do_ifdef): Counts as true if the argument has been defined with
17293         `define'.
17294         * eqn/main.c (main): Call init_table with device argument. Make
17295         device local to main.
17296         * eqn/eqn.h: Change declaration of init_table. Remove declaration
17297         of device.
17299         * pic/lex.c (get_delimited): Allow text to be delimited by
17300         matching {}s.  Don't recognize ending delimiter within a string.
17302         * troff/input.c (get_delim_name): New function.
17303         (token::next): Implement \C.
17305         * lib/font.c (font::load): Grok ---.  Add an alias for each
17306         character based on its code.
17307         (font::get_code_width): Deleted.
17308         * lib/font.h (class font): Declare font::number_to_index().
17309         Remove declaration of font::get_code_width.
17310         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17311         to indices of named characters.
17312         (font::number_to_index): New function.
17313         * troff/input.c (font::number_to_index): New function.
17314         (get_charinfo_by_number, charinfo::get_number,
17315         charinfo::set_number): New functions.
17316         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17317         (token::process, token::description, token::get_char,
17318         token::add_to_node_list, token::operator==): Handle
17319         TOKEN_NUMBERED_CHAR.
17320         * troff/charinfo.h: Declare get_charinfo_by_number,
17321         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
17322         charinfo class.
17323         (charinfo::numbered): New function.
17324         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17325         * troff/env.h (class environment): Remove declaration of ...
17326         * troff/env.c (environment::make_numbered_char_node): Deleted.
17327         * troff/node.c (make_numbered_node): Deleted.
17328         (class numbered_glyph_node): Remove.
17329         (troff_output_file::put_char_width, troff_output_file::put_char):
17330         Handle numbered chars.
17331         (troff_output_file::numbered_char): Removed.
17332         (tfont::get_code_width): Removed.
17333         (make_glyph_node): Don't search special fonts for numbered
17334         characters.
17335         * troff/node.h: Remove declaration of make_numbered_node.
17336         * driver/input.c (do_file): Handle N command.
17337         * driver/printer.h: Add declaration of ...
17338         * driver/printer.c (printer::set_numbered_char): New function.
17339         * dvi/tfmtodit.c (main): Generate unnamed entries.
17340         * ps/devps/afmtodit: Likewise.
17341         * xditview/xtotroff.c (MapFont): Likewise.
17342         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17344         * tbl/main.c (process_format): If multiple widths are specified
17345         for a column but all the widths are the same, don't give an error
17346         message.
17348         * tbl/table.c (table::do_row): If the current row is all lines and
17349         the stuff doesn't contains a line, mark the top of the row after
17350         printing stuff before the row.  If the current row is not all
17351         lines and the stuff doesn't contain a line, don't unnecessarily
17352         mark the top of the row before printing the stuff.
17353         
17354 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
17356         * troff/groff.h: Remove MAX_PATH.
17357         * troff/input.c (open_file): Dynamically allocate space for the
17358         path.
17359         (open_mac_file, process_macro_file): Corresponding changes.
17361 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
17363         * troff/node.h (class output_file): Make copy_file pure.  Add
17364         vspace method ifdef COLUMN. Add is_printing method.
17365         * troff/node.c: Add class printing_reg. Add class
17366         real_output_file. Derive other output_file classes from
17367         real_output_file; in these classes rename begin_page to
17368         really_begin_page, print_line to really_print_line, copy_file to
17369         really_copy_file, transparent_char to really_transparent_char.
17370         Move output_file::flush to real_output_file. Add printing member
17371         to class output_file.
17372         * troff/div.h: Remove printing member from top_level_diversion.
17373         Add vspace member function to class diversion ifdef COLUMN. Add
17374         some declarations ifdef COLUMN.
17375         * troff/div.c (top_level_diversion::copy_file,
17376         top_level_diversion::transparent_output,
17377         top_level_diversion::output): Don't test printing member before
17378         output.
17379         * troff/input.c: Handle initial variable_space_request ifdef
17380         COLUMN.
17381         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17382         but comment it out.
17384 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
17386         * troff/div.c (diversion::need): Make any space forced.  If we
17387         sprung a trap, set truncated_space to minus the distance to the
17388         trap and set needed_space to the amount that was needed.
17389         (top_level_diversion::space): A forced space turns no_space_mode
17390         off.
17391         (class constant_vunits_reg): New class.
17392         (init_div_requests): Implement number registers .trunc and .ne
17393         using constant_vunits_reg.
17394         (class truncated_space_reg): Deleted.   
17396         * troff/div.h: Don't have a no_space_mode member in diversion.
17397         Instead have it in top_level_diversion.
17398         * troff/div.c (diversion::diversion): Don't initialize
17399         no_space_mode.
17400         (top_level_diversion::top_level_diversion): Initialize
17401         no_space_mode.
17402         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17403         (macro_diversion::output): Don't clear no_space_mode.
17405         * troff/input.c (diverted_space_node::reread): Don't call
17406         environment::do_break.  In fill mode, act like a blank line.
17407         (diverted_copy_file_node::reread): Don't call
17408         environment::do_break.
17410         * troff/div.c (blank_line): New function.
17411         * troff/div.h: Declare it.
17412         * troff/input.c (process_input_stack): Call it.
17414         * troff/div.c (truncated_space_reg::get_string): New function.
17415         (init_div_requests): Bind to .trunc.
17416         (space_request, top_level_diversion::space,
17417         top_level_diversion::output, macro_diversion::space,
17418         macro_diversion::output): Update truncated_space.
17419         (macro_diversion::output): Redo calculations when trap sprung.
17420         (macro_diversion::output, macro_diversion::space): No need for
17421         trap_flag.
17423         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17424         after truncating post line spacing.
17426 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
17428         * ps/devps/prologue (MF, SF): Make them work even if setfont is
17429         defined as a procedure rather than as an operator.
17431 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
17433         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17435 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
17437         * troff/div.c (top_level_diversion::output): Merge
17438         output_file::print_line and output_file::end_of_line member
17439         functions.
17440         * troff/div.h (class output_file):
17441         * troff/node.c (troff_output_file::print_line,
17442         troff_output_file::end_of_line, output_file::end_of_line,
17443         ascii_output_file::print_line, suppress_output_file::print_line):
17444         Corresponding changes.  
17446 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
17448         * troff/input.c (token::next): Don't give a warning for `\.'.
17450         * troff/env.c (environment::get_center_lines): New function.
17451         (init_env_requests): Bind number register .ce to it.
17452         * troff/env.h: Declare it.
17453         * tbl/table.c (table::init_output): Define reset macro to restore
17454         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
17455         Then do .ce 0.
17456         (table::print): If center option not given, then imply center
17457         option if SAVED_CENTER_REG > 0.
17459 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
17461         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17462         Troff.ps from DOWNLOAD.
17463         
17464         * troff/Makefile: Change comment in DEFINES to avoid confusing
17465         System V make.
17467         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17468         code.  Don't try to catch errors with stopped.
17469         (check_line_lengths): New function.
17470         * ps/devps/prologue (EXEC): Deleted.
17471         (EBEGIN, EEND): New procedures.
17473 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
17475         * troff/input.c: Include request.h before node.h.
17476         * troff/node.c: Likewise.
17477         * troff/env.c: Likewise.
17478         * troff/div.c: Likewise.
17479         * troff/node.h (class special_node): Store argument as a macro
17480         rather than a char *.
17481         * troff/node.c (special_node::special_node, special_node::copy):
17482         Grok this.
17483         (special_node::~special_node): Deleted.
17484         (special_node::tprint): Deleted.
17485         (special_node::tprint_start, special_node::tprint_end,
17486         special_node::tprint_char): New functions.
17487         (troff_output_file::special): Deleted.
17488         (troff_output_file::start_special, troff_output_file::end_special,
17489         troff_output_file::special_char): New functions.
17490         * troff/input.c (special_node::tprint): New function.
17491         (do_special): Use macro not char *.
17492         (do_transparent_macro): Deleted.
17493         (token::next): Don't call do_transparent_macro.
17495         * troff/input.c (token::next): Add 'Y' case.
17496         (do_transparent_macro): New function.
17497         * troff/node.c (troff_output_file::special): Handle newlines with
17498         argument using new continuation convention.
17499         * driver/input.c (get_string): Cope with continuation convention.
17500         (do_file): Don't call skip_line after calling get_string(1).
17501         * ps/ps.c (ps_printer::special, ps_printer::do_import,
17502         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17503         arg.
17504         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17505         with +.
17507 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
17509         * troff/input.c (asciify): By default, illegal input characters
17510         should return empty string.
17512         * troff/input.c (copy_file): Handle first page transition like title.
17513         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17515         * troff/input.c (token::next): Improve error message for EOF after
17516         escape character.
17517         (input_char_description): New function.
17518         (get_char_for_escape_name): Use input_char_description.
17519         (token::next): Warn about unrecognized escape sequences.
17520         (warning_table): Add WARN_ESCAPE.
17521         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17522         accordingly.
17524         * troff/token.h: Remove declaration of process_input_stack.
17526         * troff/input.c: Remove declaration of init_hyphen_requests.
17527         * troff/request.h: Correct spelling in declaration of same.
17529         * troff/input.c (token::next): Check whether escape_char is 0.
17531 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
17533         * groff.c (main, usage, help): Implement -P and -L options.
17534         * groff.sh: Likewise.
17536         * troff/input.c (token::next): Use some gotos to avoid code
17537         duplication.
17539         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17540         Avoid calling symbol::symbol if name empty.
17542 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
17544         * troff/input.c (init_input_requests): Make \n(.x return the major
17545         version number and \n(.y return the minor version number.
17546         * troff/Makefile: Construct file majorminor.c defining
17547         major_version and minor_version automatically from ../VERSION.
17549         * troff/node.c (class glyph_node): Make operator new and operator
17550         delete public.
17551         (class ligature_node): Similarily.
17553         * troff/input.c (operator==(const macro &, const macro &)): New
17554         function.
17555         (non_interpreted_node::same): Use this.
17556         (string_iterator::string_iterator): Make macro& argument const.
17558         * troff/input.c (input_iterator::get): New function. Don't make
17559         asciify_macro or class non_interpreted_node friends of class
17560         input_iterator.
17561         (non_interpreted_node::interpret): Use input_iterator::get.
17562         (asciify_macro): Likewise.
17564         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17565         ~non_interpreted_node): Deleted.
17566         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17567         Deleted.
17569         * troff/symbol.h: Make all symbol member functions const.
17571         * lib/strtol.c: New file.
17572         * lib/Makefile: Add strtol.c.
17573         * Makefile: Define STRTOL as strtol.o to include strtol in
17574         libgroff.a.
17576 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
17578         * pic/troff.c (troff_output::simple_circle): Divide by scale.
17580 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
17582         * troff/input.c (do_special): Use input_level.
17584         * troff/token.h (TOKEN_BACKSPACE): New token.
17585         (token::backspace): New function.
17586         * troff/input.c (token::description, token::next, token::process):
17587         Grok TOKEN_BACKSPACE.
17588         (do_special): Turn TOKEN_BACKSPACE back into \b.
17590         * troff/token.h (token::leader): New function.
17591         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17593         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17595         * troff/input.c (do_special): Use token::description in error
17596         message.
17598 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
17600         * troff/input.c (decode_args): Combine quoted and
17601         quote_input_level variables. Make it a for (;;) loop.
17603         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17605         * troff/input.c (read_long_escape_name): The test for whether to
17606         expand buffer was off by 1.
17607         (read_string): Similarily.
17609 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
17611         * troff/input.c: Use `const int' rather than `static const int'.
17613         * troff/div.h (diversion::copy_file): Declare as pure virtual.
17614         (macro_diversion::copy_file): New function.
17615         * troff/node.h: New class diverted_copy_file_node.
17616         * troff/node.c: Implement it.
17617         * troff/input.c (copy_file): Use diversion::copy_file. Handle
17618         first page transition by pushing a diverted_copy_file_node.
17619         * troff/input.c (token::next, process_input_stack): Don't handle
17620         COPY_FILE_REQUEST.
17622 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
17624         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17625         whether space widths need adjusting.
17627         * troff/charinfo.h: Generalize translated_to_space to
17628         special_translation so as to allow translation to \&.
17629         * troff/input.c (translate): Allow translation to \&.
17630         (charinfo::*): Corresponding changes.
17631         * troff/node.c (make_node, node::add_char): Corresponding changes.
17632         * troff/node.h (dummy_node::dummy_node): Allow optional first
17633         argument.
17635         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17636         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17637         TOKEN_REQUEST.
17638         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17639         TOKEN_REQUEST with an argument of TITLE_REQUEST.
17640         (token::process): Grok that.
17641         * troff/input.c (copy_file): Handle first page transition like
17642         title by pushing a COPY_FILE_REQUEST cookie.
17643         (token::next, process_input_stack): Grok that.
17644         * troff/node.h (output_file::copy_file): Add x and y arguments.
17645         Make it non-pure.
17646         * troff/div.c (top_level_diversion::copy_file): Supply them.
17647         * troff/node.c (troff_output_file::copy_file): Add x and y
17648         arguments; moveto specified position.  Invalidate font_position
17649         array after copying file.
17650         (output_file::copy_file): New function.
17651         (suppressed_output_file::copy_file, ascii_output::copy_file):
17652         Removed.
17653         * troff/input.c (transparent_file): New function.
17654         (init_input_requests): Bind to "trf".
17655         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17656         (process_input_stack): Likewise.
17658         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17660         * troff/node.c (init_node_requests): New number registers .kern
17661         pointing to global_kern_mode, and .lg pointing to
17662         global_ligature_mode.
17664         * troff/node.c (ligature): Don't change it if we get a bad
17665         integer.
17667         * troff/input.c (do_define_string): Don't strip tabs.
17669         * troff/input.c (asciify_macro): Make the string_iterator auto.
17671         * troff/node.c (init_font_requests): Rename to...
17672         (init_node_requests):
17673         * troff/node.h: Change declaration.
17674         * troff/input.c (main): Change call.
17676         * troff/input.c (node::reread, diverted_space_node::reread): New
17677         methods.
17678         (process_input_stack): Call reread rather than
17679         get_diverted_space_node.
17680         * troff/node.c (node::get_diverted_space_node,
17681         diverted_space_node::get_diverted_space_node): Removed.
17682         * troff/node.h: Declare reread methods instead of
17683         get_diverted_space_node methods. Make `n' member private.
17684         * troff/input.c: (token::diverted_space): Removed.
17685         * troff/token.h: Removed declaration.
17686         
17688 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
17690         * eqn/script.c (script_box::compute_metrics): Don't let
17691         SUP_RAISE_FORMAT become negative.
17693         * tbl/table.c (table::do_row): Entries that don't end in the
17694         this row shouldn't make the row non-blank.
17695         
17696         * tbl/table.c (table::make_columns_equal): Only set the width of
17697         columns which are marked as equal.
17698         
17699         * tbl/main.c (process_data): Before issuing excess data error,
17700         if last character was a newline unget it; then get it again after
17701         the error.  Also include the contents of the entry in the message.
17703         * groff.c: New file.
17704         * Makefile: Build groff from groff.c.  Make it possible to use
17705         either groff.sh or groff.c as groff.
17706         * Makefile.bd: Similarily.
17708 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
17710         * groff.sh: Don't delay expansion of $@ in assignment to files.
17711         Remove occurrences of \".
17713 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
17715         * all Makefiles: Simplify and rearrange.
17717         * Makefile: Handle fmod like malloc.
17718         * lib/Makefile: Similarily.
17719         * lib/fmod.c: Remove #ifdef NEED_FMOD.
17721         * Makefile: Rename OPTIMISE to OPTIMIZE.
17723         * groff.sh: Remove assignment to PATH.
17724         * Makefile: Remove SHPATH variable.
17725         * Makefile.bd: Similarily.
17727         * groff.sh: Add -V option to print the pipeline instead of
17728         executing it.
17730 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
17732         * lib/font.c: Split off file searching into ...
17733         * lib/fontfile.c: New file.
17735         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17737 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
17739         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17740         Also change misleading comment.
17741         (table::do_vspan): Change similarily misleading comment.
17742         * tbl/main.c (process_data): A format row with an explicit `s'
17743         uses up a data line, even if all the other columns are `_' or `='.
17745         * troff/input.c (token::description): Fix description of
17746         TOKEN_DUMMY and TOKEN_EMPTY.
17748 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
17750         * groff.sh: Fix description of -Z in help message.
17752 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
17754         * pic/object.c (object_spec::make_object): Allow negative and zero
17755         line thicknesses.
17756         * pic/pic.y: Give linethick default value of -1.0.
17757         * pic/troff.c (troff_output::troff_output): Initialize
17758         last_line_thickness to BAD_THICKNESS.
17759         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17760         (troff_output::line_thickness): Canonicalize negative thicknesses
17761         to RELATIVE_THICKNESS.
17762         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17763         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17764         to -1.0.
17765         (tex_output::start_picture): Set pen_size to -2.0.
17767         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17768         0, then use 0 linewidth.
17769         (ps_printer::ps_printer): Initialize line_thickness to -1.
17771         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17773         * ps/devps/symbolchars: Remove `or'.
17774         * ps/tmac.ps: Implement \(or with .char.
17776         * ps/devps/symbolchars: Move most characters into textmap.
17777         * ps/devps/textmap: Add names for troff bracket characters. Remove
17778         ul, ru, br, bv.
17780         * ps/devps/TSymbol.ps: Removed.
17781         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17782         * ps/tmac.ps: Do with .char what TSymbol did.
17783         * ps/devps/download: Remove TSymbol.
17785         * ps/devps/T: Removed.
17786         * ps/devps/Troff.ps: Removed.
17787         * ps/devps/Troff.afm: Removed.
17788         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17789         * ps/devps/download: Remove Troff.
17790         * ps/devps/FontMakefile: Remove T target.
17791         * ps/devps/DESC-A4: Remove T from font list.
17792         * ps/devps/DESC-letter: Likewise.
17794         * troff/input.c (macro_to_node): Rename to ...
17795         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17796         character's definition while processing it.
17797         * troff/node.c (node::add_char, make_node): Change calls to
17798         macro_to_node accordingly.
17800         * troff/input.c (token::next): Translate \_ to \(ul.
17802         * tty/devascii/R.proto: Add `|'.
17803         * tty/devlatin1/R.proto: Likewise.
17805 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17807         * man: Put the version number in all the man pages.
17809 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17811         * Makefile.bd: New file.
17812         * README.bd: New file.
17814         * VERSION: New file.
17815         * lib/version.c: Removed.
17816         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17817         in clean target.
17819         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17820         environment variable.
17822         * all Makefiles: Split install target into install.bin for
17823         binaries, and install.nobin for everything else.
17824         * Makefile: Add bindist target.
17826         * man/afmtodit.man: New file.
17827         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17828         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17829         in BINDIR.
17830         * ps/Makefile: Pass BINDIR to make install in devps.
17832         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17833         the space character.
17835         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17837 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17839         * ps/ps.c: Redo font downloading.
17840         * ps/devps/download: New file.
17841         * ps/devps/Makefile: Add download to DEVICEFILES.
17842         * ps/devps/afmtodit: Remove -d option.
17843         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17844         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17845         * ps/devps/zapfdr.ps: Likewise.
17846         * ps/devps/TSymbol.ps: Likewise.
17848 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17850         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17852 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17854         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17855         then strip the first line if it starts with %.
17856         * Makefile: Add a comment about this.
17858         * man/tfmtodit.man: New file.
17859         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17860         * dvi/Makefile: Install tfmtodit in BINDIR.
17862         * dvi/tfmtodit.c (usage): Mention -v option.
17864 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17866         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17867         * troff/node.c (troff_output_file::transparent_char): Don't call
17868         flush_tbuf.
17870         * eqn: Add check_tabs method to most box classes.
17871         * eqn/box.c (box::top_level): Call check_tabs.
17873         * eqn/script.c (script_box::output): Use \Z.
17874         * eqn/limit.c (limit_box::output): Use \Z.
17876         * eqn/box.c (box::top_level): Use itoa.
17878 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17880         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17881         * dvi/devdvi/Makefile: Don't make links to CW.
17883         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17884         HX, HD.
17885         * xditview/tmac.X: Likewise.
17887         * troff/node.c: Add font translation feature.
17888         (get_font_translation): New function.
17889         (symbol_fontno): Translate the font name.
17890         (mount_font_no_translate): Rename to mount_font to this.
17891         (mount_font): New function.
17892         (font_family::make_definite): Call mount_font_no_translate instead
17893         of mount_font.
17894         (mount_style): Translate the font name.
17895         (font_translate): New function.
17896         (init_font_requests): Bind "ftr" to font_translate.
17898         * ps/devps/prologue (SN): New procedure that rounds a position to
17899         the nearest (pixel + (.25,.25)).
17900         (DL): Use SN to round endpoints.
17902         * lib/version.c: Changed version to 0.5.
17904 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17906         * Makefile: Move definition of PAGE to the very beginning, so that
17907         people are less likely to miss it.
17909 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17911         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17913         * troff/env.c (environment::choose_breakpoint): Make `can't find
17914         breakpoint' error a warning of type WARN_BREAK.  Change message to
17915         `can't break line'.
17916         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17917         code 040000.
17918         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17919         WARN_BREAK in DEFAULT_WARNING_MASK.
17921         * tty/tmac.tty: Add definition of \(+-.
17923         * groff.sh: Remove `--' option to set command.
17925         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17927         * ps/devps/eqnchar: Better definition of cdot using md.
17928         * dvi/devdvi/eqnchar:  Likewise.
17929         * xditview/devX100/eqnchar:  Likewise.
17930         * xditview/devX75/eqnchar: Likewise.
17931         * eqn/lex.c: Add definition of cdot.
17933 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17935         * troff/input.c (get_optional_char): New function.
17936         * troff/input.c (set_page_character): Use get_optional_char(),
17937         rather than has_arg() and tok.get_char(1).
17938         * troff/env.c (tab_character, leader_character, hyphen_char,
17939         field_characters): Likewise.
17940         (margin_character): Likewise.  Also always delete the
17941         margin_character_node.
17943         * troff/input.c (token::get_char): Use token::description.
17945         * troff/input.c (has_arg): Don't skip over tab and \}.
17946         * troff/number.c (start_number): Give a warning if the number
17947         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17949 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17951         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17952         functions.
17953         (get_name, get_long_name): Use these.  Rename `warn' argument to
17954         `required'.
17956         * troff/node.c (get_fontno): Test that the symbol is not null.
17958         * troff/input.c (token::description): New function.
17959         * troff/number.c (parse_term): Use token::description in `numeric
17960         expression expected' message.
17961         * troff/groff.h: Add WARN_MISSING.
17962         * troff/number.c (start_number): New function.
17963         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17964         get_incr_number): Use start_number().
17965         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17966         default.
17967         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17968         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17969         token::descripion.
17970         * troff/input.c (token::get_char): Use WARN_MISSING.
17971         * troff/input.c (token::delimiter): Use token::description.
17972         * troff/env.c (environment_switch): Back out Aug 3 change.
17973         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17974         warning.
17975         * troff/token.h (token::tab): New function.
17976         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17977         * troff/reg.c (alter_format): Likewise.
17978         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17980 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17982         * troff (most files): Redo warnings. Divide warnings into various
17983         categories; warning() has an additional first argument indicating
17984         the category it falls into.
17985         * troff/input.c (main): -w now takes an argument. New option -W.
17986         (enable_warning, disable_warning): New functions.
17988         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17989         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17991 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17993         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17994         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17995         * xditview/devX75/eqnchar: Likewise.
17996         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17998         * eqn/other.c: When bar or over applies to a single character
17999         don't produce an overline_box or an underline_box. Instead produce
18000         an accent_box or an underaccent_box, with the accent a line
18001         whose width is accent_width.  New classes underaccent_box,
18002         overline_char_box and underline_char_box.
18003         * eqn/box.h: Move overline_box, underline_box, accent_box class
18004         declarations into eqn/other.c. Add declarations of
18005         make_underline_box, make_overline_box, make_accent_box.
18006         * eqn/eqn.y: Call make_overline_box, make_underline_box
18007         make_accent_box instead of constructors.
18008         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
18010         * eqn/other.c: Add accent_box::~accent_box.
18011         * eqn/box.h: Declare it.
18013         * groff.sh: With -Tps, use eqn -D.
18015         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
18016         rather than \l.
18017         (underline_box::output): Similarily.
18018         (accent_box::output): Use \Z.
18020         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
18021         bit smaller.)
18023 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
18025         * troff/div.c (top_level_diversion::transparent_output(unsigned
18026         char)): Use asciify.
18027         * troff/input.c (asciify): Don't make it static.
18028         * troff/token.h (asciify): Declare it.
18029         
18030         * troff/input.c (get_name, get_long_name, token::get_char,
18031         token::delimiter): Add an extra default argument which says
18032         whether a warning should be printed.
18033         * troff: Pass a non-zero argument to one of these rather than
18034         printing a warning directly.
18036 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
18038         * troff: Consistently use symbol::is_null.
18040         * troff/dictionary.h: Move some inline functions into
18041         dictionary.c.
18043         * troff/request.h: Move inline functions into input.c.
18044         (request_or_macro::invoke): Make it pure.
18046         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
18047         * troff/input.c (init_input_requests): Use class constant_int_reg.
18048         (class compatible_reg): Deleted.
18049         * troff/div.c (init_div_requests): Use class constant_int_reg.
18050         (class last_post_line_extra_space_reg): Deleted.
18052         * troff/env.c (tab_character): Don't change the tab character if
18053         we get an invalid argument.
18054         (hyphen_char): Similarily.
18056         * troff/reg.c (alter_format): Check that nm is not null.
18058         * Makefile, groff.sh: Make it possible to customize the commands
18059         used for printing PostScript and dvi files. Also make it possible
18060         to customize the path used by groff.sh.
18062         * eqn/eqn.y: Make `left' right associative.
18064 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
18066         * pic/pic.h: Added definition of M_SQRT2 for those systems that
18067         don't have it.
18069         * pic/pic.h: Removed definition of INT_MAX.
18071         * troff/node.c (italic_corrected_node::vertical_extent): Omit
18072         `return'.
18074         * troff/input.c (token::next):  Handle \R like \n.
18076 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
18078         * ps/tmac.pc (PSPIC): Simplify.
18080         * troff/env.c (tab_stops::to_string):
18081         * pic/pic.y (object_type_name):
18082         * pic/troff.c (simple_output::line):
18083         * pic/tex.c (tex_output::spline):
18084         * pic/object.c (object_spec::make_object):
18085         * tbl/main.c (process_data):  Add cases to switch statements to
18086         avoid cfront warnings. (Some of these are spurious, since the
18087         switch already has a default case.)
18089         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
18090         `ps-'.  Don't test systat; instead check number of arguments to
18091         ps-bb.
18093 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
18095         * macros/tmac.e: Do not decrease the page offset by 0.5i.
18097         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
18098         Unlink the file as soon as we have opened it, so that we don't
18099         have to bother with signal handlers.
18100         (handler): Deleted.
18101         (fatal_error_exit): Deleted.
18102         (main): Don't call signal.
18104         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
18105         can be ignored.
18106         * dvi/devdvi/Makefile: Use the -k option with S and MI.
18108         * pic/pic.y:  If there is a label, or an nth construction before
18109         the first `.' in the argument to `with', ignore it and generate a
18110         warning.
18111         * pic/lex.c (lex_warning): New function.
18113         * tbl/table.c (table::init_output): In section keep and release
18114         macro, use 0 indent when diverting and the correct indent when
18115         rereading.
18117         * troff/input.c (interpolate_number_format): Do not interpolate
18118         anything if the number register is not defined.
18120         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
18122 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
18124         * ps/devps/prologue (PICTURE): Set components of graphics state to
18125         their default values.
18127         * ps/devps/text.enc: Add trademark
18128         * ps/devps/textmap: Add names for club, spade, heart, diamond,
18129         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
18130         * ps/devps/symbolchars: Add names for summation and product.
18132         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
18133         suchthat. Add pp. Add upper-case letters.
18135         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
18136         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
18137         Upsilon.
18139         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
18140         rA (right angle bracket) to ra.  Introduce names for double-headed
18141         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
18142         * ps/devps/textmap: Likewise for ps device.
18143         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
18144         * tty/devascii/R.proto: Rename lA to la and rA to ra.
18145         * tty/devascii/R.proto: Likewise.
18146         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
18147         \(uA, \(dA.
18148         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
18150         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
18152         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
18153         def_table.
18155 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
18157         * troff/div.c (when_request): Use symbol::is_null rather than
18158         has_arg to determine whether we have an argument.
18159         (change_trap): Remove the trap if we get an invalid number. Give
18160         an error if we don't get at least the macro name.
18161         (diversion_trap): Remove trap if we get an invalid name or number.
18163         * troff/env.c (environment_switch): Pop if we get an invalid
18164         symbol or numeric expression.
18166         * troff/input.c (do_define_macro):  If EOF is encoutered while
18167         defining the macro, do tok.next() before returning.
18169         * troff/token.h (has_arg): Move definition from here, to ...
18170         * troff/input.c (has_arg): ... here
18172         * troff/env.c (space_size): Do nothing if we get an invalid argument.
18173         * troff/input.c (shift): Likewise.
18175         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
18176         for `.c'.
18178         * pic/troff.c (troff_output::start_picture):  Comment out calls to
18179         `..'.
18181         * eqn/main.c (do_file): Subtract 1 from current_lineno if
18182         interpret_lf_args succeeds.
18184         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
18185         \\.  This avoids problems with \$N.
18187         * groff.sh: Pass -C to preprocessors.
18189         * lib/lf.c (interpret_lf_args):  Be more flexible.
18191         * tbl/main.c (main): Add -C option.
18192         (table_input::get): Do not recognize TE if followed by character
18193         other than a space or newline unless -C option given.
18194         (process_input_file): Likewise for lf, TS.
18195         (process_data): Likewise for lf in text blocks.
18197         * eqn/main.c (main): Add -C option.
18198         (do_file): Don't recognize EQ, EN or lf if followed by character
18199         other than space or newline unless -C option given.
18200         * eqn/lex.c (file_input::read_line): Similarily.
18201         * eqn/eqn.h: Declare compatible_flag.
18203         * etc/soelim.c (main): Add -C option.
18204         (interpret_lf_args): Use version in libgroff.
18205         (do_file):
18207         * pic/main.c (main): Add -C option, which sets compatible_flag.
18208         (top_input::get), (top_input::peek):  If -C option not given,
18209         do not recognize .PS/.PE/.PF/.lf if followed by a character
18210         other than space or newline.
18211         * pic/lex.c (file_input::read_line): Similarily.
18212         * pic/pic.h: Add declaration of compatible_flag.
18214 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
18216         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
18218         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
18219         derived from node.  New class space_char_hmotion_node.
18220         * troff/input.c (asciify_macro): New function.
18221         * troff/input.c (init_input_requests): New request `asciify' bound
18222         to asciify_macro.
18223         * macros/mm.diff: New file.
18224         * Makefile:  In install.mm target use `patch' to apply
18225         macros/mm.diff.
18227         * troff/input.c (macro::print_size): Just print the size in bytes.
18229         * troff/div.c (return_request): Correct the argument
18230         interpretation.
18232 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
18234         * troff/node.h (class composite_node): Add sz member.
18235         * troff/node.c (composite_node::size): Return sz.
18236         * troff/input.c (macro_to_node):  Use the initial size in the
18237         environment as the size of the composite_node.
18239         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
18240         default.
18242 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
18244         * troff/div.c (change_trap): If we get a bad number expression,
18245         do nothing.
18247 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
18249         * lib/matherr.c (matherr): Define this only if math.h defines
18250         TLOSS.
18252 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
18254         * troff/div.c (macro_diversion::distance_to_next_trap): If there
18255         no diversion trap return vunits(INT_MAX - vresolution).
18257 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
18259         * troff/input.c (do_zero_width): New implementation that doesn't
18260         use a temporary environment. Use instead:
18261         (token::add_to_node_list): New function.
18262         * troff/env.c (environment::get_prev_char_height),
18263         (environment::get_prev_char_height),
18264         (environment::get_prev_char_skew): New functions.
18265         (environment::get_prev_char): New function.
18266         (environment::get_prev_char_width): Change to use get_prev_char.
18267         (init_env_request): Implement new registers .cht, .cdp, .csk.
18268         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18269         \Z being processed in a separate environment.
18271 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
18273         * tbl/table.c: Removed TABLE_BOTTOM_REG.
18275         * tbl/table.c (table::init_output): In the section release macro,
18276         give a warning message if the section won't fit on one page.
18278         * tbl/table.c (table::do_top): Emit table keep only if table is
18279         boxed.
18280         (table::do_bottom): Likewise for table release.
18281         (table::table), (table::add_vertical_rule):  Remove reference to
18282         keep member.
18283         * tbl/table.h: Remove keep member.
18285         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18286         SECTION_RELEASE_MACRO, if there's not enough space before the next
18287         trap to output the diversion, call T# ourselves, set
18288         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18289         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
18290         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
18291         vertical position and return to it before turning traps on again.
18292         
18293 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
18295         * troff/node.c, troff/node.h: In classes derived from node,
18296         replace prev_char_width method by last_char_node method.
18297         * troff/env.c (environment::get_prev_char_width): Use
18298         node::last_char_node rather than node::get_prev_char_width.
18300         * Makefile: Added comment about -fno-inline on 68030-based
18301         Apollos.
18303         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18304         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18305         expressions using sizeof to int.
18306         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18308         * macros/tmac.e (TS):  Don't move @f back past the current
18309         position.
18311 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
18313         * ps/ps.c (main): Buffer stderr.
18314         * dvi/dvi.c (main): Likewise.
18315         * tty/tty.c (main): Likewise.
18317         * ps/ps.c (ps_printer::do_import): Improve error handling.
18319         * troff/input.c (abort_request): Use asciify.
18321         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18322         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18323         type of first argument int rather than char.  This works around a
18324         bug on the 68030 based Apollo using g++ 1.37.1.
18326         * tbl/table.h (class table): Add `keep' member.
18327         * tbl/table.c (table::table): Initialize `keep'.
18328         (table::add_vertical_rule): Set `keep' to 1.
18329         (table::do_top): Only emit table keep macro is `keep' is non-zero.
18330         (table::do_bottom): Likewise for table release macro.
18331         (table::do_row): Emit section keep macro even if the row is 0.
18333 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
18335         * macros/tmac.e (@C): Preserve the font family across the change
18336         in environments.
18338 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
18340         * lib/font.c: Initialize font::hor and font::vert to 1.
18341         (font::load_desc): Check the values of font::hor and font::vert.
18343         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18344         be included in a C compilation.
18345         (iftoa): Use INT_DIGITS. Include lib.h.
18346         (itoa): Likewise.
18347         (as_string): Likewise.
18348         * tbl/table.c: Removed definition of INT_DIGITS.
18349         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18350         * troff/input.c (input_input_requests): Likewise.
18351         * ps/ps.c (make_encoding_name): Likewise.
18352         (ps_printer::set_style): Likewise.
18353         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18355         * tty/devascii/R.proto: Map fm onto '.
18356         * tty/devlatin1/R.proto: Likewise.
18358 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
18360         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18361         argument to \w is at a different input level.
18363         * tbl/table.c (table::init_output): Define a new macro
18364         REPEATED_VPT_MACRO, like vpt but if in a diversion also
18365         transparently outputs itself.
18366         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18367         vpt.
18368         (table::do_row): Likewise.
18370         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18371         TRANSPARENT_STRING_NAME.
18373         * tbl/table.c (table::init_output): In the table release macro
18374         print an error message and don't produce any output if after
18375         issuing the need request the table still will not fit.  Also
18376         remove the diversion after bringing it back.
18378         * tbl/table.c (table::init_output): Define a new macro
18379         REPEATED_MARK_MACRO, like mk but if in a diversion also
18380         transparently outputs itself.
18381         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18382         is necessary because .TH might not call .T#.
18383         (table::do_top): Likewise TOP_REG.
18384         (table::define_bottom_macro): If TOP_REG is no longer valid, use
18385         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18386         table header might contain just the two top rules.
18388 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
18390         * troff/div.c: Implement new request `ptr' to print all traps.
18392         * troff/env.c (init_env_requests): Implement `.tabs' reg with
18393         init_string_env_reg.
18394         * troff/env.c (class tab_reg): Deleted.
18396 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
18398         * troff/div.c: New number register .pn returns the number of the
18399         next page as set by the pn request.
18401         * macros/tmac.an: Redid headers and footers.  Number each manual
18402         entry starting from 1 unless \nC is > 0, like Sun.  Added an
18403         optional 5th argument to .TH which specifies the manual name and
18404         appears in the center of the header.  Understand the X, P and D
18405         registers like Sun.
18407 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
18409         * troff/env.c (init_env_requests): New number register `.lt' to
18410         return the title length.
18412         * troff/node.h (class transparent_dummy_node): New class.
18413         * troff/node.c (class transparent_dummy_node): Provide member
18414         functions. 
18415         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18416         than a dummy_node.
18418         * troff/input.c (token::next): New escape sequence \).
18419         * troff/input.c (get_copy): Recognize \) in copy mode.
18421         * troff/input.c (input_stack::clear): New function.
18422         * troff/input.c (exit_request): Use input_stack::clear.
18424         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18425         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18427         * troff/env.c: Move set_page_character to input.c.  Move
18428         page_character to input.c also.
18429         * troff/env.c (title): Split off the reading of the parts of the
18430         title into read_title_parts.
18431         * troff/input.c (read_title_parts): New function.  Check the
18432         input_level when testing whether a token matches the delimiter.
18434         * troff/input.c (exit_request): New function.
18435         * troff/input.c (init_input_requests): Bind ex request to
18436         exit_request rather than exit_groff.
18438         * troff/input.c (exit_groff): Call tok.next() before
18439         process_input_stack().
18441 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
18443         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18444         * troff/env.h: ditto.
18445         * troff/input.c: ditto.
18447         * troff/env.c (environment::is_empty): Test pending_lines.
18449         * troff/env.c (environment::have_pending_lines): Removed.
18451         * troff/input.c: Add request to flush pending lines from the
18452         environment.
18454         * troff/env.c, troff/env.h: Add automatic widow control feature.
18456         * troff/input.c (exit_groff):  Do process_input_stack() after
18457         do_break() but before setting exit_flag to 2.
18459         * troff/input.c: Remove FLUSH_PENDING_LINES and
18460         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18461         environment after END_TRAP token seen, but only if there aren't
18462         any more traps still unfinished.
18463         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18465 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
18467         * troff/env.c: Rename the `retain_size' member of class
18468         pending_output_line to `no_fill'.
18470         * troff/env.c (title): When the line is output, make the
18471         retain_size argument !fill.
18473         * troff/node.h: Add `hyphenated' member to struct breakpoint.
18474         * troff/node.c (space_node::get_breakpoints),
18475         (dbreak_node::get_breakpoints):  Fill this in.
18476         * troff/env.c:  Allow specification of maximum number of
18477         consecutive hyphenated lines.
18479         * troff/env.c (environment::is_empty): Add test for !current_tab.
18481 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
18483         * troff/env.c (environment::hyphenate_line): Don't completely give
18484         up if the word is not to be hyphenated; continue so that breaks
18485         can be made at break_char_node's.
18487         * lib/lib.h: Only define INT_MAX if it's not already defined;
18488         undef INT_MIN if it's already defined.
18490         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18492         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18493         This works around a bug in AT&T C++ 2.0 used with an ANSI C
18494         compiler.
18495         
18496         * macros/tmac.an (an-header): Set no-space mode.
18498         * macros/tmac.an (TH): Start a new page if necessary.
18500         * Started using ChangeLog at version 0.4.
18502 Local Variables:
18503 version-control: never
18504 coding: latin-1
18505 End: