* font/devps/prologue.ps (EP): Dont' use `bind'. Reason: Using
[s-roff.git] / ChangeLog
blob470e975b7714cbe655a010d7fdbf4672f6945db3
1 2005-06-20  Denis M, Wilson  dmw@oxytropis.plus.com
3         * font/devps/prologue.ps (EP): Dont' use `bind'.  Reason: Using
4         `bind' to define a procedure which contains `showpage' means that an
5         invocation of `showpage' may execute wrongly (the exact effect
6         depending on the interpreter).  Not usually a problem except under
7         transformations, such as combining pages.
8         (PEND): Don't call `clear'.  Reason: Using `clear' in the definition
9         of /PEND means that stack underflow will occur if the stack is
10         deliberately non-empty before document inclusion.  If included
11         files are found to be generally badly behaved, we could replace the
12         `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
13         never found this necessary).
15 2005-06-20  Jörgen Grahn  <jgrahn@algonet.se>
17         * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
18         earlier to get correct error message.
20 2005-06-16  Bernd Warken
22         * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
24 2005-06-15  Werner LEMBERG  <wl@gnu.org>
26         Another try to update getopt files.  This time we add a dummy
27         gettext.h file to satisfy the dependency.
29         * src/include/getopt.h, src/libs/libgroff/getopt.c,
30         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
32         * src/include/getopt_int.h: New file (from GNU libc CVS).
34         * src/include/gettext.h: Dummy file which just defines a gettext()
35         macro.
37         * src/include/groff-getopt.h: Updated.
39         * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
42         * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
43         `const' keywords in return value.
45         * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
46         Remove redundant variable `old'.
47         (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
49         * src/preproc/tbl/main.cpp (process_table): Remove redundant
50         variable `c'.
53         Fix more friend name injection problems since modern C++ compilers
54         fail otherwise.  We simply provide (global) declarations for all
55         functions declared as friends.  This is not really necessary but
56         doesn't harm.
58         * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
59         peek_char, and get_location.
61         * src/preproc/refer/ref.h: Provide declarations for
62         compare_reference, same_reference, same_year, same_date,
63         same_author_last_name, and same_author_name.
65         * src/roff/troff/div.h: Provide declarations for do_divert and
66         page_offset.
68         * src/roff/troff/env.h: Provide declarations for title_length,
69         space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
70         vertical_spacing, post_vertical_spacing, line_spacing, line_length,
71         indent, temporary_indent, do_underline, do_input_trap, set_tabs,
72         margin_character, no_number, number_lines, leader_character,
73         tab_character, hyphenate_request, no_hyphenate,
74         hyphen_line_max_request, hyphenation_space_request,
75         hyphenation_margin_request, line_width, tabs_save, tabs_restore,
76         line_tabs_request, widow_control_request, and do_divert.
78         * src/roff/troff/input.cpp: Provide declaration for chop_macro.
80         * src/roff/troff/node.cpp: Provide declarations for class
81         tfont_spec.
82         Provide declaration for make_tfont.
84 2005-05-29  Werner LEMBERG  <wl@gnu.org>
86         * doc/fdl.texi: Updated to version 1.2.  Reported by Bernd Warken.
88 2005-05-28  Werner LEMBERG  <wl@gnu.org>
90         * contrib/pdfmark/Makefile.sub (.ms.pdf): Use `--stylesheet', not
91         `--style'.
93         * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
94         redundant semicolons.
96         * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
97         src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
98         Define `MLIB'.  Some compilers need this for linking with libgroff.
100 2005-05-27  Werner LEMBERG  <wl@gnu.org>
102         * MANIFEST, README, doc/webpage.ms: Updated.
104 2005-05-26  Werner LEMBERG  <wl@gnu.org>
106         * All affected files: Update postal address of FSF.
108 2005-05-25  Keith Marshall  <keith.d.marshall@ntlworld.com>
109             Bernd Warken
111         * README: More fixes.
113         * README.CVS: Removed.  Its contents is now part of the README file.
115 2005-05-21  Werner LEMBERG  <wl@gnu.org>
117         * README: Updated.  Based on a patch from Bernd Warken.
119 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
121         Miscellaneous script portability enhancements.
123         * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
124         generated conftest.sh script, conforming to portability
125         recommendation in autoconf docs.
126         * configure: Likewise, for code generated by GROFF_CSH_HACK.
127         * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
128         to portability recommendation in autoconf docs.
129         * contrib/gdiffmk/gdiffmk.sh: Likewise.
130         * contrib/gdiffmk/tests/runtests.in: Likewise.
131         * contrib/grap2graph/grap2graph.sh: Likewise.
132         * contrib/groffer/groffer.sh: Likewise.
133         * contrib/mm/mmroff.pl: Likewise.
134         * contrib/mom/momdoc/appendices.html: Likewise.
135         * contrib/pic2graph/pic2graph.sh: Likewise.
136         * font/devps/generate/afmname: Likewise.
137         * src/devices/xditview/ad2c: Likewise.
138         * src/preproc/eqn/neqn.sh: Likewise.
139         * src/roff/grog/grog.pl: Likewise.
140         * src/roff/grog/grog.sh: Likewise.
141         * src/roff/nroff/nroff.sh: Likewise.
142         * PROBLEMS: Likewise, in embedded script examples.
144 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
146         Improve portability of `pdfroff' shell script.
148         * arch/misc/shdeps.sh: Add space in shebang, conforming to
149         portability guidelines in `autoconf' docs.
150         (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
151         initialization code.  Used by contrib/pdfmark/pdfroff.sh's
152         `searchpath' function.
154 2005-05-14  Werner LEMBERG  <wl@gnu.org>
156         * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
157         contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
158         needed for newer ImageMagick versions.
160 2005-05-07  Werner LEMBERG  <wl@gnu.org>
162         * src/preproc/refer/refer.man: Many small typographic fixes.
164 2005-05-06  Jeff Conrad  <jeff_conrad@msn.com>
166         * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
167         Use `char *' cast for a_delete.
169 2005-05-03  Werner LEMBERG  <wl@gnu.org>
171         * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
172         src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
174 2005-05-03  Jeff Conrad  <jeff_conrad@msn.com>
176         * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
177         `a_delete' for `const char *'.
179 2005-05-03  Werner LEMBERG  <wl@gnu.org>
181         * src/devices/grohtml/post-html.cpp,
182         src/devices/grohtml/html-table.cpp,
183         src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
184         Replace malloc/free with new/delete/a_delete.
186         * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
187         are prohibited with ANSI C++.
188         (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
189         function has a variable number of arguments).
191         * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
192         Simplify function and update all callers.
194 2005-05-02  Werner LEMBERG  <wl@gnu.org>
196         Undo getopt changes from 2005-04-30.  We don't want a dependency
197         on gettext.
199         * src/include/getopt_int.h: Removed.
201         * src/include/getopt.h, src/include/groff-getopt.h,
202         src/include/Makefile.sub, src/libs/libgroff/getopt.c,
203         src/libs/libgroff/getopt1.c: Revert to previous version.
206         * src/include/nonposix.h (access) [_MSC_VER]: New macro.
208         * src/include/posix.h (F_OK): Define conditionally.
210         * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
211         different variable name in second `for' loop to avoid MSVC compiler
212         problem.
214 2005-04-30  Werner LEMBERG  <wl@gnu.org>
216         AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
218         * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
219         * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
220         * configure, src/include/config.hin: Regenerated.
222         * PROBLEMS: Updated.
225         Update getopt files.
227         * src/include/getopt.h, src/libs/libgroff/getopt.c,
228         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
230         * src/include/getopt_int.h: New file (from GNU libc CVS).
232         * src/include/groff-getopt.h: Updated.
234         * src/include/Makefile.sub (HDRS): Add getopt_int.h.
237         * font/devutf8/NOTES: Updated.
239 2005-04-28  Werner LEMBERG  <wl@gnu.org>
241         Bug fix for Win32 relocatable code.  Based on a patch from Keith
242         Marshall.
244         * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
245         also.
247         * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
248         (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
250 2005-04-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
252         Correct `gnu.eps' handling for build from distribution tarball, with
253         separate source and build directories.
255         * doc/Makefile.sub: (examples.stamp): New target; forces copy of
256         grnexmpl.g, groff.css and gnu.eps from source to build directory;
257         generate gnu.eps from gnu.xpm if required; touch examples.stamp.
258         (prepare_examples): Make it depend on examples.stamp.
259         (CLEANADD): Add examples.stamp.
261 2005-04-27  Werner LEMBERG  <wl@gnu.org>
263         Implement the rule
265           position: '(' position ')'
267         in pic.
269         * src/preproc/pic/pic.y (position, position_not_place): Handle
270         additional parentheses.
272         * doc/pic.ms: Updated.
274 2005-04-23  Larry Jones  <lawrence.jones@ugs.com>
276         * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
278 2005-04-18  Werner LEMBERG  <wl@gnu.org>
280         * src/roff/groff/pipeline.c: Don't include ctype.h.
282 2005-04-13  Werner LEMBERG  <wl@gnu.org>
284         * src/roff/nroff/nroff.man: Document option `-M'.
286 2005-04-13  Bruce Lilly  <blilly@erols.com>
288         * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
290 2005-04-01  Kees Zeelenberg  <kzlg@users.sourceforge.net>
291             Werner LEMBERG  <wl@gnu.org>
293         Add binary relocation support for Windows platforms.
295         * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
297         * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
299         * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
300         (search_path::search_path, search_path::open_file_cautious): Use
301         `relocate'.
303         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
304         src/include/Makefile.sub (HDRS): Updated.
306 2005-04-01  Werner LEMBERG  <wl@gnu.org>
308         * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
309         strsave/a_delete.
311         * src/libs/libgroff/font.cpp: Replace strdup with strsave.
313         * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
314         lib.h already does it.
316         * src/libs/libgroff/maxpathname.cpp: New file, defining
317         path_name_max.
319         * src/include/lib.h: Add prototype for path_name_max.
321         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
323         * src/include/nonposix.h (PATH_EXT): New macro.
325 2005-03-28  Werner LEMBERG  <wl@gnu.org>
327         Add support for double- and zero-width characters in grotty.
329         * src/devices/grotty/tty.cpp (glyph): Add width. 
330         (tty_printer::make_underline, tty_printer::make_bold,
331         tty_printer::add_character): Add parameter to pass character width.
332         Update all callers.
333         (tty_printer::end_page): Increase hpos by actual character width.
335         * font/devutf8/R.proto: Specify zero width for non-spacing
336         characters.
338         * tmac/unicode.tmac: Remove definitions for non-spacing entities.
340         * Makefile.comm (extraclean): Remove more junk files.
342 2005-03-25  Werner LEMBERG  <wl@gnu.org>
344         * configure.ac: Undo change from 2005-03-24.
345         * configure: Regenerated.
347 2005-03-24  Werner LEMBERG  <wl@gnu.org>
349         * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
350         (dist): Search Makefile while descending into $(EXTRADIRS).
352         * doc/Makefile.in (.PHONY): Add.
353         (clean): Don't remove *.png and *.eps.
354         Don't handle *.gif.
355         (realclean): Remove *.png and *.eps.
356         (extraclean): Depend on distclean.
358         * configure.ac: Add copyright.
359         Handle contrib/pdfmark/Makefile.
361         * configure: Regenerated.
363 2005-03-18  Larry Kollar  <kollar@alltel.net>
365         Add numbered and definition lists to www.tmac.
367         * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
368         www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
369         auxiliary string registers.
370         (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
371         www-ol-ctr3, www-dl-shift): New auxiliary number registers.
372         (www-level): Removed.
373         (www-level1, www-level2, www-level3): Initialize to empty.
374         (www-level0, www-level4, www-level5, www-level6, www-level7,
375         www-level8, www-level9): New string registers.
376         (www-push-li, www-pop-li): New macros.
377         (www-push-level, www-pop-level): Renamed to...
378         (www-push-ul-level, www-pop-ul-level): This.
379         Updated.
380         (www-push-ol-level, www-pop-ol-level): New macros.
381         (ULS, ULE): Updated.
382         (OLS, OLE, DLS, DLE): New user macros.
383         (LI): Removed.  It is aliased to one of...
384         (www-li-ul, www-li-ol, www-li-dl): New macros.
386         * tmac/groff_www.man: Document new macros.
388         * NEWS: Updated.
390 2005-03-18  Werner LEMBERG  <wl@gnu.org>
392         * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
393         doc-operating-system-NetBSD-2.0.2): New strings.
395         * tmac/groff_mdoc.man: Updated.
397 2005-03-17  Werner LEMBERG  <wl@gnu.org>
399         * doc/Makefile.sub (CLEANADD): Add `groff.html'.
401 2005-03-17  Werner LEMBERG  <wl@gnu.org>
403         * src/libs/libgroff/hypot.c: Renamed to...
404         * src/libs/libgroff/hypot.cpp: This.  Updated to C++.
406         * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
408         * src/include/lib.h: Updated.
410 2005-03-16  Werner LEMBERG  <wl@gnu.org>
412         Add workaround for broken hypot() on Interix.
414         * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
416         * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
417         (CSRCS): Add `hypot.c'.
419         * src/include/lib.h: Declare `groff_hypot'.
421         * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
422         Use `groff_hypot'.
424         * src/preproc/pic/pic.h: Don't declare `hypot'.
426         * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
428 2005-03-15  Gaius Mulley  <gaius@glam.ac.uk>
430         * src/devices/grohtml/post-html.cpp
431         (html_printer::lookahead_for_tables): End .ce properly to avoid a
432         segfault.
434 2005-03-15  Werner LEMBERG  <wl@gnu.org>
436         makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
438         * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
440         * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
442 2005-03-14  Werner LEMBERG  <wl@gnu.org>
444         Add Cyrillic support to devutf8 and devhtml.
446         * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
448         * tmac/unicode.tmac: New file.
450         * tmac/tty.tmac: Include unicode.tmac if device is utf8.
452         * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
454         * NEWS: Updated.
456 2005-03-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
458         * src/libs/libdriver/printer.cpp (check_for_output_error): New
459         function.  It has been introduced to catch peculiar error contexts
460         on MS-Windows platforms.
462 2005-02-28  Werner LEMBERG  <wl@gnu.org>
464         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
465         null pointer.
467         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
469         * configure: Regenerated.
471         * NEWS: Updated.
473 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
475         Integrate `pdfmark' into normal groff build system;
476         install macro `pdfmark' packages, build and install `pdfroff',
477         and PDF format documentation.
479         * Makefile.comm: Add PDFDOCDIR.
481         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
482         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
483         (unstall_dirs): Add pdfdocdir.
485         * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
486         `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
487         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
488         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
489         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
490         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
491         set ALT_AWK_PROGS.
492         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
493         use of GROFF_AWK_PREFS.
494         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
495         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
497         * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
498         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
499         also by modified GROFF_HTML_PROGRAMS).
501 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
503         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
504         paragraph spacing.
505         (html_text::done_para): Unset `start_space'.
506         (html_text::remove_para_align): Call `retrieve_para_space' for the
507         spacing.
509         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
510         `seen_space'.
511         (html_printer::do_check_center): Emit vertical space if necessary.
513         * src/roff/troff/env.cpp (environment_switch): Preserve
514         `seen_space', `seen_eol', and `suppress_next_eol' while switching
515         environments.
517         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
518         `is_special'.
520 2005-02-20  Werner LEMBERG  <wl@gnu.org>
522         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
523         eqn.
525 2005-02-17  Werner LEMBERG  <wl@gnu.org>
527         * doc/pic.ms, man/groff.man: Fix typos.
529         * doc/groff.texinfo: Fix typos.
530         (\LEmacro): Get proper mathematical spacing.
532 2005-02-16  Werner LEMBERG  <wl@gnu.org>
534         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
535         * configure: Regenerated with autoconf 2.59b.
537 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
539         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
540         html_printer::start_font): Fix handling of preformatted text.
542 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
544         These patches modify the indentation implementation to use `<p
545         style=margin-left: n%>'.  Many thanks to Peter and Larry for
546         suggesting this solution.  Grohtml only uses tables for `.IP' and
547         related tags when the first operand has a short width.
549         Similarly, they modify all vertical space code.  By default, grohtml
550         sets up a style sheet which uses no vertical space between `table',
551         `pre', and `p' tags.  It forces spaces when it needs them using
552         `style="margin-top: 1em"'.
554         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
555         (html_table::emit_table_header, html_table::emit_new_row):
556         Rewritten.
557         (html_table::set_space): New function.
558         (html_indent::html_indent): Don't set `is_used'.
559         (html_indent::begin): Rewritten.
560         (html_indent::end): Remove code in function.
562         * src/devices/grohtml/html-table.h: Updated.
563         (html_table): Make `out' public.
565         * src/devices/grohtml/html-text.cpp (html_text::html_text):
566         Initialize `start_space' with FALSE.
567         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
568         (html_text::issue_tag): Add argument to handle space style.
569         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
570         (html_text::flush_text): Don't set `start_space'.
571         (html_text::push_para): Don't set `p->really_issued'.
572         (html_text::do_emittext): Updated.
573         (html_text::do_para): Add paremeter to handle space.
574         Update all callers.
575         (html_text::retrieve_para_space): New function.
577         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
578         (tag_definition): Remove `really_issued'.
579         (html_text): Updated.
581         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
582         `current_column' and `row_space'.
583         Update constructor.
584         (html_printer::emit_raw, html_printer::write_header,
585         html_printer::do_indent, html_printer::do_check_center,
586         html_printer::do_tab_ts): Handle vertical space.
587         (html_printer:do_tab_te, html_printer::do_end_para): Call
588         `remove_para_space'.
589         (html_printer::do_col): Rewritten.
590         (html_printer::flush_globs): Remove debugging code.
591         (html_printer::is_line_start): New function.
592         (html_printer::start_font): Use `is_line_start'.
593         (html_printer::writeHeadMetaStyle): New function.
594         (html_printer::do_file_components, html_printer::~html_printer):
595         Call `writeHeadMetaStyle'.
597         * tmac/www.tmac (www-handle-percent): New macro.
598         (MPIMG): Handle percent values for width and height parameters.
599         (DC): Updated.
601         * tmac/groff_www.man: Updated.
603 2005-02-14  Werner LEMBERG  <wl@gnu.org>
605         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
606         $psname and $italic_angle.
607         Immediately restart file input loops if `split' returns an empty
608         array.
610 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
611             Werner LEMBERG  <wl@gnu.org>
613         Update afmtodit to better support Unicode (Michail).
614         Update afmtodit to use Perl 5 syntax (Werner).
616         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
617         `Getopts::Std'.
618         Decorate variables with `my' where necessary.
619         Use `defined' where necessary to avoid warnings.
620         Don't use `do' for subroutine calls.
621         Other minor syntax updates.
622         Check for both `uXXXX[X[X]]' and `uniXXXX'.
623         Handle glyph variants properly.
624         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
625         strings.
627         * src/utils/afmtodit/afmtodit.man: Updated.
629 2005-02-13  Werner LEMBERG  <wl@gnu.org>
631         Make groff.texinfo work with texinfo 4.8.
633         * doc/groff.texinfo (@Var): Use @r and @slanted.
634         (@defdummy, @Def*): Use @c to avoid empty lines.
635         (\angles): Replaced with...
636         (\Langlemacro, \Ranglemacro): New TeX macros.
637         (@Langlemacro, @Ranglemacro): New variables defined with @set.
638         (@angles): Use @Langlemacro and @Ranglemacro.
639         (\LE): Replaced with...
640         (\LEmacro): New TeX macro.
641         (@LEmacro): New variable defined with @set.
642         (@LE): Use @LEmacro.
643         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
644         variables defined with @set.
645         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
646         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
647         Update all callers.
649         Other minor updates.
651         * doc/texinfo.tex: Update to texinfo version 4.8.
653         * README.CVS: Updated.
655 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
657         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
658         and `FAM' registers.
660 2005-02-05  Werner LEMBERG  <wl@gnu.org>
662         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
663         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
664         Update BSD license.
666 2005-02-01  Werner LEMBERG  <wl@gnu.org>
668         * src/roff/groff/groff.man: Add information about paper size.
670 2005-01-25  Werner LEMBERG  <wl@gnu.org>
672         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
673         NetBSD bin/29114.
675 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
677         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
678         cases.
679         (Re): Emit a warning if called without `.Rs'.
680         (doc-finish-reference): Use parameter for decreasing
681         `doc-reference-count'.
682         (doc-print-reference): Pass specific count parameters to
683         `doc-finish-reference'.
685 2005-01-21  Werner LEMBERG  <wl@gnu.org>
687         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
688         Reset pointers to zero after deallocation.  This fixes a crash
689         if a driver is called with multiple input files.  Reported by
690         Ken Chilton <ken@chiltonfamily.org>.
692         * src/devices/grops/grops.man: Add more info on DSC.
694 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
696         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
697         Remove dead code.
699 2005-01-17  Werner LEMBERG  <wl@gnu.org>
701         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
702         against division by zero.
704 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
706         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
708 2004-12-19  Werner LEMBERG  <wl@gnu.org>
710         * install-sh: New version; taken from texinfo CVS.
712 2004-12-17  Werner LEMBERG  <wl@gnu.org>
714         * tmac/devtag.tmac: Protect against loading twice.
715         Protect agains compatibility mode.
716         * tmac/www.tmac: Protect against loading twice.
717         Load `devtag.tmac' before switching off compatibility mode.
718         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
720 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
722         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
723         * configure: Updated.
725 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
727         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
729 2004-12-15  Werner LEMBERG  <wl@gnu.org>
731         Make `test-groff' work again -- previously, wrong paths have been
732         used.  Additionally, it can now be called from anywhere.
734         * test-groff.in: Don't test for groff binary.  This is no longer
735         necessary since the proper paths are determined by `configure'.
736         (EXEEXT): Removed.  No longer used.
737         (srcdir, builddir): Use values provided by the configure script.
738         (XENVIRONMENT): Updated.
740         * INSTALL: Updated.
742 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
744         Make .tag and .taga work for all devices (but only grohtml actually
745         handles them).
747         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
748         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
749         html_printer::handle_assertion): Don't use hard-coded string
750         lengths.
751         (html_printer::lookahead_for_table): Reset `tbl' properly if
752         necessary.
753         (html_printer::devtag): New function, handling `devtag'.
754         (html_printer::special): Don't handle `html-tag'.
756         * src/include/printer.h, src/libs/libdriver/printer.cpp
757         (printer::devtag): New virtual function.
759         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
760         `devtag'.
762         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
763         src/roff/troff/node.cpp: s/html-tag/devtag/.
765         * src/roff/troff/input.cpp (tag, taga): Always call
766         curenv->add_node.
768         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
769         macros instead of HTML-TAG*.
771         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
773         * tmac/www.tmac: Load devtag.tmac.
774         Replace HTML-TAG* macros with DEVTAG* macros.
775         (HTML, HTML-NS): Changed definitions.
776         (URL): Use HTML-NS.
777         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
779         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
781 2004-12-10  Werner LEMBERG  <wl@gnu.org>
783         Import Mike's `gdiffmk' package.
785         * contrib/gdiffmk/*: New files.
786         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
787         * NEWS: Updated.
789 2004-12-08  Werner LEMBERG  <wl@gnu.org>
791         Import Keith's `pdfmark' package.  Integration is very preliminary.
793         * contrib/pdfmark/*: New files.
794         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
795         * NEWS: Updated.
797 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
799         Fix a bug with title handling in HTML.
801         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
802         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
803         length.
804         (html_printer::handle_tag_within_title): New function.
805         (html_printer::do_title): Use it.
807         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
808         (cov*tl-au-print): Emit `.eo.tl' tag.
810 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
812         * man/groff_char.man: Minor imrovements.
814 2004-12-04  Werner LEMBERG  <wl@gnu.org>
816         * src/preproc/eqn/eqn.man: Revised.
818 2004-11-25  Werner LEMBERG  <wl@gnu.org>
820         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
821         groff source files.
822         Include config.h.
823         Include limits.h.
824         Remove X_NOT_STDC_ENV conditional.
825         (Version_string, program_name): New global variables.
826         (groff_flag): Removed.
827         (MapFont): Updated.
828         (usage): Take a stream as argument.
829         Use `program_name'.
830         Update all callers.
831         (main): Add `long_options' array for `--help' and `--version'.
832         Make `-g' a dummy option.
833         Handle `-v' and unknown options.
834         Remove unused `position' variable.
836         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
837         (XLIBS): Add LIBGROFF.
839         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
840         New files.
842         * src/devices/xditview/Dvi.c (default_font_map): Split into three
843         parts to avoid compiler warning.
844         (resources): Don't initialize with `default_font_map'.
845         (ClassInitialize): Initialize first element of `resources'.
847         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
848         Removed.
850         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
851         src/utils/pfbtops/pfbtops.man: Revised, updated.
853         * configure.ac: Generate src/utils/xtotroff/Makefile.
854         * configure: Regenerated.
856 2004-11-24  Werner LEMBERG  <wl@gnu.org>
858         First fixes to get produce HTML.
860         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
861         attribute.
863         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
864         (HR, LI): Use `HTML</p>', not `HTML'.
866         * doc/webpage.ms: Minor updates.
868 2004-11-23  Larry Kollar  <kollar@alltel.net>
870         Add option -S grohtml to determine the file split level.
872         * src/devices/grohtml/post-html.cpp (split_level): New global
873         variable.
874         (html_header::determine_header_level): Use split_level.
875         (main): Handle `-S' command line option.
876         Sort options.
878         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
880         * src/devices/grohtml/grohtml.man: Document it.
881         Sort options.
883         * NEWS: Document it.
885 2004-11-23  Y T  <doarhop@hotmail.com>
887         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
888         the volume and number refer entries.
890 2004-11-22  Werner LEMBERG  <wl@gnu.org>
892         * src/devices/grohtml/html-table.cpp
893         (html_table::emit_table_header): Don't emit `cols' attribute which
894         doesn't exist in HTML 4.0 and is thus invalid.
896         * NEWS: More minor fixes and updates.
898 2004-11-18  Werner LEMBERG  <wl@gnu.org>
900         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
901         (HTML</p>): Minor clean-up.
903         * tmac/groff_www.man: Updated.
905         * src/devices/grohtml/grohtml.man: Revised and updated.
907         * NEWS: Updated.
909 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
911         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
912         Fix space insertion.
913         (html_printer::do_links): Fix rules generation around automatic
914         heading links.
916         * tmac/www.tmac (LK): Use HTML-TAG-NS.
917         (HR): Simplify.
918         No longer emit empty line for non-HTML devices.
920 2004-11-17  Werner LEMBERG  <wl@gnu.org>
922         * doc/Makefile.in (prepare_examples, webpage.html): Handle
923         `groff.css'.
925         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
926         prepare_examples, webpage.html): Handle `groff.css'.
928 2004-11-15  Werner LEMBERG  <wl@gnu.org>
930         * NEWS, README, doc/webpage.ms: Updated.
932         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
934 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
936         * src/include/printer.h (printer): Remove virtual function
937         `round_width'.
938         Update all source files.
940         * src/devices/grohtml/post-html.cpp (html_printer): New member
941         function `round_width'.
943 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
945         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
946         column key letter suffix.
948 2004-10-14  Werner LEMBERG  <wl@gnu.org>
950         * Makefile.in (check): Depend on `site.exp' and `docheck'.
951         (docheck): Run dejagnu's `runtest' if it exists.
952         (site.exp): Create dejagnu configuration file.
954         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
956 2004-10-13  Werner LEMBERG  <wl@gnu.org>
958         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
959         src/devices/grohtml/post-html.cpp (make_val,
960         html_printer::handle_state_assertion): Fix compiler warnings.
962         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
963         (diversion::diversion): Fix order of initializers.
965         * src/roff/troff/div.h: Don't include `mtsm.h'.
967         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
968         (environment::environment): Fix order of initializers.
969         (environment::make_tag, environment::construct_format_state): Fix
970         compiler warnings.
972         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
973         (input_iterator::input_iterator, macro::macro): Fix order of
974         initializers.
976         * src/roff/troff/mtsm.cpp: Include only necessary header files.
977         (state_set::add, state_set::val): Fix compiler warnings.
979         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
980         (bool_value_state, int_value_state, units_value_state,
981         string_value_state): Remove comma after last element which causes
982         an error with g++ 3.3.3.
984         * src/roff/troff/node.cpp: Include `stringclass.h'.
985         (hline_node::hline_node, vline_node::vline_node,
986         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
987         warnings.
988         (zero_width_node::zero_width_node): Fix order of initializers.
990         * src/roff/troff/node.h: Don't include `mtsm.h'.
991         (hmotion_node): Fix compiler warnings.
993         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
995 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
997         * doc/groff.css: New file.
999         * doc/webpage.ms: Use `groff.css'.
1000         Other small fixes.
1002         * tmac/an-old.tmac (need_eo_h): New number register.
1003         (TH): Emit `.eo.tl' tag after title.
1004         (SH): Set `need_eo_h'.
1005         (an-trap): Handle `need_eo_h'.
1006         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
1008         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
1009         (TL): Always start diversion.
1010         Updated.
1011         (@AI): Always call `par@reset'.
1012         (@AB): Update code for -Thtml.
1013         (cov*tl-au-print): Handle -Thtml.
1014         (par@reset): Handle `need_eo_tl', `need_eo_h'.
1015         (@IP): Simplified.
1016         (@IT-html): Removed.
1017         (@SH): Set `need_eo_h' for -Thtml.
1018         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
1019         Set `need_eo_tl'.
1020         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
1021         Set `need_eo_h' for -Thtml.
1022         (@EQ, @EN): Don't handle -Thtml specially.
1023         (par@load-init): Don't handle -Thtml specially.
1025         * tmac/www.tmac (www:paraspace): New macro.
1026         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
1027         (HTML</p>, HTML-TAG-NEXT): New macros.
1028         (HnE): Emit tag `.eo.h' instead of break.
1029         (HR): s/HTML-NS/HTML/.
1030         (www-end-nowhere): End diversion only if `www-html' not set.
1031         Emit `.eo.tl' tag.
1032         (ULS, ULE): s|HTML|HTML</p>|.
1033         (LI): Call `www:paraspace'.
1034         (HEAD): New macro.
1036 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
1038         * src/roff/troff/request.h (macro): Make `p' public.
1039         New variable `is_a_diversion'.
1040         New member function `is_diversion'.
1043         * src/devices/grohtml/html.h (simple_output): New member function
1044         `force_nl'.
1046         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
1047         computation of `total'.
1048         (tabs::check_init): New function.
1049         (html_table::emit_table_header): Emit style data.
1050         (html_table::insert_column): Improved.
1052         * src/devices/grohtml/html-table.h: Updated.
1054         * src/devices/grohtml/html-text.cpp (html_text::html_text):
1055         Initialize `start_space' with TRUE.
1056         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
1057         cases.
1058         (html_text::flush_text): Set `start_space' flag.
1059         (html_text::uses_indent, html_text::remove_para_space,
1060         html_text::get_alignment): New functions.
1061         (html_text::push_para): Updated.
1062         (html_text::do_para): Check for empty argument.
1063         Don't set `space_emitted'.
1064         (html_text::do_space, html_text::emit_space): Updated.
1066         * src/devices/grohtml/html-text.h (tag_definition): New variable
1067         `really_issued'.
1068         (html_text): New member function `uses_indent', `remove_para_space',
1069         `get_alignment'.
1071         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
1072         function.
1073         (simple_output:nl): Always emit `\n'.
1075         * src/devices/grohtml/post-html.cpp: Include `string.h'.
1076         (BASE_POINT_SIZE): Removed.
1077         (base_point_size, head_info): New global variables.
1078         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
1079         `is_eo_h'.
1080         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
1081         tags, respectively.
1082         (page::add_and_encode): Pass additional parameter for tag flag.
1083         (assert_pos): New structure.
1084         (assert_state): New class.
1085         (html_printer): Remove `indentation', `prev_indent'.
1086         Add variables `troff_indent', `device_indent', `temp_indent'.
1087         Add variables `seen_indent', `next_indent', `seen_pageoffset',
1088         `next_pageoffset', `seen_linelenght', `next_linelength',
1089         `seen_center', `next_center', `seen_space', `seen_break', `as'.
1090         Add member functions `do_check_center', `do_space', `do_head',
1091         `get_troff_indent', `restore_troff_indent', `handle_assertion',
1092         `handle_state_assertion', `do_end_para', `set_char_and_width'.
1093         Change argument to `do_fill' to `char *'.
1094         Update constructor.
1095         (html_printer::emit_raw): Call `shutdown_table'.
1096         Use new functions.
1097         (html_printer::do_center): Simplified.
1098         (html_printer::do_title): Improved.
1099         (html_printer::write_header): Emit one more newline.
1100         Use new functions.
1101         (html_printer::do_heading, html_printer::do_indent,
1102         html_printer::do_eol, html_printer::do_tab_ts,
1103         html_printer::do_tab, html_printer::do_tab0,
1104         html_printer::calc_po_in, html_printer::next_horiz_pos,
1105         html_printer::remove_courier_tabs,
1106         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
1107         Updated.
1108         (html_printer::do_linelength, html_printer::do_pageoffset,
1109         html_printer::do_indentation, html_printer::do_tempindent,
1110         html_printer::do_tab_te): Simplified.
1111         (html_printer::do_pointsize): Check whether point size is really
1112         associated a `.tl' tag.
1113         (html_printer::do_break): Rewritten.
1114         (html_printer::troff_tag): Improved.
1115         (html_printer::flush_globs): Updated.
1116         (html_printer::lookahead_for_tables): Handle `is_br'.
1117         Use new functions.
1118         (html_printer::set_char): Check `sbuf_style.f'.
1119         (html_printer::write_navigation): Use string comparison.
1120         (html_printer::~html_printer): Emit `head_info'.
1121         (html_printer::special): Rewritten.
1122         (get_str, make_val): New functions.
1123         (main): New option `s' to set the base point size.
1125         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
1127 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
1129         * src/roff/troff/node.cpp: New extern `debug_state'.
1130         Include `stringclass.h' and `mtsm.h'.
1131         Implement new classes and class members from `node.h'.
1132         (real_output_file): Make `fp' public.
1133         (troff_output_file): New variables `cur_div_level' and `tag_list'.
1134         Update constructors.
1135         (troff_output_file::really_print_line): Check whether we should push
1136         the current troff state and use the state at the start of the
1137         invocation of this diversion.
1138         (troff_output_file::add_to_tag_list): New member function.
1139         (node::add_char): Handle `glyph_comp_np'.
1141         * src/roff/troff/node.h: Include `mtsm.h'.
1142         (node): New variables `state', `push_state', `div_nest_level',
1143         `is_special'.  Update constructors, all descendants.
1144         Pass additional argument to `add_char' member function.
1145         New virtual member functions `is_tag', `debug_node',
1146         `debug_node_list'.  Update all descendants.
1147         (tag_node): New class for handling tags.
1148         (output_file): Add variable `state'.
1150 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
1152         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
1153         providing a minimal troff state machine to emit meta tags for the
1154         post-grohtml device driver.
1156         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
1157         files.
1159 2004-10-09  Werner LEMBERG  <wl@gnu.org>
1161         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
1163 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
1165         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
1167         * src/roff/troff/div.h: Include `mtsm.h'.
1168         (diversion): New variables `any_chars_added', `needs_push',
1169         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
1170         `saved_suppress_next_eol', `modified_tag'.
1171         New virtual member function `is_diversion'.  Update all descendants.
1173         * src/roff/troff/div.cpp (diversion::diversion,
1174         macro_diversion::macro_diversion): Updated.
1175         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
1176         `suppress_next_eol'.
1177         (top_level_diversion::space): Handle `curenv->seen_space'.
1178         (page_offset): Update tag handling.
1179         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
1181         * src/roff/troff/env.h (environment): Make `tabs' public.
1182         Remove `ignore_next_eol', `emitted_node'.
1183         Update `output_line', `output'.
1184         New variables `seen_space', `seen_eol', `suppress_next_eol',
1185         `seen_break'.
1186         New member functions `construct_state', `make_tag',
1187         `construct_format_state, `construct_new_line_state,
1188         `dump_troff_state'.
1189         Remove `add_html_tag', `make_html_tag'.
1191         * src/roff/troff/env.cpp: New externs `suppress_push',
1192         `get_diversion_state', `global_diverted_space'.
1193         (pending_output_line): New variable `was_centered'.
1194         Update constructor and all callers.
1195         (pending_output_line::output): Call `curenv->construct_format_state'.
1196         (environment::environment, environment::copy): Updated.
1197         (environment::output): Handle `was_centered'.
1198         (environment::add_char): Handle construct and diversion state.
1199         (environment::add_node): Handle construct state.
1200         (environment::newline): Handle `was_centered'.
1201         (environment::output_line): Updated.
1202         (environment::possibly_break_line): Updated.
1203         Update tag handling.
1204         (environment::add_html_tag): Replaced with...
1205         (environment::make_tag): New function.
1206         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
1207         (environment::dump_troff_state): New debugging function.
1208         (environment::construct_state, environment::construct_format_state,
1209         environment::construct_new_line_state): New functions.
1210         (environment::do_break): Updated.
1211         Handle `global_diverted_space'.
1212         (environment::handle_tag): Update tag handling.
1213         (point_size, fill, do_break_request): Don't call `add_html_tag'.
1214         (no_fill): Don't call `add_html_tag'.
1215         Set `suppress_next_eol'.
1216         (center, right_justify, line_length, indent, temporary_indent,
1217         set_tabs):
1218         Update tag handling.
1220         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
1221         (input_iterator): New variables `is_diversion', `diversion_state'.
1222         Update constructors.
1223         (input_stack): New member functions `get_div_level',
1224         `get_diversion_state', `check_end_diversion'.
1225         New variables `div_level', `diversion_state'.  Initialize them.
1226         (suppress_push, global_diverted_space): New global variables.
1227         (input_stack::finish_get, input_stack::finish_peek,
1228         input_stack::remove_boundary, input_stack::end_file,
1229         input_stack::clear, input_stack::pop_macro): Call
1230         `check_end_diversion'.
1231         (input_stack::push): Handle `div_level' and `diversion_state'.
1232         (get_diversion_state): New function.
1233         (diverted_space_node::reread): Handle `global_diverted_space'.
1234         (macro::macro): Update constructors.
1235         (macro::is_diversion): New function.
1236         (macro::operator=): Set `is_a_diversion'.
1237         (string_iterator): New member function `is_diversion'.
1238         (string_iterator::string_iterator): Update constructors.
1239         (string_iterator::fill): Set `div_nest_level'.
1240         (macro_iterator): New member function `is_diversion'.
1241         (do_if_request): Handle `suppress_push'.
1242         (tag, taga): New functions.
1243         (init_input_requests): Add `tag' and `taga' requests.
1245 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
1247         * src/include/font.h (font): New member function
1248         `get_image_generator'.
1249         New variables `unscaled_charwidths' and `image_generator'.
1251         * src/libs/libgroff/font.cpp (font::get_width): Always return the
1252         character's unscaled width if `font::unscaled_charwidths' is set.
1253         (font::get_image_generator): New function.
1254         (font::load_desc): Check the `unscaled_charwidths' and
1255         `image_generator' keywords.
1257         * src/libs/libgroff/fontfile.cpp: Initialize
1258         `font::unscaled_charwidths' and `font::image_generator'.
1260         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
1262         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
1264         * man/groff_font.man: Document `unscaled_charwidths' and
1265         `image_generator'.
1267         * src/preproc/html/pre-html.cpp: Include `device.h'.
1268         (image_gen): New global variable.
1269         (imageList::createPage): Use `image_gen'.
1270         (main): Use `image_generator' keyword.
1272 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1274         * tmac/html.tmac: Handle \[sqrtex].
1276 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1278         * src/include/printer.h (printer): New virtual method `round_width'.
1280         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1281         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1282         src/devices/grotty/tty.cpp (printer::round_width): New function
1283         member.
1285         * src/devices/grohtml/post-html.cpp (printer::round_width): New
1286         function member.
1287         (html_printer::set_numbered_char): Use it.
1289 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
1291         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1293         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1295         * configure: Regenerated.
1297         * Makefile.in (GHOSTSCRIPT): New variable.
1298         (MDEFINES): Add GHOSTSCRIPT.
1300 2004-10-03  Werner LEMBERG  <wl@gnu.org>
1302         * INSTALL.gen: Updated (taken from texinfo CVS).
1304 2004-09-28  Werner LEMBERG  <wl@gnu.org>
1306         * NEWS: Updated.
1308 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1310         * tmac/groff_www.man: Revised and updated.
1312 2004-09-26  Werner LEMBERG  <wl@gnu.org>
1314         Fix \$@ and \$* to handle any number of arguments.
1316         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1317         characters.
1319         * src/roff/troff/input.cpp (input_iterator::internal_level):
1320         Removed.
1321         (input_stack): New member functions `increase_level' and
1322         `decrease_level'.
1323         (input_stack::get_level): Don't use `internal_level'.
1324         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1325         (end_quote_iterator): Completely removed.
1326         (interpolate_arg): Build string for \$@ and \$* which is then
1327         pushed onto the input stack.
1329 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
1331         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1332         2004-09-19.
1334 2004-09-23  Werner LEMBERG  <wl@gnu.org>
1336         * tmac/an-old.tmac (ne): Using default scaling operator.
1338 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1340         This change implements the following features:
1342         PORPHANS
1343           New numeric register: Defines number of lines following LP, PP,
1344           QP, IP or XP, which must be kept together, before any automatic
1345           page break.  If insufficient space remains on the current page, a
1346           page break is forced before the new paragraph begins.
1348         HORPHANS
1349           New numeric register: Sets number of lines of following paragraph
1350           which must be kept with a heading, defined by NH or SH, before any
1351           automatic page break.  If insufficient space remains on the
1352           current page, a page break is forced before the heading.
1354         GROWPS
1355           (Thanks to Joerg van den Hoff, for this idea).
1357           New numeric register: Sets the first level of heading (set with
1358           NH), which will keep the same point size as body text; e.g. if
1359           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1360           point size specified by \n[PS], but .NH 2 and .NH 1 will have
1361           progressively larger point sizes, determined by \n[PSINCR] (see
1362           below).
1364         PSINCR
1365           New numeric register: Sets the point size increment for each level
1366           of heading, (set with NH), below the threshold level set by
1367           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1368           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1369           and all other levels will remain at 10pt, (because \n[PS] = 10).
1371         SH
1372           Existing macro now accepts a numeric argument, to make heading
1373           size match that of NH with same argument value, when the
1374           GROWPS/PSINCR feature is enabled.
1376         SN-DOT
1377           New string, set by NH macro, replaces the existing (undocumented)
1378           use of SN, to represent the assigned section number.
1380         SN-NO-DOT
1381           New string, set by NH macro, represents the assigned section
1382           number, but omits the terminal period (periods at intermediate
1383           levels are retained).
1385         SN
1386           String set by NH macro, originally undocumented, now implemented
1387           as an alias for SN-DOT (which reproduces original behaviour).
1389         * tmac/s.tmac (PORPHANS): New register.
1390         (par*start): Use it.
1391         (HORPHANS, GROWPS, PSINCR): New registers.
1392         (SH-NO-TAG, @SH): Use them.
1393         (@NH): Improved.
1395 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1397         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1398         of `Ds' and `De' macros.
1400 2004-09-10  Werner LEMBERG  <wl@gnu.org>
1402         In tbl, handle \a as an interpreted leader character if in
1403         compatibility mode.
1405         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1406         LEADER_CHAR): New macros.
1407         (compatible_flag): New declaration.
1409         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1410         LEADER_3, and LEADER_4 to `state'.
1411         (table_input::get): Handle `\a'.
1413         * src/preproc/tbl/table.cpp (PREFIX): Removed.
1414         (LEADER_REG): New macro.
1415         (table::init_output): Define LEADER_REG string register if in
1416         compatibility mode.
1418         * src/preproc/tbl/tbl.man: Document it.
1420 2004-08-18  Werner LEMBERG  <wl@gnu.org>
1422         * tmac/doc.tmac (An): Fix error message.
1424 2004-08-06  Werner LEMBERG  <wl@gnu.org>
1426         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1427         file can't be opened.  UNIX tbl has the same behaviour.
1429 2004-08-05  Y T  <doarhop@hotmail.com>
1431         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1432         (DBRead): If in compatibility mode, take into account the text
1433         when computing figure boundaries.
1435 2004-08-05  Werner LEMBERG  <wl@gnu.org>
1437         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
1438         from Tadziu Hoffmann.
1440 2004-08-03  Werner LEMBERG  <wl@gnu.org>
1442         * doc/meref.me: Document `_M' register.
1444 2004-08-03  Martin Husemann  <martin@duskware.de>
1446         Make hpftodit work correctly on big-endian systems.
1448         * src/utils/hpftodit/hpftodit.cpp (File): New method
1449         `get_uint32(char *)'.
1450         (entry): New member `orig_value'.
1451         (read_tags): Use new method.
1452         (output_font_name, read_and_output_pcltypeface, dump_ascii):
1453         Updated.
1455 2004-08-01  Werner LEMBERG  <wl@gnu.org>
1457         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
1458         are already in X11's `macros.t' file.
1460 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
1462         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1463         Fix casting bug.
1464         (read_and_output_pcltypeface): Handle strings with length <= 4.
1466 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
1468         * tmac/s.tmac (pg@top): Don't save `PO' register.
1469         (pg*end-col, pg*end-page): Directly use `PO' register.
1471 2004-07-27  Werner LEMBERG  <wl@gnu.org>
1473         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1475         * src/preproc/refer/refer.cpp (output_references): Check for
1476         empty hash table.
1477         * src/preproc/refer/refer.man: Improve documentation of
1478         `bibliography' command.
1480 2004-07-26  Werner LEMBERG  <wl@gnu.org>
1482         Add requests `fcolor' and `gcolor'.
1484         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1485         New functions.
1486         (init_env_requests): Add `fcolor' and `gcolor'.
1488         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1490         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1491         Document new requests.
1493 2004-07-24  Werner LEMBERG  <wl@gnu.org>
1495         Add support for fractional point sizes in ms macros.  A value for
1496         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1497         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
1499         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1500         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1502         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1504 2004-07-19  Werner LEMBERG  <wl@gnu.org>
1506         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1507         Update constructor.
1508         (do_for, for_input::get, for_input::peek): Handle negative `by'.
1509         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1511 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
1513         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1514         * tmac/groff_mdoc.man: Updated.
1516 2004-07-05  Werner LEMBERG  <wl@gnu.org>
1518         * doc/groff.texinfo: Further improve documentation of `hcode'.
1520 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
1522         Improve appearance of arrows in pic.
1524         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1525         arrow head thin.
1526         Use two line segments for drawing non-filled arrow head.
1527         (line_object::print, spline_object::print): Shorten line length to
1528         avoid arrow sticking.
1529         (arc_object::print): Take arrow direction into account.
1531 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1533         * tmac/groff_www.man: Update documentation of .MPIMG.
1535 2004-07-03  Werner LEMBERG  <wl@gnu.org>
1537         * tmac/an-old.tmac (RI): Always start with font `R'.
1538         (RI, IR): Properly end with font `R'.
1540 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1542         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1543         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1544         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1545         Don't pass more than six arguments to .R, .I, .B, etc., for
1546         compatibility with traditional troff macros.
1548 2004-07-02  Werner LEMBERG  <wl@gnu.org>
1550         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1551         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1552         Update all users.
1553         (PUSH_COMP_MODE): New internal character constant.
1554         Update all users.
1556         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1557         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1558         (token::next, macro::append): Handle PUSH_COMP_MODE.
1559         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1560         POP_GROFFCOMP after each of the decoded arguments to make them
1561         independent from the compatibility mode status.
1562         (comp_mode): Add `COMP_ENABLE'.
1563         (do_define_string, do_define_macro): Handle COMP_ENABLE.
1564         (define_string, append_string, define_macro, define_indirect_macro,
1565         append_macro, append_indirect_macro): Handle `compatible_flag'.
1566         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1568         * man/groff_diff.man, doc/groff.texinfo: Updated.
1570 2004-07-01  Werner LEMBERG  <wl@gnu.org>
1572         * doc/groff.texinfo: Improve documentation of `hcode'.
1573         Use @documentencoding and convert document to latin-1; to do that
1574         make latin characters active and assign proper macros (within a
1575         @tex...@end tex environment).
1576         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1577         * doc/Makefile.sub (groff): Ditto.
1579 2004-06-29  Werner LEMBERG  <wl@gnu.org>
1581         Implement two new conditional operators `F <name>' and `S <name>'
1582         which check whether <name> is a valid font or style, respectively.
1584         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1585         (text_file::text_file): Updated.
1586         (text_file::error): Don't emit message if `silent' is set.
1587         (font::load_font): Add optional third argument (which is directly
1588         passed to `load'.
1589         (font::load): Add optional second argument to check the header of
1590         a font only, without emitting warning or error messages.
1591         * src/include/font.h (font): Updated.
1593         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1594         conditionals.
1595         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1596         fourth argument to check a font without mounting.
1597         (check_font, check_style): New functions.
1598         * src/roff/troff/node.h: Updated.
1600         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1601         Updated.
1603 2004-06-27  Werner LEMBERG  <wl@gnu.org>
1605         Implement new string-valued register `.sty' to return the current
1606         style name.
1608         * env.cpp (environment::get_style_name_string): New function.
1609         (init_env_requests): Add `.sty' register.
1610         * env.h (environment): Updated.
1611         * node.cpp (font_info): Make `get_style_name' a friend.
1612         (get_style_name): New function.
1613         * node.h: Updated.
1615         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1616         Updated.
1618 2004-06-15  Werner LEMBERG  <wl@gnu.org>
1620         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1621         `nospaces' option.
1623 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
1625         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1626         and \n[mo] to avoid dependency on current date.
1628 2004-06-08  Werner LEMBERG  <wl@gnu.org>
1630         * Makefile.sub (install_data): New target.
1632 2004-06-04  Werner LEMBERG  <wl@gnu.org>
1634         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1636 2004-06-03  Werner LEMBERG  <wl@gnu.org>
1638         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1639         order of libraries.
1640         (install_data): Add $(srcdir).
1642         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1643         libraries.
1645 2004-06-02  Werner LEMBERG  <wl@gnu.org>
1647         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1648         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1649         Add test for Xmu library.
1650         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1651         GROFF_APPRESDIR_DEFAULT): New macros.
1653         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1654         and GROFF_APPRESDIR_DEFAULT.
1656         * configure: Regenerated.
1658         * Makefile.in (appresdir): New variable.
1659         (MDEFINES): Add appresdir.
1661         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1662         -Xt.
1663         (install_data, uninstall_sub): New targets to handle GXditview.ad.
1665         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1666         `$(srcdir)/eign', not `eign'.
1668         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1670         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1671         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1672         Protect (g)xditview with `\%' to avoid hyphenation.
1673         Other minor formatting.
1675 2004-06-01  Werner LEMBERG  <wl@gnu.org>
1677         Integrate gxditview into groff's standard directory hierarchy.
1679         * src/xditview/*: Moved to ...
1680         * src/devices/xditview/*: Here.
1681         Moved DviChar.h and XFontName.h to src/include.
1682         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1683         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1684         Moved xtotroff.c to new directory src/utils/xtotroff.
1685         Provide proper Makefile.sub files (reusing the stuff from
1686         Imakefile.in).
1687         DESC renamed to DESC.in.
1688         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1689         Converted everything from K&R to ANSI C.
1690         Decorated with const where appropriate.
1691         Cast string constants with `String' and `char *' where appropriate.
1692         Made it compile with C++ (used as a C compiler).
1693         Removed other minor compiler warnings.
1695         * src/devices/xditview/device.c: Include config.h, string.h, and
1696         defs.h.
1697         Don't declare `exit', `strtok', `strchr', and `getenv'.
1698         (FONTPATH): Remove.
1700         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1701         `XFormatFontName'.
1703         * src/devices/xditview/xditview.c: Include config.h.
1704         Include stdio.h earlier.
1705         Protect declaration of `popen' and `pclose' with
1706         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1707         Replace `caddr_t' with `XtPointer'.
1708         (MakePromptFunc): New typedef.
1709         (DoPrint): Use RETSIGTYPE.
1710         (promptfunction): Change type to MakePromptFunc.
1711         (MakePrompt): Use MakePromptFunc for third argument.
1712         (xmalloc): Removed.
1714         * src/devices/xditview/ad2c: Add casts to `String'.
1716         * src/include/XFontName.h (XFontNameString): Don't use array
1717         notation.
1718         Add prototypes for `XParseFontName', `XFormatFontName',
1719         `XCompareFontName', and `XCopyFontName'.
1721         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1722         `XFontName.h'.
1724         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1725         Don't declare `XParseFontName' and `XFormatFontName'.
1726         (xmalloc): Removed.
1727         (main): Remove `optind' and `optarg'.
1729         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1730         (to select programs which need X).
1731         Make XDEVIDIRS depend on `FORCE'.
1732         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1733         X support).
1734         (MDEFINES): Updated.
1735         (LIBDIRS): Use XLIBDIRS.
1736         (CPROGDIRS): Use XPROGDIRS.
1737         (DEVDIRS): Remove font directories for gxditview.
1738         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1739         (EXTRADIRS): Remove src/xditview.
1741         * Makefile.sub (DISCLEANFILES): Updated.
1743         * Makefile.comm (LIBXUTIL): New variable.
1744         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1745         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1747         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1749         * aclocal.m4 (GROFF_X11): New function.
1751         * configure.ac: Call GROFF_X11.
1752         Don't create src/xditview/Imakefile.
1753         Don't emit notice how to build gxditview.
1755         * configure: Regenerated.
1757         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1759 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
1761         * Makefile.in (CPPFLAGS): Define.
1762         (MDEFINES): Add CPPFLAGS.
1764 2004-05-27  Werner LEMBERG  <wl@gnu.org>
1766         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1768 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
1770         Fix problems with `friend name injections'.
1772         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1773         make_script_box), src/roff/troff/div.h (end_diversions),
1774         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1775         change 2004-04-08.
1777 2004-05-25  Bernd Warken  <bwarken@mayn.de>
1779         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1781 2004-05-25  Werner LEMBERG  <wl@gnu.org>
1783         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1784         src/libs/libgroff/color.cpp: Include lib.h.
1786 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1788         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1789         through Forte 6u1, and for how to get GNU make on Solaris.
1791 2004-05-24  Werner LEMBERG  <wl@gnu.org>
1793         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
1794         by Paul Eggert.
1796 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1798         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1799         rule.
1801 2005-05-14  Werner LEMBERG  <wl@gnu.org>
1803         * REVISION: Set to 2.
1805         * aclocal.m4 (GROFF_STDINT_H): Removed.
1806         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1808         * configure.ac: Updated.
1809         * configure, src/include/config.hin: Regenerated.
1811         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1812         inttypes.h conditionally.
1814 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1816 Version 1.19.1 released
1817 =======================
1819 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1821         * src/preproc/refer/label.y (same_author_last_name,
1822         same_author_name): Handle empty sort keys.
1824 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1826         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1827         tmac/TODO: Updated.
1829         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1830         doc-str-Lb-librt): Reset font.
1831         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1832         Provide `doc-str-Lb' to reset font.
1833         * tmac/groff_mdoc.man: Updated.
1835 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1837         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1838         snprintf versions which don't conform to ANSI C 99 (this is,
1839         counting the string's trailing null byte in the return value).
1841 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1843         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1844         that all implementations of sprintf handle null pointers correctly.
1846 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1848         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1849         Document `.U' register.
1851         * src/roff/troff/env.cpp (environment::mark_last_line)
1852         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1854 2004-05-04  Larry Kollar  <kollar@alltel.net>
1856         New read-only register `.U'; it returns 1 in safer mode and 0
1857         otherwise.
1859         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1860         register.
1862 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1864         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1866 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1868         * src/include/font.h (font): Use `int' for ch_index.
1869         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1870         font::compact): Updated.
1872         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1873         warnings.
1875         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1876         (hyphen_word): Fix compiler warnings.
1877         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1878         `char'.
1879         Update all callers.
1880         (get_delim_number, get_line_arg): Change second argument type to
1881         `unsigned char'.
1882         (macro_header::copy, token::next, do_define_string,
1883         do_define_character, substring_request, asciify_macro,
1884         unformat_macro, read_size, non_interpreted_node::interpret,
1885         while_request, main: Fix compiler warnings.
1886         (read_color_draw_node): Initialize `col'.
1888         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1889         `start_col' and `end_col' of type `int'.
1890         (vertical_rule): Make `col' of type `int'.
1892         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1893         for EOF.
1895         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1896         New arrays.
1897         (format_serial): Use them to remove dependency on ASCII.
1899         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1900         compiler warning.
1901         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1902         Ditto.
1904         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1905         compiler warnings.
1906         (glyph): Change type of `hpos' to `int'.
1908         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1909         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1911         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1913         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1915 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1917         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1918         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1919         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1920         `double' instead of `float' everywhere.
1921         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1922         everywhere.
1923         (main): Add return value.
1924         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1925         everywhere.
1926         Update all user functions.
1928         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1929         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1930         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1931         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1932         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1933         src/roff/troff/input.cpp, src/roff/troff/request.h,
1934         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1935         declarations.
1937         * src/utils/indxbib/signal.c: Include stdlib.h.
1939 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1941         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1942         before the first page.
1944 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1946         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1947         (doc-operating-system-*): Updated.
1948         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1949         (doc-str-Lb-*): Add more library names.
1951 2004-04-10  Art Haas  <ahaas@airmail.net>
1953         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1954         use anonymous type.
1956 2004-04-09  Art Haas  <ahaas@airmail.net>
1958         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1960 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1962         * arch/misc/shdeps.sh: Generate better comment for sed script.
1964 2004-04-08  Art Haas  <ahaas@airmail.net>
1966         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1967         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1968         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1969         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1970         (polyfill), src/preproc/grn/main.cpp (polyfill),
1971         src/preproc/refer/command.cpp (command_table),
1972         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1973         gcc 3.5 doesn't like).
1975 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1977         Removing many compiler warnings.  groff should now compile with
1978         a C++ compiler used for C files also.  [Simple variable renamings
1979         to avoid shadowing aren't logged in detail.]
1981         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1982         (draw_dvi_printer::draw) ['c']: Enclose in block.
1984         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1985         (page::add_line): Fix typos.
1986         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1988         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1989         Some local variable renamings.
1990         * src/devices/grolbp/lbp.h: Some local variable renamings.
1992         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1993         variable renamings.
1995         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1996         Remove redundant local variable declaration.
1997         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1998         Don't use `caddr_t' but `void *'.
1999         Enclose functions with `extern "C"' for C++.
2001         * src/libs/libdriver/input.cpp (remember_filename,
2002         remember_source_filename): Use cast for string constant.
2004         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
2005         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
2006         src/libs/libgroff/geometry.cpp: Some local variable renamings.
2007         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
2008         style.
2009         Enclose functions with `extern "C"' for C++.
2010         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
2011         (needs_quoting): Return `int'.
2012         (quote_arg): Add proper casts to malloc and realloc.
2013         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
2014         various MS Windows environments.
2015         (spawnvp_wrapper): Add proper cast to malloc.
2017         * src/preproc/eqn/box.h: Remove redundant declarations of
2018         `make_script_box', `make_mark_box' and `make_lineup_box'.
2019         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
2020         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
2021         variable renamings.
2023         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
2024         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
2025         (dx, dy): Renamed functions to...
2026         (deltax, deltay): This.
2027         * src/preproc/grn/main.cpp: Some local variable renamings.
2028         (deffont): Add `const'.
2029         (initpic, conv): Use cast for string constant.
2031         * src/preproc/html/pre-html.cpp: Some local variable renamings.
2032         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
2033         (char_buffer::run_output_filter): Second argument is unused.
2034         * src/preproc/html/pushback.cpp: Some local variable renamings.
2036         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
2037         * src/preproc/pic/object.cpp: Some local variable renamings.
2039         * src/preproc/refer/label.y (lookup_label): Remove redundant
2040         declaration of local variable.
2042         * src/preproc/soelim.cpp: Remove redundant declaration of
2043         `interpret_lf_args'.
2045         * src/preproc/tbl/main.cpp: Some local variable renamings.
2047         * src/roff/groff/groff.cpp (main): Use cast for string constant.
2048         * src/roff/groff/pipeline.c: Enclose declarations of `error',
2049         `c_fatal', and `i_to_a' with `extern "C"' for C++.
2050         Don't use C++-style comments.
2052         * src/roff/troff/env.h: Remove redundant declaration of `title'.
2053         * src/roff/troff/node.h, src/roff/troff/env.cpp,
2054         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
2055         renamings.
2056         * src/roff/troff/div.h: Remove redundant declaration of
2057         `end_diversions'.
2058         * src/roff/troff/troff.h: Remove redundant declaration of
2059         `cleanup_and_exit'
2060         * src/roff/troff/input.cpp: Remove redundant declaration of
2061         `handle_first_page_transition' and `process_input_stack'.
2063         * src/utils/hpftodit.cpp: Some local variable renamings.
2065         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
2066         for C++.
2067         Don't define RETSIGTYPE.
2068         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
2070         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
2071         (error): Use `const' in argument.
2072         (main): Remove redundant declaration of `optind'.
2073         Move declaration of `Version_string' to top-level.
2075         * PROBLEMS: Document difficulties compiling signal.c if a C++
2076         compiler is used for C.
2078 2004-04-07  Werner LEMBERG  <wl@gnu.org>
2080         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
2082 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
2084         Make scripts like nroff.sh and neqn.sh portable across various
2085         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
2086         non-POSIX path separators.  The idea is to extend those scripts to
2087         decide at run-time (of the script) which path separator to use.
2089         * arch/misc/Makefile.sub: New file.
2090         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
2091         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
2092         a proper definition of the variable `GROFF_RUNTIME'.
2094         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
2095         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
2096         (PROGDEPDIRS): New variable.
2097         `FORCE' it.
2098         (PROGDIRS): Add PROGDEPDIRS.
2100         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
2101         Don't substitute @SEP@ and @BINDIR@.
2102         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
2103         (PATH): Use GROFF_RUNTIME.
2105         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
2106         Don't substitute @SEP@ and @BINDIR@.
2107         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
2108         (PATH): Use GROFF_RUNTIME.
2110 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2112         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
2113         Cygwin which doesn't handle stderr correctly.
2115 2004-03-08  Werner LEMBERG  <wl@gnu.org>
2117         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
2118         against empty argument.  Problem reported by <cgd@broadcom.com>.
2120 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2122         * Makefile.in (SEP): Replaced with...
2123         (RT_SEP, SH_SEP): Separators for the target platform's native path
2124         separator and the build environment, respectively.
2125         (fontpath, tmacpath): Use RT_SEP.
2126         (MDEFINES): Updated.
2128         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2129         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2130         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
2131         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
2133 2004-03-05  Werner LEMBERG  <wl@gnu.org>
2135         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
2136         reduce alignment problems with newer printers which use built-in
2137         TrueType fonts (instead of the older Intellifonts).  The ideal
2138         solution is to provide a second set of groff metric files, but this
2139         is extremely time-consuming to produce, given that HP's metric
2140         files are very rudimentary.
2142 2004-03-01  Werner LEMBERG  <wl@gnu.org>
2144         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
2145         s/operand/argument/ in error message.
2147 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2149         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
2150         is in use.
2152 2004-03-01  Antti Kantee  <pooka@netbsd.org>
2154         * tmac/s.tmac (XE): Fix error message.
2156 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
2158         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
2159         New macros.
2161         * src/roff/groff/pipeline.c: Declare strcasecmp.
2162         (run_pipeline) [_WIN32]: Use function name variants which don't
2163         start with `_'.
2164         Fix stream handling.
2166 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
2168         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
2169         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
2170         for platforms which use the native Win32 runtime libraries.
2171         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
2173         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
2174         QUOTE_ARG_REALLOC_ERROR): Fix string.
2176         * src/preproc/html/pre-html.cpp: Remove declaration of
2177         `spawnvp_wrapper'.
2178         Don't use __MINGW32__.
2179         s/DEBUG_FILE/DEBUG_FILE_DIR/.
2180         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
2181         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
2182         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
2183         calls to `set_redirection' and `WAIT'.
2184         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
2185         Fix calls to `set_redirection' and `save_and_redirect'.
2186         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
2187         to `set_redirection' and `save_and_redirect'.
2188         (usage): Fix message.
2189         (makeTempFiles, main): Use `DEBUG_FILE'.
2191 2004-02-21  Werner LEMBERG  <wl@gnu.org>
2193         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
2195 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
2197         * src/libs/libgroff/quotearg.c: New file, providing proper argument
2198         quoting for MSVC's spawn* and exec* functions.
2199         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
2200         spawnvp with proper quoting for MSVC.
2202         * src/libs/libgroff/assert.cpp (program_name),
2203         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
2204         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
2206         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
2208         * src/include/error.h (program_name): Declare as `extern "C"'.
2209         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
2211 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
2213         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
2214         spawnvp_wrapper.
2215         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
2217 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
2219         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
2220         variable.
2221         (sbasename) [__MSDOS__ || ...]: New function.
2222         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
2223         generic algorithm.
2224         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
2225         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
2226         of XXX.
2227         Use STDOUT_FILENO instead of hardcoded file handle.
2228         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
2230 2004-02-19  Werner LEMBERG  <wl@gnu.org>
2232         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
2233         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
2235 2004-02-18  Werner LEMBERG  <wl@gnu.org>
2237         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
2238         new font and mapping files.
2240 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
2241             Keith Marshall  <keith.d.marshall@ntlworld.com>
2243         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
2244         an input pipe.  This is needed for the MSVC compiler to make troff's
2245         `-o' option work.
2247         * src/roff/troff/div.cpp: Include nonposix.h.
2248         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
2250 2004-02-17  Werner LEMBERG  <wl@gnu.org>
2252         * font/devlj4/generate/special.awk: New script.
2253         * font/devlj4/generate/Makefile (S): Use special.awk.
2254         * font/devlj4/*: Regenerated, including the following new files:
2255         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
2256         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
2257         * NEWS: Document new lj4 fonts and revised hpftodit.
2259 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
2261         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
2263 2004-01-25  Werner LEMBERG  <wl@gnu.org>
2265         * src/libs/libgroff/progname.cpp: Replaced with...
2266         * src/libs/libgroff/progname.c: New file.
2267         * src/libs/libgroff/Makefile.sub: Updated accordingly.
2269 2004-01-17  Werner LEMBERG  <wl@gnu.org>
2271         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
2273 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
2275         * font/devlj4/generate/wingdings.map,
2276         font/devlj4/generate/symbol.map: Include unnamed glyphs.
2277         Use groff glyph names where possible.
2278         * src/devices/grolj4/lj4_font.man: Minor updates.
2280 2004-01-13  Werner LEMBERG  <wl@gnu.org>
2282         * tmac/www.tmac (DC): Handle TTY devices.
2284         * doc/webpage.ms: Document viewCVS from ffii.org.
2285         * NEWS, README: Updated.
2287         * src/roff/groff/groff.man: Mention lj4_font man page.
2289         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2290         variables.
2291         (FONTS): Add SYMBOL and WINGDINGS.
2292         (SYMBOL, WINGDINGS): New targets.
2294 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
2296         * src/devices/grolj4/lj4_font.man: New man page.
2297         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2298         * src/devices/grolj4.man: Mention lj4_font man page.
2300         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2301         * src/utils/hpftodit/hpftodit.man: Document it.
2302         (CW): New macro.
2303         Remove details about fonts (which are now in lj4_font.man).
2305         * font/devlj4/generate/symbol.map,
2306         font/devlj4/generate/wingdings.map: New files.
2308 2004-01-12  Werner LEMBERG  <wl@gnu.org>
2310         * README: Mention ffii's viewcvs access.
2312 2004-01-09  Werner LEMBERG  <wl@gnu.org>
2314         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2316 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
2318         Revert most of the change from 2004-01-03 to better control used
2319         symbol sets.
2321         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2322         (text_symbol_sets, special_symbol_sets): New arrays.
2323         (symbol_set_table): New global variable.
2324         (read_symbol_sets): Use search order given in the text_symbol_sets
2325         and special_symbol_sets arrays.  If command line flag -a is not
2326         given, search both arrays.
2327         (output_charset): Require x_height_tag only for command line flag -i.
2329 2004-01-06  Werner LEMBERG  <wl@gnu.org>
2331         Implement string-valued registers \n[.m] and \n[.M] to return the
2332         name of the current drawing and background color, respectively.
2334         * src/roff/troff/symbol.h: Moved to...
2335         * src/include/symbol.h: Here.
2336         Small fixes to make it work outside of the `troff' directory.
2337         * src/roff/troff/symbol.cpp: Moved to...
2338         * src/libs/libgroff/symbol.cpp: Here.
2339         Small fixes to make it work outside of the `troff' directory.
2341         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2342         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2343         Updated.
2345         * src/include/color.h: Include symbol.h.
2346         (color): Add new field `nm'.
2347         * src/libs/libgroff/color.cpp (color::color): Updated.
2349         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2350         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2351         src/roff/troff/reg.cpp: Don't include symbol.h.
2353         * src/roff/troff/env.cpp: Don't include symbol.h.
2354         (environment::get_glyph_color_string,
2355         environment_get_fill_color_string): New member functions.
2356         (init_env_requests): Handle `.m' and `.M' registers.
2357         * src/roff/troff/input.cpp: Don't include symbol.h.
2358         (default_symbol): Moved to symbol.cpp/symbol.h.
2359         (do_glyph_color, do_fill_color, define_color): Pass symbol name
2360         to color constructor.
2361         * src/roff/troff/env.h: Updated.
2363         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2364         Document new registers.
2366 2004-01-05  Werner LEMBERG  <wl@gnu.org>
2368         * src/roff/troff/node.cpp (space_node::get_breakpoints,
2369         space_node::nbreaks): Protect against zero `next' field.
2371 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
2373         In hpftodit, use the symbol sets offered in the TFM.
2375         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2376         (symbol_set, text_symbol_sets, special_symbol_sets,
2377         symbol_set_table): Removed.
2378         (get_printcode): Removed.
2379         (read_symbol_sets): Initialize `symbol_set' field with
2380         `NO_SYMBOL_SET'.
2381         Simplify code to just use the `kind' value.
2382         (output_charset): Improve output formatting.
2383         (dump_symbols): Simplified.
2385 2004-01-02  Werner LEMBERG  <wl@gnu.org>
2387         * font/devlj4/generate/text.map: Add more MSL numbers.
2389 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
2391         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2392         (text_symbol_sets): Add more symbol sets.
2393         (debug_flag): New static variable (moved from `main').
2394         (get_printcode, show_symset): New functions.
2395         (main): Remove `debug_flag'.
2396         (output_charset): Use `show_symset'.
2397         (dump_symbols):  Use `show_symset'.
2398         Print symsets for all glyphs.
2399         (read_map): Actually call `unicode_to_ucode_make' but this time
2400         correctly.
2402 2004-01-01  Werner LEMBERG  <wl@gnu.org>
2404         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2405         Fix placement of comments.
2407 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
2409         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2410         option `-d' is given.
2411         (output_charset): Improve warning messages to give more information.
2412         (dump_symbols): Make information more precise.
2413         (usage): Updated.
2414         (read_map): Don't call unicode_to_ucode_name; the glyph names must
2415         appear as-is and shouldn't be decomposed.
2417 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2419         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2420         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2421         (FONTS): Add TrueType font families Arial and Times New Roman.
2422         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2423         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2424         `fl'.
2426 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
2428         * test-groff.in (SEP): Quote value.
2429         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2430         `tem' to `char*' to avoid deallocation of a pointer to a constant
2431         object which some compilers don't like.
2433 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2435         * font/devlj4/generate (text.map, special.map): Rewritten to work
2436         with the new hpftodit version.
2438 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
2440         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2441         set and 8bit character code for all glyphs also.
2443 2003-12-30  Werner LEMBERG  <wl@gnu.org>
2445         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2447 2003-12-29  Werner LEMBERG  <wl@gnu.org>
2449         More fixes for MSVC compiler.
2451         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2452         $(SEP).
2454         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2455         STDERR_FILENO) [_MSC_VER]: Define conditionally.
2456         (getpid) [_MSC_VER]: Remove.
2457         Include direct.h and process.h conditionally.
2459         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2460         parentheses for a_delete.
2462         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2464         * test-groff: Replaced with...
2465         * test-groff.in: This new template to handle path separator
2466         properly.
2468         * configure.ac: Check for direct.h and process.h.
2469         Generate test-groff script.
2470         * configure, src/include/config.hin: Regenerated.
2472 2003-12-28  Werner LEMBERG  <wl@gnu.org>
2474         Add integral extension glyph.
2475         Add new option `-x' to afmtodit to suppress use of built-in AGL.
2477         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2479         * font/devps/generate/textmap: Provide entry for `integralex' to
2480         override (old) PUA value of the AGL.
2481         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2482         * font/devps/*: Regenerated.
2484         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2485         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2487 2003-12-27  Werner LEMBERG  <wl@gnu.org>
2489         Add forgotten `coproduct' symbol (already available for DVI).
2491         * font/devhtml/R.proto, font/devps/generate/textmap,
2492         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2493         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2494         U+2210 (\[coproduct]).
2496 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
2498         hpftodit has been extended to handle TrueType metric files and
2499         more glyphs.  See hpftodit.man for more details.
2501         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
2502         ctype.h, and unicode.h.
2503         s/msl/charcode/ everywhere since we now handle Unicode values also.
2504         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2505         Use it where appropriate.
2506         (MULTIPLIER): Replaced with...
2507         (multiplier): New global static variable.
2508         (scale): Updated.
2509         (tag_type): Add more TFM tags.
2510         (tag_name): New array.
2511         (ENUM_TYPE, FLOAT_TYPE): Removed.
2512         (BYTE_TYPE): New value assigned.
2513         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2514         (text_symbol_sets, special_symbol_sets): Extended to cover more
2515         sets.
2516         (check_type): Add return value.
2517         (check_units): Add parameters to get ppi and upem values.
2518         Handle TrueType TFM data.
2519         (output_font_name): New function.
2520         (output_charset): Add parameter to handle TFM type.
2521         Handle TrueType TFMs also.
2522         (em_fract): New macro.
2523         (dump_tags): Be much more verbose and handle more tags.
2524         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2525         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2526         functions.
2527         (read_map): Add parameter to handle TFM type.
2528         Handle both MSL and Unicode mappings.
2529         (main): Add two new command line options `-a' and `-q'.
2530         Updated to make use of new functions.
2531         (usage): Updated.
2533         * src/utils/hpftodit/hpuni.cpp: New file.
2535         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2536         Updated.
2538 2003-12-25  Werner LEMBERG  <wl@gnu.org>
2540         * src/include/nonposix.h (read) [_MSC_VER]: Define.
2542 2003-12-24  Werner LEMBERG  <wl@gnu.org>
2544         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2545         by Michail Vidiassov <master@iaas.msu.ru>.
2547 2003-12-20  Werner LEMBERG  <wl@gnu.org>
2549         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2550         and u0049_0307.
2551         Add missing latin-2 glyphs.
2552         * font/devutf8/R.proto: Add missing latin-2 glyphs.
2554         * tmac/troffrc: Load `composite.tmac' earlier.
2556         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2557         u00{53,73}_0327, and u0049_0307.
2558         * tmac/X.tmac: Add u00{47,67}_0306.
2559         * tmac/tty-char.tmac: Use composite glyph names for readability.
2561         * NEWS: Updated.
2563         * src/include/unicode.h: Remove `extern' keywords.
2565 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
2567         * tmac/latin5.tmac: New file.
2569 2003-12-19  Werner LEMBERG  <wl@gnu.org>
2571         Add some glyphs needed for Turkish.
2573         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2574         and u0049_0307.
2576         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
2577         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2578         u00{53,73}_0327, and u0049_0307.
2580 2003-12-18  Werner LEMBERG  <wl@gnu.org>
2582         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2583         from 2001-10-04.
2584         Remove trailing zeros.
2586 2003-12-17  Werner LEMBERG  <wl@gnu.org>
2588         Make \? transparent to end-of-sentence recognition.
2590         * src/roff/troff/input.cc (non_interpreted_node): Add
2591         `ends_sentence' member function.
2593 2003-12-16  Werner LEMBERG  <wl@gnu.org>
2595         * doc/groff.texinfo: Document `dt' request correctly.
2596         Other minor typographical improvements.
2598 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
2600         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2602 2003-12-10  Richard Stallman  <rms@gnu.org>
2604         * LICENSE: Better wording.
2606 2003-12-09  Werner LEMBERG  <wl@gnu.org>
2608         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2609         * configure, NEWS: Updated.
2611 2003-12-08  Werner LEMBERG  <wl@gnu.org>
2613         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2615 2003-12-07  Bernd Warken  <bwarken@mayn.de>
2617         * LICENSE: Updated.
2619 2003-12-07  Werner LEMBERG  <wl@gnu.org>
2621         * INSTALL: Improved.
2623 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2625         Use path separator character of target platform for compiled-in
2626         default paths.
2628         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2629         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2630         * configure: Regenerated.
2631         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2633 2003-12-05  Werner LEMBERG  <wl@gnu.org>
2635         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2636         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2638 2003-12-04  Bernd Warken  <bwarken@mayn.de>
2640         * LICENSE: New file.
2642 2003-12-03  Werner LEMBERG  <wl@gnu.org>
2644         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2645         ligatures present in AFM files since groff currently only
2646         understands some standard ligatures and nothing else.
2648 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
2650         * src/roff/groff/groff.cpp (main): Don't run the spooler if
2651         option -v is given.
2653         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2654         messages.
2655         Close stdout copy.
2656         Don't use Unix wait flags.
2658 2003-12-02  Werner LEMBERG  <wl@gnu.org>
2660         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2661         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2662         src/roff/troff/uniuni.cpp: Moved to...
2663         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2664         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2665         src/libs/libgroff/uniuni.cpp: Here.
2667         * src/include/Makefile.sub.old (HDRS),
2668         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2669         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2671 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2673         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2674         `DEBUG_FILE'.
2675         Updated all users.
2677 2003-12-01  Werner LEMBERG  <wl@gnu.org>
2679         * groff.texinfo: Document special behaviour of `.vs 0'.
2680         Improve documentation of `cflags' request.
2681         * NEWS: Updated.
2683 2003-11-29  Werner LEMBERG  <wl@gnu.org>
2685         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2686         * font/devlj4/CORONET: Regenerated.
2688 2003-11-24  Werner LEMBERG  <wl@gnu.org>
2690         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2691         if processing hyphenation patterns in traditional mode.
2692         Improve error messages.
2694 2003-11-20  Werner LEMBERG  <wl@gnu.org>
2696         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2697         troff_output_file::put_char): Fix type of local variable `c'.
2699 2003-11-19  Werner LEMBERG  <wl@gnu.org>
2701         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
2702         declarations.
2703         (i_to_a): Removed.  libgroff already provides this function.
2704         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2706 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
2708         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2709         HAVE_DECL_SYS_LIST.
2711 2003-11-17  Werner LEMBERG  <wl@gnu.org>
2713         * COPYING: Use correct version.
2715 2003-11-11  Werner LEMBERG  <wl@gnu.org>
2717         LynxOS 4.0.0 doesn't declare vfprintf.
2719         * configure.ac: Check for vfprintf.
2720         * configure: Regenerated.
2721         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2722         * src/include/config.hin: Regenerated.
2724 2003-11-10  Werner LEMBERG  <wl@gnu.org>
2726         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2728         * configure.ac: Check for vsnprintf.
2729         * configure: Regenerated.
2730         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2731         `HAVE_VSNPRINTF'.
2732         * src/include/config.hin: Regenerated.
2734 2003-11-09  Werner LEMBERG  <wl@gnu.org>
2736         * aclocal.m4: Updated syntax to autoconf 2.59.
2737         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2738         Don't check for gsos2.
2739         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
2740         working abs_top_srcdir and abs_top_builddir.
2742         * configure.ac: Updated syntax to autoconf 2.59.
2743         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2744         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2745         * configure: Regenerated.
2747         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2748         s/@groff_top_builddir@/@abs_top_builddir@/.
2750         * src/roff/groff/pipeline.c (xstrsignal):
2751         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2753 2003-11-07  Werner LEMBERG  <wl@gnu.org>
2755         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2756         make start angle smaller than end angle to circumvent a bug in tpic
2757         handling of some versions of dvipdfm (and dvipdfmx).
2759 2003-10-30  Werner LEMBERG  <wl@gnu.org>
2761         * src/devices/grops/grops.man: Improve section on creating EPS.
2763 2003-10-29  Werner LEMBERG  <wl@gnu.org>
2765         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2766         -P-pletter).
2768 2003-10-28  Werner LEMBERG  <wl@gnu.org>
2770         * doc/groff.texinfo: Fix documentation of `.if'.
2772 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
2774         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2775         the form `uniXXXX' also.
2777 2003-10-27  Werner LEMBERG  <wl@gnu.org>
2779         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2780         contrib/pic2graph/pic2graph.sh: Implement secure management of
2781         temporary files.
2782         Pass `-P-pletter' to groff to avoid data outside of the converted
2783         area -- some versions of `convert' (for example 5.3.8) don't check
2784         the bounding box of the image but always use a fixed image size
2785         (letter paper format).
2786         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2787         contrib/pic2graph/pic2graph.man: Updated.
2789         * src/roff/groff/groff.man: Document $TMP and $TEMP.
2791 2003-10-26  Werner LEMBERG  <wl@gnu.org>
2793         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2794         troff_output::simple_ellipse, troff_output::simple_arc,
2795         troff_output::simple_line, troff_output::simple_spline,
2796         troff_output::simple_polygon): Insert a space before arguments.
2797         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2798         latter doesn't produce a node, so the following `.sp -1' would do
2799         the wrong thing.
2800         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2801         (and we don't have to care about compatibility mode).
2802         (troff_output::set_color, troff_output::reset_color): Don't emit
2803         `.sp -1' after \M and \m.
2805         * src/roff/troff/input.cpp (old_have_input): New global variable.
2806         (input_stack::get): Handle `old_have_input'.
2807         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2808         `trapping_blank_line' depending on `old_have_input', not
2809         `have_input'.
2811 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2813         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2814         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2815         default directory names for temporary files.
2816         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2818         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2819         [__MSDOS__] (run_pipeline): Honour environment variables.
2820         Don't use `tmpnam' but `tempnam' to work around messy
2821         implementation.
2823         * README.MinGW: New file.
2825 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2827         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2828         `(*t)->next' without testing validity of `*t'.
2829         (usage): Make it more readable.
2831 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2833         Make html device run under both MS-DOS and Win32.
2835         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2836         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2837         spawn or fork+exec has to be used, and whether parent must sleep
2838         until the child process terminates.  Used in
2839         `char_buffer::run_output_filter'.
2840         (copyofstdoutfd): Removed.
2841         (char_buffer): Replace `write_file_html' and `write_file_troff'
2842         member functions with `emit_troff_output' and `run_output_filter'.
2843         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2844         macros.
2845         (replaceFd): Replaced with...
2846         (set_redirection): New auxiliary function.
2847         (waitForChild): Replaced with...
2848         (save_and_redirect): New auxiliary function for.
2850         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2851         functions.
2853 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2855         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2856         (GROFF_LIBC): New function.
2857         * configure.ac: Call GROFF_LIBC.
2858         Check for `kill'.
2859         * configure: Regenerated.
2861         * src/include/lib.h: Handle __MINGW32__.
2862         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2863         Add macro for `pipe'.
2864         Define P_tmpdir.
2866         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2867         correctly.
2869         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2870         Implement.
2872 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2874         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2875         <chuq@chuq.com>.
2877         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2878         directory.
2880 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2882         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2883         src/roff/troff/input.cc (usage): Updated.
2885         * NEWS, doc/groff.texinfo: Updated.
2887 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2889         * src/libs/libgroff/searchpath.cpp
2890         (search_path::open_file_cautious): New function which also handles
2891         `-' as stdin and stdout depending on the access mode.
2892         * src/include/searchpath.h (search_path): Updated.
2894         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2895         * src/devices/grops/ps.h: Include `searchpath.h'.
2896         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2897         Open resource file with `include_search_path.open_file_cautious'.
2898         * src/devices/grops/grops.man: Document new `-I' switch.
2900         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2901         (main), src/devices/grolj4/lj4.cpp (main),
2902         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2904         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2905         Replaced with...
2906         (include_search_path): New global variable.
2907         (include_path_append): Removed.
2908         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2909         (do_file): Simplify, using new
2910         `include_search_path.open_file_cautious'.
2912         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2913         parameter.
2914         (main): Pass arguments to `-I' to both troff and devices.
2915         Improve handling of `-V'.
2916         * src/roff/groff/groff.man: Document changes to -I and -V.
2918         * src/roff/troff/input.cpp (include_search_path): New global
2919         variable.
2920         (next_file, source, ps_bbox_request, transparent_file,
2921         process_input_file): Use new
2922         `include_search_path.open_file_cautious'.
2923         (main) Handle `-I' switch.
2924         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2925         Use new `include_search_path.open_file_cautious'.
2926         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2927         * src/roff/troff/troff.man: Document new `-I' switch.
2929 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2931         Support multiple calls of .Lb in LIBRARY section.
2933         * tmac/doc-common (doc-in-library-section): New register.
2934         (doc-section-library): New string.
2935         (Sh): Set `doc-in-library-section'.
2936         (Rd): Updated.
2937         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2938         if in LIBRARY section.
2939         * tmac/doc.tmac (doc-save-global-vars): Updated.
2940         * NEWS, tmac/groff_mdoc.man: Updated.
2942 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2944         * tmac/doc-common (doc-default-operating-system): New variable.
2945         (Os): Use it.
2947 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2949         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2951 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2953         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2954         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2955         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2956         $(DEVFILES) are not empty.
2957         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2959 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2961         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2962         with parallel runs of `make'.
2964 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2966         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2967         insert SORT_SEP.  With certain combinations of sort specifications,
2968         refer sorted entries in the wrong order.  In particular, entries
2969         with a missing field should be be sorted before all entries that
2970         have that field, before refer looks to the next field.
2972 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2974         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2975         g++ linker is used.  Reported by Mark J. Reed
2976         <mark.reed@turner.com>.
2978 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2980         Add key character `x' to tbl which makes tbl call a user-defined
2981         macro on a table cell.
2983         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2984         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2985         `set_modifier' after printing the compatibility request.
2986         (set_modifier): Print call to `m->macro' if not empty.
2987         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2988         `macro'.
2989         (process_format): Implement cases `x' and `X'.
2990         * src/preproc/tbl/tbl.man, NEWS: Updated.
2992 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2994         * doc/groff.texinfo: Minor fixes.
2996 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2998         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
3000 2003-08-07  Werner LEMBERG  <wl@gnu.org>
3002         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
3003         argument list to nothing if there is no file to match.  Use `ls' as
3004         a protection, similar to autoconf.
3006         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
3007         empty argument lists.
3009         * doc/groff.texinfo: Improve documentation how vertical spacing
3010         and line breaks interact.
3011         Other minor fixes.
3013         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
3015 2003-08-03  Werner LEMBERG  <wl@gnu.org>
3017         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
3018         EPS (using eps2eps or similar programs to compute the bounding box).
3020 2003-07-24  Werner LEMBERG  <wl@gnu.org>
3022         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
3023         * doc/texinfo.tex: Updated from texinfo 4.6.
3024         * README.CVS: From now on we need texinfo 4.6.
3026 2003-07-23  Werner LEMBERG  <wl@gnu.org>
3028         Add requests `dei1' and `ami1' for completeness.
3030         * src/roff/troff/input.cc (calling_mode): Remove
3031         CALLING_DISABLE_COMP.
3032         (comp_mode): New enumeration.
3033         (do_define_string, define_string, define_nocomp_string,
3034         append_string, append_nocomp_string): Updated.
3035         (do_define_macro): Add third parameter.
3036         (define_macro, define_nocomp_macro, define_indirect_macro,
3037         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
3038         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
3039         functions.
3040         (ignore): Updated.
3041         (init_input_requests): Add `dei1' and `ami1'.
3043         * tmac/trace.tmac: Handle de1 and am1.
3044         (de): Improve tracing message.
3045         (am): Add missing `do'.
3046         (return): Use de1.
3048         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3049         Document new requests.
3051 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
3053         Add option -G to .MPIMG to insert a gap between text and the image.
3055         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
3056         www-finish-left-ll): Updated.
3057         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
3058         (MPIMG): Make option -L and -R optional.
3059         Implement option -G.
3061 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
3063         * src/devices/grohtml/post-html.cpp
3064         (html_printer::do_file_components): Don't use `stdout' as lvalue
3065         since it can be a macro.
3067 2003-07-22  Werner LEMBERG  <wl@gnu.org>
3069         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
3070         the corresponding test in aclocal.m4.
3072 2003-07-21  Werner LEMBERG  <wl@gnu.org>
3074         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
3075         names but RGB values directly.  Otherwise pnmtopng depends on
3076         an external file `rgb.txt' which maps colour names to values.
3078 2003-07-20  Werner LEMBERG  <wl@gnu.org>
3080         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
3081         * configure, src/include/config.hin: Regenerated.
3083         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
3085 2003-07-19  Werner LEMBERG  <wl@gnu.org>
3087         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
3089 2003-07-18  Werner LEMBERG  <wl@gnu.org>
3091         * *.man: Switch to non-compatibility mode temporarily if GNU
3092         syntax extensions are used in the particular man page.
3094         * PROBLEMS: Add solutions for SGR problems.
3096 2003-07-17  Werner LEMBERG  <wl@gnu.org>
3098         Don't ignore grotty's command line options if \X'tty: sgr ...' is
3099         used to change the drawing scheme.
3101         * src/devives/grotty/tty.cpp (bold_flag_option,
3102         underline_flag_option, italic_flag_option, reverse_flag_option,
3103         bold_underline_mode_option): New global variables.
3104         (update_options): New function.
3105         (tty_printer::special): Call update_options.
3106         (main): Don't set xxx_flag but xxx_flag_option, then call
3107         update_options.
3109 2003-07-14  Werner LEMBERG  <wl@gnu.org>
3111         Make grotty emit proper Unicode box drawing characters for -Tutf8.
3113         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
3114         values.
3115         (hline_char, vline_char): New global variables.
3116         (tty_printer::tty_printer): Initialize them.
3117         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
3118         horizontal and vertical lines.
3119         (crossings): New global array.
3120         (tty_printer::end_page): Use it to determine the proper crossing
3121         character for -Tutf8.
3123 2003-07-12  Werner LEMBERG  <wl@gnu.org>
3125         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
3126         (HTMLDOCFILES): Revert to `pic.html'.
3127         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
3129 2003-07-11  Werner LEMBERG  <wl@gnu.org>
3131         * doc/pic.ms: Improve documentation of absolute coordinates.
3132         Document absolute positioning of pictures.
3134         * NEWS: Add new pic capability.
3136 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
3138         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
3139         Rewritten.
3141 2003-07-07  Werner LEMBERG  <wl@gnu.org>
3143         Implement support for dashed and dotted ellipses in pic.  Based on
3144         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
3146         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
3147         common_output::dashed_ellipse, common_output::dotted_ellipse): New
3148         functions.  Ellipse arcs are approximated with circle arcs.
3149         * src/preproc/pic/common.h (common_output): Updated.
3150         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
3151         functions.
3152         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
3154         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
3156 2003-07-06  Werner LEMBERG  <wl@gnu.org>
3158         Make grotty work on platforms which have unsigned char as the
3159         default for char.  Based on a patch by Thomas Klausner
3160         <wiz@netbsd.org>.
3162         * src/devices/grotty/tty.cpp (schar): New typedef.
3163         Updated calls to declare_ptable and implement_ptable.
3164         (glyph): Use schar for back_color_idx and fore_color_idx.
3165         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
3166         (tty_printer::tty_color, tty_printer::tty_printer,
3167         tty_printer::color_to_idx, tty_printer::put_color): Updated.
3169 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
3171         * src/roff/nroff/nroff.sh: Add option -d for completeness.
3172         * src/roff/nroff/nroff.man: Updated.
3174 2003-07-05  Werner LEMBERG  <wl@gnu.org>
3176         * NEWS, tmac/groff_www.man: Updated.
3177         * doc/Makefile.sub: Updated.
3179 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
3181         Implement support for multiple HTML output files.
3183         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
3184         -j command line option.
3186         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
3187         global variables.
3188         (file): New fields `new_output_file', `require_links',
3189         `output_file_name'.
3190         (file::file): Updated.
3191         (files::set_file_name, files::set_links_required,
3192         files::are_links_required, files::is_new_output_file,
3193         files::file_name, files::next_file_name): New functions.
3194         (header_desc): New fields `no_of_level_one_headings',
3195         `header_filename'.
3196         (header_desc::header_desc): Updated.
3197         (header_desc::write_headings): Handle multiple files.
3198         (html_printer::write_header): Save file name in which header occurs.
3199         (html_printer::determine_header_level): Possibly split files on
3200         level one headings.
3201         (html_printer::do_links, html_printer::troff_tag): Updated.
3202         (html_printer::insert_split_file, html_printer::do_job_name,
3203         html_printer::emit_link, html_printer::write_navigation,
3204         html_printer::do_file_components): New functions.
3205         (html_printer::~html_printer): Handle multiple files.
3206         (main): Handle command line option `-j'.
3208         * src/devices/grohtml/grohtml.man: Updated.
3210         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
3211         which splits file.
3213         * tmac/www.tmac (JOBNAME): New macro.
3214         * tmac/s.tmac (SH-NO-TAG): New macro.
3215         (@SH): Call SH-NO-TAG.
3216         (@NH): Updated.
3218 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
3220         * tmac/groff_mdoc.man: Improve documentation of punctuation
3221         characters.
3223 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
3225         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
3227 2003-07-03  Werner LEMBERG  <wl@gnu.org>
3229         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
3231 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
3233         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
3234         after `/*' and `*/'.
3235         Fix spacing.
3236         (Fn, Fo): Reduce indentation in synopsis.
3238         * tmac/doc-common (doc-check-depth): New macro.
3239         (doc-end-macro, Sh, Ss): Use it.
3240         (Cd): Fix behaviour in synopsis.
3241         (In): Make it parsed and callable.
3242         If not in the synopsis, represent the C header file enclosed in
3243         angle brackets.
3244         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
3245         Use minus, not hyphen.
3247         * tmc/groff_mdoc.man: Updated.
3249 2003-07-01  Werner LEMBERG  <wl@gnu.org>
3251         Integrated grap2graph, contributed by Eric S. Raymond.
3253         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
3254         New files.
3255         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
3256         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
3258 2003-07-01  Colin Watson  <cjwatson@debian.org>
3260         * src/xditview/*.c: Add prototypes, fix return types, add includes.
3261         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
3263 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
3265         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
3267 2003-06-31  Werner LEMBERG  <wl@gnu.org>
3269         * doc/Makefile.sub (CLEANADD): Remove all files created by
3270         running `make groff.{pdf,dvi}'.
3272         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
3273         src/xditview also.
3275 2003-06-30  Werner LEMBERG  <wl@gnu.org>
3277         * Makefile.in (SHELL): Define as @SHELL@.
3278         (mkinstalldirs): Use $(SHELL).
3279         (MDEFINES): Add $(SHELL).
3280         * Makefile.comm (SHELL): Removed.
3282 2003-06-29  Werner LEMBERG  <wl@gnu.org>
3284         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3285         The X11 documentation files use them.
3286         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3288 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
3290         * tmac/e.tmac (@C): Handle .ad also.
3292 2003-06-12  Werner LEMBERG  <wl@gnu.org>
3294         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3296         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3297         Assign `n' even here.  It is possible to construct a node
3298         immediately following an escape character:
3300           .di xx
3301           \?\\\?a
3302           .br
3303           .di
3304           .xx
3306 2003-06-10  Werner LEMBERG  <wl@gnu.org>
3308         * README.WIN32: Removed.
3309         * MANIFEST: Updated.
3311 2003-06-07  Werner LEMBERG  <wl@gnu.org>
3313         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3315 2003-06-05  Werner LEMBERG  <wl@gnu.org>
3317         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3318         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3320 2003-06-03  Werner LEMBERG  <wl@gnu.org>
3322         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3323         is done by the calling function.
3325 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
3327         * tmac/X.tmac: Fix definition of `em'.
3329 2003-05-22  Werner LEMBERG  <wl@gnu.org>
3331         * src/roff/troff/input.cc (return_macro_request): Fix detection of
3332         argument.
3334 2003-05-18  Werner LEMBERG  <wl@gnu.org>
3336         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3337         to make items work which consist only of a tag.
3339 2003-05-17  Werner LEMBERG  <wl@gnu.org>
3341         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3342         aren't stretched in a tag (this can fail with unformatted boxes).
3343         Instead, insert a break and go back one line.
3345 2003-05-16  Werner LEMBERG  <wl@gnu.org>
3347         * src/roff/troff/input.cc (return_macro_request): If called with
3348         argument pop macro twice.  We need this to trace `return'.
3350         * tmac/trace.tmac: Handle `return'.
3351         Fix typos.
3353         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3354         Document.
3356 2003-05-15  Larry Kollar  <kollar@alltel.net>
3358         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3359         registers `FPS', `FVS', and `FPD'.
3361 2003-05-15  Werner LEMBERG  <wl@gnu.org>
3363         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3364         correctly.
3366 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
3368         * tmac/groff_mdoc.man: Slight improvements.
3370 2003-05-03  Werner LEMBERG  <wl@gnu.org>
3372         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3373         `doc-header-space' after header line if register `cR' is set.
3375 2003-05-02  Werner LEMBERG  <wl@gnu.org>
3377         * TODO: Updated.
3379 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
3381         * tmac/doc-common (Nd): Use \[em].
3383 2003-05-01  Werner LEMBERG  <wl@gnu.org>
3385         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3386         doc-footer-space): Initialize to 0.5i.
3387         (doc-setup-page-layout): Don't set doc-header-space and
3388         doc-footer-space.
3390 2003-04-30  Werner LEMBERG  <wl@gnu.org>
3392         * REVISION: Set to 1.
3394         * doc/pic.ms: Document possible problems with `figname'.
3396 2003-04-29  Werner LEMBERG  <wl@gnu.org>
3398 Version 1.19 released
3399 =====================
3401         * VERSION: Set to 1.19.
3402         * REVISION: Set to 0.
3403         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3405         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3406         Define charset as `US-ASCII' in html output.
3408         * tmac/www.tmac (ULE): Add missing scaling indicator.
3410         * win32-diffs: Removed.
3412 2003-04-28  Werner LEMBERG  <wl@gnu.org>
3414         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3415         `.da' and `.boxa'.
3416         Document how to insert discardable whitespace with `.ss'.
3418 2003-04-27  Werner LEMBERG  <wl@gnu.org>
3420         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3421         work with plain TeX also.
3423         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3425 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
3427         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3428         Use a loose DTD.
3430 2003-04-24  Werner LEMBERG  <wl@gnu.org>
3432         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3433         vbox with positive height and zero depth if in TeX mode.
3435         * NEWS: Document glyph name changes for grodvi and grolj4.
3437 2003-04-23  Werner LEMBERG  <wl@gnu.org>
3439         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3440         * doc/pic.ms: Fixed.
3442 2003-04-21  Werner LEMBERG  <wl@gnu.org>
3444         HP-UX 10.20 has `snprintf' but it isn't declared.
3446         * configure.ac: Add declaration test for snprintf.
3447         * configure: Regenerated.
3448         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3449         * src/include/config.hin: Regenerated.
3451 2003-04-19  Werner LEMBERG  <wl@gnu.org>
3453         Add keyword `figname' to pic, specifying the name of the picture
3454         box in TeX mode.  Based on a patch from William J Poser
3455         <wjposer@unagi.cis.upenn.edu>.
3457         * src/preproc/pic/pic.y: New token `FIGNAME'.
3458         (macro_name): New rule of type <str>.
3459         (placeless_element): Handle `FIGNAME'.
3460         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3461         * src/preproc/pic/main.cpp (graphname): New global variable.
3462         (do_picture): Initialize `graphname'.
3463         * src/preproc/pic/pic.h: Updated.
3464         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3465         `graphname'.
3466         Simplify TeX code.
3467         (tex_output::text): Beautify output.
3468         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3469         `shaded' and `outlined' unconditionally.
3470         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3471         Minor improvements.
3473         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3474         greater is necessary.
3476 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
3478         Add option -r to soelim to avoid emission of `.lf' lines.
3479         Add option -t to produces TeX comment lines instead of `.lf' lines.
3481         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3482         and `tex_flag'.
3483         (usage): Updated.
3484         (main): Handle `-r' and `-t'.
3485         (set_location): Handle `raw_flag' and `tex_flag'.
3486         * src/preproc/soelim/soelim.man, NEWS: Updated.
3488 2003-04-17  Werner LEMBERG  <wl@gnu.org>
3490         * tmac/hyphenex.sh: Replaced with...
3491         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3492         nightmares.
3494         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3495         if --quiet is used for the configure script.
3496         * configure: Regenerated.
3498 2003-04-16  Werner LEMBERG  <wl@gnu.org>
3500         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3501         Add `const' to second argument.
3502         (html_printer::add_table_end): Add `const' to argument.
3503         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3504         `const' to arguments.
3505         * src/devices/grohtml/html-text.h: Updated.
3507         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3508         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3509         argument.
3511         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3512         cast for integer constant.
3514         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3515         (writeNbytes): Add `const' to first argument.
3516         (writeString): Add `const' to argument.
3517         (char_buffer::can_see): Add `const' to third argument.
3518         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3519         `const' to argument.
3520         * src/preproc/html/pushback.h: Updated.
3522         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3523         (include_path_append): Add `const' to argument.
3524         (do_file): Updated.
3526         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3527         for `value'.
3528         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3529         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3530         for `value'.
3531         (unicode_decompose_init::unicode_decompose_init): Updated.
3532         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3533         for `value'.
3534         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3535         * src/roff/troff/input.cc (process_startup_file): Add `const' to
3536         argument.
3538         * tmac/hyphenex.sh: Make script more portable by using a here
3539         document.
3541 2003-04-15  Werner LEMBERG  <wl@gnu.org>
3543         Renamed all `*.cc' files to `*.cpp'.
3544         Updated all configuration files, makefiles, and documentation.
3546 2003-04-14  Werner LEMBERG  <wl@gnu.org>
3548         * tmac/hyphenex.sh: Slight improvements.
3550 2003-04-13  Werner LEMBERG  <wl@gnu.org>
3552         * font/devascii/R.proto, font/devcp1037/R.proto,
3553         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3554         character slots with unnamed glyphs.
3556         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3557         (an-first): New global variable.
3558         (an-header): Emit vertical space between multiple man pages.
3560 2003-04-11  Werner LEMBERG  <wl@gnu.org>
3562         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3563         values.
3565 2003-04-10  Werner LEMBERG  <wl@gnu.org>
3567         * PROBLEMS: Revised.
3569 2003-04-10  Bernd Warken  <bwarken@mayn.de>
3571         * doc/webpage.ms: Improved.
3573 2003-04-09  Werner LEMBERG  <wl@gnu.org>
3575         Add register \n[.height] which returns the value of \H.
3576         Add register \n[.slant] which returns the value of \S.
3578         * src/roff/troff/env.cc (init_env_requests): Implement.
3579         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3580         Document.
3582 2003-04-08  Werner LEMBERG  <wl@gnu.org>
3584         * tmac/html.tmac: Move some of the data into html-end.tmac.
3585         Remove most of the character translations for eqn since html fonts
3586         now cover those characters.
3587         Load www.tmac.
3588         * tmac/html-end.tmac: New file.
3589         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3590         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3591         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3593 2003-04-07  Werner LEMBERG  <wl@gnu.org>
3595         * man/groff_out.man: Document negative values of `N' if -Thtml is
3596         used.
3598 2003-04-06  Werner LEMBERG  <wl@gnu.org>
3600         * Makefile.comm (depend.temp): Check location of YTABC.
3602 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3604         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3605         binary path.
3606         (groff_bin_path): Rename to GROFF_BIN_PATH.
3607         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3608         * doc/Makefile.in (TROFFBIN): New variable for troff
3609         binary path.
3610         (GROFFBIN): New variable for groff binary path.
3611         (groff_bin_path): Rename to GROFF_BIN_PATH.
3612         (TROFF): Use TROFFBIN.
3613         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3614         * doc/Makefile.sub (GROFFBIN): New variable for groff
3615         binary path.
3616         (groff_bin_path): Rename to GROFF_BIN_PATH.
3617         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3619         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3620         with INSTALL_SCRIPT.
3621         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3622         * Makefile.dev (all): Depend on DEVSCRIPTS.
3623         (install_dev): Likewise.
3624         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3625         scripts.
3626         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3627         (DEVGENSCRIPTS): New variable to hold generated scripts.
3629 2003-04-05  Werner LEMBERG  <wl@gnu.org>
3631         * src/libs/libdriver/input.cc (IntArray::operator[],
3632         IntArray::get_data): Remove meaningless `const' in return value.
3634         * README.CVS: New file.
3636 2003-04-04  Werner LEMBERG  <wl@gnu.org>
3638         Check for stdint.h in C++, not in C.
3640         * aclocal.m4 (GROFF_STDINT_H): New function,
3641         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3642         AC_CHECK_HEADERS.
3643         * configure, src/include/config.hin: Regenerated.
3644         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3647         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
3648         with a negative value, representing the width of the unbreakable
3649         space (only for -Thtml).  grohtml then converts this back to
3650         &nbsp; and uses the value of N as its width.
3652         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3653         unbreakable_space_node::tprint): Emit `N-<width>'.
3654         * src/include/printer.h (printer::set_numbered_char): Make it
3655         virtual.
3656         Make members `font_table' and `nfonts' protected instead of private.
3657         * src/devices/grohtml/post-html.cc
3658         (html_printer::set_numbered_char): New member function.
3661         * src/libs/libgroff/maxfilename.cc:
3662         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3664         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3665         emit word marker.
3667 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
3669         * man/roff.man: Small fixes.
3671 2003-04-03  Werner LEMBERG  <wl@gnu.org>
3673         Make groff independent from locale's numeric settings.
3675         * configure.ac: Check for `setlocale'.
3676         * configure, src/include/config.hin: Regenerated.
3678         * src/include/lib.h: Handle HAVE_SETLOCALE.
3680         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3681         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3682         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3685         * doc/groff.texinfo: Change dir category to `Typesetting'.
3686         (Man font macros): Mention that there is no space between arguments
3687         of .BI and friends.
3689         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3690         (*printer::change_color, *printer::change_fill_color): Add missing
3691         `const'.
3693 2003-04-02  Werner LEMBERG  <wl@gnu.org>
3695         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3696         html_table::is_gap): Compute table widths after converting border
3697         positions to avoid rounding errors.
3699 2003-04-01  Werner LEMBERG  <wl@gnu.org>
3701         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3702         `space_emitted' properly.
3704 2003-03-31  Werner LEMBERG  <wl@gnu.org>
3706         * src/devices/grohtml/html-table.cc: Fix column width calculation.
3707         (html_table::set_linelength): Don't add 1.
3708         (html_table::add_indent): Don't subtract 1.
3710         * tmac/html.tmac: Set default page offset to zero.
3712 2003-03-30  Werner LEMBERG  <wl@gnu.org>
3714         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
3716         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3717         unbreakable_space_node::tprint): New functions.
3718         (troff_output_file): Make space_char_hmotion_mode::tprint and
3719         unbreakable_space_node::tprint to friends.
3720         * src/roff/troff/node.h: Updated.
3722         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
3723         in the HTML standard).
3725 2003-03-29  Werner LEMBERG  <wl@gnu.org>
3727         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3728         Otherwise, the following code
3730           .di xxx
3731           .ps 10
3732           a
3733           .br
3734           .di
3735           x\*[xxx]
3737         produces `x a' instead of `xa'.  This is a temporary fix, disabling
3738         font changes in diversions for -Thtml.
3740         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3741         `HTML-TAG'.
3742         (an-do-tag-html): Merge with ...
3743         (an-do-tag): This macro.
3744         Change code slightly to circumvent grohtml bug.
3745         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3747         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3748         html_table::is_gap): Round `width' properly.
3750         * tmac/html.tmac: Provide some default layout parameters for
3751         grohtml.
3753         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3754         command.
3756 2003-03-28  Werner LEMBERG  <wl@gnu.org>
3758         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3760 2003-03-27  Werner LEMBERG  <wl@gnu.org>
3762         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3763         defined.
3765 2003-03-20  Werner LEMBERG  <wl@gnu.org>
3767         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3768         `.vs'.
3769         * doc/groff.texinfo: Updated.
3771 2003-03-19  Werner LEMBERG  <wl@gnu.org>
3773         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3774         TOKEN_END_TRAP>: Reset `have_input'.
3776 2003-03-18  Werner LEMBERG  <wl@gnu.org>
3778         * src/roff/groff/groff.man: Mention groff_trace man page.
3780 2003-03-16  Werner LEMBERG  <wl@gnu.org>
3782         * Makefile.in (LIBEXT): New variable to indicate the file extension
3783         of library files.  Computed heuristically from $(OBJEXT).
3784         (MDEFINES): Add $(LIBEXT).
3785         * Makefile.lib, Makefile.comm: Use it.
3787         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
3788         overlong lines into smaller chunks.
3789         (get_binary): New function.
3790         (main): Use them.
3791         * src/utils/pfbtops/pfbtops.man: Updated.
3793 2003-03-15  Colin Watson  <cjwatson@debian.org>
3795         * src/roff/groff/groff.man: Minor syntax fix.
3797 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3799         * src/devices/grops/ps.cc (ps_printer::media_set,
3800         ps_printer::~ps_printer): Handle zero paper width and length.
3802 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3804         Add options -p and -l to grodvi.
3806         * src/devices/grodvi/dvi.cc: Include paper.h.
3807         (landscape_flag, user_paper_length, user_paper_width): New global
3808         variables.
3809         (dvi_printer::begin_page): Emit `papersize' special.
3810         Set color after initialization of `cur_h' and `cur_v'.
3811         (main): Add options `-l' and `-p'.
3812         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3813         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3815         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3817 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3819         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3820         * man/groff_tmac.man: This man page.
3821         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3822         deprecated.
3824         * tmac/X.tmac: Don't load pspic.tmac.
3826 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3828         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3829         by Bernd Warken <bwarken@mayn.de>.
3831         * src/include/driver.h (pr): Removed.
3833         * src/libs/libdriver/input.cc (pr): New global variable.
3834         (do_file): Deallocate `pr'.
3835         * src/libs/libdriver/printer.cc (pr): Removed.
3837         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3838         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3839         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3840         (main): Don't delete `pr'.
3842 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3844         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3845         * tmac/papersize.tmac: New file.
3846         * tmac/troffrc: Include `papersize.tmac'.
3847         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3848         * tmac/an-old.tmac: Set LT to LL by default.
3850         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3851         doc/groff.texinfo: Updated.
3853         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3854         bug which caused all odd iso papers to have wrong dimensions.
3856         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3857         (main) <'p'>: Set `user_paper_width' also.
3858         (ps_printer::media_width, ps_printer::media_height): Use values
3859         given with option `-p'.
3861 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3863         * src/include/nonposix.h: Provide default for SET_BINARY.
3865         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3866         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3867         unconditionally.
3869         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3870         (main): Treat \r\n as \n.
3872 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3874         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3875         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3877 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3879         Added support to access more than 256 glyphs in Type 1 fonts.
3881         * src/devices/grops/ps.cc (subencoding): New structure.
3882         (style): Add `sub' field.
3883         Updated all users.
3884         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3885         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3886         functions.
3887         Updated all users.
3888         (ps_printer::set_char): Use `set_subencoding'.
3889         (make_subencoding_name): New function.
3890         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3891         (ps_printer::~ps_printer): Emit subencoding definitions.
3893         * src/devices/grops/psrm.cc (valid_input_table): New array to
3894         properly support EBCDIC.
3895         (white_space): Add `\f'.
3896         (ps_get_line): Change first argument to be of type `string &'.
3897         Updated all callers.
3898         This allows to get lines of arbitrary length.
3899         Use `valid_input_table'.
3900         Remove warning about non-conforming PS line length.  This seems
3901         not to be of great importance -- for example, dvips don't emit
3902         a warning either.
3903         (PS_LINE_MAX): Removed.
3904         (matches_comment): Change first argument to be of type `string &'.
3906         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3908         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3909         %AGL_to_unicode, %default_ligatures): New hash tables.
3910         Read all map entries.
3911         Add unencoded characters.
3912         Check for default ligatures if there are no `L' entries.
3913         Print all kern entries.
3914         Print all characters in charset.
3915         * src/utils/afmtodit/afmtodit.man: Updated.
3917         * font/devps/*: Regerated all fonts.
3919         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3920         of characters, just use `.trin'.  Otherwise the mapping depends
3921         on the font encoding.
3922         * tmac/ps.tmac: Add `fi' and `fl'.
3923         Improve `Fi' and `Fl'.
3924         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3925         * tmac/Xps.tmac: Fix `em'.
3927         * NEWS: Updated.
3929 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3931         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3932         `have_input'.
3934 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3936         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3938         * font/devps/generate/textmap: Remove entry `similarequal'.
3939         * font/devps/symbolmap: Updated.
3941 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3943         * src/libs/libgroff/font.cc (font::load): Fix error message for
3944         bad character type.
3946         * src/devices/grops/grops.man: Improve documentation of the -b
3947         flag.
3949         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3950         `ascii' and `cp1047'.
3952 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3954         Document composite glyphs and the `composite' request.
3956         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3958 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3960         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3961         * font/devdvi/*EC: Updated.
3963         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3964         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3965         * tmac/troffrc: Load `composite.tmac'.
3966         * tmac/Makefile.sub (NORMALFILES): Updated.
3968         * doc/groff.texinfo (Input Encodings): New section.
3969         * NEWS: Updated.
3971 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3973         * doc/texinfo.tex: New version 2003-02-11.06.
3975         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3976         * tmac/groff_mdoc.man: Fix description of `Dt'.
3978 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3980         * font/devps/prologue.ps: Fix for included Postscript that does
3981         a setpagedevice -- which is now safely ignored.
3983         * NEWS: Updated.
3985         * src/devices/grops/ps.cc: Now sets the page size in the generated
3986         document.  This is done in two ways: Via a %%-comment for gv and
3987         the like, and via a PageSize and setpagedevice for programs that
3988         understands Postscript proper, like ps2pdf.
3990         * src/devices/grops/ps.h: New broken-flag to avoid page size
3991         definition, if required.
3993         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3995         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3996         Not really necessary due to the fix in prologue.ps, but cleaner:
3997         Such information does not belong in an .eps file.
3999         * doc/Makefile.sub: See doc/Makefile.in.
4001 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
4003         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
4004         instead of P1 since the latter is broken in some versions of netpbm.
4005         * configure: Updated.
4007 2003-02-26  Larry Kollar  <kollar@alltel.net>
4009         Make man pages more customizable.
4011         * tmac/an-old.tmac (FT): New register holding footer distance from
4012         bottom.
4013         (HF): New string holding the default heading font.
4014         (TH): Handle registers `IN' and `SN' set on the command line.
4015         Use `FT'.
4016         (PT, BT): New strings to customize header and footer lines.
4017         (an-header, an-footer): Use them.
4018         (SH, SS): Use `HF'.
4019         * tmac/groff_man.man: Document changes.
4021         * doc/groff.texinfo: Document man changes.
4022         Document Ultrix extensions of man.
4024 2003-02-26  Werner LEMBERG  <wl@gnu.org>
4026         * src/roff/troff/input.cc (do_width, do_if_request): Reset
4027         `have_input' after changing back to old environment.
4029         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
4030         function up to be defined before first call.  This is necessary to
4031         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
4033         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
4034         the default font directory also.  Based on a patch from James
4035         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
4036         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
4037         * src/utils/afmtodit/afmtodit.man: Document it.
4039         * NEWS: Updated.
4041         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
4043 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
4045         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
4046         (GROFF_PNMTOPS_NOSETPAGE): New macro.
4047         * configure.ac: Use it.
4048         * configure: Regenerated.
4049         * Makefile.in: Updated.
4051         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
4052         (CLEANADD): Add www.tmac-sed.
4053         (pnmtops_nosetpage): Define default.
4054         (install_data): Handle www.tmac-sed and substitute
4055         @PNMTOPS_NOSETPAGE@.
4056         (stamp-sed): Add www.tmac.
4057         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
4058         It now breaks URLs at suitable places.
4059         (www:substring_ok): New register set by...
4060         (www:@test_substring): New macro.
4061         (www:error): New alias to www-error.
4062         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
4063         New macros.
4064         (URL): Use www:url_breaks.
4065         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
4066         (CDS, CDE): New macros.
4068 2003-02-25  Werner LEMBERG  <wl@gnu.org>
4070         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
4071         buffer overflow.
4073 2003-02-24  Werner LEMBERG  <wl@gnu.org>
4075         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
4076         can be negative also.
4078         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
4079         `int16'.
4080         (read_char_table): Avoid negative ascenders.
4081         (output_charset): Add cast.
4082         * font/devlj4/*: Regenerated.
4084         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
4085         possible.
4087         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
4088         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
4089         of `<>'.
4090         * font/devdvi/*: Regenerated.
4092         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
4093         normal width, while the previously used characters (U+2329 and
4094         U+232A) are classified as wide due to canonical equivalence with the
4095         CJK punctuation characters U+3008 and U+3009.
4097         * font/devutf8/R.proto: Updated.
4098         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
4100         * man/groff_char.man: Simplify handling of table traps by
4101         introducing `start block' and `end block' macros.
4102         (Ns, Ne, 2s, 2e, Ds, De): New macros.
4103         (DL): Make it work with Unix troff also.
4104         Fix code values of `la' and `ra'.
4106         * tmac/dvi.tmac: Define `<>' for CW and CWI.
4108 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
4110         * src/devices/grohtml/post-html.cc (element_list::~element_list):
4111         New destructor, fixing a major memory leak.
4113 2003-02-22  Werner LEMBERG  <wl@gnu.org>
4115         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
4116         to be in conformance with Unicode 3.0 and newer.
4118         * font/devlj4/generate/text.map: Add `Eu'.
4119         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
4120         * font/devlj4/S: Regenerated.
4122         * man/groff_char.man: Completely rewritten.
4124         * doc/groff.texinfo: Fix description of request and macro arguments.
4126 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
4128         Valgrind fixes.
4130         * src/devices/grohtml/html-table.cc (html_table::~html_table):
4131         Deallocate `columns' list.
4132         * src/devices/grohtml/post-html.cc (char_block::~char_block):
4133         New destructor.
4134         (text_glob::text_glob_html, text_glob::text_glob_special,
4135         text_glob::text_glob_line, text_glob::text_glob_auto_image,
4136         text_glob::text_glob_tag): Avoid memory leaks.
4137         (text_glob::remember_table): Free memory before reassigning.
4139 2003-02-19  Werner LEMBERG  <wl@gnu.org>
4141         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
4142         alias `hbar'), the Planck constant over two pi.
4144         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
4145         `+e' for position 34.
4146         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
4147         `u2662' and `u2661'.
4148         * font/devdvi/{MI,S}: Regenerated.
4149         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
4150         * font/devlbp/*: Add `hbar' alias.
4151         * font/devlj4/generate/special.map: Ditto.
4152         * font/devlj4/S: Regenerated.
4153         * font/devps/generate/symbolchars: Add `+e'.
4154         * font/devps/generate/textmap: Fix PS name for `-h'.
4155         Add `hbar' alias.
4156         * font/devps/symbolmap: Regenerated.
4158         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
4160         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
4161         `-h', `hbar'.
4162         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
4163         `-h'.
4165         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
4166         `hbar'.
4167         * tmac/tty-char.tmac: Add `+e'.
4169 2003-02-17  Werner LEMBERG  <wl@gnu.org>
4171         Another round trying to really fix problems with `have_input'.
4173         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
4174         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
4176         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
4177         handling if both foreground and background colors are default.
4179         * doc/groff.texinfo (Debugging): Document .lf differences to
4180         AT&T troff.
4182 2003-02-16  Werner LEMBERG  <wl@gnu.org>
4184         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
4185         null-bytes in created string.
4187         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
4188         alias_macro, lookup_request): Improve warning messages.
4190         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
4191         not `strdup'.
4192         Free `last_image_filename'.
4194         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
4195         `buffer'.
4196         (imageList::createPage, imageList::createImage): Use `free', not
4197         `a_delete'.
4198         (imageItem::~imageItem): Free `imageName'.
4199         (addRegDef): Use `strsave', not `strdup'.
4200         (get_resolution): Free `pathp'.
4202 2003-02-15  Werner LEMBERG  <wl@gnu.org>
4204         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
4205         to `dummy'.
4207 2003-02-14  Werner LEMBERG  <wl@gnu.org>
4209         Add memory management for colors to deallocate unnamed colors
4210         properly.
4212         * src/include/color.h (color): New members `free_list' and `next'.
4213         New member functions `new' and `delete'.
4214         Add destructor.
4215         * src/libs/libgroff/color.cc: Implement it.
4217         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
4218         for array size of new operator.
4220         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
4221         redundant comparison.
4223         * src/roff/troff/input.cc (word_space_node::reread,
4224         hmotion_node::reread): Avoid warning about unused parameter.
4225         (reset_output_registers): Remove redundant parameter.
4226         (define_color): Undo change 2003-02-12.
4228         * src/roff/troff/reg.h: Updated.
4230         * src/roff/troff/node.cc (troff_output_file::really_print_line,
4231         output_file::put_filename, real_output_file::really_put_filename,
4232         ascii_output_file::really_print_line,
4233         break_char_node::get_hyphen_list): Avoid warning about unused
4234         parameter.
4235         (suppress_node::tprint): Updated.
4237         * configure.ac: Check declaration for rand() and srand().
4238         * configure: Regenerated.
4240         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
4241         conditionally.
4242         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
4243         and srand().
4245         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
4246         to avoid compiler warnings.
4248         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
4249         unused.
4251         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
4252         is unused.
4253         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
4254         (unused) parameter.
4255         Updated all callers.
4257         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
4258         is unused.
4259         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
4260         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
4262         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
4263         Parameter is unused.
4264         (html_printer::add_table_end): Define parameter conditionally.
4265         * src/devices/grohtml/output.cc (simple_output::special): Parameter
4266         is unused.
4268         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
4269         (lbp_printer::set_char): Last parameter is unused.
4271         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
4273 2003-02-13  Werner LEMBERG  <wl@gnu.org>
4275         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
4276         Make \D'f ...' move horizontally again for backwards compatibility.
4277         Replace it with \D'Fg ...' where appropriate to avoid dependency
4278         on horizontal resolution.
4280         * src/roff/troff/input.cc (do_get_long_name): New function.
4281         (get_long_name): Call it.
4283         (read_draw_node): Handle `\D'Fx ...' by calling ...
4284         (read_color_draw_node): New function.
4286         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4287         `end'.
4288         Pass it to `do_get_long_name' which is used instead of
4289         `get_long_name'.
4291         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4292         unnecessary value guard.
4293         (parse_D_command) <'f'>: Add horizontal shift.
4295         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4296         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4297         (FILL_MAX): Removed.
4299         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4300         Updated.
4302 2003-02-12  Werner LEMBERG  <wl@gnu.org>
4304         * src/roff/troff/input.cc (do_name_test, do_expr_test,
4305         do_zero_width): Push `\n' if closing delimiter is missing.
4307         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4308         <'F'>: Make \F non-transparent at the beginning of line.
4309         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4310         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4311         `have_input'.
4313         (define_color): Free color in case of reassignment.
4315         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4316         @DefescListEnd): Use @Var, not @var.
4317         Fix all calls.
4319         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4321         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4322         `shaded' and `outlined' arrays.
4323         (object_spec::object_spec): Initialize `shaded' and `outlined'.
4324         (graphic_object::set_fill_color, graphic_object::set_outline_color):
4325         Use strsave.
4326         (closed_object::set_fill_color): Ditto.
4327         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4328         instead of strdup.
4329         (troff_output::reset_color): Use a_delete instead of free.
4330         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4332 2003-02-11  Werner LEMBERG  <wl@gnu.org>
4334         * doc/groff.texinfo: Improve documentation of `ad'.
4335         Document that \D'f...' is dependent on the horizontal resolution.
4336         * man/groff_diff.man: Improve documentation of \D'f...'.
4338         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4339         compensating \h'...' for \D'f ...' since the latter no longer moves
4340         current position.
4341         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4343 2003-02-10  Werner LEMBERG  <wl@gnu.org>
4345         Improve error messages for `x F' (and `F') commands.
4347         * src/include/error.h: Add declaration for
4348         `current_source_filename'.
4349         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4350         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4351         parameter for source file string.
4352         Updated all callers.
4354         * src/libs/libdriver/input.cc: Add `current_source_filename'.
4355         (remember_source_filename): New function.
4356         (parse_x_command <'F'>, do_file <'F'>): Use it.
4358 2003-02-09  Werner LEMBERG  <wl@gnu.org>
4360         Make grotty not emit warnings about unknown colors more than
4361         necessary.
4363         * src/devices/grotty/tty.cc: Include `ptable.h'.
4364         (TTY_MAX_COLORS): Removed.
4365         (DEFAULT_COLOR_IDX): Defined to -1.
4366         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4367         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4368         Change `tty_colors' to be a ptable.
4369         First arg of `put_color' is now `char'.
4370         New functions `make_rgb_string' and `tty_color'.
4371         (tty_printer::tty_printer): Use `tty_color'.
4372         (tty_printer::color_to_idx): Return value is now `char'.
4373         Use `tty_color'.
4375         * src/include/color.h (color): Add `print_color' member function.
4376         * src/libs/libgroff/color.cc (color::print_color): Implement it.
4378 2003-02-08  Werner LEMBERG  <wl@gnu.org>
4380         Valgrind fixes.
4382         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4383         encoding file.
4385         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4386         assume that value has been allocated with `new[]', thus use
4387         `a_delete' for deallocation.
4389         * src/libs/libdriver/input.cc (get_integer_arg,
4390         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4391         where appropriate.
4393         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4394         * src/libs/libgroff/nametoindex.cc
4395         (character_indexer::named_char_index): Use `new <type>[1]'.
4397         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4398         <type>[1]'.
4399         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4400         (split_text): Use `a_delete'.
4402         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4403         <type>[1]'.
4405         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4406         harmless memory leak.
4407         (hyphen_trie::read_patterns_file): Initialize `buf'.
4408         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4409         Initialize `current_fill_color'and `current_glyph_color'.
4410         * src/roff/troff/glyphuni.cc
4411         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4412         * src/roff/troff/uniuni.cc
4413         (unicode_decompose_init::unicode_decompose_init): Ditto.
4414         * src/roff/troff/uniglyph.cc
4415         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4417 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4419         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4420         `access' before calling `unlink'.
4421         (do_file): Handle __EMX__.
4423         * src/include/nonposix.h: Handle __EMX__.
4425         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4426         (fontpath,tmacpath): Use it.
4427         (MDEFINES): Add it.
4428         Sorted alphabetically.
4430         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4431         @SEP@.
4432         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4433         @SEP@.
4435 2003-01-27  Werner LEMBERG  <wl@gnu.org>
4437         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4438         New files, copied from gnulib.
4439         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4440         * configure.ac: Updated.
4441         * configure: Regenerated.
4443         * src/include/config.hin: Regenerated.
4444         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4445         Don't define `strcasecmp' as `strcmp'.
4446         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4447         Dont define `strncasecmp' as `strncmp'.
4449         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4450         Removed.
4452 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4454         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4455         s/unline/unlink/.
4457 2003-01-25  Werner LEMBERG  <wl@gnu.org>
4459         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4461 2003-01-24  Werner LEMBERG  <wl@gnu.org>
4463         Add US-english hyphenation exceptions (converted from Barbara
4464         Beeton's hyphenation exception log reports which appear irregularly
4465         in TUGBoat).
4467         * tmac/hyphen.us: Updated to latest version.
4468         * tmac/README: Updated.
4469         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4470         * tmac/troffrc: Load `hyphenex.us'.
4471         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4472         * doc/groff.texinfo: Updated.
4474 2003-01-23  Werner LEMBERG  <wl@gnu.org>
4476         Improve hyphenation slightly.  This is a first step in redesigning
4477         the hyphenation algorithm to make it more flexible (e.g. allowing
4478         kerns and ligatures between the hyphenation character and the
4479         following character -- while not used normally in English, other
4480         languages like German would benefit).
4482         * src/roff/troff/env.cc (environment::hyphenate_line): Use
4483         assertion instead of if-clause.
4484         Let `get_hyphen_list' return the number of involved characters in
4485         the hyphenation pattern instead of computing it directly (which
4486         often yields too small values).
4487         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4488         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4489         parameter.
4491 2003-01-22  Werner LEMBERG  <wl@gnu.org>
4493         Fixing a bug which caused groff to hang if the hyphenation exception
4494         dictionary tried to grow.
4496         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4497         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4498         pointer to dictionary.
4500 2003-01-20  Werner LEMBERG  <wl@gnu.org>
4502         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4503         negative left italic correction.
4504         * src/utils/afmtodit/afmtodit.man: Document it.
4506         * font/devps/generate/Makefile (RFLAG): Add `-m'.
4507         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4508         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4510         * NEWS: Updated.
4512 2003-01-16  Werner LEMBERG  <wl@gnu.org>
4514         * NEWS: Updated.
4516 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
4518         * src/preproc/refer/refer.man: Mention REFER environment variable.
4520 2003-01-05  Werner LEMBERG  <wl@gnu.org>
4522         Similar to \[is], the square root glyph (\[sr]) and the square root
4523         extension glyph (\[radicalex]) are now text symbols.  The new
4524         mathematical versions are called \[sqrt] and \[sqrtex],
4525         respectively.
4527         * font/devX*/S: Regenerated.
4528         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4529         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4530         * font/devdvi/EX, font/devdvi/S: Regenerated.
4531         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4532         * font/devlj4/generate/special.map: Add `sqrt'.
4533         * font/devlj4/S: Regenerated.
4534         * font/devps/generate/textmap: Add `sqrt'.
4535         * font/devps/S, font/devps/symbolmap: Regenerated.
4537         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4538         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4539         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4540         overlap horizontally.
4542         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4543         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4544         Fix `radicalex'.
4546         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4547         and `sqrtex' are overlapping glyphs.
4549 2003-01-04  Werner LEMBERG  <wl@gnu.org>
4551         * font/devdvi/generate/texsy.map: Add `is'.
4552         * font/devps/symbolmap: Regenerated.
4553         * font/devdvi/*TC, MI, S: Regenerated.
4555         * tmac/dvi.tmac: Remove `is'.
4557 2003-01-03  Werner LEMBERG  <wl@gnu.org>
4559         `is' is now a text symbol (only relevant for dvi).  The math variant
4560         can be accessed with `integral'.
4562         * font/devX*/S: Regenerated.
4563         * font/devdvi/generate/texex.map: Remove `is'.
4564         * font/devdvi/EX: Updated.
4565         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4566         * font/devlj4/generate/special.map: Ditto.
4567         * font/devlj4/S: Regenerated.
4568         * font/devps/generate/textmap: Add `integral'.
4569         * font/devps/S: Regenerated.
4571         * tmac/dvi.tmac: Define `is'.
4573         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4575         * src/preproc/tbl/main.cc (process_format): Fix error message.
4577 2003-01-02  Werner LEMBERG  <wl@gnu.org>
4579         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4580         * font/devps/textmap: Fix entries for `ne' and `nc'.
4581         * font/devps/symbolmap: Regenerated.
4583         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4584         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4585         `38', `58', `78', `-+', `|=', `nc', `ne'.
4587         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4588         Use `schar' for `aq'.
4589         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4590         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4591         * tmac/tty.tmac: Add `ne'.
4593         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4594         for fallback glyphs.
4596 2002-12-29  Werner LEMBERG  <wl@gnu.org>
4598         Add glyph `|='.
4600         * font/devX*/*: Regenerated.
4601         * font/devdvi/generate/ec.map: Remove `eq'.
4602         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4603         Assign `|=' to position 39.
4604         * font/devdvi/*EC, S: Regenerated.
4605         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4606         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4607         Assign `|=' to position 549.
4608         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4609         `equalmath'.
4610         Add `uni2243' for `|='.
4612         * tmac/ec.tmac: Add `eq'.
4613         * tmac/dvi.tmac: Add `=~'.
4614         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4615         `|='.
4617 2002-12-21  Werner LEMBERG  <wl@gnu.org>
4619         * font/devdvi/generate/tc.map: Remove `**'.
4620         * font/devdvi/*TC: Regenerated.
4621         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4622         `78', `<<', `>>'.
4623         * font/devutf8/NOTES: Updated.
4625         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4626         Don't give default parameter to `set_macro'.
4627         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4628         instead of `set_macro'.
4629         (charinfo::setx_macro): Implement it.
4630         (charinfo::set_macro): Don't change `mode'.
4632         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4633         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4634         * tmac/dvi.tmac: Define `!=' with `.schar'.
4636 2002-12-20  Werner LEMBERG  <wl@gnu.org>
4638         * font/devX*/S: Regenerated.
4639         * font/devdvi/generate/ec.map: Remove `pl'.
4640         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4641         * font/devdvi/*{TC,EC}: Regenerated.
4642         * font/devhtml/R.proto: Add `-+'.
4643         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4644         * font/devlbp/*: Remove `or'.
4645         * font/devlj4/generate/special.map: Remove `or'.
4646         * font/devlj4/S: Regenerated.
4647         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4648         `seveneighths', `threeeighths'.
4649         Remove `plusmath'.
4650         Replace `minusplus' with `uni2213'.
4651         * font/devps/symbolmap: Regenerated.
4652         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4653         Add `-+'.
4655         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4656         function.
4657         * src/roff/troff/node.cc (troff_output_file::put_char_width):
4658         Call glyph_color and fill_color even if tcommand_flag isn't set.
4659         (make_node, node::add_char): Check not ci->is_fallback but
4660         ci->is_normal.
4662         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4663         * tmac/ec.tmac: Add .rchar entry for `f/'.
4664         Don't remove `12', `14', `34'.
4665         Define `pl' to be always roman.
4666         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4667         Define `18', `38', `58', `78'.
4668         * tmac/tty.tmac: Add `-+'.
4669         * tmac/dvi.tmac: Define `f/'.
4670         (dvi-frac): Use `f/'.
4671         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4672         Define `18', `38', `58', `78'.
4674 2002-12-15  Colin Watson  <cjwatson@debian.org>
4676         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4678 2002-12-10  Werner LEMBERG  <wl@gnu.org>
4680         Add glyph `tno', a textual variant of `no'.
4682         * font/devX*/*: Regenerated.
4683         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4684         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4685         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4686         * font/devdvi/*: Regenerated.
4687         * font/devlbp/*: Add `tno'.
4688         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4689         * font/devlj4/*: Regenerated.
4690         * font/devps/generate/textmap: Replace `no' with `tno'.
4691         * font/devps/generate/symbolchars: Add `no'.
4692         * font/devps/*: Regenerated.
4694         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4696         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4697         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4699         * NEWS: Updated.
4701         * tmac/dvi.tmac: Replace most `\\' with `\E'.
4702         Add definition for `sd'.
4703         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4705         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4707 2002-12-08  Werner LEMBERG  <wl@gnu.org>
4709         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4710         mode to avoid rounding errors.
4711         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4713         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4714         src/roff/troff/troff.man: Improve documentation of -T.
4716 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
4718         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4719         (run_pipeline) [_WIN32]: Provide working function without `fork'.
4721 2002-12-06  Werner LEMBERG  <wl@gnu.org>
4723         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4724         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4725         Scaling Euro.sansserif glyphs down to have the same height as
4726         digits.
4727         Removed unnecessary points; added some extrema.
4729         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4730         Regenerated.
4732 2002-12-04  Werner LEMBERG  <wl@gnu.org>
4734         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4735         and `Euro.symbol.bold.slanted'.
4736         Improve some glyph offsets and widths.
4737         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4738         Regenerated.
4739         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4740         typo.
4741         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4742         direcory.
4744         * tmac/europs.tmac: Updated to new glyph indices.
4745         Use Euro.symbol for font familiy `A'.
4747         * doc/groff.texinfo: Minor improvements.
4749 2002-12-02  Werner LEMBERG  <wl@gnu.org>
4751         * font/devdvi/generate.tc.map: s/%O/%0/.
4752         * font/devdvi/*TC: Regenerated.
4754         * src/roff/troff/div.cc (init_div_requests): Sorted.
4756         * tmac/dvi.tmac: Remove `Ye'.
4757         * tmac/ec.tmac: Remove `Ye'.
4758         Add .rchar entry for `de'.
4760         * man/groff.man, man/groff_diff.man: Document register `.pe'.
4761         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4762         * NEWS: Updated.
4764 2002-11-30  Werner LEMBERG  <wl@gnu.org>
4766         Add PS font for various Euro glyphs.
4768         * font/devps/generate/freeeuro.sfd: New master font file for
4769         pfaedit.
4770         * font/devps/generate/sfdtopfa.pe: New conversion script for
4771         pfaedit.
4772         * font/devps/generate/Makefile (FONTS): Add `EURO'.
4773         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4774         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4775         `freeeuro.sfd'.
4776         * font/devps/EURO: Generated from `freeeuro.afm'.
4777         * font/devps/download: Add `freeuro.pfa'.
4778         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4779         `freeeuro.pfa'.
4781         * tmac/europs.tmac: New file.
4782         * tmac/ps.tmac: Include `europs.tmac'.
4783         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4785 2002-11-29  Werner LEMBERG  <wl@gnu.org>
4787         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4788         * font/devdvi/S: Regenerated.
4789         * font/devhtml/R.proto: Fix `CR' and `ci'.
4790         Add `OK'.
4791         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4792         Remove `bs'.
4793         * font/devps/symbolmap: Regenerated.
4794         * font/devutf8/R.proto: Fix `CR' and `ci'.
4795         Add `OK'.
4796         * font/devutf8/NOTES: Updated.
4798         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4799         `ci'.
4800         Add `OK'.
4801         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4803         * tmac/dvi.tmac: Add `lh' and `rh'.
4804         * tmac/Xps.tmac: Fix `lh' and `rh'.
4805         * tmac/X.tmac: Add `OK'.
4806         * tmac/lj4.tmac: Ditto.
4808 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4810         * font/devX*/S: Regenerated.
4811         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4812         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4813         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4814         * font/devdvi/S: Regenerated.
4815         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4816         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4817         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4818         `bracketleftbt', `bracketrighttp', `bracketrightex',
4819         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4820         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4821         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4822         `rb', and `bv'.
4823         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4824         * font/devutf8/NOTES: Updated.
4825         * font/devlj4/generate/special.map: Add glyph `braceex'.
4826         * font/devlj4/S: Regenerated.
4828         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4830 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4832         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4833         and `vA'.
4834         Fix code for `an'.
4835         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4837         * doc/texinfo.tex: New version from texinfo 4.3.
4838         * doc/groff.texinfo: Updated for texinfo 4.3.
4839         Use @tie{} where appropriate.
4840         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4841         * font/devdvi/generate/tc.map: Remove `rn'.
4842         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4843         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4844         Fix code for `an'.
4845         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4846         font/devX75-12/*: Regenerated.
4848         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4849         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4850         Improve definition of `an'.
4851         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4852         `ru'.
4853         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4854         * tmac/X.tmac: Add definition for `or'.
4855         * tmac/Xps.tmac: Undo change 2002-11-05.
4856         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4858 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4860         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4861         call flush_tbuf.
4863 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4865         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4866         defines a glyph which is searched after the check for fonts declared
4867         with `.special' (and before the check for all mounted special
4868         fonts).  `fschar' defines a glyph for a particular font which is
4869         searched after the check for fonts declared with `.fspecial' (and
4870         before the check for fonts declared with `.special').  `rfschar'
4871         removes glyphs defined with `fschar'.
4873         * src/roff/troff/token.h (char_mode): New enum.
4874         Declare do_define_character.
4875         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4876         `mode'.
4877         (charinfo::is_fallback): Updated.
4878         (charinfo::is_special): New method.
4879         * src/roff/troff/input.cc (do_define_character): Add and use
4880         optional second parameter used as a prefix for font-specific glyph
4881         names.
4882         (define_character, define_fallback_character): Updated.
4883         (define_special_character): New function.
4884         (init_input_requests): Add `schar'.
4885         (charinfo::charinfo, charinfo::set_macro): Updated.
4886         * src/roff/troff/node.cc: Include `stringclass.h'.
4887         (make_glyph_node): Handle special glyphs defined with `.schar' and
4888         `.fschar'.
4889         (define_font_special_character, remove_font_special_character): New
4890         functions.
4891         (init_node_requests): Sorted.
4892         Add `fschar' and `rfschar'.
4893         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4894         Document new requests.
4896         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4897         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4899 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4901         Added new font `SC' (cmtex10) to devdvi.
4903         * devdvi/generate/Makefile (FONTS): Add `SC'.
4904         (SC): New rule.
4905         * devdvi/generate/textex.map: New map file for cmtex.
4906         * devdvi/SC: New.
4907         * devdvi/Makefile.sub (DEVFILES): Updated.
4908         * tmac/dvi.tmac: Add fspecial entries for SC.
4909         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4910         found before `S' since the font position of `SC' is lower due to the
4911         gaps in DESC's `font' line.
4912         * tmac/ec.tmac: Add a `special' call.
4913         * NEWS: Updated.
4915         * font/devhtml/R.proto: Remove double entry for `ti'.
4916         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4917         * tmac/tty-char.tmac: Remove entry for `bq'.
4918         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4919         * tmac/ec.tmac: Don't remove `aq' glyph.
4920         * tmac/X.tmac: Fix entry for `em'.
4921         Add entries for `fo' and `fc'.
4922         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4924         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4925         documentation of `special' and `fspecial' requests.
4927 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4929         * font/devascii/R.proto, font/devcp1047/R.proto,
4930         font/devlatin1/R.proto: Remove entry for `.i'.
4931         * font/devdvi/generate/textt.map: Add entry for `ad'.
4932         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4933         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4934         We need this for getting kerning values to compose `/l' and `/L'.
4935         * font/devdvi: Regenerated font definition files for CM fonts.
4936         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4937         * font/devutf8/R.proto: Ditto.
4938         Remove double entry for `ti'.
4940         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4941         for (groff) ligatures, `la', and `ra'.
4942         Add "'C", "'c", `IJ', and `ij'.
4943         Remove double entry for `ti'.
4944         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4945         double entries.
4946         Add "'C", "'c", `IJ', and `ij'.
4947         Fix entries for (groff) ligatures, `la', and `ra'.
4949         * tmac/ps.tmac (ps-achar): New macro.
4950         Define "'c" and "'C".
4951         * tmac/tty.tmac: Add entry for `.i'.
4952         * tmac/X.tmac (X-achar): New macro.
4953         Define "'c", "'C", and `:Y'.
4954         Add entries for `IJ' and `ij'.
4955         * tmac/Xps.tmac (Xps-achar): New macro.
4956         Define "'c" and "'C".
4957         Add entries for `IJ' and `ij'.
4958         * tmac/lbp.tmac (lbp-achar): New macro.
4959         Add fallback characters for all groff ligatures and many other
4960         glyphs.
4961         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4962         Add entries for `/l' and `/L'.
4963         Define "'c" and "'C".
4964         Add entries for `IJ' and `ij'.
4966 2002-11-02  Larry Kollar  <kollar@alltel.net>
4968         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4970 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4972         Adding support for composite glyphs: \[xxx yyy ...] and the
4973         `composite' request.
4975         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4976         to Unicode-based glyph names.
4977         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4978         glyph names to groff glyph names.
4979         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4980         Unicode-based glyph names.
4981         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4982         for handling Unicode glyph names.
4983         * src/roff/troff/input.cc: Include unicode.h.
4984         (composite_glyph_name): New function.
4985         (token::next) <'['>: Handle Unicode glyph names and composite
4986         glyphs.
4987         (composite_dictionary): New dictionary for the `composite' request.
4988         (composite_request): Implement `composite' request.
4989         (init_input_requests): Add `composite'.
4990         Alphabetically sorted.
4991         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4992         commented out).
4993         (init_env_requests): Alphabetically sorted.
4994         Removed `tas' and `tar' (already commented out).
4995         * src/roff/troff/Makefile.sub: Updated.
4997 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4999         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
5000         of options.
5002 2002-10-29  Werner LEMBERG  <wl@gnu.org>
5004         Fix computation of .trunc register.  Additionally, its value (and
5005         the value of the .ne register) is now always set before entering the
5006         trap.
5008         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
5009         `needed_space' before calling `space'.
5010         (top_level_diversion::space): Remove special code for 'sp before the
5011         first page.
5012         Call `begin_page' with the discarded space as a parameter.
5013         (top_level_diversion::begin_page): Add optional parameter to set
5014         `truncated_space'.
5015         * src/roff/troff/div.h: Updated.
5017         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
5018         \n[.ne].
5020         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
5021         (LP): Remove superfluous call to `br'.
5022         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
5023         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5025 2002-10-26  Werner LEMBERG  <wl@gnu.org>
5027         * tmac/doc-ditroff: Remove useless switch/variable -rC.
5028         (doc-setup-header): Don't set page register `%'.
5029         * tmac/doc-nroff: Remove variable `C'.
5030         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
5031         (doc-setup-header): Don't set page register `%'.
5032         Don't call `bp'.
5033         * tmac/doc-common (doc-header): Call `ns'.
5034         (doc-paragraph): Protect .sp with .br so that it survives traps
5035         possibly set by the user.
5036         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5038         * tmac/doc*: Replace ' with . for consistency if no effect.
5040 2002-10-26  Werner LEMBERG  <wl@gnu.org>
5042         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
5043         so that it survives traps possibly set by the user.
5045         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
5046         (troff_output_file::set_font): Call flush_tbuf if necessary.
5047         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
5048         flush_tbuf and do_motion only if necessary.
5049         (troff_output_file::start_special,
5050         troff_output_file::put_char_width, troff_output_file::put_char,
5051         troff_output_file::draw): Updated.
5052         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5053         vmotion_node::tprint): Undo change 2002-10-23.
5055 2002-10-25  Werner LEMBERG  <wl@gnu.org>
5057         * tmac/www.tmac (DC): Fix case of overlapping images.
5059 2002-10-23  Werner LEMBERG  <wl@gnu.org>
5061         * src/roff/troff/node.cc (troff_output_file::fill_color,
5062         troff_output_file::glyph_color): Set current color before testing
5063         color_flag.
5064         (troff_output_file::put_char_width, troff_output_file::put_char,
5065         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
5066         before glyph_color.
5067         (troff_output_file::file_color, troff_output_file::glyph_color):
5068         Call do_motion.
5069         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5070         vmotion_node::tprint): Move first, then call fill_color.
5072 2002-10-20  Werner LEMBERG  <wl@gnu.org>
5074         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
5075         possible to use multiple main macro packages.
5077 2002-10-19  Werner LEMBERG  <wl@gnu.org>
5079         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
5080         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
5081         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
5082         is set.
5083         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
5084         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
5086 2002-10-16  Werner LEMBERG  <wl@gnu.org>
5088         * NEWS, doc/webpage.ms: Updated.
5090 2002-10-14  Werner LEMBERG  <wl@gnu.org>
5092         * src/roff/troff/node.cc (troff_output_file::put_char_width,
5093         troff_output_file::put_char, troff_output_file::fill_color,
5094         troff_output_file::glyph_color): Handle case where color pointer
5095         is null.
5097 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
5099         Add the new -r option to grotty.  It is similar to the -i option
5100         except it tells grotty(1) to use the "reverse video" attribute to
5101         render italic fonts.
5103         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
5104         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
5105         (tty_printer::make_underline, tty_printer::put_color,
5106         tty_printer::end_page): Use it.
5107         (main): Add -r switch.
5108         (usage): Updated.
5109         * src/devices/grotty/grotty.man: Document it.
5111 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
5113         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5114         cast to `unsigned char' to properly read patterns with 8bit
5115         characters.
5117 2002-10-08  Werner LEMBERG  <wl@gnu.org>
5119         * REVISION: Increased to 2.
5121 Version 1.18.1 released
5122 =======================
5124 2002-10-08  Werner LEMBERG  <wl@gnu.org>
5126         * doc/webpage.ms, NEWS: Updated.
5128 2002-10-07  Werner LEMBERG  <wl@gnu.org>
5130         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
5131         suppress additional whitespace after the header.
5133         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
5134         with NetBSD.
5136         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
5138 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
5140         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
5141         (Dt): Use it to improve language localization (especially Russian
5142         and French).
5144 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
5146         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
5147         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
5148         drawing commands.
5149         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
5150         curve type.
5151         Call `picurve' for BSPLINE.
5152         (HGPrintElt): Handle BSPLINE.
5153         * src/preproc/grn/README: Document it.
5155 2002-10-03  Werner LEMBERG  <wl@gnu.org>
5157         * src/roff/troff/node.cc (break_char_node::col): New variable.
5158         Updated constructor.
5159         (space_node::tprint, word_space_node::tprint): Call `fill_color'
5160         unconditionally.
5161         (space_node::space_node): Remove assertion.
5162         (break_char_node::add_self): Pass color argument to space node.
5163         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
5164         Ditto.
5165         * src/roff/troff/env.cc (environment::do_break,
5166         environment::add_padding): Ditto.
5168 2002-10-02  Werner LEMBERG  <wl@gnu.org>
5170         Redesigning color support in troff.  Colors are no longer
5171         represented as separate nodes but are now part of glyph nodes and
5172         friends.  This fixes the current formatting misbehaviour due to the
5173         changes introduced on 2002-09-20.  Some extra code is necessary for
5174         proper grotty support: Without adding color variables to
5175         space-related nodes, the background color would be changed too late.
5177         * src/roff/troff/node.h, src/roff/troff/node.cc:
5178         s/current_pagecolor/current_fill_color/.
5179         s/current_glyphcolor/current_glyph_color/.
5180         (glyph_color_node, fill_color_node): Removed.
5181         (node::get_glyph_color, node::get_fill_color): New virtual member
5182         functions.
5183         (space_node::col): New variable.
5184         Updated constructors of space_node and derived classes accordingly.
5185         (hmotion_node::col): New variable.
5186         Updated constructors of hmotion_node and space_char_hmotion_node
5187         accordingly.
5188         (vmotion_node::col): New variable.
5189         Updated constructor accordingly.
5190         (draw_node::gcol, draw_node::fcol): New variables.
5191         Updated constructor accordingly.
5192         (special_node::gcol, special_node::fcol): New variables.
5193         Updated constructors accordingly.
5194         (troff_output_file::put_char, troff_output_file::put_charwidth,
5195         troff_output_file::draw): Set glyph and fill color.
5196         (troff_output_file::start_special): Set glyph and fill color.
5197         Always set current font.
5198         (troff_output_file::fill_color, troff_output_file::glyph_color):
5199         Don't call `do_motion'.
5200         (glyph_node::gcol, glyph_node::fcol): New variables.
5201         Updated constructors of glyph_node and ligature_node accordingly.
5202         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
5203         member functions.
5204         (glyph_node::merge_glyph_node,
5205         kern_pair_node::add_discretionary_hyphen,
5206         node::add_discretionary_hyphen): Updated.
5207         (break_char_node::merge_self): Updated.
5208         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5209         vmotion_node::tprint): Handle color.
5210         (make_glyph_node, make_node, node::add_char): Updated.
5212         * src/roff/troff/env.cc (environment::space_newline,
5213         environment::space, environment::output_line, environment::do_break,
5214         environment::make_tab_node, environment::add_padding, title):
5215         Updated.
5216         (environment_switch, environment_copy): Don't add color nodes.
5218         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
5219         nothing.
5220         (token::next): Updated.
5221         \m and \M now are as transparent as \s.
5222         (process_input_stack, token::add_to_node_list, token::process,
5223         read_draw_node): Updated.
5224         (charinfo_to_node_list): Don't add color nodes.
5226         * doc/groff.texinfo: Updated.
5228 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
5230         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
5231         strings.
5233 2002-09-27  Colin Watson  <cjwatson@debian.org>
5235         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
5237 2002-09-23  Werner LEMBERG  <wl@gnu.org>
5239         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
5240         appropriate.
5241         (DEFAULT_LINEWIDTH_FACTOR): New macro.
5242         (linewidth_factor): New global variable.
5243         (lbp_printer::set_line_thickness): Fix case for size < 0, using
5244         linewidth_factor.
5245         (long_options): Add -w/--linewidth option.
5246         (usage): Updated.
5247         (main): Handle -w option to set linewidth_factor.
5248         (lbp_printer::lbp_printer): Initialize req_linethickness, not
5249         line_thickness.
5251         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
5253 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
5255         Fixed a bug in the line thickness setting code.
5257         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
5258         variable.
5259         (lbp_printer::set_line_thickness): Pass environment as second
5260         parameter.
5261         Implement it actually.
5262         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
5263         and `set_line_thickness, depending on the current font size.
5265 2002-09-21  Werner LEMBERG  <wl@gnu.org>
5267         Some Debian patches.
5269         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
5270         * src/roff/troff/node.cc (bracket_node::copy): Initialize
5271         `list->last'.
5273 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5275         * configure: Regenerated with autoconf 2.54.
5277 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5279         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
5280         glyph_color.
5281         Rename cur_fill_color to fill_color.
5282         * src/roff/troff/env.cc: Updated.
5284 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5286         * src/roff/troff/env.cc (title): Copy color status after processing
5287         title.
5288         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
5289         fill color nodes to reset colors properly.
5291         * tmac/www.tmac (DC): Fix color handling.
5293         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
5294         * doc/groff.texinfo: Fixing documentation of `tl' request.
5295         * doc/webpage.ms: Updated.
5297 2002-09-19  Werner LEMBERG  <wl@gnu.org>
5299         * src/roff/troff/env.cc (environent_switch, environment_copy):
5300         Emit glyph and fill color nodes to initialize colors properly.
5302 2002-09-17  Colin Watson  <cjwatson@debian.org>
5304         * src/roff/troff/env.cc (environment::set_glyph_color,
5305         environment::set_fill_color): Fix typo which prevented \m[] work
5306         correctly.
5308 2002-09-17  Werner LEMBERG  <wl@gnu.org>
5310         Add left and right italic correction to non-slanted PS fonts.  This
5311         is an experimental feature to improve image rendering of grohtml.
5313         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
5314         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
5315         * font/devps/*: All non-slanted fonts regenerated.
5316         * NEWS: Updated.
5318 2002-09-16  Werner LEMBERG  <wl@gnu.org>
5320         Add a site-specific font directory.
5322         * Makefile.in (localfontdir, legacyfontdir): New variables.
5323         (fontpath): Use them.
5324         (MDEFINES, uninstall_dirs): Updated.
5325         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
5326         Remove `FONTPATH' and `MACROPATH'.
5328         * src/roff/troff/troff.man, NEWS: Updated.
5329         * doc/groff.texinfo (Font Directories): New section.
5330         Other minor fixes.
5332         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
5333         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
5334         src/preproc/grn/grn.man: Minor fixes.
5336         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
5337         Remove unused variable.
5339 2002-09-11  Werner LEMBERG  <wl@gnu.org>
5341         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
5342         * man/groff_out.man: Fix documentation of 'N'.
5344 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
5346         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
5347         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
5348         set.
5349         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
5350         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5351         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5352         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5353         PRE_TAG>: Call `begin' with `FALSE'.
5355 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5357         * src/libs/libgroff/string.cc (string::extract): Fix position of
5358         terminating null byte.
5360 2002-09-08  Werner LEMBERG  <wl@gnu.org>
5362         Add global option `nospaces' to tbl so that leading and trailing
5363         spaces in data items are ignored.
5365         * src/libs/libgroff/string.cc (string::remove_spaces): New member
5366         function to remove leading and trailing spaces.
5367         * src/include/stringclass.h: Updated.
5369         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5371         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5372         option.
5373         Fix typo in error messages.
5374         (process_data): Implement `nospaces' option.
5375         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5377 2002-09-07  Werner LEMBERG  <wl@gnu.org>
5379         * src/include/config.hin: Add `HAVE_ISATTY'.
5380         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5381         `fname' member.
5382         * src/libs/libgroff/tmpname.cc: Include `time.h'.
5383         * src/libs/libdriver/input.cc (Char): Add `operator==' and
5384         `operator!=' for `char'.
5385         * doc/groff.texinfo: Replace @ifnottex block for top node with
5386         @ifhtml block.
5388 2002-09-06  Werner LEMBERG  <wl@gnu.org>
5390         * doc/Makefile.in (.texinfo.html): Add -I switch.
5391         * doc/groff.texinfo: Add @ifnottex block for top node to make
5392         translation to HTML work.
5394 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
5396         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5397         (get_papersize, determine_vertical_offset): Removed.
5398         (char_buffer::do_image): Always specify letter size.
5399         (main): Updated.
5400         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5401         -sPAPERSIZE.
5403 2002-09-05  Werner LEMBERG  <wl@gnu.org>
5405         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5406         default indentation.
5408 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
5410         * src/preproc/html/pre-html.cc (imageList::createPage): Use
5411         -sPAPERSIZE for gs.
5412         (generateImages): Clean up push-back buffer.
5414 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5416         * doc/groff.texinfo: Minor fixes.
5418 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5420         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5421         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5422         (gsPaper): Removed.
5423         (determine_vertical_offset): Use LETTER_LENGTH.
5424         (createPage): Moved to ...
5425         (imageList::createPage): This.
5426         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5427         (imageList::getMaxX): New function.
5428         (createImage): Moved to ...
5429         (imageList::createImage): This.
5430         (imageList::createImages): New function.
5431         (generateImages): Read `maxx' directly.
5432         Updated.
5433         (scanArguments): Don't specify `gsPaper' for `-o'.
5434         (makeTempFiles): Call `xtmpfile' with the last argument set to
5435         `TRUE'.
5437 2002-08-24  Werner LEMBERG  <wl@gnu.org>
5439         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5440         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5441         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5442         * src/preproc/html/pushback.cc: Include nonposix.h.
5443         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5444         conditionally.
5446 2002-08-23  Werner LEMBERG  <wl@gnu.org>
5448         Use $(OBJEXT) for the object file extension.
5450         * Makefile.comm (.SUFFIXES): Add .obj.
5451         (.cc.obj, .c.obj): New implicit rules.
5452         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5453         (MDEFINES): Add EXEEXT and OBJEXT.
5454         * */Makefile.sub: s/.o/.$(OBJEXT)/.
5456 2002-08-22  Werner LEMBERG  <wl@gnu.org>
5458         * INSTALL: Mention texinfo 4.2 as a prerequisite.
5460 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5462         * src/devices/grohtml/post-html.cc (colType): Make enum global to
5463         the file.
5464         (html_printer::update_min_max, html_printer::add_table_end): New
5465         methods.
5466         (html_printer::lookahead_for_tables): Use them.
5467         Reset page offset correctly.
5468         (html_printer::~html_printer): Add creation of creator comment up.
5470 2002-08-20  Werner LEMBERG  <wl@gnu.org>
5472         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5473         * man/groff_tmac.man: Fix typos.
5474         * man/groff_font.man: Minor reordering.
5475         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5477 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5479         Avoid endless loops while scanning for tables.
5481         * src/devices/grohtml/post-html.cc (list::insert): Set
5482         ptr->right->left.
5483         (html_printer::next_horiz_pos): Add `text_glob' argument; update
5484         all callers.
5485         Return immediately if that argument is NULL.
5486         (html_printer::calc_nf): Don't test if `g' is NULL.
5487         (html_printer::lookahead_for_tables): Use
5488         `glyphs.move_right_get_data'.
5489         Don't test if `g' is NULL.
5491 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5493         A better fix, replacing fix 2002-08-15, for increasing SIZE.
5495         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5496         a pointer.
5497         (char_block::char_block): Allocate `buffer'.
5498         (char_buffer::add_string): Use it.
5500 2002-08-15  Werner LEMBERG  <wl@gnu.org>
5502         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5503         src/devices/grodvi/grodvi.man: Document default line thickness.
5505 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
5507         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5508         8192.
5510 2002-08-14  Werner LEMBERG  <wl@gnu.org>
5512         * doc/webpage.ms: Updated.
5514 2002-08-09  Werner LEMBERG  <wl@gnu.org>
5516         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5517         unbreakable space.
5519 2002-08-08  Aaron Campbell  <aaron@monkey.org>
5521         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5522         (&& -> &).
5524 2002-08-08  Werner LEMBERG  <wl@gnu.org>
5526         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5527         tok.next().
5528         (read_gray): Ditto.
5529         Don't push back a space but a newline onto the stack.
5531 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
5533         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5534         inadvertently.
5536         * src/devices/grohtml/post-html.cc (html_printer::end_font,
5537         html_printer::start_font): Handle them.
5538         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5539         reset bold and tt.
5540         (html_text::do_bold): Don't reset italic and tt.
5541         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5542         * font/devhtml/DESC.proto: Add those fonts.
5543         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5545 2002-08-07  Werner LEMBERG  <wl@gnu.org>
5547         * MORE.STUFF: Added gpresent.
5549         * tmac/trace.tmac: Show nesting level by a corresponding amount of
5550         whitespace before printing the logging message.
5552 2002-07-31  Colin Watson  <cjwatson@debian.org>
5554         * src/devices/grohtml/html-table.cc (html_table::finish_row):
5555         Initialize `n' to zero.  This fixes a segfault on ARM.
5557 2002-07-30  Werner LEMBERG  <wl@gnu.org>
5559         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5561 2002-07-29  Werner LEMBERG  <wl@gnu.org>
5563         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5564         final semicolon.
5566 2002-07-28  Colin Watson  <cjwatson@debian.org>
5568         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5569         `.ps'.
5570         (html_printer::html_printer): Initialize `pointsize'.
5572 2002-07-26  Werner LEMBERG  <wl@gnu.org>
5574         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5575         gnu.png.
5576         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5577         (gnu.eps): Add -rle switch to pnmtops.
5578         (distfiles): Add gnu.eps and gnu.png.
5580 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
5582         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5583         Add `operator!='.
5585 2002-07-24  Werner LEMBERG  <wl@gnu.org>
5587         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5588         ' \+' but '  *' for sed.
5589         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5591 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5593         * doc/groff.texinfo: Document `papersize' keyword.
5594         * NEWS, man/groff_font.man: Updated.
5596 2002-07-23  Colin Watson  <cjwatson@debian.org>
5598         Extend papersize keyword to accept more than a single entry.  The
5599         first valid will be used.
5601         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5602         (font::scan_papersize): Really skip final newline.
5603         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5605 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5607         * configure.ac: Test for isatty.
5608         * configure: Regenerated.
5609         * src/include/posix.h: Check HAVE_ISATTY.
5610         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5611         * src/utils/lookbib/lookbib.cc: Include posix.h.
5612         Don't declare isatty.
5614 2002-07-21  Werner LEMBERG  <wl@gnu.org>
5616         * NEWS: Add `output' request.
5618         * REVISION: Increased to 1.
5620 Version 1.18.0 released
5621 =======================
5623 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
5625         Allow internal glyph indices > 0xFF in grohtml for input characters.
5627         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5628         as parameter.
5629         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5630         Updated all callers.
5631         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5632         (html_printer): Updated.
5634 2002-07-19  Werner LEMBERG  <wl@gnu.org>
5636         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5637         * font/devutf8/R.proto: Adding some missing glyphs.
5638         * font/devutf8/NOTES: Updated.
5640         * tmac/dvi.tmac: Add more composite glyphs.
5641         * tmac/html.tmac: Updated.
5643         * man/groff_char.man: Add `sum' and `product' entities.
5645         * NEWS: Updated.
5647 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
5649         Improved table, tab, and indenting support.
5651         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5652         string_iterator::suppress_newline_flag): Removed.  Updated all
5653         function which have used it.
5655         * src/roff/troff/env.cc: Include `input.h'.
5656         (environment::add_node): Accept 0 as parameter.
5657         (environment::add_html_tag): Add `force' parameter.
5658         Updated all callers.
5659         (environment::add_html_tag_tabs): Ditto.
5660         For the moment, support left-aligned tabs only.
5661         (environment::make_html_tag): New function.
5662         (fill, no_fill): Set .br html tag additionally.
5663         (environment::newline): Emit `eol.ce' or `eol' tag for html.
5664         (environment::add_html_tag_eol): Removed.
5665         (tab_stops::distance_to_next_tab): Add variant for handling 
5666         nextpos'.
5667         (environment::distance_to_next_tab): Ditto.
5668         Updated all callers.
5669         (environment::handle_tab): Handle tabs for html.
5670         
5671         * src/roff/troff/env.h: Updated.
5673         * src/roff/troff/div.cc: Updated all callers of
5674         `environment::add_html_tag'.
5676         * src/devices/grohtml/html-table.cc,
5677         src/devices/grohtml/html-table.h: New files.
5679         * src/devices/grohtml/html-text.cc (html_text): New members
5680         `blank_para' and `start_space'.
5681         (html_text::issue_tag): Don't emit TABLE_TAG.
5682         Handle indentation for PRE_TAG and P_TAG.
5683         (html_text::end_tag): Updated.
5684         (html_text::table_is_void, html_text::issue_table_begin,
5685         html_text::issue_table_end): Removed.
5686         (html_text::do_push): Simplified.
5687         [DEBUGGING]: Small fix.
5688         (html_text::push_para): Add new parameter for indentation; updated
5689         all callers.
5690         Handle PRE_TAG.
5691         (html_text::do_indent, html_text::do_table, html_text::done_table,
5692         html_text::is_in_table): Removed.
5693         (html_text::do_pre): Handle P_TAG also.
5694         (html_text::shutdown): Handle p->indent.
5695         (html_text::check_emit_text): Simplified.
5696         (html_text::do_emittext): Reset `blank_para'.
5697         (html_text::do_para): Add new parameter for indentation; updated
5698         all callers.
5699         (html_text::remove_indent): New function.
5700         (html_text::do_space): Handle verbatim text properly.
5701         (html_text::ever_emitted_text, html_text::starts_with_space,
5702         html_text::remove_para_align): New functions.
5703         (html_text::dump_stack_element, html_text::dump_stack): Updated.
5705         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5706         Updated.
5708         * src/devices/grohtml/post-html.cc: Include html-table.h.
5709         (INDENTATION): Removed.
5710         (text_glob): Added many `is_<foo>' functions.
5711         Added table description `tab'.
5712         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5713         member functions.
5714         (list): Add `insert' and `move_to' member functions.
5715         (page): Add `insert_tag' member function.
5716         (page::dump_page) [DEBUG_TABLES]: Improved.
5717         (html_printer): Add `table' and `max_linelength' elements.
5718         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5719         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5720         `remove_tabs', `remove_courier_tabs'.
5721         (html_printer::emit_raw): Handle indentation.
5722         (html_printer::do_center, html_printer::write_header): Updated.
5723         (html_printer::is_courier_until_eol): Check for tag.
5724         (html_printer::do_linelength): Handle max_linelength.
5725         (html_printer::do_page_offset, html_printer::do_indentation): Handle
5726         fill_on.
5727         (html_printer::do_tempindent): Updated.
5728         (html_printer::do_indentedparagraph): Removed.
5729         (html_printer::do_indent): Simplified.
5730         (html_printer::do_eol): Use `ever_emitted_text'.
5731         (html_printer::do_flush, html_printer::do_links): Don't call
5732         done_table.
5733         (html_printer::do_break): Handle end_tempindent.
5734         (html_printer::troff_tag): Get argument.
5735         Don't handle `.ip'.
5736         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5737         (html_printer::flush_page): Call `lookahead_for_tables'.
5738         Don't call `done_table'.
5739         (html_printer::add_to_sbuf): Always call do_indent.
5741         * src/devices/grohtml/Makefile.sub: Updated.
5743         * tmac/an-old.tmac (TP): Don't handle html device specially.
5744         (an-do-tag-html): New function which will be used instead of
5745         `an-do-tag' if html device is used.
5747         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5749         * tmac/s.tmac (@IP): Don't handle html device specially.
5750         (@IP-html): New function which will be used instead of `@IP' if
5751         html device is used.
5753         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5754         is a hack which will eventually vanish again.
5755         (PIMG): Handle `-C' option correctly if not html.
5756         (HR): Use HTML-NS.
5758 2002-07-17  Werner LEMBERG  <wl@gnu.org>
5760         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5762 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
5764         * contrib/pic2graph/pic2graph.*: Use convert(1).
5765         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5767 2002-07-14  Bernd Warken  <bwarken@mayn.de>
5769         * tmac/groff_trace.man: New file.
5770         * tmac/Makefile.sub: Updated.
5771         * NEWS: Updated.
5773 2002-07-13  Werner LEMBERG  <wl@gnu.org>
5775         * src/roff/groff/groff.man: Add some cross references.
5777 2002-07-12  Werner LEMBERG  <wl@gnu.org>
5779         * src/roff/troff/input.cc (substring_request): Add warnings for
5780         string indices out of range.
5782 2002-07-11  Werner LEMBERG  <wl@gnu.org>
5784         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5785         * font/devdvi/*EC: Regenerated.
5787 2002-07-10  Bernd Warken  <bwarken@mayn.de>
5789         * man/groff_char.man: Updated and extended.
5791 2002-07-10  Werner LEMBERG  <wl@gnu.org>
5793         * src/roff/troff/input.cc (length_macro): Renamed to...
5794         (length_request): This.
5795         Move call of `tok.next()' to the very end, otherwise the register
5796         value hasn't been updated yet.
5797         (init_input_requests): Updated.
5799 2002-07-09  Werner LEMBERG  <wl@gnu.org>
5801         * src/roff/troff/input.cc (substring_macro): Renamed to...
5802         (substring_request): This.
5803         (init_input_requests): Updated.
5804         * src/roff/troff/request.h: Updated.
5806 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
5808         * src/roff/grog/grog.sh: Fix typo.
5810 2002-07-08  Werner LEMBERG  <wl@gnu.org>
5812         * win32-diffs: Updated.
5814         Handle `papersize' keyword properly in DESC.
5816         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5817         type.
5818         Updated all callers.
5819         * src/libs/libgroff/paper.cc: Add four more paper formats used by
5820         grolj4.
5821         * src/include/paper.h: Updated.
5823         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5824         Other minor C syntax fixes.
5825         (papersize, paperlength, paperwidth): Renamed to `user_*'.
5826         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5827         members.
5828         (lbp_printer::lbp_printer): Pass three arguments.
5829         Set paper dimensions properly.
5830         (make_printer, main): Updated.
5831         (handle_unknown_desc_command): Fix error messages.
5832         (main): Handle papersize keyword in DESC properly.
5834         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5835         `user_paper_size'.
5836         (lbp_printer::lbp_printer): Pass an argument.
5837         Set paper_size properly.
5838         (handle_unknown_desc_command): Removed.
5839         (make_printer, main): Updated.
5840         * src/devices/grolj4/grolj4.man: Minor documentation fix.
5842         * man/groff_font.man, NEWS: Updated.
5844 2002-07-07  Werner LEMBERG  <wl@gnu.org>
5846         Integrated eqn2graph, contributed by Eric S. Raymond.
5848         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5849         files.
5850         * Makefile.in, NEWS: Updated.
5852 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5854         Changing the substring request to make it fit better with other
5855         string manipulation functions in other programming languages:
5856         Index 0 is now the first character in the string, and index -1
5857         indicates the last character.  Since this request didn't work
5858         properly anyway in the last release, it doesn't harm too much to
5859         change the syntax.
5861         * src/roff/troff/input.cc (substring_macro): Use loops to get
5862         the real string length (ignoring COMPATIBLE_SAVE and
5863         COMPATIBLE_RESTORE) and offsets.
5864         Implement change described above.
5866         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5867         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5869         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5871 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5873         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
5874         COMPATIBLE_RESTORE are completely ignored.
5876         * src/roff/troff/input.cc (char_list::set, char_list::get): New
5877         functions.
5878         (macro): `length' field renamed to `len'.
5879         Added new field `empty_macro' (1 if macro is empty), to be used
5880         instead of checking `len'.
5881         Updated all callers.
5882         (macro::empty): Updated.
5883         (macro::length, macro::set, macro::get): New functions.
5884         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5885         Set `empty_macro'.
5886         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5887         COMPATIBLE_RESTORE pairs.
5888         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5889         * src/roff/troff/request.h: Updated.
5891         * doc/groff.texinfo: Document .chop's behaviour better.
5893 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5895         * doc/pic.ms: Fix documentation for the addition of positions.
5897         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5899 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5901         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5903         * src/roff/troff/input.cc (have_string_arg): New global variable.
5904         (read_mode): New enumeration.
5905         (read_escape_name): Use it.  Update all calls.
5906         (read_long_escape_name): Use it.  Update all calls.
5907         Set have_string_arg if appropriate.
5908         (get_char_for_escape_name): Add parameter for handling space
5909         character.
5910         (interpolate_string_with_args, decode_string_args): New functions.
5911         (get_copy, token::next): Call it if necessary.
5912         (interpolate_string): Fix error message.
5914         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5915         Document it.
5917 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5919         * man/groff_tmac.man: Updated and extended.
5921 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5923         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5925 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5927         * doc/pic.ms: Improve documentation of composite block objects.
5929 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5931         * src/roff/troff/input.cc (init_registers): Add three registers
5932         `seconds', `minutes', and `hours' to hold the current time.
5934         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5935         Updated.
5937 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5939         Make \X accept both `\ ' and `\~', converting them to single space
5940         characters.
5942         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5943         (token::unstretchable_space): New inline function.
5944         * src/roff/troff/input.cc (token::next, token::delimiter,
5945         token::description, token::add_to_node_list, token::process): Handle
5946         TOKEN_UNSTRETCHABLE_NODE.
5947         (encode_char): Handle tok.stretchable_space and
5948         tok.unstretchable_space.
5950         * NEWS, doc/groff.texinfo: Document it..
5952 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5954         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5956         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5957         keyword to enable/disable SGR output.
5958         (tty_printer::change_fill_color): New function.
5959         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5961         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5962         call.
5964 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5966         Add a `color' request and a `.color' register to control usage of
5967         colours.
5969         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5970         (color_flag): This (which is the inverse).
5971         (activate_color): New function.
5972         (main, init_input_requests): Updated.
5973         * src/roff/troff/troff.h, src/roff/troff/node.cc
5974         (troff_output_file::fill_color, troff_output_file::glyph_color):
5975         Updated.
5977         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5978         Document the changes.
5980 2002-06-17  Colin Watson  <cjwatson@debian.org>
5982         Circumvent bug in autoconf 2.53 regarding top_builddir.
5984         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5985         * Makefile.in, doc/Makefile.in:
5986         s/@top_builddir@/@groff_top_builddir@/.
5987         * configure: Regenerated (with autoconf 2.53).
5989 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5991         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5992         `paperwidth' and `paperlength' for the `papersize' keyword.
5994 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5996         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5998 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
6000         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
6001         html_printer::do_linelength, html_printer::do_pageoffset,
6002         html_printer::do_indentation, html_printer::do_tempindent,
6003         html_printer::do_break, html_printer::begin_page): Clear indented
6004         text.
6005         * tmac/html.tmac: Disable hyphenation.
6007 2002-06-15  Werner LEMBERG  <wl@gnu.org>
6009         Don't produce HTML files if utility programs are missing.
6011         * Makefile.in (make_html, make_install_html): New variables.
6012         (MDEFINES): Updated.
6014         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
6015         utility programs.
6016         * configure.ac: Use it.
6017         * configure: Regenerated.
6019         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
6020         (HTMLEXAMPLESFILES): This new variable.
6021         (EXAMPLESIMAGEFILES): Renamed to...
6022         (HTMLEXAMPLEIMAGEFILES): This.
6023         (CLEANADD): Add HTMLEXAMPLEFILES.
6024         (all): Use `make_html'.
6025         (html): New target.
6026         (install_data): Use `make_install_html'.
6027         Move html stuff to...
6028         (install_html): This new target.
6029         (uninstall_sub): Updated.
6031 2002-06-14  Bernd Warken  <bwarken@mayn.de>
6033         * src/roff/grog/Makefile.sub (grog): Renamed to...
6034         (grog.old): This.
6035         (grog): New rule to always install grog.sh as grog.
6037 2002-06-08  Bernd Warken  <bwarken@mayn.de>
6039         * src/roff/grog/grog.pl: Fix typo.
6041 2002-06-07  Werner LEMBERG  <wl@gnu.org>
6043         * doc/groff.texinfo: Add more info on .tr arguments.
6045 2002-06-05  Werner LEMBERG  <wl@gnu.org>
6047         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
6049         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
6050         * configure: Regenerated.
6052 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6054         * src/roff/troff/symbol.cc (table_sizes): Add more values.
6056         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
6058 2002-06-04  Werner LEMBERG  <wl@gnu.org>
6060         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
6061         is not initialized at the time we need it in case `--prefix' hasn't
6062         been set.  Check for `ac_default_prefix' also.
6063         Test for `papersize' keyword also and generalize allowed whitespace.
6064         * configure: Regenerated.
6066         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
6067         `paperlength'.
6069         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
6070         with...
6071         (src_version, src_revision): New variables to avoid overwriting
6072         from parent make process.
6073         (version.cc): Updated.
6075         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
6076         (linebuf, linebufsize): New global variables.
6077         (sys_fatal): Use `fatal' to abort properly.
6078         (get_line): New function.
6079         (get_resolution): Use it.
6080         Improve error messages.
6081         (get_papersize): Check `papersize' also.
6082         Use `get_line'.
6083         Improve error messages.
6085 2002-06-03  Werner LEMBERG  <wl@gnu.org>
6087         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
6088         should be removed only if builddir is not srcdir.
6089         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
6090         (clean): Depend on `mostlyclean'.
6091         (distclean): Depend on `clean'.
6092         (realclean, extraclean): Depend on `distclean'.
6093         (.y.cc, .y.o): Simplified.  The output files are no longer written
6094         to srcdir but to builddir.
6095         * Makefile.in (MDEFINES): Add `version' and `revision'.
6096         (uninstall_dirs): Fix order of directories.
6097         * doc/Makefile.sub (version, revision): Removed.
6098         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
6099         Added `HTMLDOCFILES'.
6100         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
6101         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
6102         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
6103         as prefix.
6105         * doc/texinfo.tex (\authortt): New macro.
6106         (\shortcontt): Define.
6107         (\titlepage): Set \tt to \authortt while defining \authorfont.
6108         (\appendixbox): New macro.
6109         (\chapmacro, \appendixentry): Use \appendixbox to get even
6110         indentation for letters.
6111         (\summarycontents): Set \tt.
6112         (\internalpagesize): Add two arguments for real paper width and
6113         height as needed by pdfTeX.
6114         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
6115         Updated.
6116         (\tempdima, \tempdimb): New temporary dimensions.
6117         (\pagesizesyyy): Updated.
6119 2002-06-02  Werner LEMBERG  <wl@gnu.org>
6121         Adding a new keyword `papersize' to the DESC file format (similar
6122         but not completely identical to grolbp's extension).  grops now has
6123         a -p command line option to override `papersize'.  Finally, grolbp
6124         has been adapted to the new syntax.
6126         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
6127         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
6128         elements.
6129         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
6130         (CCSRCS): Add `paper.cc'.
6132         * src/include/font.h (font): Add `papersize' element.
6133         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
6134         (font::scan_papersize): New function.
6135         (font::load_desc): Use it for handling `papersize' keyword.
6136         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
6138         * src/devices/grops/ps.cc: Include paper.h.
6139         (user_paper_length): New global variable.
6140         (ps_printer): Use paper length as initializer.
6141         (make_printer): Updated.
6142         (main): Handle new `-p' option.
6143         * src/devices/grops/grops.man: Updated.
6145         * src/devices/grolbp/lbp.cc: Include paper.h.
6146         s/papersizes/lbp_papersizes/.
6147         (set_papersize): Use new `papersizes' array.
6148         (handle_unknown_desc_command): Don't handle `papersize'.
6149         (main): Use `font::scan_papersize' for handling `-p' option.
6150         * src/devices/grolbp/grolbp.man: Updated.
6152         * man/groff_font.man: Document `papersize'.
6153         * NEWS: Updated.
6155 2002-05-30  Werner LEMBERG  <wl@gnu.org>
6157         * src/devices/grops/TODO: Updated.
6158         * src/devices/grops/grops.man: More info on paper formats.
6159         * man/groff_font.man: Document `paperheight' and `paperwidth'.
6161 2002-05-29  Werner LEMBERG  <wl@gnu.org>
6163         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
6164         to list only if srcdir != currdir.
6165         (distfiles): New target.
6167         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
6168         (NOMAKEDIRS): New variable.
6169         (DISTDIRS): Use it.
6171 2002-05-26  Werner LEMBERG  <wl@gnu.org>
6173         Add .output request, similar to \! at top-level.
6175         * src/roff/troff/input.cc (transparent): Remove unused declaration.
6176         (output_request): New function.
6177         (init_input_requests): Add it.
6178         Sorted.
6179         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6180         Document it.
6182         * Makefile.in (MDEFINES): Add INSTALL_INFO.
6183         (prepare_examples): Fix typo.
6184         * doc/groff.texinfo (@direntry): Fix it.
6186 2002-05-25  Werner LEMBERG  <wl@gnu.org>
6188         Including the doc subdir into groff's Makefile system.
6190         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
6191         * configure.ac: Use it.
6192         Generate `doc/Makefile'.
6193         * configure: Regenerated.
6195         * Makefile.in (infodir, INSTALL_INFO): New variables.
6196         (MDEFINES, uninstall_dirs): Updated.
6197         (OTHERDIRS): Add `doc'.
6198         * Makefile.comm (CLEANDIRADD): New variable.
6199         (mostlyclean): Use it.
6201         * doc/Makefile.sub, doc/Makefile.in: New files.
6202         * doc/Makefile: Removed.
6204         * NEWS, INSTALL: Updated.
6206 2002-05-24  Werner LEMBERG  <wl@gnu.org>
6208         * doc/homepage.ms: Renamed to ...
6209         * doc/webpage.ms: This.
6210         Use `.NHR'.
6212 2002-05-23  Werner LEMBERG  <wl@gnu.org>
6214         Integrating the `mom' macro package, contributed by Peter Schaffter
6215         <df191@ncf.ca>.
6217         * contrib/mom/*: New subdirectory tree.
6218         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
6219         be used for documentation files.
6220         (MDEFINES, uninstall_dirs): Use them.
6221         (OTHERDIRS): Add contrib/mom.
6222         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
6223         @HTMLDOCDIR@.
6224         * MANIFEST, NEWS: Updated.
6226 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
6228         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
6229         if at outer level; at start-up we are at outer level.
6231         * src/roff/troff/input.cc (do_suppress): Implement it.
6232         Simplify \O[3].
6234         Add option -p to show progress information.
6235         pre-grohtml will now render only one page at a time, reducing the
6236         size of needed disk resources enormously.
6238         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
6239         (imagePageName): New global variable.
6240         (psPageName, show_progress, currentPageNo): New global variables.
6241         (html_system): Close saved stderr and stdout handles.
6242         (write_end_image): Accept a parameter to control \O escape.
6243         (write_start_image): Adapted to new \O meaning.
6244         (char_buffer::write_upto_newline): Updated.
6245         (createAllPages): Replaced with...
6246         (createPage): This new function to create a single page for images.
6247         It uses `psselect' from the psutils package.
6248         (removeAllPages): Removed.
6249         (createImage): Updated.
6250         Handle progress display.
6251         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
6252         (scanArguments): Add option -p.
6253         (makeTempFiles): Updated to create temp files for psPageName and
6254         imagePageName.
6255         (removeTempFiles): Removed.
6256         (main): Updated.
6258         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
6259         html_printer::write_header): Append `\0' to `buffer'.
6260         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
6261         (main): Handle -p.
6262         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
6263         Handle `text_emitted'.
6264         (html_text::table_is_void): Slightly rewritten.
6265         (stop): New external symbol.
6266         (html_text::do_push) [DEBUGGING]: Use it and simplify.
6267         (html_text::shutdown): Call `dump_stack'.
6268         (html_text::do_space): Rewritten.
6269         * src/devices/grohtml/grohtml.man: Document -p and the need of
6270         `psselect'.
6272         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
6273         new \O syntax.
6274         Call \O[0] if `ps4html' is active.
6275         * tmac/s.tmac (@EQ, @EN): Handle html better.
6276         (@TS, TE): Ditto.
6277         * tmac/html.tmac: Don't use black for background colour.
6279         * src/roff/troff/node.cc: Include `div.h'.
6280         (troff_output_file::really_print_line): Don't use `is_on'. 
6281         (troff_output_file::word_marker, troff_output_file::flush_tbuf
6282         troff_output_file::check_charinfo,
6283         troff_output_file::put_char_width, troff_output_file::put_char,
6284         troff_output_file::determine_line_limits, troff_output_file::draw,
6285         real_output_file::begin_page, glyph_color_node::tprintf,
6286         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
6287         Use `is_on'.
6288         (troff_output_file::really_on): Call `do_motion'.
6289         (suppress_node::tprint): Use `get_page_number' instead of `%'
6290         register.
6291         Call `reset_output_registers' conditionally on `is_on'.
6293         * doc/groff.texinfo: Document new syntax of \O.
6294         * NEWS, man/groff_diff.man: Updated.
6296 2002-05-22  Werner LEMBERG  <wl@gnu.org>
6298         * MORE.STUFF: Add info about David Frey's deroff implementation.
6299         Mention troff.org.
6301 2002-05-16  Werner LEMBERG  <wl@gnu.org>
6303         Pic's `with' attribute now accepts positions.
6305         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
6306         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
6307         conflicts.
6308         (object_spec): Add rule for `WITH' and `position'.
6309         (relative_path): Give `corner' the precedence of `CHOP'.
6310         * src/preproc/pic/object.h (path): New members `pos' and
6311         `is_position'.
6312         * src/preproc/pic/object.cc: Updated initializers of `path'.
6313         (path::follow): Handle `is_position'.
6315         * doc/pic.ms: Completely updated grammar description.
6316         Many typographical improvements.
6318 2002-05-15  Werner LEMBERG  <wl@gnu.org>
6320         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
6321         code of x in range 0-127) also.
6322         * doc/groff.texinfo, man/groff_diff.man: Updated.
6324         Added keywords `north', `south', `east', and `west' for corners
6325         in pic.
6327         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
6328         and WEST.
6329         (yylex): Handle them.
6330         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
6331         (corner): Handle them.
6333 2002-05-14  Werner LEMBERG  <wl@gnu.org>
6335         * src/devices/grops/grops.man: Clarify handling of `download' file.
6337 2002-05-11  Werner LEMBERG  <wl@gnu.org>
6339         Adding `warnscale' and `spreadwarn' requests, based on a patch from
6340         Jeffrey Friedl <jfriedl@yahoo.com>.
6342         * src/roff/troff/input.cc (spread_limit, warn_scale,
6343         warn_scaling_indicator): New global variables.
6344         (warnscale_request, spreadwarn_requests): New functions.
6345         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
6346         (init_input_requests): Updated.
6347         (error_type): Add `OUTPUT_WARNING'.
6348         (do_error): Handle it.
6349         (output_warning): New warning function which shows output location.
6350         * src/roff/troff/env.h (spread_limit): New external variable.
6351         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6352         `output_warning'.
6353         (distribute_space): Emit warning if added space is larger than
6354         `spread_limit'.
6355         (environment::possibly_break_line): Emit warning if a line can't
6356         be adjusted on both sides.
6358         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6360 2002-05-08  Werner LEMBERG  <wl@gnu.org>
6362         * src/roff/troff/node.cc (special_node::special_node): Use
6363         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
6364         \X''\% crashes, for example.
6366         * doc/groff.texinfo: Document \! and \? used at top-level.
6368 2002-05-06  Werner LEMBERG  <wl@gnu.org>
6370         * src/preproc/pic/pic.man: Fix some keyword syntax.
6371         Other minor typographical fixes.
6373         * src/roff/groff/groff.man: Fix typos.
6375 2002-05-04  Werner LEMBERG  <wl@gnu.org>
6377         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6378         (ShortOpt[]): This to avoid problems with refer.
6380         * doc/pic.ms: Fix typo.
6381         Fix pic grammar description.
6383         * tmac/an-old.tmac (ne): Use de1, not de.
6385 2002-05-03  Werner LEMBERG  <wl@gnu.org>
6387         * doc/groff.texinfo: Finished separation of glyphs and characters.
6388         Don't use the string `Appendix' for appendix headers (both in
6389         the text and the table of contents).
6390         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6391         directories.
6393         Use registers LL and LT (similar to -ms) for controlling the
6394         length of title and line, respectively, in the -man and -mdoc
6395         macro packages.
6397         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6398         (doc-setup-page-layout): Use \n[LL] and \n[LT].
6399         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6400         (TH): Use \n[LL].
6401         (an-header, an-p-footer): Use \n[LT].
6402         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6403         doc/groff.texinfo: Document it.
6405 2002-05-02  Werner LEMBERG  <wl@gnu.org>
6407         * doc/fdl.texi: New file.
6408         * doc/groff.texinfo: Include it.
6409         Define and use @copying.
6410         Starting with separating glyph, symbol, and character.
6412 2002-04-27  Werner LEMBERG  <wl@gnu.org>
6414         * Makefile.in (EXEEXT): Set it.
6415         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6416         programs.
6418         * src/include/nonposix.h: Define GS_NAME.
6419         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6421         Some preliminary changes for EMX support under OS/2.
6423         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6424         __EMX__ similar to __MSDOS__.
6425         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6427 2002-04-25  Werner LEMBERG  <wl@gnu.org>
6429         * doc/groff.texinfo: Integrated groff_out.man.
6430         Some macro fixes.
6432 2002-04-23  Werner LEMBERG  <wl@gnu.org>
6434         * man/groff_out.man: Minor fixes.
6436 2002-04-23  Werner LEMBERG  <wl@gnu.org>
6438         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6439         correct page references.
6440         Fixed many index entries.
6442 2002-04-23  Bernd Warken  <bwarken@mayn.de>
6444         * man/roff.man: Enlarged.
6446 2002-04-22  Werner LEMBERG  <wl@gnu.org>
6448         * doc/groff.texinfo: More examples, other fixes.
6450 2002-04-20  Werner LEMBERG  <wl@gnu.org>
6452         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6453         will now form a chain, e.g.
6455           .pi foo
6456           .pi bar
6458         is now the same as
6460           .pi foo | bar
6462         This is for compatibility with plan 9's troff.
6464         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6465         with UNIX troff.
6466         * NEWS: Updated.
6468         * doc/groff.texinfo: Add documentation of remaining requests and
6469         registers.
6471 2002-04-19  Werner LEMBERG  <wl@gnu.org>
6473         * doc/groff.texinfo: Add documentation of remaining escapes.
6475         * font/devdvi/generate/tc.map: Remove entry for `sr'.
6476         * font/devdvi/*TC: Regenerated.
6478 2002-04-18  Werner LEMBERG  <wl@gnu.org>
6480         * src/roff/troff/input.cc (token::next): Make \H behave consistently
6481         if not in compatibility mode, i.e., increment relative to the
6482         previous height.
6483         * doc/groff.texinfo: Updated accordingly.
6485 2002-04-17  Werner LEMBERG  <wl@gnu.org>
6487         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6489 2002-04-16  Bernd Warken  <bwarken@mayn.de>
6491         * src/roff/groff/groff.man: Improve documentation of -P option.
6492         Other minor fixes.
6494 2002-04-15  Werner LEMBERG  <wl@gnu.org>
6496         Add new escape \F to switch font family.
6498         * src/roff/troff/input.cc (token::next): Handle \F.
6499         * src/roff/troff/env.cc (environment::set_family): Handle
6500         `interrupted' flag.
6501         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6502         Document it.
6504 2002-04-14  Werner LEMBERG  <wl@gnu.org>
6506         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6507         spaces in tags.
6509 2002-04-13  Werner LEMBERG  <wl@gnu.org>
6511         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
6512         \m[] and \M[], respectively.
6514         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6515         (symbol::symbol): Handle NULL string and empty string differently.
6516         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6517         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6518         Add optional parameter.
6519         Updated calling functions.
6520         (get_copy, do_glyph_color, do_fill_color, token::next): Use
6521         `symbol::is_empty'.
6522         * src/roff/troff/env.cc (environment::set_font): Ditto.
6524         * src/preproc/pic/troff.cc (troff_output::set_fill,
6525         troff_output::reset_color: Updated.
6527         * tmac/www.tmac: Updated.
6529         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6530         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6531         Updated.
6533         * tmac/Xps.tmac: Remove some redundant code.
6535         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6536         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6537         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6538         \f[].
6540 2002-04-13  Bernd Warken  <bwarken@mayn.de>
6542         * src/include/printer.h, src/libs/libdriver/printer.cc
6543         (printer::change_fill_color): New member function.
6544         * src/libs/libdriver/input.cc (parse_D_command): Use it.
6546 2002-04-12  Werner LEMBERG  <wl@gnu.org>
6548         * doc/groff.texinfo: Completed pass on gtroff reference.
6550 2002-04-11  Werner LEMBERG  <wl@gnu.org>
6552         * doc/groff.texinfo: More fixes.
6554 2002-04-11  Bernd Warken  <bwarken@mayn.de>
6556         * src/include/color.h: Decorate with `const'.
6557         Use `size_t'.
6558         Include `stddef.h'.
6559         * src/libs/libgroff.color.cc: Decorate with `const'.
6560         Use `size_t'.
6561         (color::color): Initialize members.
6562         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6563         command according to the documentation.
6565         * man/groff_out.man: Updated.
6566         Minor fixes.
6568 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
6570         * src/preproc/html/pre-html.cc (write_start_image): Remove
6571         redundant output.
6572         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6574         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6575         \C'hy' caused an assertion failure.
6577         * src/roff/troff/env.cc (environment::environment): Initialize
6578         `emitted_node'.
6579         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6581 2002-04-10  Werner LEMBERG  <wl@gnu.org>
6583         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6584         Document pvs request and .pvs register.
6586 2002-04-09  Werner LEMBERG  <wl@gnu.org>
6588         * doc/groff.texinfo: Improve and fix documentation of diversions
6589         and environments.
6591 2002-04-08  Werner LEMBERG  <wl@gnu.org>
6593         * doc/groff.texinfo: Fix documentation of drawing functions.
6594         Other minor fixes.
6596 2002-04-07  Werner LEMBERG  <wl@gnu.org>
6598         * doc/groff.texinfo: Better documentation of double quotes as
6599         arguments.
6600         Other minor fixes.
6602 2002-04-06  Werner LEMBERG  <wl@gnu.org>
6604         * man/groff_font.man: Document names of special characters better.
6605         * doc/groff.texinfo: Minor improvements.
6607         * tmac/lbp.tmac: Load latin1.tmac.
6608         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6610         * font/devX*/*: Regenerated (all chars > 0x80 removed).
6612 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6614         * tmac/tty.tmac: Don't use shc request.
6615         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6616         * NEWS: Updated.
6618         * man/groff_diff.man: Minor fixes.
6620         * font/devlbp/*: Remove all `charXXX' entities.
6622         * src/libs/libgroff/font.cc (font::~font): Deallocate
6623         `special_device_coding'.
6624         (font::load): Use `new' for allocating `special_device_coding'.
6625         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6626         Removed unused member.
6628 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6630         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6631         (resource_manager::do_begin_binary,
6632         resource_manager::do_begin_data): Use it.
6634         * doc/texinfo.tex: Updated to version 4.2.
6636         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6637         (token::zero_width_break): New inline function.
6638         * src/roff/troff/input.cc (token::next): Use it.
6639         (token::description): Updated.
6640         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6641         (token::add_to_node_list, token::process): Use it.
6642         * NEWS, doc/groff.texinfo: Updated.
6644         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6645         * tmac/tty.tmac: Add missing backslash.
6647 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
6649         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6650         `.ps' register instead of `.s' to handle fractional point sizes.
6651         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6652         limit_box::output): Ditto.
6653         * src/preproc/eqn/other.cc (size_box::compute_metrics,
6654         size_box::output): Ditto.
6655         * src/preproc/eqn/over.cc (over_box::compute_metrics,
6656         over_box::output): Ditto.
6657         * src/preproc/eqn/script.cc (script_box::compute_metrics,
6658         script_box::output): Ditto.
6659         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6660         sqrt_box::output): Ditto.
6662 2002-04-03  Michael Selway  <mas@ssl.co.uk>
6664         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6665         Fix typo.
6667 2002-04-03  Werner LEMBERG  <wl@gnu.org>
6669         * doc/homepage.ms: Reduce title size.
6670         * doc/groff.texinfo: Fix documentation of .t register.
6671         Fix handling of colon.
6672         Fix `\' vs. `\\'.
6674         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6675         only if page length is positive to avoid a loop.
6677         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6678         tbl.
6680 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
6682         * src/include/nonposix.h, src/roff/groff/pipeline.c:
6683         s/__CYGWIN32__/__CYGWIN__/.
6685 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
6687         * doc/gnu.xpm: New image contributed by Emily Mulley.
6688         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6689         (homepage.html): Be dependent on gnu.eps.
6690         * doc/homepage.ms: Updated to new image.
6692         * src/devices/grohtml/post-html.cc (html_printer): New member
6693         `sbuf_prev_hpos'.
6694         (html_printer::flush_sbuf, html_printer::set_char): Set it.
6695         (html_printer::sbuf_continuation): Use it.
6697 2002-03-28  Werner LEMBERG  <wl@gnu.org>
6699         * src/libs/libgroff/getopt.c: Updated to latest version.
6701         * tmac/README: More on hyphen.tex license.
6703 2002-03-26  Larry Kollar  <kollar@alltel.net>
6705         * doc/groff.texinfo: Add documentation of most missing requests.
6707 2002-03-25  Werner LEMBERG  <wl@gnu.org>
6709         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6710         of `+-', `mu', and `di', respectively.
6712         * font/devascii/R.proto, font/devutf8/R.proto,
6713         font/devlatin1/R.proto, font/devhtml/R.proto,
6714         font/devcp1047/R.proto, font/devlpb/*: Add them.
6715         * font/devps/generate/textmap: Ditto.
6716         * font/devps/*: Regenerated.
6717         * font/devlj4/generate/text.map: Add them.
6718         * font/devlj4/*: Regenerated.
6719         * font/devdvi/generate/tc.map: Use them.
6720         * font/devdvi/generate/texsy.map: Add them.
6721         * font/devdvi/*: Regenerated.
6722         * font/devX*/*: Regenerated.
6724         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6725         tmac/tty-char.tmac: Updated.
6727         * NEWS, man/groff_char.man: Updated.
6729 2002-03-24  Werner LEMBERG  <wl@gnu.org>
6731         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6732         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6733         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6734         we use `.fchar' in dvi.tmac.
6735         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6736         * tmac/Xps.tmac: Simplify some char definitions.
6737         Add definition for \[f/].
6738         * man/groff_char.man: Updated for new X.tmac.
6740         * tmac/README: New file.
6742 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
6744         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6745         internal .y.o rule took precendence over the .y.cc rule, compiling
6746         the yacc files with gcc instead of g++.
6748 2002-03-23  Werner LEMBERG  <wl@gnu.org>
6750         * tmac/dvi.tmac: Add replacement font for `CB'.
6752         * tmac/doc.tmac: s/request/macro/ in messages.
6753         (doc-generic-macro): Improve error message.
6754         * tmac/groff_mdoc.man: Minor improvements.
6756 2002-03-22  Werner LEMBERG  <wl@gnu.org>
6758         * doc/groff.texinfo: Document possible conflict between `tr' and
6759         `char' requests.
6761 2002-03-21  Werner LEMBERG  <wl@gnu.org>
6763         Improve handling of hyphenation patterns.  It is now possible to
6764         use most of TeX's pattern files unmodified.  To make the process
6765         more flexible, a new request `hpfcode' has been added which
6766         provides a character code mapping for the `hpf' request.  See
6767         comment before hpf_getc() for more details.
6769         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6770         functions.
6771         (read_patterns_file): Additional parameter for exception dictionary.
6772         Extended to recognize \pattern, \hyphenation, and \endinput.
6773         (do_hyphenation_patterns_file): Updated.
6774         * src/roff/troff/env.h (hpf_code_table): New extern.
6776         * src/roff/troff/input.cc (hpf_code_table): New array.
6777         (init_hpf_code_table, hyphenation_patterns_file_code): New
6778         functions.
6779         (hyphenation_code): Handle translation from `trin' correctly.
6780         (main, init_input_requests): Updated.
6781         (charinfo::set_translation): Handle hyphenation code also.
6783         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6784         inline function.
6786         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6787         char' is used for offsets in hyphenation exceptions.
6789         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6791         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6793 2002-03-20  Larry Kollar  <kollar@alltel.net>
6795         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6796         requests.
6798 2002-03-18  Werner LEMBERG  <wl@gnu.org>
6800         * tmac/html.tmac: Fix serious typo.
6802 2002-03-17  Larry Kollar  <kollar@alltel.net>
6804         * doc/groff.texinfo: Add documentation for `writec' request.
6806 2002-03-17  Werner LEMBERG  <wl@gnu.org>
6808         Added request `hpfa' to append hyphenation patterns.
6810         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6811         parameter `append'.
6812         (hyphenation_patterns_file): Renamed to...
6813         (do_hyphenation_patterns_file): This.
6814         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6815         functions.
6816         (init_hyphen_requests): Updated.
6817         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6819 2002-03-16  Werner LEMBERG  <wl@gnu.org>
6821         Added request `writec' in analogy to `tmc'.
6823         * src/roff/troff/input.cc (write_request): Renamed to...
6824         (do_write_request): This.
6825         Added one parameter.
6826         (write_request, write_request_continue): New functions.
6827         (init_input_requests): Updated.
6828         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6830         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6831         5-10000pt.
6832         * NEWS: Document it.
6834 2002-03-15  Werner LEMBERG  <wl@gnu.org>
6836         * man/groff.man: Add writem request.
6838         Add request `trin' (translate input) to make `.asciify' work
6839         correctly.  This is necessary since `charXXX' entity names are no
6840         longer hardcoded in font definition files.
6842         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6843         `translate_input' members.
6844         (charinfo::set_asciify_code, charinfo::get_asciify_code,
6845         charinfo::set_translation_input): New methods.
6846         (charinfo::set_translation): Add third argument.
6847         * src/roff/troff/input.cc (charinfo:set_translation): Set
6848         `asciify_code'.
6849         (do_translate): Add second argument.
6850         (translate_input): New function.
6851         (init_input_requests): Updated.
6852         * src/roff/troff/node.cc (glyph_node::asciify,
6853         composite_node::asciify): Use `get_asciify_code'.
6855         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6857         * NEWS, man/groff.man, man/groff_diff.man: Updated.
6859 2002-03-14  Larry Kollar  <kollar@alltel.net>
6861         * doc/groff.texinfo: Improve documentation of .RS and .RE.
6863 2002-03-14  Werner LEMBERG  <wl@gnu.org>
6865         Add a new request `sizes' similar to the `sizes' command in DESC
6866         files.
6868         * src/roff/troff/env.cc (override_sizes): New function.
6869         (init_env_requests): Use it.
6870         * src/roff/troff/token.h: Export `read_string'.
6871         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6873 2002-03-12  Werner LEMBERG  <wl@gnu.org>
6875         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6877 2002-03-10  Werner LEMBERG  <wl@gnu.org>
6879         * tmac/pspic.tmac: Add support for -Tdvi.
6880         * tmac/dvi.tmac: Include pspic.tmac.
6881         * src/devices/grodvi/grodvi.man: Document it.
6882         * NEWS: Updated.
6884         * font/devlj4/generate/Makefile: Fix URL of metric files.
6886 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6888         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6890 2002-03-09  Larry Kollar  <kollar@alltel.net>
6892         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6894 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6896         * doc/groff.texinfo: Fixes for texinfo 4.1.
6898 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6900         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6901         included.
6902         Handle CYGWIN properly.
6904 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6906         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6907         * tmac/lbp.tmac: Add some font translations.
6909 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6911         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6912         font/devhtml/R.proto: Remove `charXXX'  entries.
6913         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6914         where appropriate.
6916         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6917         * font/devlj4/*: Regenerated all font definition files.
6918         * tmac/lj4.tmac: Load latin1.tmac.
6920         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6921         from 2000-06-17: LJ4 metric files are *not* text files.
6923         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6924         register to test for EBCDIC.
6926 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6928         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6929         files (as grops already does).
6930         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6931         files.
6932         * src/devices/grops/grops.man: Document comment lines in encoding
6933         files.
6935         * tmac/cp1047.tmac: New file.
6936         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6937         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6938         * tmac/Makefile.sub (NORMALFILES): Updated.
6940         * tmac/ec.tmac: Don't load latin1.tmac again.
6942         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6943         font/devps/generate/dingbats.map,
6944         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6945         font/devps/generate/Makefile (symbolmap): Add header comment.
6946         * font/devps/generate/textmap: Ditto.
6947         Remove `charXXX' entries.
6948         * font/devps/symbolmap: Regenerated.
6949         * font/devps/*: Regenerated all font definition files.
6951 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6953         Add color support to grodvi (for drawing colors are currently
6954         translated to gray values).
6956         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6957         (dvi_printer): Add `cur_color' member.
6958         (dvi_printer::set_color): New function.
6959         (draw_dvi_printer): Remove `fill'.
6960         (draw_dvi_printer::fill_next): Pass environment as parameter.
6961         Update code for new color support translated to gray.
6962         (dvi_printer::set_char): Updated.
6963         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6964         changes crossing the page border.
6965         (dvi_printer::draw): Updated.
6966         Remove cases `f' and `F'.
6967         * tmac/dvi.tmac: Add color definitions.
6968         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6970         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6971         used incorrectly.
6973         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6974         versions of autoconf.
6975         * configure: Updated.
6977         * doc/homepage.ms: Use `.blm'.
6978         * tmac/www.tmac (www-depth): New auxiliary variable.
6979         (www-pop-level): Don't issue HTML tag.
6980         (ULS, ULE, LI): Use absolute indentation.
6982         * src/devices/grops/ps.cc (ps_printer::begin_page,
6983         ps_printer::end_page): Switch forth and back to default color while
6984         starting a new page.
6986 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6988         Add EC and TC fonts to devdvi.
6990         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6991         * font/devdvi/generate/cork.map: Renamed to...
6992         * font/devdvi/generate/ec.map: This.
6993         Remove entry for `aq'.
6994         * font/devdvi/generate/tc.map: New file.
6995         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6996         EC and TC fonts.
6997         (FONTS): Updated.
6998         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6999         * font/devdvi/Makefile.sub (DEVFILES): Updated.
7000         * tmac/ec.tmac: New file.
7001         * tmac/Makefile.sub (NORMALFILES): Updated.
7002         * NEWS, src/devices/grodvi/grodvi.man: Updated.
7003         * man/groff_char.man: Check `ECFONTS' register.
7005         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
7007 2002-02-26  Werner LEMBERG  <wl@gnu.org>
7009         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
7010         * font/devdvi/generate/cork.map: Add 'y and 'Y.
7011         * font/devdvi/*: Updated.
7012         * tmac/dvi.tmac: Formatting.
7014         Add font `HBI' for the dvi output.
7015         Add support for font families `T' and `H'.
7017         * font/devdvi/HBI: New file.
7018         * font/devdvi/B: Renamed to ...
7019         * font/devdvi/TB: This.
7020         * font/devdvi/BI: Renamed to ...
7021         * font/devdvi/TBI: This.
7022         * font/devdvi/I: Renamed to ...
7023         * font/devdvi/TI: This.
7024         * font/devdvi/R: Renamed to ...
7025         * font/devdvi/TR: This.
7026         * font/devdvi/H: Renamed to ...
7027         * font/devdvi/HR: This.
7028         * font/devdvi/Makefile.sub (DEVFILES): Updated.
7029         * font/devdvi/generate/Makefile (HBI): New rule.
7030         (FONTS): Updated.
7031         (R, I, B, BI, H): Renamed to ...
7032         (TR, TI, TB, TBI, HR): This, respectively.
7033         (srcdir): Fixed.
7034         * NEWS, src/devices/grodvi/grodvi.man: Updated.
7035         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
7036         Add `styles' and `family' keywords.
7037         * tmac/dvi.tmac: Alias `H' to `HR'.
7038         Add some fspecial requests for italic fonts.
7039         Add TR and TI as special.
7040         Add support for `_' with font CWI.
7042         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
7043         operator `:'.  Until now, the expression `0:1' would return 2
7044         instead of 1.
7046 2002-02-25  Werner LEMBERG  <wl@gnu.org>
7048         * man/groff_char.man: Added some missing PS glyph names (from the
7049         Adobe Glyph List).
7050         * font/devps/generate/textmap, font/devps/symbolmap: Add
7051         `arrowupdn'.
7053         * doc/groff.texinfo: Minor additions and fixes.
7054         * man/groff_diff.man: Remove documentation of fp request.  This
7055         is already covered in the original troff manual.
7056         Updated to be consistent with other doc files.
7057         * NEWS: Updated.
7059 2002-02-24  Werner LEMBERG  <wl@gnu.org>
7061         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
7062         TTYDEVDIRS.
7063         Define new variable OTHERDEVDIRS (containing `font/devlj4
7064         font/devlbp' if not EBCDIC).
7065         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
7066         (OTHERDEVDIRS): New variable.
7067         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
7068         * configure: Regenerated.
7070         * NEWS, src/devices/grotty/grotty.man: Updated.
7072 2002-02-23  Werner LEMBERG  <wl@gnu.org>
7074         * src/roff/troff/input.cc (do_overstrike, do_bracket,
7075         get_line_arg): Honour input level.
7077         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
7079         * font/*/*: Implement it in all font files.
7080         * font/devps/generate/textmap, font/devps/generate/symbolchars,
7081         * font/devps/symbolmap: Updated.
7082         * font/devlj4/generate/text.map: Updated.
7083         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
7084         * font/devdvi/generate/texmi.map: Updated.
7086         * font/devutf8/R.proto: Remove all `charXXX' entries.
7087         * font/devutf8/NOTES: Updated.
7089         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
7090         version 4.1.0.
7092         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
7094         * NEWS, man/groff_char.man: Updated.
7096 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
7098         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
7100 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7102         * src/roff/grog/grog.pl: Fix computation of $refer.
7104 2002-02-19  Werner LEMBERG  <wl@gnu.org>
7106         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
7107         `snprintf' and `vsnprintf'.
7109         * src/include/htmlindicate.h: Renamed to...
7110         * src/include/htmlhint.h: This.
7111         * src/include/Makefile.sub: Updated.
7112         * src/preproc/eqn/main.cc: Updated.
7114 2002-02-18  Werner LEMBERG  <wl@gnu.org>
7116         * man/roff.man, man/groff_out.man, man/groff.man,
7117         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
7118         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
7120         * win32-diffs: Updated.
7122 2002-02-17  Werner LEMBERG  <wl@gnu.org>
7124         * doc/Makefile (clean): Add *.eps.
7125         (MEMACROS): Removed.
7126         (TFLAG): New variable.
7127         (TROFF): Use it.
7128         Add -ww.
7129         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
7130         (.me.dit): Fixed.
7131         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
7133         * tmac/www.tmac: Use dummy diversion while resetting and disabling
7134         `.tl'.
7135         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
7136         unstripped.
7137         * src/roff/troff/troff.man: Fix order of parameter description.
7139         * NEWS: Updated.
7141 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
7143         Simplify image handling for grohtml.
7144         Fix <p> bug.
7146         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
7147         comment out.
7148         (html_text::dump_stack): Don't emit newline while debugging.
7149         (html_text::do_push) [DEBUGGING]: Print more info.
7150         (html_text::check_emit_text): Fix handling of <p>.
7151         * src/devices/grohtml/html.h: Updated.
7152         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
7153         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
7154         send its data to stderr also.
7155         Update all callers.
7156         (simple_output::space_or_newline) [DEBUGGING]: Removed.
7157         * src/devices/grohtml/post-html.cc (html_printer::do_links,
7158         html_printer::html_printer): Remove `DEBUGGING' conditionals.
7160         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
7161         Removed.
7162         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
7163         is_inline_image): Removed.
7164         (html_begin_suppress, html_end_suppress): Don't take a parameter.
7165         (graphic_start, graphic_end): Removed.
7166         * src/include/htmlindicate.h: Updated.
7167         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
7168         (macroset_template): New global variable.
7169         (makeFileName): Use `macroset_template'.
7170         (write_end_image): Don't take a parameter.
7171         Don't emit newline.
7172         (write_start_image: Don't emit newline.
7173         (char_buffer::write_upto_newline): Updated.
7174         (char_buffer::skip_to_newline): Renamed to ...
7175         (char_buffer::skip_until_newline): This.
7176         Fix code.
7177         (char_buffer::write_file_troff, char_buffer::write_file_html):
7178         Simplified.
7179         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
7180         (removeAllPages): Remove `DEBUGGING' conditionals.
7181         (addRegDef, dump_args): New functions.
7182         (char_buffer::do_html, char_buffer::do_image): Handle
7183         `www-image-template' command line variable.
7184         Add more debugging code.
7185         (addps4html): Removed.
7186         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
7188         * src/preproc/eqn/main.cc: Include `ctype.h'.
7189         (suppress_html): Removed.
7190         (do_file): Updated.
7191         (inline_equation): Use `html_begin_suppress' and
7192         `html_end_suppress'.
7193         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
7194         (troff_output::start_picture, troff_output::finish_picture):
7195         Updated.
7196         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
7197         (process_input_file): Updated.
7199         * src/roff/troff/div.cc (page_number): Set page number only if the
7200         `ps4html' register isn't defined.
7201         * src/roff/troff/input.cc (image_no): New external variable.
7202         (do_suppress): Use it.
7203         * src/roff/troff/node.h (suppress_node::image_id): New member.
7204         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
7205         (suppress_node::suppress_node): Initialize `image_id' member.
7206         (suppress_node::same): Handle `image_id' also.
7207         (suppress_node::copy): Updated.
7208         (last_image_id): New global variable.
7209         (suppress_node::tprint): Use it.
7211         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
7212         HTML-IMAGE-END.
7213         * tmac/pspic.mac (PSPIC): Fix html support.
7214         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
7215         * tmac/www.tmac (www-image-template): Set up.
7216         (HTMLINDEX): Renamed to...
7217         (HX): This.
7218         (BODYCOLOR): Renamed to...
7219         (BCL): This.
7220         (BACKGROUND): Renamed to...
7221         (BGIMG): This.
7222         (URL): Change order of parameters for consistency.
7223         (MAILTO): Renamed to...
7224         (MTO): This.
7225         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
7226         (IMG, PIMG, MPIMG): This.
7227         (HTML-H-BEGIN, HTML-H-END): Renamed to...
7228         (HnS, HnE): This.
7229         (LINKS): Renamed to...
7230         (LK): This.
7231         (LINE): Renamed to...
7232         (HR): This.
7233         (NO-AUTO-RULE): Renamed to...
7234         (NHR): This.
7235         (HTML-TL): Renamed to...
7236         (HTL): This.
7237         (UL-BEGIN, UL-END): Renamed to...
7238         (ULS, ULE): This.
7239         (DROPCAP): Renamed to...
7240         (DC): This.
7241         (TS, TE, EQ, EN): Provide default definitions.
7242         (www-make-unique-name): Updated.
7243         (HTML-IMAGE-INLINE): Fix typo.
7244         * tmac/groff_www.man: Updated.
7246         * doc/Makefile (homepage.html): Add option -r to grohtml.
7247         Use shortened image name.
7248         * doc/groff.texinfo: Updated info on grohtml strings and macros.
7249         * doc/homepage.ms: Updated and extended.
7251 2002-02-14  Werner LEMBERG  <wl@gnu.org>
7253         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
7255         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
7256         SGR_BACK_DEFAULT_COLOR): Replaced with ...
7257         (tty_printer::put_color): Use it.
7258         (ttr_printer::end_page): Simplify.
7260 2002-02-13  Werner LEMBERG  <wl@gnu.org>
7262         * tmac/groff_tmac.man: Moved to...
7263         * man/groff_tmac.man: This place.
7264         * tmac/Makefile.sub, man/Makefile.sub: Updated.
7266 2002-02-12  Werner LEMBERG  <wl@gnu.org>
7268         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
7269         $(COMPILE.c) to not include groff's assert.h.
7271         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
7272         variable.
7273         * NEWS, src/drivers/grotty/grotty.man: Document it.
7275 2002-02-11  Werner LEMBERG  <wl@gnu.org>
7277         * src/libs/snprintf/snprintf.c: Updated to latest version
7278         (2002-02-11).
7280         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
7281         test whether there is `.]' also.
7282         Don't check for spaces after `.['.
7283         * src/roff/grog/grog.sh: Do the same.
7285 2002-02-10  Werner LEMBERG  <wl@gnu.org>
7287         Illegal -> Invalid.
7289         * src/libs/libgroff/illegal.cc: Renamed to ...
7290         * src/libs/libgroff/invalid.cc: This.
7291         (illegal_char_table): Renamed to ...
7292         (invalid_char_table): This.
7293         * src/libs/libgroff/Makefile.sub: Updated.
7294         * win32-diffs: Updated.
7296         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
7297         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
7298         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
7299         font::load), src/preproc/eqn/main.cc (read_line, main),
7300         src/preproc/eqn/lex.cc (file_input::read_line),
7301         src/preproc/pic/lex.cc (file_input::read_line,
7302         simple_file_input::get, simple_file_input::peek),
7303         src/preproc/pic/main.cc (top_input::get, top_input::peek),
7304         src/preproc/pic/pic.man, src/preproc/refer/main.cc
7305         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
7306         do_bib), src/preproc/tbl/main.cc (table_input::get),
7307         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
7308         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
7309         do_zero_width, read_request, encode_char, ps_get_line,
7310         transparent_file, get_char_for_escape_name, transparent_translate,
7311         asciify, input_char_description, read_string, set_string),
7312         src/roff/troff/env.cc (environment::add_html_tag),
7313         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
7315         * src/include/lib.h: Updated.
7317         * src/preproc/eqn/eqn.cc: Removed.
7319         * NEWS: Updated.
7321         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
7323 2002-02-09  Werner LEMBERG  <wl@gnu.org>
7325         * doc/gnu.xpm: New image.
7326         * doc/Makefile (DOCS): Add homepage.ps.
7327         Add rules for converting xpm->png and xpm->eps.
7328         Use `gnu.{xpm,eps}' as image names.
7329         * doc/homepage.ms: Updated.
7331 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
7333         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
7334         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
7335         Remove calls to `B1' and `B2'
7336         (PNG-IMAGE): New macro for inclusion of images in PNG format.
7337         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
7338         auxiliary variables for MARGIN-PNG-IMAGE.
7339         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
7340         auxiliary macros for MARGIN-PNG-IMAGE.
7341         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
7342         the margin.
7343         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
7344         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
7345         (DROPCAP): New macro to produce dropcap characters.
7346         (www-do-image): Renamed back to...
7347         (HTML-DO-IMAGE): This.
7348         Updated all callers.
7350         * doc/Makefile (gnubw.eps): Updated.
7351         * doc/homepage.ms: Updated.
7353 2002-02-08  Werner LEMBERG  <wl@gnu.org>
7355         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7356         Added `linethick' to table in section `Style Variables'.
7358 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
7360         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7362 2002-02-07  Werner LEMBERG  <wl@gnu.org>
7364         Adding options -C (compatibility mode) and -c (grotty's old output
7365         scheme) to nroff.
7367         * src/roff/nroff/nroff.sh: Implement it.
7368         Remove `-Wall'.
7369         * NEWS, src/roff/nroff/nroff.man: Updated.
7371         * PROBLEMS: Document bison 1.32 bug.
7373         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7375         * src/roff/troff/node.cc (make_tfont): Define it earlier.
7376         * src/roff/troff/div.h: Add prototype for `end_diversions'.
7377         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7378         * src/roff/troff/env.h: Add prototype for `title'.
7380         Adding EBCDIC support to grotty.
7382         * src/devices/grotty/tty.cc (CSI): New macro.
7383         (SGR_*, tty_printer::put_color): Use it.
7385 2002-02-06  Werner LEMBERG  <wl@gnu.org>
7387         Implementing color support in grotty.  The new switch -c activates
7388         the old drawing scheme, disabling color at the same time.  The new
7389         switch `-i' selects italic instead of underlining (SGR only).
7391         * src/devices/grotty/tty.cc (putstring): New define instead of
7392         `fputs'.  Updated all callers.
7393         (old_drawing_scheme): New global variable.
7394         (COLOR_CHANGE): New enum value.
7395         (SGR_*): New defines containing color handling escape sequences.
7396         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7397         (glyph): New members `back_color_idx' and `fore_color_idx'.
7398         (glyph::order): Add COLOR_CHANGE.
7399         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7400         `is_underline', `is_bold', `cu_flag', `tty_colors'.
7401         New methods `make_underline', `make_bold', `color_to_idx',
7402         `change_color', `put_color'.
7403         (cu_flag): Moved into `tty_printer' class.
7404         (tty_printer::tty_printer): Initialize colors.
7405         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7406         tty_printer::draw, tty_printer::end_page): Handle colors also.
7407         (main): Add options `-c' and `-i'.
7408         (usage): Updated.
7409         * NEWS, src/devices/grotty/grotty.man: Updated.
7411         * src/include/errarg.h (errarg): Add support for `unsigned int'.
7412         * src/libs/libgroff/errarg.c: Implement it.
7414         * src/include/printer.h (printer): Add `change_color' method
7415         (currently used by grotty only).
7416         * src/libs/libdriver/printer.cc: Implement it.
7417         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7418         call to `pr->change_color'.
7420         * src/roff/troff/node.cc (troff_output_file::fill_color,
7421         troff_output_file::glyph_color): Call `do_motion'.
7423         * tmac/tty.tmac: Add color definitions.
7425         * src/roff/groff/groff.man: Minor fixes.
7427 2002-02-05  Bernd Warken  <bwarken@mayn.de>
7429         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7430         it.  This is a preparation for future changes.
7432 2002-02-05  Werner LEMBERG  <wl@gnu.org>
7434         * src/roff/troff/input.cc (process_input_stack): Fix the case
7435         where leading spaces are followed by \f or \s; previously, an
7436         incorrect space width has been used.
7438         * doc/roff.man (quoted_char): Fix argument.
7439         (comment): Define string.
7441 2002-02-04  Larry Kollar  <kollar@alltel.net>
7443         * doc/groff.texinfo: More fixes.
7445 2002-02-04  Werner LEMBERG  <wl@gnu.org>
7447         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7448         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7449         `restore_compatibility' before `output_string' -- the LINE_STRING
7450         register now already contains proper switches from and to
7451         compatibility mode.
7453         * man/groff_char.man: Add Euro symbol.
7454         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7455         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7456         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7457         Other minor fixes.
7459         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7460         texinfo->pdf.
7461         (.texinfo.html): Add support for texinfo->html.
7463 2002-02-03  Werner LEMBERG  <wl@gnu.org>
7465         Added three new requests `ds1', `as1', and `ami'.  The former two
7466         are equivalent to `ds' and `as' with the difference that
7467         compatibility mode is saved on entry, switched off during string
7468         expansion, and restored on exit.  The latter is the pendant to `dei'
7469         for `am'.
7471         (do_define_string): Use `define_mode' and `calling mode'.
7472         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7473         end of string, respectively.
7474         (define_string, append_string): Use `calling_mode'.
7475         (define_nocomp_string, append_nocomp_string,
7476         define_string_indirect): New functions.
7477         (init_input_requests): Updated.
7478         * NEWS, man/groff_diff.man, man/groff.man: Document it.
7480         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7481         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
7482         mm macro package accesses this string register directly.
7483         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7485         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
7486         compatibility mode.
7488 2002-02-02  Larry Kollar  <kollar@alltel.net>
7490         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7492 2002-01-31  Werner LEMBERG  <wl@gnu.org>
7494         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7496 2002-01-31  Bernd Warken  <bwarken@mayn.de>
7498         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7499         * man/groff_out.man: Revised and updated.
7501 2002-01-30  Bernd Warken  <bwarken@mayn.de>
7503         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7504         out the unused `{' and `}' commands.  Undefined by default.
7505         (IntArray): Make `data' private.
7506         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7507         new methods instead.
7508         (skip_line_D, skip_to_end_of_line): New functions.
7509         (get_D_fixed_args): Use `skip_line_D'.
7510         Changed to handle dummy odd arguments by ...
7511         (get_D_fixed_args_odd_dummy): This new function.
7512         (get_D_variable_args): Split some code into ...
7513         (get_possibly_integer_args): This new function.
7514         (send_draw): Use more `const'.
7515         (delete_current_env): New function.
7516         (position_to_end_of_args): Use `size_t'.
7517         Updated.
7518         (send_draw): Updated.
7519         (parse_D_command): Handle `c', `C', and `t' better.
7520         Updated.
7521         (do_file): Updated.
7523 2002-01-29  Werner LEMBERG  <wl@gnu.org>
7525         * NEWS: Revised.
7526         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7527         @Def...ListEnd which replaces @Def...x.  This is necessary to get
7528         proper HTML output -- see the comment in the file for more
7529         information.
7530         Updated all calls.
7532 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
7534         Fixes to make color changes of 2002-01-21 work with grohtml.
7536         * src/devices/grohtml/post-html.cc (style): Updated.
7537         (html_printer): Remove unused methods.
7538         (html_printer::do_font, html_printer::draw, html_printer::set_char,
7539         html_printer::special): Updated.
7540         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7541         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7542         Added some debugging code.
7543         (html_text::start_tag): Updated.
7544         (html_text::do_push): New method.
7545         (html_text::push_para): Call it.
7546         Add method for handling color.
7547         (html_text::do_color): Updated.
7548         (html_text::shutdown): Handle color.
7549         * src/devices/grohtml/html-text.h (tag_definition): New member
7550         `col'.
7551         Updated.
7553 2002-01-28  Werner LEMBERG  <wl@gnu.org>
7555         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7557 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
7559         Add two switches -a and -g to control the antialiasing bits for
7560         text and graphics, respectively.
7562         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7563         `-g'.
7564         * src/devices/grohtml/grohtml.man: Document them.
7565         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7566         New macros.
7567         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7568         (setupAntiAlias): New function.
7569         (createAllPages): Updated.
7570         (scanArguments): Handle `-a' and `-g'.
7571         (main): Call `setupAntiAlias'.
7572         * NEWS: Updated.
7574 2002-01-27  Werner LEMBERG  <wl@gnu.org>
7576         * doc/groff.texinfo (Def*): Call index function after deffn.
7578         * tmac/html.tmac: Call `nroff' request.
7580 2002-01-26  Larry Kollar  <kollar@alltel.net>
7582         * tmac/groff_ms.man: Add some omissions.
7584 2002-01-25  Larry Kollar  <kollar@alltel.net>
7586         * tmac/groff_ms.man: Typographical improvements.
7588 2002-01-25  Werner LEMBERG  <wl@gnu.org>
7590         * doc/groff.texinfo: Updated version and copyright.
7591         * src/devices/grops/grops.man: Updated.
7593         * tmac/groff_tmac.man: Fix `ig' macro.
7595         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7596         nroff mode.
7597         Use `.ne' unconditionally everywhere.
7598         (TS): Only insert some vertical space.  Doing a page break is no
7599         longer necessary due to the redefinition of the `ne' request.
7601         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7602         warning for unknown subcommands but parse and pass them to the
7603         device driver.
7605 2002-01-24  Werner LEMBERG  <wl@gnu.org>
7607         * tmac/groff_www.man, NEWS: Fix typos.
7609 2002-01-21  Werner LEMBERG  <wl@gnu.org>
7611         Complete revision of color support:
7613           Adapt programs to the new libdriver/input.cc.
7615           Color spaces are no longer converted to RGB but transferred as-is
7616           in the troff intermediate output format.
7618           Handle default color gracefully.  troff now supports a `default'
7619           color (which can't be changed).
7621           grops will now use the proper color space functions if available.
7623           Update pic.
7625         Note that currently grohtml doesn't handle colors properly.  This
7626         has to be fixed.
7628         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7629         (ui_to_a): New function.
7630         * src/include/lib.h: Updated.
7632         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7633         (color): Simplified; removed all `double' members and methods.
7634         A new array `components' now holds the color parameters.
7635         (color::is_default, color::get_components): New methods.
7636         (color::operator==, color:operator!=): New.
7637         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7638         to make access to the `components' array more comprehensible.
7639         * src/libs/libgroff/color.cc: Implement new color support.
7640         (atoh): Small fixes.
7641         (color::read_encoding): Simplified for new troff intermediate color
7642         output format.
7643         (default_color): New global variable.
7645         * src/roff/troff/input.cc (default_symbol): New global variable.
7646         (lookup_color): Use it.
7647         (default_black): Removed.
7648         (do_glyph_color, do_fill_color): Simplified.
7649         (define_color): Handle default color.
7650         Improve warnings.
7651         (do_if_request): Handle default color.
7652         * src/roff/troff/env.cc (environment::environment): Initialize
7653         colors with `default_color'.
7654         * src/roff/troff/node.cc (troff_output_file::put): Add method
7655         for `unsigned int'.
7656         (troff_output_file::hex): Removed.
7657         (troff_output_file::fill_color, troff_output_file::glyph_color):
7658         Updated to include/color.h and libdriver/input.cc.
7660         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7661         fill color properly (identically to the outline color).  \D'f...'
7662         doesn't work any more.
7663         All function calls to it updated.
7665         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7666         Updated.
7667         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7668         Updated.
7670         * src/devices/grops/ps.cc (ps_output::put_color): New method.
7671         (ps_printer::sbuf_color): Make a real member instead of pointer.
7672         (ps_printer::fill_color, ps_printer::output_color): Removed.
7673         (ps_printer::ps_printer): Updated.
7674         (ps_printer::set_char): Ditto.
7675         (ps_printer::set_color): Use various color schemes.
7676         Use `put_color' method.
7677         (ps_printer::flush_sbuf): Don't set color.
7678         (ps_printer::fill_path): Take `environment' as parameter.
7679         Simplify color handling.
7680         (ps_printer::set_line_thickness): Renamed to ...
7681         (ps_printer::set_line_thickness_and_color): This (and updated).
7682         (ps_printer::set_color): Change second parameter from `complete'
7683         to `fill' which better describes what it does.
7684         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7685         and text in the right order.
7686         Updated.
7687         Remove branches for `f' and `F'; this is handled by
7688         libdriver/input.cc.
7689         * src/devices/grops/ps.h: Updated.
7690         * font/devps/prologue (FL): Redefined.
7691         ({F,C}r,k,g: New color functions (with and without filling).
7693         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7694         * man/groff_diff.man, man/groff.man, man/groff_out.man,
7695         doc/groff.texinfo, NEWS: Updated.
7697 2002-01-20  Bernd Warken  <bwarken@mayn.de>
7699         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
7700         in this file for what has been changed.
7702 2002-01-19  Werner LEMBERG  <wl@gnu.org>
7704         * test-groff: Fix GROFF_FONT_PATH.
7705         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7706         is read before .TH or .Dd is parsed.
7708 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
7710         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7711         quadrant boundaries.
7713 2002-01-18  Werner LEMBERG  <wl@gnu.org>
7715         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
7716         applied last patch.
7718 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
7720         * tmac/doc.common: Initialize %I register for the %I macro to
7721         avoid (harmless) warning.
7722         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7723         when in the SYNOPSIS section.
7725 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
7727         * src/preproc/pic/lex.cc (get_token): Fix typo.
7729 2002-01-17  Werner LEMBERG  <wl@gnu.org>
7731         * devices/grops/ps.cc: Fix incorrectly applied last patch.
7733 2002-01-17  Larry Kollar  <kollar@alltel.net>
7735         * tmac/groff_ms.man: Completely rewritten.
7737 2002-01-16  Werner LEMBERG  <wl@gnu.org>
7739         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7741 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7743         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7744         fill colors.
7745         (ps_printer::draw): Ditto.
7747 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
7749         * tmac/groff_mdoc.man: Minor fixes.
7751 2002-01-13  Werner LEMBERG  <wl@gnu.org>
7753         * man/groff_out.man: Some fixes.
7755 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
7757         * doc/pic.ms: Fix typos.
7759 2002-01-12  Werner LEMBERG  <wl@gnu.org>
7761         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7763 2002-01-10  Werner LEMBERG  <wl@gnu.org>
7765         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7766         symbols.
7767         * NEWS: Updated.
7769 2002-01-09  Bernd Warken  <bwarken@mayn.de>
7771         * man/groff_out.man: Revised.
7772         * man/roff.man: Minor fixes.
7773         * src/roff/troff/troff.man: Some reordering.
7775 2002-01-09  Werner LEMBERG  <wl@gnu.org>
7777         * tmac/an-old.tmac: Add dummy macros for equation support.
7779 2002-01-07  Werner LEMBERG  <wl@gnu.org>
7781         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7783         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
7784         man pages.
7785         * tmac/groff_man.man: Small improvements.
7787 2002-01-07  Bernd Warken  <bwarken@mayn.de>
7789         * man/groff_diff.man: Revised.
7791 2002-01-06  Werner LEMBERG  <wl@gnu.org>
7793         * tmac/www.tmac: Remove extraneous backslash.
7795 2002-01-06  Bernd Warken  <bwarken@mayn.de>
7797         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7799 2002-01-05  Werner LEMBERG  <wl@gnu.org>
7801         Integrated groffer, contributed by Bernd Warken.
7803         * contrib/groffer/*: New.       
7804         * Makefile.in, NEWS: Updated.
7806 2002-01-04  Werner LEMBERG  <wl@gnu.org>
7808         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7809         registers defined in macro packages.
7810         Revising the ms part.
7812 2002-01-04  Larry Kollar  <kollar@alltel.net>
7814         * doc/groff.texinfo: Add documentation for ms macros.
7816 2002-01-02  Werner LEMBERG  <wl@gnu.org>
7818         First step in adding PS support for the Euro symbol.  `eu' is the
7819         official Euro logo, `Eu' is a font-specific glyph variant.
7821         * font/devps/text.enc: Add `Euro' at position 9.
7822         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7823         * font/devps/symbolmap: Regenerated.
7825         * NEWS: Updated.
7827 2002-01-02  Bernd Warken  <bwarken@mayn.de>
7829         * man/roff.man: Revised.
7831 2002-01-01  Bernd Warken  <bwarken@mayn.de>
7833         * src/roff/groff/groff.man: Completely rewritten.
7835 2001-12-31  Werner LEMBERG  <wl@gnu.org>
7837         * doc/Makefile: Updated.
7839 2001-12-30  Werner LEMBERG  <wl@gnu.org>
7841         * tmac/www.tmac: Make all names of internal macros/registers/strings
7842         lowercase, and prepend `www-'.
7843         Other minor changes.
7844         * src/roff/troff/troff.man: Add preprocessor string at BOF.
7846 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
7848         Implement option `-b' in grohtml to set the HTML background colour.
7850         * src/devices/grohtml/post-html.cc (default_background): New global
7851         variable.
7852         (html_printer::html_printer): Initialize `background' to
7853         `default_background'.
7854         (main): Implement option `-b'.
7855         (usage): Updated.
7856         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7857         of `-b' option.
7858         * src/devices/grohtml/grohtml.man: Updated.
7859         * doc/Makefile (.ms.html): Use `-b'.
7860         * tmac/html.tmac: Don't set background color.
7862         Add new grohtml tag `.html-tl'.
7864         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7865         member variable.
7866         (title_desc::title_desc): Updated.
7867         (html_printer::troff_tag): Handle `.html-tl'.
7868         (html_printer::write_title): Use `with_h1'.
7869         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7870         (HTML-TL): New macro.
7872         Add support for unordered lists in HTML.
7874         * tmac/www.tmac (www-level): New auxiliary register.
7875         (www-level1, www-level2, www-level3): New auxiliary strings.
7876         (www-push-level, www-pop-level): New auxiliary macros
7877         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7879         Miscellaneous.
7881         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7882         (DEFAULT_VERTICAL_OFFSET): Removed.
7883         (IMAGE_BOARDER_PIXELS): Set to 0.
7884         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7885         (vertical_offset): Initialize with 0.
7886         (gsPaper): New global variable.
7887         (get_resolution): Scan for and return unsigned int.
7888         (get_papersize): New function to get paper length from devps/DESC.
7889         (determine_vertical_offset): New function.
7890         (createAllPages): Produce gray-level images and use proper page
7891         length.
7892         (createImage): Use `-quiet' option of pnmcrop.
7893         (addZ): Fix passing of `-Z'.
7894         (scanArguments): Fix handling of `-o'.
7895         (main): Call `determine_vertical_offset'.
7896         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7897         code for `l'.
7899         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7900         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7901         glyph descenders properly.
7903         * doc/homepage.ms: Include `gnubw.eps'.
7904         * doc/Makefile (gnubw.eps): New rule.
7905         (homepage.html): Depend on `gnubw.eps'.
7907 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7909         * src/roff/troff/input.cc (default_black): Fix return value.
7911 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7913         * tmac/doc-common (Dt): Change output of architecture strings.
7914         Do some syntax cleanup.
7915         * tmac/groff_mdoc.man: Updated.
7917 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7919         Adding an `itc' request (input line trap accepting \c).
7921         * src/roff/troff/env.h (environment): New member
7922         `continued_input_trap'.
7923         Make `do_input_trap' a friend function instead of `input_trap'.
7924         * src/roff/troff/env.cc (environment::environment,
7925         environment::copy): Updated.
7926         (environment::newline): Implement it.
7927         (do_input_trap): New function.
7928         (input_trap): Call `do_input_trap'.
7929         (input_trap_continued): New function.
7930         (init_env_requests): Updated.
7931         * src/roff/troff/TODO: Updated.
7933         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7934         `.it'.
7936         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7938 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7940         * tmac/doc-common, tmac/doc-syms: Small updates.
7942 2001-12-22  Colin Watson  <cjwatson@debian.org>
7944         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7946 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7948         * MANIFEST: New file.
7950 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7952         * src/preproc/grn/grn.man: Updated.
7954 2001-12-22  Solar Designer  <solar@openwall.com>
7956         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7957         (DBRead): Use it.
7959 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7961         Implement a fallback character request `.fchar'.
7963         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7964         (is_fallback): New inline function.
7965         * src/roff/troff/input.cc (do_define_character): New function.
7966         (define_character): Call `do_define_character'.
7967         (define_fallback_character): New function.
7968         (init_input_requests): Add `fchar'.
7969         (charinfo::charinfo): Updated.
7970         (charinfo::set_macro): New argument to set `fallback' flag.
7971         * src/roff/troff/node.cc (make_glyph_node, make_node,
7972         node::add_char): Check `fallback' flag.
7973         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7975 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7977         * groff.texinfo: Document exact search algorithm for glyphs.
7979 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7981         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7982         the left side of $(MANPAGES) rule to make it always non-empty.
7984 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7986         * src/roff/troff/input.cc (default_black): Define default color
7987         `black' if not yet defined.
7989 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7991         Implement new string-valued register `.fn' to return the current
7992         real (internal) font name.
7994         * env.cc (environment::get_font_name_string): New function.
7995         (init_env_requests): Add `.fn' register.
7996         * env.h (environment): Updated.
7997         * node.cc (font_info): Make `get_font_name' a friend.
7998         (get_font_name): New function.
7999         * node.h: Updated.
8001         * man/groff_diff.man, man/groff.man, NEWS: Updated.
8003 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8005         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
8007 2001-12-12  Werner LEMBERG  <wl@gnu.org>
8009         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
8011 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
8013         * man/groff_diff.man: Adding documentation for \O.
8015 2001-12-10  Werner LEMBERG  <wl@gnu.org>
8017         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
8018         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
8020 2001-12-09  Werner LEMBERG  <wl@gnu.org>
8022         * man/roff.man: Revised.
8023         * src/roff/groff/groff.man: Replace man page references with a
8024         pointer to roff.man.
8026 2001-12-09  Bernd Warken  <bwarken@mayn.de>
8028         * man/roff.man: Completely rewritten.
8030 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8032         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
8034 2001-12-05  Werner LEMBERG  <wl@gnu.org>
8036         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
8037         longer used.
8038         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
8039         order of initializers.
8040         * NEWS: Updated.
8042 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
8044         * doc/groff.texinfo: Fix documentation of \O.
8046         * src/devices/grohtml/html-text.cc (html_text::do_indent,
8047         html_text::do_table, html_text::do_emittext, html_text::do_para):
8048         Use `const' for first argument.
8049         (html_text::do_table): Use cast.
8050         * src/devices/grohtml/html-text.h: Updated.
8051         * src/devices/grohtml/output.cc (simple_output::put_string): Add
8052         method for `const string &s'.
8053         * src/devices/grohtml/html.h: Updated.
8054         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
8055         (ANCHOR_TEMPLATE): Modified.
8056         (manufacture_headings): New global variable to handle `-h' option.
8057         (is_subsection): Removed.
8058         (char_buffer::add_string): Add `const' to first argument.
8059         Protect against invalid string argument.
8060         Add method for `const string &s'.
8061         (text_glob): Completely redesigned.
8062         (page): Use `const' for strings and remove string length variable.
8063         (page::add_html): Removed.
8064         (page::add_end_encode): New member function.
8065         (to_unicode): Moved upwards.
8066         (title_desc, header_desc): Updated.
8067         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
8068         definition.
8069         (html_printer::is_bold, html_printer::make_bold): New member
8070         functions.
8071         (html_printer::end_of_line): Updated.
8072         (generate_img_src, html_printer::do_auto_image,
8073         html_printer::do_title, html_printer::write_header,
8074         html_printer::determine_header_level, html_printer::do_heading,
8075         html_printer::do_linelength, html_printer::do_pageoffset,
8076         html_printer::do_indentation, html_printer::do_tempindent,
8077         html_printer::do_indentedparagraph, html_printer::do_break,
8078         html_printer::flush_sbuf, get_html_translation,
8079         html_printer::begin_page, html_printer::special): Rewritten to get
8080         rid of static string length limit.
8081         (html_printer::troff_tag): Added `.no-auto-rule'.
8082         (html_printer::flush_globs): Small fix.
8083         (html_printer::determine_space): Don't compute `space_width'.
8084         (html_printer::translate_to_html): Renamed to ...
8085         (html_printer::emit_html): This (with updates).
8086         (html_printer::write_header): Implement `-h' option.
8087         (html_printer::draw): Remove commented-out code.  Handle `F'
8088         command.
8089         (html_printer::add_char_to_sbuf): Removed.
8090         (html_printer::add_to_sbuf): Rewritten.
8091         (html_printer::sbuf_continuation): Fixed.
8092         (html_printer::seen_backwards_escape, reverse,
8093         html_printer::remove_last_char_from_sbuf): Removed.
8094         (char_translate_to_html, str_translate_to_html): Removed.
8095         (html_printer::overstrike): New function member.
8096         (html_printer::set_char): Use it.
8097         (html_printer::do_body): New function member.
8098         (html_printer::~html_printer): Use it.
8099         (main): Handle `-h' option.
8100         (usage): Updated.
8101         * src/devices/grohtml/grohtml.man: Document -h switch.
8103         * src/preproc/html/pre-html.cc: Include searchpath.h
8104         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
8105         (get_resolution): New function.
8106         (checkImageDir): Use `0777' permissions in mkdir()
8107         (write_start_image): Rewritten to use `\O[5...]'.
8108         (createImage, generateImages): Updated.
8109         (main): Handle `F' and `h' options.
8110         Use `get_resolution'.
8112         * src/roff/troff/input.cc (begin, end, image): Removed.
8113         (do_suppress): Take parameter.
8114         Handle modified syntax of `\O'.
8115         (token::next): Updated.
8116         (init_markup_requests): Removed.
8117         (main): Updated.
8119         * src/roff/troff/div.h: Add declaration for begin_page().
8121         * tmac/color-html.tmac: Removed.  Contents moved to...
8122         * tmac/html.tmac: Here.  Set background color.
8123         * tmac/color.tmac: Removed.  Contents moved to...
8124         * tmac/ps.tmac: Here.
8125         * tmac/www.tmac: Remove the title command when generating images
8126         for html.
8127         (NO_AUTO_RULE): New macro.
8128         (HTML_DO_IMAGE): Use revised `\O' escapes.
8129         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
8131 2001-12-02  Werner LEMBERG  <wl@gnu.org>
8133         * tmac/groff_mdoc.man: Fix typo.
8135 2001-12-01  Colin Watson  <cjwatson@debian.org>
8137         * man/roff.man: Fix typo.
8139 2001-11-29  Werner LEMBERG  <wl@gnu.org>
8141         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
8142         stdlib.h.
8144         * src/roff/troff/input.cc (read_draw_node): Emit error message if
8145         more than one argument to \D'f ...'.
8147         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
8149 2001-11-28  Werner LEMBERG  <wl@gnu.org>
8151         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
8152         loaded only once.
8154         * tmac/groff_man.man: Minor cosmetic fix.
8156 2001-11-27  Werner LEMBERG  <wl@gnu.org>
8158         * src/roff/groff/groff.man, tmac/groff_tmac.man,
8159         tmac/groff_www.man: s/mwww/www/.
8161 2001-11-26  Werner LEMBERG  <wl@gnu.org>
8163         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
8164         * configure: Regenerated.
8165         * win32-diffs: Updated.
8167         * tmac/groff_mwww.tmac: Renamed to ...
8168         * tmac/groff_www.tmac: This.
8169         * tmac/mwww.tmac: Removed.
8170         * NEWS, tmac/Makefile.sub: Updated.
8172 2001-11-21  Werner LEMBERG  <wl@gnu.org>
8174         * doc/groff.texinfo: Improve documentation of the `\v' escape.
8175         Fix explanation of `\D' and `rt'.
8177 2001-11-20  Werner LEMBERG  <wl@gnu.org>
8179         * tmac/an-old.tmac (an-header): Set header length equal to page
8180         width.
8181         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
8182         minor fixes.
8183         * NEWS: Small fix.
8185 2001-11-19  Werner LEMBERG  <wl@gnu.org>
8187         * NEWS, man/Makefile.sub: Updated.
8189 2001-11-19  Bernd Warken  <bwarken@mayn.de>
8191         * man/ditroff.man: New file.
8193 2001-11-17  Werner LEMBERG  <wl@gnu.org>
8195         * man/groff_differences.man: Renamed to ...
8196         * man/groff_diff.man: This.  Updated.
8197         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
8199         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
8200         * src/preproc/html/pushback.cc: This.  Updated.
8201         * src/preproc/html/pushbackbuffer.h: Renamed to ...
8202         * src/preproc/html/pushback.h: This.
8203         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
8204         Updated.
8206         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
8207         * src/libs/libgroff/htmlhint.cc: This.
8208         * src/libs/libgroff/Makefile.sub: Updated.
8210         * tmac/an-old.tmac (an-end): Fix page length.
8212 2001-11-16  Werner LEMBERG  <wl@gnu.org>
8214         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
8215         * man/Makefile.sub: Include groff_differences.man.
8216         * VERSION: Set to 1.18.
8217         * REVISION: Set to 0.
8219 2001-11-16  Bernd Warken  <bwarken@mayn.de>
8221         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
8222         the second dot (or ending macro name) to end a macro.
8223         * doc/groff.texinfo: Doc fix.
8225 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
8227         * tmac/doc-common (doc-header): Handle very long document titles
8228         better.
8230 2001-11-16  Werner LEMBERG  <wl@gnu.org>
8232         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
8234 2001-11-15  Werner LEMBERG  <wl@gnu.org>
8236         * src/roff/troff/troff.man: Revised and split into troff.man and...
8237         * man/groff_differences.man: New file.
8238         * NEWS: Updated.
8240 2001-11-13  Werner LEMBERG  <wl@gnu.org>
8242         * tmac/an-old.tmac (TS, TE): New macros for table support.
8244 2001-11-12  Werner LEMBERG  <wl@gnu.org>
8246         * src/include/lib.h: Provide a fix for emx to not include
8247         groff-getopt.h.
8249 2001-10-27  Werner LEMBERG  <wl@gnu.org>
8251         * src/roff/troff/input.cc (substring_macro): Fix computation of
8252         boundary values.
8254 2001-10-20  Werner LEMBERG  <wl@gnu.org>
8256         Undo change from 2001-08-28.
8258         * src/roff/troff/input.cc (have_input): New global variable.
8259         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
8260         in compatibility mode.
8261         (process_input_stack): Use it.
8263 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
8265         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
8266         being handled as end-of-sentence characters,
8268 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
8270         * src/roff/troff/input.cc (file_iterator): New members
8271         `suppress_newline_flag' and `seen_escape'.
8272         (file_iterator::next_file): Updated.
8273         (file_iterator::fill): Use it.
8274         (string_iterator): New member `suppress_newline_flag'.
8275         (string_iterator::fill): Set it.
8276         (get_color_element): Use MAX_COLOR_VAL.
8277         * src/roff/troff/env.cc (environment): Remove `need_eol'.
8278         (no_fill): Don't set `env->ignore_next_eol'.
8279         (environment::newline): Handle `eol' tag properly.
8280         Emit `eol.ce'.
8281         (environment::add_html_tag): Set `env->ignore_next_eol'.
8282         Don't handle `.ce'.
8283         * src/roff/troff/env.h (environment): Updated.
8285         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
8286         member function.
8287         (html_printer::outstanding_eol): New member function.
8288         (html_printer::do_title): Use new functions.
8289         (html_printer::troff_tag): Test `id_eol_ce'.
8291 2001-10-10  Werner LEMBERG  <wl@gnu.org>
8293         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
8294         files work with -C also.
8296 2001-10-05  Werner LEMBERG  <wl@gnu.org>
8298         * doc/pic.ms: Minor fix.
8299         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
8300         as a valid command line switch.
8301         * src/devices/grohtml/post-html.cc (main): Ditto.
8302         (usage): Updated.
8303         * src/devices/grohtml/grohtml.man: Updated.
8304         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
8306 2001-10-04  Werner LEMBERG  <wl@gnu.org>
8308         Implementing color support in troff, pic, grops, and grohtml.  These
8309         changes are based on a major patch provided by Gaius Mulley
8310         <gaius@glam.ac.uk>.
8312         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
8313         definitions with both hex values and fractions.
8315         New escapes: \m and \M for drawing and background color,
8316         respectively.  This corresponds to the troff output commands `m'
8317         and `DF'.
8319         groff and troff accept command line switch `-c' to disable color
8320         output (which is automatically disabled in compatibility mode).
8322         New scaling indicator `f' for fractions (1f = 65536u).
8324         New conditional operator `m' to test for defined colors with `if'
8325         and `ie'.
8327         New keywords `color' (or `colour', `colored', `coloured'), `outline'
8328         (or `outlined'), and `shaded' added to pic.
8330         * src/include/color.h: New file.
8331         * src/include/driver.h: Include it.
8332         * src/include/printer.h: Include color.h.
8333         (environment): New members `col' and `fill'.
8334         (printer): Remove `adjust_arc_center' member function.
8335         * src/include/Makefile.sub: Updated.
8337         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
8338         `env.fill'.
8339         Handle `m' and `DF' troff commands.
8340         * src/libs/libgroff/color.cc: New file.
8341         * src/libs/libgroff/Makefile.sub: Updated.
8343         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
8344         (stop): Removed.
8345         (createImage): Fix computation of `y2'.
8346         Use `pnmcrop' also.
8347         (buffer::write_file_html): Remove calls to `stop'.
8349         * src/preproc/pic/common.h (common_output): New abstract function
8350         members `set_color', `reset_color', `get_last_filled', and
8351         `get_outline_color'.
8352         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8353         (object_spec): Add members `shaded' and `outlined'.
8354         * src/preproc/pic/output.h (output): `command' is now abstract.
8355         New function members `set_color', `reset_color', `get_last_filled',
8356         and `get_outline_color'.
8357         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8358         `outline[d]', and `shaded'.
8359         * src/preproc/pic/object.cc (output::command): Removed.
8360         (output::set_location): Moved to output.h.
8361         (graphic_object): Add protected members `outline_color' and
8362         `color_fill'.
8363         Add member functions `set_outline_color', `get_outline_color', and
8364         `set_fill_color'.
8365         (closed_object): Add member function `set_fill_color'.
8366         Add member `color_fill'.
8367         (graphic_object::print_text): Use `out->set_color' and
8368         `out->reset_color'.
8369         (box_object::print, ellipse_object::print, circle_object::print,
8370         line_object::print, spline_object::print, arc_object::print): Ditto.
8371         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8372         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8373         `SHADED', making them `%left'.
8374         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8375         * src/preproc/pic/tex.cc (tex_output): New dummy function members
8376         `set_color', `reset_color', `get_last_filled', and
8377         `get_outline_color'.
8378         * src/preproc/pic/troff.cc (simple_output): New abstract function
8379         members `set_color', `reset_color', and `get_last_filled'.
8380         (simple_output::polygon, simple_output::circle,
8381         simple_output::ellipse): Use `get_last_filled'.
8382         (troff_output): New members `last_filled' and `last_outlined'.
8383         New function members `set_color', `reset_color', `get_last_filled',
8384         and `get_outline_color'.
8385         (troff_output::finish_picture): Use `reset_color'.
8386         (troff_output::set_fill): Test `last_filled'.
8387         * src/preproc/pic/pic.man: Updated.
8389         * src/roff/groff/groff.cc (main): Implement `-c' option.
8390         (synopsis, help): Updated.
8391         src/roff/groff/groff.man: Updated.
8393         * src/roff/troff/troff.h: Include color.h.
8394         (warning_type): Add WARN_COLOR.
8395         * src/roff/troff/env.h (environment): New members
8396         `{cur,prev}_{glyph,fill}_color'.
8397         New member functions `get_{prev_,}{glyph,fill}_color'.
8398         * src/roff/troff/env.cc: Initialize and implement them.
8399         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8400         Replace `NULL' with `0' everywhere for consistency.
8401         (lookup_color, default_black, do_glyph_color, do_fill_color,
8402         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8403         define_color): New functions.
8404         (token::next): Implement \M and \m escapes.
8405         (do_if_request): Implement `m' operator.
8406         (usage): Updated.
8407         (main): Implement `-c' option.
8408         (init_markup_requests): Add `defcolor' request.
8409         (warning_table): Add `color' warning.
8410         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8411         classes.
8412         * src/roff/troff/node.cc (troff_output_file): New members
8413         `current_{page,glyph}color'.  New member functions `put_hex',
8414         `glyph_color', and `fill_color'.
8415         (glyph_color_node::*, fill_color_node::*): Implement it.
8416         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8417         (parse_term): Add support for `f'.
8418         * src/roff/troff/troff.man: Updated.
8420         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8421         entry for `F'.
8422         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8423         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8425         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8426         (tag_definition): Use `void *' for arg1.
8427         (html_text): New member functions `do_color' and `done_color'.
8428         Use `void *' for second parameter of `push_para' member function.
8429         New `push_para' member function with a single parameter.
8430         Use `char *' for parameter of `issue_table_begin' member funtion.
8431         New `issue_color_begin' member function.
8432         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8433         COLOR_TAG.
8434         (html_text::issue_color_begin): New function.
8435         (html_text::issue_table_begin): Use `char *' for parameter.
8436         (html_text::start_tag, html_text::shutdown,
8437         html_text::check_emit_text): Updated.
8438         (html_text::push_para): Use `void *' for second parameter.
8439         Add same function with only one parameter.
8440         (html_text::do_*): Updated.
8441         (html_text::do_color, html_text::done_color): New functions.
8442         * src/devices/grohtml/post-html.cc (style): New member `col'.
8443         Mew member `style' with 6 parameters.
8444         (style::style, style::operator==): Updated.
8445         (html_printer::do_font): Use it.
8446         (html_printer::draw): Add dummy entry for `F'.
8447         (html_printer::set_char): Updated.
8448         * src/devices/grohtml/grohtml.man: Updated.
8450         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8451         trailing zeroes removed.
8452         (ps_printer): New members `sbuf_color', `fill_color', and
8453         `output_color'.
8454         Removed member `fill'.
8455         New member function `set_color'.
8456         (ps_printer::ps_printer, ps_printer::set_char): Updated.
8457         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8458         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8460         * tmac/color-html.tmac, tmac/color.tmac: New files.
8461         * tmac/troffrc: Include them.
8462         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8463         * tmac/Makefile.sub: Updated.
8465         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8466         man/groff.man: Updated.
8467         * font/devps/prologue.ps: Define FC and CO functions.
8469 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
8471         Fix incorrect cropping of images and incorrect handling of special
8472         characters.  Fix handling of file names in \O.
8474         * src/include/geometry.h: New file.
8475         * src/libs/libgroff/geometry.cc: New file.
8476         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8477         to `geometry.cc'.
8478         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8479         initial spaces.
8480         (do_suppress): Updated.
8481         * src/roff/troff/node.cc: Include geometry.h.
8482         (troff_output_file::flush_tbuf): Fixed parameters to
8483         `check_output_limits'.
8484         (troff_output_file::check_charinfo): Ditto.
8485         (troff_output_file::determine_line_limits): Add support for `Da'
8486         and `Dl' commands.
8488         * src/devices/grohtml/post-html.cc (str_translate_to_html):
8489         Add new parameter `is_special' to decode special characters from
8490         escape sequences.
8491         (html_printer::do_title, html_printer::do_heading,
8492         html_printer::do_indentedparagraph,
8493         html_printer::translate_to_html, html_printer::special): Updated.
8495 2001-10-03  Werner LEMBERG  <wl@gnu.org>
8497         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8498         Fix entry for config.h.
8499         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8500         * tmac/troffrc: Translate nonbreakable space character to `\~'.
8501         * src/preproc/eqn/eqn.man: Document -d command line option.
8503 2001-09-27  Werner LEMBERG  <wl@gnu.org>
8505         * man/groff.man: Use
8507           .ev xxx
8508           .na
8509           .nh
8510           <table>
8511           .ev
8513         instead of the old code (`.ad .hy' after the table) to suppress
8514         incorrect hyphenation for grohtml output.
8516 2001-09-22  Werner LEMBERG  <wl@gnu.org>
8518         * man/groff_font.man, man/groff_out.man: Minor fixes.
8520 2001-09-20  Werner LEMBERG  <wl@gnu.org>
8522         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
8523         Arnold Robbins <arnold@skeeve.com>).
8525 2001-09-09  Werner LEMBERG  <wl@gnu.org>
8527         * configure: Regenerated with autoconf 2.52.
8529         * doc/groff.texinfo: Complete revision of indices.
8531 2001-09-07  Werner LEMBERG  <wl@gnu.org>
8533         * doc/Makefile (clean): Updated to delete all indices.
8535 2001-09-05  Werner LEMBERG  <wl@gnu.org>
8537         * src/roff/troff/troff.man: Remove superfluous line.
8539         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8540         given on the command line (or rather, if only the default warnings
8541         are set).
8543 2001-09-03  Werner LEMBERG  <wl@gnu.org>
8545         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8546         use .ne for TTY devices.
8548 2001-08-31  Werner LEMBERG  <wl@gnu.org>
8550         * src/roff/troff/token.h, src/roff/troff/input.cc:
8551         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8553 2001-08-28  Werner LEMBERG  <wl@gnu.org>
8555         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8556         * src/roff/troff/input.cc (token::next): Return
8557         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8558         compatibility mode.
8559         (token::description): Updated.
8560         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8561         (token::add_to_node_list, token::process): Ignore
8562         TOKEN_TRANSPARENT_ESCAPE.
8564 2001-08-27  Werner LEMBERG  <wl@gnu.org>
8566         * tmac/an-old.tmac: Fix `S' string.
8568 2001-08-26  Werner LEMBERG  <wl@gnu.org>
8570         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8572 2001-08-25  Werner LEMBERG  <wl@gnu.org>
8574         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8575         backslashes).
8576         Many other minor fixes.
8578         * configure.ac: Add message at end to inform how to compile
8579         xditview.
8580         * configure: Regenerated.
8582 2001-08-24  Werner LEMBERG  <wl@gnu.org>
8584         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8585         Updated to latest version of libc.
8587 2001-08-23  Werner LEMBERG  <wl@gnu.org>
8589         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8590         Autoconf 2.50 and newer can handle this.
8591         * configure: Regenerated.
8593 2001-08-21  Werner LEMBERG  <wl@gnu.org>
8595         * doc/pic.ms: Fix typo.
8596         * src/preproc/tbl/tbl.man: Document case of global options.
8598 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
8600         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8601         handling of `CR' font.
8603 2001-08-20  Werner LEMBERG  <wl@gnu.org>
8605         Use a config.h file.
8607         * src/include/lib.h: Include config.h.
8608         * All C files: Ditto (if necessary).
8609         * All C++ source and header files: Include lib.h first (if
8610         necessary).
8612         * src/include/config.hin: New file (autogenerated by autoheader).
8613         * stamp-h.in: New file.
8614         * configure.ac: Updated.
8615         * aclocal.m4: Add third parameters to AC_DEFINE macros.
8616         (GROFF_ARRAY_DELETE): Simplified.
8617         * Makefile.sub (DISTCLEANFILES): Updated.
8618         Added targets for remaking config.status, config.hin, config.h,
8619         stamp-h.in, and stamp-h.
8620         * configure: Regenerated.
8622 2001-08-19  Werner LEMBERG  <wl@gnu.org>
8624         * NEWS: Updated.
8626 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
8628         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8629         (do_sprintf): Use snprintf().
8631 2001-08-18  Werner LEMBERG  <wl@gnu.org>
8633         * src/libs/snprintf/*: Added an snprintf module written by Mark
8634         Martinec.
8635         * src/libs/libgroff/Makefile.sub: Updated.
8636         * configure.ac: Add test for snprintf().
8637         * Makefile.in: Updated.
8638         * configure: Regenerated.
8640         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8641         uses snprintf().
8643 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
8645         * tmac/doc.tmac (Ex): New implementation.
8646         * tmac/doc-common, tmac/groff_tmac.man: Updated.
8648 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
8650         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8651         argument.
8652         * tmac/groff_tmac.man: Updated.
8654 2001-08-13  Werner LEMBERG  <wl@gnu.org>
8656         * src/preproc/tbl/tbl.man: Minor documentation update.
8658 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8660         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8661         * configure.ac: Add declaration test for gettimeofday().
8662         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8663         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8664         * configure: Regenerated.
8666 2001-08-11  Werner LEMBERG  <wl@gnu.org>
8668         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8669         * configure.ac: Add declaration test for strcasecmp().
8670         * Makefile.in: Updated.
8671         * configure: Regenerated.
8672         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8673         this is necessary because groff's mkstemp.cc is C++.
8674         Add declaration conditionally for strcasecmp().
8676 2001-08-10  Werner LEMBERG  <wl@gnu.org>
8678         Integrated pic2graph, contributed by Eric S. Raymond.
8680         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8681         files.
8682         * Makefile.in, NEWS: Updated.
8684         * src/preproc/tbl/tbl.man: Revised.
8686 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
8688         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8690 2001-08-09  Werner LEMBERG  <wl@gnu.org>
8692         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8693         requests.
8695 2001-08-08  Paul Eggert  <eggert@twinsun.com>
8697         * Makefile.sub (configure): Depend on configure.ac, not
8698         configure.in.
8699         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8701 2001-08-07  Werner LEMBERG  <wl@gnu.org>
8703         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8704         fixes.
8706 2001-08-06  Werner LEMBERG  <wl@gnu.org>
8708         * src/roff/troff/troff.man: Improve documentation of -E option.
8710 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8712         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8713         Simplified.
8715 2001-07-27  Werner LEMBERG  <wl@gnu.org>
8717         * src/preproc/refer/refer.cc: Undo last change.
8718         * src/devices/grohtml/post-html.cc: Ditto.
8720 2001-07-26  Werner LEMBERG  <wl@gnu.org>
8722         * src/preproc/refer/refer.cc: Include `lib.h'.
8723         * src/devices/grohtml/post-html.cc: Ditto.
8725 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
8727         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8728         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8729         * Makefile.in: Comment updated.
8730         * configure: Regenerated.
8732 2001-07-25  Werner LEMBERG  <wl@gnu.org>
8734         * src/preproc/pic/pic.cc: Removed.
8735         * src/preproc/pic/pic_tab.h: Removed.
8736         * src/preproc/refer/label.cc: Removed.
8738         * doc/Makefile (.ms.html): Don't use a file name extension in
8739         argument to grohtml's -I option.
8740         * Makefile.in (dist): Remove CVS directories.
8741         Call `distfiles' target.
8743         * src/devices/grohtml/grohtml.man: Add information about valid
8744         versions of pnmtopng.
8745         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8746         name instead of number.
8748 2001-07-24  Werner LEMBERG  <wl@gnu.org>
8750         * doc/groff.texinfo: Minor fixes.
8752 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
8754         * doc/Makefile (.ms.html): Put image files into a subdirectory.
8755         (clean): Updated.
8757 2001-07-20  Werner LEMBERG  <wl@gnu.org>
8759         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8760         * src/libs/libgroff/mkstemp.cc: New file.
8761         * src/libs/libgroff/mksdir.cc: New file.
8762         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8763         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8764         * src/libs/libgroff/Makefile.sub: Updated.
8765         * src/include/lib.h: Add mksdir() prototype.
8766         * src/include/posix.h: Define S_IXUSR if not yet defined.
8768         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8769         (createAllPages): Use mksdir() instead of current code.
8770         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8771         (main): [!HAVE_MKSTEMP]: Removed.
8773         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8774         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8775         macros.
8776         * configure.ac: Add tests for stdint.h, sys/time.h, and
8777         gettimeofday().
8778         Call new GROFF_xxx macros.
8779         * configure: Regenerated.
8780         * Makefile.in: Comments updated.
8782 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
8784         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8785         instead of current code.
8786         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8787         * src/roff/groff/groff.cc (possible_command::insert_args): New
8788         function.
8789         (main): Use it for predriver handling instead of insert_arg().
8791 2001-07-19  Werner LEMBERG  <wl@gnu.org>
8793         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8794         groff also.
8796         * src/include/posix.h: Define S_IWUSR if not yet defined.
8798 2001-07-18  Werner LEMBERG  <wl@gnu.org>
8800         * NEWS: Updated.
8802 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
8804         * tmac/groff_mdoc.man: Document new -width and -column syntax.
8805         Some other minor fixes.
8806         * tmac/an-old.tmac: Add `AT' and `UC' macros.
8808 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
8810         Replace call to `troff' with `groff -Z' to make it aware of
8811         GROFF_BIN_PATH.
8813         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8814         (troff_command, command_prefix): Removed.
8815         (alterDeviceTo): Use groff.
8816         (addZ): New function.
8817         (char_buffer::do_html): Use it.
8818         (scanArguments): Use TROFF_COMMAND.
8819         (findPrefix): Removed.
8820         (main): Updated.
8821         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8823 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
8825         * doc/pic.ms: Documentation fixes.
8827 2001-07-17  Werner LEMBERG  <wl@gnu.org>
8829         Replace atexit() with global destructor.
8831         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8832         (xtmpfile_list_init): New global structure to deallocate
8833         xtmpfile_list on exit.  Its destructor inherits most code from
8834         remove_tmp_files().
8835         (remove_tmp_files): Deleted.
8836         (add_tmp_file): Simplified.
8838 2001-07-16  Werner LEMBERG  <wl@gnu.org>
8840         Replace strdup() with strsave().
8842         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8843         (set_papersize): Use strsave() and a_delete.
8844         (main): Use strsave().
8845         * src/preproc/html/pre-html.cc (make_message, createAllPages,
8846         removeAllPages): Use strsave() and a_delete.
8848         * configure.ac: Remove test for strdup.
8849         * Makefile.in: Comment updated.
8850         * configure: Regenerated.
8852 2001-07-15  Werner LEMBERG  <wl@gnu.org>
8854         * win32-diffs: Updated.
8856 2001-07-14  Werner LEMBERG  <wl@gnu.org>
8858         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8859         removing the old one.
8860         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8862 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8864         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8866 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
8868         Merge -xwidth into -width.  Add -xwidth functionality to -column
8869         also.
8871         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8872         avoid warning.
8873         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
8874         string immediately following a leading dot starts with a valid mdoc
8875         argument.
8876         Add similar code to the -column branch.
8877         (doc-Bl-usage): Updated.
8878         * groff_mdoc.man: s/-xwidth/-width/.
8880 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
8882         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8883         running into centered or non-formatted text.
8885 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8887         Introduce short and long prefixes to have the selection at run-time
8888         whether there is a 8+3 limit for names of temporary files.
8890         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8891         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8892         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8893         variables.
8894         (temp_init): New global structure to initialize above three
8895         variables.
8896         (xtmptemplate): Use two parameters for long and short prefix.
8897         Simplify code use above three variables.
8898         (xtmpfile): Use long and short prefixes as parameters.
8899         * src/include/lib.h: Updated.
8901         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8902         with ...
8903         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8904         (createAllPages, makeTempFiles): Updated.
8906 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8908         * REVISION: Increased to 3.
8910 Version 1.17.2 released
8911 =======================
8913 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8915         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8916         to size_t.
8918 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8920         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8921         Fix synopsis.
8922         * tmac/groff_mdoc.man: Fix synopsis.
8924 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8926         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8927         Restore `doc-Pa-font'.
8929 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8931         * src/utils/indxbib/dirnamemax.c: Moved to ...
8932         * src/libs/libgroff/maxfilename.cc: Here.
8933         s/dir_name_max/file_name_max/.
8934         Add copyright.
8935         * src/include/lib.h: Add file_name_max.
8936         * src/utils/indxbib/indxbib.cc: Updated.
8937         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8938         Updated.
8940         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8941         as empty.
8942         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8944         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8945         REGION_TEMPLATE): New macros.
8946         (createAllPages, makeTempFiles): Use them.
8947         Include `nonposix.h'.
8948         (html_system): New function.
8949         (createAllPages, createImage): Use it.
8950         Use EXE_EXT.
8952         * tmac/www.tmac: Fix typos.
8954 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8956         * tmac/www.tmac: Disable hyphenation in normal text only if output
8957         device is html.
8958         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8959         * tmac/groff_mwww.man, NEWS: Updated.
8961 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8963         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8964         image location.
8966 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8968         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8969         doc-display-ps-stack): Implement font and font size stack for
8970         displays.
8972 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8974         * REVISION: Increased to 2.
8975         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8977         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8978         beginning of a line.
8979         * src/groff/grog/grog.sh: Ditto.
8981 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8983         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8984         make it portable.
8986 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8988         Fix problems with preprocessor string for `man' program.
8990         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8991         Updated/added copyright.
8992         Moved Emacs's local variable to identify nroff mode to the end of
8993         the file; add local variable if missing.
8995 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8997         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8998         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8999         * configure: Regenerated.
9001 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
9003         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
9004         * configure: Regenerated.
9006 2001-06-24  Werner LEMBERG  <wl@gnu.org>
9008         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
9009         but www.tmac.
9010         * doc/pic.ms: Fix typos.
9012 Version 1.17.1 released
9013 =======================
9015 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
9017         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
9018         * configure: Updated.
9020 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
9022         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
9023         image names.
9024         * src/roff/troff/dic.cc (blank_line): Add html tag.
9026 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
9028         * src/roff/troff/input.cc (do_suppress): Fix typo.
9030 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
9032         Added two new options (-D and -I) to specify image names and a
9033         subdirectory to place the images in.
9035         Change syntax from \\Ox to \\O[x].
9037         * src/devices/grohtml/post-html.cc (main): Add options.
9038         (usage): Updated.
9039         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
9040         Use `NULL' instead of `0' for null string pointers.
9041         (MAX_RETRIES): New macro.
9042         (lengthOfintToStr, intToStr, make_message): New functions.
9043         (makeFileName): Make function static.
9044         Implement -D and -I options.
9045         (checkImageDir): New function.
9046         (write_end_image, write_start_image): Use new syntax of \O.
9047         (createAllPages, removeAllPages): Implement -D and -I options.  Use
9048         make_message().
9049         (createImage): Use make_message().
9050         (addps4html): Add guard for malloc().
9051         (usage, scanArguments): Updated.
9052         (makeTempFiles): Use mkstemp().
9053         (removeTempFiles): Use unlink().
9054         (findPrefix): Add guard for malloc().
9055         (main): Updated.
9056         * src/roff/troff/input.cc (get_delim_file_name): New function to
9057         parse \O.
9058         (do_suppress): Updated to parse new syntax.
9059         * src/devices/grohtml/grohtml.man: Updated.
9060         * tmac/www.tmac: Updated to new syntax.
9062         * NEWS: Updated.
9064 2001-06-15  Werner LEMBERG  <wl@gnu.org>
9066         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
9068         * src/devices/grohtml/grohtml.man: Minor improvements.
9070 2001-06-14  Werner LEMBERG  <wl@gnu.org>
9072         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
9074 2001-06-11  Werner LEMBERG  <wl@gnu.org>
9076         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
9077         line to specify preprocessor options -- mandb 2.3.1 only recognizes
9078         the former.
9079         * src/preproc/grn/grn.man: Add proper '\" string.
9081 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
9083         * test-groff: Don't use PATH but GROFF_BIN_PATH.
9085 2001-06-08  Werner LEMBERG  <wl@gnu.org>
9087         Updated to autoconf 2.50.
9089         * configure.in: Renamed to...
9090         * configure.ac: This.
9091         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
9092         (GROFF_OS390): Updated.
9093         * configure: Regenerated.
9095 2001-05-18  Werner LEMBERG  <wl@gnu.org>
9097         * src/roff/troff/env.c, src/roff/troff/env.h,
9098         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
9099         from 2000-12-21.
9101 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
9103         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
9105 2001-05-16  Werner LEMBERG  <wl@gnu.org>
9107         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
9108         less than or equal zero; set it to 1 then.
9109         * src/roff/troff/node.h (node::node): Initialize `last'.
9111 2001-05-08  Werner LEMBERG  <wl@gnu.org>
9113         * tmac/an-old.tmac: Make predefined strings work in compatibility
9114         mode.
9115         Add troff version guard.
9116         * tmac/doc.tmac: Simplify version guard.
9118 2001-05-07  Werner LEMBERG  <wl@gnu.org>
9120         The .ns and .rs requests are now honoured not only in the top-level
9121         but in all diversions (similar to UNIX troff).
9123         This change is based on a patch from Tadziu Hoffmann
9124         <hoffmann@usm.uni-muenchen.de>.
9126         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
9127         (top_level_diversion): Remove `no_space_mode' member.
9128         * src/roff/troff/div.cc (diversion::diversion,
9129         top_level_diversion::top_level_diversion): Updated.
9130         (macro_diversion::output): Reset `no_space_mode'.
9131         (no_space, restore_spacing): Use `curdiv' unconditionally.
9132         (space_request, blank_line): Check `curdiv->no_space_mode'.
9133         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
9134         `curdiv' unconditionally.
9135         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9136         Updated.
9138 2001-05-06  Werner LEMBERG  <wl@gnu.org>
9140         Added two new requests `de1' and `am1' which are similar to `de' and
9141         `am' with the difference that compatibility mode is saved on entry,
9142         switched off during macro execution, and restored on exit.
9144         * src/roff/troff/input.h: Added two new special characters
9145         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
9146         * src/roff/troff/input.cc (input_iterator): Added two member
9147         functions `save_compatible_flag' and `get_compatible_flag'.
9148         (input_stack): Ditto.
9149         (string_iterator): Ditto.  Also add private member
9150         `saved_compatible_flag'.
9151         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
9152         (calling_mode): New enumeration.
9153         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
9154         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
9155         (define_macro, define_indirect_macro, append_macro, ignore): Use
9156         `calling_mode'.
9157         (define_nocomp_macro, append_nocomp_macro): New functions.
9158         (init_input_requests): Updated.
9159         (do_request): Rename local variable `saved_compatible_flag' to
9160         `old_compatible_flag'.
9161         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9163         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
9164         public and trap-invoked macros.  As a consequence, the man macros
9165         work in compatibility mode also.
9167 2001-05-06  Solar Designer  <solar@openwall.com>
9169         * Makefile.in: Use $(mandir).
9171 2001-05-06  Alexios Zavras  <zvr@pobox.com>
9173         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
9175 2001-05-05  Werner LEMBERG  <wl@gnu.org>
9177         Added `.ns' number register: Returns 1 in no-space mode (if in
9178         top-level diversion), 0 otherwise.
9180         * src/roff/troff/div.cc (no_space_mode_reg): New class.
9181         (init_div_requests): Updated.
9182         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9183         Document it.
9185 2001-05-04  Werner LEMBERG  <wl@gnu.org>
9187         * src/roff/nroff/nroff.man: Improved documentation (especially
9188         locales).
9190 2001-05-02  Werner LEMBERG  <wl@gnu.org>
9192         Added `brp' request: This is \p as a request.
9194         * src/roff/troff/env.cc (environment::do_break): Add parameter
9195         `spread'.
9196         (do_break_request): New function (was `break_request').
9197         (break_request): Calls `do_break_request'.
9198         (break_spread_request): New; calls `do_break_request'.
9199         (init_env_requests): Updated.
9200         * src/roff/troff/env.h: Updated.
9201         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9203         * REVISION: Increased to 1.
9204         * win32-diffs: Updated.
9206 2001-05-01  Werner LEMBERG  <wl@gnu.org>
9208         * tmac/an-old.tmac: Fix minor compatibility mode issue.
9209         * tmac/troffrc-end: Make it really work in compatibility mode.
9211 2001-04-27  Werner LEMBERG  <wl@gnu.org>
9213         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
9214         stdlib.h.
9216 2001-04-22  Werner LEMBERG  <wl@gnu.org>
9218         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
9219         latest versions from glibc CVS archive.
9221         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
9222         <c.zeelenberg@hccnet.nl>.
9224 2001-04-21  Werner LEMBERG  <wl@gnu.org>
9226         * configure.in: Move check for mkstemp() to...
9227         * aclocal.m4 (GROFF_MKSTEMP): This new function.
9228         * configure: Regenerated.
9230         * src/include/groff-getopt.h: Don't use variable names in
9231         declarations.
9233         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
9234         * src/devices/grohtml/Makefile.sub,
9235         src/devices/grohtml/post-html.cc: Updated.
9237 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
9239         * configure.in: Add special check for mkstemp().
9240         * src/libs/libgroff/tmpfile.cc: Use it.
9241         * src/utils/indxbib/indxbib.cc: Ditto.
9242         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
9243         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
9244         `const'.
9246 2001-04-20  Bruce Lilly  <blilly@erols.com>
9248         `Version_string' as C++ object was not visible to linker from C
9249         object files.
9250         Add `const' to `Version_string'.
9252         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
9253         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
9254         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
9255         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
9256         (scanArguments), src/preproc/refer/refer.cc (main),
9257         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
9258         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
9259         (main), src/devices/grohtml/post-html.cc (main),
9260         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
9261         (main), src/utils/hpftodit/hpftodit.cc (main),
9262         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
9263         (main), src/utils/lkbib/lkbib.cc (main),
9264         src/utils/addftinfo/addftinfo.cc (main): Implement it.
9266         * src/roff/groff/pipeline.c: Add _UWIN.
9267         * src/include/nonposix.h: Ditto.
9269 2001-04-20  Werner LEMBERG  <wl@gnu.org>
9271         * src/include/lib.h: Use HAVE_STRERROR.
9272         * src/roff/groff/pipeline.c: Ditto.
9273         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
9274         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
9275         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
9276         * win32-diffs: Updated.
9277         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
9279 2001-04-19  Werner LEMBERG  <wl@gnu.org>
9281         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
9282         instead of hardwired `"troff"'.
9283         (char_buffer::read_file): Remove unused variables.
9284         (char_buffer::write_file_troff): Ditto.
9285         (char_buffer::write_file_html): Ditto.
9286         (generateImages): Ditto.
9287         (abs): Removed.
9288         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
9290         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
9292         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
9293         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
9294         index_search_item::search1): Ditto.
9295         * src/roff/troff/node.h (width_list): Reorder members.
9296         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
9297         (lookup_warning): Ditto.
9298         (prepend_string): Commented out.
9299         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
9300         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
9301         * src/preproc/tbl/main.cc (process_format): Ditto.
9302         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
9303         compiler warnings.
9304         * src/preproc/pic/pic.cc: Updated.
9305         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
9306         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
9307         * src/preproc/refer/command.cc (execute_command): Ditto.
9308         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
9309         * src/preproc/refer/token.cc (lookup_token): Ditto.
9310         * src/preproc/soelim/soelim.cc: Ditto.
9311         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
9312         (isHexDigit): Commented out.
9313         (pushBackBuffer::isString): Remove unused variable.
9314         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
9315         warning.
9316         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
9317         resource_manager::read_resource_arg, read_one_of, parse_extensions):
9318         Ditto.
9319         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
9320         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
9321         lookup_paper_size): Ditto.
9322         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
9323         (text_glob, element_list): Reorder members.
9324         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
9325         compiler warning.
9326         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
9327         return value to `void'.
9328         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
9329         of initializers.
9330         * src/devices/grohtml/html.h (simple_output::check_newline,
9331         simple_output::space_or_newline, simple_output::enable_newlines):
9332         Add return value.
9333         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
9334         compiler warnings.
9335         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
9336         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
9337         output_ligatures, output_charset, read_map): Ditto.
9338         * src/utils/lookbib/lookbib.cc (main): Ditto.
9339         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
9340         (do_file): Fix typo (`=' -> `==').
9341         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
9342         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
9344 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
9346         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
9347         Fix usage of GROFF_BIN_PATH.
9348         * src/roff/nroff/nroff.man: Updated.
9350 2001-04-18  Werner LEMBERG  <wl@gnu.org>
9352         * NEWS: Fixing typos.
9353         Updated.
9355 Version 1.17 released
9356 =====================
9358 2001-04-17  Werner LEMBERG  <wl@gnu.org>
9360         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9361         directory, not in $(srcdir).
9363 2001-04-16  Werner LEMBERG  <wl@gnu.org>
9365         * doc/groff.texinfo: More info on conditionals.
9367 2001-04-15  Werner LEMBERG  <wl@gnu.org>
9369         * doc/groff.texinfo: Added some info about groff internals.
9371         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9372         about missing special character only if the name is non-null.
9374 2001-04-14  Werner LEMBERG  <wl@gnu.org>
9376         Removing the grohtml-old device driver which is now obsolete.
9378         * src/devices/grohtml-old/*: Removed.
9379         * font/devhtml-old/*: Removed.
9380         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9381         Remove comments.
9382         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9383         * test-groff (PATH): Updated.
9384         * tmac/Makefile.sub (NORMALFILES): Updated.
9385         * tmac/an-old.tmac: Remove special code for html-old device.
9386         Replace `html-or-html-old' register with `an-html'.
9387         * tmac/eqnrc: Updated.
9388         * tmac/html-old.tmac: Removed.
9389         * tmac/troffrc, tmac/troffrc-end: Updated.
9390         * tmac/www.tmac: Remove special code for html-old device.
9391         Replace `html-or-html-old' register with `www-html'.
9393         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9394         src/libs/libgroff/htmlindicate.cc (graphic_end),
9395         include/htmlindicate.h, src/preproc/grn/*.cc,
9396         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9397         single argument for consistency with rest of source code.
9399         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9401 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
9403         * src/roff/troff/troff.man: Fixing typos.
9405 2001-04-13  Werner LEMBERG  <wl@gnu.org>
9407         * doc/pic.ms: Fixing many font switches.
9408         * doc/groff.texinfo: Fixes, additions.
9409         * MORE.STUFF: Updated.
9411 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
9413         * src/devices/grohtml/grohtml.man: Updated manual page regarding
9414         simple anchor.
9415         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9416         cropping of images.
9417         (removeTempFiles): New function to tidy up temporary files.
9418         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9419         Many fixes to do with the new inline suppress node and image regions
9420         are much tighter.
9421         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9422         (generate_img_src): New function.
9423         (html_printer::do_auto_image): Utilizes it.
9424         (do_heading, do_title): Include inline images within their contents.
9425         (html_printer::begin_page): Tidied up comments that are issued to
9426         the html output file.
9427         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9428         than courier.
9429         (text_glob::is_br): New method used by do_heading.
9430         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9431         equivalent diversion.
9432         * src/include/html-strings.h: Altered image tags to reflect the
9433         inline image node.
9434         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9435         parameter.
9436         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9437         it is already inside a pic image.  Only emit tags if the argument
9438         `-Tps:html' is present.
9439         * src/preproc/tbl/main.cc: Changes to reflect additional
9440         `html_end_suppress' parameter.
9441         * src/roff/troff/env.cc: Only emit eol tag if a node has been
9442         emitted since the last eol tag was written.
9443         * src/roff/troff/env.h: New boolean `emitted_node'.
9444         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9445         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
9446         * src/roff/troff/node.cc (check_charinfo): New method. 
9447         (troff_output_file::determine_line_limits): Alterations to limit
9448         checking.
9449         * tmac/www.tmac: Changes to reflect new suppress nodes.
9450           
9451 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
9453         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9454         Escape the html_glyph in the buffer.
9455         (str_translate_to_html): Output the unescaped escaped_char.
9456         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9457         `frame=void', not `frame=none'.  Add `border=0'.
9459 2001-04-12  Werner LEMBERG  <wl@gnu.org>
9461         * PROBLEMS: Add some words on how to avoid wrapper macros.
9463 2001-04-11  Blake McBride  <blake@florida-software.com>
9465         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9467 2001-04-11  Werner LEMBERG  <wl@gnu.org>
9469         * font/devlbp/Makefile.sub (CLEANADD): Set it.
9470         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9471         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9472         * Makefile.sub (DISTCLEANFILES): Here.
9474         * libs/libgroff/new.cc: Include `nonposix.h'.
9475         * win32-diffs: Updated.
9477 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
9479         Added skeleton macro for defunct macros.
9481         Updated documentation.
9483         When inside displays, an empty input line warning should be
9484         suppressed.  If another macro call is put inside a display,
9485         all subsequent empty lines found in that display caused a
9486         warning to be emitted.
9488         * tmac/doc.tmac (doc-defunct-macro): New macro.
9489         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9490         (doc-restore-global-vars): Fixed typo.
9491         (doc-empty-line): Check the `doc-display-depth' register to
9492         determine whether we are inside display or not.
9494         * tmac/doc-common: Removed `Or' and `Sf' registers.
9495         Moved obsolete `Ds' macro to doc.tmac.
9497         * tmac/groff_mdoc.man: Bump document date.
9498         Document `.Vt' under ``Variable Types''.
9499         Removed documentation for obsolete `.Or' macro.
9501 2001-04-10  Werner LEMBERG  <wl@gnu.org>
9503         * NEWS: Updated.
9504         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9506 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
9508         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9509         (usage): Add stream argument. Don't exit.
9510         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9511         Write --version output to stdout, not stderr.
9512         (usage): Add stream argument. Don't exit.
9513         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9514         (usage): Add stream argument. Don't exit.
9515         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9516         constants.
9517         (usage): Add stream argument. Don't exit.
9518         (main): Write --help output to stdout, not stderr.
9519         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9520         (usage): Add stream argument. Don't exit.
9521         * src/devices/grops/ps.cc (main): Accept --help and --version.
9522         (usage): Add stream argument. Don't exit.
9523         * src/devices/grotty/tty.cc (main): Accept --help and --version.
9524         (usage): Add stream argument. Don't exit.
9525         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9526         (main): Accept --help and --version.
9527         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9528         (main): Accept --help and --version.
9529         * src/preproc/html/pre-html.cc (usage): Add stream argument.
9530         (scanArguments): Accept --help and --version.
9531         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9532         (main): Accept --help and --version.
9533         * src/preproc/refer/refer.cc (main): Accept --help and --version.
9534         (usage): Add stream argument. Don't exit.
9535         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9536         exit.
9537         (main): Accept --help and --version.
9538         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9539         (main): Accept --help and --version.
9540         * src/roff/groff/groff.cc (main): Accept --help and --version.
9541         (synopsis): Add stream argument.
9542         (help): Write --help output to stdout, not stderr.
9543         (usage): Add stream argument. Don't exit.
9544         * src/roff/grog/grog.pl: Accept --help and --version.
9545         (help): New sub.
9546         * src/roff/grog/grog.sh: Accept --help and --version.
9547         * src/roff/nroff/nroff.sh: Accept --help and --version.
9548         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9549         (usage): Add stream argument. Don't exit.
9550         (main): Accept --help and --version.
9551         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9552         (usage): New function with stream argument, doesn't exit.
9553         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9554         (usage): New function with stream argument, doesn't exit.
9555         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9556         (usage): Add stream argument. Don't exit.
9557         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9558         (main): Accept --help and --version.
9559         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9560         exit.
9561         (main): Accept --help and --version.
9562         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9563         (main): Accept --help and --version.
9564         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9565         (usage): Add stream argument. Don't exit.
9567 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
9569         Fix indentation in SYNOPSIS.
9571         Updated to include changes of latest BSD mdoc version (basically,
9572         the only change is that `.Fn' and `.Fc' put a final semicolon after
9573         a function declaration in the SYNOPSIS section).
9575         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9576         (doc-in-synopsis-section): New variable.  Updated all related
9577         functions.
9578         (doc-indent-synopsis-active): New register.
9579         (Nd, Fn, Fo): Use it.
9580         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9581         `.Cd' with long argument line produces indented wrapped lines. 
9582         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9583         undesirable line break to be output.
9584         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9585         `.rs'.
9586         (Fn, Fc): Add final `;' to output.
9587         (doc-save-global-vars, doc-restore-global-vars): Updated.
9588         * tmac/doc-common: Remove `Ex' register.
9589         Updated.
9590         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9591         copyright.
9593 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9595         * tmac/doc.tmac (Cd): Simplify code.
9596         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9598 2001-04-06  Werner LEMBERG  <wl@gnu.org>
9600         Implement continuous underlining for nroff mode.  To do that, a new
9601         request in the ditroff language has been added: `x u N' (N is 0
9602         or 1).
9604         \X and \Y are now transparent to end-of-sentence recognition.
9606         * src/include/printer.h (printer): Add `type' parameter to `special'
9607         method.
9608         * src/libs/libdriver/printer.cc (printer::special): Updated.
9609         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9611         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9612         specials of type `p'.
9613         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9614         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9615         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9616         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9617         (glyph::order): New method.
9618         (tty_printer::add_char): Use it.
9619         (tty_printer::special): New method.
9620         (tty_printer::end_page): Implement it.
9622         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9623         * src/roff/troff/node.cc (special_node::special_node): Add parameter
9624         to set `no_init_string'.
9625         (special_node::tprint_start): Use it.
9626         (special_node::same, special_node::copy): Updated.
9627         (special_node::ends_sentence): New method.
9628         (troff_output_file::start_special): Add parameter to include
9629         inititialization of special conditionally.
9631         * src/roff/troff/env.h (environment): New member `underline_spaces'.
9632         * src/roff/troff/env.cc (do_underline_special): New function.
9633         (environment::set_font): Use it.
9634         (do_underline): Use it.  This was `underline()'.
9635         (underline): Call `do_underline()'.
9636         (continuous_underline): New function which calls `do_underline()'.
9637         (environment::newline): Use `do_underline_special()'.
9638         (init_env_requests): Updated.
9640         * NEWS, man/troff_out.man: Updated.
9642 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
9644         * font/devutf8/R.proto: Fix code of 'shc'.
9646 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9648         Many fixes.  Diag lists can now be nested also; additionally,
9649         `-compact' and `-offset' are supported.
9651         * tmac/doc.tmac (doc-have-indent): Replaced with ...
9652         (doc-list-have-indent-stackXXX): A new register stack.
9653         (doc-have-diag-list): Removed.
9654         (Bl): Use `doc-list-have-indent-stackXXX'.
9655         (El): Updated.
9656         (doc-diag-list): Use `doc-compact-list-stackXXX'.
9657         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9658         (doc-set-vertical-and-indent): Ditto.
9659         (doc-next-list-depth): Removed.
9660         (doc-increment-list-stack): Updated.
9661         (doc-decrement-list-stack): Use `doc-list-depth' instead of
9662         `doc-next-list-depth'.
9663         (doc-end-list, doc-end-column-list): Don't use
9664         `doc-increment-list-stack'.
9665         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9666         (doc-save-global-vars, doc-restore-global-vars): Updated.
9667         * tmac/doc-common: Updated.
9668         * tmac/groff_mdoc.man: Updated.
9669         * NEWS: Fix typo.
9671 2001-04-02  Werner LEMBERG  <wl@gnu.org>
9673         * src/devices/grotty/grotty.man: Fix grammatical error.
9675 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
9677         Remove .Ld from mdoc package; replace it with special handling of
9678         `...'.
9680         * tmac/doc-common: Remove `Ld' register.
9681         Uncomment `doc-volume-ds-*' strings.
9682         Remove `doc-operating-system-default'.
9683         (Os): Updated.
9684         * tmac/doc-syms (Ld): Removed.
9685         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9686         `...' specially.
9687         * NEWS: Updated.
9689         * tmac/groff_mdoc.man: Many fixes and updates.
9691 2001-03-29  Werner LEMBERG  <wl@gnu.org>
9693         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
9694         Bond <tkb@tkb.mpl.com>.
9695         * tmac/www.tmac: Save compatibility mode.
9697 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
9699         * tmac/groff_mdoc.man: Many fixes.
9701 2001-03-28  Werner LEMBERG  <wl@gnu.org>
9703         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9704         isn't recognized.
9706 2001-03-27  Werner LEMBERG  <wl@gnu.org>
9708         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9709         diversion.  This fixes overlong tags.
9711 2001-03-26  Werner LEMBERG  <wl@gnu.org>
9713         * doc/groff.texinfo: Fixed and improved documentation of fonts.
9714         * tmac/doc-syms: Fix error messages.
9715         * tmac/an-old.tmac: Remove incorrect double backslashes.
9717 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
9719         * tmac/Makefile.sub: Strip mdoc.local also
9720         * tmac/strip.sed: Fixed.
9722 2001-03-24  Werner LEMBERG  <wl@gnu.org>
9724         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9725         selecting the font size.
9726         * tmac/groff_mdoc.man, NEWS: Document it.
9728 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9730         * src/roff/troff/div.cc (save_vertical_space): Add default argument
9731         to `sv' request.
9732         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9733         argument to restore previous font family.
9734         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9736         * doc/groff.texinfo: More fixes and additions (mainly for font
9737         manipulating commands).
9739         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9740         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
9741         * tmac/Makefile.sub, NEWS: Updated.
9743 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9745         Replaced mdoc implementation.  The new version is `state of the
9746         art', using almost all new features of groff 1.17 -- it won't run
9747         with older versions.
9749         * tmac/doc.tmac: Completely rewritten.
9750         * tmac/doc-common: Ditto.
9751         * tmac/doc-nroff: Ditto.
9752         * tmac/doc-ditroff: Ditto.
9753         * tmac/doc-syms: Ditto.
9754         * tmac/mdoc.local: New file.
9755         * tmac/groff_mdoc.samples.man: Replaced with ...
9756         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9757         * tmac/strip.sed: Updated.
9758         * tmac/Makefile.sub: Updated.
9759         * INSTALL: Updated.
9761         * tmac/groff_man.man: Add `man.local' to the FILES section.
9763 2001-03-22  Werner LEMBERG  <wl@gnu.org>
9765         * doc/groff.texinfo: Added many @noindent.
9766         Replaced @end_Example -> @endExample.
9767         Added info whether registers are r/o.
9768         Many other additions and fixes.
9770 2001-03-21  Werner LEMBERG  <wl@gnu.org>
9772         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9773         in makeinfo of texinfo 4.0) to be used in @Def* macros.
9774         Improved @Def* macros: Now the exact syntax of request, register,
9775         and escapes is shown.
9776         Added macros for parentheses and brackets to be used in @Def*.
9777         Many fixes and improvements of the documentation.
9779 2001-03-20  Werner LEMBERG  <wl@gnu.org>
9781         * doc/groff.texinfo: Added new index: `st' (for strings).
9782         Added macros @Defstr(x).
9783         Added macro @Example (adding @group).
9784         Other minor improvements.
9786 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9788         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9789         `rq' for requests.  `fn' is no longer used.
9790         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9791         Removed @Deffn(x).
9793         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9794         number with name of man page.
9796 2001-03-19  Larry Kollar  <kollar@alltel.net>
9798         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
9799         consistency.
9801 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9803         * man/groff_font.man: Document `prepro', `postpro', and `print'.
9804         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9805         * src/devices/grohtml/grohtml.man: Fixing typos.
9807 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
9809         * tmac/s.tmac (@IP): Pass `.ip' html tag.
9810         * tmac/groff_mwww.man: Remove .LINE macro
9811         * tmac/www.tmac (LINE): Add `.ti'.
9813         * src/devices/grohtml/post-html.cc (html_printer): New member
9814         `indent'.
9815         (html_printer::emit_raw): Use it.
9816         (html_printer::do_linelength): Ditto.
9817         (html_printer::do_pageoffset): Ditto.
9818         (html_printer::do_indentation): Ditto.
9819         (html_printer::do_tempindent): Ditto.
9820         (html_printer::do_break): Ditto.
9821         (html_printer::begin_page): Ditto.
9822         (html_printer::do_indentedparagraph): New function.
9823         (html_printer::troff_tag): Handle `.ip'.
9824         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9825         Add `<td width=...>' handling.
9826         (html_text::do_table): Add parameter.
9827         (html_text::do_indent): Updated.
9828         * src/devices/groohtml/html-text.h: Updated.
9830 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
9832         Introduced simple html tables to implement indentation.
9834         * src/devices/grohtml/html.h (word, word_list): New structures.
9835         (simple_output): Use it.
9836         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9837         (html_printer): Improve indentation handling.
9838         (html_printer::emit_raw): Set `in_table' element.  Handle
9839         indentation if set.
9840         (html_printer::write_header): Move conditional downwards.
9841         Don't allow whitespace in tags.
9842         (html_printer::do_linelength): Handle line length and indentation
9843         conditionally.
9844         (html_printer::do_pageoffset): Handle indentation conditionally.
9845         (html_printer::do_indentation): Ditto.
9846         (html_printer::do_tempindent): New function member.
9847         (html_printer::do_fill): Take care of indentation.
9848         (html_printer::do_flush): Finish table.
9849         (html_printer::do_links): Ditto.
9850         (html_printer::do_break): New function for handling `.br' and `.ti'.
9851         (html_printer::troff_tag): Use it.
9852         Handle `.ti'.
9853         (html_printer::flush_globs): Fix.
9854         (html_printer::flush_page): Finish table.
9855         (html_printer::html_printer): Fix error message.  Set up
9856         `linelength'.
9857         (html_printer::add_to_sbuf): Remove special handling of character
9858         code 255.
9859         (to_unicode): Remove `stop()'.
9860         (html_printer::write_title): Cleanup.
9861         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
9862         (html_printer::~html_printer): Flush text and end the line.
9863         Use `put_string()'.
9864         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9865         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9866         emission of tags.
9867         (html_text::start_tag): Disable newlines.
9868         (html_text::table_is_void): New function.
9869         (html_text::issue_table_begin): Ditto.
9870         (html_text::issue_table_end): Ditto.
9871         (html_text::push_para): Better table handling.
9872         (html_text::do_indent): New function.
9873         (html_text::do_table): Ditto.
9874         (html_text::done_table): Ditto.
9875         (html_text::do_tt): Handle PRE_TAG.
9876         (html_text::is_in_table): New function.
9877         (html_text::check_emit_text): Handle tables.
9878         (html_text::do_emittext): Use `nl()'.
9879         (html_text::do_para): Handle table.
9880         (html_text::remove_def): New function.
9881         * src/devices/grohtml/output.cc (word, word_list): Implement
9882         methods.
9883         (simple_output::end_line): Flush last word.
9884         (simple_output::simple_comment): Ditto.
9885         (simple_output::begin_comment): Recoded.
9886         (simple_output::end_comment): Ditto.
9887         (simple_output::comment_arg): Removed.
9888         (simple_output::check_newline): Improve test and flush last word.
9889         (simple_output::space_or_newline): Improved.
9890         (simple_output::write_newline): Replaced with...
9891         (simple_output::nl): This.
9892         (simple_output::put_raw_char): Flush last word.
9893         (simple_output::check_space): Removed.
9894         (simple_output::put_translated_string): Ditto.
9895         (simple_output::put_string): Simplified.
9896         (simple_output::put_number): Updated.
9897         (simple_output::put_float): Ditto.
9898         (simple_output::put_symbol): Removed.
9899         (simple_output::enable_newlines): Add `check_newline()'.
9900         (simple_output::flush_last_word): New function.
9902         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9903         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9905         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9906         * tmac/an-old.tmac (TP): Ditto.
9908 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9910         * mdate.sh: Make it POSIX compliant.
9912 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9914         Added the `return' request to end a macro immediately.  It simply
9915         pops iterators from the input stack until a macro iterator is found.
9917         * src/roff/troff/input.cc (input_iterator::is_macro,
9918         macro_iterator::is_macro): New member.
9919         (input_return_boundary): New class to signal an immediate return
9920         to while_request().
9921         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9922         New functions.
9923         (input_stack::clear): Use it.
9924         (input_stack::pop_macro): New function.
9925         (while_request): Use `is_return_boundary()'.
9926         (return_macro_request): New function.
9927         (init_input_requests): Use it.
9929         * src/roff/troff/TODO: Updated.
9930         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9932 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9934         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9935         cleanup.
9937 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9939         Make `\B' more rigid.
9941         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9942         parameter.
9943         (get_number_rigidly): New function.
9944         * src/roff/troff/input.cc (do_expr_test): Use it.
9945         * src/roff/troff/token.h: Updated.
9947         * src/roff/troff/request.h: Fix typo (init_html_request ->
9948         init_markup_request).
9950 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9952         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9953         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9954         are now `.begin', `.end', `.image'.
9956         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9957         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9958         Use add_char_to_sbuf().
9959         (to_unicode): New function.
9960         (char_translate_to_html): Changing type of `ch' parameter.
9961         Use `to_unicode()'.
9962         (html_printer::~html_printer): Comment out doctype string.
9963         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9964         instead of `.html-end'.
9965         (write_start_image): Use `.begin' and `.image' instead of
9966         `.html-begin' and `.html-image'.
9967         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9968         (html_begin): Renamed to ...
9969         (begin): This.
9970         (html_end): Renamed to ...
9971         (end): This.
9972         (html_image): Renamed to ...
9973         (image): This.
9974         (init_html_requests): Renamed to ...
9975         (init_markup_requests): This.
9976         * tmac/www.tmac: Updated.
9978 2001-02-28  Bram  <bram@avontuur.org>
9980         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9981         constructor.
9983 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9985         * doc/meref.me: Fixing some typos.
9987 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9989         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9990         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9991         * src/roff/troff/node.h: Updated.
9993 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9995         * tmac/groff_tmac.man: Fix typo.
9997 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9999         Fixing a bug which prevented proper end-of-sentence recognition
10000         between an `unformatted' box and the following text.  As a
10001         consequence, vertical line distances are no longer preserved in
10002         boxes after a call to `.unformat' -- because boxes aren't
10003         line-oriented (contrary to diversions), this doesn't make sense
10004         anyway.
10006         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
10007         value.
10008         (vertical_size_node::set_unformat_flag): New method.
10009         * src/roff/troff/node.hh: Updated.
10010         * src/roff/troff/input.cc (word_space_node::reread,
10011         hmotion_node::reread): Reset `unformat' flag after usage.
10012         (unformat_macro): Append only if `set_unformat_flag()' returns
10013         non-zero.
10014         * src/roff/troff/troff.man: Updated.
10016 2001-02-15  Werner LEMBERG  <wl@gnu.org>
10018         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
10019         documentation of `asciify' and `unformat' requests.
10021 2001-02-13  Werner LEMBERG  <wl@gnu.org>
10023         Redesigned the `unformat' request.  It is no longer connected with
10024         `asciify' but rather uses new `reread()' methods if the `unformat'
10025         flag is set.  Additionally, the handling of space characters after
10026         unformatting has been fixed so that they retain their width.
10028         * src/roff/troff/node.h (width_list): New structure to store
10029         original widths of spaces.
10030         (node): Added `unformat' member.
10031         Replaced `num_spaces' variable with `orig_width' list.
10032         * src/roff/troff/node.cc (*node::asciify,
10033         asciify_reverse_node_list): Removed `unformat_only' flag and related
10034         code.
10035         (word_space_node::asciify, word_space_node::word_space_node): Use
10036         `orig_width'.
10037         (word_space_node::~word_space_node): New destructor.
10038         (word_space_node::copy): Updated to handle `orig_width'.
10039         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
10040         (*node::merge_space): Update `orig_width' list if necessary.
10041         (*node::set_unformat_flag): New methods to set the `unformat' flag.
10042         * src/roff/troff/enc.cc (environment::space_newline): Use
10043         `width_list'.
10044         (environment::space): Added method to handle space width and
10045         sentence space width as parameters.  Use `width_list'.
10046         (environment::make_tab_node): Updated.
10047         * src/roff/troff/env.h: Updated.
10048         * src/roff/troff/input.cc (word_space_node::reread,
10049         unbreakable_space_node::reread, hmotion_node::reread): New methods
10050         to handle nodes specially if `unformat' flag is set.
10051         (do_asciify_macro): Renamed back to ...
10052         (asciify_macro): This.
10053         (unformat_macro): New implementation to simply set the `unformat'
10054         flag.
10056         * MORE.STUFF: Added more info about deroff.
10058 2001-02-08  Werner LEMBERG  <wl@gnu.org>
10060         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
10061         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
10062         and `add_self()' methods to avoid hyphenation.  For example, the
10063         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
10064         soft hyphen after `foo'.  Now the hyphen list is correctly
10065         `foo<ignore><ignore>bar'.
10067 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
10069         * tmac/groff_tmac.man: Fix `BIR' macro.
10071 2001-02-04  Werner LEMBERG  <wl@gnu.org>
10073         A new escape sequence `\:', inserting a zero-width break point.
10075         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
10076         * src/roff/troff/input.cc (get_copy, token::next, asciify):
10077         Implement it.
10078         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
10079         method.
10080         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
10081         and `asciify()' methods.
10082         * src/roff/troff/node.cc (space_node::space_node): Updated.
10083         (space_node::asciify): Handle `was_escape_colon'.
10084         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10086         Handle `\~' similar to other comparable requests.
10088         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
10089         label.
10090         (token::next): Move creation of an unbreakable_space_node to...
10091         (token::add_to_node_list): Here.
10093         Fix a bug which sometimes prevented hyphenation of words connected
10094         with `\~' or `\ ' (and other escape sequences handled as
10095         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
10096         (after a call to the `unformat' request).
10098         * src/roff/troff/env.h (environment::possibly_break_line,
10099         environment::hyphenate_line): Introducing `start_here' parameter.
10100         * src/roff/troff/env.cc (environment::space_newline,
10101         environment::space): Use it.
10102         (environment::possibly_break_line, environment::hyphenate_line):
10103         Implement it.
10104         * src/roff/troff/input.cc (process_input_stack): Use it.
10105         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
10106         space_char_hmotion_node, overstrike_node): Add
10107         `get_hyphenation_type()' method.
10108         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
10109         if `unformat_only' is active.
10111 2001-01-30  Werner LEMBERG  <wl@gnu.org>
10113         Implemented new read-only number register `.linetabs' which
10114         returns 1 if in line-tabs mode, 0 otherwise.
10116         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
10117         * src/roff/troff/env.cc (get_line_tabs): New function.
10118         (init_env_requests): Use it.
10119         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10121         * VERSION, REVISION: Changing to 1.17.0.
10123 2001-01-28  Werner LEMBERG  <wl@gnu.org>
10125         Fixed a bug which prevented hyphenation of words which are finished
10126         with `\)'.
10128         * src/roff/troff/token.h (token): Add enum type
10129         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
10130         * src/roff/troff/input.cc (token::next, token::description,
10131         get_line_arg, token::add_to_node_list, token::process): Use it.
10133 2001-01-27  Werner LEMBERG  <wl@gnu.org>
10135         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
10136         * src/roff/troff/div.cc (do_divert): Use it.
10138         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
10140 2001-01-25  Werner LEMBERG  <wl@gnu.org>
10142         Adding the `linetabs' request.  If set, tab distances are not
10143         computed relative to the input line but relative to the output line.
10145         * src/roff/troff/env.h (environment): New member `line_tabs'.
10146         * src/roff/troff/env.cc (line_tabs_request): Implement request.
10147         (environment::environment, environment::copy): Updated.
10148         (environment::distance_to_next_tab): Use `line_tabs'.
10149         (init_env_requests): Register request.
10150         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
10151         fixes.
10153 2001-01-24  Werner LEMBERG  <wl@gnu.org>
10155         Introducing a new read-only register `.int' which is set to a
10156         positive value if the last output line is interrupted (i.e., if it
10157         contains `\c').
10159         * src/roff/troff/env.cc (init_env_requests): Add it.
10160         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10162 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
10164         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
10165         * src/preproc/html/pre-html.cc (findPrefix): New function which
10166         generates the troff executable name via the system prefix.
10167         * src/preproc/eqn/main.cc: Modified warning message.
10169 2001-01-23  Werner LEMBERG  <wl@gnu.org>
10171         troff's `box' and `boxa' requests didn't preserve temporary
10172         indentation.
10174         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
10175         `saved_target_text_length' members.
10176         * src/roff/troff/div.cc (do_divert): Use them.
10178         Tabs (but not yet leaders and fields) are now handled correctly by
10179         `asciify' request.
10181         * node.h (hmotion_node): Add field `was_tab'.
10182         * env.cc (environment::make_tab_node): Set it.
10183         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
10185         Added new request `unformat' which will, contrary to `asciify',
10186         preserve font information after unformatting (i.e., only nodes
10187         dealing with horizontal space are converted back to input
10188         characters).
10190         * input.cc (asciify_macro): Renamed to ...
10191         (do_asciify_macro): this, having a new parameter `unformat_only'.
10192         (asciify_macro, unformat_macro): New; using do_asciify_macro.
10193         (init_input_requests): Added `unformat'.
10194         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
10195         parameter to control asciification process.
10196         * node.h (*_node::asciify): Ditto.
10197         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10199 2001-01-20  Werner LEMBERG  <wl@gnu.org>
10201         * doc/groff.texinfo: Minor improvement of `.in' documentation.
10203 2001-01-18  Werner LEMBERG  <wl@gnu.org>
10205         * tmac/ps.tmac: Remove call of psold.tmac.
10206         * tmac/psold.tmac: Comment updated.
10207         * tmac/psnew.tmac: Removed since no longer needed.
10208         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
10210         * font/devutf8/R.proto: Adding `shc' glyph.
10211         * font/devutf8/NOTES: Updated.
10213         * test-groff: Updated.
10215 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
10217         First cut of the new html device driver.  Changes to pre-html and
10218         the new grohtml are too numerous to be documented here.
10220         Stuff related to `html' has been renamed to `html-old' and `html2'
10221         stuff has been renamed to `html' (including directories).  The new
10222         html device driver is therefore invoked as `-Thtml'.
10224         Added new `\O' escape to suppress output (needed by html driver).
10226         Added functions and code to pass info about input-level commands
10227         (`.in', `.fl', etc.) to html driver.
10229         Three new functions (.html-begin, .html-end, and .html-image) for
10230         better html handling: `html-begin' will execute the remaining line
10231         if at the outermost nesting level, increasing an internal counter.
10232         `html-end' does the same but decreases the internal counter.
10233         `html_image' puts its arguments into a special node (suppress_node)
10234         to define an image region.
10236         The `output' request has been removed.
10238         * tmac/html-tags.tmac: Removed.
10239         * tmac/arkup.tmac: Updated and renamed to ...
10240         * tmac/www.tmac: New file.
10241         * tmac/markup.tmac Updated and renamed to ...
10242         * tmac/mwww.tmac: New file.
10243         * tmac/Makefile.sub: Updated.
10244         * tmac/an-old.tmac: Updated.
10245         * tmac/eqnrc: Updated.
10246         * tmac/groff_man.man
10247         * tmac/groff_markup.man: Updated and renamed to ...
10248         * tmac/groff_mwww.man: New file.
10249         * tmac/groff_tmac.man: Updated.
10250         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
10251         * tmac/html.tmac: Updated and renamed from html2.tmac.
10252         * tmac/pspic.tmac: Updated html support.
10253         * tmac/s.tmac: Added html output support.
10254         * tmac/troffrc, tmac/troffrc-end: Updated.
10256         * Makefile.in, doc/Makefile: Updated.
10257         * doc/groff.texinfo: Added info about new `\O' escape.
10258         * doc/homepage.ms: Use `MAILTO' macro.
10260         * font/devhtml/DESC.proto: Add `C' font.
10261         * font/devhtml/Makefile.sub: Updated.
10262         * font/devhtml/R.proto: Minor fixes.
10263         * font/devhtml-old/Makefile.sub: Updated.
10265         * src/devices/grohtml-old/Makefile.sub: Updated.
10267         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
10268         method.
10269         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
10270         graphic_start): Add `inline' parameter.  Update.
10271         (html_end_suppress, graphic_end): Update.
10273         * src/include/html-strings.h: New file.
10274         * src/include/htmlindicate.h: Comments updated.
10275         * src/include/printer.h: Updated.
10277         * src/preproc/eqn/main.cc (do_file, main): Updated.
10278         * src/preproc/pic/troff.cc (troff_output::start_picture,
10279         troff_output::finish_picture): Updated.
10280         * src/preproc/tbl/main.cc (process_input_file): Updated.
10282         * src/roff/groff/groff.cc (main): Updated.
10283         Pass device arguments to predrivers also.
10284         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
10285         * src/roff/troff/env.h (environment): Updated.
10286         New elements `need_eol' and `ignore_next_eol' (for html output).
10287         * src/roff/troff/env.cc (environment::environment): Add initializers
10288         for `need_eol' and `ignore_next_eol'.
10289         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
10290         functions.
10291         (point_size, fill, no_fill, center, right_justify, line_length,
10292         indent, temporary_indent, break_request, handle_tab): Use
10293         `add_html_tag()'.
10294         (set_tabs): Use `add_html_tag_tabs()'.
10295         (environment::add_html_tag): Updated.
10296         (environment::do_break): Updated.
10297         * src/roff/troff/div.cc (space_request, flush_output): Use
10298         `environment::add_html_tag()'.
10299         * src/roff/troff/input.cc: Updated.
10300         New variable `html_level' to indicate nested `html-begin' requests.
10301         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
10302         (non_interpreted_char_node, token_node, non_interpreted_node): Add
10303         `force_tprint()' method.
10304         (token::next): Handle `\O'.
10305         (do_suppress): Implement it.
10306         (html_begin, html_end, html_image): New functions.
10307         (init_output_requests): Renamed to ...
10308         (init_html_requests): this.
10309         (main): Use it.
10310         (macro::append_str, macro::append_unsigned, macro::append_int): New
10311         methods.
10312         New variable `output_low_mark_miny' to limit minimal value of y.
10313         (reset_output_registers): Use it.
10314         (output_request): Removed.
10315         (get_output_registers): New function.
10316         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
10317         (*_node): Added `force_tprint()' if necessary.
10318         (special_node): New elements `tf' and `get_tfont()'.
10319         (suppress_node): New class.
10320         * src/roff/troff/node.cc:
10321         New global variables `image_no' and `suppress_start_page'.
10322         (real_output_file): New method `is_on()'.
10323         (troff_output_file): New method `start_special(tfont)'.
10324         (troff_output_file::really_print_line): Use `tprint' conditionally.
10325         (real_output_file::print_line): Updated.
10326         (real_output_file::on): Updated.
10327         (*_node): Added `force_tprint()'.
10328         (special_node::special_node): Initializer updated.
10329         (special_node::same, special_node::copy, special_node::tprint_start):
10330         Updated.
10331         (get_reg_int, get_reg_str): New functions.
10332         (suppress_node::*): New methods.
10333         New global variables last_position, last_image_filename;
10334         (min): New inline function.
10335         * src/roff/troff/reg.h, src/roff/troff/request.h,
10336         src/roff/troff/troff.h: Updated.
10338 2001-01-13  Werner LEMBERG  <wl@gnu.org>
10340         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
10341         documentation of `asciify' request.
10343 2001-01-12  Werner LEMBERG  <wl@gnu.org>
10345         * src/roff/troff/input.cc: Move definition of special characters
10346         like `ESCAPE_TILDE' to ...
10347         * src/roff/troff/input.h: New file.
10348         * src/roff/troff/Makefile.sub (HDRS): Add it.
10350         Extending the .asciify request to `unformat' space characters also.
10352         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10353         to count input space characters.
10354         Update constructors to take care of it.
10355         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10356         `ESCAPE_SPACE' instead of normal space.
10357         (word_space_node::asciify): New method.
10358         (unbreakable_space_node::asciify): New method.
10359         (word_space_node::merge_space): New method.
10360         * src/roff/troff/env.cc (environment::space_newline,
10361         environment::space): Add code to initialize `num_spaces' (using the
10362         constructor of `word_space_node').
10363         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10364         Document it.
10366 2001-01-09  Werner LEMBERG  <wl@gnu.org>
10368         * man/groff_char.man: Use table header traps only conditionally.
10370 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
10372         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10374 2001-01-08  Werner LEMBERG  <wl@gnu.org>
10376         Introducing the `box' and `boxa' requests which are similar to
10377         `di' resp. `da' but omitting a partially filled line (which is
10378         restored after ending the diversion).
10380         * src/roff/troff/div.h (diversion): Add elements to save partially
10381         filled line.
10382         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10383         partially filled line.
10384         (divert, divert_append): Updated.
10385         (box, box_append): New functions.
10386         (init_div_requests): Use them.
10387         * src/roff/troff/env.h (environment): do_divert() is now a friend.
10388         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10390         * doc/groff.texinfo: Fix documentation of `lf' request.
10392 2000-12-25  Werner LEMBERG  <wl@gnu.org>
10394         * src/roff/troff/troff.man, NEWS: Document `writem' request.
10396 2000-12-21  Werner LEMBERG  <wl@gnu.org>
10398         Ignore `ss' request if in compatibility mode.
10400         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10401         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10402         * src/roff/troff/env.cc (space_size): Use it.
10404         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10405         `ss' request in nroff mode.
10407         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10408         changes.
10410 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
10412         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10414 2000-12-13  Werner LEMBERG  <wl@gnu.org>
10416         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10417         * src/preproc/eqn/neqn.man: Small fixes and additions.
10419 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
10421         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10422         Fixing typo.
10424         * src/preproc/eqn/neqn.man: New file.
10426         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10427         negative' warning.
10429         * tmac/e.tmac: Add `T&' macro.
10430         Fix `indent cannot be negative' warning.
10431         * tmac/s.tmac: Fix `indent cannot be negative' warning.
10433 2000-12-07  Werner LEMBERG  <wl@gnu.org>
10435         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10437 2000-12-06  Werner LEMBERG  <wl@gnu.org>
10439         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10440         `alloca' symbol .
10442         * MORE.STUFF: Added info about deroff for djgpp.
10444         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10445         documentation of -rcR switch.
10447 2000-12-03  Werner LEMBERG  <wl@gnu.org>
10449         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10450         if -rcR=1 (which is now the default in nroff mode), a single, very
10451         long page is created instead of multiple pages: All `ne' and `wh'
10452         requests are put into conditionals; a new macro `an-end' is added to
10453         be called with `em'.
10455         Some other minor cleanups.
10457         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10459 2000-12-02  Werner LEMBERG  <wl@gnu.org>
10461         Fixing a bug which prevented hyphenation in words followed
10462         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10464         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10465         Adding possibly_break_line().
10466         * src/roff/troff/env.h (environment): Make possibly_break_line()
10467         public.
10469         Make `\~' usable in .tr request.
10471         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10472         (token): Add stretchable_space().
10473         * src/roff/troff/input.cc (token::next, token::delimiter,
10474         token::description, process_input_stack, do_translate,
10475         add_to_node_list, token::process): Use it.
10476         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10477         for adjusting the space.
10478         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
10479         for stretchable space.
10480         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10481         (make_node): Add code for stretchable space.
10482         * src/roff/troff/env.cc (environment::add_char): Use it.
10483         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10484         (get_copy, token::next, transparent_translate, asciify): Use it.
10486         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10487         doc/groff.texinfo: Updated.
10488         * man/groff.man: Small reorderings.
10490 2000-11-23  Werner LEMBERG  <wl@gnu.org>
10492         * NEWS: Fixes.
10493         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10494         option.
10495         * src/roff/troff/input.cc (main): Add `config_macro_path' and
10496         `safer_macro_path' to -M option.
10497         * src/roff/troff/troff.man: Fixes.
10499 2000-11-22  Werner LEMBERG  <wl@gnu.org>
10501         Use safer path (except for config files) if -U isn't specified.  Add
10502         a special macro path (without home and current directory) for config
10503         files.  Add home directory to unsafe path for consistency.  Don't
10504         include the home directory in the font path.
10506         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10507         `macro_path'.
10508         * src/include/macropath.h: Add `config_macrp_path'.
10509         * src/libs/libgroff/fontfile.cc: Fix font path.
10510         * src/roff/troff/input.cc (process_startup_file): Use
10511         `config_macro_path'.
10512         (main): Select unsafe path if -U is given.
10514         * src/preproc/eqn/main.cc (main): Fixing search path for
10515         configuration file.
10516         * src/preproc/eqn/eqn.man: Updated.
10518         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10519         Updated.
10521         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10522         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10523         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10524         src/devices/grotty/grotty.man: Updated.
10526         * Makefile.in: Fix comments.
10528 2000-11-17  Werner LEMBERG  <wl@gnu.org>
10530         * tmac/safer.tmac: Empty file added (again) for compatibility
10531         reasons.
10532         * tmac/Makefile.sub: Updated.
10534 2000-11-16  Werner LEMBERG  <wl@gnu.org>
10536         * src/devices/grodvi/dvi.cc (main),
10537         src/devices/grohtml2/post-html.cc (main),
10538         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10539         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10540         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10541         (main), src/preproc/html2/pre-html.cc (main),
10542         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10543         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10544         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10545         (main), src/utils/hpftodit/hpftodit.cc (main),
10546         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10547         (main), src/utils/lookbib/lookbib.cc (main),
10548         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10549         (main): Use stdout for -v.
10550         * src/roff/groff/groff.cc (run_commands),
10551         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10552         to make direct printing to stdout possible.
10553         * src/roff/groff/pipeline.h: Updated.
10555         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10556         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10557         * src/utils/afmtodit/afmtodit.man: Updated.
10559         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10560         (version): New function.
10561         (usage): Updated.
10562         * src/utils/addftinfo/addftinfo.man: Updated.
10564         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10565         Fixing copyright dates.
10567         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10568         replacing it.
10570         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10571         version_string.
10573         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10575 2000-11-15  Werner LEMBERG  <wl@gnu.org>
10577         In all programs, make -v return immediately with exit status 0 to
10578         be compliant with the GNU standard.
10580         * src/devices/grodvi/dvi.cc (main),
10581         src/devices/grohtml2/post-html.cc (main),
10582         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10583         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10584         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10585         (main), src/preproc/html2/pre-html.cc (main),
10586         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10587         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10588         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10589         (main): Implement it.
10590         * NEWS: Updated.
10592         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
10593         and postprocessors to the -v option.
10595         * src/roff/grog/grog.pl: Implement -v.
10596         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10597         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10599         * src/roff/nroff/nroff.sh: Implement -v.
10600         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10601         * src/roff/nroff/nroff.man: Updated.
10602         
10603         * src/preproc/eqn/main.cc (main): Fix comment typo.
10605         * MORE.STUFF: Added info about djgpp port of grap.
10607 2000-11-14  Werner LEMBERG  <wl@gnu.org>
10609         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10610         mode (or rather, implemented non-compatibility mode).
10611         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10613         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10614         replacing it -- we don't find gxditview otherwise.
10615         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10617         * src/preproc/pic/depend: Removed.  Unnecessary.
10619         Implemented dummy keyword `solid' in pic for compatibility with
10620         AT&T pic.
10622         * lex.cc (lookup_keyword): Added `solid'.
10623         * pic.y: Added SOLID with dummy rule.
10624         * pic.cc, pic_tab.h: Regenerated.
10625         * doc/pic.ms: Updated.
10627 2000-11-13  Werner LEMBERG  <wl@gnu.org>
10629         For security reasons, don't use the current directory but the home
10630         directory while searching and scanning troffrc and troffrc-end.
10631         Similarly, replace the current directory with the home directory
10632         in the font path.
10634         * Makefile.in (fontpath, tmacpath): Remove current directory.
10636         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10637         two parameters `add_home' and `add_current'.
10638         (search_path::~search_path, search_path::command_line_dir,
10639         search_path::open_file): Remove tests for `dirs' being zero.
10640         * src/include/searchpath.h: Adjust.
10641         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10642         `safer_macro_path'.
10643         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10645         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10646         * src/roff/troff/input.cc: Use `mac_path', initialized with
10647         `macro_path'.
10648         (process_startup_file): Set `mac_path' to `safer_macro_path'.
10649         * src/roff/troff/env.cc: Use `mac_path'.
10651         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10653         * NEWS, man/roff.man, src/roff/troff/troff.man,
10654         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10655         Updated.
10657 2000-11-12  Werner LEMBERG  <wl@gnu.org>
10659         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10661         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10662         * configure.in: Fix typo in comment.
10663         * configure: Regenerated.
10665         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10666         copyright dates.
10668 2000-11-08  Werner LEMBERG  <wl@gnu.org>
10670         Add system tmac directory (/usr/local/lib/groff/site-tmac).
10672         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10673         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10674         $(systemtmacdir).
10675         Use @libdir@.
10676         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10677         * tmac/Makefile.sub (install_data): Create
10678         $(systemtmacdir) and $(localtmacdir).
10679         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10680         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10681         NEWS, doc/groff.texinfo: Updated and minor fixes.
10683         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10684         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10685         $(systemtmacdir) since the wrapper files are platform-dependent.
10687 2000-11-01  Werner LEMBERG  <wl@gnu.org>
10689         * doc/groff.texinfo: Fix typo.
10691 2000-10-26  Werner LEMBERG  <wl@gnu.org>
10693         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
10694           tmac.doc.old -> doc-old.tmac
10695           tmac.an.old  -> an-old.tmac
10697         * tmac/tmac.*: Moved to ...
10698         * tmac/*.tmac: this.
10699         * tmac/man.local: Fix comment.
10700         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10701         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
10702         Added some `FILES' sections.  More use of @...@ directives.  Other
10703         minor updates.
10704         * arch/djgpp/README, font/devutf8/NOTES: Updated.
10705         * doc/homepage.ms, doc/groff.texinfo: Updated.
10706         * man/groff.man, man/roff.man: Updated.
10707         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10708         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10709         src/devices/grotty/grotty.man: Updated.
10710         * src/preproc/pic/pic.man: Updated.
10711         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10712         instead of -mdoc.old.
10713         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10714         * src/roff/nroff/nroff.man: Updated.
10715         * NEWS: Updated.
10717         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10719         * tmac/mm.diff: Removed -- it has no use now since the mm package
10720         is part of groff.
10722         * tmac/*: Removed trailing spaces.
10724         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10725         the tmac subdirectory also).
10727         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10728         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10729         stuff since it is no longer needed.
10731         * README, PROBLEMS: Updated.
10733 2000-10-25  Werner LEMBERG  <wl@gnu.org>
10735         Invert current behaviour: Search first FOOBAR.tmac, then
10736         tmac.FOOBAR.
10738         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10739         (open_mac_file, macro_source): Implement it.
10740         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10741         doc/groff.texinfo, NEWS: Document it.
10743         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10744         Small documentation improvements.
10746         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10747         subdirectory also).
10749         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10751 2000-10-24  Werner LEMBERG  <wl@gnu.org>
10753         Add local tmac directory (groff/site-tmac).
10755         * Makefile.in: Add $(localtmacdir).
10756         (uninstall_dirs): Add $(localtmacdir).
10757         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10758         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10759         in $(localtmacdir).  Create $(localtmacdir).
10760         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10761         Updated and minor fixes.
10763         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10765         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10767 2000-10-23  Werner LEMBERG  <wl@gnu.org>
10769         Move hyphen.us to tmac directory.
10771         * src/roff/troff/hyphen.us: Removed.
10772         * src/tmac/hyphen.us: Added.
10773         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10775         Change installation structure for data files from .../groff/... to
10776         .../groff/<version><revision>/... to be conform with other GNU
10777         programs.
10779         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10780         doc/Makefile: Implement it.
10781         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10782         * configure: Updated.
10783         * arch/djgpp/README, font/devutf8/NOTES: Use it.
10784         * NEWS: Document it.
10785         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10786         @MACRODIR@ instead of hard-coded directories.
10788 2000-10-22  Werner LEMBERG  <wl@gnu.org>
10790         Implement $GROFF_BIN_PATH environment variable (which defaults to
10791         $bindir) used for child programs of groff and similar wrappers.
10793         * gendefs.sh: Improve documentation.
10794         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10795         src/preproc/eqn/Makefile.sub (neqn),
10796         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10797         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10798         $GROFF_BIN_PATH.
10799         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10800         $GROFF_PATH__ (the latter for communication with troff).
10801         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10802         set.
10803         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10804         doc/groff.texinfo: Document it.
10806         * doc/groff.texinfo: Improve documentation of troff's -a option.
10808 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
10810         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10811         non-intrusive eol marker.
10812         (troff_output_file::determine_line_limits): New function.
10813         (troff_output_file::draw): Use it.
10814         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10815         output_pending_lines() instead of output_line().
10816         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10817         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10818         createImage): Small fixes.
10819         
10820 2000-10-14  Werner LEMBERG  <wl@gnu.org>
10822         Replace tmac.safer with a real secure solution.
10824         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10825         system_request, pipe_output): Disable requests if in safer mode.
10826         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10827         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10828         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10829         doc/groff.texinfo, src/roff/groff/groff.man,
10830         src/roff/troff/troff.man, arch/djgpp/README: Updated.
10832         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10833         (resource_manager::output_prolog): Replace setenv() with putenv().
10835 2000-10-09  Werner LEMBERG  <wl@gnu.org>
10837         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10838         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10839         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10840         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10841         compilation errors with some compilers.  It seems that this code
10842         is no longer necessary -- if yes, it is easy to add some #ifdef's
10843         for that particular old-fashioned compiler.
10845         * MORE.STUFF: Added info about Meta-tbl.
10847         * doc/groff.texinfo: Added more info about `.if "..."..."'.
10849 2000-10-07  Werner LEMBERG  <wl@gnu.org>
10851         Adding a new escape sequence \B'...': If the string between
10852         the delimiters is a valid numeric expression, return the character
10853         `1', and `0' otherwise.  This is an analogon to \A.
10855         * src/roff/troff/input.cc (do_expr_test): Implement it.
10856         (token::next): Use it.
10857         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10859         * tmac/tmac.trace: Made independent from escape character.
10861 2000-10-06  Werner LEMBERG  <wl@gnu.org>
10863         Adding a new request .dei: define indirect.  The first and second
10864         parameter of .dei are taken from string registers instead directly;
10865         this very special request is needed to make tmac.trace independent
10866         from the escape character (which might even be disabled).
10868         * src/roff/troff/input.cc (do_define_macro): Implement it.
10869         (define_macro_indirect): New function.
10870         (init_input_requests): Use it.
10872         Adding two requests .ecs and .ecr: Save and restore the escape
10873         character.  These two requests are needed to make tmac.trace
10874         independent from the escape character (which might even be
10875         disabled).
10877         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10878         Implement it.
10879         (init_input_requests): Use it.
10881         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10883 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10885         Adding a new option -P and new environment variable GROPS_PROLOGUE
10886         to grops, selecting a different prologue file (minor modifications
10887         by WL).
10889         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10890         src/devices/grops/ps.cc (main): Implement it.
10891         * src/devices/grops/grops.man, NEWS: Document it.
10893 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10895         * INSTALL: Add info about selecting paper format.
10897 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10899         * src/roff/troff/input.cc (main): Fixing compiler warning.
10900         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10901         strings.h from the former to the latter.
10902         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10903         stuff from the former to the latter.
10905 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10907         Implementing two new requests .tm1 and .tmc: The former is similar
10908         to .tm but can output leading spaces; its syntax is similar to
10909         defining a string, i.e., a `"' can be used to mark the beginning of
10910         the string to be written to stderr: `.tm1 " test'.  The latter is
10911         similar to .tm1 but doesn't write out a final newline character.
10913         * src/roff/troff/input.cc (terminal1, terminal_continue,
10914         do_terminal): New functions.
10915         (init_input_requests): Use them.
10916         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10918 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10920         * tmac/groff_mdoc.samples.man: Small fixes.
10922 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10924         * tmac/groff_mdoc.man: Fixing typo.
10926 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10928         Implementing a .nop request which does nothing.
10930         * src/roff/troff/input.cc (nop_request): New function.
10931         (init_input_requests): Use it.
10932         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10934 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10936         * doc/groff.texinfo: Added some comments.
10938 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10940         * src/roff/troff/TODO: Updated.
10942 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10944         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10946 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10948         * font/devps/generate/Makefile (SHELL): Define explicitly to
10949         "/bin/sh", for non-Unix platforms.
10950         (extraclean): Use a more portable "" quoting instead of a
10951         backslash (which doesn't work on DOS/Windows).
10952         
10953         * font/devlj4/generate/Makefile (extraclean): Ditto.
10955         * font/devdvi/generate/Makefile (extraclean): Ditto.
10957 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10959         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10960         src/roff/troff/troff.man: Document Eli's latest changes.
10962 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10964         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10965         macro file names of the form NAME.tmac as well as tmac.NAME.
10967 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10969         * src/include/posix.h: Remove definition of FILENAME_MAX.
10971         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10972         `sys_fatal' and `stop' function().
10974         * test-groff: Updated.
10976 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10978         Added the new troff command .output <arg> to suppress output (while
10979         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10980         registers (for passing the output dimensions to the output device).
10982         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10983         parameter.
10984         * src/roff/troff/node.h, src/roff/troff/node.cc
10985         (troff_output_file::really_print_line,
10986         ascii_output_file::really_print_line,
10987         supress_output_file::really_print_line): Use `width' parameter.
10988         (troff_output_file::really_on, troff_output_file::really_off,
10989         output_file::on, output_file::off, real_output_file::on,
10990         real_output_file::off, real_output_file::really_on,
10991         real_output_file::really_off): New functions.
10992         (real_output_file:public output_file): New variable `output_on'.
10993         (real_output_file::begin_page, real_output_file::copy_file,
10994         real_output_file::transparent_char, real_output_file::print_line):
10995         Use it.
10996         (real_output_file::print_line): Use check_output_limits.
10997         * src/roff/troff/reg.h, src/roff/troff/request.h,
10998         src/roff/troff/input.cc (assign_registers): New function to remove
10999         two `goto's.
11000         (do_ps_file): Use it.
11001         (check_output_limits, reset_output_registers, output_request,
11002         init_output_requests): New functions.
11003         (init_input_requests): Updated.
11005         Added new grohtml2 device and html2 preprocessor (coding
11006         not yet finished) which will eventually replace grohtml.
11008         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
11009         Updated.
11010         * src/include/htmlindicate.h, src/include/htmlindicate
11011         (html_begin_suppress, html_end_suppress): New functions.
11012         * src/preproc/tbl/main.cc: Use it.
11013         * src/roff/groff/groff.cc: Add support for html2 device (which will
11014         automatically invoke the html2 preprocessor).
11015         * src/roff/troff/input.cc (is_html2): New variable.
11016         * src/roff/troff/troff.h, src/roff/troff/env.h,
11017         src/roff/troff/env.cc (environment::add_html_tag): New function
11018         (uses `is_html2').
11019         (environment::do_break): Use it.
11020         * font/devhtml2/*: New files.
11021         * src/devices/grohtml2: New device.
11022         * src/preproc/html2: New preprocessor.
11023         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
11025 2000-08-23  Werner LEMBERG  <wl@gnu.org>
11027         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
11029 2000-08-22  Werner LEMBERG  <wl@gnu.org>
11031         * src/include/lib.h: Provide a fix for IRIX to not include
11032         groff-getopt.h.
11034 2000-08-18  Werner LEMBERG  <wl@gnu.org>
11036         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
11037         since some non-GNU sed programs can't handle null regexps.
11038         * configure, src/preproc/eqn/Makefile.sub,
11039         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
11041         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
11042         bug (string.h and strings.h are both needed according to latest
11043         POSIX standard).
11045         * MORE.STUFF: Added info about unroff and troffcvt.
11047 2000-08-08  Werner LEMBERG  <wl@gnu.org>
11049         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
11050         used before -ms.
11052         * tmac/tmac.man.old: Remove unused number register.
11054         * tmac.doc: Minor documentation fix.
11056 2000-08-07  Paul Eggert  <eggert@twinsun.com>
11058         * src/roff/groff/pipeline.c (is_system_shell):
11059         Fix typo: "monocased_shell" no longer exists.
11061 2000-08-07  Paul Eggert  <eggert@twinsun.com>
11063         Remove FILENAME_MAX limits.
11065         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
11066         that the argument length is less than FILENAME_MAX.
11067         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
11068         Use struct hack to allocate and free file name.
11069         (struct xtmpfile_list): fname is now part of the structure,
11070         not a pointer to another string.
11072 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
11074         * src/include/posix.h: Add a default value for FILENAME_MAX.
11076 2000-08-06  Paul Eggert  <eggert@twinsun.com>
11078         Add support for new BSD-style man pages (with ".Dd" instead of
11079         ".TH"), so that "groff -man" understands both styles, even
11080         when running "groff -man" on a host whose system man page
11081         macros don't support ".Dd".
11083         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
11084         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
11085         in case the system man macros don't define Dd or TH.
11087         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
11088         * tmac/tmac.an: New one-line file.
11089         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
11091 2000-08-06  Werner LEMBERG  <wl@gnu.org>
11093         * src/roff/troff/troff.man: Fixing typos.
11095 Version 1.16.1 released
11096 =======================
11098 2000-07-31  Werner LEMBERG  <wl@gnu.org>
11100         Preparing release 1.16.1.
11102         * REVISION: Revision number set to 1.
11103         * MORE.STUFF: Added info about port to DOS.
11104         * NEWS, win32-diffs: Updated.
11106         * src/include/nonposix.h: Remove first line -- this file is used
11107         in C also.
11109         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
11110         link to it.
11112 2000-07-30  Werner LEMBERG  <wl@gnu.org>
11114         * doc/texinfo.tex: Update to latest version.
11116 2000-06-28  Paul Eggert  <eggert@twinsun.com>
11118         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
11119         commands that fail.  Don't assume that "export a=b" is valid shell
11120         syntax.  This is needed for Solaris 2.5.1.
11122         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
11123         comment about missing Solaris headers.
11125         * PROBLEMS: Add section about problems with Sun Make and VPATH.
11127 2000-06-25  Werner LEMBERG  <wl@gnu.org>
11129         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
11130         SET_BINARY().
11132         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
11134         * win32-diffs: Updated.
11135         * README.WIN32: Added CRs to make all Windows editors happy.
11137         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
11138         src/roff/groff/pipeline.c).
11140 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
11142         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
11143         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
11145 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
11147         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
11148         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
11149         are binary files.
11150         (main): Support non-Posix systems with several different styles of
11151         slash characters in file names.
11153         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
11154         (main) [SET_BINARY]: Switch stdin into binary mode.
11156         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
11157         (main): Support file names with several possible slash-type
11158         characters, as given by DIR_SEPS[] in nonposix.h.
11159         (main) [__MSDOS__]: If renaming the temporary index file fails
11160         because it has more than one dot in its trunk, replace the dot
11161         with an underscore and try again.
11162         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
11163         Newline.
11164         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
11166         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
11167         (File::File): Open the input file in binary mode.  Strip CR
11168         characters from each CR-LF pair.
11169         (xbasename): Support file names with several possible slash-type
11170         characters, as given by DIR_SEPS[] in nonposix.h.
11172         * src/include/Makefile.sub (HDRS): Add nonposix.h.
11174         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
11175         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
11176         [!_POSIX_VERSION]: Define for traditional Unix systems.
11177         (real_output_file::real_output_file): Remove the MSVC-specific
11178         call to popen, use instead POPEN_WT, appropriately defined on
11179         nonposix.h.  #include nonposix.h.
11180         (real_output_file::~real_output_file): Remove the MSVC-specific
11181         call to pclose, a suitable macro is now defined on nonposix.h.
11182         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
11183         and WEXITSTATUS instead of assuming traditional Unix
11184         interpretation of the status returned by pclose.
11186         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
11187         call to popen, use POPEN_RT instead (appropriately defined on
11188         nonposix.h).  #include nonposix.h.
11189         (ps_bbox_request): Open the PostScript file in binary mode.
11190         Close the file after processing it.
11191         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
11192         nonposix.h.
11194         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
11195         A version of run_pipeline that doesn't use `fork'.
11196         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
11197         (system_shell_name, system_shell_dash_c)
11198         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
11199         the ugliness of testing DOS/Windows file names for equality, and
11200         support both stock shells and ports of Unix shells.
11202         * src/roff/groff/groff.cc: #include nonposix.h.
11203         (BSHELL): Definition moved to nonposix.h.
11204         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
11205         instead of a literal "-c".
11206         (xbasename): Support file names with several possible slash-type
11207         characters, as given by DIR_SEPS[] in nonposix.h.
11208         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
11209         of literal strings.
11211         * src/preproc/soelim/soelim.cc: #include nonposix.h.
11212         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
11214         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
11215         pic_tab.h.
11217         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
11219         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
11220         eqn_tab.h.
11222         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
11224         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
11225         P_tmpdir is defined, use it instead of the literal "/tmp".
11226         (remove_tmp_files, add_tmp_file): New functions.
11227         (xtmpfile): Record temporary files and register an atexit function
11228         to delete them explicitly, instead of relying on the OS to do
11229         that, which doesn't work on non-Unix systems.
11231         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
11232         (search_path::search_path): Use PATH_SEP instead of a literal
11233         colon.
11234         (search_path::command_line_dir): Ditto.
11235         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
11236         to support non-Posix systems.
11238         * src/libs/libbib/search.cc: #include nonposix.h.
11239         (search_list::add_file): Open the file in binary mode.
11241         * src/libs/libbib/linear.cc: #include nonposix.h.
11242         (file_buffer::load): Remove \r characters preceding \n from the
11243         loaded buffer.
11245         * src/libs/libbib/index.cc: #include nonposix.h.
11246         (make_index_search_item): Open index_filename in O_BINARY mode.
11247         (index_search_item_iterator::get_tag): Ditto.  Remove \r
11248         characters before \n characters.
11249         (index_search_item::check_files): Open files in binary mode.
11250         (index_search_item::munge_filename): Support DOS-style file names
11251         with backslashes and drive letters, use IS_ABSOLUTE.
11253         * src/devices/grops/ps.cc: #include nonposix.h.
11254         (main) [SET_BINARY]: Switch stdout to binary mode.
11256         * src/devices/grolj4/lj4.cc: #include nonposix.h.
11257         (main) [SET_BINARY]: Switch stdout to binary mode.
11259         * src/devices/grolbp/lbp.cc: #include nonposix.h
11260         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
11262         * src/devices/grodvi/dvi.cc: #include nonposix.h.
11263         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
11264         nonposix.h).
11265         (main) [SET_BINARY]: Switch stdout to binary mode.
11266         [_MSC_VER]: Remove an explicit call to _setmode.
11268         * src/include/nonposix.h: New file.
11270         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
11271         operation when building with DJGPP.
11272         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
11273         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
11274         ENVSETUP.
11276         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
11277         MS-DOS.
11278         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
11279         etc. can include a semi-colon on DOS/Windows.
11280         (depend.temp): Use depend1.temp instead of depend.temp1, to
11281         prevent files from overerwiting each other on 8+3 filesystems.
11283         * gendef.sh (t): Change definition to work with DOS/Windows.
11285         doc/groff.texinfo: Apart of some typo corrections, I also changed
11286         some index entris, to make them more non-ambiguous, and also put
11287         @ignore around some parts that are not yet written, to allow the
11288         Info output be readable.
11290 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
11292         Replaced specific checks for function declarations with a generic
11293         routine taken from GNU bfd.
11295         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
11296         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
11297         * configure.in: Use it.
11298         * src/devices/grolbp/lbp.cc, src/include/lib.h,
11299         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
11300         src/roff/groff/groff.cc: Use it.
11301         * Makefile.in, configure: Updated.
11303 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
11305         * src/devides/grolbp/lbp.h: Removed unused variables.
11307 2000-05-31  Keith Thompson  <kst@sdsc.edu>
11309         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
11310         strncasecmp().
11312 2000-05-31  Werner LEMBERG  <wl@gnu.org>
11314         * aclocal.m4 (GROFF_SRAND): New function to test the return value
11315         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
11316         * configure.in: Use it.
11317         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
11318         * configure, Makefile.in: Updated.
11320         * configure.in: Add test for strncasecmp().
11321         * src/include/lib.h: Use it.
11323 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
11325         * src/preproc/grn/Makefile.sub: Add MLIB.
11327 2000-05-29  Nix  <nix@esperi.demon.co.uk>
11329         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
11331 2000-05-29  Werner LEMBERG  <wl@gnu.org>
11333         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
11335         * PROBLEMS: Small update.
11337         * src/devices/grolbp/lbp.cc: Various small fixes.
11339 2000-05-28  Keith Thompson  <kst@sdsc.edu>
11341         * src/roff/nroff/nroff.sh: Fix main loop syntax.
11343         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
11345 2000-05-25  Werner LEMBERG  <wl@gnu.org>
11347         * man/roff.man: Removed unused macro.
11349 2000-05-24  Werner LEMBERG  <wl@gnu.org>
11351         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
11352         This is needed e.g. if you do
11353         `make distclean; ./configure; make dist'.
11355 Version 1.16 released
11356 =====================
11358 2000-05-23  Werner LEMBERG  <wl@gnu.org>
11360         Adding font CWI (constant width italic) to devdvi.
11362         * font/devdvi/CWI: New file.
11363         * font/devdvi/generate/Makefile: Add generating rule.
11364         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11365         tmac/tmac.dvi: Use it.
11366         * NEWS: Announce it.
11368         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11369         * font/devlj4/generate/Makefile: Cosmetic changes only.
11371         * man/groff.man: Removed most of the redundant description of
11372         special characters (which is in groff_char.man).  Added font
11373         translation CB->CR for devdvi.  Other minor fixes.
11375         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11376         (registered) symbols.
11378 2000-05-22  Werner LEMBERG  <wl@gnu.org>
11380         * doc/Makefile: Added rule for creating info files.
11382         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
11383         AMS font metrics.
11384         * font/devdvi/generate/Makefile: Fixed dependencies.
11386         * font/devps/*: Regenerated.  Heavy changes for Bookman and
11387         NewCentury Schoolbook!
11388         * font/devps/generate/afmname: Will now run with GNU awk.
11389         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11390         * font/devps/generate/Makefile: Cosmetic changes only.
11392 2000-05-21  Werner LEMBERG  <wl@gnu.org>
11394         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11395         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
11396         `.SS' now produces a heading with a smaller size than `.SH'. 
11397         Completely formatted.
11398         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11400         * man/groff.man: Improved table appearance.  Use of `eo' request
11401         to reduce number of doubled backslashes in macro definitions.
11402         Replacing `\e' with `\(rs'.  Other minor fixes.
11404         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11405         to have correct line number.
11407         * INSTALL: Small improvement.
11409 2000-05-20  Bernd Warken  <bwarken@mayn.de>
11411         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11412         WL).
11414 2000-05-19  Bernd Warken  <bwarken@mayn.de>
11416         * man/groff.man: Complete update (with a lot of corrections by WL).
11418 2000-05-18  Werner LEMBERG  <wl@gnu.org>
11420         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11422         * font/*/*: Implement it.
11423         * man/groff_char.man, NEWS: Document it.
11425         * src/include/unix.h: Removed.  It isn't used.
11427         * doc/groff.texinfo: Slight improvements.
11429 2000-05-17  Werner LEMBERG  <wl@gnu.org>
11431         * README, win32-diffs: Small fixes and improvements.
11433 2000-05-16  Werner LEMBERG  <wl@gnu.org>
11435         * FDL: New file (the Free Documentation License version 1.1).
11437         * doc/groff.texinfo: Added many start-up values for gtroff.
11438         Some structural improvements of the source code.
11440 2000-05-15  Werner LEMBERG  <wl@gnu.org>
11442         * src/roff/troff/input.cc: Added small comment about troffrc-end.
11443         * src/roff/troff/troff.man: Added info about troffrc-end.
11445 2000-05-14  Werner LEMBERG  <wl@gnu.org>
11447         * Makefile.in (EXTRADIRS): Fix typos.
11448         (dist): Handle deletion of old .tar.gz file correctly.
11449         (DISTDIRS): Include all tty output devices.
11451         * doc/groff.texinfo: Adding more cross references; countless other
11452         fixes.
11454 2000-05-13  Werner LEMBERG  <wl@gnu.org>
11456         * MORE.STUFF: Added Robert Marks's utilities.
11458 2000-05-12  Werner LEMBERG  <wl@gnu.org>
11460         Added win32 port contributed by Blake McBride
11461         <blake@florida-software.com>.
11463         * README.WIN32, win32-diffs: New files.
11464         * NEWS: Updated.
11466         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11467         (tmove, tmove2): Added parentheses to avoid compiler warnings.
11468         (change): Removed unused variables.
11470         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11471         (savebounds): Changed return value from `int' to `void'.
11472         * src/preproc/grn/hdb.cc: Ditto.
11474         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11475         final backslash in comment to avoid compiler warning.
11477         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11479         * doc/groff.texinfo: More fixes.
11481 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
11483         * tmac/tmac.doc: Documentation fix.
11485 2000-05-11  Werner LEMBERG  <wl@gnu.org>
11487         * doc/groff.texinfo: Reading the source code shows up a lot of
11488         omissions and incorrect data...  More conversion to @Deffn macros.
11490 2000-05-10  Werner LEMBERG  <wl@gnu.org>
11492         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11493         dependency.
11495         * src/roff/troff/request.h: Removing unused `no_break_flag'.
11497 2000-05-09  Werner LEMBERG  <wl@gnu.org>
11499         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11500         improvements.
11502         * doc/groff.texinfo: Extended history section.  More conversion to
11503         @Deffn macros.  More .tr documentation.
11505 2000-05-07  Werner LEMBERG  <wl@gnu.org>
11507         * doc/groff.texinfo: Completed tab section.  Added info about
11508         fields.
11510 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
11512         * PROBLEMS: Describe configure script fix for OS/390 Unix.
11514 2000-05-05  Werner LEMBERG  <wl@gnu.org>
11516         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11517         LaTeX 2e).
11518         * NEWS: Document it.
11520         * man/troff.man: Minor optical improvements.
11522 2000-05-03  Werner LEMBERG  <wl@gnu.org>
11524         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11526         * font/*/*: Implement it.
11527         * man/groff_char.man, NEWS: Document it.
11529 2000-05-02  Werner LEMBERG  <wl@gnu.org>
11531         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11532         expansion.
11533         * NEWS: Document the three new man pages.
11535         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11536         * configure: Updated.
11538         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11540 2000-05-01  Werner LEMBERG  <wl@gnu.org>
11542         Added grap support to grog.
11544         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11545         * src/roff/grog/grog.man: Document it.
11547         * doc/groff.texinfo, NEWS: Add info about grap support.
11549         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11550         (with slight fixes by me).
11552         * tmac/groff_tmac.man: New file documenting tmac mechanism.
11553         * tmac/Makefile.sub: Add groff_tmac.man.
11554         * man/roff.man: New file giving overview of roff system.
11555         * man/troff.man: A short reference of troff.
11556         * man/Makefile.sub: Add roff.man and troff.man.
11558 2000-04-30  Werner LEMBERG  <wl@gnu.org>
11560         Added grap support to groff.
11562         * src/roff/groff/groff.cc: Implement it.
11563         * src/roff/groff/groff.man: Document it.
11565         * src/devices/grotty/grotty.man: Add cp1047 device.
11566         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11567         Ditto.
11568         * src/roff/groff/groff.man: Ditto.
11569         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11570         * doc/groff.texinfo: Ditto.
11572         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11573         for cp1047.
11575 2000-04-29  Werner LEMBERG  <wl@gnu.org>
11577         * man/groff_char.man: Add `pc' glyph.
11578         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11579         * tmac/tmac.tty: Add `pc' glyph.
11580         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
11581         we use cp1047 output device.
11583         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11584         there are still hardcoded latin1->unicode values in utf8's font
11585         definition files.
11586         * configure: Updated.
11587         * NEWS: Minor clarification.  Updated.
11589         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
11590         Unix.
11592 2000-04-28  Werner LEMBERG  <wl@gnu.org>
11594         Adding EBCDIC code page 1047.
11596         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11597         font/devcp1047/DESC.proto: New files.
11599         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11600         either ascii/latin1 or cp1047.
11601         * Makefile.in: Use it.
11602         * configure: Updated.
11604         Replacing and/or adding `md' (mathdot) glyph with `pc'
11605         (periodcentered) in all text fonts.
11607         * font/*/*: Change it.
11609 2000-04-27  Werner LEMBERG  <wl@gnu.org>
11611         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11613         * configure.in: Add check for strings.h.
11614         * src/include/driver.h: Use HAVE_STRINGS_H.
11615         * src/devices/grolbp/lpb.cc: Remove string.h.
11617         * src/include/groff-getopt.h: New file.  It will be used instead of
11618         getopt.h (to be included in lib.h) to avoid endless problems with
11619         picky C++ compilers.
11620         * src/include/lib.h: Use groff-getopt.h.
11621         * src/include/Makefile.sub: Updated.
11623         * configure: Updated.
11624         * Makefile.in: Updated.
11626         * NEWS: Mention EBCDIC support.
11628 2000-04-26  Werner LEMBERG  <wl@gnu.org>
11630         * TODO: Some additions.
11632 2000-04-25  Werner LEMBERG  <wl@gnu.org>
11634         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11635         of mso request.
11637 2000-04-23  Werner LEMBERG  <wl@gnu.org>
11639         * src/roff/troff/troff.man: Minor fixes.
11641 2000-04-22  Werner LEMBERG  <wl@gnu.org>
11643         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11644         `.T' string register and the incompatible definition of the `.T'
11645         number register (compared to Unix troff).
11647         * man/groff_char.man: Add some missing characters.
11648         * font/devutf8/NOTES: Update.
11650 2000-04-21  Werner LEMBERG  <wl@gnu.org>
11652         * src/include/htmlindicate.h, src/include/lib.h,
11653         src/include/posix.h: Fix copyright.
11655         * src/include/Makefile.sub: Update.
11657 2000-04-20  Werner LEMBERG  <wl@gnu.org>
11659         * src/roff/troff/input.cc (input_char_description): Removing
11660         superfluous space char.
11662         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11664         * doc/groff.texinfo: Document EBCDIC.
11666 2000-04-19  Werner LEMBERG  <wl@gnu.org>
11668         Introducing `shc' as the glyph name for the soft hyphen character.
11670         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11671         font/devlatin1/R.proto: Use it.
11673         * NEWS: Updated.
11675 2000-04-18  Werner LEMBERG  <wl@gnu.org>
11677         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11678         dependency on ASCII order.
11680 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
11682         * src/libs/libgroff/illegal.c: Added EBCDIC table.
11683         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11685         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11686         to increase portability.
11688 2000-04-15  Werner LEMBERG  <wl@gnu.org>
11690         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11691         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11692         the generic `\n' if under OS/390 Unix.
11694         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11696         * configure: Regenerated.
11698 2000-04-14  Werner LEMBERG  <wl@gnu.org>
11700         * doc/groff.texinfo: More conversions to @Deffn.
11702 2000-04-12  Werner LEMBERG  <wl@gnu.org>
11704         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11705         with `:'.
11707         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11709 2000-04-10  Werner LEMBERG  <wl@gnu.org>
11711         * doc/groff.texinfo: More conversions to @Deffn.
11713 2000-04-08  Werner LEMBERG  <wl@gnu.org>
11715         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11716         Updated to latest version (glibc 2.1.3).
11718 2000-04-07  Werner LEMBERG  <wl@gnu.org>
11720         * doc/Makefile (clean): Include more index files.
11721         Add rule texinfo->dvi.
11723 2000-04-05  Werner LEMBERG  <wl@gnu.org>
11725         * doc/groff.texinfo: Added new index `op' for operators.  More
11726         info on end of sentence characters.  More use of @Deffn.
11728 2000-03-30  Werner LEMBERG  <wl@gnu.org>
11730         * */*.man: Adding a note that a whitespace can be inserted between
11731         a command line option and its parameter -- we are using GNU getopt.
11733         * src/roff/groff/groff.man: Add example of `-m mandoc'.
11735 2000-03-28  Werner LEMBERG  <wl@gnu.org>
11737         Correct anachronism of calling the man macro file with `-man'
11738         instead of `-m man' etc.
11740         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11741         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11742         load tmac.<package>.
11744         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
11746         * NEWS: Updated.
11748         * doc/groff.texinfo: Updated.
11750         * tmac/groff_man.man: Copyright added.
11752 2000-03-27  Werner LEMBERG  <wl@gnu.org>
11754         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11755         typeset the request resp. escape name with a tt font -- due to a
11756         bug in texinfo.tex it is necessary to use the `-e' switch with
11757         texi2dvi.
11759         Improving info about usage of groff units.
11761         Other minor fixes.
11763 2000-03-20  Werner LEMBERG  <wl@gnu.org>
11765         * doc/groff.texinfo: Added section about man macro package
11766         (I've basically taken groff_man.man).  Introducing new indices `ma'
11767         for macros/strings and `gl' for glyph names.  Other minor fixes.
11769         * tmac/groff_man.man: Fixed some typos.
11771 2000-03-19  Werner LEMBERG  <wl@gnu.org>
11773         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11774         Other minor fixes.
11776         * doc/texinfo.tex: New file.
11778 2000-03-18  Werner LEMBERG  <wl@gnu.org>
11780         * doc/groff.texinfo: Improved section on number registers.  Other
11781         minor updates.
11783 2000-03-16  Werner LEMBERG  <wl@gnu.org>
11785         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
11786         synopsis.
11788         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11789         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11790         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11791         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11793         * src/preproc/grn/grn.man: Better synopsis; added copyright.
11795         * src/roff/grog/grog.man: Updated copyright date.
11797 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
11799         * configure.in: Added test for strdup.
11801         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11802         is available.
11804         Replaced dynamic allocation of arrays `[...]' with `new' operator.
11806         Other minor fixes.
11808 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
11810         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11812 2000-03-11  Werner LEMBERG  <wl@gnu.org>
11814         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11815         compilers silent.
11816         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11817         * src/include/lib.h: Remove some spaces.
11819 2000-03-10  Werner LEMBERG  <wl@gnu.org>
11821         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11822         initializers from arguments (some compilers don't like this).
11824 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
11826         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11827         used by pic and eqn to tell grohtml where the graphic regions start
11828         and end.
11829         * src/libs/libgroff/Makefile.sub: Use it.
11830         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11831         graphic_start() and graphic_end() from htmlindicate.cc.
11833 2000-03-09  Werner LEMBERG  <wl@gnu.org>
11835         * tmac/tmac.safer: Will now work correctly in compatibility mode.
11836         * tmac/groff_man.man: More fixes.
11838 2000-03-08  Werner LEMBERG  <wl@gnu.org>
11840         * doc/Makefile: Added texput.log to the `clean' target.
11841         * doc/groff.texinfo: Added info about delimiters for escapes.
11843 2000-03-08  Bernd Warken  <bwarken@mayn.de>
11845         * src/preproc/pic/pic.man: Add info on conversion of pic images to
11846         other graphic formats.
11848 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
11850         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11851         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11852         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11853         files.
11855 2000-03-07  Werner LEMBERG  <wl@gnu.org>
11857         * doc/groff.texinfo: Spelling fixes.
11859 2000-03-06  Werner LEMBERG  <wl@gnu.org>
11861         * tmac/groff_man.man: Completely revised to cover everything in
11862         tmac.an.
11864         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11865         Other minor fixings.
11866         * src/roff/troff/env.cc (environment_copy): Improve error message and
11867         fix itoa->i_to_a.
11868         * src/roff/troff/TODO: Updated.
11870         * doc/Makefile: Bug fixes -- this is still provisional, though...
11872         * tmac/eqnrc: Small fixes.
11874 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
11876         Adding a request `evc' to copy environments.
11878         * src/roff/troff/env.cc (environment::copy, environment_copy):
11879         Implement it.
11880         * src/roff/troff/env.h: Add prototype.
11882 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11884         Adding strsep() -- Solaris 8 doesn't have it.
11886         * configure.in: Test it.
11887         * src/devices/grolbp/lbp.cc: Add code.
11889 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11891         * src/roff/troff/div.cc (macro_diversion::output,
11892         top_level_diversion::output): Fixing an incompatibility with
11893         original troff: \x'0' updates the .a register also.  Thanks to
11894         <Andries.Brouwer@cwi.nl> for pointing this out.
11895         * doc/groff.texinfo: Document it.
11897         * Makefile.in: Create Makefile.dep if necessary before calling the
11898         submake process to avoid warning about nonexistent file.
11900         * NEWS, PROJECTS: Updated.
11902 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11904         * tmac/troffrc: Add tmac.lbp.
11906 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11908         * tmac/tmac.lbp: New file.
11909         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11910         command.
11912 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11914         * Makefile.in: Fixing $(subdir).
11916         * README, NEWS: Small fixes.
11918         * test-groff: Adding path to grolbp.
11920         * configure.in: The (new) file src/xditview/Imakefile.in will be
11921         also configured -- it is now possible to build gxditview in a
11922         directory different from $srcdir.
11924 2000-03-02  Blake McBride  <blake@florida-software.com>
11926         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11928         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11930 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11932         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11933         files.
11935 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11937         Adding GNU getopt to the groff distribution.
11939         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11940         New files.
11941         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11942         * aclocal.a4: Remove GROFF_GETOPT function.
11943         * configure.in, Makefile.in, PROBLEMS: Update.
11944         * src/include/lib.h: Replace getopt tests with getopt.h.
11945         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11947         * doc/groff.texinfo: Further checking/updating.  Adding more index
11948         entries.
11950         * man/groff_out.man: Fix nroff mode activation (for emacs).
11951         * man/groff_font.man: Add missing ligature.
11953 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11955         * doc/groff.texinfo: Further checking/updating.  Adding more index
11956         entries.
11958         * src/devices/grolbp/grolbp.man: Added a comment line at the
11959         beginning of the file (similar to shell scripts) which indicates
11960         that `tbl' should be used as a preprocessor.
11962 2000-02-27  Blake McBride  <blake@florida-software.com>
11964         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11965         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11967         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11968         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11969         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11970         src/include/lib.h, src/libs/libgroff/errarg.cc,
11971         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11972         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11973         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11974         src/roff/troff/div.cc, src/roff/troff/env.cc,
11975         src/roff/troff/input.cc, src/roff/troff/node.cc,
11976         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11977         if_to_a() to avoid name clashes.
11978         * src/include/posix.h: Don't use unistd.h.
11979         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11980         clause for integrating non-Unix xtmpfile() code.
11981         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11982         structure; use "rt" for popen() in pipe_source(); add getpid()
11983         dummy function.
11984         * src/roff/troff/node.cc: Use special versions of popen() in
11985         real_output_file() and pclose() in ~real_output_file().
11987 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11989         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11990         LBP-8 series laser printers).  This code has been contributed by
11991         Francisco Andrés Verdú <pandres@dragonet.es>.
11993         * src/devices/grolbp/*: The grolbp output device.
11994         * font/devlpb/*: The font description files.
11995         * Makefile.in: Add grolpb and devlbp subdirectories.
11997         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11998         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11999         typographic fixes.
12001         * doc/groff.texinfo: Further checking/updating.  Adding more index
12002         entries.
12004         * NEWS: Updated.
12006         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
12008         * man/groff_font.man: Adding info about obsolete DESC keywords.
12009         * src/devices/grolj4/grolj4.man: Documenting additional DESC
12010         keywords.
12012 2000-02-26  Werner LEMBERG  <wl@gnu.org>
12014         * src/preproc/grn/grn.man: Added info about the gremlin file format
12015         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
12017 2000-02-25  Werner LEMBERG  <wl@gnu.org>
12019         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
12020         friends to be non-integer.
12022         * src/preproc/grn/grn.man: Document it.
12024         * doc/groff.texinfo: Further checking/updating.  Adding more index
12025         entries.
12027 2000-02-24  Werner LEMBERG  <wl@gnu.org>
12029         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
12030         line thicknesses to be integer multiples of this value.
12032         * src/preproc/grn/grn.man: Commenting out the -s option -- the
12033         corresponding code doesn't work (yet).
12035         * doc/groff.texinfo: Further checking/updating.  Adding more index
12036         entries.
12038 2000-02-23  Werner LEMBERG  <wl@gnu.org>
12040         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
12041         specify line thickness instead of base units.  The new default
12042         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
12043         thick lines respectively.
12045         Removed unused variable `prevval'.
12047         * src/preproc/grn/grn.man: Updated.
12049 2000-02-22  Werner LEMBERG  <wl@gnu.org>
12051         * src/preproc/grn/main.cc: Slight formatting.
12053         * src/roff/groff/groff.man: Formatting fix.
12054         * src/preproc/grn/grn.man: Ditto.
12056         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
12058         * doc/groff.texinfo: Further checking/updating.
12060 2000-02-21  Werner LEMBERG  <wl@gnu.org>
12062         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
12064         * test-groff: Added grn subdir to path.
12066         * doc/groff.texinfo: Some restructing and other small improvements.
12068         * src/roff/groff/groff.cc (help): Fixed info string.
12070 2000-02-20  Werner LEMBERG  <wl@gnu.org>
12072         * doc/meref.me: Fix description of .GS request.
12074         * src/roff/troff/troff.man: Fixing typo.
12076         Adding the `grn' preprocessor for gremlin graphic files.
12078         * src/preproc/grn/*: This is the Berkeley distribution written by
12079         David Slattengren and Barry Roitblat, adapted to groff by Daniel
12080         Senderowicz and Werner Lemberg.
12082         * doc/grnexampl.{me,g}: A sample for grn.
12084         * Makefile.in: Added subdirectory entry for grn.
12086         * src/roff/groff/groff.cc: Added support for grn.  It can be now
12087         called with the switch `-g'.
12089         * src/roff/groff/groff.man: Updated.
12091         * src/roff/grog/grog.{man,pl,sh}: Updated.
12093         * NEWS: Updated.
12095 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
12097         * src/include/lib.h: Added xtmptemplate and made xtmpfile
12098         parametrically polymorphic.
12100         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
12101         and the alterations to xtmpfile.
12102         xtmpfile can be requested to return the filename created
12103         and asked not to unlink the temp file.  The default behaviour
12104         if parameters are absent is exactly the same as before.
12106 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
12108         A new request `length' is available which returns the length of a
12109         string in a number register:
12111         * src/roff/troff/input.cc (length_macro): Implement it.
12112         * src/roff/troff/input.cc (init_input_requests): Register it.
12114 2000-02-11  Werner LEMBERG  <wl@gnu.org>
12116         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
12117         of the `substring' request.
12119         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
12120         request.
12122         * src/roff/troff/TODO, NEWS: Updated.
12124 2000-02-09  Werner LEMBERG  <wl@gnu.org>
12126         * src/roff/groff/groff.man: Added an example.
12128 2000-02-06  Werner LEMBERG  <wl@gnu.org>
12130         I've considerably modified the directory structure of the
12131         distribution to get a more vertical layout.  For example, the number
12132         of top level directories has been reduced from 42 to 6.
12134         As a consequence, many changes, especially to the makefiles, were
12135         necessary:
12137         * The makefile variables `top_builddir' and `top_srcdir' have been
12138         introduced.  Virtually all relative paths have been replaced with
12139         absolute ones using these two variables.
12141         * Dependencies (in the files `Makefile.dep') are no longer part of
12142         the distribution.  Instead, they are created during a `make install'
12143         in the build directory.
12145         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
12146         make `top_srcdir' and `top_builddir' absolute.
12148         Some other changes:
12150         * Man pages now depend on the files `VERSION' and `REVISION'.
12152         * The added shell script `mkinstalldirs' will replace `mkdir' in
12153         almost all cases.
12155         * VERSION: Version number increased to 1.16.
12157 2000-02-04  Werner LEMBERG  <wl@gnu.org>
12159         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
12161         * Makefile.in: Removed $(tmac_m) since it is no longer needed
12162         (after an update of the mm stuff).
12164         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
12166 2000-02-03  Werner LEMBERG  <wl@gnu.org>
12168         The .psbb request will now also accept Mac PS images (i.e. using LF
12169         as the EOL character).
12171         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
12172         (with slight modifications).
12173         * troff/input.cc (do_ps_file): Use it.
12175         * test-groff: Add grohtml and grolj4 output devices to PATH.
12177 2000-01-30  Werner LEMBERG  <wl@gnu.org>
12179         * NEWS, MORE.STUFF: Updated.
12181 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
12183         Add the `srand' command to pic.
12185         * pic/lex.cc, pic/pic.y: Implement it.
12186         * pic/pic.man: Document it.
12187         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
12189 2000-01-30  Werner LEMBERG  <wl@gnu.org>
12191         Add a new request `.psbb'.  This does exactly what the external
12192         program psbb did.  It scans a PostScript image file for a
12193         %%BoundingBox comment and extracts the bounding box values (in
12194         PostScript units) which are then stored in the four new (read-only)
12195         number registers `llx', `lly', `urx', and `ury'.
12197         This will allow the usage of the .PSPIC macro without worrying
12198         about unsafe behaviour of groff, i.e., it will work without the
12199         `-U' switch of groff.
12201         * troff/input.cc: Implement it.
12202         * tmac/tmac.pspic: Use it.
12203         * troff/troff.man, grops/grops.man, NEWS: Document it.
12204         * psbb/*, Makefile.in: Remove it since it is no longer needed.
12206         This is bloody C code simply adapted from psbb.c!  Any improvements
12207         welcome.
12209 2000-01-29  Werner LEMBERG  <wl@gnu.org>
12211         * man/groff_font.man: Minor clarifications.
12213         * NEWS: Updated.
12215 2000-01-28  Werner LEMBERG  <wl@gnu.org>
12217         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
12219 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
12221         * man/groff_font.man: Brought up to date regarding tcommand
12222         extensions.
12223         * libgroff/font.cc: Handle everything after `--' as a comment
12224         in the font files.
12225         * devps/*: Added comment delimiter inside devps font files.
12227 2000-01-28  Werner LEMBERG  <wl@gnu.org>
12229         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
12230         \fC...\fP (which now works as expected).
12232         * troff/troff.man: Fix typo.
12234 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
12236         Completed the pass_filenames implementation in troff.
12238         * libdriver/input.cc: Will read the new `F' tcommand.
12239         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
12240         * troff/input.cc: Use it.
12242 2000-01-26  Werner LEMBERG  <wl@gnu.org>
12244         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
12245         font will now be updated even if an invalid font is selected.
12247 2000-01-24  Werner LEMBERG  <wl@gnu.org>
12249         * doc/homepage.ms: Updated for new tmac.arkup.
12251         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
12253         * tmac/tmac.arkup: Cleanup.
12255         Added `\&' to .HTML macro to `leave vertical mode', so to say.
12257         Removed obsolete .LINK macro completely.
12259         The macros .URL, .FTP, and .MAILTO now accept a third argument which
12260         will be immediately appended to the second argument (to be used with
12261         punctuation, for example).
12263         Disabled .CDFTP macro temporarily for security reasons.
12265         * tmac/groff_markup.man: Complete revision for latest changes in
12266         tmac.arkup -- note that it does not yet format correctly with
12267         grohtml :-(
12269 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
12271         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
12272         * devutf8/R.proto: Add mappings for wp, lh, rh.
12273         * devutf8/NOTES: Updated.
12275 2000-01-23  Werner LEMBERG  <wl@gnu.org>
12277         * doc/groff.texinfo: Updated version/copyright info.
12279 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
12281         Added support for two new directives in device descriptions:
12282         `pass_filenames' (to pass the input file name to the output device)
12283         and `use_charnames_in_special' (to support e.g. accented characters
12284         in the `X' request).
12286         * include/font.h, troff/charinfo.h: Declare it.
12288         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
12290         * devhtml/DESC: Use it.
12292         * troff/input.cc: New function encoded_char.
12294         * troff/token.h: Add test for `specialness'.
12296 2000-01-21  Werner LEMBERG  <wl@gnu.org>
12298         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
12299         mistake from the list of files to be installed.
12301 2000-01-18  Werner LEMBERG  <wl@gnu.org>
12303         * README: Added info how to apply patches.
12305 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
12307         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
12309 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
12311         * troff/input.cc: Add support for troffrc-end.
12313         * tbl/main.cc: Altered to issue table-start and table-end special
12314         characters if using the html device.
12316         * devhtml/*: Modified font files to incorporate html encoding of
12317         characters.
12319         * tmac/groff_markup.man: New file documenting tmac.arkup.
12321         * tmac/troffrc-end: New file.  This is invoked after all user
12322         specified macros.  Currently used by the html device to include
12323         tmac.html.  Thus no need for users to specify -mhtml anymore.
12325         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
12326         (MAN7): Add groff_markup.man.
12328         * tmac/tmac.an, tmac/tmac.html: Small html updates.
12330         * tmac/troffrc: tmac.arkup will now be called for the html device.
12332         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
12333         extra device specific information about fonts.
12335         * doc/homepage.ms: New file.  It is an example how an HTML home page
12336         could look like with grohtml.
12338         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
12340 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
12342         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
12343         of Im, Re.
12345         * devutf8/NOTES: Updated.
12347 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
12349         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
12350         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12351         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12352         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12353         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12354         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12355         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12356         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12357         warnings.
12359         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12361 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
12363         grolj4: Paper size will be searched case-insensitively.
12365         * include/lib.h: Add check for strcasecmp().
12366         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12367         * configure.in: Check for strcasecmp().
12369 2000-01-11  Werner LEMBERG  <wl@gnu.org>
12371         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12372         `REVISION'.
12374 2000-01-10  Werner LEMBERG  <wl@gnu.org>
12376         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12377         revision scheme.
12379         Add a new read-only register, `.Y', which contains the groff
12380         revision.
12382         * troff/input.cc (init_input_requests): Define it.
12383         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12384         * doc/groff.texinfo, troff/troff.man: Document it.
12386         * libgroff/Makefile.sub (version.cc): Add definition of
12387         `Version_string[]', consisting of `<major>.<minor>.<revision>'
12388         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12389         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12390         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12391         troff/input.cc, pfbtops/pfbtops.c: Use it.
12393 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
12395         Add a revision scheme to the groff package.
12397         * REVISION: New file.
12398         * libgroff/Makefile.sub (version.cc): Use it to define
12399         `revision_string[]'.
12400         * grops/psrm.cc: Use revision_string (converted to an unsigned
12401         integer) in constructor of resource_manager.
12403 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
12405         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12406         files.
12407         * Makefile.in (DEVDIRS): Add devutf8.
12408         * grotty/tty.cc: Include device.h.
12409         (glyph): Change type of `code' to `unsigned int'.
12410         (tty_printer): New field is_utf8.  Constructor takes device argument.
12411         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12412         (tty_printer::add_char): Change type of first arg to `unsigned int'.
12413         (tty_printer::put_char): New function.
12414         (tty_printer::end_page): Use put_char() instead of ::putchar().
12415         (make_printer): Pass device to tty_printer constructor.
12416         * nroff.sh: Determine default device by calling 'locale'.  As a
12417         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12418         Recognize UTF-8 locales.
12419         * tmac/eqnrc: Recognize utf8 like latin1.
12420         * tmac/troffrc: Device utf8 needs tmac.tty.
12422 2000-01-07  Werner LEMBERG  <wl@gnu.org>
12424         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12426 2000-01-07  Paul Eggert  <eggert@twinsun.com>
12428         Add a new predefined writeable number register, `year',
12429         which contains the current year.
12431         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12432         * tmac/tmac.s: Use it.
12433         * troff/input.cc (init_registers): Initialize it.
12435 2000-01-06  Werner LEMBERG  <wl@gnu.org>
12437         * PROBLEMS: Fixed typo.
12439 2000-01-04  Paul Eggert  <eggert@twinsun.com>
12441         * PROBLEMS: Add Y2k advice for the yr number register.
12443 2000-01-03  Paul Eggert  <eggert@twinsun.com>
12445         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12447 2000-01-02  Werner LEMBERG  <wl@gnu.org>
12449         * tmac/tmac.arkup: Slight modification of macros to provide better
12450         appearance for non-HTML formats.
12452 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
12454         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12455         does not automatically translate to malloc(n) on all OSes
12456         (e.g., SunOS) so do it explicitly.  Also, check the returned
12457         value.
12459 2000-01-01  Werner LEMBERG  <wl@gnu.org>
12461         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
12463         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12464         expects this variable
12466 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
12468         * doc/Makefile: Added instructions to create HTML and text
12469         versions of some files.
12471 1999-12-31  Werner LEMBERG  <wl@gnu.org>
12473         * Updated INSTALL.gen.
12475         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12476         better resp. correctly with non-HTML devices.
12478 Version 1.15 released
12479 =====================
12481 1999-12-28  Werner LEMBERG  <wl@gnu.org>
12483         * NEWS, VERSION: Changed to 1.15
12485 1999-12-27  Paul Eggert  <eggert@twinsun.com>
12487         * nroff/nroff.man: -S is safer, not safe.
12489         * groff/groff.cc (main): Use `safer', not `safe', in variable
12490         names.  This does not change the behavior.
12492         * troff/input.cc (main): Likewise.
12494         * nroff/nroff.sh: Likewise.
12496         * troff/input.cc (prepend_string): New function.
12497         (main): Prepend -msafer, so that we check macro libraries for
12498         safety.
12500         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12502 Version 1.14 released
12503 =====================
12505 1999-12-26  Werner LEMBERG  <wl@gnu.org>
12507         * NEWS, VERSION: Changed to 1.14.
12509 1999-12-24  Werner LEMBERG  <wl@gnu.org>
12511         * refer/refer.cc: Fixing the last fix.
12513 Version 1.13 released
12514 =====================
12516 1999-12-23  Werner LEMBERG  <wl@gnu.org>
12518         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12519         number disappear.
12521         * NEWS: Updated.
12523         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12525         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12526         document conventions, the version number must be a real.
12528 Version 1.12.1 released
12529 =======================
12531 1999-12-22  Werner LEMBERG  <wl@gnu.org>
12533         * VERSION: Changed to 1.12.1.
12535 1999-12-22  Alan Rooks  <arooks@istar.ca>
12537         * refer/refer.cc (do_file): Slight modification to satisfy the
12538         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12539         UnixWare 7.1.
12541 1999-12-20  Werner LEMBERG  <wl@gnu.org>
12543         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12544         notices.
12546         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12547         list of unsafe requests.
12549         * pic/pic.man: Fixed a typo.
12551         * man/groff_out.man: Fixed a typo.
12553 1999-12-18  Werner LEMBERG  <wl@gnu.org>
12555         * Makefile.in: Doc fixes.
12557 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
12559         * groff/groff.cc: Missing `U' option added to getopt().
12561         * troff/troff.man: Missing `U' option added to synopsis.
12563 Version 1.12 released
12564 =====================
12566 1999-12-14  Werner LEMBERG  <wl@gnu.org>
12568         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12569         to the synopsis.
12571         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12572         with the more appropriate terms `safer' and `unsafe'.
12574         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12575         sys_nerr and sys_errlist[].
12577         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12579         * pic/pic.y, pic/pic.cc: Added check for fmod().
12581 1999-12-13  Werner LEMBERG  <wl@gnu.org>
12583         * VERSION: Changed to 1.12.
12585         Here some patches from various sources; most of them taken from
12586         the Debian distribution.
12588         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12589         tmac/Makefile.sub: New files copied directly from the NetBSD
12590         distribution.  Probably, some additional adaptation later on is
12591         necessary...
12593         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12594         of unsafe requests.
12596         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12597         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12598         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
12599         (`-S') is now the default.
12601         * README, NEWS: Updated.
12603 1999-12-09  Werner LEMBERG  <wl@gnu.org>
12605         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12607         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12609 1999-12-06  Werner LEMBERG  <wl@gnu.org>
12611         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12612         grief than relief today.  Additionally, it is against the GNU
12613         coding standards.
12615         * configure: Recreated.
12617 1999-12-05  Werner LEMBERG  <wl@gnu.org>
12619         * configure.in: Added GROFF_LIBM.
12621         * configure: Recreated.
12623         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12624         necessary.
12626         * Makefile.in: Added definition of $(LIBM).
12628         * Makefile.comm (LIBM): Removed.
12630         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12632 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
12634         * doc/Makefile: Added rule for generation pic.html.
12636         (clean): Files produced by grohtml will be removed also.
12638         * doc/pic.ms: Small fix.
12640         * tmac/tmac.html: Fixed suppression of headers.
12642 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
12644         * tmac/tmac.html: Fixing horizontal arrows.
12646         Turning off hyphenation.
12648         * tmac/tmac.an: Improved support for grohtml; better indentation,
12649         no footers/headers.
12651 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
12653         * tmac/tmac.arkup: Added CDFTP macro
12655         * tmac/tmac.html: All headers are turned off for ms, me, and mm
12656         macros.
12658         * tmac/troffrc: Some additions for HTML stuff.
12660 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
12662         * tmac/tmac.html: Small changes.
12664 1999-09-26  Werner LEMBERG  <wl@gnu.org>
12666         * doc/groff.texinfo: Minor fixes.
12668 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
12670         * devhtml/TR: Changed spacewidth to 3.
12672         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12674         * tmac/tmac.html: Moved markup macros to tmap.arkup.
12676         * tmac/tmac.arkup: New file.
12678         * grohtml/ChangeLog: New file.
12680 1999-09-16  Werner LEMBERG  <wl@gnu.org>
12682         * doc/groff.texinfo (Common Features): Added Copying chapter.
12683         Changed format to @smallbook.
12685 1999-09-15  Werner LEMBERG  <wl@gnu.org>
12687         * NEWS: Added info about groff.texinfo.
12689         * doc/groff.texinfo: Will now compile (using texi2dvi) without
12690         warning messages.
12692 1999-09-14  Werner LEMBERG  <wl@gnu.org>
12694         * groff/groff.man: More updates.
12696 1999-09-13  Werner LEMBERG  <wl@gnu.org>
12698         * doc/groff.texinfo: New file.  This manual is still very
12699         rudimentary.  It has been originally contributed by Trent
12700         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12701         additions by me.
12703         * INSTALL: Added information about the `doc' subdir
12705         * troff/troff.man: Minor fixes.
12707         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12708         reordered options.
12710         * troff/input.cc (usage): Added missing `-ffam' to usage message.
12712         * Makefile.in (dist): groff-$(version).tar.gz must be removed
12713         also, otherwise it is included itself in another call of `make
12714         dist'.
12716         * groff/groff.cc (synopsis): Removed superfluous space.
12718         * PROJECTS, PROBLEMS, NEWS: Updated.
12720         * VERSION: Updated to 1.12beta.
12722         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
12724         * README: Updated: Included documentation about CVS repository,
12725         mailing lists, and daily snapshots.
12727         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12729 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
12731         * tmac/tmac.an: If the tag didn't fit into the space that the
12732         macro `TP' specifies, the rest of the tag went into the space for
12733         the next line.
12735 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
12737         * grolj4/lj4.cc: Added duplex printing (option `-d').
12739         * grolj4/grolj4.man: Document duplex printing.
12741 1999-09-12  Werner LEMBERG  <wl@gnu.org>
12743         * doc/Makefile (pic.ps): Fixed rule which caused problems with
12744         non-GNUish sed programs.
12746         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12747         definition.
12749         * configure.in (LIBS): Added `-lc'
12751         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12753         * pic/tex.cc (solid_arc): Casting M_PI to double.
12755         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12757         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12758         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12759         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12761         * groff/groff_man.man: New file.  This manual page was originally
12762         written for the Debian GNU/Linux system by Susan G. Kleinmann
12763         <sgk@debian.org>.
12765         * eqn/list.cc (list_box::compute_metrics,
12766         list_box::compute_sublist_width): Removed variable declaration to
12767         avoid shadowing warnings.
12769         * grops/psrm.cc (resource_manager::process_file): Ditto.
12771         * tfmtodit/tfmtodit.cc (main): Ditto.
12773         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12774         to avoid shadowing warnings.
12776         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12777         shadowing loop variable.
12779         * groff/groff.man, troff/troff.man: Added doc about grohtml.
12781 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
12783         New grohtml frontend to convert groff input to html.
12785         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12787         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12789         * tmac/eqnrc: Added html device.
12791         * tmac/tmac.html: New file.
12793         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12794         (troff_output::start_picture, troff_output::finish_picture),
12795         tbl/main.cc (process_input_file):
12796         Surrounded output with `graphics_start' and `graphics_end' so that
12797         the html driver can identify non-text portions.
12799         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12800         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12801         grotty/tty.ps (tty_printer::set_char): Additional parameter
12802         `name'.
12804         * include/printer.h: Class printer: New function
12805         set_char_and_width; new variables (is_char_named, is_named_set,
12806         named_command, named_char_s, named_char_n) to hold information
12807         about named characters -- needed by the html driver.
12809         * libdriver/printer.cc (printer::set_ascii_char,
12810         printer::set_special_char): Use set_char_and_width.
12812         * devhtml/*: New device files for html driver.
12814         * grohtml/*: New driver grohtml.
12816 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
12818         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12819         default strings.
12821 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
12823         * libgroff/string.cc (search): Small fix to test against NULL
12824         pointer.
12826 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
12828         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12829         \b'abc') were stacked in reverse order when processed in a
12830         diversion.
12832         * troff/node.h: Added `*last' to struct `node' to make the above
12833         fix work.
12835         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12836         The default scale for the 'f' and 't' graphics functions were 'm'
12837         rather than 'u' (i.e., no scaling).
12839 1999-09-11  Peter Miller  <peterm@jna.com.au>
12841         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12842         do_file), soelim/soelim.man: Added `-I file' option to soelim,
12843         defining include paths.
12845         * soelim/soelim.cc (include_path_append): New function.
12847 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
12849         * tbl/main.cc (process_options): Unix (at least Documenter's
12850         Workbench) tbl allows arbitrary non-alpha characters between
12851         options.
12853 1999-09-11  Paul Eggert  <eggert@twinsun.com>
12855         Y2k fixes.  Don't assume that the current year precedes 2000.
12857         * doc/meref.me: Add \n(y2, \n(y4.
12859         * tmac/doc-common (Yr): New number register.
12860         (Dd): Don't assume current year precedes 2000.
12862         * tmac/tmac.e (td): Likewise.
12863         (y2, y4): New number registers.
12865         * pic/pic.man: Update reference for pic paper to May, 1991
12866         version.
12868 1999-09-11  Werner LEMBERG  <wl@gnu.org>
12870         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12871         Removed quotation marks which prevented correct expansion of
12872         $(tmac_wrap).
12874         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12876 1999-09-10  Werner LEMBERG  <wl@gnu.org>
12878         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12879         `config.cache'.
12881         * Removed configure.old.
12883 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12885         * VERSION: Updated to 1.11.1
12887 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12889         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12891         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12892         added quotations around $(tmac_wrap) to avoid syntax error if
12893         variable is empty.
12895         * configure: Newly generated using autoconf 2.13.
12897         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12899 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12901         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12902         doc/Makefile. doc/pic.ms, groff/groff.man:
12903         Prepare for 1.11 release.  No code changes.
12904         Documentation for pic added (doc/pic.ms).
12906 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12908         * Version 1.10 released.
12910 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12912         * afmtodit/afmtodit.pl: Avoid comment on first line.
12914 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12916         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12917         * configure.in: Call it.
12919         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12920         (distfiles): Doesn't depend on config.log or config.cache.
12922 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12924         * grog/grog.sh: Use print "" rather than print in END rule.
12926 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12928         * tbl/main.cc (process_data): Don't give error for excess data
12929         entries that are comments.
12931 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12933         * tbl/main.cc (process_data): Fix case where new for-scope rules
12934         silently change meaning of code.
12936 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12938         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12939         of non-zero hyphenation codes.
12941 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12943         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12945 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12947         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12949 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12951         * tmac/tmac.andoc: Make it work in compatibility mode.
12953         * refer/token.h (token_info::is_range_sep): New function.
12954         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12955         * refer/ref.cc (reference::output): More sophisticated check for
12956         multiple pages.
12958         * devps/prologue.ps (MANUAL): New procedure.
12959         * grops/ps.cc (main): New -m option.
12960         (usage): Include -m.
12961         (ps_printer::~ps_printer): Implement -m.
12963         * aclocal.m4 (GROFF_G): New macro.
12964         * configure.in: Call it.
12965         * Makefile.in (g): Provided by configure.
12967         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12969         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12970         translations.
12972         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12973         (tmac_m, tmac_s): Deleted.
12974         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12975         tmac_s_prefix): New variables.
12976         (MDEFINES): Change accordingly.
12977         * Makefile.comm (.man.n): Use new TMAC_* variables.
12978         * configure.in (GROFF_TMAC): Call.
12979         * aclocal.m4 (GROFF_TMAC): Define.
12980         * tmac/Makefile.sub (stamp_wrap): New target.
12981         (install_data, uninstall_sub): Handle macro wrapping.
12983 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12985         * tbl/main.cc (main): Ignore -T option.
12987 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12989         * devlj4/generate/special.map: Add definition of \(nb.
12991         * tmac/tmac.dvi: Add definition of \(nb.
12993         * troff/dictionary.c (dictionary::dictionary): association::v gets
12994         initialized by association::association.
12996         * tmac/Makefile.sub: Avoid using temporary files when installing.
12998         * troff/env.cc (environment::set_font): Make bad font number a
12999         warning.
13001         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
13003         * Makefile.in (datadir): Use share rather than lib.
13005         * groff/groff.cc (basename): Rename to xbasename.
13007 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
13009         * Makefile (CCLIBS): Don't use.
13010         * Makefile.ccpg: Likewise.
13012         * acgroff.m4: Rename to...
13013         * aclocal.m4: Modify extensively for autoconf 2.
13014         * configure.in: Likewise.
13015         * Makefile.in: Likewise.
13017         * groff/pipeline.c (const): Declare as empty if __STDC__ not
13018         defined.
13019         (xstrsignal): Check for definition of NSIG. Conditionalize
13020         on SYS_SIGLIST_DECLARED.  Make return type const.
13022 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
13024         * troff/input.cc (interpolate_macro): Rephrase missing space
13025         warning.
13027 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
13029         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
13030         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
13031         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
13032         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
13033         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
13034         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
13035         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
13036         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
13037         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
13038         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
13039         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
13040         Fix 'for' scoping.
13042 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
13044         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
13045         string_iterator.
13046         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
13047         file.
13048         (macro_iterator::macro_iterator): Add additional argument.
13050 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
13052         * troff/div.cc (vertical_size::vertical_size): In place of integer
13053         specifying line spacing use cunits specifying post vertical
13054         space.
13055         (macro_diversion::output, top_level_diversion::output): Likewise.
13056         * troff/div.h: Change declarations accordingly.
13057         * troff/env.cc (pending_output_line): Replace ls field by post_vs
13058         field.
13059         (pending_output_line::pending_output_line,
13060         pending_output_line::output, environment::output,
13061         environment::output_line, environment::output_title,
13062         environment::hyphenate_line):  In place of
13063         integer specifying line spacing use cunits specifying post vertical
13064         space.
13065         (environment::environment): Add post_vertical_spacing and
13066         prev_post_vertical_spacing arguments.
13067         (environment::get_post_vertical_spacing): New function.
13068         (environment::total_post_vertical_spacing): New function.
13069         (environment::post_vertical_spacing): New function.
13070         (init_env_requests): Initialize pvs request and .pvs register.
13071         * troff/env.h: Change declarations.
13073 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
13075         * tmac/tmac.pspic: Immediately remove the temporary file.
13077 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
13079         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
13080         height is specified.
13082 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
13084         * tbl/table.c (struct vertical rule, class table_entry): Use int
13085         not short for start_row and end_row.
13087 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
13089         * troff/input.cc (trapping_blank_line, blank_line_macro): New
13090         functions.
13091         (diverted_space_node::reread, process_input_stack): Call
13092         trapping_blank_line() rather than blank_line().
13093         (init_input_requests): Bind "blm" to blank_line_macro().
13095         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
13097 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
13099         * troff/env.cc (environment::possibly_break_line): Require that
13100         width total excluding width of final space node be greater than
13101         the target text length.
13103 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
13105         * troff/node.cc (kern_pair_node::vertical_extent): New function.
13107 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
13109         * troff/node.cc (charinfo_node): New class.
13110         (glyph_node, composite_node): Derive from charinfo_node.  Change
13111         member functions accordingly.
13113 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
13115         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
13117 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
13119         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
13121         * devps/generate/textmap (notsubset): Add.
13123         * tmac/tmac.a4: New file.
13125 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
13127         * pic/main.cc (had_parse_error): New variable.
13128         (do_picture, do_whole_file): Set had_parse_error if yyparse()
13129         returns non-zero.
13130         (main): Return 1 if had_parse_error is true.
13132 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
13134         * grolj4/lj4.cc (main): Avoid use of strtoul.
13136 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
13138         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
13139         iso_8859_1 or $LESSCHARSET is latin1.
13141 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
13143         * hpftodit: New directory.
13144         * Makefile.in (CCPROGDIRS): Add hpftodit.
13145         * devlj4/generate: New directory.
13147 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
13149         * configure.in: Don't use AC_VFORK.
13150         * groff/pipeline.c (run_pipeline): Use fork() always.
13152 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
13154         * grops/ps.cc (main): Use %1 not %s in error message for -w.
13156         * Makefile.in (CCPROGDIRS): Add grolj4.
13157         (DEVDIRS): Add devlj4.
13158         * grolj4, devlj4: New directories.
13159         * tmac/troffrc: Handle lj4.
13160         * tmac/tmac.lj4: New file.
13162 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
13164         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
13166 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
13168         * troff/input.cc (do_if_request): At end of second string, switch
13169         environments before getting next token.
13171 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
13173         * devps/psstrip.sed: Split rule that strips whitespace on either
13174         side of delimiters.
13176 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
13178         * troff/node.h (font_family::make_definition): Add return value to
13179         declaration.  * troff/symbol.h (symbol::operator==,
13180         symbol::operator!=): Likewise.
13182 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
13184         * groff/groff.cc (main, help, synopsis): Handle -S.
13185         (possible_command::insert_arg): New function.
13187         * tmac/tmac.safer: New file.
13188         * tmac/msafer.man: New file.
13189         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
13191 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
13193         * pic/pic.h, pic/main.cc (safer_flag): New variable.
13194         * pic/pic.y (placeless_element): Avoid unsafe operations if
13195         `safer_flag' is set.
13196         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
13198 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
13200         * eqn/lex.cc (get_token): Put call to add_context() in block to
13201         work around Sun C++ 4.0 bug.
13203         * include/stringclass.h (operator +): Use ?: instead of `if' to
13204         work around Sun C++ 4.0 bug.
13206 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
13208         * tbl/main.cc (process_format): Accept - as a synonym for the _
13209         key letter.
13211         * libbib/index.cc (minus_one): Don't declare as const.
13213 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
13215         * troff/input.cc (get_char_for_escape_name): Push back a newline.
13217 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
13219         * troff/input.cc (write_macro_request): New function.
13220         (init_input_requests): Bind write_macro_request to writem.
13222 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
13224         * tmac/tmac.s (@EN): Turn filling back on even if there was no
13225         equation.
13227         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
13229         * tmac/tmac.s (@TS): Renamed from TS.
13230         (TS): Call LP then TS again.
13231         (cov*ab-init): Alias @TS to TS.
13233         * tmac/tmac.s: Allow QP or RS to initialize.
13235         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
13236         Move initializations of PS and LL here.
13237         (par@init): Don't initialize HY.  Avoid changing environment 0.
13238         (par*env-init): Don't all par@reset.
13240 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
13242         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
13244 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
13246         * Makefile.in (MDEFINES): Add LDFLAGS.
13247         (LDFLAGS): Add definition line.
13249 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
13251         * troff/input.cc (get_optional_char): Split off error check into...
13252         (check_missing_character): New function.
13253         * troff/token.h: Declare it.
13254         * troff/env.cc (margin_character): Don't call get_optional_char.
13255         Only call tok.next() after making the node.
13257         * include/lib.h (getopt): Make 2nd argument char *const *.
13259 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
13261         * nroff/conftest.sh: Deleted.
13263 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
13265         * pic/make-dos-dist: Deleted.
13267 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
13269         * devps/psstrip.sed: Strip comments before stripping trailing
13270         white space.
13272 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
13274         * Version 1.09 released.
13276 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
13278         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
13280 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
13282         * libgroff/font.cc (font::load_desc): Fix typo in error message.
13284 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
13286         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
13287         about returning without a value.
13289         * troff/charinfo.h (charinfo::get_special_translation): Cast
13290         TRANSLATE_NONE to int.
13292         * refer/token.cc (lookup_token, store_token): Remove bogus loop
13293         test.  Fix test so that it works with n unsigned.
13295         * pic/pic.y (defaults_table): Fully bracket initializer.
13296         * pic/lex.cc (lookup_keyword): Likewise.
13297         * eqn/lex.cc (token_table, def_table): Likewise.
13298         * eqn/box.cc (param_table): Likewise.
13299         * troff/input.cc (warning_table): Likewise.
13300         * libgroff/font.cc (table): Likewise.
13301         * grops/ps.cc (ps_printer::special): Likewise.
13302         * grops/psrm.cc (resource_manager::process_file): Likewise.
13303         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
13304         * refer/command.cc (command_table): Likewise.
13305         * addftinfo/addftinfo.cc (param_table): Likewise.
13307         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
13308         about temp's being unused.
13309         (unused): New function.
13311         * groff/pipeline.cc: Declare c_fatal.
13313         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
13314         uchar.
13316         * libbib/index.cc (index_search_item::load): Prevent compiler
13317         warnings about fd_closer's being unused.
13318         (unused): New function.
13320 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
13322         * troff/input.cc (copy_mode_error): Make `prefix' static.
13323         Fix typo.
13325         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
13326         defined.
13327         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
13328         HAVE_CC_OSFCN_H and modify accordingly.
13330         * troff/input.cc (init_charset_table): radicalex overlaps
13331         horizontally.
13333         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
13334         udodo!hans@relay.NL.net).
13335         * groff/configure.in: Call it.
13337         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
13338         * groff/configure.in: Call it.
13339         * include/lib.h: Conditionalize declaration of pclose.
13341         * troff/div.cc (last_page_number): New global variable.
13342         (top_level_diversion::begin_page): Exit if we just printed the
13343         last page.
13344         * troff/div.h (last_page_number): Declare it.
13345         * troff/input.cc (parse_output_page_list): Set last_page_number.
13347         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
13348         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
13349         tmac/tmac.X: Likewise.
13350         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13351         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13353 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
13355         * tmac/doc-ditroff (hK): Remove groff specific code which
13356         prevented page-breaks between separate manual entries.  If this is
13357         the first page, don't set the page number to 1.
13359         * acgroff.m4 (GROFF_POSIX): New macro.
13360         * configure.in: Use it.
13362         * troff/node.cc (class real_output_file,
13363         real_output_file::real_output_file,
13364         real_output_file::~real_output_file): Conditionalize use of
13365         popen/pclose on POPEN_MISSING.
13366         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13367         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13368         (pipe_source): Similarily.
13370         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13372         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13373         presence of declarations by trying to compile example with
13374         conflicting declarations.  (gcc only gives a warning for missing
13375         declarations.)
13377 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
13379         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13380         (from Ulrich Lauther).
13382 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
13384         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13386 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
13388         * indxbib/indxbib.cc (write_hash_table): Add code for case where
13389         pointers and ints have different sizes.
13391 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
13393         * tmac/tmac.s (par*env-init): Call par@reset.
13395 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
13397         * tmac/tmac.s (@IP): Switch to a new environment when diverting
13398         tag.
13399         (par*push-tag-env, par*pop-tag-env): New macros.
13401 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
13403         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13404         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
13406         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13407         comment.  Include <time.h>.
13409 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
13411         * grops/ps.cc (is_small_h, is_small_v): Deleted.
13412         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13413         lines.
13415 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
13417         * troff/input.cc (read_request): Only print a prompt if reading
13418         from the terminal.  Also clearerr on EOF if reading from the
13419         terminal.  Declare isatty.
13421 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
13423         * refer/label.y: Rename map_t to map_func and extractor_t to
13424         extractor_func.
13426 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
13428         * include/assert.h: Don't use volatile.
13429         * libgroff/assert.cc: Likewise.
13431 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
13433         * troff/input.cc (abort_request): Look at character in tok before
13434         calling get_copy().
13436 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
13438         * troff/troff.h (NO_RETURN): Deleted.
13439         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
13440         * troff/input.cc (exit_troff): Likewise
13442         * Makefile.in: Remove `Making ...' messages since GNU make now
13443         gives these. 
13445         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13447 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
13449         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13450         to constant 1 inch.
13452 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
13454         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13456 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
13458         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13459         MARK_REG if there was no left delimiter.
13461 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
13463         * pic/troff.cc (troff_output::text): Set line thickness to
13464         relative before outputting text.
13466         * tmac/tmac.e (@k): Don't zero ?T.
13467         ((z): Likewise.
13469 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
13471         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13473 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
13475         * troff/input.cc (decode_args): Warn about unquoted tabs (from
13476         Paul Eggert).
13478 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
13480         * troff/input.cc (ignoring): New variable.
13481         (ignore): Set ignoring during call to do_define_macro.
13482         (do_define_macro): Clear ignoring before interpolating terminating
13483         macro.
13484         (copy_mode_error): New function.
13485         (get_char_for_escape_name, read_long_escape_name,
13486         interpolate_arg): Use copy_mode_error.
13487         (warning_table): Add WARN_IG.
13488         * troff/troff.h (WARN_IG): Declare.
13489         (WARN_TOTAL): Change accordingly.
13491         * groff/pipeline.c (strsignal): Rename to xstrsignal.
13492         * groff/groff.cc (strsignal): Delete declaration.
13494 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
13496         * troff/div.cc (page_offset): Use 'm' as default scaling.
13498 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
13500         * nroff/nroff.sh: Ignore -u.
13502 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
13504         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13506 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
13508         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13509         drawing box.
13510         (B2): With -Tascii, leave additional vertical space before
13511         and after. Ensure that the left and right indent is restored to
13512         what it was even if the point size changes.  Don't call
13513         par@finish. Change the indent, line length and title length
13514         directly.  With -Tascii, make the width of the box 1n less.
13515         (B1): Remember 1n at the current point size.  Don't call
13516         par@reset.  Change the indent, line length and title length
13517         directly.  Ensure that the temporary indent is preserved.
13518         (par*box-mark-top): Turn off no spacing mode.
13520 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
13522         * Makefile.in (dist): Use .gz suffix.
13524 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
13526         * troff/input.cc (main): Add return 0.
13527         * pic/main.cc (main): Use return instead of exit.
13528         * tbl/main.cc (main): Likewise.
13529         * eqn/main.cc (main): Likewise.
13530         * grops/ps.cc (main): Likewise.
13531         * grotty/tty.cc (main): Likewise.
13532         * groff/groff.cc (main): Likewise.
13533         * grodvi/dvi.cc (main): Likewise.
13534         * refer/refer.cc (main): Likewise.
13535         * indxbib/indxbib.cc (main): Likewise.
13536         * lkbib/lkbib.cc (main): Likewise.
13537         * soelim/soelim.cc (main): Likewise.
13538         * addftinfo/addftinfo.cc (main): Likewise.
13539         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13540         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13542         * troff/token.h (process_input_stack): Don't declare as static.
13543         * troff/input.cc: Likewise.
13545         * troff/node.c (invalidate_fontno): Make it a static member of
13546         class font_family.  Change callers.
13547         * troff/node.c: Change declaration.
13549         * tbl/main.cc (struct input_entry_format): Add explicit public
13550         specifier.
13551         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13552         struct double_hline_stuff): Likewise.
13553         * tbl/table.h (struct entry_format): Likewise.
13554         * pic/object.h (struct saved_state): Likewise.
13556         * include/stringclass.h: Add forward declarations of friend
13557         functions that are later declared as inline.  Don't include inline
13558         specifier in friend declaration.
13560         * libgroff/lib.h: Declare popen and pclose.
13561         * acgroff.m4 (GROFF_POPEN): New macro.
13562         * configure.in: Call it.
13564         * include/lib.h (PI): New constant. Undef first if necessary.
13565         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13566         * grops/ps.cc (degrees, radians): Likewise.
13567         * libgroff/font.cc (font::get_skew): Likewise.
13569         * grops/ps.cc (is_ascii): New function.
13570         (ps_output::put_string): Use is_ascii.  Use csprint rather than
13571         isprint.
13572         (ps_printer::define_encoding): Use csspace.
13573         * libgroff/strtol.c (ISASCII): New macro.
13574         (strtol): Cast arguments to is*() and tolower() to unsigned char.
13575         Use ISASCII rather than isascii.
13576         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13577         * libgroff/cset.cc: Likewise.
13578         * libdriver/input.cc: Include cset.h.
13579         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13580         than isdigit().
13582         * refer/refer.cc (main): Use %ld rather than %d for longs.
13584         * libbib/index.cc (index_search_item_iterator::get_tag): Use
13585         S_ISREG macro.
13587         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13589 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
13591         * troff/input.cc (hyphenation_code): Skip white space between
13592         char/code pairs.
13594 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
13596         * tbl/table.h (table::entry_list_tailp): New member.
13597         (table::table): Initialize it.
13598         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13599         behaviour.
13601 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
13603         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13604         with negative horizontal positions. Remove casts of glyph::hpos to
13605         int.
13606         (USHRT_MAX): Delete definition.
13607         (SHRT_MAX, SHRT_MIN): New definitions.
13608         (glyph::hpos): Change type to short.
13609         (tty_printer::end_page): Output multiple backspaces if necessary.
13610          Remove casts of glyph::hpos to int.
13611         
13612 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
13614         * tmac/tmac.s (@RT): New definition.
13616 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
13618         * refer/refer.cc (do_file): Make sure current_filename is set when
13619         filename is "-".
13621         * pic/common.cc (common_output::dot_line): Handle zero length
13622         lines.
13624 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
13626         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13627         (par@init): Initialize \n[HY].
13629 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
13631         * troff/dictionary.cc (dictionary::remove): Continue when
13632         r < j < i.
13634 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
13636         * Makefile.com (.y.cc): Avoid ending up with two versions of
13637         $(YTABH).
13639 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
13641         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13642         (\(,C): Likewise.  Also fix typo.
13644 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
13646         * lib.h: Delete extraneous semi-colon.
13648         * Add pso request: `so' from a pipe.
13649         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13650         (file_iterator::close): New function.
13651         (file_iterator::~file_iterator, file_iterator::next_file): Use
13652         file_iterator::close.
13653         (file_iterator::backtrace): Say `process' rather than `file' when
13654         the stream is popened.
13655         (pipe_source): New function.
13656         (init_input_requests): Bind ".pso" to pipe_source.
13658 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
13660         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13662         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
13663         digits in lower case.
13665 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
13667         * Version 1.08 released.
13669         * Makefile.in (dist): Insert || true after ln -s commands that
13670         might fail.
13672         * mm: Update to mm 1.16.
13674         * acgroff.m4 (GROFF_CSH_HACK): New macro.
13675         * configure.in: Call GROFF_CSH_HACK.  Substitute for
13676         SH_SCRIPT_SED_CMD.
13677         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
13678         MDEFINES.
13679         * nroff/Makefile.sub (nroff): New target.
13680         (install_data): Install nroff.
13681         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13682         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13684 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
13686         * eqn/Makefile.sub (neqn): Add chmod +x.
13688         * grog/Makefile.sub (grog): Remove spurious semi-colon.
13690 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
13692         * troff/input.cc (string_iterator::string_iterator()): Initialize
13693         lineno and count.
13695 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
13697         * troff/div.cc (macro_diversion::space,
13698         top_level_diversion::space): Don't set high_water_mark.
13699         (macro_diversion::output, top_level_diversion::output): Don't
13700         include post line space in high water mark.
13702 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
13704         * eqn/eqn.y: Don't define YYDEBUG.
13705         * pic/pic.y: Likewise.
13707 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
13709         * tmac/tmac.e ([3): Add space after comma following editors.
13710         Change double spaces to single spaces.
13711         ([4): Change double spaces to single spaces.
13713         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13714         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13715         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13716         after %!PS-Adobe- (for Newsprint).
13718         * troff/div.cc (top_level_diversion::begin_page): When
13719         before_first_page is 1, set page_number to 1.
13721 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
13723         * eqn/box.cc (box::top_level): Protect equation with \&.
13725 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
13727         * groff/groff.cc (possible_command::set_name): Delete old name.
13729         * groff/groff.cc (possible_command::~possible_command): Use
13730         a_delete.
13732         * troff/node.cc (troff_output_file::begun_page): New member.
13733         (troff_output_file::troff_output_file): Initialize it.
13734         (troff_output_file::really_begin_page): Only output V command if a
13735         page has been begun.
13737         * pic/pic.y (placeless_element): Delete argument to PRINT after
13738         use.
13740 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
13742         * Make wrapman work.
13743         * troff/div.h (class top_level_diversion): Replace
13744         first_page_begun by before_first_page (with opposite sense).
13745         * Change first_page_begun to before_first_page inverting sense.
13746         * troff/div.cc (class nl_reg): New class.
13747         (init_div_requests): Use class nl_reg for \n(nl.
13748         (top_level_diversion::begin_page): Don't call
13749         output_file::begin_page if before_first_page is 2;
13750         reset before_first_page afterwards.  If have_next_page_number is
13751         false, then always increment page_number.
13752         * tmac/tmac.an: Set traps within TH rather than at the top-level.
13753         Restore compatibility mode after loading, and then disable
13754         compatibility mode in TH.
13756 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
13758         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13759         past last line.
13760         * troff/node.h (output_file::trailer): Declare.
13761         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13762         * troff/node.cc (output_file::trailer): New function.
13763         (troff_output_file::~troff_output_file): Move most code into...
13764         (troff_output_file::trailer): New function.
13765         (class troff_output_file): Delete page_length member. Declare
13766         trailer().
13767         (troff_output_file::really_begin_page): Use current page length
13768         for final V command.
13770         * tbl/main.cc (struct options): New decimal_point_char member.
13771         (options::options): Initialize this.
13772         (process_options): Implement decimalpoint option.
13773         (process_data): Pass decimal_point_char option to table::table.
13774         * tbl/table.h (class table): New decimal_point_char member.
13775         (table::table): Add additional argument.
13776         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13777         second argument specifying decimal point character.  Use this
13778         instead of '.'.
13779         (table::table): Initialize decimal_point_char.
13780         (table::add_entry): Change call to find_dot.
13782         * troff/input.cc (get_copy, token::next): Implement \V.
13783         (interpolate_environment_variable): New function.
13785 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
13787         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13788         * pic/pic.y: Likewise.
13790         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13791         Add casts to int.
13792         * refer/ref.cc (reference::insert_field, reference::delete_field):
13793         Likewise.
13794         * troff/number.cc (parse_term): Likewise.
13796         * acgroff.m4 (GROFF_PROG_YACC): New macro.
13797         * configure.in: Use GROFF_PROG_YACC.
13799         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13800         and g++.
13801         * Makefile.in (OPTIMIZE): New define.
13802         (DEBUG): Empty by default.
13803         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13805         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13806         (GROFF_ARRAY_DELETE): Likewise.
13807         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13809         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13811         * devps/psstrip.sed: Use different delimiter on last line (so that
13812         it works with BSD 4.4 sed.)
13814 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
13816         * devps/psstrip.sed: Delete comments.
13818         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13819         optind, opterr, optarg.
13820         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13821         opterr, optarg.
13823 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
13825         * Makefile.in (check): Dummy target.
13827 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
13829         * Version 1.07 released.
13831         * Integrate mm 1.11.
13833         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13834         where start_col was meant.
13836 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
13838         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13840 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
13842         * troff/input.cc (token::next): Make \z\o'...' and similar things
13843         work.
13845         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13846         constants.
13847         (environment): Add margin_character_flags member.
13848         * env.cc (environment::environment(symbol),
13849         environment::environment(const environment *): Initialize
13850         margin_character_flags.
13851         (margin_character): Rewrite.
13852         (environment::output_line): Add a margin character if
13853         margin_character_flags is non-zero.  Turn off the
13854         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
13855         zero, use margin_character_node without copying and then set
13856         margin_character_node to 0.
13858         * devps/DESC.in: Change minimum size to 1000.
13860 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
13862         * troff/symbol.h (symbol::hash): Change return type to unsigned
13863         long.
13864         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13865         Add casts to int.
13867         * test-groff: Use -r rather than -x.
13869         * grops/psfig.diff: Include in distribution again.
13871 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
13873         * Makefile.in (dist): Use gzip.
13875 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
13877         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13878         unistd.h as well as in stdlib.h.
13879         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13880         defined; otherwise include <sys/types.h> and <unistd.h> if
13881         UNISTD_H_DECLARES_GETOPT is defined.
13883         * configure.in: use builtin(include, ... rather than include(...
13884         * configure: Regenerate with autoconf 1.3.
13886         * libdriver/print.cc (printer::adjust_arc_center): Use new
13887         algorithm suggested by Andy Fyfe.
13889         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13890         * include/printer.h: Declare this.
13891         * grops/ps.cc (ps_printer::draw): Use it.
13892         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13894 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13896         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13898 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13900         * eqn/main.cc (main): Handle "eqn -".
13902 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13904         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13906         * mm: Integrate version 1.08.
13908         * pic/troff.cc (troff_output::finish_picture): Set
13909         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13910         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13911         if it's not defined. Check whether the register is non-zero rather
13912         than whether it's not defined.
13913         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13915         * indxbib/indxbib.cc: Move all signal handling into...
13916         * indxbib/signal.c: New file.
13917         * configure.in: Call AC_RETSIGTYPE.
13919         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13920         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13921         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13923         * troff/input.cc (token::token, token::operator=): Work round SGI
13924         C++ bug.
13925         * pic/object.cc (position::position): Likewise.
13927 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13929         * pic/pic.h: Move declaration of hypot().
13931 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13933         * pic/pic.h: Declare hypot().
13935         * pic/pic.h: Define M_PI if necessary.
13937 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13939         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13940         `.ta T' feature.
13942         * devps/prologue.ps (RE): Handle the possibility that the old font
13943         doesn't have a FontName entry.
13945 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13947         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13948         (@C): Use @fam not fam.
13950 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13952         * lookbib/lookbib.cc (main): Change type of start to const char *.
13953         * lkbib/lkbib.cc (main): Likewise.
13955         * eqn/lex.cc (definition::definition): Don't use member
13956         initializer syntax for members of anonymous unions.
13958         * troff/input.cc (input_stack::backtrace): Change type of to const
13959         char *.
13961 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13963         * include/stringclass.h (class string): Declare inline friend
13964         functions as inline in class declaration.
13965         * troff/hvunits.h (class hunits, class vunits): Likewise.
13966         * include/refid.h (class reference_id): Likewise
13967         * troff/troff.h (points_to_units(units), scale(units, double)):
13968         Delete declarations.
13969         * libdriver/input.cc (get_char): Delete declaration.
13970         * include/lib.h: Change 2nd argument of getopt from const char **
13971         to char **.
13972         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13973         char **' before assigning to a `const char **'.
13974         * tbl/table.cc: Delete extra declarations of prints().
13976 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13978         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13979         char **' before assigning to a `const char **'.
13981         * libgroff/errarg.cc (errarg::errarg): Don't use member
13982         initializer syntax for members of anonymous unions.
13984 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13986         * mm: Integrate version 1.07.
13988 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13990         * troff/input.c (translate2): Rename to
13991         (translate_no_transparent).
13992         (init_input_requests): Rename tr2 to trnt.
13994 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13996         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13997         (charinfo::set_translation, charinfo::set_special_translation):
13998         Add second argument that specifies value for
13999         transparent_translate.
14000         (charinfo::get_translation, charinfo::get_special_translation):
14001         Add optional second argument that specifies whether translation is
14002         being used for transparent throughput.
14003         * troff/input.cc (charinfo::set_translation,
14004         charinfo::set_special_translation): Handle second argument.
14005         (charinfo::charinfo): Initialize transparent_translate.
14006         (translate): Split main part off into
14007         (do_translate): New function.  Pass argument saying whether
14008         translation applies to transparent throughput.
14009         (translate2): New request.
14010         (init_input_requests): Bind translate2 to `tr2'.
14012 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
14014         * tbl/table.h (class table): Add `nokeep' flag.
14015         * tbl/main.cc (process_options): Handle `nokeep' option.
14016         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
14017         table::do_bottom): Don't output keep/release macro definitions or
14018         calls when `nokeep' option has been specified.
14020 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
14022         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
14024 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
14026         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
14027         block_entry::divert, alphabetic_block_entry::divert): Add extra
14028         argument giving column separation.
14029         (table::compute_widths): Pass column separation to
14030         table_entry::divert().
14031         (block_entry::do_divert): If an entry spans multiple columns and a
14032         minimumum width has been specified for each column, then set the
14033         line length to the sum of the widths (plus possibly the column
14034         separations).
14036         * troff/input.cc (set_escape_char): Don't set the escape_char
14037         until after calling has_arg().
14039 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
14041         * tbl/table.cc (table::do_top): Add missing \s0 for double box
14042         case.
14044         * tbl/table.cc (table::print_double_hline): Avoid extra new line
14045         in case where r > nrows - 1.
14047         * tbl/table.cc (BODY_HEIGHT): Deleted.
14048         (LINE_SEP): New definition.
14049         (table::print_single_hline, table::print_double_hline,
14050         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
14051         table::do_row, table::do_top): Use LINE_SEP space before a line
14052         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
14054         * tbl/table.cc (text_entry::print_contents): New function.
14055         (text_string_name, right_text_string_name): Deleted.
14056         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
14057         (simple_text_entry::do_width, numeric_text_entry::do_width,
14058         alphabetic_text_entry::do_width): Don't store the contents of the
14059         entry in a string.
14060         (left_text_entry::simple_print, right_text_entry::simple_print,
14061         center_text_entry::simple_print,
14062         alphabetic_text_entry::simple_print,
14063         numeric_text_entry::simple_print): Print the entry directly
14064         instead of using the stored string.
14066 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
14068         * devps/Makefile: Strip PostScript files.
14069         * devps/prologue: Rename to...
14070         * devps/prologue.ps.
14071         * devps/psstrip.sed: New file.
14072         * devps/download: Use .pfa rather than .ps for installed versions
14073         of fonts.
14075 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
14077         * troff/env.cc (input_trap): Give a warning if the argument is out
14078         of range.
14080         * troff/env.cc (adjust): Treat negative argument as missing. Round
14081         argument > 5 down to 5.
14083         * troff/env.cc (center, right_justify): Make negative argument zero.
14085         * troff/div.cc (page_offset, vertical_position_traps): Treat
14086         invalid argument as missing.
14087         * troff/env.cc (line_spacing, line_length, title_length, indent,
14088         underline, hyphen_line_max_request, control_char,
14089         no_break_control_char, widow_control_request, adjust, input_trap,
14090         point_size): Likewise.
14091         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
14092         constant_space): Likewise.
14093         * troff/input.cc (compatible, shift, warn_request,
14094         set_escape_char): Likewise.
14096         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
14097         * tbl/table.cc (table::table): Likewise.
14099         * Makefile.dev (install_dev): depends on $(DEVFILES).
14101 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
14103         * devX75, devX75-12, devX100, devX100-12: New directories.
14104         * Makefile.in: Add these to DEVDIRS.
14106         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
14107         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
14108         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
14109         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
14110         targets.
14111         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
14112         (uninstall): New target.
14113         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
14114         uninstall_prog, uninstall_dev): New targets.
14116         * troff/div.cc (return_request): Treat an invalid argument as
14117         missing.
14119 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
14121         * tmac/tmac.e ((f): Set up the environment even when there's a
14122         current diversion.  Transperently throughput a call to @N.
14123         (@N): New macro.
14125 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
14127         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
14128         up to vertical resolution.
14130         * tbl/table.cc (table::do_row): Change row number after printing
14131         stuff list.
14133         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
14135 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
14137         * Rename CHANGES to NEWS.
14139 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
14141         * libgroff/new.cc (operator new): Avoid calling malloc(0).
14143 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
14145         * man.ultrix: Removed.
14147 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
14149         * Makefile.comm (extraclean): Delete files whose names begin with
14150         `='.
14152         * pic/troff.cc (troff_output::text): Fix typo in implementation of
14153         aligned text.
14155 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
14157         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
14158         * troff/div.cc (page_length, need_space, space_request): Treat
14159         invalid optional argument as missing.
14160         * troff/env.cc (number_lines): If the first argument is present
14161         but not a number, turn on line numbering, don't change the next
14162         line number and parse the remaining arguments.
14164         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
14166 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
14168         * eqn/box.h: Change declaration accordingly.
14169         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
14170         the specified size was bad but don't give an error.  Check for
14171         overflow.
14172         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
14173         * eqn/lex (do_size): Likewise.
14175 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
14177         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
14178         compatible headers.
14180 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
14182         * tbl/table.cc (table::init_output): Improve error message when
14183         table won't fit on one page.
14185 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
14187         * pic/troff.cc (troff_output::start_picture): Generate line
14188         containing a horizontal motion equal to the width of the picture.
14190         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
14191         using GROFF_COMMAND_PREFIX environment variable.
14193 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
14195         * mdate.sh: Use $NF rather than $(NF).
14197 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
14199         * pic/main.cc (main):  Use %1 not %c in argument to warning.
14201         * eqn/main.cc (main): Output code to check that geqn was given the
14202         correct -T option.
14204 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
14206         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
14207         `ln -s ../Makefile .; make; rm -f Makefile'.
14209         * troff/hyphen: Rename to...
14210         * troff/hyphen.us:
14211         * troff/input.cc (main): Delete -H option. Don't call
14212         read_hyphen_file().
14213         * troff/env.cc: Include searchpath.h and macropath.h.
14214         (exception_dictionary): Deleted.
14215         (ht): Deleted.
14216         (read_hyphen_file): Deleted.
14217         (hyphenation_language): New struct.
14218         (class trie, class hyphen_trie): Move declarations up.
14219         (trie_node::~trie_node): Deleted.
14220         (trie::delete_trie_node): New function.
14221         (trie::do_delete): New pure virtual function.
14222         (hyphen_trie::do_delete): New function.
14223         (trie::~trie): New function.
14224         (hyphen_trie::~hyphen_trie): New function.
14225         (trie::clear): No need to chcek that tp is not 0.
14226         (current_language, language_dictionary): New variables.
14227         (hyphen_word): Give an error if no current language.  Use
14228         exceptions dictionary in current language.
14229         (hyphen_trie::read_patterns_file): Find file using macro_path.
14230         Allow comments (starting with %) in patterns file.  Don't make it
14231         a fatal error if the file can't be found.
14232         (hyphenate): Return if no current language.  Get the exceptions
14233         dictionary and the hyphenation patterns from the current language.
14234         (set_hyphenation_language): New variable.
14235         (hyphenation_patterns_file): New function.
14236         (hyphenation_language_reg): New class.
14237         (hyphenation_language_reg::get_string): New function.
14238         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
14239         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
14240         register.
14241         * groff/groff.cc (main, help, synopsis): Delete -H option.
14242         * include/Makefile.sub: Don't define HYPHENFILE.
14243         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
14244         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
14245         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
14246         hyphenation patterns.
14248 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
14250         * eqn/neqn.sh: New file.
14251         * eqn/Makefile.sub: Handle neqn.sh.
14253         * eqn/eqn.h: Declare `nroff' variable.
14254         * eqn/box.cc (param_table): Add `nroff' param.
14255         (nroff): Define it.
14256         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
14257         variable.
14258         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
14260         * troff/troff.h (WARN_FONT): New warning.
14261         (WARN_TOTAL): Change accordingly.
14262         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
14263         (warning_table): Add WARN_FONT.
14264         * troff/node.cc (mount_font_no_translate): Pass argument to
14265         font::load_font.  If this is non-zero, give a warning.
14266         Don't give an error message when accessing a font that has already
14267         been found to be invalid.
14268         * include/font.h (font::load, font::load_font): Add additional
14269         optional argument which suppresses error message if the font is
14270         not found.
14271         * libgroff/font.cc (font::load_font): Handle additional argument.
14272         (font::load): Add additional argument. If this is non-null, set it
14273         to 1 and don't give error message.
14275         * include/printer.h (printer::end_page): Add argument giving
14276         length of page.
14277         * libdriver/input.cc (do_file): Pass this.
14278         * grops/ps.cc (ps_printer::end_page): Add argument.
14279         * grodvi/dvi.cc (dvi_printer::end_page,
14280         draw_dvi_printer::end_page): Add argument.
14281         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
14282         columns_per_page members. New member nlines.
14283         (DEFAULT_LINES_PER_PAGE): Deleted.
14284         (tty_printer::tty_printer): Don't compute lines_per_page from
14285         font::paperlength. Don't compute columns_per_page from
14286         font::paperwidth.
14287         (tty_printer::add_char): Don't check horizontal position against
14288         columns_per_page. Grow glyphs vector if neccessary.
14289         (tty_printer::end_page): Add argument giving page_length in units.
14290         Discard lines past end of page.
14292 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
14294         * tmac/tmac.tty-char: Fix definition of \(/l.
14296         * tmac/tmac.X: Define \(en.
14298 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
14300         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
14301         lpq, then use lp rather than lpr.
14303         * tmac/tmac.s (par@reset): Don't call `ad'.
14304         (par*env-init): Call `ad'.
14306 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
14308         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
14309         date.
14311         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
14312         * indxbib/indxbib.cc: Likewise.
14314 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
14316         * libgroff/putenv.c: New file.
14317         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
14318         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
14319         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
14320         stdlib.h with AC_HAVE_HEADERS.
14322 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
14324         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
14325         does not exist.
14327 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
14329         * eqn/box.cc (gsize): Make it an int.
14330         (set_gsize): Parse argument handling increment or decrement.
14331         (box::top_level): Convert gsize to a string.
14333         * troff/input.cc (exit_troff): Make buf unsigned char [].
14334         Call to make_temp_iterator casts buf to char*.
14336         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
14338         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
14339         * Makefile.cpg (depend.temp): Likewise.
14341         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
14343         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
14345 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
14347         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
14349 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
14351         * Version 1.06 released.
14353         * Integrate mm 1.04.
14355 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
14357         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14359 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
14361         * afmtodit/afmtodit.pl: Add -n option that disables generation of
14362         ligatures command.
14363         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14364         afmtodit. Regenerate.
14366         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14367         @f back past the current position.
14369         * tmac/tmac.e: Change calls to @R so that comments are not part of
14370         arguments.
14372 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
14374         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14376         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14377         check that we can link a call to a function declared in <stdio.h>.
14378         (GROFF_UNISTD_H): New macro.
14379         * configure.in: Call it.
14380         * Makefile.in: Document it.
14381         * include/posix.h: New file.
14382         * troff/troff.h: Don't include <osfcn.h>
14383         * troff/input.cc: Include posix.h.
14384         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14385         osfcn.h.
14386         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14387         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14388         <fcntl.h>.
14389         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14390         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14391         * libbib/search.cc (O_RDONLY): Delete definition.
14392         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14393         Don't include <osfcn.h>.
14395         * acgroff.m4 (GROFF_TIME_T): New macro.
14396         * configure.in: Call it.
14397         * Makefile.in: Document it.
14399         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14400         * configure.in: Call it.
14401         * Makefile.in: Document -DTRADITIONAL_CPP.
14402         * include/ptable.h: Don't include generic.h.
14403         (name2): Define it.
14405         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14406         Afterwards remove [T1 and [T2.
14407         (ref*spec!0, ref*spec!2): Use T1 rather than T.
14408         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14409         (ref*add-T2): Renamed from ref*add-T.
14410         (ref*add-T1): New macro.
14412 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
14414         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14416         * libbib/index.cc: Include <fcntl.h>.
14417         (O_RDONLY): Define if necessary.
14418         (make_index_search_item, index_search_item_iterator::get_tag,
14419         index_search_item::check_files): Use O_RDONLY.
14420         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14421         (O_RDONLY): Define if necessary.
14422         (search_list::add_file): Use O_RDONLY.
14423         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14424         <sys/stat.h>.
14425         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14426         (main): Use these.
14428         * libbib/index.cc (S_ISREG): Define it if necessary.
14429         (index_search_item::load): Use S_ISREG.
14431         * include/driver.h: Include <errno.h>.
14433 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
14435         * eqn/box.cc (body_height): Increase default value to 85.
14436         (body_depth): Increase default value to 35.
14438 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
14440         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14441         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14442         protected from expansion with \E.
14444         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14446         * Makefile (Makefile): New target.
14448         * Makefile.sub (configure, distfiles): New targets.
14450         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14451         construct.
14453 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
14455         * eqn/box.cc (param_table): Add body_height and body_depth.
14457         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14459 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
14461         * psbb/Makefile.sub: Don't link with libgroff.a.
14463         * acgroff.m4 (GROFF_PUTENV): New macro.
14464         * configure.in: Call GROFF_PUTENV.
14465         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14466         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14467         is defined.
14469         * troff/env.cc (distribute_space): Rename force_forward argument
14470         to force_reverse.  Reverse the list if force_reverse is true.
14472 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
14474         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14476         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14477         height or depth to be negative.  Guard against SUP_RAISE quantity
14478         being negative.
14480 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
14482         * devps/generate/textmap: Add `an' (arrowhorizex).
14483         * tmac/tmac.ps: \(an overlaps horizontally.
14484         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14486         * devps/symbolchars: Add arrowverttp, arrowvertbt.
14487         * devps/textmap: Add arrowvertex.
14488         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14489         updownarrow delimiters.
14490         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14492         * tbl/table.cc (simple_entry::position_vertically,
14493         block_entry::position_vertically):  For a centered entry, perform
14494         the motion in two stages.
14496         * refer/refer.cc (split_punct): Don't call lookup_token if there
14497         is no token.
14499 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
14501         * troff/input.cc (token::next): Delete token_node after copying
14502         token.
14504         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14505         cur_point_size.
14507         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14509         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14511 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
14513         * grops/ps.cc (usage): -b option takes an argument.
14515         * devps/prologue (PLG): New procedure.
14516         * grops/ps.cc (main, usage): New -g option.
14517         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
14518         length using PLG.
14520 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
14522         * include/cset.h: Include <limits.h> if we have it.
14524         * libgroff/illegal.cc: New file.
14525         * include/lib.h (illegal_input_char): Use table.
14526         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14527         * pic/lex.cc (ARG1): Renumber to 14.
14528         * eqn/lex.cc (ARG1): Likewise.
14530         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14531         (eg 1.05.90) correctly.
14533 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
14535         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14536         Rename $r and $R registers to $v and $V.
14537         ($r, $R): Initialize to 0.
14538         (@v, @V): New macros.
14539         (sz): Call @v.
14540         (@M): Call @V.
14542         * troff/input.cc (main, usage): Add -R option that says not to
14543         load troffrc.
14544         * eqn/main.cc (main, usage): Rename -n to -R.
14546 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
14548         * devps/DESC.in: Leave font positions 5-9 blank.
14549         * devdvi/DESC.in: Likewise.
14551         * grog/grog.pl: Handle `.PS <file' correctly.
14553         * troff/input.cc (input_stack::push): Improve error message when
14554         input stack limit exceeded.
14556 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
14558         * refer/refer.cc (main): Fix typo in handling of `a' option.
14560         * refer/refer.cc (do_bib): In state START after a newline remain
14561         in state START.
14563         * groff/groff.sh: Deleted.
14564         * groff/Makefile.sub: Delete handling of groff.sh.
14566         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14567         to determine whether to use \X'ps:...'.
14568         * tmac/troffrc: Set 0p register to 0.
14569         * tmac/tmac.ps: Set 0p register to 1.
14571         * groff/groff.cc: Support -X option. Give warning for -TXps and
14572         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14573         * tmac/troffrc: Support -r.X=1.
14575         * pic/troff.cc (troff_output::dot): Don't test
14576         zero_length_line_flag.
14578 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
14580         * include/lib.h: Declare getopt() and friends unless
14581         STDLIB_H_DECLARES_GETOPT is defined.
14583         * doc/chars.tr: Delete.
14584         * man/groff_char.man: New file.
14586 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
14588         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14589         user has changed register format.
14591 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
14593         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
14594         `postpro' command in DESC file.  Get spooler command from `print'
14595         command in DESC file.  Execute spooler command with /bin/sh.
14597         * groff/groff.cc: Split Unix-specific parts into...
14598         * groff/pipeline.c: New file.
14600         * LICENSE: Delete.
14601         * COPYING: New file.
14602         * all files: Update copyright notices.
14604         * Rearrange files.  Redo Makefiles.  Use autoconf.
14606 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
14608         * troff/input.c (charinfo_to_node_list): Interpret character
14609         definition with escape_char of `\'.
14611 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
14613         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14614         Define INT_DIGITS as big enough for 64-bit integer.
14615         * lib/strtol.c: Don't include lib.h.
14616         * lib/lib.h: Delete ifdef __cplusplus stuff.
14618 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
14620         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
14621         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
14622         get DESC from current directory.
14624 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
14626         * tbl/main.c (main): Always reset the line number when reading
14627         from stdin.
14629         * tbl/table.c (table::print_single_hline, table::print_double_hline,
14630         table::define_bottom_macro, table::do_row, table::do_top): Round
14631         vertical spacing up to vertical resolution.
14633 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
14635         * ps/ps.h (enum resource_type): Avoid comma at end of
14636         enumerator-list.
14637         * dvi/dvi.c (class dvi_printer): Likewise.
14638         * dvi/tfmtodit.c (gf::load): Likewise.
14639         * refer/label.y (struct expression): Likewise.
14640         * refer/refer.c (class label_processing_state): Likewise.
14641         * refer/indxbib.c (do_file): Likewise.
14642         * troff/troff.c (enum warning_type): Likewise.
14643         * tbl/main.c (process_data): Likewise.
14644         * troff/charinfo.h (class charinfo):
14646 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
14648         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
14650 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
14652         * groff.c: Move to new groff subdirectory.
14653         * groff/Makefile: New file.
14654         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14656         * man/mdate.sh: Use ls -L if supported.
14658         * Consolidate all header files produced by gendef into lib/defs.h.
14659         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14660         Don't include path.h.
14661         * lib/Makefile (path.h): Don't generate.
14662         * troff/input.c: Include defs.h. Don't include config.h.
14663         * troff/Makefile (config.h): Don't generate.
14664         * refer/index.h: Don't include suffix.h.
14665         * refer/index.c: Include defs.h.
14666         * refer/indxbib.c: Include defs.h.
14667         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14668         defs.h.
14669         * refer/Makefile (suffix.h, path.h): Don't generate.
14670         * groff.c: Don't include config.h. Include defs.h.
14671         * Makefile (config.h): Don't generate.
14672         (lib/defs.h): Generate.
14673         (topclean): Remove lib/defs.h.
14675 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
14677         * lib/malloc.c, lib/getpagesize.h: Deleted.
14678         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
14679         related stuff.
14680         * lib/Makefile: Delete malloc-related stuff.
14681         * lib/new.c: Workaround COOKIE_BUG if necessary.
14683         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
14684         needed header files directly.
14685         * refer/refer.h: Omit definition of DEFAULT_INDEX.
14686         * Makefile: Include definition of DEFAULT_INDEX in path.h.
14688 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
14690         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14691         argument.
14692         * lib/font (font::load_desc, font::load): Don't split argument of
14693         unknown command.
14694         (font::handle_unknown_font_command): Change type.
14695         * ps/ps.c (ps_font::handle_unknown_font_command,
14696         handle_unknown_desc_command): Change type.
14697         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14699 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
14701         * lib/font.h (font::handle_unknown_font_command): Add file and
14702         line arguments.
14703         * lib/font.c (font::handle_unknown_font_command):
14704         * ps/ps.c (ps_font::handle_unknown_font_command):
14705         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14706         lineno arguments.  Use _with_file_and_line functions for error
14707         reporting.
14709         * lib/fontfile.c (font::unknown_desc_command_handler): New static
14710         data member.
14711         * lib/font.c (font::set_unknown_desc_command_handler): New
14712         function.
14713         (font::load_desc): For unknown commands, call
14714         unknown_desc_command_handler if not null.
14715         * lib/font.h (class font): Declare them.
14716         (FONT_COMMAND_HANDLER): New typedef.
14717         * ps/ps.c (handle_unknown_desc_command): New function.
14718         (main): Set bflag if we had a -b option. Call
14719         font::set_unknown_desc_command_handler.
14720         (broken.h): Don't include.
14721         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
14722         submake 
14723         * ps/devps/Makefile: Add `broken' command to DESC file using
14724         BROKEN_SPOOLER_FLAGS.
14726         * macros/tmac.e ([, ]): Add as synonyms for { and }.
14728         * macros/tmac.e ($p): Only exdent if \$3 > 0.
14730         * macros/tmac.e (@R, @S): New macros.
14731         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14732         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14733         Declare $H, $[0-9], .. macros with @S.
14734         Declare |0, |1, |2, |3 strings with @S.
14736         * macros/tmac.e (@S): Rename to @U.
14738         * macros/tmac.e (@z): Define @b and bp as empty instead of
14739         deleting them,
14741         * macros/tmac.e (@m): Deleted.
14742         (@h): Don't call @m.
14743         (@z): Don't set @m trap.
14745         * macros/tmac.e ($h, $f): Define |z as empty string.
14747         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14748         (@q): Likewise.
14750         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14751         removing them.
14752         ()f): Likewise for * register.
14754         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14755         argument is missing, don't change $R.  Call sr with three
14756         arguments when initializing.
14758 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
14760         * macros/tmac.e (sr): New macro.
14761         Initialize $r and $R using sr.
14763         * macros/tmac.e (,): Delete \*(#[.
14765         * troff/env.c (set_tabs): Read the tab type even if the position
14766         is bad.  Allow the position of the first tab stop to be negative.
14768 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
14770         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14771         _POSIX_VERSION.
14772         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14773         rather than -DPATHCONF_MISSING.
14774         * Makefile: Get rid of PATHCONF_MISSING.
14776         * refer/map.c: New file.
14777         * refer/index.c: Interface to mmap through map.c.  Rename map_size
14778         to map_len.
14779         * refer/Makefile: Handle map.c.
14780         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14782 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
14784         * Makefile: RANLIB should be `true' if there is no ranlib.
14785         * lib/Makefile (libgroff.a): Simplify.
14786         * driver/Makefile (libdriver.a): Simplify.
14788         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14789         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
14790         defined.
14792 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
14794         * troff/env.c (compare_ranges): Declare as extern "C".
14796         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14798         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14800 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
14802         * pic/troff.c (troff_output::text): Merge in grops_output::text,
14803         but conditionalize use of \X based on \*(.T.
14804         (grops_output::*): Deleted.
14805         * pic/output.h: Delete declaration of make_grops_output.
14806         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
14807         by default. -n sets it to 0.
14808         (usage): Corresponding changes.
14809         * groff.c (main): Don't pass -x or -p to pic.
14810         * groff.sh: Likewise.
14812         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14813         to be non-zero.
14815         * ps/devps/afmtodit: Change calculation of asc_boundary and
14816         desc_boundary.  Make these bounds inclusive.
14817         * ps/devps: Regenerate font files.
14819 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
14821         * macros/tmac.latin1: New file.
14822         * macros/tmac.tty-char: Use tmac.latin1.
14823         (tmac.tty-tr): Deleted.
14824         * macros/Makefile: Install tmac.latin1.
14825         * macros/tmac.dvi: Use tmac.latin1.
14826         * macros/troffrc: Translate \[char160] onto no-break space here.
14827         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14829 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
14831         * macros/tmac.Xps: Use `do' request.
14833         * macros/tmac.ps: Use `do' request.
14835         * macros/tmac.e (@C): Use `do' request.
14837         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14838         * macros/Makefile: Install tmac.X*.
14840         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14841         * tty/Makefile: Don't install tmac.tty*.
14842         * macros/Makefile: Install tmac.tty*.
14844         * dvi/tmac.dvi: Move to macros.
14845         * dvi/Makefile: Don't install tmac.dvi.
14846         * macros/Makefile: Install tmac.dvi.
14848         * ps/tmac.ps*: Move to macros.
14849         * ps/Makefile: Don't install tmac.ps*.
14850         * macros/Makefile: Install tmac.ps*.
14852         * eqn/box.c: Provide draw_lines parameter corresponding to -D
14853         option.
14854         * macros/eqnrc: Set draw_lines parameter based on device.
14855         * groff.c: Don't pass -D flag to eqn.
14856         * groff.sh: Likewise.
14857         * eqn/main.c: Warn about use of -D.
14859         * troff/input.c (process_startup_file): New function.
14860         (main): Call process_startup_file().
14861         * macros/troffrc: New file.
14862         * macros/Makefile: Install troffrc.
14863         * groff.c (main): Don't pass extra -m option to troff. For a 
14864         pseudo device pass the name of the pseudo device to troff using
14865         -d.
14866         * groff.sh: Likewise.
14867         * groff.c (possible_command::prepend_arg): Deleted.
14869         * troff/input.c (do_request): New function.
14870         (init_input_requests): Bind "do" to do_request.
14872         * eqn/main.c (main): Instead of loading eqnchar from device directory,
14873         load eqnrc from macro directory.
14874         * macros/eqnrc: New file.
14875         * macros/Makefile: Install eqnrc.
14876         * ps/devps/eqnchar: Deleted.
14877         * ps/devps/Makefile: Don't install eqnchar.
14878         * dvi/devdvi/eqnchar: Deleted.
14879         * dvi/devdvi/Makefile: Don't install eqnchar.
14880         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14881         variable optM.
14883         * lib/device.[ch]: New files.
14884         * lib/font.h (font::set_device_name, font::get_device_name):
14885         Deleted.
14886         * lib/fontfile.c: Use device.h.
14887         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14888         * troff/input.c: Delete definition of `device'.
14889         (main): Don't initialize device.
14890         * troff/troff.h: Include device.h rather than declaring device.
14891         * troff/Makefile: No need to handle DEVICE.
14892         * driver/input.c: Include device.h. Don't use
14893         font::{set,get}_device_name.
14894         * groff.c, Makefile: Rename device.h to config.h.
14895         * groff.c: Use library device variable.
14896         * eqn/main.c: Use library device variable.
14897         * eqn/Makefile: No need to handle DEVICE.
14899         * lib/searchpath.[ch]: New files.
14900         * lib/Makefile: Handle searchpath.[ch].
14901         * troff/input.c (open_file, init_dirs): Deleted.
14902         (macro_dirs): Deleted.
14903         (open_mac_file, macro_source): Use class search_path.
14904         (add_string, struct string_list): Move definition.
14905         (main): Change -M option to use macro_path. Delete call to
14906         init_dirs().
14907         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14908         Rewrite to use class search_path.
14909         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14910         * lib/Makefile: fontfile.c depends on searchpath.h.
14911         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14912         MACROPATH.
14913         * lib/macropath.[ch]: New files.
14914         * troff/Makefile: No need to handle MACROPATH.
14916         * troff/input.c: Delete DUMP code.
14917         * lib/fontfile.c, lib/font.h: Delete
14918         font::forget_command_line_font_dirs.
14920         * troff/input.c (push_token): New function.
14921         (handle_first_page_transition): Use push_token().
14922         (process_input_stack): Change handling of a space at the beginning
14923         of the line.
14925 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14927         * troff/input.c (font_dirs): Delete unused variable.
14929         * eqn/lex.c (do_set): Correct error messages.
14931 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14933         * troff/input.c (do_define_string): Allow the string name to be
14934         followed immediately by a tab.
14935         (define_character): Likewise.
14937 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14939         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14940         be negative.
14942         * troff/input.c (input_iterator::is_file): New virtual function.
14943         (file_iterator::is_file): New function.
14944         (input_stack::end_file): New function.
14945         (input_stack::next_file): Handle the situation where there is no
14946         file on the input stack correctly.  Avoid making two passes over
14947         the input stack.
14948         (next_file): Make the filename optional; in this case call
14949         input_stack::end_file().
14951 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14953         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14954         produce a real _ charater when the current font is CW and _
14955         otherwise.
14957         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14958         expression to work around gcc 2.2 bug.
14960 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14962         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14964         * troff/env.c (environment::add_padding): New function.
14965         (environment::add_char): Use add_padding().
14966         (environment::space): Likewise.
14967         (environment::wrap_up_field): Add some padding if there is none
14968         and there's no current tab.
14969         * troff/env.h: Declare environment::add_padding.
14971 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14973         * pic/pic.y: undef fmod and rand before declaring them.
14975 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14977         * troff/input.c (main): If the DESC file specifies a font name of
14978         0, then leave the corresponding font position empty.
14980         * nroff.sh: New file.
14981         * Makefile (install.nobin): Install nroff.sh.
14983         * tty/devlatin1/R.proto: Add ao as synonym for de.
14984         * tty/tmac.tty-char: Define ao as o.
14986         * tty/dev{ascii,latin1}/R.proto: Add aq.
14987         * tty/tmac.tty-char: Delete definition of aq.
14989 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14991         * troff/input.c (init_charset_table): Don't translate 0240.
14992         * ps/tmac.ps: Translate char160 to space.
14993         * dvi/tmac.dvi: Likewise.
14994         * tty/tmac.tty: Likewise.
14996 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14998         * dvi/tmac.dvi: Add support for all Latin-1 characters.
15000         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
15001         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
15002         \(oe, \(r?, \(r!.
15004         * tty/tmac.tty-char: Add \(ah.
15006         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
15007         No need to define \(FM and \(!/. Conditionalize all character
15008         definitions.
15010         * ps/devps/lgreekmap: Add +h, +f, +p.
15012         * ps/tmac.psnew: New file.
15013         * ps/Makefile: Install tmac.psnew.
15015         * troff/input.c (charinfo_to_node_list): Don't ever interpret
15016         character definitions in compatible mode.
15018         * troff/input.c (remove_character): New function.
15019         (init_input_requests): Bind remove_character to "rchar".
15021         * ps/tmac.psold: New file.
15022         * ps/Makefile: Install tmac.psold.
15023         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
15024         characters into tmac.psold.  Make these definitions unconditional.
15026         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
15028         * ps/tmac.ps: Don't define \('c and \('C.
15030         * ps/devps/textmap: Move Greek characters to...
15031         * ps/devps/symbolchars:
15033 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
15035         * ps/devps/text.enc: Add quotesingle.
15036         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
15037         * tty/tmac.tty-char: Likewise.
15038         * dvi/devdvi/texmi.map: Add +h, +f, +p.
15039         * dvi/devdvi/texi.map: Add Fn.
15040         * dvi/devdvi/msam.map: Add lz.
15041         * dvi/tmac.dvi: Handle Bq, bq, aq.
15043         * pic/lex.c (get_token): Recognize 'th.
15044         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
15046 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
15048         * ps/devps/textmap: Move di, mu, +- to...
15049         * ps/devps/symbolchars:
15051         * macros/tmac.s (@XS): Don't call par@reset or fi.
15052         (XA): Call LP. Turn off adjustment. Reduce line length.
15054         * macros/tmac.s: Initially alias XS to LP.
15055         (XS): Rename to @XS.
15056         (cov*ab-init): Alias XS to @XS.
15058 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
15060         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
15061         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
15062         (token::is_size, token::changes_env): Deleted.
15063         * troff/number.c (parse_term): No need to process \s explicitly.
15064         Call tok.next() only after scale indicator has been processed.
15065         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
15066         \f etc explicitly.
15067         (token::next): Handle \s, \f, \S, \H immediately rather than
15068         returning them as tokens.
15069         (token::operator==, token::description, token::add_to_node_list,
15070         token::process): Remove handling of deleted tokens.
15072         * troff/env.c (environment::add_char): When adding padding
15073         indicator character, call start_line() if necessary.
15075 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
15077         * ps/devps/afmtodit: Don't output 0 kerns.
15079         * ps/devps/afmtodit: Remove directory from name of encoding in
15080         font description file.
15082         * ps/devps/afmtodit: Improve error messages.
15084         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
15086         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
15087         * ps/devps/FontMakefile: Deleted.
15088         * ps/devps/afmname: New file.
15090         * ps/devps/symbol.sed: New file.
15091         * ps/devps/symbol.diff: Deleted.
15092         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
15093         Generate zapfdr.afm from zapfd.afm.
15095         * tty/tmac.tty (tty-char): Prefix definition with ".
15097         * macros/tmac.an (TP): Don't start a diversion if one has already
15098         been started.
15100         * tty/tmac.tty-char: Add Latin-1 characters.
15102         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
15104 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
15106         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
15107         Move declaration of struct horizontal_span.
15109         * tbl/table.c (table::table): Initialize span_list.
15110         (table::~table): Delete span_list.
15112         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
15114         * ps/devps/Makefile: Avoid dependency on GNU make.
15116         * ps/tmac.ps: Check that character does not already exist before
15117         defining it.
15119         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
15120         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
15121         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
15122         files.
15124         * tty/tmac.tty-char: New file.
15125         * tty/Makefile: Install tmac.tty-char.
15126         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
15127         tmac.tty-char.
15129         * tty/tmac.tty: Fix definition of \(34.
15131         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
15132         bracket-drawing characters onto |. Add *o.
15134         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
15135         only if current_field.
15137         * troff/dictionary.c (dictionary::lookup): Free old_table after
15138         rehashing. 
15140 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
15142         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
15143         whose glyphs are identical to glyphs of some Roman character.
15145         * tty/devlatin1/R.proto (bu): Deleted.
15146         * tty/devascii/R.proto (bu): Deleted.
15147         * tty/tmac.tty: Add definition of \(bu.
15149         * eqn/main.c (do_file): Pass FILE as argument.
15150         (main): Automatically load eqnchar.  New options -F and -n.
15151         Pass do_file an opened FILE.
15152         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
15153         No need to include font.h.
15154         * groff.sh: Likewise.  Don't need to use - for standard input.
15155         Prefix files with -- if first file starts with -.
15157         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
15159         * troff/env.c (environment::possibly_break_line): Don't set line
15160         to 0 across call to output_line().  Don't call output_line() until
15161         after discarding nodes after break.
15163 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
15165         * request.h (macro::empty): Declare it.
15166         * input.c (macro::empty): New method.
15167         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
15168         macro is empty.
15170 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
15172         * troff/env.c (environment::start_field): Decrement space_total
15173         when a space is frozen.
15175 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
15177         * macros/tmac.an (R): Delete macro.
15179         * troff/input.c (get_copy, token::next): Support \# (like \" but
15180         newline is ignored).
15182         * troff/input.c (token::next): Fix error message in 'Y' case.
15184 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
15186         * eqn/delim.c (define_extensible_string): Recognize any prefix of
15187         a delimiter name.
15189 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
15191         * c++test.c: Include <osfcn.h>.
15193         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
15194         <errno.h> doesn't.
15196 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
15198         * tbl/table.c (table::divide_span): Don't count column separation
15199         if expand was specified.
15201         * tbl/main.c (process_format): Don't ignore width specs in
15202         continued format.  Give warning for changing equal widths or
15203         column separation in continued format.
15204         (process_data): Set column separation, minimum width, equal
15205         columns at end of table.
15207 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
15209         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
15210         node::add_discretionary_hyphen): Use soft_hyphen_char.
15211         (set_soft_hyphen_char): New function.
15212         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
15214         * Makefile (c++tested): Give more helpful message if test fails.
15216 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
15218         * troff/input.c (init_charset_table): Translate 0240 to
15219         an unbreakable space.
15221         * troff/token.h (token::hyphen_indicator): New function.
15222         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
15223         translation.
15224         * troff/input.c (translate): Allow translation to \%.
15225         * troff/node.c (node::add_char): Handle
15226         TRANSLATE_HYPHEN_INDICATOR.     
15227         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
15229         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
15230         for \(hy.
15232         * tty/devlatin1/R.proto: \(hy and - should print as 055.
15234 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
15236         * groff.c (run_commands): If the last command gets a SIGPIPE send
15237         a SIGPIPE to all children than haven't yet terminated.  When
15238         command terminates, set pid field to -1.
15240 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
15242         * groff.c (main): Pass an appropriate -filename option to gxditview.
15244 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
15246         * Makefile.bd (install): Remove existing program before copying.
15248         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
15249         programs which have Unix counterparts to be installed with
15250         user-specified prefix.
15252         * troff/input.c (exit_troff): Don't check if exit_started.
15253         (exit_request): Don't call exit_troff if exit_started.
15255         * Makefile.bd (install.mm): Rename to install.dwbmm.
15257 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
15259         * driver/input.c (do_file): Add missing break for '#' case.
15261 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
15263         * troff/input.c (input_stack::clear):  Clear past any boundaries and
15264         then add the boundaries back.
15266         * troff/input.c (exit_troff): Return immediately if already
15267         exiting.
15269         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
15270         end macro.
15271         (pg*end-page): If the text has ended and there are no more
15272         footnotes or keeps, exit.
15274         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
15276         * troff/input.c (init_charset_table): Make \(rq transparent by
15277         default.
15279         * macros/tmac.an: Define lq and rq strings.
15281         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
15283 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
15285         * troff/env.c (environment::final_break): New function.
15286         (environment::newline): Set prev_line_interrupted to 2 if
15287         exit_started.
15288         * troff/env.h: Declare environment::final_break.
15289         * troff/input.c (exit_troff): Call environment::final_break()
15290         instead of environment::do_break().
15292         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
15293         doesn't already exist.
15294         * macros/man.local: New file.
15295         * macros/tmac.an: Load man.local.
15296         * macros/man.ultrix: New file.
15298 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
15300         * troff/input.c (exit_groff): Rename to...
15301         (exit_troff): New function.
15303         * troff/div.c (exit_started, done_end_macro,
15304         seen_last_page_ejector): New global variables.
15305         (began_page_in_end_macro): New static variable.
15306         (exit_flag): Deleted.
15307         (top_level_diversion::top_level_diversion): Initialize
15308         last_page_count.
15309         (top_level_diversion): More elaborate test for whether
15310         cleanup_and_exit() should be called.
15311         Set began_page_in_end_macro if the end macro isn't yet finished.
15312         * troff/div.h (top_level_diversion::last_page_count): New data
15313         member.
15314         (top_level_diversion::set_last_page): New function.
15315         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
15316         * troff/env.c (do_break): Zero prev_line_interrupted.
15317         * troff/input.c (exit_flag): Delete declaration.
15318         (LAST_PAGE_EJECTOR): New magic cookie.
15319         (token::next): Handle LAST_PAGE_EJECTOR.
15320         (exit_groff): Set exit_started and done_end_macro instead of
15321         exit_flag.  Call top_level_diversion::set_last_page.  Push a
15322         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
15323         another ejection after setting seen_last_page_ejector.
15325 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
15327         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
15329         * macros/tmac.e (TH): Make sure there's room for the initial
15330         header.
15332         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
15333         Set FVS in points rather than units.
15335 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
15337         * troff/div.c (top_level_diversion::add_trap): Don't consider the
15338         position of empty slots.
15340 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
15342         * ps/devps/S: Fix height and depth of parenrightex.
15343         * ps/devps/symbol.diff: Regenerate.
15345 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
15347         * tmac.e (u): Do underlining as in -mgs.
15349 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
15351         * tty/tty.c (tty_printer::end_page): If overstriking is
15352         suppressed, still turn overstruck horizontal and vertical lines
15353         into +.
15355         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15356         2.1.
15358         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15360 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
15362         * Version 1.05 released.
15364 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
15366         * tty/tty.c: Instead of keeping an array of glyphs and then
15367         sorting it, keep a ordered linked list of glyphs for each line.
15369         * driver/driver.h: Include stddef.h.
15371         * tty/tty.c (compare_glyph):
15372         * refer/refer.c (rcompare):
15373         * troff/env.c (compare_ranges): Arguments of qsort comparison
15374         function should be const void *.
15376         * troff/number.c (parse_term):
15377         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15378         switch statement.
15380         * refer/label.y (consider_authors): Don't access variables
15381         constructed under a condition outside that condition: put braces
15382         round for statement containing declaration; redeclare use of same
15383         variable later.
15385         * pic/pic.y (text_expr): Delete production that allows
15386         parenthesised text_expr.
15387         (expr): Allow a conditional_expr to appear in parentheses.
15388         (conditional_expr): Rename to any_expr.
15390         * mm: Install new version 1.01 from jh.
15392         * lib/font.c (font::get_width): Cache scaled widths.
15393         (font::font): Initialize widths_cache.
15394         (font::~font): Destroy widths_cache.
15395         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15397 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
15399         * c++test.c, c++test.ref: New files.
15400         * Makefile: Check that the C++ compiler works.
15402         * ps/tmac.pspic (PSPIC): Do a break.
15404         * ps/tmac.ps: Move definition of PSPIC into...
15405         * ps/tmac.pspic: New file.
15406         (PSPIC): Draw box around picture, but make it invisible to grops.
15407         * ps/tmac.ps: Load tmac.pspic.
15408         * ps/Makefile: Install tmac.pspic.
15410 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
15412         * lib/font.c (scale_round): If n is negative,
15413         subtract .5 before truncating floating point result.
15415         * lib/fontfile.c: Include <errno.h>.
15417 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
15419         * driver/input.c (get_char): Inline. Don't update current_lineno.
15420         Change callers to up date current_lineno if necessary.
15421         Use get_char() instead of getc(current_file).
15423 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
15425         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15427 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
15429         * tty/tty.c (tmac.tty): Define \(rg as (R).
15431 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
15433         * lib/lib.h: New define a_delete.
15434         * Use a_delete instead of delete when deleting an array of objects
15435         without destructors.
15437         * lib/lib.h: Rename adelete to ad_delete.
15438         * Change uses of adelete.
15440 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
15442         * eqn/eqn.y: Include lib.h.
15444         * troff/node.c (grow_font_table): Delete old_font_table.
15446         * mm: Install new version from jh.
15448 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
15450         * tbl/table.h (format_type): Make global instead of local to class
15451         entry_format.  Prefix enumerators with FORMAT_.
15452         * tbl/table.c, tbl/main.c: Corresponding changes.
15453         * refer/token.h (token_type): Make global.  Prefix enumerators
15454         with TOKEN_.
15455         * refer/token.[ch]: Corresponding changes.
15456         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15458         * troff/div.c (node::set_vertical_size): Don't name argument.
15460 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
15462         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15463         * lib/lib.h: Define adelete accordingly.
15464         * pic/object.c (graphic_object::graphic_object):
15465         * tbl/main.c (format::~format):
15466         * tbl/table.c (table::~table):
15467         * refer/ref.c (reference::~reference, reference::merge,
15468         reference::insert_field, reference::delete_field): Use adelete.
15470         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15471         * refer/token.h:
15472         * tbl/table.h: Corresponding changes.
15474         * common.c (common_output::dashed_arc, common_output::dotted_arc):
15475         Ensure total_angle is positive.
15477 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
15479         * refer/ref.c (reference::merge, reference::insert_field,
15480         reference::delete_field): Avoid delete[0].
15482         * refer/token.c (init_special_chars): Move calls to cmupper
15483         outside calls to init_two_char_letter to work around bug in gcc
15484         2.0.
15486 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
15488         * lib/new.c (operator new): Use __builtin_new for g++.
15490         * pic/object.c (graphic_object::~graphic_object):  Don't use
15491         delete [] on 0.
15493         * pic/object.c (output::compute_scale): Initialize max_width and
15494         max_height.
15496 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
15498         * troff/input.c (write_request): Call fflush.
15500         * troff/node.h (class composite_node): Move declaration to node.c
15501         * troff/input.c (charinfo_to_node): Rename to ...
15502         (charinfo_to_node_list): Return node list rather than composite
15503         node.
15504         * troff/node.c (make_composite_node): New function.
15505         (make_node, add_char): Call make_composite_node instead of
15506         charinfo_to_node.
15507         (class composite_node): Add a tfont * member.  Delete font_size
15508         member.
15509         (composite_node::composite_node, composite_node::copy,
15510         composite_node::size): Corresponding changes.
15511         (composite_node::tprint): Provide constant spacing, emboldening
15512         and track kerning as specified in tfont.
15513         (composite_node::width): Change width calculation accordingly.
15514         * troff/env.h (environment::composite): New member.
15515         (environment::is_composite, environment::set_composite): New
15516         functions.
15517         * troff/env.c (environment::environment): Initialize composite.
15518         * troff/input.c (charinfo_to_node): Call
15519         environment::set_composite.
15520         * troff/node.c (make_composite_node, make_glyph_node): Use the
15521         plain version of the tfont if the environment is composite.
15523         * troff/node.c (font_info::get_space_width): Additional argument
15524         giving space_size.  Handle constant space correctly. Scale by
15525         space_size unless constant spaced.
15526         (env_sentence_space_width): New function.
15527         * troff/node.h: Declare it.
15528         * troff/env.h (environment::get_space_size,
15529         environment::get_sentence_space_size,
15530         environment::get_narrow_space_width,
15531         environment::get_half_narrow_space_width): Make inline.
15532         (environment::get_space_width): Make inline.  Just call
15533         env_space_width.
15534         * troff/env.c: Delete definitions for funtions made inline.
15535         (environment::space_newline, environment::space): Use
15536         env_sentence_space_width(). Don't scale by space_size.
15537         * troff/node.h: Move declarations of env*space_width() functions
15538         into env.h.
15540 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
15542         * macros/tmac.s (PS): Don't try to set negative indent.
15544 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
15546         * pic/pic.y: Fix min function.
15548 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
15550         * man/mdate.sh: Clear LANGUAGE.
15552 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
15554         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15555         * pic/lex.c: New COMMAND keyword.
15556         * pic/pic.y (print_args, print_arg): New rules.
15557         (placeless_element): Use print_args for PRINT.
15558         New COMMAND element.
15560 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
15562         * troff/input.c (terminal): Handle missing argument correctly.
15564         * pic/pic.y (text_expr): New rule.
15566         * pic/pic.y: Implement := operator.
15568 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
15570         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15571         mdoc.
15573 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
15575         * ps/devps/dingbatsrmap: Include this in the distribution.
15577         * macros/tmac.doc: Replace with new version from 2nd Networking
15578         Release. Fix loading of doc-* files.
15579         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15580         * macros/tmac.doc.old: New file.  Apply fixes that had been
15581         applied to old tmac.doc.
15582         * macros/tmac.andoc: Check that we're running under groff.
15583         * macros/Makefile: Rework.
15585 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
15587         * tbl/table.h (format_type): 
15588         * refer/token.h (token_type): If NESTED_TYPES is defined, use
15589         typedef to make these types visible at file scope.
15590         * Makefile: Add NESTED_TYPES configuration option.
15592         * troff/div.c (mark): At the top level use the value of
15593         nl_reg_contents rather than the current vertical position.
15595 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
15597         * tty/tty.c: Implement \D for horizontal or vertical lines.
15598         (tty_printer::set_char): Use vec_used+2 as serial number.
15599         Don't allow size of vector to exceed USHRT_MAX-2.
15600         Split off part into...
15601         (tty_printer::add_char): New function.
15602         (tty_printer::draw): New function.
15603         (compare_glyph): Handle equal serial numbers.
15604         (tty_printer::end_page): Handle overstruck characters from \D.
15605         (main, usage): Implement -d option.
15607 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
15609         * tbl/main.c (process_format):
15610         * eqn/text.c (split_text):
15611         * troff/input.c (token::next): Use inner block for declarations
15612         with initializers in switch statement.
15614 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
15616         * pic/common.c (common_output::dash_line): Cope with zero-length
15617         lines.
15619 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
15621         * Version 1.04 released.
15623 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
15625         * macros/tmac.an (TH): Define a macro an-init to define variables
15626         based on command line arguments.
15627         (an-header): Call it.
15629 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
15631         * Makefile (install.mm): Rename to install.dwbmm.
15633         * Makefile: Integrate mm.
15634         * mm: New directory.
15636 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
15638         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15639         <sys/types.h>.
15641         * pic/troff.c (troff_output::simple_spline,
15642         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15643         shadowing parameter.
15645         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15647         * lib/ptable.h: Add explicit casts when converting from unsigned
15648         long to unsigned.
15650         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15651         * dvi/devdvi/Makefile: Install SA, SB.
15653         * refer/indxbib.c: Add declaration of mktemp.
15655         * refer/lookbib.c: Add declaration of isatty.
15657 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
15659         * pic/lex.c (interpolate_macro_with_args):  While collecting
15660         arguments, keep track of whether we're in a string.
15662 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
15664         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15665         down with \v, so as to avoid problems with top of page trap
15666         setting no space mode.
15668 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
15670         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15672 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
15674         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15675         Improve error message.
15677 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
15679         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15680         printf("%03o");
15682 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
15684         * groff.c (possible_command::execp): Always use _exit() after a
15685         failed exec.
15687         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15688         NO_SYS_WAIT_H   configuration options.
15689         * groff.c: Use these options.  Use POSIX-style macros to extract
15690         fields from the status returned by wait().
15692 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
15694         * tbl/table.c (table::compute_separation_factor): Allow the
15695         separation factor to drop to 0.
15697 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
15699         * refer/search.c: Include <errno.h>.
15701 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
15703         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15705         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15706         C++. 
15708         * pic/lex.c (input_stack::bol): Move definition out of class body.
15710         * pic/main.c: On MSDOS munge argv[0].
15712         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15714         * lib/ptable.c (hash_string): Use unsigned long rather than
15715         unsigned.
15716         (next_ptable_size): Use unsigned rather than int.  Give an error
15717         message if we've hit the largest table size.
15718         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
15719         table size.
15721         * pic/object.h (object_spec): Make flags unsigned long.  Declare
15722         flags as const unisgned long rather than as enums.
15724         * pic/output.c: Deleted.
15726         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15728         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15729         Add additional argument.
15730         (line_entry::note_double_vrule_on_{left,right}): Set value of
15731         douvle_vrule_on_{right,left} flag according to argument.
15732         (simple_line_entry::simple_print,
15733         simple_line_entry::double_line_print): If adjacent to double vrule
15734         on a corner extend rather than shorten the rule by half the double
15735         vrule sep.
15737         * troff/number.c (parse_term): In checking for overflow, handle the
15738         case where the current horizontal position is negative.
15740 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
15742         * pic/object.c (draw_arrow): Check for object having zero length.
15744 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
15746         * eqn/main.c (do_file): Split off inline equation handling into...
15747         (inline_equation): New function.  Search for starting delimiter
15748         using...
15749         (delim_search): New function. Don't recognize a delimiter that
15750         occurs in the name of an escape sequence, number register, string
15751         etc.
15753 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
15755         * eqn/delim.c (delim_box::compute_metrics): Don't call
15756         define_extensible_string if left is 0.
15757         (delim_box::output):  Don't print the left delimiter if left is 0.
15758         (delim_box::debug_print): Check for left == 0 before calling printf.
15760 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
15762         * troff/Makefile (majorminor.c): Include only digits in
15763         minor_version.
15765 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
15767         * refer/dirnamemax.c: new file.
15768         * refer/genlimits.c: Deleted.
15769         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15770         Don't check path length.
15771         * refer/Makefile: Add dir_name_max.o; delete genlimits.
15772         * Makefile: Add PATHCONF_MISSING option.
15774         * refer/indxbib.c (get_cwd): New function.
15775         (main): Use get_cwd().
15776         * lib/getcwd.c: New file.
15777         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15778         GETCWD in SUBFLAGS.
15779         * lib/Makefile: Compile getcwd.o.
15781         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15782         userdict.
15784         * refer/indxbib.c (main): Check success of mktemp.
15786         * lib/tmpfile.c: New file.
15787         * lib/Makefile: Add tmpfile.c.
15788         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15789         * ps/ps.h: Delete declaration of mktemp().
15790         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15791         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15792         * driver/driver.h: No need now to include errno.h.
15794         * everywhere: Set errno to 0 before calling fopen().
15796         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15797         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15798         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15800 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
15802         * troff/env.h (translate_space_to_dummy): Declare it.
15803         * troff/env.c (environment::space_newline, environment::space):
15804         If translate_space_to_dummy is set then make the width of spaces 0.
15805         * troff/input.c (translate): If the second character of a
15806         translation is a space, translate to unbreakable space.  If the
15807         first character is a space, set or clear translate_space_to_dummy
15808         according to whether the second character is \&.  Weird!
15810 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
15812         * groff.c (run_commands): Don't use non-zero exit code because a
15813         command gets SIGPIPE.
15815         * groff.c, groff.sh: Use -mXps with -TXps.
15817         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15818         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15819         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15820         (ps_printer::special): New specials invis and endinvis.
15821         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15822         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
15823         (ps_printer::end_page): Check that invis_count == 0.
15824         (ps_printer::invis_count): New member.
15825         (ps_printer::ps_printer): Initialize invis_count to 0.
15827         * troff/env.c (environment::hyphenate_line): Hyphenation
15828         indicator at beginning of word inhibits splitting after -, \(em
15829         etc.
15831         * pic/pic.y (element): Allow another element to follow } without
15832         any intervening separator.
15834 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
15836         * pic/lex.c (get_delimited): Allow tabs before delimiter.
15838 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
15840         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
15841         declaration of wait() in header files.
15842         * Makefile: Get rid of -DHAVE_UNION_WAIT.
15844         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15846         * lib/lib.h: Declare return type of strerror as char *.
15848         * man/Makefile: Add g flag to sed substitutions.
15849         * Makefile (shgroff, bindist): Likewise.
15851 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
15853         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15854         * ps/devps/prologue (PBEGIN): Define showpage after pushing
15855         userdict.
15857 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
15859         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15860         userdict.
15862 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
15864         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15865         group.
15867 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
15869         * troff/input.c (define_number_reg):  If currently undefined,
15870         don't define it if the argument is an invalid expression.
15872         * Makefile: Ignore return value of `if' commands without `else'
15873         parts.
15875         * Makefile: Split up CPPDEFINES into a series of separate
15876         configuration options.
15878         * troff/input.c (init_registers): Use time_t instead of long
15879         unless LONG_FOR_TIME_T is defined.  Use returned result rather
15880         than passing pointer.
15881         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15883         * lib/Makefile (fontpath.h): Use gendef.
15885 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15887         * troff/input.c (input_iterator::shift): Delete argument name.
15888         * troff/node.c (suppress_output_file::really_begin_page,
15889         suppress_output_file::really_transparent_char, node::ascii_print,
15890         node::tprint): Delete names of unused arguments.
15892 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15894         * refer/label.y (string):  Pass $4 to command_error.
15896 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15898         * Version 1.03 released.
15900 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15902         * Makefile: Pass definition of SHELL in SUBFLAGS.
15904         * gendef: New file.
15905         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15906         ps/Makefile: Use gendef to construct header files that are
15907         constructed from the Makefile.
15909         * macros/Makefile: make all should build stripped version of tmac.e.
15911         * refer/Makefile (clean): Remove y.output.
15913 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15915         * ps/pfbtops.c (main): Add -v option which prints out a version
15916         number.
15917         * ps/Makefile (pfbtops): Link with libgroff.a.
15919 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15921         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15922         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15924         * refer/lkbib.c (main): Always terminate reference with blank
15925         line.
15926         * refer/lookbib.c (main): Likewise.
15928         * refer/linear.c (file_buffer::load): Check that the file is not a
15929         binary file.
15931         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15932         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15933         Delete second inclusion of <sys/param.h>.
15935 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15937         * troff/token.h (token::special): Deleted.
15939         * tbl/main.c (process_format): Rework so that opt->tab_char is
15940         recognized only when appropriate.
15942         * ps/Makefile (clean): Remove pfbtops.
15944 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15946         * lib/font.c (text_file::next): Don't return if we have got a
15947         blank line.
15949 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15951         * refer/refer.c (store_reference): Get hash code from old_table[i]
15952         when rehashing the table.
15954 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15956         * eqn/box.c (box::top_level): Save size and prev size using \R and
15957         restore it afterwards. Set the size to the size at the beginning
15958         of the line.
15959         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15960         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15962         * refer/Makefile (limits.h): Use ./genlimits.
15964 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15966         * refer/index.c: Delete declarations of stat() and fstat().
15968 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15970         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15972 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15974         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15976 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15978         * troff/input.c (token::get_char): Handle \e.
15980         * refer/linear.c: Delete declarations of fstat() and stat().
15982 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15984         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15985         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15987 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15989         * troff/input.c (do_define_macro): Improve error handling for end
15990         of file while defining macro.
15992 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15994         * eqn/box.h: Fix declaration of set_gsize.
15995         * eqn/box.c (set_gsize): Make argument const char *.
15996         (gsize): Declare as char *.
15997         * eqn/main.c (main): Don't convert gsize to int.
15998         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
16000         * Version 1.02 released.
16002 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
16004         * macros/tmac.andoc: New file.
16005         * macros/Makefile: Install tmac.andoc.
16007         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
16008         operator new and delete on OP_DELETE_BROKEN not being defined.
16009         * Makefile: Mention OP_DELETE_BROKEN.
16011 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
16013         * Makefile (bindist): Pass SUBFLAGS.
16015 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
16017         * Makefile, groff.c: Pass definitions to groff.c via device.h.
16019         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
16020         parameter.
16022         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
16024         * ps/ps.h, ps/psrm.c: Make comment_table and
16025         header_comment_table local to resource_manager::process_file.
16027         * groff.sh: With -TXps pass -printCommand option to gxditview.
16029         * groff.c (possible_command::print): Implement using
16030         append_arg_to_string.
16032         * xditview: Merge in new implementation with own ChangeLog.
16034 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
16036         * groff.c (main): Implement PRINT_OPTION.
16037         (append_arg_to_string): New command.
16038         (device_table): Set PRINT_OPTION flag for Xps.
16040 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
16042         * troff/groff.h: Rename to troff.h.
16044         * pic/lex.c (lookup_keyword, docmp): New functions.
16045         (get_token): Use new lookup_keyword.
16046         Don't include key.h.
16047         * pic/key.[ch], pic/pic.gperf: Deleted.
16048         * pic/Makefile: Remove gperf stuff.
16050         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
16051         into output.h.
16052         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
16054         * troff/Makefile, troff/node.c: Move definition of
16055         STORE_WIDTH into node.c.
16057         * etc/grog.pl, etc/grog.sh: Support -mdoc.
16059 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
16061         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
16062         dvi/devdvi/texb.map: Add lq and rq.
16063         dvi/devdvi: Regenerate fonts.
16064         * ps/devps/textmap: Add lq and rq.
16065         * ps/devps: Regenerate fonts.
16066         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
16067         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
16069         * pic/object.c (position_rectangle): When checking radius
16070         cope with possiblity that width or height is negative.
16071         (box_object::box_object): Have separate xrad and yrad with
16072         signs matching signs of dim components.
16073         (box_object::{north,south}_{east,west}): Use xrad and yrad.
16074         (box_object::print): With rounded boxes use absolute values
16075         for dim and rad arguments.
16077         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
16078         in fontpath.h.
16080         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
16082         * various files: Add explicit destructors to keep Saber CC +d
16083         happy.
16085 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
16087         * eqn/box.c (box::top_level): Restore fonts correctly after
16088         font changes in line containing inline equation.  Also
16089         restore previous font as well as current font.
16090         * eqn/pbox.h: Define necessary string and register names.
16092         * troff/input.c (token::next): Case 'R' calls do_register.
16093         (do_register): New function.
16095 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
16097         * groff.c, groff.sh: Support Xps device.  Allow each device
16098         to have a pseudo_name and a real_name.
16100         * groff.c (run_commands): Don't print `Broken pipe' messages.
16102         * ps/pfbtops.c: New file.
16103         * ps/Makefile: Add pfbtops.
16105         * troff/number.c (parse_term): Improved error message.
16107 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
16109         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
16111         * Makefile: Integrate refer.
16112         * refer: New directory.
16113         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
16114         man/lkbib.man: New files.
16115         * man/Makefile: Support refer man pages.
16117         * lib/lib.h: Declare is_prime.
16118         * lib/prime.c: New file.
16120         * troff/input.c (macro_source): New function.
16121         (init_input_requests): Bind "mso" to macro_source.
16123         * troff/env.c (environment::possibly_break_line): Maintain
16124         pointer to pointer to node to be split in ndp so as to avoid
16125         using address of freed node.
16127         * troff/env.c (environment::hyphenate_line): Maintain pointer to
16128         pointer to first node to be hyphenated in startp so as to
16129         avoid using address of freed node.
16131         * troff/env.c (class trie, class hyphen_trie): Make the
16132         elements of the trie be of type char not unsigned char.
16133         Declare arguments to be const char* instead of unsigned char *.
16134         
16135         * troff/env.c (hyphenate): Initialize hbuf[0].
16137         * troff/input.c (set_string): Declare p to be char * and cast
16138         *p to unsigned char when necessary.
16140         * troff/input.c (do_define_macro): Declare s to be const
16141         char*. Cast element to unisgned char when necessary, Declare
16142         d to be an int.  Handle EOF better.
16144         * troff/Makefile, troff/input.c: Different scheme for passing
16145         definitions of MACROPATH, HYPHENFILE and DEVICE.
16147 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
16149         * tty/devascii/R.proto: Delete entry for em.
16150         * tty/devlatin1/R.proto: Likewise.
16152 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
16154         * troff/input.c (translate): Stop when we get a space. Treat eof
16155         like newline.
16157         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
16159 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
16161         * tbl/main.c (process_format): A font name following a `f'
16162         modifier that starts with a digit can be only one character long.
16163         Also deal with EOF on the second character of the font name.
16165 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
16167         * troff/input.c (token::next): Turn \~ into an
16168         unbreakable_space_node.
16169         * troff/node.c (unbreakable_space_node): New class.
16170         * troff/node.h: Declare it.
16172 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
16174         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
16175         it's >= 0, before outputting it as a single byte.
16177 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
16179         * lib/font.c: Make font_char_metric::code an int.
16180         (font::get_code): Change return type to int.
16181         (font::load): Allow code to be arbitrary integer.
16182         * lib/font.h (font::get_code): Change return type to int.
16183         (font::number_to_index): Change argument type to int.
16184         * troff/input.c (token::next):  In case 'N', allow any value.
16185         Store value in token::val.
16186         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
16187         (token::get_char, token::add_to_node_list, token::process): Get
16188         number from val.
16189         (charinfo::set_number): Change argument to int.
16190         (charinfo::get_number):  Require that NUMBERED flag be set.
16191         (get_charinfo_by_number): Store numbered characters not between 0
16192         and 255 in a dictionary.
16193         * troff/charinfo.h (get_charinfo_by_number): Change argument type
16194         to int.
16195         (charinfo::number): Change type to int.
16196         (charinfo::set_number): Change type of set_number to int.
16197         * troff/node.c (troff_output_file::put_char_width,
16198         troff_output_file::put_char): Test whether character is numbered
16199         using charinfo::numbered().
16200         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
16201         values of num.
16202         * lib/nametoindex.c: New implementation to cope with arbitrary
16203         number characters.
16205         * troff/input.c (token::operator==): Test val for
16206         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
16207         TOKEN_SIZE.
16209         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
16210         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
16212 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
16214         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
16215         variable.
16217         * all Makefiles: rm targets of cp and >.
16219         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
16220         it.
16222         * eqn/lex.c (def_table): Add dollar.
16224 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
16226         * troff/input.c (do_width): Push back newline before closing delim
16227         like do_bracket.
16229 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
16231         * groff.c (possible_command::prepend_arg): New function.
16232         (main): Prepend device -m option.
16233         * groff.sh: Put device -m options before command-line options.
16235 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
16237         * macros/tmac.an (IP): Quote argument to TP.
16239         * ps/ps.c (main): New option -b, which sets...
16240         (broken_flags): New variable.
16241         (ps_printer::~ps_printer): Incorporate the setup section in the
16242         prolog if (broken_flags & NO_SETUP_SECTION).
16243         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
16244         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
16245         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
16246         ps_printer::print_needed_font_comment,
16247         ps_printer::print_supplied_font_comment,
16248         ps_printer::print_include_font_comments,
16249         ps_printer::lookup_doc_font, ps_printer::download_fonts,
16250         ps_printer::read_download_file, read_document_fonts, add_font,
16251         skip_line, parse_fonts_arg, document_font::document_font,
16252         document_font::~document_font, document_font::download,
16253         ps_output::include_file):  Deleted.
16254         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
16255         rather than %!PS-Adobe-2.0.  Make calls to
16256         resource_manager::need_font for each font that we used. Replace
16257         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
16258         print_supplied_font_comment, print_needed_font_comment by call to
16259         resource_manager::print_header_comments. Output %%Orientation
16260         comment. Output %%Requirements: numcopies comment if ncopies > 1.
16261         Don't output the prolog directly.  Instead call
16262         resource_manager::output_prolog.  Only define #copies when ncopies
16263         > 1.  Delete calls to print_include_font_comments  and
16264         download_fonts.  Add call to resource_manager::document_setup.
16265         (ps_printer::do_file): Call resource_manager::import_file instead
16266         of including it ourselves.
16267         (ps_printer::do_import): Likewise.  Also don't call
16268         merge_import_fonts. Push userdict on the dictionary stack before
16269         and pop it afterwards.
16270         Move declaration of ps_output into ps.h.
16271         * ps/psrm.c: New file implementing resource_manager class.
16272         * ps/ps.h: New file declaring ps_output and resource_manager
16273         classes.
16274         * ps/devps/zapfdr.ps:
16275         * ps/devps/symbolsl.ps:
16276         * ps/devps/prologue:  Use 3.0 conventions.
16277         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
16278         Add default definition of BROKEN_SPOOLER_FLAGS.
16279         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
16280         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
16282 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
16284         * etc/grog.pl: New file.
16285         * Makefile (GROG): New variable.
16286         Add GROG to SUBFLAGS.
16287         * etc/Makefile (GROG): New variable.
16288         (install.nobin): Install $(GROG) rather than grog.sh.
16290 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
16292         * eqn/special.c (special_box::compute_metrics): Make the input and
16293         output strings the same.  Get the new height and depth from the
16294         predefined height and depth registers.  Also make subscript kern
16295         and skew available.
16296         (special_box::compute_subscript_kern, special_box::compute_skew):
16297         New functions.
16299         * eqn/box.c (pointer_box::compute_skew,
16300         simple_box::compute_metrics, box::top_level)
16301         * eqn/text.c (prime_box::compute_metrics,
16302         prime_box::comput_subscript_kern)
16303         * eqn/limit.c (limit_box::compute_metrics):
16304         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
16305         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
16306         negative numbers in `nr' requests with a leading 0.
16308 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
16310         * eqn/special.c: New file.
16311         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
16312         Add new rule for simple.
16313         * eqn/lex.c (token_table): Add SPECIAL.
16314         * eqn/box.h: Declare make_special_box.
16315         * eqn/Makefile: Add special.[co].
16317 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
16319         * ps/devps/prologue: Possibly set packing to true while defining.
16320         Create grops dictionary here.  Initialize local variables before
16321         defining procedures.
16322         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
16323         the dictionary stack. Set strokeadjust and overprint to false if
16324         the relevant operators are defined.
16325         (PEND): New procedure.
16326         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
16327         prologue.  Do everything else in the setup section.
16328         (ps_printer::do_import): Just call PBEGIN and PEND around the
16329         picture. Also push userdict before, and pop it afterwards.
16331 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
16333         * troff/node.c (bracket_node::tprint): Brackets were being printed
16334         1m too low.
16336         * macros/tmac.an (SH, SS): Set fill mode.
16338 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
16340         * troff/div.c (top_level_diversion::begin_page): Set
16341         high_water_mark to 0.
16343 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
16345         * man/mdate.sh: New file.
16346         * man/mdate.c: Deleted.
16347         * man/Makefile: Use mdate.sh instead of mdate.
16348         (mdate): Deleted.
16350         * eqn/lex.c (do_gsize): Supply missing argument to error message.
16352 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
16354         * man/mdate.c: New file.
16355         * man/*.man: Replace modification date by @MDATE@.
16356         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16357         (mdate): New target.
16359         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16360         Remove illegal input characters.
16362 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
16364         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16366 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
16368         * troff/div.c (begin_page): Change behaviour when
16369         !first_page_begun and !break_flag.
16371         * troff/input.c (do_name_test): Return 0 if argument is empty.
16373         * troff/input.c (read_long_escape_name): Require closing ] to be
16374         at same input level as opening [.
16376         * troff/input.c (read_increment_and_escape_name): New function.
16377         (get_copy, process_input_stack): Use this for \n.
16379 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
16381         * troff/div.c (top_level_diversion::begin_page): Ignore the
16382         current value of page_number if !first_page_begun.
16384         * groff.c (main): Fix declaration of buf.
16386         * troff/input.c (do_name_test): New function.
16387         (token::next): Implement \A.
16388         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16389         (token::description, token::add_to_node_list, token::process):
16390         Handle TOKEN_ESCAPE.
16391         * troff/token.h: New token TOKEN_ESCAPE.
16393 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
16395         * pic/main.c (do_picture): Allow space before and after filename
16396         following `<'.  Check that the filename is not empty.
16398 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
16400         * Version 1.01 released. 
16402         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16404         * dvi/tmac.dvi: ftr HR to H.
16406         * macros/tmac.e: Round up computation of $r.
16408         * xditview/tmac.X:  Don't give up completely in compatibility mode.
16409         Use \n(.s instead of \n[.s].
16411         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16412         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16413         Add u to factors inside \s[...]. Rename frac to dvi-frac.
16414         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16415         short names in the char definitions.
16417         * ps/tmac.ps: Don't give up completely in compatibility mode.
16418         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16419         quote in front of \n(.s. Add u to factors inside \s[...].
16421 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
16423         * tty/tmac.tty: Call the nroff request.
16425         * macros/tmac.e ((x, )x):  Better definitions that work properly
16426         in a diversion.
16427         (@0, @1): Helper macros for (x.
16429         * macros/tmac.e ($s, hl): Use \l rather than \D.
16431         * tty/tmac.tty: Make it work better in compatibility mode.
16432         (pchar): Rename to tty-char.
16434         * macros/tmac.e (@E): New macro.
16435         (r, i, b, rb, bi): Use @E.
16437         * macros/tmac.e (@F): Don't use (;...) syntax.
16439         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
16440         it was modified for groff.
16442         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16444         * macros/tmac.e (<., .>): Removed.
16445         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16447         * macros/tmac.e: Remove check that groff is being used.
16449         * macros/tmac.e (@C): Change families only if using groff; turn
16450         compatibility mode off while changing familes. Save compatibility
16451         mode before changing families and restore it afterwards.
16453         * macros/tmac.e (@h): Remove test for offset + line length.
16455         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
16456         (lo, th, ac): Define to call @S instead of using als.
16458         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16459         the ratio of the vertical spacing to the point size in units
16460         expressed as a percentage.  Use these instead of $10r and $10R,
16461         Delete $10r and $10R.
16463         * lib/font.c (font::load): In default computation of space_width,
16464         divide by sizescale.  Use scale_round.
16466         * macros/tmac.an (TP): Don't call `nf'.
16467         (an-do-tag): Don't call `fi'.
16469 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
16471         * troff/input.c (process_input_stack): Handle the case where
16472         spaces at the beginning of an input line are followed by a
16473         newline.
16475 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
16477         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16478         * groff.sh: Use pic -x with the dvi device.
16480         * dvi/devdvi/FontMakefile (H): Don't use -s.
16482         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16483         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16484         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16485         in FONTS.
16487 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
16489         * ps/psfig.diff: New file.
16490         * ps/tmac.psfig: New file.
16492 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
16494         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16495         (]-): Don't call ref*do-tl.
16497         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16499         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16500         (fn@do-FS): Rename to fn*do-FS.
16502         * troff/input.c (transparent_translate): New function.
16503         (process_input_stack): Apply transparent_translate before calling
16504         diversion::transparent_output(unsigned char).
16506 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
16508         * troff/input.c (do_define_macro): Define the macro before calling
16509         skip_line.
16511         * xditview/Makefile: Add DEVICES variable.  Change install target
16512         to use this.
16514 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
16516         * groff.c (run_commands): Handle the possibility that there are
16517         child processes other than those forked by us.
16519 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
16521         * lib/string.c (string::append): New function.
16522         * lib/stringclass.h: Declare it.
16524 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
16526         * eqn/main.c (main): New option -N which sets
16527         no_newline_in_delim_flag. 
16528         (do_file): If no_newline_in_delim_flag is set don't allow newlines
16529         in delimiters.
16530         * groff.c (main): Pass -N on to eqn.
16531         (help, synopsis): Mention -N.
16532         * groff.sh: Implement -N.
16534 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
16536         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16537         (]-): Call ref*do-tl if ref*need-tl is non-zero.
16538         (XP): Allow as initializer.
16540 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
16542         * troff/env.c (environment::wrap_up_field): If field_spaces are
16543         non-zero and we have a current_tab, subtract padding from
16544         tab_distance.  If this makes tab_distance <= 0, use the next tab
16545         stop instead.  If there isn't any next tab or it's a left tab,
16546         wrap up the current tab.
16547         (environment::start_field): Initialize tab_precedes_field.
16548         (environment::wrap_up_tab): If there's a current field, update
16549         pre_field_width, field_distance and tab_precedes_field.
16550         * troff/env.h (environment::tab_precedes_field): New member.
16552 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
16554         * ps/ps.c (ps_printer::do_file): New function.
16555         (ps_printer::special): Bind to `file' special.
16556         (ps_printer::do_exec): Set ndefined_styles to 0.
16558 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
16560         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16561         Avoid stripping first character from the start of unrecognized
16562         escapes.  Use lex_error instead of error to report errors.
16563         * eqn/lex.c (get_token): Rework handling of escapes.
16564         (lex_error): Move declaration into...
16565         * eqn/eqn.h.
16567         * xditview/xditview.c (main): Make -page option work.
16569         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16571 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
16573         * macros/tmac.s (B2): Correct size of box.
16575 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
16577         * macros/tmac.s (B2): Postpone drawing the box until in the
16578         top-level diversion.
16580         * tty/tmac.tty: Add font translations for C, CR, CW.
16582         * groff.c (synopsis, help): Document -i.
16583         * groff.sh: Implement -i.
16585         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16586         Simplify the construction of SN.
16588         * troff/number.c (parse_term): Give `|' a higher precedence.
16589         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16590         accordingly.
16592         * macros/tmac.s (B2): Use par@finish instead of par@reset.
16594 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
16596         * lib/string.c (string::move): New function.
16597         * lib/stringclass.h: Declare it.
16599 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
16601         * troff/env.c (distribute_space): Add optional argument
16602         `force_forward'.
16603         (environment::wrap_up_field): Call distribute_space with
16604         `force_forward' argument of 1.
16606 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
16608         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16609         Inline it.  Move reallocation into...
16610         (string::grow1): New function.
16611         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16612         dependencies to include library header files.
16613         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16615 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
16617         * macros/tmac.s (@NH): Use the same number registers than -ms does
16618         for the heading level counters.  Use the same string that -ms does
16619         for the number for this heading.
16621 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
16623         * lib/new.c (operator new): Cast result of malloc to char *.
16625         * troff/input.c (spring_trap, lookup_request): Add assert that nm
16626         is not null.
16628 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
16630         * groff.c (main): Support -i.
16632 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
16634         * pic/pic.h: Include <osfcn.h>.
16636         * ps/ps.c: Add declaration of mktemp.
16638         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16639         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16640         argument as union wait *.
16641         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16642         argument to union wait *.
16644 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
16646         * tty/tmac.tty: Add definition of \(co.
16648         * pic/object.c (make_arc): Only increase radius when radius
16649         strictly less than d.
16650         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16651         more than once.
16653         * troff/env.c (environment::environment(symbol),
16654         environment::environment(const environment *)):  Initialize
16655         input_trap_count.
16657 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
16659         * tbl/main.c (main): Add exit(0).
16661         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16663         * pic/main.c (main):
16664         * eqn/main.c (main):
16665         * tbl/main.c (main):
16666         * etc/soelim.c (main):
16667         * driver/printer.c (printer::~printer):
16668         * troff/node.c (real_output_file::~real_output_file,
16669         real_output_file::flush):  Check for errors on stdout.
16671         * most files: Add 1991 to copyright notice.
16673         * macros/tmac.s: Don't test \n(.x and \n(.y.
16675         * troff/input.c (token::next): Rename `escape_char' label to
16676         `handle_escape_char' and `normal_char' label to
16677         `handle_normal_char'.
16679 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
16681         * groff.c (main, synopsis, help): Support -a option.
16682         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
16683         to trflags while parsing options.
16685 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
16687         * troff/number.c (parse_term): With `m', `M' and `n' scale
16688         indicators, convert scale factor to hunits before scaling.
16690 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
16692         * lib/font.c (scale_round): Better test for overflow when n is
16693         negative.
16695 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
16697         * tbl/main.c (process_format): Add second argument of type
16698         options*. Change callers.  Allow opt->tab_char as well as '\t'
16699         between format items.
16701 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
16703         * macros/tmac.an (PD): With no arguments, make sure register PD is
16704         at least \n[.V].
16705         (TH): Call PD with no argument, instead of setting register PD
16706         directly.
16708 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
16710         * Version 1.00 released.
16712 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
16714         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16716         * dvi/devdvi/DESC: Mount CW instead of CR.
16718         * dvi/tmac.dvi: Add definition of \(tm.
16720         * dvi/devdvi/texsy.map: Add lh, and rh.
16721         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16722         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16724         * dvi/devdvi/FontMakefile: Generate H from cmss10.
16725         * dvi/devdvi/Makefile: Install H.
16726         * dvi/devdvi/H: New file.
16728 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
16730         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16731         be 0.
16733 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
16735         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16737         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16739         * macros/tmac.s (@EN): Handle the case where the equation is empty
16740         but the label is not.
16742 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
16744         * troff/groff.h: New warning category WARN_SPACE.
16745         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16746         WARN_SPACE to warning_table.
16747         (interpolate_macro): Give a warning of type WARN_SPACE if the name
16748         is longer than two characters and is not defined, but the first
16749         two characters do make a defined name.
16751         * PROBLEMS: New file.
16753         * CHANGES: New file.
16754         * README-0.6, README-1.00: Deleted.
16756         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16757         * xditview/devX75/Makefile: Make devX75-12.
16758         * xditview/devX100/Makefile: Make devX100-12.
16760         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16761         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16763 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
16765         * README-0.7: Rename to README-1.00.
16767         * macros/tmac.pic: New file.
16768         * macros/Makefile (install.nobin): Install tmac.pic.
16770 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
16772         * troff/env.c (hyphen_word): Correct the test for whether the
16773         token is a hyphen.  Reset npos to 0.
16775         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16777 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
16779         * macros/tmac.s (ds*common-end): Call par*reset.
16780         (PE): Likewise.
16781         (par@reset-indent): Deleted.
16783         * macros/tmac.s (@IP): Divert the label.
16785 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
16787         * xditview/draw.c (setGC): Use a line width of .1m rather than
16788         .04m by default; round rather than truncate value.
16790         * tbl/table.c (class empty_entry): New class.
16791         (empty_entry::empty_entry, empty_entry::line_type): New functions.
16792         (table::add_entry): Represent empty entries by objects of type
16793         empty_entry.
16794         (table_entry::line_type): Return -1.
16795         (table::determine_row_type): Ignore entries with line_type 0.
16796         Treat type -1 as non-lines.
16798 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
16800         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16801         macros/tmac.s: Rename \(-d to \(Sd.
16803 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
16805         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16806         * xditview/libXdvi/DviChar.c: Likewise.
16807         * dvi/devdvi/texsy.map: Add `<<', `>>'.
16809 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
16811         * troff/div.c (top_level_diversion::begin_page): Call
16812         init_output() if the_output is 0.
16814 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
16816         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16817         ESCAPE_c.
16818         (get_copy): Turn \E into ESCAPE_E.
16819         (token::process, asciify): Handle ESCAPE_E.
16821         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16822         (RD): New macro.
16823         (DS): Implement `.DS R'.
16825 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
16827         * macros/tmac.s (FS): New macro.
16829         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16831         * macros/tmac.s (cov*tl-init): Remove after first execution
16832         instead of aliasing to @nop.  Call top of page macro explicitly
16833         instead of setting trap; call @init first.  Set pg@top as top of
16834         page macro.
16835         (cov*auto-init): Deleted.  Set cov*tl-init instead of
16836         cov*auto-init as top of page trap. 
16837         (TL, LP): Do a break instead of calling cov*tl-init.
16838         (cov*print): With RP format but no TL, alias FS and FE to @FS and
16839         @FE; in this case also give a warning and always start another
16840         page. No need to set pg@top here.
16841         (cov*tl-init): Rename to cov*first-page-init.
16843         * macros/tmac.s (RP): Do `.pn 0'.
16844         (cov*tl-init): With RP format don't do `.pn 0'.
16846         * macros/tmac.s (pg@cs-top): Set no space mode.
16848         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16849         (cov*ab-init): Alias TL, AU and AI to these.
16851 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
16853         * macros/tmac.s (@EQ): Move the space before the equation into @EN
16854         (@EN): Do nothing unless \n[dl] is > 0.
16856 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
16858         * pic/object.c (ellipse_object::radius): New function.
16860         * VERSION: Change version to 0.7.
16862         * tbl/table.c (block_entry::do_divert): Declare return type as
16863         void.
16864         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16866 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
16868         * troff/column.c: New file.
16869         * troff/Makefile: Corresponding changes.
16871         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
16872         Friend of vunits.
16874         * troff/div.c (top_level_diversion::space): If the space causes
16875         the first-page transition and springs a trap, truncate the space
16876         to 0.
16878 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
16880         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16881         the document.
16883         * pic/troff.c (troff_output::line_thickness,
16884         troff_output::set_fill): Do a horizontal motion to compensate for
16885         the width of the \D escape sequence.
16887 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16889         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16890         (not X75).
16892         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16893         to printf.
16895         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16896         Supply empty definition.
16897         (text_entry::simple_print, simple_text_entry::simple_print):
16898         Delete declarations.
16899         (table::add_entry): Represent empty entries by objects of type
16900         `simple_entry'.
16902 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16904         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16906         * tbl/table.c (left_text_entry::add_tab): New function.
16908         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16909         initialize like LP.
16911 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16913         * troff/env.c (environment::start_field): Give an error message if
16914         there is no next tab.
16916 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16918         * troff/env.c (hyphenate): Skip initial elements with zero
16919         hyphenation code.
16921         * macros/tmac.s (par@init): Keep VS in points rather than units.
16923 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16925         * pic/main.c (main): Implement `-c' option.
16926         * pic/output.h: Declare make_tpic_output().
16927         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16928         protected.
16929         (tpic_output): New class.
16930         (tpic_output::tpic_output, tpic_output::set_pen_size,
16931         tpic_output::command, make_tpic_output): New functions.
16933 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16935         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16936         if they're not already defined.
16937         * tbl/table.c (init_output): Don't test \n(.g.
16939         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16940         `d', `r' and `c' conditions even in compatibility mode.
16942 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16944         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16945         box.
16947 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16949         * troff/env.h (environment::prev_line_interrupted): New member.
16950         (environment::get_prev_line_interrupted): New function.
16951         * troff/env.c (environment::newline): Set prev_line_interrupted.
16952         (environment::environment(const environment *),
16953         environment::environment(symbol)): Initialize
16954         prev_line_interrupted.
16955         * troff/input.c (process_input_stack): Don't give special
16956         treatment to space and newline at the beginning of the line if the
16957         previous line was interrupted.
16959 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16961         * eqn/eqn.y: Disallow PRIME by itself.
16962         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16963         PRIME.
16964         (def_table): Remove definition of '.  Define prime to be `.
16966         * eqn/eqn.y: Split off part of rule `script' into a new rule
16967         `nonsup'.
16969 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16971         * macros/tmac.s ({, }): New string aliases.
16973 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16975         * README-0.7: New file.
16977 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16979         * macros/tmac.s: New file.
16980         * man/groff_ms.man: New file.
16981         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16982         * Makefile.bd: Similarily.
16983         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16984         definition of TMAC_S.
16985         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16986         * macros/TODO: New file.
16988 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16990         * troff/env.c (right_justify): New function.
16991         (init_env_requests): Bind this to request "rj".
16992         (center_lines): Set right_justify_lines to 0. If we get a bad
16993         integer, center 1 line.
16994         (environment::environment(symbol), environment::environment(const
16995         environment *)): Initialize right_justify_lines.
16996         (environment::get_right_justify_lines): New function.
16997         (init_env_requests): Bind this to number_register ".rj".
16999         * troff/env.c (environment::choose_breakpoint): Implement
17000         hyphenation_margin and hyphenation_space.
17001         (environment::get_hyphenation_space,
17002         environment::get_hyphenation_margin): New functions.
17003         (init_env_requests): Bind these to .hys and .hym.
17004         (hyphenation_space_request, hyphenation_margin_request): New
17005         functions
17006         (init_env_requests): Bind these to hys and hym.
17007         (environment::environment(symbol), environment::environment(const
17008         environment *)): Initialize hyphenation_margin and
17009         hyphenation_space.
17010         * troff/env.h: Corresponding changes to class environment.
17012 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
17014         * troff/div.c (blank_line): Always do a break.
17016         * eqn/box.c (do_text): Turn off escapes while appending text to
17017         string.
17019 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
17021         * troff/input.c (while_break_request, while_continue_request): New
17022         functions.
17023         (init_input_requests): Bind these to "break" and "continue".
17024         (while_depth, while_break_flag): New variables.
17025         (while_request): Update while_depth.  Break out of loop if
17026         while_break_flag is set.
17028 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
17030         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
17031         rather than 0.
17033 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
17035         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
17037         * stringify: New file.
17038         * Makefile (groff.o): Use stringify.
17040         * xditview/tmac.X: Remove definition of \(rn.
17041         * xditview/libXdvi/DviChar.c: Remove radicalex from
17042         Adobe_symbol_map.
17044 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
17046         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
17047         (alphabetic_block_entry::alphabetic_block_entry,
17048         alphabetic_block_entry::divert, alphabetic_block_entry::print):
17049         New functions.
17050         (block_entry::divert): Split off body into ...
17051         (block_entry::do_divert): If the block is alphabetic, subtract 2n
17052         from the line length; also update the span width to dl+2n, and the
17053         alphabetic span width to dl.
17055         * driver/input.c (do_file):  While reading argument to D command,
17056         when expanding buffer, multiply szp by sizeof(int) rather than 2
17057         in the argument to memcpy.
17059         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
17060         width of alphabetic columns.
17062 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
17064         * troff/node.c (lookup_family): Supply second argument to lookup.
17066         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
17067         search, return immediately if v is 0.
17069         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
17070         (troff_output::start_picture): Set this reg.
17071         (troff_output::end_picture): Remove this reg
17072         * eqn/box.c (box::extra_space): Don't produce `\x's if
17073         EQN_NO_EXTRA_SPACE_REG is defined.
17075         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
17076         * eqn/text.c (split_text): Map ' to \(fm when it's the first
17077         character.
17079 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
17081         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
17082         requests.
17084         * troff/div.c (top_level_diversion::top_level_diversion):
17085         Initialize page_number to 0.
17087 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
17089         * groff/troff (environment::environment(const environment *)):
17090         Initialize name to e->name, rather than "anonymous".
17092 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
17094         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
17095         requested_page.  Split middle part into ...
17096         (FindPage): New function.
17097         (SetValues): If we don't yet know the last page, and the requested
17098         page is greater than the current page, call FindPage.
17099         Update the font_map_string before doing this.
17101         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
17102         Translate \(lh and \(rh into left and right double arrows.
17104         * troff/node.c (class hyphen_inhibitor_node): New class.
17105         (hyphen_inhibitor_node::hyphen_inhibitor_node,
17106         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
17107         hyphen_inhibitor_node::type,
17108         hyphen_inhibitor_node::get_hyphenation_type): New functions.
17109         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
17110         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
17111         word.
17113 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
17115         * troff/node.h (dummy_node::get_hyphenation_type,
17116         transparent_dummy_node::get_hyphenation_type):  Declare them.
17117         * troff/node.c: (dummy_node::get_hyphenation_type,
17118         transparent_dummy_node::get_hyphenation_type): New functions.
17120 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
17122         * xditview/libXdvi/draw.c: If M_PI not defined after including
17123         math.h, then define it.
17125         * xditview/Makefile: Add definition of AR. Pass it to the submake
17126         in libXdvi.
17127         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
17129 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
17131         * troff/dictionary.h (object_dictionary::alias): Declare return
17132         value as int.
17133         * troff/dictionary.c (object_dictionary::alias): Return non-zero
17134         if the old name was defined.
17135         * troff/input.c (alias_macro): Give a warning if the old name was
17136         not defined.
17137         * troff/reg.c (alias_reg): Likewise.
17139 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
17141         * troff/input.c (token::next): Delete implementation of \R.
17143         * macros/Makefile: Strip comments from tmac.e while installing it.
17145         * troff/input.c: New variable `nroff_mode'.
17146         (troff_request, nroff_request): New functions.
17147         (init_input_requests): Bind `troff' and `nroff' to troff_request
17148         and nroff_request.
17149         (do_if_request): Compute results of t and n conditions from
17150         nroff_mode.
17152         * text/text.c (split_text): Fix typo in >=.
17154         * eqn/lex.c: Add definition of `==' to def_table.
17156 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
17158         * pic/tex.c (tex_output::start_picture): Change the definitions of
17159         \graph and \graphtemp so that they work properly with Plain TeX.
17161         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
17162         argument to `ar' is not less than the first.
17164         * pic/pic.y: Allow a comma between elements of the variable list
17165         in the argument to `reset'.
17167         * pic/object.c (arc_object::arc_object): Fix computation of
17168         radius.
17170         * eqn/main.c (main): Add exit(0).
17172 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
17174         * troff/div.c (begin_page): Test no_space_mode after doing the
17175         break, but still push the page ejector cookie before doing the
17176         break.  Also set the next page number after doing the break.
17177         
17178         * xditview/xditview.c (NewFile): Don't set the title and icon name
17179         if this is the first file and its name is `-'.
17180         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
17181         the X75 and X100 devices.
17182         (main): If a device has the XT_OPTION flag set and there's exactly
17183         one file argument, pass the driver -xrm and -title options to set
17184         the icon name and window title to the name of the file.
17186         * troff/env.c (environment_switch): If there was an argument but
17187         it wasn't a valid number or name, then pop an environment but
17188         don't give an error message on underflow.
17190         * troff/number.c (start_number): Correct spelling in error message.
17192         * troff/input.c (token::delimiter): Don't print an error message
17193         if err is false.
17195         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
17196         ParseDrawFunction if dw->display_enable is true.
17198 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
17200         * pic/pic.y: Parse text positioning like normal attributes, so as
17201         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
17202         positioning attribute.
17204 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
17206         * tbl/main.c (process_data): When in state START while reading a
17207         text block, don't change to state MIDDLE if c is a newline.
17209 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
17211         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
17212         so as to avoid shadowing parameter.
17214 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
17216         * tbl/table.c (trim_space): Deleted.
17217         (table::add_entry): Don't call trim_space.
17219 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
17221         * VERSION: Change version to 0.6.
17223         * troff/number.c (parse_expr): Make == work.
17225 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
17227         * man/grog.man: New file.
17228         * man/Makefile: Add grog.n to MAN1PAGES.
17229         * etc/grog.sh: New file.
17230         * etc/Makefile: Install grog.sh as grog.
17232 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
17234         * troff/input.c (token::next): Implement \E.
17236 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
17238         * xditview/tmac.X: Change font translations to match tmac.ps.
17240         * troff/input.c (non_empty_name_warning): Don't give a warning if
17241         `\{' terminates the name.
17243 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
17245         * ps/devps/symbol.diff: New file.
17246         * ps/devps/FontMakefile: Mention symbol.diff.
17248 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
17250         * troff/node.c (font_position): Use get_long_name to read the
17251         external_name.
17253         * troff/env.c (environment_switch): If we get a number that's < 0
17254         or >= NENVIRONMENTS, treat it like a name.
17255         Change NENVIRONMENTS to 10.
17257         * troff/groff.h: Remove definition of FONTS_MAX.
17258         * troff/node.h (class font_family): Make map a pointer instead of
17259         an array. Add a map_size member. Make it a class. Make nm const
17260         and public. Make invalidate_fontno a friend.
17261         * troff/node.c: Define font_table_size. Make font_info a pointer
17262         rather than an array.
17263         (class troff_output_file): Allocate font_position dynamically. Add
17264         nfont_positions member.
17265         (troff_output_file::set_font): Grow font_position if necessary.
17266         (troff_output_file::~troff_output_file): Delete font_position.
17267         (troff_output_file::troff_output_file): Allocate font_position.
17268         (grow_font_table): New function.
17269         (troff_output_file::really_begin_page,
17270         troff_output_file:really_copy_page): Use nfont_positions rather
17271         than FONTS_MAX.
17272         (mount_font_no_translate, mount_style): Call grow_font_table if
17273         necessary.
17274         (font_family::font_family): Allocate map.
17275         (font_family::make_definite): Grow map if necessary. Use
17276         font_table_size instead of FONTS_MAX.
17277         (font_family::~font_family): New function.
17278         (invalidate_fontno): Use font_family::map_size.
17279         (get_fontno, env_space_width, env_half_narrow_space_width,
17280         env_narrow_space_width, symbol_fotno, is_good_fontno,
17281         get_bold_fontno, make_glyph_node): Use font_table_size rather than
17282         FONTS_MAX.
17283         (next_available_font_position): Never return 0.
17285 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
17287         * ps/tmac.ps: Add font translations for compatibility with dpost.
17289 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
17291         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
17292         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
17293         Move definitions baseline_sep, shift_down, column_sep,
17294         matrix_side_sep into...
17295         * eqn/box.c: Add them to param_table.
17296         * eqn/pbox.h: Add declarations to pbox.h.
17298         * troff/input.c (set_string): Cast value to unsigned char *.
17300         * troff/token.h (process_input_stack): Declare it static before
17301         declaring it a friend.
17303 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
17305         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
17306         and bottom.
17307         * dvi/devdvi/EX: Regenerate.
17309         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
17310         transparent.
17312 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
17314         * eqn/lex.c: In defaults_table, make definition of `dot' call
17315         `dot_def'.  Don't explicitly make it roman.  Similarily for other
17316         accents.
17318         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
17319         argument.
17320         (for_input::get, for_input::peek): Use this.
17321         (do_for): Add by_is_multiplicative argument.
17322         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
17323         Change semantic value of optional_by to be a double plus a flag
17324         saying whethet the by clause is multiplicative.
17326         * eqn/lex.c (get_delimited_text): Remember location of start of
17327         definition.  Improve error handling when EOF is encountered.
17329         * lib/font.h: Rename handle_x_command to
17330         handle_unknown_font_command.
17331         * lib/font.c (font::load): Call handle_unknown_font_command for
17332         any unknown command in the font description file.  Don't call
17333         handle_x_command. Include the name of the command in the argv.
17334         Improve message for unknown command after kernpairs or charset
17335         command.
17336         * ps/ps.c (ps_font::handle_x_command): Rename to
17337         handle_unknown_font_command.  Remove message about `x download'
17338         command.  Give error message for wrong number of arguments.
17339         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
17340         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
17341         handle_unknown_font_command. Give an error message for wrong
17342         number of arguments.  Rename design_size to designsize.
17343         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
17344         checksum', `designsize' instead of `design_size'.
17346 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
17348         * eqn/*.[chy]: Change underaccent to uaccent.
17350         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
17351         give it the same precedence as ACCENT.
17352         * eqn/other.c (make_underaccent_box): New function.
17353         * eqn/box.h: Declare it.
17354         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17355         def_table.
17357 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
17359         * pic/pic.y (reset_all): New function. Called in rule for RESET.
17360         (parse_init): Call reset_all.
17361         (define_variable): When defining scale reset only those
17362         pre-defined variables that are scaled.
17363         (defaults_table): Add `scale' as non-scaled value.
17365         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17366         together with the text; allow any number of positioning words;
17367         allow center as a positioning word.
17369         * pic/object.c (output::compute_scale): Get picture maximum height
17370         and width from variables called maxpswid and maxpsht.
17371         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17373 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
17375         * pic/object.c (object_spec::make_text): Multiply textht by number
17376         of text items.
17378         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17379         occur.
17380         (do_sprintf): New function.
17381         (pic.gperf): Add sprintf token.
17382         (text, sprintf): New rules.
17384         * pic/pic.y: `rand()' with no arguments returns a random number
17385         in the range [0,1).
17387         * pic/pic.y: Allow a bare expression to be an attribute: change
17388         precedences to support this.  Change optional_ordinal rule to
17389         optional_ordinal_last to avoid reduce/reduce conflict.
17390         * pic/object.c (object_spec::object_spec): Initialize direction.
17392         * pic/pic.y: Implement ^ operator meaning exponentiation.
17394         * troff/node.h: Add default argument to mount_font.
17395         * troff/node.c (font_position): Read an optional third argument
17396         giving the external_name.
17397         (mount_font): Add optional argument giving the external_name.
17398         (mount_font_not_translate): Have additional argument giving
17399         external name.  Use this name to load the font.  Pass both names
17400         to font_info::font_info.
17401         (font_info::font_info): Have additional argument giving
17402         external_name.
17403         (class tfont): New member external_name.
17404         (font_info::get_tfont): Use external name to construct tfont_spec.
17406 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
17408         * eqn/lex.c (init_table): Add argument giving device.  Define
17409         name of device to be "1".
17410         (do_ifdef): Counts as true if the argument has been defined with
17411         `define'.
17412         * eqn/main.c (main): Call init_table with device argument. Make
17413         device local to main.
17414         * eqn/eqn.h: Change declaration of init_table. Remove declaration
17415         of device.
17417         * pic/lex.c (get_delimited): Allow text to be delimited by
17418         matching {}s.  Don't recognize ending delimiter within a string.
17420         * troff/input.c (get_delim_name): New function.
17421         (token::next): Implement \C.
17423         * lib/font.c (font::load): Grok ---.  Add an alias for each
17424         character based on its code.
17425         (font::get_code_width): Deleted.
17426         * lib/font.h (class font): Declare font::number_to_index().
17427         Remove declaration of font::get_code_width.
17428         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17429         to indices of named characters.
17430         (font::number_to_index): New function.
17431         * troff/input.c (font::number_to_index): New function.
17432         (get_charinfo_by_number, charinfo::get_number,
17433         charinfo::set_number): New functions.
17434         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17435         (token::process, token::description, token::get_char,
17436         token::add_to_node_list, token::operator==): Handle
17437         TOKEN_NUMBERED_CHAR.
17438         * troff/charinfo.h: Declare get_charinfo_by_number,
17439         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
17440         charinfo class.
17441         (charinfo::numbered): New function.
17442         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17443         * troff/env.h (class environment): Remove declaration of ...
17444         * troff/env.c (environment::make_numbered_char_node): Deleted.
17445         * troff/node.c (make_numbered_node): Deleted.
17446         (class numbered_glyph_node): Remove.
17447         (troff_output_file::put_char_width, troff_output_file::put_char):
17448         Handle numbered chars.
17449         (troff_output_file::numbered_char): Removed.
17450         (tfont::get_code_width): Removed.
17451         (make_glyph_node): Don't search special fonts for numbered
17452         characters.
17453         * troff/node.h: Remove declaration of make_numbered_node.
17454         * driver/input.c (do_file): Handle N command.
17455         * driver/printer.h: Add declaration of ...
17456         * driver/printer.c (printer::set_numbered_char): New function.
17457         * dvi/tfmtodit.c (main): Generate unnamed entries.
17458         * ps/devps/afmtodit: Likewise.
17459         * xditview/xtotroff.c (MapFont): Likewise.
17460         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17462         * tbl/main.c (process_format): If multiple widths are specified
17463         for a column but all the widths are the same, don't give an error
17464         message.
17466         * tbl/table.c (table::do_row): If the current row is all lines and
17467         the stuff doesn't contains a line, mark the top of the row after
17468         printing stuff before the row.  If the current row is not all
17469         lines and the stuff doesn't contain a line, don't unnecessarily
17470         mark the top of the row before printing the stuff.
17471         
17472 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
17474         * troff/groff.h: Remove MAX_PATH.
17475         * troff/input.c (open_file): Dynamically allocate space for the
17476         path.
17477         (open_mac_file, process_macro_file): Corresponding changes.
17479 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
17481         * troff/node.h (class output_file): Make copy_file pure.  Add
17482         vspace method ifdef COLUMN. Add is_printing method.
17483         * troff/node.c: Add class printing_reg. Add class
17484         real_output_file. Derive other output_file classes from
17485         real_output_file; in these classes rename begin_page to
17486         really_begin_page, print_line to really_print_line, copy_file to
17487         really_copy_file, transparent_char to really_transparent_char.
17488         Move output_file::flush to real_output_file. Add printing member
17489         to class output_file.
17490         * troff/div.h: Remove printing member from top_level_diversion.
17491         Add vspace member function to class diversion ifdef COLUMN. Add
17492         some declarations ifdef COLUMN.
17493         * troff/div.c (top_level_diversion::copy_file,
17494         top_level_diversion::transparent_output,
17495         top_level_diversion::output): Don't test printing member before
17496         output.
17497         * troff/input.c: Handle initial variable_space_request ifdef
17498         COLUMN.
17499         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17500         but comment it out.
17502 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
17504         * troff/div.c (diversion::need): Make any space forced.  If we
17505         sprung a trap, set truncated_space to minus the distance to the
17506         trap and set needed_space to the amount that was needed.
17507         (top_level_diversion::space): A forced space turns no_space_mode
17508         off.
17509         (class constant_vunits_reg): New class.
17510         (init_div_requests): Implement number registers .trunc and .ne
17511         using constant_vunits_reg.
17512         (class truncated_space_reg): Deleted.   
17514         * troff/div.h: Don't have a no_space_mode member in diversion.
17515         Instead have it in top_level_diversion.
17516         * troff/div.c (diversion::diversion): Don't initialize
17517         no_space_mode.
17518         (top_level_diversion::top_level_diversion): Initialize
17519         no_space_mode.
17520         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17521         (macro_diversion::output): Don't clear no_space_mode.
17523         * troff/input.c (diverted_space_node::reread): Don't call
17524         environment::do_break.  In fill mode, act like a blank line.
17525         (diverted_copy_file_node::reread): Don't call
17526         environment::do_break.
17528         * troff/div.c (blank_line): New function.
17529         * troff/div.h: Declare it.
17530         * troff/input.c (process_input_stack): Call it.
17532         * troff/div.c (truncated_space_reg::get_string): New function.
17533         (init_div_requests): Bind to .trunc.
17534         (space_request, top_level_diversion::space,
17535         top_level_diversion::output, macro_diversion::space,
17536         macro_diversion::output): Update truncated_space.
17537         (macro_diversion::output): Redo calculations when trap sprung.
17538         (macro_diversion::output, macro_diversion::space): No need for
17539         trap_flag.
17541         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17542         after truncating post line spacing.
17544 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
17546         * ps/devps/prologue (MF, SF): Make them work even if setfont is
17547         defined as a procedure rather than as an operator.
17549 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
17551         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17553 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
17555         * troff/div.c (top_level_diversion::output): Merge
17556         output_file::print_line and output_file::end_of_line member
17557         functions.
17558         * troff/div.h (class output_file):
17559         * troff/node.c (troff_output_file::print_line,
17560         troff_output_file::end_of_line, output_file::end_of_line,
17561         ascii_output_file::print_line, suppress_output_file::print_line):
17562         Corresponding changes.  
17564 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
17566         * troff/input.c (token::next): Don't give a warning for `\.'.
17568         * troff/env.c (environment::get_center_lines): New function.
17569         (init_env_requests): Bind number register .ce to it.
17570         * troff/env.h: Declare it.
17571         * tbl/table.c (table::init_output): Define reset macro to restore
17572         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
17573         Then do .ce 0.
17574         (table::print): If center option not given, then imply center
17575         option if SAVED_CENTER_REG > 0.
17577 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
17579         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17580         Troff.ps from DOWNLOAD.
17581         
17582         * troff/Makefile: Change comment in DEFINES to avoid confusing
17583         System V make.
17585         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17586         code.  Don't try to catch errors with stopped.
17587         (check_line_lengths): New function.
17588         * ps/devps/prologue (EXEC): Deleted.
17589         (EBEGIN, EEND): New procedures.
17591 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
17593         * troff/input.c: Include request.h before node.h.
17594         * troff/node.c: Likewise.
17595         * troff/env.c: Likewise.
17596         * troff/div.c: Likewise.
17597         * troff/node.h (class special_node): Store argument as a macro
17598         rather than a char *.
17599         * troff/node.c (special_node::special_node, special_node::copy):
17600         Grok this.
17601         (special_node::~special_node): Deleted.
17602         (special_node::tprint): Deleted.
17603         (special_node::tprint_start, special_node::tprint_end,
17604         special_node::tprint_char): New functions.
17605         (troff_output_file::special): Deleted.
17606         (troff_output_file::start_special, troff_output_file::end_special,
17607         troff_output_file::special_char): New functions.
17608         * troff/input.c (special_node::tprint): New function.
17609         (do_special): Use macro not char *.
17610         (do_transparent_macro): Deleted.
17611         (token::next): Don't call do_transparent_macro.
17613         * troff/input.c (token::next): Add 'Y' case.
17614         (do_transparent_macro): New function.
17615         * troff/node.c (troff_output_file::special): Handle newlines with
17616         argument using new continuation convention.
17617         * driver/input.c (get_string): Cope with continuation convention.
17618         (do_file): Don't call skip_line after calling get_string(1).
17619         * ps/ps.c (ps_printer::special, ps_printer::do_import,
17620         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17621         arg.
17622         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17623         with +.
17625 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
17627         * troff/input.c (asciify): By default, illegal input characters
17628         should return empty string.
17630         * troff/input.c (copy_file): Handle first page transition like title.
17631         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17633         * troff/input.c (token::next): Improve error message for EOF after
17634         escape character.
17635         (input_char_description): New function.
17636         (get_char_for_escape_name): Use input_char_description.
17637         (token::next): Warn about unrecognized escape sequences.
17638         (warning_table): Add WARN_ESCAPE.
17639         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17640         accordingly.
17642         * troff/token.h: Remove declaration of process_input_stack.
17644         * troff/input.c: Remove declaration of init_hyphen_requests.
17645         * troff/request.h: Correct spelling in declaration of same.
17647         * troff/input.c (token::next): Check whether escape_char is 0.
17649 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
17651         * groff.c (main, usage, help): Implement -P and -L options.
17652         * groff.sh: Likewise.
17654         * troff/input.c (token::next): Use some gotos to avoid code
17655         duplication.
17657         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17658         Avoid calling symbol::symbol if name empty.
17660 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
17662         * troff/input.c (init_input_requests): Make \n(.x return the major
17663         version number and \n(.y return the minor version number.
17664         * troff/Makefile: Construct file majorminor.c defining
17665         major_version and minor_version automatically from ../VERSION.
17667         * troff/node.c (class glyph_node): Make operator new and operator
17668         delete public.
17669         (class ligature_node): Similarily.
17671         * troff/input.c (operator==(const macro &, const macro &)): New
17672         function.
17673         (non_interpreted_node::same): Use this.
17674         (string_iterator::string_iterator): Make macro& argument const.
17676         * troff/input.c (input_iterator::get): New function. Don't make
17677         asciify_macro or class non_interpreted_node friends of class
17678         input_iterator.
17679         (non_interpreted_node::interpret): Use input_iterator::get.
17680         (asciify_macro): Likewise.
17682         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17683         ~non_interpreted_node): Deleted.
17684         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17685         Deleted.
17687         * troff/symbol.h: Make all symbol member functions const.
17689         * lib/strtol.c: New file.
17690         * lib/Makefile: Add strtol.c.
17691         * Makefile: Define STRTOL as strtol.o to include strtol in
17692         libgroff.a.
17694 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
17696         * pic/troff.c (troff_output::simple_circle): Divide by scale.
17698 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
17700         * troff/input.c (do_special): Use input_level.
17702         * troff/token.h (TOKEN_BACKSPACE): New token.
17703         (token::backspace): New function.
17704         * troff/input.c (token::description, token::next, token::process):
17705         Grok TOKEN_BACKSPACE.
17706         (do_special): Turn TOKEN_BACKSPACE back into \b.
17708         * troff/token.h (token::leader): New function.
17709         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17711         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17713         * troff/input.c (do_special): Use token::description in error
17714         message.
17716 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
17718         * troff/input.c (decode_args): Combine quoted and
17719         quote_input_level variables. Make it a for (;;) loop.
17721         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17723         * troff/input.c (read_long_escape_name): The test for whether to
17724         expand buffer was off by 1.
17725         (read_string): Similarily.
17727 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
17729         * troff/input.c: Use `const int' rather than `static const int'.
17731         * troff/div.h (diversion::copy_file): Declare as pure virtual.
17732         (macro_diversion::copy_file): New function.
17733         * troff/node.h: New class diverted_copy_file_node.
17734         * troff/node.c: Implement it.
17735         * troff/input.c (copy_file): Use diversion::copy_file. Handle
17736         first page transition by pushing a diverted_copy_file_node.
17737         * troff/input.c (token::next, process_input_stack): Don't handle
17738         COPY_FILE_REQUEST.
17740 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
17742         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17743         whether space widths need adjusting.
17745         * troff/charinfo.h: Generalize translated_to_space to
17746         special_translation so as to allow translation to \&.
17747         * troff/input.c (translate): Allow translation to \&.
17748         (charinfo::*): Corresponding changes.
17749         * troff/node.c (make_node, node::add_char): Corresponding changes.
17750         * troff/node.h (dummy_node::dummy_node): Allow optional first
17751         argument.
17753         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17754         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17755         TOKEN_REQUEST.
17756         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17757         TOKEN_REQUEST with an argument of TITLE_REQUEST.
17758         (token::process): Grok that.
17759         * troff/input.c (copy_file): Handle first page transition like
17760         title by pushing a COPY_FILE_REQUEST cookie.
17761         (token::next, process_input_stack): Grok that.
17762         * troff/node.h (output_file::copy_file): Add x and y arguments.
17763         Make it non-pure.
17764         * troff/div.c (top_level_diversion::copy_file): Supply them.
17765         * troff/node.c (troff_output_file::copy_file): Add x and y
17766         arguments; moveto specified position.  Invalidate font_position
17767         array after copying file.
17768         (output_file::copy_file): New function.
17769         (suppressed_output_file::copy_file, ascii_output::copy_file):
17770         Removed.
17771         * troff/input.c (transparent_file): New function.
17772         (init_input_requests): Bind to "trf".
17773         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17774         (process_input_stack): Likewise.
17776         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17778         * troff/node.c (init_node_requests): New number registers .kern
17779         pointing to global_kern_mode, and .lg pointing to
17780         global_ligature_mode.
17782         * troff/node.c (ligature): Don't change it if we get a bad
17783         integer.
17785         * troff/input.c (do_define_string): Don't strip tabs.
17787         * troff/input.c (asciify_macro): Make the string_iterator auto.
17789         * troff/node.c (init_font_requests): Rename to...
17790         (init_node_requests):
17791         * troff/node.h: Change declaration.
17792         * troff/input.c (main): Change call.
17794         * troff/input.c (node::reread, diverted_space_node::reread): New
17795         methods.
17796         (process_input_stack): Call reread rather than
17797         get_diverted_space_node.
17798         * troff/node.c (node::get_diverted_space_node,
17799         diverted_space_node::get_diverted_space_node): Removed.
17800         * troff/node.h: Declare reread methods instead of
17801         get_diverted_space_node methods. Make `n' member private.
17802         * troff/input.c: (token::diverted_space): Removed.
17803         * troff/token.h: Removed declaration.
17804         
17806 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
17808         * eqn/script.c (script_box::compute_metrics): Don't let
17809         SUP_RAISE_FORMAT become negative.
17811         * tbl/table.c (table::do_row): Entries that don't end in the
17812         this row shouldn't make the row non-blank.
17813         
17814         * tbl/table.c (table::make_columns_equal): Only set the width of
17815         columns which are marked as equal.
17816         
17817         * tbl/main.c (process_data): Before issuing excess data error,
17818         if last character was a newline unget it; then get it again after
17819         the error.  Also include the contents of the entry in the message.
17821         * groff.c: New file.
17822         * Makefile: Build groff from groff.c.  Make it possible to use
17823         either groff.sh or groff.c as groff.
17824         * Makefile.bd: Similarily.
17826 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
17828         * groff.sh: Don't delay expansion of $@ in assignment to files.
17829         Remove occurrences of \".
17831 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
17833         * all Makefiles: Simplify and rearrange.
17835         * Makefile: Handle fmod like malloc.
17836         * lib/Makefile: Similarily.
17837         * lib/fmod.c: Remove #ifdef NEED_FMOD.
17839         * Makefile: Rename OPTIMISE to OPTIMIZE.
17841         * groff.sh: Remove assignment to PATH.
17842         * Makefile: Remove SHPATH variable.
17843         * Makefile.bd: Similarily.
17845         * groff.sh: Add -V option to print the pipeline instead of
17846         executing it.
17848 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
17850         * lib/font.c: Split off file searching into ...
17851         * lib/fontfile.c: New file.
17853         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17855 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
17857         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17858         Also change misleading comment.
17859         (table::do_vspan): Change similarily misleading comment.
17860         * tbl/main.c (process_data): A format row with an explicit `s'
17861         uses up a data line, even if all the other columns are `_' or `='.
17863         * troff/input.c (token::description): Fix description of
17864         TOKEN_DUMMY and TOKEN_EMPTY.
17866 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
17868         * groff.sh: Fix description of -Z in help message.
17870 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
17872         * pic/object.c (object_spec::make_object): Allow negative and zero
17873         line thicknesses.
17874         * pic/pic.y: Give linethick default value of -1.0.
17875         * pic/troff.c (troff_output::troff_output): Initialize
17876         last_line_thickness to BAD_THICKNESS.
17877         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17878         (troff_output::line_thickness): Canonicalize negative thicknesses
17879         to RELATIVE_THICKNESS.
17880         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17881         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17882         to -1.0.
17883         (tex_output::start_picture): Set pen_size to -2.0.
17885         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17886         0, then use 0 linewidth.
17887         (ps_printer::ps_printer): Initialize line_thickness to -1.
17889         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17891         * ps/devps/symbolchars: Remove `or'.
17892         * ps/tmac.ps: Implement \(or with .char.
17894         * ps/devps/symbolchars: Move most characters into textmap.
17895         * ps/devps/textmap: Add names for troff bracket characters. Remove
17896         ul, ru, br, bv.
17898         * ps/devps/TSymbol.ps: Removed.
17899         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17900         * ps/tmac.ps: Do with .char what TSymbol did.
17901         * ps/devps/download: Remove TSymbol.
17903         * ps/devps/T: Removed.
17904         * ps/devps/Troff.ps: Removed.
17905         * ps/devps/Troff.afm: Removed.
17906         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17907         * ps/devps/download: Remove Troff.
17908         * ps/devps/FontMakefile: Remove T target.
17909         * ps/devps/DESC-A4: Remove T from font list.
17910         * ps/devps/DESC-letter: Likewise.
17912         * troff/input.c (macro_to_node): Rename to ...
17913         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17914         character's definition while processing it.
17915         * troff/node.c (node::add_char, make_node): Change calls to
17916         macro_to_node accordingly.
17918         * troff/input.c (token::next): Translate \_ to \(ul.
17920         * tty/devascii/R.proto: Add `|'.
17921         * tty/devlatin1/R.proto: Likewise.
17923 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17925         * man: Put the version number in all the man pages.
17927 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17929         * Makefile.bd: New file.
17930         * README.bd: New file.
17932         * VERSION: New file.
17933         * lib/version.c: Removed.
17934         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17935         in clean target.
17937         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17938         environment variable.
17940         * all Makefiles: Split install target into install.bin for
17941         binaries, and install.nobin for everything else.
17942         * Makefile: Add bindist target.
17944         * man/afmtodit.man: New file.
17945         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17946         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17947         in BINDIR.
17948         * ps/Makefile: Pass BINDIR to make install in devps.
17950         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17951         the space character.
17953         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17955 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17957         * ps/ps.c: Redo font downloading.
17958         * ps/devps/download: New file.
17959         * ps/devps/Makefile: Add download to DEVICEFILES.
17960         * ps/devps/afmtodit: Remove -d option.
17961         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17962         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17963         * ps/devps/zapfdr.ps: Likewise.
17964         * ps/devps/TSymbol.ps: Likewise.
17966 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17968         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17970 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17972         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17973         then strip the first line if it starts with %.
17974         * Makefile: Add a comment about this.
17976         * man/tfmtodit.man: New file.
17977         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17978         * dvi/Makefile: Install tfmtodit in BINDIR.
17980         * dvi/tfmtodit.c (usage): Mention -v option.
17982 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17984         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17985         * troff/node.c (troff_output_file::transparent_char): Don't call
17986         flush_tbuf.
17988         * eqn: Add check_tabs method to most box classes.
17989         * eqn/box.c (box::top_level): Call check_tabs.
17991         * eqn/script.c (script_box::output): Use \Z.
17992         * eqn/limit.c (limit_box::output): Use \Z.
17994         * eqn/box.c (box::top_level): Use itoa.
17996 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17998         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17999         * dvi/devdvi/Makefile: Don't make links to CW.
18001         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
18002         HX, HD.
18003         * xditview/tmac.X: Likewise.
18005         * troff/node.c: Add font translation feature.
18006         (get_font_translation): New function.
18007         (symbol_fontno): Translate the font name.
18008         (mount_font_no_translate): Rename to mount_font to this.
18009         (mount_font): New function.
18010         (font_family::make_definite): Call mount_font_no_translate instead
18011         of mount_font.
18012         (mount_style): Translate the font name.
18013         (font_translate): New function.
18014         (init_font_requests): Bind "ftr" to font_translate.
18016         * ps/devps/prologue (SN): New procedure that rounds a position to
18017         the nearest (pixel + (.25,.25)).
18018         (DL): Use SN to round endpoints.
18020         * lib/version.c: Changed version to 0.5.
18022 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
18024         * Makefile: Move definition of PAGE to the very beginning, so that
18025         people are less likely to miss it.
18027 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
18029         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
18031         * troff/env.c (environment::choose_breakpoint): Make `can't find
18032         breakpoint' error a warning of type WARN_BREAK.  Change message to
18033         `can't break line'.
18034         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
18035         code 040000.
18036         * troff/input.c: Add WARN_BREAK to warning_table.  Include
18037         WARN_BREAK in DEFAULT_WARNING_MASK.
18039         * tty/tmac.tty: Add definition of \(+-.
18041         * groff.sh: Remove `--' option to set command.
18043         * dvi/devdvi/texsy.map: Remove duplicate md entry.
18045         * ps/devps/eqnchar: Better definition of cdot using md.
18046         * dvi/devdvi/eqnchar:  Likewise.
18047         * xditview/devX100/eqnchar:  Likewise.
18048         * xditview/devX75/eqnchar: Likewise.
18049         * eqn/lex.c: Add definition of cdot.
18051 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
18053         * troff/input.c (get_optional_char): New function.
18054         * troff/input.c (set_page_character): Use get_optional_char(),
18055         rather than has_arg() and tok.get_char(1).
18056         * troff/env.c (tab_character, leader_character, hyphen_char,
18057         field_characters): Likewise.
18058         (margin_character): Likewise.  Also always delete the
18059         margin_character_node.
18061         * troff/input.c (token::get_char): Use token::description.
18063         * troff/input.c (has_arg): Don't skip over tab and \}.
18064         * troff/number.c (start_number): Give a warning if the number
18065         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
18067 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
18069         * troff/input.c (empty_name_warning, non_empty_name_warning): New
18070         functions.
18071         (get_name, get_long_name): Use these.  Rename `warn' argument to
18072         `required'.
18074         * troff/node.c (get_fontno): Test that the symbol is not null.
18076         * troff/input.c (token::description): New function.
18077         * troff/number.c (parse_term): Use token::description in `numeric
18078         expression expected' message.
18079         * troff/groff.h: Add WARN_MISSING.
18080         * troff/number.c (start_number): New function.
18081         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
18082         get_incr_number): Use start_number().
18083         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
18084         default.
18085         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
18086         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
18087         token::descripion.
18088         * troff/input.c (token::get_char): Use WARN_MISSING.
18089         * troff/input.c (token::delimiter): Use token::description.
18090         * troff/env.c (environment_switch): Back out Aug 3 change.
18091         * troff/input.c (has_arg): Skip over \}s and tabs but give a
18092         warning.
18093         * troff/token.h (token::tab): New function.
18094         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
18095         * troff/reg.c (alter_format): Likewise.
18096         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
18098 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
18100         * troff (most files): Redo warnings. Divide warnings into various
18101         categories; warning() has an additional first argument indicating
18102         the category it falls into.
18103         * troff/input.c (main): -w now takes an argument. New option -W.
18104         (enable_warning, disable_warning): New functions.
18106         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
18107         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
18109 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
18111         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
18112         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
18113         * xditview/devX75/eqnchar: Likewise.
18114         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
18116         * eqn/other.c: When bar or over applies to a single character
18117         don't produce an overline_box or an underline_box. Instead produce
18118         an accent_box or an underaccent_box, with the accent a line
18119         whose width is accent_width.  New classes underaccent_box,
18120         overline_char_box and underline_char_box.
18121         * eqn/box.h: Move overline_box, underline_box, accent_box class
18122         declarations into eqn/other.c. Add declarations of
18123         make_underline_box, make_overline_box, make_accent_box.
18124         * eqn/eqn.y: Call make_overline_box, make_underline_box
18125         make_accent_box instead of constructors.
18126         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
18128         * eqn/other.c: Add accent_box::~accent_box.
18129         * eqn/box.h: Declare it.
18131         * groff.sh: With -Tps, use eqn -D.
18133         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
18134         rather than \l.
18135         (underline_box::output): Similarily.
18136         (accent_box::output): Use \Z.
18138         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
18139         bit smaller.)
18141 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
18143         * troff/div.c (top_level_diversion::transparent_output(unsigned
18144         char)): Use asciify.
18145         * troff/input.c (asciify): Don't make it static.
18146         * troff/token.h (asciify): Declare it.
18147         
18148         * troff/input.c (get_name, get_long_name, token::get_char,
18149         token::delimiter): Add an extra default argument which says
18150         whether a warning should be printed.
18151         * troff: Pass a non-zero argument to one of these rather than
18152         printing a warning directly.
18154 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
18156         * troff: Consistently use symbol::is_null.
18158         * troff/dictionary.h: Move some inline functions into
18159         dictionary.c.
18161         * troff/request.h: Move inline functions into input.c.
18162         (request_or_macro::invoke): Make it pure.
18164         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
18165         * troff/input.c (init_input_requests): Use class constant_int_reg.
18166         (class compatible_reg): Deleted.
18167         * troff/div.c (init_div_requests): Use class constant_int_reg.
18168         (class last_post_line_extra_space_reg): Deleted.
18170         * troff/env.c (tab_character): Don't change the tab character if
18171         we get an invalid argument.
18172         (hyphen_char): Similarily.
18174         * troff/reg.c (alter_format): Check that nm is not null.
18176         * Makefile, groff.sh: Make it possible to customize the commands
18177         used for printing PostScript and dvi files. Also make it possible
18178         to customize the path used by groff.sh.
18180         * eqn/eqn.y: Make `left' right associative.
18182 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
18184         * pic/pic.h: Added definition of M_SQRT2 for those systems that
18185         don't have it.
18187         * pic/pic.h: Removed definition of INT_MAX.
18189         * troff/node.c (italic_corrected_node::vertical_extent): Omit
18190         `return'.
18192         * troff/input.c (token::next):  Handle \R like \n.
18194 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
18196         * ps/tmac.pc (PSPIC): Simplify.
18198         * troff/env.c (tab_stops::to_string):
18199         * pic/pic.y (object_type_name):
18200         * pic/troff.c (simple_output::line):
18201         * pic/tex.c (tex_output::spline):
18202         * pic/object.c (object_spec::make_object):
18203         * tbl/main.c (process_data):  Add cases to switch statements to
18204         avoid cfront warnings. (Some of these are spurious, since the
18205         switch already has a default case.)
18207         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
18208         `ps-'.  Don't test systat; instead check number of arguments to
18209         ps-bb.
18211 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
18213         * macros/tmac.e: Do not decrease the page offset by 0.5i.
18215         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
18216         Unlink the file as soon as we have opened it, so that we don't
18217         have to bother with signal handlers.
18218         (handler): Deleted.
18219         (fatal_error_exit): Deleted.
18220         (main): Don't call signal.
18222         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
18223         can be ignored.
18224         * dvi/devdvi/Makefile: Use the -k option with S and MI.
18226         * pic/pic.y:  If there is a label, or an nth construction before
18227         the first `.' in the argument to `with', ignore it and generate a
18228         warning.
18229         * pic/lex.c (lex_warning): New function.
18231         * tbl/table.c (table::init_output): In section keep and release
18232         macro, use 0 indent when diverting and the correct indent when
18233         rereading.
18235         * troff/input.c (interpolate_number_format): Do not interpolate
18236         anything if the number register is not defined.
18238         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
18240 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
18242         * ps/devps/prologue (PICTURE): Set components of graphics state to
18243         their default values.
18245         * ps/devps/text.enc: Add trademark
18246         * ps/devps/textmap: Add names for club, spade, heart, diamond,
18247         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
18248         * ps/devps/symbolchars: Add names for summation and product.
18250         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
18251         suchthat. Add pp. Add upper-case letters.
18253         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
18254         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
18255         Upsilon.
18257         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
18258         rA (right angle bracket) to ra.  Introduce names for double-headed
18259         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
18260         * ps/devps/textmap: Likewise for ps device.
18261         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
18262         * tty/devascii/R.proto: Rename lA to la and rA to ra.
18263         * tty/devascii/R.proto: Likewise.
18264         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
18265         \(uA, \(dA.
18266         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
18268         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
18270         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
18271         def_table.
18273 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
18275         * troff/div.c (when_request): Use symbol::is_null rather than
18276         has_arg to determine whether we have an argument.
18277         (change_trap): Remove the trap if we get an invalid number. Give
18278         an error if we don't get at least the macro name.
18279         (diversion_trap): Remove trap if we get an invalid name or number.
18281         * troff/env.c (environment_switch): Pop if we get an invalid
18282         symbol or numeric expression.
18284         * troff/input.c (do_define_macro):  If EOF is encoutered while
18285         defining the macro, do tok.next() before returning.
18287         * troff/token.h (has_arg): Move definition from here, to ...
18288         * troff/input.c (has_arg): ... here
18290         * troff/env.c (space_size): Do nothing if we get an invalid argument.
18291         * troff/input.c (shift): Likewise.
18293         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
18294         for `.c'.
18296         * pic/troff.c (troff_output::start_picture):  Comment out calls to
18297         `..'.
18299         * eqn/main.c (do_file): Subtract 1 from current_lineno if
18300         interpret_lf_args succeeds.
18302         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
18303         \\.  This avoids problems with \$N.
18305         * groff.sh: Pass -C to preprocessors.
18307         * lib/lf.c (interpret_lf_args):  Be more flexible.
18309         * tbl/main.c (main): Add -C option.
18310         (table_input::get): Do not recognize TE if followed by character
18311         other than a space or newline unless -C option given.
18312         (process_input_file): Likewise for lf, TS.
18313         (process_data): Likewise for lf in text blocks.
18315         * eqn/main.c (main): Add -C option.
18316         (do_file): Don't recognize EQ, EN or lf if followed by character
18317         other than space or newline unless -C option given.
18318         * eqn/lex.c (file_input::read_line): Similarily.
18319         * eqn/eqn.h: Declare compatible_flag.
18321         * etc/soelim.c (main): Add -C option.
18322         (interpret_lf_args): Use version in libgroff.
18323         (do_file):
18325         * pic/main.c (main): Add -C option, which sets compatible_flag.
18326         (top_input::get), (top_input::peek):  If -C option not given,
18327         do not recognize .PS/.PE/.PF/.lf if followed by a character
18328         other than space or newline.
18329         * pic/lex.c (file_input::read_line): Similarily.
18330         * pic/pic.h: Add declaration of compatible_flag.
18332 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
18334         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
18336         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
18337         derived from node.  New class space_char_hmotion_node.
18338         * troff/input.c (asciify_macro): New function.
18339         * troff/input.c (init_input_requests): New request `asciify' bound
18340         to asciify_macro.
18341         * macros/mm.diff: New file.
18342         * Makefile:  In install.mm target use `patch' to apply
18343         macros/mm.diff.
18345         * troff/input.c (macro::print_size): Just print the size in bytes.
18347         * troff/div.c (return_request): Correct the argument
18348         interpretation.
18350 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
18352         * troff/node.h (class composite_node): Add sz member.
18353         * troff/node.c (composite_node::size): Return sz.
18354         * troff/input.c (macro_to_node):  Use the initial size in the
18355         environment as the size of the composite_node.
18357         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
18358         default.
18360 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
18362         * troff/div.c (change_trap): If we get a bad number expression,
18363         do nothing.
18365 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
18367         * lib/matherr.c (matherr): Define this only if math.h defines
18368         TLOSS.
18370 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
18372         * troff/div.c (macro_diversion::distance_to_next_trap): If there
18373         no diversion trap return vunits(INT_MAX - vresolution).
18375 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
18377         * troff/input.c (do_zero_width): New implementation that doesn't
18378         use a temporary environment. Use instead:
18379         (token::add_to_node_list): New function.
18380         * troff/env.c (environment::get_prev_char_height),
18381         (environment::get_prev_char_height),
18382         (environment::get_prev_char_skew): New functions.
18383         (environment::get_prev_char): New function.
18384         (environment::get_prev_char_width): Change to use get_prev_char.
18385         (init_env_request): Implement new registers .cht, .cdp, .csk.
18386         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18387         \Z being processed in a separate environment.
18389 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
18391         * tbl/table.c: Removed TABLE_BOTTOM_REG.
18393         * tbl/table.c (table::init_output): In the section release macro,
18394         give a warning message if the section won't fit on one page.
18396         * tbl/table.c (table::do_top): Emit table keep only if table is
18397         boxed.
18398         (table::do_bottom): Likewise for table release.
18399         (table::table), (table::add_vertical_rule):  Remove reference to
18400         keep member.
18401         * tbl/table.h: Remove keep member.
18403         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18404         SECTION_RELEASE_MACRO, if there's not enough space before the next
18405         trap to output the diversion, call T# ourselves, set
18406         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18407         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
18408         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
18409         vertical position and return to it before turning traps on again.
18410         
18411 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
18413         * troff/node.c, troff/node.h: In classes derived from node,
18414         replace prev_char_width method by last_char_node method.
18415         * troff/env.c (environment::get_prev_char_width): Use
18416         node::last_char_node rather than node::get_prev_char_width.
18418         * Makefile: Added comment about -fno-inline on 68030-based
18419         Apollos.
18421         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18422         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18423         expressions using sizeof to int.
18424         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18426         * macros/tmac.e (TS):  Don't move @f back past the current
18427         position.
18429 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
18431         * ps/ps.c (main): Buffer stderr.
18432         * dvi/dvi.c (main): Likewise.
18433         * tty/tty.c (main): Likewise.
18435         * ps/ps.c (ps_printer::do_import): Improve error handling.
18437         * troff/input.c (abort_request): Use asciify.
18439         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18440         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18441         type of first argument int rather than char.  This works around a
18442         bug on the 68030 based Apollo using g++ 1.37.1.
18444         * tbl/table.h (class table): Add `keep' member.
18445         * tbl/table.c (table::table): Initialize `keep'.
18446         (table::add_vertical_rule): Set `keep' to 1.
18447         (table::do_top): Only emit table keep macro is `keep' is non-zero.
18448         (table::do_bottom): Likewise for table release macro.
18449         (table::do_row): Emit section keep macro even if the row is 0.
18451 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
18453         * macros/tmac.e (@C): Preserve the font family across the change
18454         in environments.
18456 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
18458         * lib/font.c: Initialize font::hor and font::vert to 1.
18459         (font::load_desc): Check the values of font::hor and font::vert.
18461         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18462         be included in a C compilation.
18463         (iftoa): Use INT_DIGITS. Include lib.h.
18464         (itoa): Likewise.
18465         (as_string): Likewise.
18466         * tbl/table.c: Removed definition of INT_DIGITS.
18467         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18468         * troff/input.c (input_input_requests): Likewise.
18469         * ps/ps.c (make_encoding_name): Likewise.
18470         (ps_printer::set_style): Likewise.
18471         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18473         * tty/devascii/R.proto: Map fm onto '.
18474         * tty/devlatin1/R.proto: Likewise.
18476 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
18478         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18479         argument to \w is at a different input level.
18481         * tbl/table.c (table::init_output): Define a new macro
18482         REPEATED_VPT_MACRO, like vpt but if in a diversion also
18483         transparently outputs itself.
18484         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18485         vpt.
18486         (table::do_row): Likewise.
18488         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18489         TRANSPARENT_STRING_NAME.
18491         * tbl/table.c (table::init_output): In the table release macro
18492         print an error message and don't produce any output if after
18493         issuing the need request the table still will not fit.  Also
18494         remove the diversion after bringing it back.
18496         * tbl/table.c (table::init_output): Define a new macro
18497         REPEATED_MARK_MACRO, like mk but if in a diversion also
18498         transparently outputs itself.
18499         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18500         is necessary because .TH might not call .T#.
18501         (table::do_top): Likewise TOP_REG.
18502         (table::define_bottom_macro): If TOP_REG is no longer valid, use
18503         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18504         table header might contain just the two top rules.
18506 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
18508         * troff/div.c: Implement new request `ptr' to print all traps.
18510         * troff/env.c (init_env_requests): Implement `.tabs' reg with
18511         init_string_env_reg.
18512         * troff/env.c (class tab_reg): Deleted.
18514 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
18516         * troff/div.c: New number register .pn returns the number of the
18517         next page as set by the pn request.
18519         * macros/tmac.an: Redid headers and footers.  Number each manual
18520         entry starting from 1 unless \nC is > 0, like Sun.  Added an
18521         optional 5th argument to .TH which specifies the manual name and
18522         appears in the center of the header.  Understand the X, P and D
18523         registers like Sun.
18525 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
18527         * troff/env.c (init_env_requests): New number register `.lt' to
18528         return the title length.
18530         * troff/node.h (class transparent_dummy_node): New class.
18531         * troff/node.c (class transparent_dummy_node): Provide member
18532         functions. 
18533         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18534         than a dummy_node.
18536         * troff/input.c (token::next): New escape sequence \).
18537         * troff/input.c (get_copy): Recognize \) in copy mode.
18539         * troff/input.c (input_stack::clear): New function.
18540         * troff/input.c (exit_request): Use input_stack::clear.
18542         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18543         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18545         * troff/env.c: Move set_page_character to input.c.  Move
18546         page_character to input.c also.
18547         * troff/env.c (title): Split off the reading of the parts of the
18548         title into read_title_parts.
18549         * troff/input.c (read_title_parts): New function.  Check the
18550         input_level when testing whether a token matches the delimiter.
18552         * troff/input.c (exit_request): New function.
18553         * troff/input.c (init_input_requests): Bind ex request to
18554         exit_request rather than exit_groff.
18556         * troff/input.c (exit_groff): Call tok.next() before
18557         process_input_stack().
18559 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
18561         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18562         * troff/env.h: ditto.
18563         * troff/input.c: ditto.
18565         * troff/env.c (environment::is_empty): Test pending_lines.
18567         * troff/env.c (environment::have_pending_lines): Removed.
18569         * troff/input.c: Add request to flush pending lines from the
18570         environment.
18572         * troff/env.c, troff/env.h: Add automatic widow control feature.
18574         * troff/input.c (exit_groff):  Do process_input_stack() after
18575         do_break() but before setting exit_flag to 2.
18577         * troff/input.c: Remove FLUSH_PENDING_LINES and
18578         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18579         environment after END_TRAP token seen, but only if there aren't
18580         any more traps still unfinished.
18581         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18583 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
18585         * troff/env.c: Rename the `retain_size' member of class
18586         pending_output_line to `no_fill'.
18588         * troff/env.c (title): When the line is output, make the
18589         retain_size argument !fill.
18591         * troff/node.h: Add `hyphenated' member to struct breakpoint.
18592         * troff/node.c (space_node::get_breakpoints),
18593         (dbreak_node::get_breakpoints):  Fill this in.
18594         * troff/env.c:  Allow specification of maximum number of
18595         consecutive hyphenated lines.
18597         * troff/env.c (environment::is_empty): Add test for !current_tab.
18599 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
18601         * troff/env.c (environment::hyphenate_line): Don't completely give
18602         up if the word is not to be hyphenated; continue so that breaks
18603         can be made at break_char_node's.
18605         * lib/lib.h: Only define INT_MAX if it's not already defined;
18606         undef INT_MIN if it's already defined.
18608         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18610         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18611         This works around a bug in AT&T C++ 2.0 used with an ANSI C
18612         compiler.
18613         
18614         * macros/tmac.an (an-header): Set no-space mode.
18616         * macros/tmac.an (TH): Start a new page if necessary.
18618         * Started using ChangeLog at version 0.4.
18620 Local Variables:
18621 version-control: never
18622 coding: latin-1
18623 End: