1 2005-05-29 Werner LEMBERG <wl@gnu.org>
3 * doc/fdl.texi: Updated to version 1.2. Reported by Bernd Warken.
5 2005-05-28 Werner LEMBERG <wl@gnu.org>
7 * contrib/pdfmark/Makefile.sub (.ms.pdf): Use `--stylesheet', not
10 * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
13 * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
14 src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
15 Define `MLIB'. Some compilers need this for linking with libgroff.
17 2005-05-27 Werner LEMBERG <wl@gnu.org>
19 * MANIFEST, README, doc/webpage.ms: Updated.
21 2005-05-26 Werner LEMBERG <wl@gnu.org>
23 * All affected files: Update postal address of FSF.
25 2005-05-25 Keith Marshall <keith.d.marshall@ntlworld.com>
30 * README.CVS: Removed. Its contents is now part of the README file.
32 2005-05-21 Werner LEMBERG <wl@gnu.org>
34 * README: Updated. Based on a patch from Bernd Warken.
36 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
38 Miscellaneous script portability enhancements.
40 * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
41 generated conftest.sh script, conforming to portability
42 recommendation in autoconf docs.
43 * configure: Likewise, for code generated by GROFF_CSH_HACK.
44 * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
45 to portability recommendation in autoconf docs.
46 * contrib/gdiffmk/gdiffmk.sh: Likewise.
47 * contrib/gdiffmk/tests/runtests.in: Likewise.
48 * contrib/grap2graph/grap2graph.sh: Likewise.
49 * contrib/groffer/groffer.sh: Likewise.
50 * contrib/mm/mmroff.pl: Likewise.
51 * contrib/mom/momdoc/appendices.html: Likewise.
52 * contrib/pic2graph/pic2graph.sh: Likewise.
53 * font/devps/generate/afmname: Likewise.
54 * src/devices/xditview/ad2c: Likewise.
55 * src/preproc/eqn/neqn.sh: Likewise.
56 * src/roff/grog/grog.pl: Likewise.
57 * src/roff/grog/grog.sh: Likewise.
58 * src/roff/nroff/nroff.sh: Likewise.
59 * PROBLEMS: Likewise, in embedded script examples.
61 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
63 Improve portability of `pdfroff' shell script.
65 * arch/misc/shdeps.sh: Add space in shebang, conforming to
66 portability guidelines in `autoconf' docs.
67 (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
68 initialization code. Used by contrib/pdfmark/pdfroff.sh's
69 `searchpath' function.
71 2005-05-14 Werner LEMBERG <wl@gnu.org>
73 * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
74 contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
75 needed for newer ImageMagick versions.
77 2005-05-07 Werner LEMBERG <wl@gnu.org>
79 * src/preproc/refer/refer.man: Many small typographic fixes.
81 2005-05-06 Jeff Conrad <jeff_conrad@msn.com>
83 * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
84 Use `char *' cast for a_delete.
86 2005-05-03 Werner LEMBERG <wl@gnu.org>
88 * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
89 src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
91 2005-05-03 Jeff Conrad <jeff_conrad@msn.com>
93 * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
94 `a_delete' for `const char *'.
96 2005-05-03 Werner LEMBERG <wl@gnu.org>
98 * src/devices/grohtml/post-html.cpp,
99 src/devices/grohtml/html-table.cpp,
100 src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
101 Replace malloc/free with new/delete/a_delete.
103 * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
104 are prohibited with ANSI C++.
105 (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
106 function has a variable number of arguments).
108 * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
109 Simplify function and update all callers.
111 2005-05-02 Werner LEMBERG <wl@gnu.org>
113 Undo getopt changes from 2005-04-30. We don't want a dependency
116 * src/include/getopt_int.h: Removed.
118 * src/include/getopt.h, src/include/groff-getopt.h,
119 src/include/Makefile.sub, src/libs/libgroff/getopt.c,
120 src/libs/libgroff/getopt1.c: Revert to previous version.
123 * src/include/nonposix.h (access) [_MSC_VER]: New macro.
125 * src/include/posix.h (F_OK): Define conditionally.
127 * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
128 different variable name in second `for' loop to avoid MSVC compiler
131 2005-04-30 Werner LEMBERG <wl@gnu.org>
133 AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
135 * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
136 * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
137 * configure, src/include/config.hin: Regenerated.
144 * src/include/getopt.h, src/libs/libgroff/getopt.c,
145 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
147 * src/include/getopt_int.h: New file (from GNU libc CVS).
149 * src/include/groff-getopt.h: Updated.
151 * src/include/Makefile.sub (HDRS): Add getopt_int.h.
154 * font/devutf8/NOTES: Updated.
156 2005-04-28 Werner LEMBERG <wl@gnu.org>
158 Bug fix for Win32 relocatable code. Based on a patch from Keith
161 * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
164 * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
165 (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
167 2005-04-28 Keith Marshall <keith.d.marshall@ntlworld.com>
169 Correct `gnu.eps' handling for build from distribution tarball, with
170 separate source and build directories.
172 * doc/Makefile.sub: (examples.stamp): New target; forces copy of
173 grnexmpl.g, groff.css and gnu.eps from source to build directory;
174 generate gnu.eps from gnu.xpm if required; touch examples.stamp.
175 (prepare_examples): Make it depend on examples.stamp.
176 (CLEANADD): Add examples.stamp.
178 2005-04-27 Werner LEMBERG <wl@gnu.org>
182 position: '(' position ')'
186 * src/preproc/pic/pic.y (position, position_not_place): Handle
187 additional parentheses.
189 * doc/pic.ms: Updated.
191 2005-04-23 Larry Jones <lawrence.jones@ugs.com>
193 * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
195 2005-04-18 Werner LEMBERG <wl@gnu.org>
197 * src/roff/groff/pipeline.c: Don't include ctype.h.
199 2005-04-13 Werner LEMBERG <wl@gnu.org>
201 * src/roff/nroff/nroff.man: Document option `-M'.
203 2005-04-13 Bruce Lilly <blilly@erols.com>
205 * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
207 2005-04-01 Kees Zeelenberg <kzlg@users.sourceforge.net>
208 Werner LEMBERG <wl@gnu.org>
210 Add binary relocation support for Windows platforms.
212 * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
214 * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
216 * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
217 (search_path::search_path, search_path::open_file_cautious): Use
220 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
221 src/include/Makefile.sub (HDRS): Updated.
223 2005-04-01 Werner LEMBERG <wl@gnu.org>
225 * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
228 * src/libs/libgroff/font.cpp: Replace strdup with strsave.
230 * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
231 lib.h already does it.
233 * src/libs/libgroff/maxpathname.cpp: New file, defining
236 * src/include/lib.h: Add prototype for path_name_max.
238 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
240 * src/include/nonposix.h (PATH_EXT): New macro.
242 2005-03-28 Werner LEMBERG <wl@gnu.org>
244 Add support for double- and zero-width characters in grotty.
246 * src/devices/grotty/tty.cpp (glyph): Add width.
247 (tty_printer::make_underline, tty_printer::make_bold,
248 tty_printer::add_character): Add parameter to pass character width.
250 (tty_printer::end_page): Increase hpos by actual character width.
252 * font/devutf8/R.proto: Specify zero width for non-spacing
255 * tmac/unicode.tmac: Remove definitions for non-spacing entities.
257 * Makefile.comm (extraclean): Remove more junk files.
259 2005-03-25 Werner LEMBERG <wl@gnu.org>
261 * configure.ac: Undo change from 2005-03-24.
262 * configure: Regenerated.
264 2005-03-24 Werner LEMBERG <wl@gnu.org>
266 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
267 (dist): Search Makefile while descending into $(EXTRADIRS).
269 * doc/Makefile.in (.PHONY): Add.
270 (clean): Don't remove *.png and *.eps.
272 (realclean): Remove *.png and *.eps.
273 (extraclean): Depend on distclean.
275 * configure.ac: Add copyright.
276 Handle contrib/pdfmark/Makefile.
278 * configure: Regenerated.
280 2005-03-18 Larry Kollar <kollar@alltel.net>
282 Add numbered and definition lists to www.tmac.
284 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
285 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
286 auxiliary string registers.
287 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
288 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
289 (www-level): Removed.
290 (www-level1, www-level2, www-level3): Initialize to empty.
291 (www-level0, www-level4, www-level5, www-level6, www-level7,
292 www-level8, www-level9): New string registers.
293 (www-push-li, www-pop-li): New macros.
294 (www-push-level, www-pop-level): Renamed to...
295 (www-push-ul-level, www-pop-ul-level): This.
297 (www-push-ol-level, www-pop-ol-level): New macros.
299 (OLS, OLE, DLS, DLE): New user macros.
300 (LI): Removed. It is aliased to one of...
301 (www-li-ul, www-li-ol, www-li-dl): New macros.
303 * tmac/groff_www.man: Document new macros.
307 2005-03-18 Werner LEMBERG <wl@gnu.org>
309 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
310 doc-operating-system-NetBSD-2.0.2): New strings.
312 * tmac/groff_mdoc.man: Updated.
314 2005-03-17 Werner LEMBERG <wl@gnu.org>
316 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
318 2005-03-17 Werner LEMBERG <wl@gnu.org>
320 * src/libs/libgroff/hypot.c: Renamed to...
321 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
323 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
325 * src/include/lib.h: Updated.
327 2005-03-16 Werner LEMBERG <wl@gnu.org>
329 Add workaround for broken hypot() on Interix.
331 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
333 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
334 (CSRCS): Add `hypot.c'.
336 * src/include/lib.h: Declare `groff_hypot'.
338 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
341 * src/preproc/pic/pic.h: Don't declare `hypot'.
343 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
345 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
347 * src/devices/grohtml/post-html.cpp
348 (html_printer::lookahead_for_tables): End .ce properly to avoid a
351 2005-03-15 Werner LEMBERG <wl@gnu.org>
353 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
355 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
357 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
359 2005-03-14 Werner LEMBERG <wl@gnu.org>
361 Add Cyrillic support to devutf8 and devhtml.
363 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
365 * tmac/unicode.tmac: New file.
367 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
369 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
373 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
375 * src/libs/libdriver/printer.cpp (check_for_output_error): New
376 function. It has been introduced to catch peculiar error contexts
377 on MS-Windows platforms.
379 2005-02-28 Werner LEMBERG <wl@gnu.org>
381 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
384 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
386 * configure: Regenerated.
390 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
392 Integrate `pdfmark' into normal groff build system;
393 install macro `pdfmark' packages, build and install `pdfroff',
394 and PDF format documentation.
396 * Makefile.comm: Add PDFDOCDIR.
398 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
399 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
400 (unstall_dirs): Add pdfdocdir.
402 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
403 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
404 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
405 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
406 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
407 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
409 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
410 use of GROFF_AWK_PREFS.
411 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
412 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
414 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
415 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
416 also by modified GROFF_HTML_PROGRAMS).
418 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
420 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
422 (html_text::done_para): Unset `start_space'.
423 (html_text::remove_para_align): Call `retrieve_para_space' for the
426 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
428 (html_printer::do_check_center): Emit vertical space if necessary.
430 * src/roff/troff/env.cpp (environment_switch): Preserve
431 `seen_space', `seen_eol', and `suppress_next_eol' while switching
434 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
437 2005-02-20 Werner LEMBERG <wl@gnu.org>
439 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
442 2005-02-17 Werner LEMBERG <wl@gnu.org>
444 * doc/pic.ms, man/groff.man: Fix typos.
446 * doc/groff.texinfo: Fix typos.
447 (\LEmacro): Get proper mathematical spacing.
449 2005-02-16 Werner LEMBERG <wl@gnu.org>
451 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
452 * configure: Regenerated with autoconf 2.59b.
454 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
456 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
457 html_printer::start_font): Fix handling of preformatted text.
459 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
461 These patches modify the indentation implementation to use `<p
462 style=margin-left: n%>'. Many thanks to Peter and Larry for
463 suggesting this solution. Grohtml only uses tables for `.IP' and
464 related tags when the first operand has a short width.
466 Similarly, they modify all vertical space code. By default, grohtml
467 sets up a style sheet which uses no vertical space between `table',
468 `pre', and `p' tags. It forces spaces when it needs them using
469 `style="margin-top: 1em"'.
471 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
472 (html_table::emit_table_header, html_table::emit_new_row):
474 (html_table::set_space): New function.
475 (html_indent::html_indent): Don't set `is_used'.
476 (html_indent::begin): Rewritten.
477 (html_indent::end): Remove code in function.
479 * src/devices/grohtml/html-table.h: Updated.
480 (html_table): Make `out' public.
482 * src/devices/grohtml/html-text.cpp (html_text::html_text):
483 Initialize `start_space' with FALSE.
484 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
485 (html_text::issue_tag): Add argument to handle space style.
486 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
487 (html_text::flush_text): Don't set `start_space'.
488 (html_text::push_para): Don't set `p->really_issued'.
489 (html_text::do_emittext): Updated.
490 (html_text::do_para): Add paremeter to handle space.
492 (html_text::retrieve_para_space): New function.
494 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
495 (tag_definition): Remove `really_issued'.
496 (html_text): Updated.
498 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
499 `current_column' and `row_space'.
501 (html_printer::emit_raw, html_printer::write_header,
502 html_printer::do_indent, html_printer::do_check_center,
503 html_printer::do_tab_ts): Handle vertical space.
504 (html_printer:do_tab_te, html_printer::do_end_para): Call
506 (html_printer::do_col): Rewritten.
507 (html_printer::flush_globs): Remove debugging code.
508 (html_printer::is_line_start): New function.
509 (html_printer::start_font): Use `is_line_start'.
510 (html_printer::writeHeadMetaStyle): New function.
511 (html_printer::do_file_components, html_printer::~html_printer):
512 Call `writeHeadMetaStyle'.
514 * tmac/www.tmac (www-handle-percent): New macro.
515 (MPIMG): Handle percent values for width and height parameters.
518 * tmac/groff_www.man: Updated.
520 2005-02-14 Werner LEMBERG <wl@gnu.org>
522 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
523 $psname and $italic_angle.
524 Immediately restart file input loops if `split' returns an empty
527 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
528 Werner LEMBERG <wl@gnu.org>
530 Update afmtodit to better support Unicode (Michail).
531 Update afmtodit to use Perl 5 syntax (Werner).
533 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
535 Decorate variables with `my' where necessary.
536 Use `defined' where necessary to avoid warnings.
537 Don't use `do' for subroutine calls.
538 Other minor syntax updates.
539 Check for both `uXXXX[X[X]]' and `uniXXXX'.
540 Handle glyph variants properly.
541 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
544 * src/utils/afmtodit/afmtodit.man: Updated.
546 2005-02-13 Werner LEMBERG <wl@gnu.org>
548 Make groff.texinfo work with texinfo 4.8.
550 * doc/groff.texinfo (@Var): Use @r and @slanted.
551 (@defdummy, @Def*): Use @c to avoid empty lines.
552 (\angles): Replaced with...
553 (\Langlemacro, \Ranglemacro): New TeX macros.
554 (@Langlemacro, @Ranglemacro): New variables defined with @set.
555 (@angles): Use @Langlemacro and @Ranglemacro.
556 (\LE): Replaced with...
557 (\LEmacro): New TeX macro.
558 (@LEmacro): New variable defined with @set.
560 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
561 variables defined with @set.
562 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
563 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
568 * doc/texinfo.tex: Update to texinfo version 4.8.
570 * README.CVS: Updated.
572 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
574 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
577 2005-02-05 Werner LEMBERG <wl@gnu.org>
579 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
580 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
583 2005-02-01 Werner LEMBERG <wl@gnu.org>
585 * src/roff/groff/groff.man: Add information about paper size.
587 2005-01-25 Werner LEMBERG <wl@gnu.org>
589 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
592 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
594 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
596 (Re): Emit a warning if called without `.Rs'.
597 (doc-finish-reference): Use parameter for decreasing
598 `doc-reference-count'.
599 (doc-print-reference): Pass specific count parameters to
600 `doc-finish-reference'.
602 2005-01-21 Werner LEMBERG <wl@gnu.org>
604 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
605 Reset pointers to zero after deallocation. This fixes a crash
606 if a driver is called with multiple input files. Reported by
607 Ken Chilton <ken@chiltonfamily.org>.
609 * src/devices/grops/grops.man: Add more info on DSC.
611 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
613 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
616 2005-01-17 Werner LEMBERG <wl@gnu.org>
618 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
619 against division by zero.
621 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
623 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
625 2004-12-19 Werner LEMBERG <wl@gnu.org>
627 * install-sh: New version; taken from texinfo CVS.
629 2004-12-17 Werner LEMBERG <wl@gnu.org>
631 * tmac/devtag.tmac: Protect against loading twice.
632 Protect agains compatibility mode.
633 * tmac/www.tmac: Protect against loading twice.
634 Load `devtag.tmac' before switching off compatibility mode.
635 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
637 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
639 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
640 * configure: Updated.
642 2004-12-15 Thomas Klausner <wiz@netbsd.org>
644 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
646 2004-12-15 Werner LEMBERG <wl@gnu.org>
648 Make `test-groff' work again -- previously, wrong paths have been
649 used. Additionally, it can now be called from anywhere.
651 * test-groff.in: Don't test for groff binary. This is no longer
652 necessary since the proper paths are determined by `configure'.
653 (EXEEXT): Removed. No longer used.
654 (srcdir, builddir): Use values provided by the configure script.
655 (XENVIRONMENT): Updated.
659 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
661 Make .tag and .taga work for all devices (but only grohtml actually
664 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
665 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
666 html_printer::handle_assertion): Don't use hard-coded string
668 (html_printer::lookahead_for_table): Reset `tbl' properly if
670 (html_printer::devtag): New function, handling `devtag'.
671 (html_printer::special): Don't handle `html-tag'.
673 * src/include/printer.h, src/libs/libdriver/printer.cpp
674 (printer::devtag): New virtual function.
676 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
679 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
680 src/roff/troff/node.cpp: s/html-tag/devtag/.
682 * src/roff/troff/input.cpp (tag, taga): Always call
685 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
686 macros instead of HTML-TAG*.
688 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
690 * tmac/www.tmac: Load devtag.tmac.
691 Replace HTML-TAG* macros with DEVTAG* macros.
692 (HTML, HTML-NS): Changed definitions.
694 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
696 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
698 2004-12-10 Werner LEMBERG <wl@gnu.org>
700 Import Mike's `gdiffmk' package.
702 * contrib/gdiffmk/*: New files.
703 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
706 2004-12-08 Werner LEMBERG <wl@gnu.org>
708 Import Keith's `pdfmark' package. Integration is very preliminary.
710 * contrib/pdfmark/*: New files.
711 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
714 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
716 Fix a bug with title handling in HTML.
718 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
719 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
721 (html_printer::handle_tag_within_title): New function.
722 (html_printer::do_title): Use it.
724 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
725 (cov*tl-au-print): Emit `.eo.tl' tag.
727 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
729 * man/groff_char.man: Minor imrovements.
731 2004-12-04 Werner LEMBERG <wl@gnu.org>
733 * src/preproc/eqn/eqn.man: Revised.
735 2004-11-25 Werner LEMBERG <wl@gnu.org>
737 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
741 Remove X_NOT_STDC_ENV conditional.
742 (Version_string, program_name): New global variables.
743 (groff_flag): Removed.
745 (usage): Take a stream as argument.
748 (main): Add `long_options' array for `--help' and `--version'.
749 Make `-g' a dummy option.
750 Handle `-v' and unknown options.
751 Remove unused `position' variable.
753 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
754 (XLIBS): Add LIBGROFF.
756 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
759 * src/devices/xditview/Dvi.c (default_font_map): Split into three
760 parts to avoid compiler warning.
761 (resources): Don't initialize with `default_font_map'.
762 (ClassInitialize): Initialize first element of `resources'.
764 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
767 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
768 src/utils/pfbtops/pfbtops.man: Revised, updated.
770 * configure.ac: Generate src/utils/xtotroff/Makefile.
771 * configure: Regenerated.
773 2004-11-24 Werner LEMBERG <wl@gnu.org>
775 First fixes to get produce HTML.
777 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
780 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
781 (HR, LI): Use `HTML</p>', not `HTML'.
783 * doc/webpage.ms: Minor updates.
785 2004-11-23 Larry Kollar <kollar@alltel.net>
787 Add option -S grohtml to determine the file split level.
789 * src/devices/grohtml/post-html.cpp (split_level): New global
791 (html_header::determine_header_level): Use split_level.
792 (main): Handle `-S' command line option.
795 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
797 * src/devices/grohtml/grohtml.man: Document it.
802 2004-11-23 Y T <doarhop@hotmail.com>
804 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
805 the volume and number refer entries.
807 2004-11-22 Werner LEMBERG <wl@gnu.org>
809 * src/devices/grohtml/html-table.cpp
810 (html_table::emit_table_header): Don't emit `cols' attribute which
811 doesn't exist in HTML 4.0 and is thus invalid.
813 * NEWS: More minor fixes and updates.
815 2004-11-18 Werner LEMBERG <wl@gnu.org>
817 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
818 (HTML</p>): Minor clean-up.
820 * tmac/groff_www.man: Updated.
822 * src/devices/grohtml/grohtml.man: Revised and updated.
826 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
828 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
830 (html_printer::do_links): Fix rules generation around automatic
833 * tmac/www.tmac (LK): Use HTML-TAG-NS.
835 No longer emit empty line for non-HTML devices.
837 2004-11-17 Werner LEMBERG <wl@gnu.org>
839 * doc/Makefile.in (prepare_examples, webpage.html): Handle
842 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
843 prepare_examples, webpage.html): Handle `groff.css'.
845 2004-11-15 Werner LEMBERG <wl@gnu.org>
847 * NEWS, README, doc/webpage.ms: Updated.
849 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
851 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
853 * src/include/printer.h (printer): Remove virtual function
855 Update all source files.
857 * src/devices/grohtml/post-html.cpp (html_printer): New member
858 function `round_width'.
860 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
862 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
863 column key letter suffix.
865 2004-10-14 Werner LEMBERG <wl@gnu.org>
867 * Makefile.in (check): Depend on `site.exp' and `docheck'.
868 (docheck): Run dejagnu's `runtest' if it exists.
869 (site.exp): Create dejagnu configuration file.
871 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
873 2004-10-13 Werner LEMBERG <wl@gnu.org>
875 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
876 src/devices/grohtml/post-html.cpp (make_val,
877 html_printer::handle_state_assertion): Fix compiler warnings.
879 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
880 (diversion::diversion): Fix order of initializers.
882 * src/roff/troff/div.h: Don't include `mtsm.h'.
884 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
885 (environment::environment): Fix order of initializers.
886 (environment::make_tag, environment::construct_format_state): Fix
889 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
890 (input_iterator::input_iterator, macro::macro): Fix order of
893 * src/roff/troff/mtsm.cpp: Include only necessary header files.
894 (state_set::add, state_set::val): Fix compiler warnings.
896 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
897 (bool_value_state, int_value_state, units_value_state,
898 string_value_state): Remove comma after last element which causes
899 an error with g++ 3.3.3.
901 * src/roff/troff/node.cpp: Include `stringclass.h'.
902 (hline_node::hline_node, vline_node::vline_node,
903 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
905 (zero_width_node::zero_width_node): Fix order of initializers.
907 * src/roff/troff/node.h: Don't include `mtsm.h'.
908 (hmotion_node): Fix compiler warnings.
910 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
912 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
914 * doc/groff.css: New file.
916 * doc/webpage.ms: Use `groff.css'.
919 * tmac/an-old.tmac (need_eo_h): New number register.
920 (TH): Emit `.eo.tl' tag after title.
921 (SH): Set `need_eo_h'.
922 (an-trap): Handle `need_eo_h'.
923 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
925 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
926 (TL): Always start diversion.
928 (@AI): Always call `par@reset'.
929 (@AB): Update code for -Thtml.
930 (cov*tl-au-print): Handle -Thtml.
931 (par@reset): Handle `need_eo_tl', `need_eo_h'.
934 (@SH): Set `need_eo_h' for -Thtml.
935 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
937 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
938 Set `need_eo_h' for -Thtml.
939 (@EQ, @EN): Don't handle -Thtml specially.
940 (par@load-init): Don't handle -Thtml specially.
942 * tmac/www.tmac (www:paraspace): New macro.
943 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
944 (HTML</p>, HTML-TAG-NEXT): New macros.
945 (HnE): Emit tag `.eo.h' instead of break.
946 (HR): s/HTML-NS/HTML/.
947 (www-end-nowhere): End diversion only if `www-html' not set.
949 (ULS, ULE): s|HTML|HTML</p>|.
950 (LI): Call `www:paraspace'.
953 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
955 * src/roff/troff/request.h (macro): Make `p' public.
956 New variable `is_a_diversion'.
957 New member function `is_diversion'.
960 * src/devices/grohtml/html.h (simple_output): New member function
963 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
964 computation of `total'.
965 (tabs::check_init): New function.
966 (html_table::emit_table_header): Emit style data.
967 (html_table::insert_column): Improved.
969 * src/devices/grohtml/html-table.h: Updated.
971 * src/devices/grohtml/html-text.cpp (html_text::html_text):
972 Initialize `start_space' with TRUE.
973 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
975 (html_text::flush_text): Set `start_space' flag.
976 (html_text::uses_indent, html_text::remove_para_space,
977 html_text::get_alignment): New functions.
978 (html_text::push_para): Updated.
979 (html_text::do_para): Check for empty argument.
980 Don't set `space_emitted'.
981 (html_text::do_space, html_text::emit_space): Updated.
983 * src/devices/grohtml/html-text.h (tag_definition): New variable
985 (html_text): New member function `uses_indent', `remove_para_space',
988 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
990 (simple_output:nl): Always emit `\n'.
992 * src/devices/grohtml/post-html.cpp: Include `string.h'.
993 (BASE_POINT_SIZE): Removed.
994 (base_point_size, head_info): New global variables.
995 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
997 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
999 (page::add_and_encode): Pass additional parameter for tag flag.
1000 (assert_pos): New structure.
1001 (assert_state): New class.
1002 (html_printer): Remove `indentation', `prev_indent'.
1003 Add variables `troff_indent', `device_indent', `temp_indent'.
1004 Add variables `seen_indent', `next_indent', `seen_pageoffset',
1005 `next_pageoffset', `seen_linelenght', `next_linelength',
1006 `seen_center', `next_center', `seen_space', `seen_break', `as'.
1007 Add member functions `do_check_center', `do_space', `do_head',
1008 `get_troff_indent', `restore_troff_indent', `handle_assertion',
1009 `handle_state_assertion', `do_end_para', `set_char_and_width'.
1010 Change argument to `do_fill' to `char *'.
1012 (html_printer::emit_raw): Call `shutdown_table'.
1014 (html_printer::do_center): Simplified.
1015 (html_printer::do_title): Improved.
1016 (html_printer::write_header): Emit one more newline.
1018 (html_printer::do_heading, html_printer::do_indent,
1019 html_printer::do_eol, html_printer::do_tab_ts,
1020 html_printer::do_tab, html_printer::do_tab0,
1021 html_printer::calc_po_in, html_printer::next_horiz_pos,
1022 html_printer::remove_courier_tabs,
1023 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
1025 (html_printer::do_linelength, html_printer::do_pageoffset,
1026 html_printer::do_indentation, html_printer::do_tempindent,
1027 html_printer::do_tab_te): Simplified.
1028 (html_printer::do_pointsize): Check whether point size is really
1029 associated a `.tl' tag.
1030 (html_printer::do_break): Rewritten.
1031 (html_printer::troff_tag): Improved.
1032 (html_printer::flush_globs): Updated.
1033 (html_printer::lookahead_for_tables): Handle `is_br'.
1035 (html_printer::set_char): Check `sbuf_style.f'.
1036 (html_printer::write_navigation): Use string comparison.
1037 (html_printer::~html_printer): Emit `head_info'.
1038 (html_printer::special): Rewritten.
1039 (get_str, make_val): New functions.
1040 (main): New option `s' to set the base point size.
1042 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
1044 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
1046 * src/roff/troff/node.cpp: New extern `debug_state'.
1047 Include `stringclass.h' and `mtsm.h'.
1048 Implement new classes and class members from `node.h'.
1049 (real_output_file): Make `fp' public.
1050 (troff_output_file): New variables `cur_div_level' and `tag_list'.
1051 Update constructors.
1052 (troff_output_file::really_print_line): Check whether we should push
1053 the current troff state and use the state at the start of the
1054 invocation of this diversion.
1055 (troff_output_file::add_to_tag_list): New member function.
1056 (node::add_char): Handle `glyph_comp_np'.
1058 * src/roff/troff/node.h: Include `mtsm.h'.
1059 (node): New variables `state', `push_state', `div_nest_level',
1060 `is_special'. Update constructors, all descendants.
1061 Pass additional argument to `add_char' member function.
1062 New virtual member functions `is_tag', `debug_node',
1063 `debug_node_list'. Update all descendants.
1064 (tag_node): New class for handling tags.
1065 (output_file): Add variable `state'.
1067 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
1069 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
1070 providing a minimal troff state machine to emit meta tags for the
1071 post-grohtml device driver.
1073 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
1076 2004-10-09 Werner LEMBERG <wl@gnu.org>
1078 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
1080 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
1082 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
1084 * src/roff/troff/div.h: Include `mtsm.h'.
1085 (diversion): New variables `any_chars_added', `needs_push',
1086 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
1087 `saved_suppress_next_eol', `modified_tag'.
1088 New virtual member function `is_diversion'. Update all descendants.
1090 * src/roff/troff/div.cpp (diversion::diversion,
1091 macro_diversion::macro_diversion): Updated.
1092 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
1093 `suppress_next_eol'.
1094 (top_level_diversion::space): Handle `curenv->seen_space'.
1095 (page_offset): Update tag handling.
1096 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
1098 * src/roff/troff/env.h (environment): Make `tabs' public.
1099 Remove `ignore_next_eol', `emitted_node'.
1100 Update `output_line', `output'.
1101 New variables `seen_space', `seen_eol', `suppress_next_eol',
1103 New member functions `construct_state', `make_tag',
1104 `construct_format_state, `construct_new_line_state,
1106 Remove `add_html_tag', `make_html_tag'.
1108 * src/roff/troff/env.cpp: New externs `suppress_push',
1109 `get_diversion_state', `global_diverted_space'.
1110 (pending_output_line): New variable `was_centered'.
1111 Update constructor and all callers.
1112 (pending_output_line::output): Call `curenv->construct_format_state'.
1113 (environment::environment, environment::copy): Updated.
1114 (environment::output): Handle `was_centered'.
1115 (environment::add_char): Handle construct and diversion state.
1116 (environment::add_node): Handle construct state.
1117 (environment::newline): Handle `was_centered'.
1118 (environment::output_line): Updated.
1119 (environment::possibly_break_line): Updated.
1120 Update tag handling.
1121 (environment::add_html_tag): Replaced with...
1122 (environment::make_tag): New function.
1123 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
1124 (environment::dump_troff_state): New debugging function.
1125 (environment::construct_state, environment::construct_format_state,
1126 environment::construct_new_line_state): New functions.
1127 (environment::do_break): Updated.
1128 Handle `global_diverted_space'.
1129 (environment::handle_tag): Update tag handling.
1130 (point_size, fill, do_break_request): Don't call `add_html_tag'.
1131 (no_fill): Don't call `add_html_tag'.
1132 Set `suppress_next_eol'.
1133 (center, right_justify, line_length, indent, temporary_indent,
1135 Update tag handling.
1137 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
1138 (input_iterator): New variables `is_diversion', `diversion_state'.
1139 Update constructors.
1140 (input_stack): New member functions `get_div_level',
1141 `get_diversion_state', `check_end_diversion'.
1142 New variables `div_level', `diversion_state'. Initialize them.
1143 (suppress_push, global_diverted_space): New global variables.
1144 (input_stack::finish_get, input_stack::finish_peek,
1145 input_stack::remove_boundary, input_stack::end_file,
1146 input_stack::clear, input_stack::pop_macro): Call
1147 `check_end_diversion'.
1148 (input_stack::push): Handle `div_level' and `diversion_state'.
1149 (get_diversion_state): New function.
1150 (diverted_space_node::reread): Handle `global_diverted_space'.
1151 (macro::macro): Update constructors.
1152 (macro::is_diversion): New function.
1153 (macro::operator=): Set `is_a_diversion'.
1154 (string_iterator): New member function `is_diversion'.
1155 (string_iterator::string_iterator): Update constructors.
1156 (string_iterator::fill): Set `div_nest_level'.
1157 (macro_iterator): New member function `is_diversion'.
1158 (do_if_request): Handle `suppress_push'.
1159 (tag, taga): New functions.
1160 (init_input_requests): Add `tag' and `taga' requests.
1162 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
1164 * src/include/font.h (font): New member function
1165 `get_image_generator'.
1166 New variables `unscaled_charwidths' and `image_generator'.
1168 * src/libs/libgroff/font.cpp (font::get_width): Always return the
1169 character's unscaled width if `font::unscaled_charwidths' is set.
1170 (font::get_image_generator): New function.
1171 (font::load_desc): Check the `unscaled_charwidths' and
1172 `image_generator' keywords.
1174 * src/libs/libgroff/fontfile.cpp: Initialize
1175 `font::unscaled_charwidths' and `font::image_generator'.
1177 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
1179 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
1181 * man/groff_font.man: Document `unscaled_charwidths' and
1184 * src/preproc/html/pre-html.cpp: Include `device.h'.
1185 (image_gen): New global variable.
1186 (imageList::createPage): Use `image_gen'.
1187 (main): Use `image_generator' keyword.
1189 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
1191 * tmac/html.tmac: Handle \[sqrtex].
1193 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
1195 * src/include/printer.h (printer): New virtual method `round_width'.
1197 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1198 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1199 src/devices/grotty/tty.cpp (printer::round_width): New function
1202 * src/devices/grohtml/post-html.cpp (printer::round_width): New
1204 (html_printer::set_numbered_char): Use it.
1206 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
1208 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1210 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1212 * configure: Regenerated.
1214 * Makefile.in (GHOSTSCRIPT): New variable.
1215 (MDEFINES): Add GHOSTSCRIPT.
1217 2004-10-03 Werner LEMBERG <wl@gnu.org>
1219 * INSTALL.gen: Updated (taken from texinfo CVS).
1221 2004-09-28 Werner LEMBERG <wl@gnu.org>
1225 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1227 * tmac/groff_www.man: Revised and updated.
1229 2004-09-26 Werner LEMBERG <wl@gnu.org>
1231 Fix \$@ and \$* to handle any number of arguments.
1233 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1236 * src/roff/troff/input.cpp (input_iterator::internal_level):
1238 (input_stack): New member functions `increase_level' and
1240 (input_stack::get_level): Don't use `internal_level'.
1241 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1242 (end_quote_iterator): Completely removed.
1243 (interpolate_arg): Build string for \$@ and \$* which is then
1244 pushed onto the input stack.
1246 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
1248 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1251 2004-09-23 Werner LEMBERG <wl@gnu.org>
1253 * tmac/an-old.tmac (ne): Using default scaling operator.
1255 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1257 This change implements the following features:
1260 New numeric register: Defines number of lines following LP, PP,
1261 QP, IP or XP, which must be kept together, before any automatic
1262 page break. If insufficient space remains on the current page, a
1263 page break is forced before the new paragraph begins.
1266 New numeric register: Sets number of lines of following paragraph
1267 which must be kept with a heading, defined by NH or SH, before any
1268 automatic page break. If insufficient space remains on the
1269 current page, a page break is forced before the heading.
1272 (Thanks to Joerg van den Hoff, for this idea).
1274 New numeric register: Sets the first level of heading (set with
1275 NH), which will keep the same point size as body text; e.g. if
1276 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1277 point size specified by \n[PS], but .NH 2 and .NH 1 will have
1278 progressively larger point sizes, determined by \n[PSINCR] (see
1282 New numeric register: Sets the point size increment for each level
1283 of heading, (set with NH), below the threshold level set by
1284 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1285 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1286 and all other levels will remain at 10pt, (because \n[PS] = 10).
1289 Existing macro now accepts a numeric argument, to make heading
1290 size match that of NH with same argument value, when the
1291 GROWPS/PSINCR feature is enabled.
1294 New string, set by NH macro, replaces the existing (undocumented)
1295 use of SN, to represent the assigned section number.
1298 New string, set by NH macro, represents the assigned section
1299 number, but omits the terminal period (periods at intermediate
1300 levels are retained).
1303 String set by NH macro, originally undocumented, now implemented
1304 as an alias for SN-DOT (which reproduces original behaviour).
1306 * tmac/s.tmac (PORPHANS): New register.
1307 (par*start): Use it.
1308 (HORPHANS, GROWPS, PSINCR): New registers.
1309 (SH-NO-TAG, @SH): Use them.
1312 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1314 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1315 of `Ds' and `De' macros.
1317 2004-09-10 Werner LEMBERG <wl@gnu.org>
1319 In tbl, handle \a as an interpreted leader character if in
1322 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1323 LEADER_CHAR): New macros.
1324 (compatible_flag): New declaration.
1326 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1327 LEADER_3, and LEADER_4 to `state'.
1328 (table_input::get): Handle `\a'.
1330 * src/preproc/tbl/table.cpp (PREFIX): Removed.
1331 (LEADER_REG): New macro.
1332 (table::init_output): Define LEADER_REG string register if in
1335 * src/preproc/tbl/tbl.man: Document it.
1337 2004-08-18 Werner LEMBERG <wl@gnu.org>
1339 * tmac/doc.tmac (An): Fix error message.
1341 2004-08-06 Werner LEMBERG <wl@gnu.org>
1343 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1344 file can't be opened. UNIX tbl has the same behaviour.
1346 2004-08-05 Y T <doarhop@hotmail.com>
1348 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1349 (DBRead): If in compatibility mode, take into account the text
1350 when computing figure boundaries.
1352 2004-08-05 Werner LEMBERG <wl@gnu.org>
1354 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
1355 from Tadziu Hoffmann.
1357 2004-08-03 Werner LEMBERG <wl@gnu.org>
1359 * doc/meref.me: Document `_M' register.
1361 2004-08-03 Martin Husemann <martin@duskware.de>
1363 Make hpftodit work correctly on big-endian systems.
1365 * src/utils/hpftodit/hpftodit.cpp (File): New method
1366 `get_uint32(char *)'.
1367 (entry): New member `orig_value'.
1368 (read_tags): Use new method.
1369 (output_font_name, read_and_output_pcltypeface, dump_ascii):
1372 2004-08-01 Werner LEMBERG <wl@gnu.org>
1374 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
1375 are already in X11's `macros.t' file.
1377 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
1379 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1381 (read_and_output_pcltypeface): Handle strings with length <= 4.
1383 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
1385 * tmac/s.tmac (pg@top): Don't save `PO' register.
1386 (pg*end-col, pg*end-page): Directly use `PO' register.
1388 2004-07-27 Werner LEMBERG <wl@gnu.org>
1390 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1392 * src/preproc/refer/refer.cpp (output_references): Check for
1394 * src/preproc/refer/refer.man: Improve documentation of
1395 `bibliography' command.
1397 2004-07-26 Werner LEMBERG <wl@gnu.org>
1399 Add requests `fcolor' and `gcolor'.
1401 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1403 (init_env_requests): Add `fcolor' and `gcolor'.
1405 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1407 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1408 Document new requests.
1410 2004-07-24 Werner LEMBERG <wl@gnu.org>
1412 Add support for fractional point sizes in ms macros. A value for
1413 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1414 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
1416 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1417 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1419 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1421 2004-07-19 Werner LEMBERG <wl@gnu.org>
1423 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1425 (do_for, for_input::get, for_input::peek): Handle negative `by'.
1426 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1428 2004-07-08 Thomas Klausner <wiz@netbsd.org>
1430 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1431 * tmac/groff_mdoc.man: Updated.
1433 2004-07-05 Werner LEMBERG <wl@gnu.org>
1435 * doc/groff.texinfo: Further improve documentation of `hcode'.
1437 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
1439 Improve appearance of arrows in pic.
1441 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1443 Use two line segments for drawing non-filled arrow head.
1444 (line_object::print, spline_object::print): Shorten line length to
1445 avoid arrow sticking.
1446 (arc_object::print): Take arrow direction into account.
1448 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1450 * tmac/groff_www.man: Update documentation of .MPIMG.
1452 2004-07-03 Werner LEMBERG <wl@gnu.org>
1454 * tmac/an-old.tmac (RI): Always start with font `R'.
1455 (RI, IR): Properly end with font `R'.
1457 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
1459 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1460 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1461 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1462 Don't pass more than six arguments to .R, .I, .B, etc., for
1463 compatibility with traditional troff macros.
1465 2004-07-02 Werner LEMBERG <wl@gnu.org>
1467 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1468 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1470 (PUSH_COMP_MODE): New internal character constant.
1473 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1474 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1475 (token::next, macro::append): Handle PUSH_COMP_MODE.
1476 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1477 POP_GROFFCOMP after each of the decoded arguments to make them
1478 independent from the compatibility mode status.
1479 (comp_mode): Add `COMP_ENABLE'.
1480 (do_define_string, do_define_macro): Handle COMP_ENABLE.
1481 (define_string, append_string, define_macro, define_indirect_macro,
1482 append_macro, append_indirect_macro): Handle `compatible_flag'.
1483 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1485 * man/groff_diff.man, doc/groff.texinfo: Updated.
1487 2004-07-01 Werner LEMBERG <wl@gnu.org>
1489 * doc/groff.texinfo: Improve documentation of `hcode'.
1490 Use @documentencoding and convert document to latin-1; to do that
1491 make latin characters active and assign proper macros (within a
1492 @tex...@end tex environment).
1493 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1494 * doc/Makefile.sub (groff): Ditto.
1496 2004-06-29 Werner LEMBERG <wl@gnu.org>
1498 Implement two new conditional operators `F <name>' and `S <name>'
1499 which check whether <name> is a valid font or style, respectively.
1501 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1502 (text_file::text_file): Updated.
1503 (text_file::error): Don't emit message if `silent' is set.
1504 (font::load_font): Add optional third argument (which is directly
1506 (font::load): Add optional second argument to check the header of
1507 a font only, without emitting warning or error messages.
1508 * src/include/font.h (font): Updated.
1510 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1512 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1513 fourth argument to check a font without mounting.
1514 (check_font, check_style): New functions.
1515 * src/roff/troff/node.h: Updated.
1517 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1520 2004-06-27 Werner LEMBERG <wl@gnu.org>
1522 Implement new string-valued register `.sty' to return the current
1525 * env.cpp (environment::get_style_name_string): New function.
1526 (init_env_requests): Add `.sty' register.
1527 * env.h (environment): Updated.
1528 * node.cpp (font_info): Make `get_style_name' a friend.
1529 (get_style_name): New function.
1532 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1535 2004-06-15 Werner LEMBERG <wl@gnu.org>
1537 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1540 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
1542 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1543 and \n[mo] to avoid dependency on current date.
1545 2004-06-08 Werner LEMBERG <wl@gnu.org>
1547 * Makefile.sub (install_data): New target.
1549 2004-06-04 Werner LEMBERG <wl@gnu.org>
1551 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1553 2004-06-03 Werner LEMBERG <wl@gnu.org>
1555 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1557 (install_data): Add $(srcdir).
1559 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1562 2004-06-02 Werner LEMBERG <wl@gnu.org>
1564 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1565 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1566 Add test for Xmu library.
1567 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1568 GROFF_APPRESDIR_DEFAULT): New macros.
1570 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1571 and GROFF_APPRESDIR_DEFAULT.
1573 * configure: Regenerated.
1575 * Makefile.in (appresdir): New variable.
1576 (MDEFINES): Add appresdir.
1578 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1580 (install_data, uninstall_sub): New targets to handle GXditview.ad.
1582 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1583 `$(srcdir)/eign', not `eign'.
1585 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1587 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1588 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1589 Protect (g)xditview with `\%' to avoid hyphenation.
1590 Other minor formatting.
1592 2004-06-01 Werner LEMBERG <wl@gnu.org>
1594 Integrate gxditview into groff's standard directory hierarchy.
1596 * src/xditview/*: Moved to ...
1597 * src/devices/xditview/*: Here.
1598 Moved DviChar.h and XFontName.h to src/include.
1599 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1600 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1601 Moved xtotroff.c to new directory src/utils/xtotroff.
1602 Provide proper Makefile.sub files (reusing the stuff from
1604 DESC renamed to DESC.in.
1605 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1606 Converted everything from K&R to ANSI C.
1607 Decorated with const where appropriate.
1608 Cast string constants with `String' and `char *' where appropriate.
1609 Made it compile with C++ (used as a C compiler).
1610 Removed other minor compiler warnings.
1612 * src/devices/xditview/device.c: Include config.h, string.h, and
1614 Don't declare `exit', `strtok', `strchr', and `getenv'.
1617 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1620 * src/devices/xditview/xditview.c: Include config.h.
1621 Include stdio.h earlier.
1622 Protect declaration of `popen' and `pclose' with
1623 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1624 Replace `caddr_t' with `XtPointer'.
1625 (MakePromptFunc): New typedef.
1626 (DoPrint): Use RETSIGTYPE.
1627 (promptfunction): Change type to MakePromptFunc.
1628 (MakePrompt): Use MakePromptFunc for third argument.
1631 * src/devices/xditview/ad2c: Add casts to `String'.
1633 * src/include/XFontName.h (XFontNameString): Don't use array
1635 Add prototypes for `XParseFontName', `XFormatFontName',
1636 `XCompareFontName', and `XCopyFontName'.
1638 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1641 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1642 Don't declare `XParseFontName' and `XFormatFontName'.
1644 (main): Remove `optind' and `optarg'.
1646 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1647 (to select programs which need X).
1648 Make XDEVIDIRS depend on `FORCE'.
1649 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1651 (MDEFINES): Updated.
1652 (LIBDIRS): Use XLIBDIRS.
1653 (CPROGDIRS): Use XPROGDIRS.
1654 (DEVDIRS): Remove font directories for gxditview.
1655 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1656 (EXTRADIRS): Remove src/xditview.
1658 * Makefile.sub (DISCLEANFILES): Updated.
1660 * Makefile.comm (LIBXUTIL): New variable.
1661 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1662 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1664 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1666 * aclocal.m4 (GROFF_X11): New function.
1668 * configure.ac: Call GROFF_X11.
1669 Don't create src/xditview/Imakefile.
1670 Don't emit notice how to build gxditview.
1672 * configure: Regenerated.
1674 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1676 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
1678 * Makefile.in (CPPFLAGS): Define.
1679 (MDEFINES): Add CPPFLAGS.
1681 2004-05-27 Werner LEMBERG <wl@gnu.org>
1683 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1685 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
1687 Fix problems with `friend name injections'.
1689 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1690 make_script_box), src/roff/troff/div.h (end_diversions),
1691 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1694 2004-05-25 Bernd Warken <bwarken@mayn.de>
1696 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1698 2004-05-25 Werner LEMBERG <wl@gnu.org>
1700 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1701 src/libs/libgroff/color.cpp: Include lib.h.
1703 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
1705 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1706 through Forte 6u1, and for how to get GNU make on Solaris.
1708 2004-05-24 Werner LEMBERG <wl@gnu.org>
1710 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
1713 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
1715 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1718 2005-05-14 Werner LEMBERG <wl@gnu.org>
1720 * REVISION: Set to 2.
1722 * aclocal.m4 (GROFF_STDINT_H): Removed.
1723 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1725 * configure.ac: Updated.
1726 * configure, src/include/config.hin: Regenerated.
1728 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1729 inttypes.h conditionally.
1731 2003-05-13 Werner LEMBERG <wl@gnu.org>
1733 Version 1.19.1 released
1734 =======================
1736 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
1738 * src/preproc/refer/label.y (same_author_last_name,
1739 same_author_name): Handle empty sort keys.
1741 2004-05-10 Werner LEMBERG <wl@gnu.org>
1743 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1746 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1747 doc-str-Lb-librt): Reset font.
1748 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1749 Provide `doc-str-Lb' to reset font.
1750 * tmac/groff_mdoc.man: Updated.
1752 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
1754 * src/preproc/html/pre-html.cpp (make_message): Make it work for
1755 snprintf versions which don't conform to ANSI C 99 (this is,
1756 counting the string's trailing null byte in the return value).
1758 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
1760 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1761 that all implementations of sprintf handle null pointers correctly.
1763 2004-05-04 Werner LEMBERG <wl@gnu.org>
1765 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1766 Document `.U' register.
1768 * src/roff/troff/env.cpp (environment::mark_last_line)
1769 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1771 2004-05-04 Larry Kollar <kollar@alltel.net>
1773 New read-only register `.U'; it returns 1 in safer mode and 0
1776 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1779 2004-05-03 Werner LEMBERG <wl@gnu.org>
1781 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1783 2004-04-17 Werner LEMBERG <wl@gnu.org>
1785 * src/include/font.h (font): Use `int' for ch_index.
1786 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1787 font::compact): Updated.
1789 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1792 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1793 (hyphen_word): Fix compiler warnings.
1794 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1797 (get_delim_number, get_line_arg): Change second argument type to
1799 (macro_header::copy, token::next, do_define_string,
1800 do_define_character, substring_request, asciify_macro,
1801 unformat_macro, read_size, non_interpreted_node::interpret,
1802 while_request, main: Fix compiler warnings.
1803 (read_color_draw_node): Initialize `col'.
1805 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1806 `start_col' and `end_col' of type `int'.
1807 (vertical_rule): Make `col' of type `int'.
1809 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1812 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1814 (format_serial): Use them to remove dependency on ASCII.
1816 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1818 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1821 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1823 (glyph): Change type of `hpos' to `int'.
1825 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
1826 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1828 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1830 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1832 2004-04-16 Werner LEMBERG <wl@gnu.org>
1834 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1835 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1836 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1837 `double' instead of `float' everywhere.
1838 * src/preproc/grn/main.cpp: Use `double' instead of `float'
1840 (main): Add return value.
1841 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1843 Update all user functions.
1845 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1846 src/preproc/eqn/box.h, src/preproc/pic/object.h,
1847 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1848 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1849 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1850 src/roff/troff/input.cpp, src/roff/troff/request.h,
1851 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1854 * src/utils/indxbib/signal.c: Include stdlib.h.
1856 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1858 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1859 before the first page.
1861 2004-04-14 Thomas Klausner <wiz@netbsd.org>
1863 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1864 (doc-operating-system-*): Updated.
1865 * tmac/doc-syms (doc-str-St-*): Various small fixes.
1866 (doc-str-Lb-*): Add more library names.
1868 2004-04-10 Art Haas <ahaas@airmail.net>
1870 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1873 2004-04-09 Art Haas <ahaas@airmail.net>
1875 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1877 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
1879 * arch/misc/shdeps.sh: Generate better comment for sed script.
1881 2004-04-08 Art Haas <ahaas@airmail.net>
1883 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1884 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1885 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1886 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1887 (polyfill), src/preproc/grn/main.cpp (polyfill),
1888 src/preproc/refer/command.cpp (command_table),
1889 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1890 gcc 3.5 doesn't like).
1892 2004-04-08 Werner LEMBERG <wl@gnu.org>
1894 Removing many compiler warnings. groff should now compile with
1895 a C++ compiler used for C files also. [Simple variable renamings
1896 to avoid shadowing aren't logged in detail.]
1898 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1899 (draw_dvi_printer::draw) ['c']: Enclose in block.
1901 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1902 (page::add_line): Fix typos.
1903 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1905 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1906 Some local variable renamings.
1907 * src/devices/grolbp/lbp.h: Some local variable renamings.
1909 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1912 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1913 Remove redundant local variable declaration.
1914 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1915 Don't use `caddr_t' but `void *'.
1916 Enclose functions with `extern "C"' for C++.
1918 * src/libs/libdriver/input.cpp (remember_filename,
1919 remember_source_filename): Use cast for string constant.
1921 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1922 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1923 src/libs/libgroff/geometry.cpp: Some local variable renamings.
1924 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1926 Enclose functions with `extern "C"' for C++.
1927 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1928 (needs_quoting): Return `int'.
1929 (quote_arg): Add proper casts to malloc and realloc.
1930 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1931 various MS Windows environments.
1932 (spawnvp_wrapper): Add proper cast to malloc.
1934 * src/preproc/eqn/box.h: Remove redundant declarations of
1935 `make_script_box', `make_mark_box' and `make_lineup_box'.
1936 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1937 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1940 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1941 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1942 (dx, dy): Renamed functions to...
1943 (deltax, deltay): This.
1944 * src/preproc/grn/main.cpp: Some local variable renamings.
1945 (deffont): Add `const'.
1946 (initpic, conv): Use cast for string constant.
1948 * src/preproc/html/pre-html.cpp: Some local variable renamings.
1949 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1950 (char_buffer::run_output_filter): Second argument is unused.
1951 * src/preproc/html/pushback.cpp: Some local variable renamings.
1953 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1954 * src/preproc/pic/object.cpp: Some local variable renamings.
1956 * src/preproc/refer/label.y (lookup_label): Remove redundant
1957 declaration of local variable.
1959 * src/preproc/soelim.cpp: Remove redundant declaration of
1960 `interpret_lf_args'.
1962 * src/preproc/tbl/main.cpp: Some local variable renamings.
1964 * src/roff/groff/groff.cpp (main): Use cast for string constant.
1965 * src/roff/groff/pipeline.c: Enclose declarations of `error',
1966 `c_fatal', and `i_to_a' with `extern "C"' for C++.
1967 Don't use C++-style comments.
1969 * src/roff/troff/env.h: Remove redundant declaration of `title'.
1970 * src/roff/troff/node.h, src/roff/troff/env.cpp,
1971 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1973 * src/roff/troff/div.h: Remove redundant declaration of
1975 * src/roff/troff/troff.h: Remove redundant declaration of
1977 * src/roff/troff/input.cpp: Remove redundant declaration of
1978 `handle_first_page_transition' and `process_input_stack'.
1980 * src/utils/hpftodit.cpp: Some local variable renamings.
1982 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1984 Don't define RETSIGTYPE.
1985 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1987 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1988 (error): Use `const' in argument.
1989 (main): Remove redundant declaration of `optind'.
1990 Move declaration of `Version_string' to top-level.
1992 * PROBLEMS: Document difficulties compiling signal.c if a C++
1993 compiler is used for C.
1995 2004-04-07 Werner LEMBERG <wl@gnu.org>
1997 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1999 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
2001 Make scripts like nroff.sh and neqn.sh portable across various
2002 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
2003 non-POSIX path separators. The idea is to extend those scripts to
2004 decide at run-time (of the script) which path separator to use.
2006 * arch/misc/Makefile.sub: New file.
2007 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
2008 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
2009 a proper definition of the variable `GROFF_RUNTIME'.
2011 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
2012 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
2013 (PROGDEPDIRS): New variable.
2015 (PROGDIRS): Add PROGDEPDIRS.
2017 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
2018 Don't substitute @SEP@ and @BINDIR@.
2019 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
2020 (PATH): Use GROFF_RUNTIME.
2022 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
2023 Don't substitute @SEP@ and @BINDIR@.
2024 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
2025 (PATH): Use GROFF_RUNTIME.
2027 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2029 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
2030 Cygwin which doesn't handle stderr correctly.
2032 2004-03-08 Werner LEMBERG <wl@gnu.org>
2034 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
2035 against empty argument. Problem reported by <cgd@broadcom.com>.
2037 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2039 * Makefile.in (SEP): Replaced with...
2040 (RT_SEP, SH_SEP): Separators for the target platform's native path
2041 separator and the build environment, respectively.
2042 (fontpath, tmacpath): Use RT_SEP.
2043 (MDEFINES): Updated.
2045 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2046 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2047 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
2048 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
2050 2004-03-05 Werner LEMBERG <wl@gnu.org>
2052 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
2053 reduce alignment problems with newer printers which use built-in
2054 TrueType fonts (instead of the older Intellifonts). The ideal
2055 solution is to provide a second set of groff metric files, but this
2056 is extremely time-consuming to produce, given that HP's metric
2057 files are very rudimentary.
2059 2004-03-01 Werner LEMBERG <wl@gnu.org>
2061 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
2062 s/operand/argument/ in error message.
2064 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2066 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
2069 2004-03-01 Antti Kantee <pooka@netbsd.org>
2071 * tmac/s.tmac (XE): Fix error message.
2073 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
2075 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
2078 * src/roff/groff/pipeline.c: Declare strcasecmp.
2079 (run_pipeline) [_WIN32]: Use function name variants which don't
2081 Fix stream handling.
2083 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
2085 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
2086 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
2087 for platforms which use the native Win32 runtime libraries.
2088 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
2090 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
2091 QUOTE_ARG_REALLOC_ERROR): Fix string.
2093 * src/preproc/html/pre-html.cpp: Remove declaration of
2095 Don't use __MINGW32__.
2096 s/DEBUG_FILE/DEBUG_FILE_DIR/.
2097 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
2098 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
2099 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
2100 calls to `set_redirection' and `WAIT'.
2101 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
2102 Fix calls to `set_redirection' and `save_and_redirect'.
2103 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
2104 to `set_redirection' and `save_and_redirect'.
2105 (usage): Fix message.
2106 (makeTempFiles, main): Use `DEBUG_FILE'.
2108 2004-02-21 Werner LEMBERG <wl@gnu.org>
2110 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
2112 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
2114 * src/libs/libgroff/quotearg.c: New file, providing proper argument
2115 quoting for MSVC's spawn* and exec* functions.
2116 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
2117 spawnvp with proper quoting for MSVC.
2119 * src/libs/libgroff/assert.cpp (program_name),
2120 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
2121 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
2123 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
2125 * src/include/error.h (program_name): Declare as `extern "C"'.
2126 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
2128 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
2130 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
2132 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
2134 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
2136 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
2138 (sbasename) [__MSDOS__ || ...]: New function.
2139 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
2141 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
2142 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
2144 Use STDOUT_FILENO instead of hardcoded file handle.
2145 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
2147 2004-02-19 Werner LEMBERG <wl@gnu.org>
2149 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
2150 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
2152 2004-02-18 Werner LEMBERG <wl@gnu.org>
2154 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
2155 new font and mapping files.
2157 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
2158 Keith Marshall <keith.d.marshall@ntlworld.com>
2160 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
2161 an input pipe. This is needed for the MSVC compiler to make troff's
2164 * src/roff/troff/div.cpp: Include nonposix.h.
2165 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
2167 2004-02-17 Werner LEMBERG <wl@gnu.org>
2169 * font/devlj4/generate/special.awk: New script.
2170 * font/devlj4/generate/Makefile (S): Use special.awk.
2171 * font/devlj4/*: Regenerated, including the following new files:
2172 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
2173 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
2174 * NEWS: Document new lj4 fonts and revised hpftodit.
2176 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
2178 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
2180 2004-01-25 Werner LEMBERG <wl@gnu.org>
2182 * src/libs/libgroff/progname.cpp: Replaced with...
2183 * src/libs/libgroff/progname.c: New file.
2184 * src/libs/libgroff/Makefile.sub: Updated accordingly.
2186 2004-01-17 Werner LEMBERG <wl@gnu.org>
2188 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
2190 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
2192 * font/devlj4/generate/wingdings.map,
2193 font/devlj4/generate/symbol.map: Include unnamed glyphs.
2194 Use groff glyph names where possible.
2195 * src/devices/grolj4/lj4_font.man: Minor updates.
2197 2004-01-13 Werner LEMBERG <wl@gnu.org>
2199 * tmac/www.tmac (DC): Handle TTY devices.
2201 * doc/webpage.ms: Document viewCVS from ffii.org.
2202 * NEWS, README: Updated.
2204 * src/roff/groff/groff.man: Mention lj4_font man page.
2206 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2208 (FONTS): Add SYMBOL and WINGDINGS.
2209 (SYMBOL, WINGDINGS): New targets.
2211 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
2213 * src/devices/grolj4/lj4_font.man: New man page.
2214 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2215 * src/devices/grolj4.man: Mention lj4_font man page.
2217 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2218 * src/utils/hpftodit/hpftodit.man: Document it.
2220 Remove details about fonts (which are now in lj4_font.man).
2222 * font/devlj4/generate/symbol.map,
2223 font/devlj4/generate/wingdings.map: New files.
2225 2004-01-12 Werner LEMBERG <wl@gnu.org>
2227 * README: Mention ffii's viewcvs access.
2229 2004-01-09 Werner LEMBERG <wl@gnu.org>
2231 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2233 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
2235 Revert most of the change from 2004-01-03 to better control used
2238 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2239 (text_symbol_sets, special_symbol_sets): New arrays.
2240 (symbol_set_table): New global variable.
2241 (read_symbol_sets): Use search order given in the text_symbol_sets
2242 and special_symbol_sets arrays. If command line flag -a is not
2243 given, search both arrays.
2244 (output_charset): Require x_height_tag only for command line flag -i.
2246 2004-01-06 Werner LEMBERG <wl@gnu.org>
2248 Implement string-valued registers \n[.m] and \n[.M] to return the
2249 name of the current drawing and background color, respectively.
2251 * src/roff/troff/symbol.h: Moved to...
2252 * src/include/symbol.h: Here.
2253 Small fixes to make it work outside of the `troff' directory.
2254 * src/roff/troff/symbol.cpp: Moved to...
2255 * src/libs/libgroff/symbol.cpp: Here.
2256 Small fixes to make it work outside of the `troff' directory.
2258 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2259 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2262 * src/include/color.h: Include symbol.h.
2263 (color): Add new field `nm'.
2264 * src/libs/libgroff/color.cpp (color::color): Updated.
2266 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2267 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2268 src/roff/troff/reg.cpp: Don't include symbol.h.
2270 * src/roff/troff/env.cpp: Don't include symbol.h.
2271 (environment::get_glyph_color_string,
2272 environment_get_fill_color_string): New member functions.
2273 (init_env_requests): Handle `.m' and `.M' registers.
2274 * src/roff/troff/input.cpp: Don't include symbol.h.
2275 (default_symbol): Moved to symbol.cpp/symbol.h.
2276 (do_glyph_color, do_fill_color, define_color): Pass symbol name
2277 to color constructor.
2278 * src/roff/troff/env.h: Updated.
2280 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2281 Document new registers.
2283 2004-01-05 Werner LEMBERG <wl@gnu.org>
2285 * src/roff/troff/node.cpp (space_node::get_breakpoints,
2286 space_node::nbreaks): Protect against zero `next' field.
2288 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
2290 In hpftodit, use the symbol sets offered in the TFM.
2292 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2293 (symbol_set, text_symbol_sets, special_symbol_sets,
2294 symbol_set_table): Removed.
2295 (get_printcode): Removed.
2296 (read_symbol_sets): Initialize `symbol_set' field with
2298 Simplify code to just use the `kind' value.
2299 (output_charset): Improve output formatting.
2300 (dump_symbols): Simplified.
2302 2004-01-02 Werner LEMBERG <wl@gnu.org>
2304 * font/devlj4/generate/text.map: Add more MSL numbers.
2306 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
2308 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2309 (text_symbol_sets): Add more symbol sets.
2310 (debug_flag): New static variable (moved from `main').
2311 (get_printcode, show_symset): New functions.
2312 (main): Remove `debug_flag'.
2313 (output_charset): Use `show_symset'.
2314 (dump_symbols): Use `show_symset'.
2315 Print symsets for all glyphs.
2316 (read_map): Actually call `unicode_to_ucode_make' but this time
2319 2004-01-01 Werner LEMBERG <wl@gnu.org>
2321 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2322 Fix placement of comments.
2324 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
2326 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2327 option `-d' is given.
2328 (output_charset): Improve warning messages to give more information.
2329 (dump_symbols): Make information more precise.
2331 (read_map): Don't call unicode_to_ucode_name; the glyph names must
2332 appear as-is and shouldn't be decomposed.
2334 2003-12-31 Werner LEMBERG <wl@gnu.org>
2336 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2337 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2338 (FONTS): Add TrueType font families Arial and Times New Roman.
2339 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2340 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2343 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
2345 * test-groff.in (SEP): Quote value.
2346 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2347 `tem' to `char*' to avoid deallocation of a pointer to a constant
2348 object which some compilers don't like.
2350 2003-12-31 Werner LEMBERG <wl@gnu.org>
2352 * font/devlj4/generate (text.map, special.map): Rewritten to work
2353 with the new hpftodit version.
2355 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
2357 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2358 set and 8bit character code for all glyphs also.
2360 2003-12-30 Werner LEMBERG <wl@gnu.org>
2362 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2364 2003-12-29 Werner LEMBERG <wl@gnu.org>
2366 More fixes for MSVC compiler.
2368 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2371 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2372 STDERR_FILENO) [_MSC_VER]: Define conditionally.
2373 (getpid) [_MSC_VER]: Remove.
2374 Include direct.h and process.h conditionally.
2376 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2377 parentheses for a_delete.
2379 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2381 * test-groff: Replaced with...
2382 * test-groff.in: This new template to handle path separator
2385 * configure.ac: Check for direct.h and process.h.
2386 Generate test-groff script.
2387 * configure, src/include/config.hin: Regenerated.
2389 2003-12-28 Werner LEMBERG <wl@gnu.org>
2391 Add integral extension glyph.
2392 Add new option `-x' to afmtodit to suppress use of built-in AGL.
2394 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2396 * font/devps/generate/textmap: Provide entry for `integralex' to
2397 override (old) PUA value of the AGL.
2398 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2399 * font/devps/*: Regenerated.
2401 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2402 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2404 2003-12-27 Werner LEMBERG <wl@gnu.org>
2406 Add forgotten `coproduct' symbol (already available for DVI).
2408 * font/devhtml/R.proto, font/devps/generate/textmap,
2409 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2410 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2411 U+2210 (\[coproduct]).
2413 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
2415 hpftodit has been extended to handle TrueType metric files and
2416 more glyphs. See hpftodit.man for more details.
2418 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
2419 ctype.h, and unicode.h.
2420 s/msl/charcode/ everywhere since we now handle Unicode values also.
2421 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2422 Use it where appropriate.
2423 (MULTIPLIER): Replaced with...
2424 (multiplier): New global static variable.
2426 (tag_type): Add more TFM tags.
2427 (tag_name): New array.
2428 (ENUM_TYPE, FLOAT_TYPE): Removed.
2429 (BYTE_TYPE): New value assigned.
2430 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2431 (text_symbol_sets, special_symbol_sets): Extended to cover more
2433 (check_type): Add return value.
2434 (check_units): Add parameters to get ppi and upem values.
2435 Handle TrueType TFM data.
2436 (output_font_name): New function.
2437 (output_charset): Add parameter to handle TFM type.
2438 Handle TrueType TFMs also.
2439 (em_fract): New macro.
2440 (dump_tags): Be much more verbose and handle more tags.
2441 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2442 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2444 (read_map): Add parameter to handle TFM type.
2445 Handle both MSL and Unicode mappings.
2446 (main): Add two new command line options `-a' and `-q'.
2447 Updated to make use of new functions.
2450 * src/utils/hpftodit/hpuni.cpp: New file.
2452 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2455 2003-12-25 Werner LEMBERG <wl@gnu.org>
2457 * src/include/nonposix.h (read) [_MSC_VER]: Define.
2459 2003-12-24 Werner LEMBERG <wl@gnu.org>
2461 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2462 by Michail Vidiassov <master@iaas.msu.ru>.
2464 2003-12-20 Werner LEMBERG <wl@gnu.org>
2466 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2468 Add missing latin-2 glyphs.
2469 * font/devutf8/R.proto: Add missing latin-2 glyphs.
2471 * tmac/troffrc: Load `composite.tmac' earlier.
2473 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2474 u00{53,73}_0327, and u0049_0307.
2475 * tmac/X.tmac: Add u00{47,67}_0306.
2476 * tmac/tty-char.tmac: Use composite glyph names for readability.
2480 * src/include/unicode.h: Remove `extern' keywords.
2482 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
2484 * tmac/latin5.tmac: New file.
2486 2003-12-19 Werner LEMBERG <wl@gnu.org>
2488 Add some glyphs needed for Turkish.
2490 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2493 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
2494 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2495 u00{53,73}_0327, and u0049_0307.
2497 2003-12-18 Werner LEMBERG <wl@gnu.org>
2499 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2501 Remove trailing zeros.
2503 2003-12-17 Werner LEMBERG <wl@gnu.org>
2505 Make \? transparent to end-of-sentence recognition.
2507 * src/roff/troff/input.cc (non_interpreted_node): Add
2508 `ends_sentence' member function.
2510 2003-12-16 Werner LEMBERG <wl@gnu.org>
2512 * doc/groff.texinfo: Document `dt' request correctly.
2513 Other minor typographical improvements.
2515 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
2517 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2519 2003-12-10 Richard Stallman <rms@gnu.org>
2521 * LICENSE: Better wording.
2523 2003-12-09 Werner LEMBERG <wl@gnu.org>
2525 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2526 * configure, NEWS: Updated.
2528 2003-12-08 Werner LEMBERG <wl@gnu.org>
2530 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2532 2003-12-07 Bernd Warken <bwarken@mayn.de>
2536 2003-12-07 Werner LEMBERG <wl@gnu.org>
2538 * INSTALL: Improved.
2540 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2542 Use path separator character of target platform for compiled-in
2545 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2546 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2547 * configure: Regenerated.
2548 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2550 2003-12-05 Werner LEMBERG <wl@gnu.org>
2552 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2553 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2555 2003-12-04 Bernd Warken <bwarken@mayn.de>
2557 * LICENSE: New file.
2559 2003-12-03 Werner LEMBERG <wl@gnu.org>
2561 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2562 ligatures present in AFM files since groff currently only
2563 understands some standard ligatures and nothing else.
2565 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
2567 * src/roff/groff/groff.cpp (main): Don't run the spooler if
2570 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2573 Don't use Unix wait flags.
2575 2003-12-02 Werner LEMBERG <wl@gnu.org>
2577 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2578 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2579 src/roff/troff/uniuni.cpp: Moved to...
2580 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2581 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2582 src/libs/libgroff/uniuni.cpp: Here.
2584 * src/include/Makefile.sub.old (HDRS),
2585 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2586 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2588 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2590 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2594 2003-12-01 Werner LEMBERG <wl@gnu.org>
2596 * groff.texinfo: Document special behaviour of `.vs 0'.
2597 Improve documentation of `cflags' request.
2600 2003-11-29 Werner LEMBERG <wl@gnu.org>
2602 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2603 * font/devlj4/CORONET: Regenerated.
2605 2003-11-24 Werner LEMBERG <wl@gnu.org>
2607 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2608 if processing hyphenation patterns in traditional mode.
2609 Improve error messages.
2611 2003-11-20 Werner LEMBERG <wl@gnu.org>
2613 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2614 troff_output_file::put_char): Fix type of local variable `c'.
2616 2003-11-19 Werner LEMBERG <wl@gnu.org>
2618 * src/roff/groff/pipeline.c (P): Removed. Updated all function
2620 (i_to_a): Removed. libgroff already provides this function.
2621 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2623 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
2625 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2628 2003-11-17 Werner LEMBERG <wl@gnu.org>
2630 * COPYING: Use correct version.
2632 2003-11-11 Werner LEMBERG <wl@gnu.org>
2634 LynxOS 4.0.0 doesn't declare vfprintf.
2636 * configure.ac: Check for vfprintf.
2637 * configure: Regenerated.
2638 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2639 * src/include/config.hin: Regenerated.
2641 2003-11-10 Werner LEMBERG <wl@gnu.org>
2643 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2645 * configure.ac: Check for vsnprintf.
2646 * configure: Regenerated.
2647 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2649 * src/include/config.hin: Regenerated.
2651 2003-11-09 Werner LEMBERG <wl@gnu.org>
2653 * aclocal.m4: Updated syntax to autoconf 2.59.
2654 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2655 Don't check for gsos2.
2656 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
2657 working abs_top_srcdir and abs_top_builddir.
2659 * configure.ac: Updated syntax to autoconf 2.59.
2660 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2661 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2662 * configure: Regenerated.
2664 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2665 s/@groff_top_builddir@/@abs_top_builddir@/.
2667 * src/roff/groff/pipeline.c (xstrsignal):
2668 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2670 2003-11-07 Werner LEMBERG <wl@gnu.org>
2672 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2673 make start angle smaller than end angle to circumvent a bug in tpic
2674 handling of some versions of dvipdfm (and dvipdfmx).
2676 2003-10-30 Werner LEMBERG <wl@gnu.org>
2678 * src/devices/grops/grops.man: Improve section on creating EPS.
2680 2003-10-29 Werner LEMBERG <wl@gnu.org>
2682 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2685 2003-10-28 Werner LEMBERG <wl@gnu.org>
2687 * doc/groff.texinfo: Fix documentation of `.if'.
2689 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
2691 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2692 the form `uniXXXX' also.
2694 2003-10-27 Werner LEMBERG <wl@gnu.org>
2696 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2697 contrib/pic2graph/pic2graph.sh: Implement secure management of
2699 Pass `-P-pletter' to groff to avoid data outside of the converted
2700 area -- some versions of `convert' (for example 5.3.8) don't check
2701 the bounding box of the image but always use a fixed image size
2702 (letter paper format).
2703 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2704 contrib/pic2graph/pic2graph.man: Updated.
2706 * src/roff/groff/groff.man: Document $TMP and $TEMP.
2708 2003-10-26 Werner LEMBERG <wl@gnu.org>
2710 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2711 troff_output::simple_ellipse, troff_output::simple_arc,
2712 troff_output::simple_line, troff_output::simple_spline,
2713 troff_output::simple_polygon): Insert a space before arguments.
2714 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2715 latter doesn't produce a node, so the following `.sp -1' would do
2717 Don't emit `.sp -1' after \M. This also doesn't produce a token
2718 (and we don't have to care about compatibility mode).
2719 (troff_output::set_color, troff_output::reset_color): Don't emit
2720 `.sp -1' after \M and \m.
2722 * src/roff/troff/input.cpp (old_have_input): New global variable.
2723 (input_stack::get): Handle `old_have_input'.
2724 (process_input_stack) <token::TOKEN_NEWLINE>: Call
2725 `trapping_blank_line' depending on `old_have_input', not
2728 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
2730 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2731 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2732 default directory names for temporary files.
2733 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2735 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2736 [__MSDOS__] (run_pipeline): Honour environment variables.
2737 Don't use `tmpnam' but `tempnam' to work around messy
2740 * README.MinGW: New file.
2742 2003-10-16 Werner LEMBERG <wl@gnu.org>
2744 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2745 `(*t)->next' without testing validity of `*t'.
2746 (usage): Make it more readable.
2748 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2750 Make html device run under both MS-DOS and Win32.
2752 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2753 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2754 spawn or fork+exec has to be used, and whether parent must sleep
2755 until the child process terminates. Used in
2756 `char_buffer::run_output_filter'.
2757 (copyofstdoutfd): Removed.
2758 (char_buffer): Replace `write_file_html' and `write_file_troff'
2759 member functions with `emit_troff_output' and `run_output_filter'.
2760 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2762 (replaceFd): Replaced with...
2763 (set_redirection): New auxiliary function.
2764 (waitForChild): Replaced with...
2765 (save_and_redirect): New auxiliary function for.
2767 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2770 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2772 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2773 (GROFF_LIBC): New function.
2774 * configure.ac: Call GROFF_LIBC.
2776 * configure: Regenerated.
2778 * src/include/lib.h: Handle __MINGW32__.
2779 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2780 Add macro for `pipe'.
2783 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2786 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2789 2003-10-13 Werner LEMBERG <wl@gnu.org>
2791 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2794 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2797 2003-10-12 Werner LEMBERG <wl@gnu.org>
2799 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2800 src/roff/troff/input.cc (usage): Updated.
2802 * NEWS, doc/groff.texinfo: Updated.
2804 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
2806 * src/libs/libgroff/searchpath.cpp
2807 (search_path::open_file_cautious): New function which also handles
2808 `-' as stdin and stdout depending on the access mode.
2809 * src/include/searchpath.h (search_path): Updated.
2811 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2812 * src/devices/grops/ps.h: Include `searchpath.h'.
2813 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2814 Open resource file with `include_search_path.open_file_cautious'.
2815 * src/devices/grops/grops.man: Document new `-I' switch.
2817 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2818 (main), src/devices/grolj4/lj4.cpp (main),
2819 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2821 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2823 (include_search_path): New global variable.
2824 (include_path_append): Removed.
2825 (main): Use `include_search_path.command_line_dir' to handle `-I'.
2826 (do_file): Simplify, using new
2827 `include_search_path.open_file_cautious'.
2829 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2831 (main): Pass arguments to `-I' to both troff and devices.
2832 Improve handling of `-V'.
2833 * src/roff/groff/groff.man: Document changes to -I and -V.
2835 * src/roff/troff/input.cpp (include_search_path): New global
2837 (next_file, source, ps_bbox_request, transparent_file,
2838 process_input_file): Use new
2839 `include_search_path.open_file_cautious'.
2840 (main) Handle `-I' switch.
2841 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2842 Use new `include_search_path.open_file_cautious'.
2843 * src/roff/troff/node.h: New extern symbol `include_search_path'.
2844 * src/roff/troff/troff.man: Document new `-I' switch.
2846 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
2848 Support multiple calls of .Lb in LIBRARY section.
2850 * tmac/doc-common (doc-in-library-section): New register.
2851 (doc-section-library): New string.
2852 (Sh): Set `doc-in-library-section'.
2854 * tmac/doc-syms (Lb): Insert breaks before and after arguments
2855 if in LIBRARY section.
2856 * tmac/doc.tmac (doc-save-global-vars): Updated.
2857 * NEWS, tmac/groff_mdoc.man: Updated.
2859 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
2861 * tmac/doc-common (doc-default-operating-system): New variable.
2864 2003-09-08 Werner LEMBERG <wl@gnu.org>
2866 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2868 2003-08-31 Werner LEMBERG <wl@gnu.org>
2870 * contrib/mom/Makefile.sub: Fix last change to make it really work.
2871 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2872 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2873 $(DEVFILES) are not empty.
2874 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2876 2003-08-26 Chuck Silvers <chuq@chuq.com>
2878 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2879 with parallel runs of `make'.
2881 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
2883 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2884 insert SORT_SEP. With certain combinations of sort specifications,
2885 refer sorted entries in the wrong order. In particular, entries
2886 with a missing field should be be sorted before all entries that
2887 have that field, before refer looks to the next field.
2889 2003-08-23 Werner LEMBERG <wl@gnu.org>
2891 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2892 g++ linker is used. Reported by Mark J. Reed
2893 <mark.reed@turner.com>.
2895 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2897 Add key character `x' to tbl which makes tbl call a user-defined
2898 macro on a table cell.
2900 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2901 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2902 `set_modifier' after printing the compatibility request.
2903 (set_modifier): Print call to `m->macro' if not empty.
2904 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2906 (process_format): Implement cases `x' and `X'.
2907 * src/preproc/tbl/tbl.man, NEWS: Updated.
2909 2003-08-15 Werner LEMBERG <wl@gnu.org>
2911 * doc/groff.texinfo: Minor fixes.
2913 2003-08-09 Werner LEMBERG <wl@gnu.org>
2915 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2917 2003-08-07 Werner LEMBERG <wl@gnu.org>
2919 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2920 argument list to nothing if there is no file to match. Use `ls' as
2921 a protection, similar to autoconf.
2923 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2924 empty argument lists.
2926 * doc/groff.texinfo: Improve documentation how vertical spacing
2927 and line breaks interact.
2930 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2932 2003-08-03 Werner LEMBERG <wl@gnu.org>
2934 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2935 EPS (using eps2eps or similar programs to compute the bounding box).
2937 2003-07-24 Werner LEMBERG <wl@gnu.org>
2939 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2940 * doc/texinfo.tex: Updated from texinfo 4.6.
2941 * README.CVS: From now on we need texinfo 4.6.
2943 2003-07-23 Werner LEMBERG <wl@gnu.org>
2945 Add requests `dei1' and `ami1' for completeness.
2947 * src/roff/troff/input.cc (calling_mode): Remove
2948 CALLING_DISABLE_COMP.
2949 (comp_mode): New enumeration.
2950 (do_define_string, define_string, define_nocomp_string,
2951 append_string, append_nocomp_string): Updated.
2952 (do_define_macro): Add third parameter.
2953 (define_macro, define_nocomp_macro, define_indirect_macro,
2954 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2955 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2958 (init_input_requests): Add `dei1' and `ami1'.
2960 * tmac/trace.tmac: Handle de1 and am1.
2961 (de): Improve tracing message.
2962 (am): Add missing `do'.
2965 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2966 Document new requests.
2968 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2970 Add option -G to .MPIMG to insert a gap between text and the image.
2972 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2973 www-finish-left-ll): Updated.
2974 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2975 (MPIMG): Make option -L and -R optional.
2976 Implement option -G.
2978 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
2980 * src/devices/grohtml/post-html.cpp
2981 (html_printer::do_file_components): Don't use `stdout' as lvalue
2982 since it can be a macro.
2984 2003-07-22 Werner LEMBERG <wl@gnu.org>
2986 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2987 the corresponding test in aclocal.m4.
2989 2003-07-21 Werner LEMBERG <wl@gnu.org>
2991 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2992 names but RGB values directly. Otherwise pnmtopng depends on
2993 an external file `rgb.txt' which maps colour names to values.
2995 2003-07-20 Werner LEMBERG <wl@gnu.org>
2997 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2998 * configure, src/include/config.hin: Regenerated.
3000 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
3002 2003-07-19 Werner LEMBERG <wl@gnu.org>
3004 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
3006 2003-07-18 Werner LEMBERG <wl@gnu.org>
3008 * *.man: Switch to non-compatibility mode temporarily if GNU
3009 syntax extensions are used in the particular man page.
3011 * PROBLEMS: Add solutions for SGR problems.
3013 2003-07-17 Werner LEMBERG <wl@gnu.org>
3015 Don't ignore grotty's command line options if \X'tty: sgr ...' is
3016 used to change the drawing scheme.
3018 * src/devives/grotty/tty.cpp (bold_flag_option,
3019 underline_flag_option, italic_flag_option, reverse_flag_option,
3020 bold_underline_mode_option): New global variables.
3021 (update_options): New function.
3022 (tty_printer::special): Call update_options.
3023 (main): Don't set xxx_flag but xxx_flag_option, then call
3026 2003-07-14 Werner LEMBERG <wl@gnu.org>
3028 Make grotty emit proper Unicode box drawing characters for -Tutf8.
3030 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
3032 (hline_char, vline_char): New global variables.
3033 (tty_printer::tty_printer): Initialize them.
3034 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
3035 horizontal and vertical lines.
3036 (crossings): New global array.
3037 (tty_printer::end_page): Use it to determine the proper crossing
3038 character for -Tutf8.
3040 2003-07-12 Werner LEMBERG <wl@gnu.org>
3042 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
3043 (HTMLDOCFILES): Revert to `pic.html'.
3044 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
3046 2003-07-11 Werner LEMBERG <wl@gnu.org>
3048 * doc/pic.ms: Improve documentation of absolute coordinates.
3049 Document absolute positioning of pictures.
3051 * NEWS: Add new pic capability.
3053 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
3055 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
3058 2003-07-07 Werner LEMBERG <wl@gnu.org>
3060 Implement support for dashed and dotted ellipses in pic. Based on
3061 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
3063 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
3064 common_output::dashed_ellipse, common_output::dotted_ellipse): New
3065 functions. Ellipse arcs are approximated with circle arcs.
3066 * src/preproc/pic/common.h (common_output): Updated.
3067 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
3069 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
3071 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
3073 2003-07-06 Werner LEMBERG <wl@gnu.org>
3075 Make grotty work on platforms which have unsigned char as the
3076 default for char. Based on a patch by Thomas Klausner
3079 * src/devices/grotty/tty.cpp (schar): New typedef.
3080 Updated calls to declare_ptable and implement_ptable.
3081 (glyph): Use schar for back_color_idx and fore_color_idx.
3082 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
3083 (tty_printer::tty_color, tty_printer::tty_printer,
3084 tty_printer::color_to_idx, tty_printer::put_color): Updated.
3086 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
3088 * src/roff/nroff/nroff.sh: Add option -d for completeness.
3089 * src/roff/nroff/nroff.man: Updated.
3091 2003-07-05 Werner LEMBERG <wl@gnu.org>
3093 * NEWS, tmac/groff_www.man: Updated.
3094 * doc/Makefile.sub: Updated.
3096 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
3098 Implement support for multiple HTML output files.
3100 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
3101 -j command line option.
3103 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
3105 (file): New fields `new_output_file', `require_links',
3107 (file::file): Updated.
3108 (files::set_file_name, files::set_links_required,
3109 files::are_links_required, files::is_new_output_file,
3110 files::file_name, files::next_file_name): New functions.
3111 (header_desc): New fields `no_of_level_one_headings',
3113 (header_desc::header_desc): Updated.
3114 (header_desc::write_headings): Handle multiple files.
3115 (html_printer::write_header): Save file name in which header occurs.
3116 (html_printer::determine_header_level): Possibly split files on
3118 (html_printer::do_links, html_printer::troff_tag): Updated.
3119 (html_printer::insert_split_file, html_printer::do_job_name,
3120 html_printer::emit_link, html_printer::write_navigation,
3121 html_printer::do_file_components): New functions.
3122 (html_printer::~html_printer): Handle multiple files.
3123 (main): Handle command line option `-j'.
3125 * src/devices/grohtml/grohtml.man: Updated.
3127 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
3130 * tmac/www.tmac (JOBNAME): New macro.
3131 * tmac/s.tmac (SH-NO-TAG): New macro.
3132 (@SH): Call SH-NO-TAG.
3135 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
3137 * tmac/groff_mdoc.man: Improve documentation of punctuation
3140 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
3142 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
3144 2003-07-03 Werner LEMBERG <wl@gnu.org>
3146 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
3148 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
3150 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
3151 after `/*' and `*/'.
3153 (Fn, Fo): Reduce indentation in synopsis.
3155 * tmac/doc-common (doc-check-depth): New macro.
3156 (doc-end-macro, Sh, Ss): Use it.
3157 (Cd): Fix behaviour in synopsis.
3158 (In): Make it parsed and callable.
3159 If not in the synopsis, represent the C header file enclosed in
3161 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
3162 Use minus, not hyphen.
3164 * tmc/groff_mdoc.man: Updated.
3166 2003-07-01 Werner LEMBERG <wl@gnu.org>
3168 Integrated grap2graph, contributed by Eric S. Raymond.
3170 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
3172 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
3173 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
3175 2003-07-01 Colin Watson <cjwatson@debian.org>
3177 * src/xditview/*.c: Add prototypes, fix return types, add includes.
3178 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
3180 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
3182 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
3184 2003-06-31 Werner LEMBERG <wl@gnu.org>
3186 * doc/Makefile.sub (CLEANADD): Remove all files created by
3187 running `make groff.{pdf,dvi}'.
3189 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
3192 2003-06-30 Werner LEMBERG <wl@gnu.org>
3194 * Makefile.in (SHELL): Define as @SHELL@.
3195 (mkinstalldirs): Use $(SHELL).
3196 (MDEFINES): Add $(SHELL).
3197 * Makefile.comm (SHELL): Removed.
3199 2003-06-29 Werner LEMBERG <wl@gnu.org>
3201 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3202 The X11 documentation files use them.
3203 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3205 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
3207 * tmac/e.tmac (@C): Handle .ad also.
3209 2003-06-12 Werner LEMBERG <wl@gnu.org>
3211 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3213 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3214 Assign `n' even here. It is possible to construct a node
3215 immediately following an escape character:
3223 2003-06-10 Werner LEMBERG <wl@gnu.org>
3225 * README.WIN32: Removed.
3226 * MANIFEST: Updated.
3228 2003-06-07 Werner LEMBERG <wl@gnu.org>
3230 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3232 2003-06-05 Werner LEMBERG <wl@gnu.org>
3234 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3235 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3237 2003-06-03 Werner LEMBERG <wl@gnu.org>
3239 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3240 is done by the calling function.
3242 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
3244 * tmac/X.tmac: Fix definition of `em'.
3246 2003-05-22 Werner LEMBERG <wl@gnu.org>
3248 * src/roff/troff/input.cc (return_macro_request): Fix detection of
3251 2003-05-18 Werner LEMBERG <wl@gnu.org>
3253 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3254 to make items work which consist only of a tag.
3256 2003-05-17 Werner LEMBERG <wl@gnu.org>
3258 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3259 aren't stretched in a tag (this can fail with unformatted boxes).
3260 Instead, insert a break and go back one line.
3262 2003-05-16 Werner LEMBERG <wl@gnu.org>
3264 * src/roff/troff/input.cc (return_macro_request): If called with
3265 argument pop macro twice. We need this to trace `return'.
3267 * tmac/trace.tmac: Handle `return'.
3270 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3273 2003-05-15 Larry Kollar <kollar@alltel.net>
3275 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3276 registers `FPS', `FVS', and `FPD'.
3278 2003-05-15 Werner LEMBERG <wl@gnu.org>
3280 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3283 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
3285 * tmac/groff_mdoc.man: Slight improvements.
3287 2003-05-03 Werner LEMBERG <wl@gnu.org>
3289 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3290 `doc-header-space' after header line if register `cR' is set.
3292 2003-05-02 Werner LEMBERG <wl@gnu.org>
3296 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
3298 * tmac/doc-common (Nd): Use \[em].
3300 2003-05-01 Werner LEMBERG <wl@gnu.org>
3302 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3303 doc-footer-space): Initialize to 0.5i.
3304 (doc-setup-page-layout): Don't set doc-header-space and
3307 2003-04-30 Werner LEMBERG <wl@gnu.org>
3309 * REVISION: Set to 1.
3311 * doc/pic.ms: Document possible problems with `figname'.
3313 2003-04-29 Werner LEMBERG <wl@gnu.org>
3315 Version 1.19 released
3316 =====================
3318 * VERSION: Set to 1.19.
3319 * REVISION: Set to 0.
3320 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3322 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3323 Define charset as `US-ASCII' in html output.
3325 * tmac/www.tmac (ULE): Add missing scaling indicator.
3327 * win32-diffs: Removed.
3329 2003-04-28 Werner LEMBERG <wl@gnu.org>
3331 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3333 Document how to insert discardable whitespace with `.ss'.
3335 2003-04-27 Werner LEMBERG <wl@gnu.org>
3337 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3338 work with plain TeX also.
3340 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3342 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
3344 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3347 2003-04-24 Werner LEMBERG <wl@gnu.org>
3349 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3350 vbox with positive height and zero depth if in TeX mode.
3352 * NEWS: Document glyph name changes for grodvi and grolj4.
3354 2003-04-23 Werner LEMBERG <wl@gnu.org>
3356 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3357 * doc/pic.ms: Fixed.
3359 2003-04-21 Werner LEMBERG <wl@gnu.org>
3361 HP-UX 10.20 has `snprintf' but it isn't declared.
3363 * configure.ac: Add declaration test for snprintf.
3364 * configure: Regenerated.
3365 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3366 * src/include/config.hin: Regenerated.
3368 2003-04-19 Werner LEMBERG <wl@gnu.org>
3370 Add keyword `figname' to pic, specifying the name of the picture
3371 box in TeX mode. Based on a patch from William J Poser
3372 <wjposer@unagi.cis.upenn.edu>.
3374 * src/preproc/pic/pic.y: New token `FIGNAME'.
3375 (macro_name): New rule of type <str>.
3376 (placeless_element): Handle `FIGNAME'.
3377 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3378 * src/preproc/pic/main.cpp (graphname): New global variable.
3379 (do_picture): Initialize `graphname'.
3380 * src/preproc/pic/pic.h: Updated.
3381 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3384 (tex_output::text): Beautify output.
3385 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3386 `shaded' and `outlined' unconditionally.
3387 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3390 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3391 greater is necessary.
3393 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
3395 Add option -r to soelim to avoid emission of `.lf' lines.
3396 Add option -t to produces TeX comment lines instead of `.lf' lines.
3398 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3401 (main): Handle `-r' and `-t'.
3402 (set_location): Handle `raw_flag' and `tex_flag'.
3403 * src/preproc/soelim/soelim.man, NEWS: Updated.
3405 2003-04-17 Werner LEMBERG <wl@gnu.org>
3407 * tmac/hyphenex.sh: Replaced with...
3408 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3411 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3412 if --quiet is used for the configure script.
3413 * configure: Regenerated.
3415 2003-04-16 Werner LEMBERG <wl@gnu.org>
3417 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3418 Add `const' to second argument.
3419 (html_printer::add_table_end): Add `const' to argument.
3420 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3421 `const' to arguments.
3422 * src/devices/grohtml/html-text.h: Updated.
3424 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3425 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3428 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3429 cast for integer constant.
3431 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3432 (writeNbytes): Add `const' to first argument.
3433 (writeString): Add `const' to argument.
3434 (char_buffer::can_see): Add `const' to third argument.
3435 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3436 `const' to argument.
3437 * src/preproc/html/pushback.h: Updated.
3439 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3440 (include_path_append): Add `const' to argument.
3443 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3445 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3446 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3448 (unicode_decompose_init::unicode_decompose_init): Updated.
3449 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3451 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3452 * src/roff/troff/input.cc (process_startup_file): Add `const' to
3455 * tmac/hyphenex.sh: Make script more portable by using a here
3458 2003-04-15 Werner LEMBERG <wl@gnu.org>
3460 Renamed all `*.cc' files to `*.cpp'.
3461 Updated all configuration files, makefiles, and documentation.
3463 2003-04-14 Werner LEMBERG <wl@gnu.org>
3465 * tmac/hyphenex.sh: Slight improvements.
3467 2003-04-13 Werner LEMBERG <wl@gnu.org>
3469 * font/devascii/R.proto, font/devcp1037/R.proto,
3470 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3471 character slots with unnamed glyphs.
3473 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3474 (an-first): New global variable.
3475 (an-header): Emit vertical space between multiple man pages.
3477 2003-04-11 Werner LEMBERG <wl@gnu.org>
3479 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3482 2003-04-10 Werner LEMBERG <wl@gnu.org>
3484 * PROBLEMS: Revised.
3486 2003-04-10 Bernd Warken <bwarken@mayn.de>
3488 * doc/webpage.ms: Improved.
3490 2003-04-09 Werner LEMBERG <wl@gnu.org>
3492 Add register \n[.height] which returns the value of \H.
3493 Add register \n[.slant] which returns the value of \S.
3495 * src/roff/troff/env.cc (init_env_requests): Implement.
3496 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3499 2003-04-08 Werner LEMBERG <wl@gnu.org>
3501 * tmac/html.tmac: Move some of the data into html-end.tmac.
3502 Remove most of the character translations for eqn since html fonts
3503 now cover those characters.
3505 * tmac/html-end.tmac: New file.
3506 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3507 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3508 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3510 2003-04-07 Werner LEMBERG <wl@gnu.org>
3512 * man/groff_out.man: Document negative values of `N' if -Thtml is
3515 2003-04-06 Werner LEMBERG <wl@gnu.org>
3517 * Makefile.comm (depend.temp): Check location of YTABC.
3519 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3521 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3523 (groff_bin_path): Rename to GROFF_BIN_PATH.
3524 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3525 * doc/Makefile.in (TROFFBIN): New variable for troff
3527 (GROFFBIN): New variable for groff binary path.
3528 (groff_bin_path): Rename to GROFF_BIN_PATH.
3529 (TROFF): Use TROFFBIN.
3530 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3531 * doc/Makefile.sub (GROFFBIN): New variable for groff
3533 (groff_bin_path): Rename to GROFF_BIN_PATH.
3534 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3536 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3537 with INSTALL_SCRIPT.
3538 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3539 * Makefile.dev (all): Depend on DEVSCRIPTS.
3540 (install_dev): Likewise.
3541 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3543 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3544 (DEVGENSCRIPTS): New variable to hold generated scripts.
3546 2003-04-05 Werner LEMBERG <wl@gnu.org>
3548 * src/libs/libdriver/input.cc (IntArray::operator[],
3549 IntArray::get_data): Remove meaningless `const' in return value.
3551 * README.CVS: New file.
3553 2003-04-04 Werner LEMBERG <wl@gnu.org>
3555 Check for stdint.h in C++, not in C.
3557 * aclocal.m4 (GROFF_STDINT_H): New function,
3558 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3560 * configure, src/include/config.hin: Regenerated.
3561 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3564 Fix handling of in grohtml. To do this, troff emits `N'
3565 with a negative value, representing the width of the unbreakable
3566 space (only for -Thtml). grohtml then converts this back to
3567 and uses the value of N as its width.
3569 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3570 unbreakable_space_node::tprint): Emit `N-<width>'.
3571 * src/include/printer.h (printer::set_numbered_char): Make it
3573 Make members `font_table' and `nfonts' protected instead of private.
3574 * src/devices/grohtml/post-html.cc
3575 (html_printer::set_numbered_char): New member function.
3578 * src/libs/libgroff/maxfilename.cc:
3579 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3581 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3584 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
3586 * man/roff.man: Small fixes.
3588 2003-04-03 Werner LEMBERG <wl@gnu.org>
3590 Make groff independent from locale's numeric settings.
3592 * configure.ac: Check for `setlocale'.
3593 * configure, src/include/config.hin: Regenerated.
3595 * src/include/lib.h: Handle HAVE_SETLOCALE.
3597 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3598 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3599 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3602 * doc/groff.texinfo: Change dir category to `Typesetting'.
3603 (Man font macros): Mention that there is no space between arguments
3606 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3607 (*printer::change_color, *printer::change_fill_color): Add missing
3610 2003-04-02 Werner LEMBERG <wl@gnu.org>
3612 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3613 html_table::is_gap): Compute table widths after converting border
3614 positions to avoid rounding errors.
3616 2003-04-01 Werner LEMBERG <wl@gnu.org>
3618 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3619 `space_emitted' properly.
3621 2003-03-31 Werner LEMBERG <wl@gnu.org>
3623 * src/devices/grohtml/html-table.cc: Fix column width calculation.
3624 (html_table::set_linelength): Don't add 1.
3625 (html_table::add_indent): Don't subtract 1.
3627 * tmac/html.tmac: Set default page offset to zero.
3629 2003-03-30 Werner LEMBERG <wl@gnu.org>
3631 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
3633 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3634 unbreakable_space_node::tprint): New functions.
3635 (troff_output_file): Make space_char_hmotion_mode::tprint and
3636 unbreakable_space_node::tprint to friends.
3637 * src/roff/troff/node.h: Updated.
3639 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
3640 in the HTML standard).
3642 2003-03-29 Werner LEMBERG <wl@gnu.org>
3644 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3645 Otherwise, the following code
3654 produces `x a' instead of `xa'. This is a temporary fix, disabling
3655 font changes in diversions for -Thtml.
3657 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3659 (an-do-tag-html): Merge with ...
3660 (an-do-tag): This macro.
3661 Change code slightly to circumvent grohtml bug.
3662 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3664 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3665 html_table::is_gap): Round `width' properly.
3667 * tmac/html.tmac: Provide some default layout parameters for
3670 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3673 2003-03-28 Werner LEMBERG <wl@gnu.org>
3675 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3677 2003-03-27 Werner LEMBERG <wl@gnu.org>
3679 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3682 2003-03-20 Werner LEMBERG <wl@gnu.org>
3684 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3686 * doc/groff.texinfo: Updated.
3688 2003-03-19 Werner LEMBERG <wl@gnu.org>
3690 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3691 TOKEN_END_TRAP>: Reset `have_input'.
3693 2003-03-18 Werner LEMBERG <wl@gnu.org>
3695 * src/roff/groff/groff.man: Mention groff_trace man page.
3697 2003-03-16 Werner LEMBERG <wl@gnu.org>
3699 * Makefile.in (LIBEXT): New variable to indicate the file extension
3700 of library files. Computed heuristically from $(OBJEXT).
3701 (MDEFINES): Add $(LIBEXT).
3702 * Makefile.lib, Makefile.comm: Use it.
3704 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
3705 overlong lines into smaller chunks.
3706 (get_binary): New function.
3708 * src/utils/pfbtops/pfbtops.man: Updated.
3710 2003-03-15 Colin Watson <cjwatson@debian.org>
3712 * src/roff/groff/groff.man: Minor syntax fix.
3714 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
3716 * src/devices/grops/ps.cc (ps_printer::media_set,
3717 ps_printer::~ps_printer): Handle zero paper width and length.
3719 2003-03-13 Werner LEMBERG <wl@gnu.org>
3721 Add options -p and -l to grodvi.
3723 * src/devices/grodvi/dvi.cc: Include paper.h.
3724 (landscape_flag, user_paper_length, user_paper_width): New global
3726 (dvi_printer::begin_page): Emit `papersize' special.
3727 Set color after initialization of `cur_h' and `cur_v'.
3728 (main): Add options `-l' and `-p'.
3729 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3730 * src/devices/grodvi/grodvi.man, NEWS: Updated.
3732 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3734 2003-03-12 Werner LEMBERG <wl@gnu.org>
3736 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3737 * man/groff_tmac.man: This man page.
3738 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3741 * tmac/X.tmac: Don't load pspic.tmac.
3743 2003-03-11 Werner LEMBERG <wl@gnu.org>
3745 Make variable `pr' local to libdriver/input.cc. Based on a patch
3746 by Bernd Warken <bwarken@mayn.de>.
3748 * src/include/driver.h (pr): Removed.
3750 * src/libs/libdriver/input.cc (pr): New global variable.
3751 (do_file): Deallocate `pr'.
3752 * src/libs/libdriver/printer.cc (pr): Removed.
3754 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3755 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3756 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3757 (main): Don't delete `pr'.
3759 2003-03-10 Werner LEMBERG <wl@gnu.org>
3761 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3762 * tmac/papersize.tmac: New file.
3763 * tmac/troffrc: Include `papersize.tmac'.
3764 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3765 * tmac/an-old.tmac: Set LT to LL by default.
3767 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3768 doc/groff.texinfo: Updated.
3770 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3771 bug which caused all odd iso papers to have wrong dimensions.
3773 * src/devices/grops/ps.cc (user_paper_width): New global variable.
3774 (main) <'p'>: Set `user_paper_width' also.
3775 (ps_printer::media_width, ps_printer::media_height): Use values
3776 given with option `-p'.
3778 2003-03-09 Werner LEMBERG <wl@gnu.org>
3780 * src/include/nonposix.h: Provide default for SET_BINARY.
3782 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3783 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3786 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3787 (main): Treat \r\n as \n.
3789 2003-03-08 Werner LEMBERG <wl@gnu.org>
3791 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3792 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3794 2003-03-07 Werner LEMBERG <wl@gnu.org>
3796 Added support to access more than 256 glyphs in Type 1 fonts.
3798 * src/devices/grops/ps.cc (subencoding): New structure.
3799 (style): Add `sub' field.
3801 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3802 Add `set_subencoding', `get_subfont' and `encode_subfont' member
3805 (ps_printer::set_char): Use `set_subencoding'.
3806 (make_subencoding_name): New function.
3807 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3808 (ps_printer::~ps_printer): Emit subencoding definitions.
3810 * src/devices/grops/psrm.cc (valid_input_table): New array to
3811 properly support EBCDIC.
3812 (white_space): Add `\f'.
3813 (ps_get_line): Change first argument to be of type `string &'.
3814 Updated all callers.
3815 This allows to get lines of arbitrary length.
3816 Use `valid_input_table'.
3817 Remove warning about non-conforming PS line length. This seems
3818 not to be of great importance -- for example, dvips don't emit
3820 (PS_LINE_MAX): Removed.
3821 (matches_comment): Change first argument to be of type `string &'.
3823 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3825 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3826 %AGL_to_unicode, %default_ligatures): New hash tables.
3827 Read all map entries.
3828 Add unencoded characters.
3829 Check for default ligatures if there are no `L' entries.
3830 Print all kern entries.
3831 Print all characters in charset.
3832 * src/utils/afmtodit/afmtodit.man: Updated.
3834 * font/devps/*: Regerated all fonts.
3836 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3837 of characters, just use `.trin'. Otherwise the mapping depends
3838 on the font encoding.
3839 * tmac/ps.tmac: Add `fi' and `fl'.
3840 Improve `Fi' and `Fl'.
3841 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3842 * tmac/Xps.tmac: Fix `em'.
3846 2003-03-04 Werner LEMBERG <wl@gnu.org>
3848 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3851 2003-03-03 Werner LEMBERG <wl@gnu.org>
3853 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3855 * font/devps/generate/textmap: Remove entry `similarequal'.
3856 * font/devps/symbolmap: Updated.
3858 2003-03-02 Werner LEMBERG <wl@gnu.org>
3860 * src/libs/libgroff/font.cc (font::load): Fix error message for
3863 * src/devices/grops/grops.man: Improve documentation of the -b
3866 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3867 `ascii' and `cp1047'.
3869 2003-03-01 Werner LEMBERG <wl@gnu.org>
3871 Document composite glyphs and the `composite' request.
3873 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3875 2003-02-28 Werner LEMBERG <wl@gnu.org>
3877 * font/devdvi/generate/ec.map: Add some more Unicode entities.
3878 * font/devdvi/*EC: Updated.
3880 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3881 * tmac/latin1 (latin1-tr): Undo any previous mapping.
3882 * tmac/troffrc: Load `composite.tmac'.
3883 * tmac/Makefile.sub (NORMALFILES): Updated.
3885 * doc/groff.texinfo (Input Encodings): New section.
3888 2003-02-27 Werner LEMBERG <wl@gnu.org>
3890 * doc/texinfo.tex: New version 2003-02-11.06.
3892 * tmac/doc-common (Dt): Don't emit warning for unknown section.
3893 * tmac/groff_mdoc.man: Fix description of `Dt'.
3895 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
3897 * font/devps/prologue.ps: Fix for included Postscript that does
3898 a setpagedevice -- which is now safely ignored.
3902 * src/devices/grops/ps.cc: Now sets the page size in the generated
3903 document. This is done in two ways: Via a %%-comment for gv and
3904 the like, and via a PageSize and setpagedevice for programs that
3905 understands Postscript proper, like ps2pdf.
3907 * src/devices/grops/ps.h: New broken-flag to avoid page size
3908 definition, if required.
3910 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3912 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3913 Not really necessary due to the fix in prologue.ps, but cleaner:
3914 Such information does not belong in an .eps file.
3916 * doc/Makefile.sub: See doc/Makefile.in.
3918 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
3920 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3921 instead of P1 since the latter is broken in some versions of netpbm.
3922 * configure: Updated.
3924 2003-02-26 Larry Kollar <kollar@alltel.net>
3926 Make man pages more customizable.
3928 * tmac/an-old.tmac (FT): New register holding footer distance from
3930 (HF): New string holding the default heading font.
3931 (TH): Handle registers `IN' and `SN' set on the command line.
3933 (PT, BT): New strings to customize header and footer lines.
3934 (an-header, an-footer): Use them.
3936 * tmac/groff_man.man: Document changes.
3938 * doc/groff.texinfo: Document man changes.
3939 Document Ultrix extensions of man.
3941 2003-02-26 Werner LEMBERG <wl@gnu.org>
3943 * src/roff/troff/input.cc (do_width, do_if_request): Reset
3944 `have_input' after changing back to old environment.
3946 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3947 function up to be defined before first call. This is necessary to
3948 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3950 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3951 the default font directory also. Based on a patch from James
3952 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3953 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3954 * src/utils/afmtodit/afmtodit.man: Document it.
3958 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3960 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
3962 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3963 (GROFF_PNMTOPS_NOSETPAGE): New macro.
3964 * configure.ac: Use it.
3965 * configure: Regenerated.
3966 * Makefile.in: Updated.
3968 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3969 (CLEANADD): Add www.tmac-sed.
3970 (pnmtops_nosetpage): Define default.
3971 (install_data): Handle www.tmac-sed and substitute
3972 @PNMTOPS_NOSETPAGE@.
3973 (stamp-sed): Add www.tmac.
3974 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3975 It now breaks URLs at suitable places.
3976 (www:substring_ok): New register set by...
3977 (www:@test_substring): New macro.
3978 (www:error): New alias to www-error.
3979 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3981 (URL): Use www:url_breaks.
3982 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3983 (CDS, CDE): New macros.
3985 2003-02-25 Werner LEMBERG <wl@gnu.org>
3987 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3990 2003-02-24 Werner LEMBERG <wl@gnu.org>
3992 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3993 can be negative also.
3995 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3997 (read_char_table): Avoid negative ascenders.
3998 (output_charset): Add cast.
3999 * font/devlj4/*: Regenerated.
4001 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
4004 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
4005 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
4007 * font/devdvi/*: Regenerated.
4009 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
4010 normal width, while the previously used characters (U+2329 and
4011 U+232A) are classified as wide due to canonical equivalence with the
4012 CJK punctuation characters U+3008 and U+3009.
4014 * font/devutf8/R.proto: Updated.
4015 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
4017 * man/groff_char.man: Simplify handling of table traps by
4018 introducing `start block' and `end block' macros.
4019 (Ns, Ne, 2s, 2e, Ds, De): New macros.
4020 (DL): Make it work with Unix troff also.
4021 Fix code values of `la' and `ra'.
4023 * tmac/dvi.tmac: Define `<>' for CW and CWI.
4025 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
4027 * src/devices/grohtml/post-html.cc (element_list::~element_list):
4028 New destructor, fixing a major memory leak.
4030 2003-02-22 Werner LEMBERG <wl@gnu.org>
4032 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
4033 to be in conformance with Unicode 3.0 and newer.
4035 * font/devlj4/generate/text.map: Add `Eu'.
4036 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
4037 * font/devlj4/S: Regenerated.
4039 * man/groff_char.man: Completely rewritten.
4041 * doc/groff.texinfo: Fix description of request and macro arguments.
4043 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
4047 * src/devices/grohtml/html-table.cc (html_table::~html_table):
4048 Deallocate `columns' list.
4049 * src/devices/grohtml/post-html.cc (char_block::~char_block):
4051 (text_glob::text_glob_html, text_glob::text_glob_special,
4052 text_glob::text_glob_line, text_glob::text_glob_auto_image,
4053 text_glob::text_glob_tag): Avoid memory leaks.
4054 (text_glob::remember_table): Free memory before reassigning.
4056 2003-02-19 Werner LEMBERG <wl@gnu.org>
4058 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
4059 alias `hbar'), the Planck constant over two pi.
4061 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
4062 `+e' for position 34.
4063 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
4064 `u2662' and `u2661'.
4065 * font/devdvi/{MI,S}: Regenerated.
4066 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
4067 * font/devlbp/*: Add `hbar' alias.
4068 * font/devlj4/generate/special.map: Ditto.
4069 * font/devlj4/S: Regenerated.
4070 * font/devps/generate/symbolchars: Add `+e'.
4071 * font/devps/generate/textmap: Fix PS name for `-h'.
4073 * font/devps/symbolmap: Regenerated.
4075 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
4077 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
4079 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
4082 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
4084 * tmac/tty-char.tmac: Add `+e'.
4086 2003-02-17 Werner LEMBERG <wl@gnu.org>
4088 Another round trying to really fix problems with `have_input'.
4090 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
4091 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
4093 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
4094 handling if both foreground and background colors are default.
4096 * doc/groff.texinfo (Debugging): Document .lf differences to
4099 2003-02-16 Werner LEMBERG <wl@gnu.org>
4101 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
4102 null-bytes in created string.
4104 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
4105 alias_macro, lookup_request): Improve warning messages.
4107 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
4109 Free `last_image_filename'.
4111 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
4113 (imageList::createPage, imageList::createImage): Use `free', not
4115 (imageItem::~imageItem): Free `imageName'.
4116 (addRegDef): Use `strsave', not `strdup'.
4117 (get_resolution): Free `pathp'.
4119 2003-02-15 Werner LEMBERG <wl@gnu.org>
4121 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
4124 2003-02-14 Werner LEMBERG <wl@gnu.org>
4126 Add memory management for colors to deallocate unnamed colors
4129 * src/include/color.h (color): New members `free_list' and `next'.
4130 New member functions `new' and `delete'.
4132 * src/libs/libgroff/color.cc: Implement it.
4134 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
4135 for array size of new operator.
4137 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
4138 redundant comparison.
4140 * src/roff/troff/input.cc (word_space_node::reread,
4141 hmotion_node::reread): Avoid warning about unused parameter.
4142 (reset_output_registers): Remove redundant parameter.
4143 (define_color): Undo change 2003-02-12.
4145 * src/roff/troff/reg.h: Updated.
4147 * src/roff/troff/node.cc (troff_output_file::really_print_line,
4148 output_file::put_filename, real_output_file::really_put_filename,
4149 ascii_output_file::really_print_line,
4150 break_char_node::get_hyphen_list): Avoid warning about unused
4152 (suppress_node::tprint): Updated.
4154 * configure.ac: Check declaration for rand() and srand().
4155 * configure: Regenerated.
4157 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
4159 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
4162 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
4163 to avoid compiler warnings.
4165 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
4168 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
4170 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
4172 Updated all callers.
4174 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
4176 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
4177 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
4179 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
4180 Parameter is unused.
4181 (html_printer::add_table_end): Define parameter conditionally.
4182 * src/devices/grohtml/output.cc (simple_output::special): Parameter
4185 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
4186 (lbp_printer::set_char): Last parameter is unused.
4188 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
4190 2003-02-13 Werner LEMBERG <wl@gnu.org>
4192 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
4193 Make \D'f ...' move horizontally again for backwards compatibility.
4194 Replace it with \D'Fg ...' where appropriate to avoid dependency
4195 on horizontal resolution.
4197 * src/roff/troff/input.cc (do_get_long_name): New function.
4198 (get_long_name): Call it.
4200 (read_draw_node): Handle `\D'Fx ...' by calling ...
4201 (read_color_draw_node): New function.
4203 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4205 Pass it to `do_get_long_name' which is used instead of
4208 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4209 unnecessary value guard.
4210 (parse_D_command) <'f'>: Add horizontal shift.
4212 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4213 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4214 (FILL_MAX): Removed.
4216 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4219 2003-02-12 Werner LEMBERG <wl@gnu.org>
4221 * src/roff/troff/input.cc (do_name_test, do_expr_test,
4222 do_zero_width): Push `\n' if closing delimiter is missing.
4224 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4225 <'F'>: Make \F non-transparent at the beginning of line.
4226 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4227 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4230 (define_color): Free color in case of reassignment.
4232 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4233 @DefescListEnd): Use @Var, not @var.
4236 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4238 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4239 `shaded' and `outlined' arrays.
4240 (object_spec::object_spec): Initialize `shaded' and `outlined'.
4241 (graphic_object::set_fill_color, graphic_object::set_outline_color):
4243 (closed_object::set_fill_color): Ditto.
4244 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4246 (troff_output::reset_color): Use a_delete instead of free.
4247 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4249 2003-02-11 Werner LEMBERG <wl@gnu.org>
4251 * doc/groff.texinfo: Improve documentation of `ad'.
4252 Document that \D'f...' is dependent on the horizontal resolution.
4253 * man/groff_diff.man: Improve documentation of \D'f...'.
4255 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4256 compensating \h'...' for \D'f ...' since the latter no longer moves
4258 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4260 2003-02-10 Werner LEMBERG <wl@gnu.org>
4262 Improve error messages for `x F' (and `F') commands.
4264 * src/include/error.h: Add declaration for
4265 `current_source_filename'.
4266 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4267 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4268 parameter for source file string.
4269 Updated all callers.
4271 * src/libs/libdriver/input.cc: Add `current_source_filename'.
4272 (remember_source_filename): New function.
4273 (parse_x_command <'F'>, do_file <'F'>): Use it.
4275 2003-02-09 Werner LEMBERG <wl@gnu.org>
4277 Make grotty not emit warnings about unknown colors more than
4280 * src/devices/grotty/tty.cc: Include `ptable.h'.
4281 (TTY_MAX_COLORS): Removed.
4282 (DEFAULT_COLOR_IDX): Defined to -1.
4283 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4284 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4285 Change `tty_colors' to be a ptable.
4286 First arg of `put_color' is now `char'.
4287 New functions `make_rgb_string' and `tty_color'.
4288 (tty_printer::tty_printer): Use `tty_color'.
4289 (tty_printer::color_to_idx): Return value is now `char'.
4292 * src/include/color.h (color): Add `print_color' member function.
4293 * src/libs/libgroff/color.cc (color::print_color): Implement it.
4295 2003-02-08 Werner LEMBERG <wl@gnu.org>
4299 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4302 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4303 assume that value has been allocated with `new[]', thus use
4304 `a_delete' for deallocation.
4306 * src/libs/libdriver/input.cc (get_integer_arg,
4307 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4310 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4311 * src/libs/libgroff/nametoindex.cc
4312 (character_indexer::named_char_index): Use `new <type>[1]'.
4314 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4316 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4317 (split_text): Use `a_delete'.
4319 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4322 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4323 harmless memory leak.
4324 (hyphen_trie::read_patterns_file): Initialize `buf'.
4325 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4326 Initialize `current_fill_color'and `current_glyph_color'.
4327 * src/roff/troff/glyphuni.cc
4328 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4329 * src/roff/troff/uniuni.cc
4330 (unicode_decompose_init::unicode_decompose_init): Ditto.
4331 * src/roff/troff/uniglyph.cc
4332 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4334 2003-01-26 Werner LEMBERG <wl@gnu.org>
4336 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4337 `access' before calling `unlink'.
4338 (do_file): Handle __EMX__.
4340 * src/include/nonposix.h: Handle __EMX__.
4342 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4343 (fontpath,tmacpath): Use it.
4345 Sorted alphabetically.
4347 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4349 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4352 2003-01-27 Werner LEMBERG <wl@gnu.org>
4354 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4355 New files, copied from gnulib.
4356 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4357 * configure.ac: Updated.
4358 * configure: Regenerated.
4360 * src/include/config.hin: Regenerated.
4361 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4362 Don't define `strcasecmp' as `strcmp'.
4363 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4364 Dont define `strncasecmp' as `strncmp'.
4366 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4369 2003-01-26 Werner LEMBERG <wl@gnu.org>
4371 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4374 2003-01-25 Werner LEMBERG <wl@gnu.org>
4376 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4378 2003-01-24 Werner LEMBERG <wl@gnu.org>
4380 Add US-english hyphenation exceptions (converted from Barbara
4381 Beeton's hyphenation exception log reports which appear irregularly
4384 * tmac/hyphen.us: Updated to latest version.
4385 * tmac/README: Updated.
4386 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4387 * tmac/troffrc: Load `hyphenex.us'.
4388 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4389 * doc/groff.texinfo: Updated.
4391 2003-01-23 Werner LEMBERG <wl@gnu.org>
4393 Improve hyphenation slightly. This is a first step in redesigning
4394 the hyphenation algorithm to make it more flexible (e.g. allowing
4395 kerns and ligatures between the hyphenation character and the
4396 following character -- while not used normally in English, other
4397 languages like German would benefit).
4399 * src/roff/troff/env.cc (environment::hyphenate_line): Use
4400 assertion instead of if-clause.
4401 Let `get_hyphen_list' return the number of involved characters in
4402 the hyphenation pattern instead of computing it directly (which
4403 often yields too small values).
4404 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4405 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4408 2003-01-22 Werner LEMBERG <wl@gnu.org>
4410 Fixing a bug which caused groff to hang if the hyphenation exception
4411 dictionary tried to grow.
4413 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4414 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4415 pointer to dictionary.
4417 2003-01-20 Werner LEMBERG <wl@gnu.org>
4419 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4420 negative left italic correction.
4421 * src/utils/afmtodit/afmtodit.man: Document it.
4423 * font/devps/generate/Makefile (RFLAG): Add `-m'.
4424 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4425 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4429 2003-01-16 Werner LEMBERG <wl@gnu.org>
4433 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
4435 * src/preproc/refer/refer.man: Mention REFER environment variable.
4437 2003-01-05 Werner LEMBERG <wl@gnu.org>
4439 Similar to \[is], the square root glyph (\[sr]) and the square root
4440 extension glyph (\[radicalex]) are now text symbols. The new
4441 mathematical versions are called \[sqrt] and \[sqrtex],
4444 * font/devX*/S: Regenerated.
4445 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4446 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4447 * font/devdvi/EX, font/devdvi/S: Regenerated.
4448 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4449 * font/devlj4/generate/special.map: Add `sqrt'.
4450 * font/devlj4/S: Regenerated.
4451 * font/devps/generate/textmap: Add `sqrt'.
4452 * font/devps/S, font/devps/symbolmap: Regenerated.
4454 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4455 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4456 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4457 overlap horizontally.
4459 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4460 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4463 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4464 and `sqrtex' are overlapping glyphs.
4466 2003-01-04 Werner LEMBERG <wl@gnu.org>
4468 * font/devdvi/generate/texsy.map: Add `is'.
4469 * font/devps/symbolmap: Regenerated.
4470 * font/devdvi/*TC, MI, S: Regenerated.
4472 * tmac/dvi.tmac: Remove `is'.
4474 2003-01-03 Werner LEMBERG <wl@gnu.org>
4476 `is' is now a text symbol (only relevant for dvi). The math variant
4477 can be accessed with `integral'.
4479 * font/devX*/S: Regenerated.
4480 * font/devdvi/generate/texex.map: Remove `is'.
4481 * font/devdvi/EX: Updated.
4482 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4483 * font/devlj4/generate/special.map: Ditto.
4484 * font/devlj4/S: Regenerated.
4485 * font/devps/generate/textmap: Add `integral'.
4486 * font/devps/S: Regenerated.
4488 * tmac/dvi.tmac: Define `is'.
4490 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4492 * src/preproc/tbl/main.cc (process_format): Fix error message.
4494 2003-01-02 Werner LEMBERG <wl@gnu.org>
4496 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4497 * font/devps/textmap: Fix entries for `ne' and `nc'.
4498 * font/devps/symbolmap: Regenerated.
4500 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4501 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4502 `38', `58', `78', `-+', `|=', `nc', `ne'.
4504 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4505 Use `schar' for `aq'.
4506 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4507 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4508 * tmac/tty.tmac: Add `ne'.
4510 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4511 for fallback glyphs.
4513 2002-12-29 Werner LEMBERG <wl@gnu.org>
4517 * font/devX*/*: Regenerated.
4518 * font/devdvi/generate/ec.map: Remove `eq'.
4519 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4520 Assign `|=' to position 39.
4521 * font/devdvi/*EC, S: Regenerated.
4522 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4523 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4524 Assign `|=' to position 549.
4525 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4527 Add `uni2243' for `|='.
4529 * tmac/ec.tmac: Add `eq'.
4530 * tmac/dvi.tmac: Add `=~'.
4531 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4534 2002-12-21 Werner LEMBERG <wl@gnu.org>
4536 * font/devdvi/generate/tc.map: Remove `**'.
4537 * font/devdvi/*TC: Regenerated.
4538 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4540 * font/devutf8/NOTES: Updated.
4542 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4543 Don't give default parameter to `set_macro'.
4544 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4545 instead of `set_macro'.
4546 (charinfo::setx_macro): Implement it.
4547 (charinfo::set_macro): Don't change `mode'.
4549 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4550 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4551 * tmac/dvi.tmac: Define `!=' with `.schar'.
4553 2002-12-20 Werner LEMBERG <wl@gnu.org>
4555 * font/devX*/S: Regenerated.
4556 * font/devdvi/generate/ec.map: Remove `pl'.
4557 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4558 * font/devdvi/*{TC,EC}: Regenerated.
4559 * font/devhtml/R.proto: Add `-+'.
4560 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4561 * font/devlbp/*: Remove `or'.
4562 * font/devlj4/generate/special.map: Remove `or'.
4563 * font/devlj4/S: Regenerated.
4564 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4565 `seveneighths', `threeeighths'.
4567 Replace `minusplus' with `uni2213'.
4568 * font/devps/symbolmap: Regenerated.
4569 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4572 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4574 * src/roff/troff/node.cc (troff_output_file::put_char_width):
4575 Call glyph_color and fill_color even if tcommand_flag isn't set.
4576 (make_node, node::add_char): Check not ci->is_fallback but
4579 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4580 * tmac/ec.tmac: Add .rchar entry for `f/'.
4581 Don't remove `12', `14', `34'.
4582 Define `pl' to be always roman.
4583 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4584 Define `18', `38', `58', `78'.
4585 * tmac/tty.tmac: Add `-+'.
4586 * tmac/dvi.tmac: Define `f/'.
4587 (dvi-frac): Use `f/'.
4588 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4589 Define `18', `38', `58', `78'.
4591 2002-12-15 Colin Watson <cjwatson@debian.org>
4593 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4595 2002-12-10 Werner LEMBERG <wl@gnu.org>
4597 Add glyph `tno', a textual variant of `no'.
4599 * font/devX*/*: Regenerated.
4600 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4601 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4602 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4603 * font/devdvi/*: Regenerated.
4604 * font/devlbp/*: Add `tno'.
4605 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4606 * font/devlj4/*: Regenerated.
4607 * font/devps/generate/textmap: Replace `no' with `tno'.
4608 * font/devps/generate/symbolchars: Add `no'.
4609 * font/devps/*: Regenerated.
4611 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4613 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4614 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4618 * tmac/dvi.tmac: Replace most `\\' with `\E'.
4619 Add definition for `sd'.
4620 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4622 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4624 2002-12-08 Werner LEMBERG <wl@gnu.org>
4626 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4627 mode to avoid rounding errors.
4628 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4630 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4631 src/roff/troff/troff.man: Improve documentation of -T.
4633 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
4635 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4636 (run_pipeline) [_WIN32]: Provide working function without `fork'.
4638 2002-12-06 Werner LEMBERG <wl@gnu.org>
4640 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4641 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4642 Scaling Euro.sansserif glyphs down to have the same height as
4644 Removed unnecessary points; added some extrema.
4646 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4649 2002-12-04 Werner LEMBERG <wl@gnu.org>
4651 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4652 and `Euro.symbol.bold.slanted'.
4653 Improve some glyph offsets and widths.
4654 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4656 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4658 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4661 * tmac/europs.tmac: Updated to new glyph indices.
4662 Use Euro.symbol for font familiy `A'.
4664 * doc/groff.texinfo: Minor improvements.
4666 2002-12-02 Werner LEMBERG <wl@gnu.org>
4668 * font/devdvi/generate.tc.map: s/%O/%0/.
4669 * font/devdvi/*TC: Regenerated.
4671 * src/roff/troff/div.cc (init_div_requests): Sorted.
4673 * tmac/dvi.tmac: Remove `Ye'.
4674 * tmac/ec.tmac: Remove `Ye'.
4675 Add .rchar entry for `de'.
4677 * man/groff.man, man/groff_diff.man: Document register `.pe'.
4678 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4681 2002-11-30 Werner LEMBERG <wl@gnu.org>
4683 Add PS font for various Euro glyphs.
4685 * font/devps/generate/freeeuro.sfd: New master font file for
4687 * font/devps/generate/sfdtopfa.pe: New conversion script for
4689 * font/devps/generate/Makefile (FONTS): Add `EURO'.
4690 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4691 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4693 * font/devps/EURO: Generated from `freeeuro.afm'.
4694 * font/devps/download: Add `freeuro.pfa'.
4695 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4698 * tmac/europs.tmac: New file.
4699 * tmac/ps.tmac: Include `europs.tmac'.
4700 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4702 2002-11-29 Werner LEMBERG <wl@gnu.org>
4704 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4705 * font/devdvi/S: Regenerated.
4706 * font/devhtml/R.proto: Fix `CR' and `ci'.
4708 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4710 * font/devps/symbolmap: Regenerated.
4711 * font/devutf8/R.proto: Fix `CR' and `ci'.
4713 * font/devutf8/NOTES: Updated.
4715 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4718 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4720 * tmac/dvi.tmac: Add `lh' and `rh'.
4721 * tmac/Xps.tmac: Fix `lh' and `rh'.
4722 * tmac/X.tmac: Add `OK'.
4723 * tmac/lj4.tmac: Ditto.
4725 2002-11-24 Werner LEMBERG <wl@gnu.org>
4727 * font/devX*/S: Regenerated.
4728 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4729 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4730 * font/devdvi/generate/texsy.map: Remove `or' glyph.
4731 * font/devdvi/S: Regenerated.
4732 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4733 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4734 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4735 `bracketleftbt', `bracketrighttp', `bracketrightex',
4736 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4737 `braceex', `braceleftex', `bracerightex', `bracerighttp',
4738 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4740 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4741 * font/devutf8/NOTES: Updated.
4742 * font/devlj4/generate/special.map: Add glyph `braceex'.
4743 * font/devlj4/S: Regenerated.
4745 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4747 2002-11-14 Werner LEMBERG <wl@gnu.org>
4749 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4752 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4754 * doc/texinfo.tex: New version from texinfo 4.3.
4755 * doc/groff.texinfo: Updated for texinfo 4.3.
4756 Use @tie{} where appropriate.
4757 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4758 * font/devdvi/generate/tc.map: Remove `rn'.
4759 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4760 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4762 * font/devX100/*, font/devX100-12/*, font/devX75/*,
4763 font/devX75-12/*: Regenerated.
4765 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4766 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4767 Improve definition of `an'.
4768 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4770 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4771 * tmac/X.tmac: Add definition for `or'.
4772 * tmac/Xps.tmac: Undo change 2002-11-05.
4773 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4775 2002-11-11 Werner LEMBERG <wl@gnu.org>
4777 * src/roff/troff/node.cc (troff_output_file::put_char): Always
4780 2002-11-10 Werner LEMBERG <wl@gnu.org>
4782 Added three new requests `schar', `fschar', and `rfschar'. `schar'
4783 defines a glyph which is searched after the check for fonts declared
4784 with `.special' (and before the check for all mounted special
4785 fonts). `fschar' defines a glyph for a particular font which is
4786 searched after the check for fonts declared with `.fspecial' (and
4787 before the check for fonts declared with `.special'). `rfschar'
4788 removes glyphs defined with `fschar'.
4790 * src/roff/troff/token.h (char_mode): New enum.
4791 Declare do_define_character.
4792 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4794 (charinfo::is_fallback): Updated.
4795 (charinfo::is_special): New method.
4796 * src/roff/troff/input.cc (do_define_character): Add and use
4797 optional second parameter used as a prefix for font-specific glyph
4799 (define_character, define_fallback_character): Updated.
4800 (define_special_character): New function.
4801 (init_input_requests): Add `schar'.
4802 (charinfo::charinfo, charinfo::set_macro): Updated.
4803 * src/roff/troff/node.cc: Include `stringclass.h'.
4804 (make_glyph_node): Handle special glyphs defined with `.schar' and
4806 (define_font_special_character, remove_font_special_character): New
4808 (init_node_requests): Sorted.
4809 Add `fschar' and `rfschar'.
4810 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4811 Document new requests.
4813 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4814 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4816 2002-11-08 Werner LEMBERG <wl@gnu.org>
4818 Added new font `SC' (cmtex10) to devdvi.
4820 * devdvi/generate/Makefile (FONTS): Add `SC'.
4822 * devdvi/generate/textex.map: New map file for cmtex.
4824 * devdvi/Makefile.sub (DEVFILES): Updated.
4825 * tmac/dvi.tmac: Add fspecial entries for SC.
4826 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
4827 found before `S' since the font position of `SC' is lower due to the
4828 gaps in DESC's `font' line.
4829 * tmac/ec.tmac: Add a `special' call.
4832 * font/devhtml/R.proto: Remove double entry for `ti'.
4833 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4834 * tmac/tty-char.tmac: Remove entry for `bq'.
4835 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4836 * tmac/ec.tmac: Don't remove `aq' glyph.
4837 * tmac/X.tmac: Fix entry for `em'.
4838 Add entries for `fo' and `fc'.
4839 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4841 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4842 documentation of `special' and `fspecial' requests.
4844 2002-11-05 Werner LEMBERG <wl@gnu.org>
4846 * font/devascii/R.proto, font/devcp1047/R.proto,
4847 font/devlatin1/R.proto: Remove entry for `.i'.
4848 * font/devdvi/generate/textt.map: Add entry for `ad'.
4849 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4850 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4851 We need this for getting kerning values to compose `/l' and `/L'.
4852 * font/devdvi: Regenerated font definition files for CM fonts.
4853 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4854 * font/devutf8/R.proto: Ditto.
4855 Remove double entry for `ti'.
4857 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4858 for (groff) ligatures, `la', and `ra'.
4859 Add "'C", "'c", `IJ', and `ij'.
4860 Remove double entry for `ti'.
4861 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4863 Add "'C", "'c", `IJ', and `ij'.
4864 Fix entries for (groff) ligatures, `la', and `ra'.
4866 * tmac/ps.tmac (ps-achar): New macro.
4867 Define "'c" and "'C".
4868 * tmac/tty.tmac: Add entry for `.i'.
4869 * tmac/X.tmac (X-achar): New macro.
4870 Define "'c", "'C", and `:Y'.
4871 Add entries for `IJ' and `ij'.
4872 * tmac/Xps.tmac (Xps-achar): New macro.
4873 Define "'c" and "'C".
4874 Add entries for `IJ' and `ij'.
4875 * tmac/lbp.tmac (lbp-achar): New macro.
4876 Add fallback characters for all groff ligatures and many other
4878 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4879 Add entries for `/l' and `/L'.
4880 Define "'c" and "'C".
4881 Add entries for `IJ' and `ij'.
4883 2002-11-02 Larry Kollar <kollar@alltel.net>
4885 * PROBLEMS: Document how to solve Mac OS X compilation problems.
4887 2002-11-02 Werner LEMBERG <wl@gnu.org>
4889 Adding support for composite glyphs: \[xxx yyy ...] and the
4890 `composite' request.
4892 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4893 to Unicode-based glyph names.
4894 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4895 glyph names to groff glyph names.
4896 * src/roff/troff/uniuni.cc: New file for canonically decomposing
4897 Unicode-based glyph names.
4898 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4899 for handling Unicode glyph names.
4900 * src/roff/troff/input.cc: Include unicode.h.
4901 (composite_glyph_name): New function.
4902 (token::next) <'['>: Handle Unicode glyph names and composite
4904 (composite_dictionary): New dictionary for the `composite' request.
4905 (composite_request): Implement `composite' request.
4906 (init_input_requests): Add `composite'.
4907 Alphabetically sorted.
4908 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4910 (init_env_requests): Alphabetically sorted.
4911 Removed `tas' and `tar' (already commented out).
4912 * src/roff/troff/Makefile.sub: Updated.
4914 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
4916 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4919 2002-10-29 Werner LEMBERG <wl@gnu.org>
4921 Fix computation of .trunc register. Additionally, its value (and
4922 the value of the .ne register) is now always set before entering the
4925 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4926 `needed_space' before calling `space'.
4927 (top_level_diversion::space): Remove special code for 'sp before the
4929 Call `begin_page' with the discarded space as a parameter.
4930 (top_level_diversion::begin_page): Add optional parameter to set
4932 * src/roff/troff/div.h: Updated.
4934 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4937 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4938 (LP): Remove superfluous call to `br'.
4939 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4940 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4942 2002-10-26 Werner LEMBERG <wl@gnu.org>
4944 * tmac/doc-ditroff: Remove useless switch/variable -rC.
4945 (doc-setup-header): Don't set page register `%'.
4946 * tmac/doc-nroff: Remove variable `C'.
4947 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4948 (doc-setup-header): Don't set page register `%'.
4950 * tmac/doc-common (doc-header): Call `ns'.
4951 (doc-paragraph): Protect .sp with .br so that it survives traps
4952 possibly set by the user.
4953 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4955 * tmac/doc*: Replace ' with . for consistency if no effect.
4957 2002-10-26 Werner LEMBERG <wl@gnu.org>
4959 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4960 so that it survives traps possibly set by the user.
4962 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4963 (troff_output_file::set_font): Call flush_tbuf if necessary.
4964 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4965 flush_tbuf and do_motion only if necessary.
4966 (troff_output_file::start_special,
4967 troff_output_file::put_char_width, troff_output_file::put_char,
4968 troff_output_file::draw): Updated.
4969 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4970 vmotion_node::tprint): Undo change 2002-10-23.
4972 2002-10-25 Werner LEMBERG <wl@gnu.org>
4974 * tmac/www.tmac (DC): Fix case of overlapping images.
4976 2002-10-23 Werner LEMBERG <wl@gnu.org>
4978 * src/roff/troff/node.cc (troff_output_file::fill_color,
4979 troff_output_file::glyph_color): Set current color before testing
4981 (troff_output_file::put_char_width, troff_output_file::put_char,
4982 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4984 (troff_output_file::file_color, troff_output_file::glyph_color):
4986 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4987 vmotion_node::tprint): Move first, then call fill_color.
4989 2002-10-20 Werner LEMBERG <wl@gnu.org>
4991 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4992 possible to use multiple main macro packages.
4994 2002-10-19 Werner LEMBERG <wl@gnu.org>
4996 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4997 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4998 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
5000 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
5001 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
5003 2002-10-16 Werner LEMBERG <wl@gnu.org>
5005 * NEWS, doc/webpage.ms: Updated.
5007 2002-10-14 Werner LEMBERG <wl@gnu.org>
5009 * src/roff/troff/node.cc (troff_output_file::put_char_width,
5010 troff_output_file::put_char, troff_output_file::fill_color,
5011 troff_output_file::glyph_color): Handle case where color pointer
5014 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
5016 Add the new -r option to grotty. It is similar to the -i option
5017 except it tells grotty(1) to use the "reverse video" attribute to
5018 render italic fonts.
5020 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
5021 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
5022 (tty_printer::make_underline, tty_printer::put_color,
5023 tty_printer::end_page): Use it.
5024 (main): Add -r switch.
5026 * src/devices/grotty/grotty.man: Document it.
5028 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
5030 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5031 cast to `unsigned char' to properly read patterns with 8bit
5034 2002-10-08 Werner LEMBERG <wl@gnu.org>
5036 * REVISION: Increased to 2.
5038 Version 1.18.1 released
5039 =======================
5041 2002-10-08 Werner LEMBERG <wl@gnu.org>
5043 * doc/webpage.ms, NEWS: Updated.
5045 2002-10-07 Werner LEMBERG <wl@gnu.org>
5047 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
5048 suppress additional whitespace after the header.
5050 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
5053 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
5055 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
5057 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
5058 (Dt): Use it to improve language localization (especially Russian
5061 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
5063 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
5064 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
5066 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
5068 Call `picurve' for BSPLINE.
5069 (HGPrintElt): Handle BSPLINE.
5070 * src/preproc/grn/README: Document it.
5072 2002-10-03 Werner LEMBERG <wl@gnu.org>
5074 * src/roff/troff/node.cc (break_char_node::col): New variable.
5075 Updated constructor.
5076 (space_node::tprint, word_space_node::tprint): Call `fill_color'
5078 (space_node::space_node): Remove assertion.
5079 (break_char_node::add_self): Pass color argument to space node.
5080 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
5082 * src/roff/troff/env.cc (environment::do_break,
5083 environment::add_padding): Ditto.
5085 2002-10-02 Werner LEMBERG <wl@gnu.org>
5087 Redesigning color support in troff. Colors are no longer
5088 represented as separate nodes but are now part of glyph nodes and
5089 friends. This fixes the current formatting misbehaviour due to the
5090 changes introduced on 2002-09-20. Some extra code is necessary for
5091 proper grotty support: Without adding color variables to
5092 space-related nodes, the background color would be changed too late.
5094 * src/roff/troff/node.h, src/roff/troff/node.cc:
5095 s/current_pagecolor/current_fill_color/.
5096 s/current_glyphcolor/current_glyph_color/.
5097 (glyph_color_node, fill_color_node): Removed.
5098 (node::get_glyph_color, node::get_fill_color): New virtual member
5100 (space_node::col): New variable.
5101 Updated constructors of space_node and derived classes accordingly.
5102 (hmotion_node::col): New variable.
5103 Updated constructors of hmotion_node and space_char_hmotion_node
5105 (vmotion_node::col): New variable.
5106 Updated constructor accordingly.
5107 (draw_node::gcol, draw_node::fcol): New variables.
5108 Updated constructor accordingly.
5109 (special_node::gcol, special_node::fcol): New variables.
5110 Updated constructors accordingly.
5111 (troff_output_file::put_char, troff_output_file::put_charwidth,
5112 troff_output_file::draw): Set glyph and fill color.
5113 (troff_output_file::start_special): Set glyph and fill color.
5114 Always set current font.
5115 (troff_output_file::fill_color, troff_output_file::glyph_color):
5116 Don't call `do_motion'.
5117 (glyph_node::gcol, glyph_node::fcol): New variables.
5118 Updated constructors of glyph_node and ligature_node accordingly.
5119 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
5121 (glyph_node::merge_glyph_node,
5122 kern_pair_node::add_discretionary_hyphen,
5123 node::add_discretionary_hyphen): Updated.
5124 (break_char_node::merge_self): Updated.
5125 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5126 vmotion_node::tprint): Handle color.
5127 (make_glyph_node, make_node, node::add_char): Updated.
5129 * src/roff/troff/env.cc (environment::space_newline,
5130 environment::space, environment::output_line, environment::do_break,
5131 environment::make_tab_node, environment::add_padding, title):
5133 (environment_switch, environment_copy): Don't add color nodes.
5135 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
5137 (token::next): Updated.
5138 \m and \M now are as transparent as \s.
5139 (process_input_stack, token::add_to_node_list, token::process,
5140 read_draw_node): Updated.
5141 (charinfo_to_node_list): Don't add color nodes.
5143 * doc/groff.texinfo: Updated.
5145 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
5147 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
5150 2002-09-27 Colin Watson <cjwatson@debian.org>
5152 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
5154 2002-09-23 Werner LEMBERG <wl@gnu.org>
5156 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
5158 (DEFAULT_LINEWIDTH_FACTOR): New macro.
5159 (linewidth_factor): New global variable.
5160 (lbp_printer::set_line_thickness): Fix case for size < 0, using
5162 (long_options): Add -w/--linewidth option.
5164 (main): Handle -w option to set linewidth_factor.
5165 (lbp_printer::lbp_printer): Initialize req_linethickness, not
5168 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
5170 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
5172 Fixed a bug in the line thickness setting code.
5174 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
5176 (lbp_printer::set_line_thickness): Pass environment as second
5178 Implement it actually.
5179 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
5180 and `set_line_thickness, depending on the current font size.
5182 2002-09-21 Werner LEMBERG <wl@gnu.org>
5184 Some Debian patches.
5186 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
5187 * src/roff/troff/node.cc (bracket_node::copy): Initialize
5190 2002-09-20 Werner LEMBERG <wl@gnu.org>
5192 * configure: Regenerated with autoconf 2.54.
5194 2002-09-20 Werner LEMBERG <wl@gnu.org>
5196 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
5198 Rename cur_fill_color to fill_color.
5199 * src/roff/troff/env.cc: Updated.
5201 2002-09-20 Werner LEMBERG <wl@gnu.org>
5203 * src/roff/troff/env.cc (title): Copy color status after processing
5205 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
5206 fill color nodes to reset colors properly.
5208 * tmac/www.tmac (DC): Fix color handling.
5210 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
5211 * doc/groff.texinfo: Fixing documentation of `tl' request.
5212 * doc/webpage.ms: Updated.
5214 2002-09-19 Werner LEMBERG <wl@gnu.org>
5216 * src/roff/troff/env.cc (environent_switch, environment_copy):
5217 Emit glyph and fill color nodes to initialize colors properly.
5219 2002-09-17 Colin Watson <cjwatson@debian.org>
5221 * src/roff/troff/env.cc (environment::set_glyph_color,
5222 environment::set_fill_color): Fix typo which prevented \m[] work
5225 2002-09-17 Werner LEMBERG <wl@gnu.org>
5227 Add left and right italic correction to non-slanted PS fonts. This
5228 is an experimental feature to improve image rendering of grohtml.
5230 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
5231 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
5232 * font/devps/*: All non-slanted fonts regenerated.
5235 2002-09-16 Werner LEMBERG <wl@gnu.org>
5237 Add a site-specific font directory.
5239 * Makefile.in (localfontdir, legacyfontdir): New variables.
5240 (fontpath): Use them.
5241 (MDEFINES, uninstall_dirs): Updated.
5242 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
5243 Remove `FONTPATH' and `MACROPATH'.
5245 * src/roff/troff/troff.man, NEWS: Updated.
5246 * doc/groff.texinfo (Font Directories): New section.
5249 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
5250 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
5251 src/preproc/grn/grn.man: Minor fixes.
5253 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
5254 Remove unused variable.
5256 2002-09-11 Werner LEMBERG <wl@gnu.org>
5258 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
5259 * man/groff_out.man: Fix documentation of 'N'.
5261 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
5263 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
5264 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
5266 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
5267 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5268 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5269 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5270 PRE_TAG>: Call `begin' with `FALSE'.
5272 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5274 * src/libs/libgroff/string.cc (string::extract): Fix position of
5275 terminating null byte.
5277 2002-09-08 Werner LEMBERG <wl@gnu.org>
5279 Add global option `nospaces' to tbl so that leading and trailing
5280 spaces in data items are ignored.
5282 * src/libs/libgroff/string.cc (string::remove_spaces): New member
5283 function to remove leading and trailing spaces.
5284 * src/include/stringclass.h: Updated.
5286 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5288 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5290 Fix typo in error messages.
5291 (process_data): Implement `nospaces' option.
5292 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5294 2002-09-07 Werner LEMBERG <wl@gnu.org>
5296 * src/include/config.hin: Add `HAVE_ISATTY'.
5297 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5299 * src/libs/libgroff/tmpname.cc: Include `time.h'.
5300 * src/libs/libdriver/input.cc (Char): Add `operator==' and
5301 `operator!=' for `char'.
5302 * doc/groff.texinfo: Replace @ifnottex block for top node with
5305 2002-09-06 Werner LEMBERG <wl@gnu.org>
5307 * doc/Makefile.in (.texinfo.html): Add -I switch.
5308 * doc/groff.texinfo: Add @ifnottex block for top node to make
5309 translation to HTML work.
5311 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
5313 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5314 (get_papersize, determine_vertical_offset): Removed.
5315 (char_buffer::do_image): Always specify letter size.
5317 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5320 2002-09-05 Werner LEMBERG <wl@gnu.org>
5322 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5323 default indentation.
5325 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
5327 * src/preproc/html/pre-html.cc (imageList::createPage): Use
5329 (generateImages): Clean up push-back buffer.
5331 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5333 * doc/groff.texinfo: Minor fixes.
5335 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5337 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5338 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5340 (determine_vertical_offset): Use LETTER_LENGTH.
5341 (createPage): Moved to ...
5342 (imageList::createPage): This.
5343 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5344 (imageList::getMaxX): New function.
5345 (createImage): Moved to ...
5346 (imageList::createImage): This.
5347 (imageList::createImages): New function.
5348 (generateImages): Read `maxx' directly.
5350 (scanArguments): Don't specify `gsPaper' for `-o'.
5351 (makeTempFiles): Call `xtmpfile' with the last argument set to
5354 2002-08-24 Werner LEMBERG <wl@gnu.org>
5356 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5357 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5358 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5359 * src/preproc/html/pushback.cc: Include nonposix.h.
5360 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5363 2002-08-23 Werner LEMBERG <wl@gnu.org>
5365 Use $(OBJEXT) for the object file extension.
5367 * Makefile.comm (.SUFFIXES): Add .obj.
5368 (.cc.obj, .c.obj): New implicit rules.
5369 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5370 (MDEFINES): Add EXEEXT and OBJEXT.
5371 * */Makefile.sub: s/.o/.$(OBJEXT)/.
5373 2002-08-22 Werner LEMBERG <wl@gnu.org>
5375 * INSTALL: Mention texinfo 4.2 as a prerequisite.
5377 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5379 * src/devices/grohtml/post-html.cc (colType): Make enum global to
5381 (html_printer::update_min_max, html_printer::add_table_end): New
5383 (html_printer::lookahead_for_tables): Use them.
5384 Reset page offset correctly.
5385 (html_printer::~html_printer): Add creation of creator comment up.
5387 2002-08-20 Werner LEMBERG <wl@gnu.org>
5389 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5390 * man/groff_tmac.man: Fix typos.
5391 * man/groff_font.man: Minor reordering.
5392 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5394 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5396 Avoid endless loops while scanning for tables.
5398 * src/devices/grohtml/post-html.cc (list::insert): Set
5400 (html_printer::next_horiz_pos): Add `text_glob' argument; update
5402 Return immediately if that argument is NULL.
5403 (html_printer::calc_nf): Don't test if `g' is NULL.
5404 (html_printer::lookahead_for_tables): Use
5405 `glyphs.move_right_get_data'.
5406 Don't test if `g' is NULL.
5408 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5410 A better fix, replacing fix 2002-08-15, for increasing SIZE.
5412 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5414 (char_block::char_block): Allocate `buffer'.
5415 (char_buffer::add_string): Use it.
5417 2002-08-15 Werner LEMBERG <wl@gnu.org>
5419 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5420 src/devices/grodvi/grodvi.man: Document default line thickness.
5422 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
5424 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5427 2002-08-14 Werner LEMBERG <wl@gnu.org>
5429 * doc/webpage.ms: Updated.
5431 2002-08-09 Werner LEMBERG <wl@gnu.org>
5433 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5436 2002-08-08 Aaron Campbell <aaron@monkey.org>
5438 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5441 2002-08-08 Werner LEMBERG <wl@gnu.org>
5443 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5446 Don't push back a space but a newline onto the stack.
5448 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
5450 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5453 * src/devices/grohtml/post-html.cc (html_printer::end_font,
5454 html_printer::start_font): Handle them.
5455 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5457 (html_text::do_bold): Don't reset italic and tt.
5458 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5459 * font/devhtml/DESC.proto: Add those fonts.
5460 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5462 2002-08-07 Werner LEMBERG <wl@gnu.org>
5464 * MORE.STUFF: Added gpresent.
5466 * tmac/trace.tmac: Show nesting level by a corresponding amount of
5467 whitespace before printing the logging message.
5469 2002-07-31 Colin Watson <cjwatson@debian.org>
5471 * src/devices/grohtml/html-table.cc (html_table::finish_row):
5472 Initialize `n' to zero. This fixes a segfault on ARM.
5474 2002-07-30 Werner LEMBERG <wl@gnu.org>
5476 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5478 2002-07-29 Werner LEMBERG <wl@gnu.org>
5480 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5483 2002-07-28 Colin Watson <cjwatson@debian.org>
5485 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5487 (html_printer::html_printer): Initialize `pointsize'.
5489 2002-07-26 Werner LEMBERG <wl@gnu.org>
5491 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5493 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5494 (gnu.eps): Add -rle switch to pnmtops.
5495 (distfiles): Add gnu.eps and gnu.png.
5497 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
5499 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5502 2002-07-24 Werner LEMBERG <wl@gnu.org>
5504 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5505 ' \+' but ' *' for sed.
5506 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5508 2002-07-23 Werner LEMBERG <wl@gnu.org>
5510 * doc/groff.texinfo: Document `papersize' keyword.
5511 * NEWS, man/groff_font.man: Updated.
5513 2002-07-23 Colin Watson <cjwatson@debian.org>
5515 Extend papersize keyword to accept more than a single entry. The
5516 first valid will be used.
5518 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5519 (font::scan_papersize): Really skip final newline.
5520 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5522 2002-07-23 Werner LEMBERG <wl@gnu.org>
5524 * configure.ac: Test for isatty.
5525 * configure: Regenerated.
5526 * src/include/posix.h: Check HAVE_ISATTY.
5527 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5528 * src/utils/lookbib/lookbib.cc: Include posix.h.
5529 Don't declare isatty.
5531 2002-07-21 Werner LEMBERG <wl@gnu.org>
5533 * NEWS: Add `output' request.
5535 * REVISION: Increased to 1.
5537 Version 1.18.0 released
5538 =======================
5540 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
5542 Allow internal glyph indices > 0xFF in grohtml for input characters.
5544 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5546 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5547 Updated all callers.
5548 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5549 (html_printer): Updated.
5551 2002-07-19 Werner LEMBERG <wl@gnu.org>
5553 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5554 * font/devutf8/R.proto: Adding some missing glyphs.
5555 * font/devutf8/NOTES: Updated.
5557 * tmac/dvi.tmac: Add more composite glyphs.
5558 * tmac/html.tmac: Updated.
5560 * man/groff_char.man: Add `sum' and `product' entities.
5564 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
5566 Improved table, tab, and indenting support.
5568 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5569 string_iterator::suppress_newline_flag): Removed. Updated all
5570 function which have used it.
5572 * src/roff/troff/env.cc: Include `input.h'.
5573 (environment::add_node): Accept 0 as parameter.
5574 (environment::add_html_tag): Add `force' parameter.
5575 Updated all callers.
5576 (environment::add_html_tag_tabs): Ditto.
5577 For the moment, support left-aligned tabs only.
5578 (environment::make_html_tag): New function.
5579 (fill, no_fill): Set .br html tag additionally.
5580 (environment::newline): Emit `eol.ce' or `eol' tag for html.
5581 (environment::add_html_tag_eol): Removed.
5582 (tab_stops::distance_to_next_tab): Add variant for handling
5584 (environment::distance_to_next_tab): Ditto.
5585 Updated all callers.
5586 (environment::handle_tab): Handle tabs for html.
5588 * src/roff/troff/env.h: Updated.
5590 * src/roff/troff/div.cc: Updated all callers of
5591 `environment::add_html_tag'.
5593 * src/devices/grohtml/html-table.cc,
5594 src/devices/grohtml/html-table.h: New files.
5596 * src/devices/grohtml/html-text.cc (html_text): New members
5597 `blank_para' and `start_space'.
5598 (html_text::issue_tag): Don't emit TABLE_TAG.
5599 Handle indentation for PRE_TAG and P_TAG.
5600 (html_text::end_tag): Updated.
5601 (html_text::table_is_void, html_text::issue_table_begin,
5602 html_text::issue_table_end): Removed.
5603 (html_text::do_push): Simplified.
5604 [DEBUGGING]: Small fix.
5605 (html_text::push_para): Add new parameter for indentation; updated
5608 (html_text::do_indent, html_text::do_table, html_text::done_table,
5609 html_text::is_in_table): Removed.
5610 (html_text::do_pre): Handle P_TAG also.
5611 (html_text::shutdown): Handle p->indent.
5612 (html_text::check_emit_text): Simplified.
5613 (html_text::do_emittext): Reset `blank_para'.
5614 (html_text::do_para): Add new parameter for indentation; updated
5616 (html_text::remove_indent): New function.
5617 (html_text::do_space): Handle verbatim text properly.
5618 (html_text::ever_emitted_text, html_text::starts_with_space,
5619 html_text::remove_para_align): New functions.
5620 (html_text::dump_stack_element, html_text::dump_stack): Updated.
5622 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5625 * src/devices/grohtml/post-html.cc: Include html-table.h.
5626 (INDENTATION): Removed.
5627 (text_glob): Added many `is_<foo>' functions.
5628 Added table description `tab'.
5629 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5631 (list): Add `insert' and `move_to' member functions.
5632 (page): Add `insert_tag' member function.
5633 (page::dump_page) [DEBUG_TABLES]: Improved.
5634 (html_printer): Add `table' and `max_linelength' elements.
5635 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5636 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5637 `remove_tabs', `remove_courier_tabs'.
5638 (html_printer::emit_raw): Handle indentation.
5639 (html_printer::do_center, html_printer::write_header): Updated.
5640 (html_printer::is_courier_until_eol): Check for tag.
5641 (html_printer::do_linelength): Handle max_linelength.
5642 (html_printer::do_page_offset, html_printer::do_indentation): Handle
5644 (html_printer::do_tempindent): Updated.
5645 (html_printer::do_indentedparagraph): Removed.
5646 (html_printer::do_indent): Simplified.
5647 (html_printer::do_eol): Use `ever_emitted_text'.
5648 (html_printer::do_flush, html_printer::do_links): Don't call
5650 (html_printer::do_break): Handle end_tempindent.
5651 (html_printer::troff_tag): Get argument.
5653 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5654 (html_printer::flush_page): Call `lookahead_for_tables'.
5655 Don't call `done_table'.
5656 (html_printer::add_to_sbuf): Always call do_indent.
5658 * src/devices/grohtml/Makefile.sub: Updated.
5660 * tmac/an-old.tmac (TP): Don't handle html device specially.
5661 (an-do-tag-html): New function which will be used instead of
5662 `an-do-tag' if html device is used.
5664 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5666 * tmac/s.tmac (@IP): Don't handle html device specially.
5667 (@IP-html): New function which will be used instead of `@IP' if
5668 html device is used.
5670 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5671 is a hack which will eventually vanish again.
5672 (PIMG): Handle `-C' option correctly if not html.
5675 2002-07-17 Werner LEMBERG <wl@gnu.org>
5677 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5679 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
5681 * contrib/pic2graph/pic2graph.*: Use convert(1).
5682 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5684 2002-07-14 Bernd Warken <bwarken@mayn.de>
5686 * tmac/groff_trace.man: New file.
5687 * tmac/Makefile.sub: Updated.
5690 2002-07-13 Werner LEMBERG <wl@gnu.org>
5692 * src/roff/groff/groff.man: Add some cross references.
5694 2002-07-12 Werner LEMBERG <wl@gnu.org>
5696 * src/roff/troff/input.cc (substring_request): Add warnings for
5697 string indices out of range.
5699 2002-07-11 Werner LEMBERG <wl@gnu.org>
5701 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5702 * font/devdvi/*EC: Regenerated.
5704 2002-07-10 Bernd Warken <bwarken@mayn.de>
5706 * man/groff_char.man: Updated and extended.
5708 2002-07-10 Werner LEMBERG <wl@gnu.org>
5710 * src/roff/troff/input.cc (length_macro): Renamed to...
5711 (length_request): This.
5712 Move call of `tok.next()' to the very end, otherwise the register
5713 value hasn't been updated yet.
5714 (init_input_requests): Updated.
5716 2002-07-09 Werner LEMBERG <wl@gnu.org>
5718 * src/roff/troff/input.cc (substring_macro): Renamed to...
5719 (substring_request): This.
5720 (init_input_requests): Updated.
5721 * src/roff/troff/request.h: Updated.
5723 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
5725 * src/roff/grog/grog.sh: Fix typo.
5727 2002-07-08 Werner LEMBERG <wl@gnu.org>
5729 * win32-diffs: Updated.
5731 Handle `papersize' keyword properly in DESC.
5733 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5735 Updated all callers.
5736 * src/libs/libgroff/paper.cc: Add four more paper formats used by
5738 * src/include/paper.h: Updated.
5740 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5741 Other minor C syntax fixes.
5742 (papersize, paperlength, paperwidth): Renamed to `user_*'.
5743 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5745 (lbp_printer::lbp_printer): Pass three arguments.
5746 Set paper dimensions properly.
5747 (make_printer, main): Updated.
5748 (handle_unknown_desc_command): Fix error messages.
5749 (main): Handle papersize keyword in DESC properly.
5751 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5753 (lbp_printer::lbp_printer): Pass an argument.
5754 Set paper_size properly.
5755 (handle_unknown_desc_command): Removed.
5756 (make_printer, main): Updated.
5757 * src/devices/grolj4/grolj4.man: Minor documentation fix.
5759 * man/groff_font.man, NEWS: Updated.
5761 2002-07-07 Werner LEMBERG <wl@gnu.org>
5763 Integrated eqn2graph, contributed by Eric S. Raymond.
5765 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5767 * Makefile.in, NEWS: Updated.
5769 2002-06-04 Werner LEMBERG <wl@gnu.org>
5771 Changing the substring request to make it fit better with other
5772 string manipulation functions in other programming languages:
5773 Index 0 is now the first character in the string, and index -1
5774 indicates the last character. Since this request didn't work
5775 properly anyway in the last release, it doesn't harm too much to
5778 * src/roff/troff/input.cc (substring_macro): Use loops to get
5779 the real string length (ignoring COMPATIBLE_SAVE and
5780 COMPATIBLE_RESTORE) and offsets.
5781 Implement change described above.
5783 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5784 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5786 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5788 2002-06-03 Werner LEMBERG <wl@gnu.org>
5790 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
5791 COMPATIBLE_RESTORE are completely ignored.
5793 * src/roff/troff/input.cc (char_list::set, char_list::get): New
5795 (macro): `length' field renamed to `len'.
5796 Added new field `empty_macro' (1 if macro is empty), to be used
5797 instead of checking `len'.
5798 Updated all callers.
5799 (macro::empty): Updated.
5800 (macro::length, macro::set, macro::get): New functions.
5801 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5803 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5804 COMPATIBLE_RESTORE pairs.
5805 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5806 * src/roff/troff/request.h: Updated.
5808 * doc/groff.texinfo: Document .chop's behaviour better.
5810 2002-06-02 Werner LEMBERG <wl@gnu.org>
5812 * doc/pic.ms: Fix documentation for the addition of positions.
5814 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5816 2002-06-29 Werner LEMBERG <wl@gnu.org>
5818 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5820 * src/roff/troff/input.cc (have_string_arg): New global variable.
5821 (read_mode): New enumeration.
5822 (read_escape_name): Use it. Update all calls.
5823 (read_long_escape_name): Use it. Update all calls.
5824 Set have_string_arg if appropriate.
5825 (get_char_for_escape_name): Add parameter for handling space
5827 (interpolate_string_with_args, decode_string_args): New functions.
5828 (get_copy, token::next): Call it if necessary.
5829 (interpolate_string): Fix error message.
5831 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5834 2002-06-24 Bernd Warken <bwarken@mayn.de>
5836 * man/groff_tmac.man: Updated and extended.
5838 2002-06-24 Werner LEMBERG <wl@gnu.org>
5840 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5842 2002-06-23 Werner LEMBERG <wl@gnu.org>
5844 * doc/pic.ms: Improve documentation of composite block objects.
5846 2002-06-22 Werner LEMBERG <wl@gnu.org>
5848 * src/roff/troff/input.cc (init_registers): Add three registers
5849 `seconds', `minutes', and `hours' to hold the current time.
5851 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5854 2002-06-20 Werner LEMBERG <wl@gnu.org>
5856 Make \X accept both `\ ' and `\~', converting them to single space
5859 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5860 (token::unstretchable_space): New inline function.
5861 * src/roff/troff/input.cc (token::next, token::delimiter,
5862 token::description, token::add_to_node_list, token::process): Handle
5863 TOKEN_UNSTRETCHABLE_NODE.
5864 (encode_char): Handle tok.stretchable_space and
5865 tok.unstretchable_space.
5867 * NEWS, doc/groff.texinfo: Document it..
5869 2002-06-19 Werner LEMBERG <wl@gnu.org>
5871 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5873 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5874 keyword to enable/disable SGR output.
5875 (tty_printer::change_fill_color): New function.
5876 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5878 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5881 2002-06-18 Werner LEMBERG <wl@gnu.org>
5883 Add a `color' request and a `.color' register to control usage of
5886 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5887 (color_flag): This (which is the inverse).
5888 (activate_color): New function.
5889 (main, init_input_requests): Updated.
5890 * src/roff/troff/troff.h, src/roff/troff/node.cc
5891 (troff_output_file::fill_color, troff_output_file::glyph_color):
5894 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5895 Document the changes.
5897 2002-06-17 Colin Watson <cjwatson@debian.org>
5899 Circumvent bug in autoconf 2.53 regarding top_builddir.
5901 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5902 * Makefile.in, doc/Makefile.in:
5903 s/@top_builddir@/@groff_top_builddir@/.
5904 * configure: Regenerated (with autoconf 2.53).
5906 2002-06-17 Werner LEMBERG <wl@gnu.org>
5908 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5909 `paperwidth' and `paperlength' for the `papersize' keyword.
5911 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
5913 * src/devices/grops/grops.man: Add info about Type 42 fonts.
5915 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
5917 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5918 html_printer::do_linelength, html_printer::do_pageoffset,
5919 html_printer::do_indentation, html_printer::do_tempindent,
5920 html_printer::do_break, html_printer::begin_page): Clear indented
5922 * tmac/html.tmac: Disable hyphenation.
5924 2002-06-15 Werner LEMBERG <wl@gnu.org>
5926 Don't produce HTML files if utility programs are missing.
5928 * Makefile.in (make_html, make_install_html): New variables.
5929 (MDEFINES): Updated.
5931 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5933 * configure.ac: Use it.
5934 * configure: Regenerated.
5936 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5937 (HTMLEXAMPLESFILES): This new variable.
5938 (EXAMPLESIMAGEFILES): Renamed to...
5939 (HTMLEXAMPLEIMAGEFILES): This.
5940 (CLEANADD): Add HTMLEXAMPLEFILES.
5941 (all): Use `make_html'.
5943 (install_data): Use `make_install_html'.
5944 Move html stuff to...
5945 (install_html): This new target.
5946 (uninstall_sub): Updated.
5948 2002-06-14 Bernd Warken <bwarken@mayn.de>
5950 * src/roff/grog/Makefile.sub (grog): Renamed to...
5952 (grog): New rule to always install grog.sh as grog.
5954 2002-06-08 Bernd Warken <bwarken@mayn.de>
5956 * src/roff/grog/grog.pl: Fix typo.
5958 2002-06-07 Werner LEMBERG <wl@gnu.org>
5960 * doc/groff.texinfo: Add more info on .tr arguments.
5962 2002-06-05 Werner LEMBERG <wl@gnu.org>
5964 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5966 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5967 * configure: Regenerated.
5969 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5971 * src/roff/troff/symbol.cc (table_sizes): Add more values.
5973 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5975 2002-06-04 Werner LEMBERG <wl@gnu.org>
5977 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5978 is not initialized at the time we need it in case `--prefix' hasn't
5979 been set. Check for `ac_default_prefix' also.
5980 Test for `papersize' keyword also and generalize allowed whitespace.
5981 * configure: Regenerated.
5983 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5986 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5988 (src_version, src_revision): New variables to avoid overwriting
5989 from parent make process.
5990 (version.cc): Updated.
5992 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5993 (linebuf, linebufsize): New global variables.
5994 (sys_fatal): Use `fatal' to abort properly.
5995 (get_line): New function.
5996 (get_resolution): Use it.
5997 Improve error messages.
5998 (get_papersize): Check `papersize' also.
6000 Improve error messages.
6002 2002-06-03 Werner LEMBERG <wl@gnu.org>
6004 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
6005 should be removed only if builddir is not srcdir.
6006 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
6007 (clean): Depend on `mostlyclean'.
6008 (distclean): Depend on `clean'.
6009 (realclean, extraclean): Depend on `distclean'.
6010 (.y.cc, .y.o): Simplified. The output files are no longer written
6011 to srcdir but to builddir.
6012 * Makefile.in (MDEFINES): Add `version' and `revision'.
6013 (uninstall_dirs): Fix order of directories.
6014 * doc/Makefile.sub (version, revision): Removed.
6015 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
6016 Added `HTMLDOCFILES'.
6017 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
6018 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
6019 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
6022 * doc/texinfo.tex (\authortt): New macro.
6023 (\shortcontt): Define.
6024 (\titlepage): Set \tt to \authortt while defining \authorfont.
6025 (\appendixbox): New macro.
6026 (\chapmacro, \appendixentry): Use \appendixbox to get even
6027 indentation for letters.
6028 (\summarycontents): Set \tt.
6029 (\internalpagesize): Add two arguments for real paper width and
6030 height as needed by pdfTeX.
6031 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
6033 (\tempdima, \tempdimb): New temporary dimensions.
6034 (\pagesizesyyy): Updated.
6036 2002-06-02 Werner LEMBERG <wl@gnu.org>
6038 Adding a new keyword `papersize' to the DESC file format (similar
6039 but not completely identical to grolbp's extension). grops now has
6040 a -p command line option to override `papersize'. Finally, grolbp
6041 has been adapted to the new syntax.
6043 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
6044 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
6046 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
6047 (CCSRCS): Add `paper.cc'.
6049 * src/include/font.h (font): Add `papersize' element.
6050 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
6051 (font::scan_papersize): New function.
6052 (font::load_desc): Use it for handling `papersize' keyword.
6053 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
6055 * src/devices/grops/ps.cc: Include paper.h.
6056 (user_paper_length): New global variable.
6057 (ps_printer): Use paper length as initializer.
6058 (make_printer): Updated.
6059 (main): Handle new `-p' option.
6060 * src/devices/grops/grops.man: Updated.
6062 * src/devices/grolbp/lbp.cc: Include paper.h.
6063 s/papersizes/lbp_papersizes/.
6064 (set_papersize): Use new `papersizes' array.
6065 (handle_unknown_desc_command): Don't handle `papersize'.
6066 (main): Use `font::scan_papersize' for handling `-p' option.
6067 * src/devices/grolbp/grolbp.man: Updated.
6069 * man/groff_font.man: Document `papersize'.
6072 2002-05-30 Werner LEMBERG <wl@gnu.org>
6074 * src/devices/grops/TODO: Updated.
6075 * src/devices/grops/grops.man: More info on paper formats.
6076 * man/groff_font.man: Document `paperheight' and `paperwidth'.
6078 2002-05-29 Werner LEMBERG <wl@gnu.org>
6080 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
6081 to list only if srcdir != currdir.
6082 (distfiles): New target.
6084 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
6085 (NOMAKEDIRS): New variable.
6088 2002-05-26 Werner LEMBERG <wl@gnu.org>
6090 Add .output request, similar to \! at top-level.
6092 * src/roff/troff/input.cc (transparent): Remove unused declaration.
6093 (output_request): New function.
6094 (init_input_requests): Add it.
6096 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6099 * Makefile.in (MDEFINES): Add INSTALL_INFO.
6100 (prepare_examples): Fix typo.
6101 * doc/groff.texinfo (@direntry): Fix it.
6103 2002-05-25 Werner LEMBERG <wl@gnu.org>
6105 Including the doc subdir into groff's Makefile system.
6107 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
6108 * configure.ac: Use it.
6109 Generate `doc/Makefile'.
6110 * configure: Regenerated.
6112 * Makefile.in (infodir, INSTALL_INFO): New variables.
6113 (MDEFINES, uninstall_dirs): Updated.
6114 (OTHERDIRS): Add `doc'.
6115 * Makefile.comm (CLEANDIRADD): New variable.
6116 (mostlyclean): Use it.
6118 * doc/Makefile.sub, doc/Makefile.in: New files.
6119 * doc/Makefile: Removed.
6121 * NEWS, INSTALL: Updated.
6123 2002-05-24 Werner LEMBERG <wl@gnu.org>
6125 * doc/homepage.ms: Renamed to ...
6126 * doc/webpage.ms: This.
6129 2002-05-23 Werner LEMBERG <wl@gnu.org>
6131 Integrating the `mom' macro package, contributed by Peter Schaffter
6134 * contrib/mom/*: New subdirectory tree.
6135 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
6136 be used for documentation files.
6137 (MDEFINES, uninstall_dirs): Use them.
6138 (OTHERDIRS): Add contrib/mom.
6139 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
6141 * MANIFEST, NEWS: Updated.
6143 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
6145 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
6146 if at outer level; at start-up we are at outer level.
6148 * src/roff/troff/input.cc (do_suppress): Implement it.
6151 Add option -p to show progress information.
6152 pre-grohtml will now render only one page at a time, reducing the
6153 size of needed disk resources enormously.
6155 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
6156 (imagePageName): New global variable.
6157 (psPageName, show_progress, currentPageNo): New global variables.
6158 (html_system): Close saved stderr and stdout handles.
6159 (write_end_image): Accept a parameter to control \O escape.
6160 (write_start_image): Adapted to new \O meaning.
6161 (char_buffer::write_upto_newline): Updated.
6162 (createAllPages): Replaced with...
6163 (createPage): This new function to create a single page for images.
6164 It uses `psselect' from the psutils package.
6165 (removeAllPages): Removed.
6166 (createImage): Updated.
6167 Handle progress display.
6168 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
6169 (scanArguments): Add option -p.
6170 (makeTempFiles): Updated to create temp files for psPageName and
6172 (removeTempFiles): Removed.
6175 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
6176 html_printer::write_header): Append `\0' to `buffer'.
6177 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
6179 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
6180 Handle `text_emitted'.
6181 (html_text::table_is_void): Slightly rewritten.
6182 (stop): New external symbol.
6183 (html_text::do_push) [DEBUGGING]: Use it and simplify.
6184 (html_text::shutdown): Call `dump_stack'.
6185 (html_text::do_space): Rewritten.
6186 * src/devices/grohtml/grohtml.man: Document -p and the need of
6189 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
6191 Call \O[0] if `ps4html' is active.
6192 * tmac/s.tmac (@EQ, @EN): Handle html better.
6194 * tmac/html.tmac: Don't use black for background colour.
6196 * src/roff/troff/node.cc: Include `div.h'.
6197 (troff_output_file::really_print_line): Don't use `is_on'.
6198 (troff_output_file::word_marker, troff_output_file::flush_tbuf
6199 troff_output_file::check_charinfo,
6200 troff_output_file::put_char_width, troff_output_file::put_char,
6201 troff_output_file::determine_line_limits, troff_output_file::draw,
6202 real_output_file::begin_page, glyph_color_node::tprintf,
6203 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
6205 (troff_output_file::really_on): Call `do_motion'.
6206 (suppress_node::tprint): Use `get_page_number' instead of `%'
6208 Call `reset_output_registers' conditionally on `is_on'.
6210 * doc/groff.texinfo: Document new syntax of \O.
6211 * NEWS, man/groff_diff.man: Updated.
6213 2002-05-22 Werner LEMBERG <wl@gnu.org>
6215 * MORE.STUFF: Add info about David Frey's deroff implementation.
6218 2002-05-16 Werner LEMBERG <wl@gnu.org>
6220 Pic's `with' attribute now accepts positions.
6222 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
6223 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
6225 (object_spec): Add rule for `WITH' and `position'.
6226 (relative_path): Give `corner' the precedence of `CHOP'.
6227 * src/preproc/pic/object.h (path): New members `pos' and
6229 * src/preproc/pic/object.cc: Updated initializers of `path'.
6230 (path::follow): Handle `is_position'.
6232 * doc/pic.ms: Completely updated grammar description.
6233 Many typographical improvements.
6235 2002-05-15 Werner LEMBERG <wl@gnu.org>
6237 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
6238 code of x in range 0-127) also.
6239 * doc/groff.texinfo, man/groff_diff.man: Updated.
6241 Added keywords `north', `south', `east', and `west' for corners
6244 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
6246 (yylex): Handle them.
6247 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
6248 (corner): Handle them.
6250 2002-05-14 Werner LEMBERG <wl@gnu.org>
6252 * src/devices/grops/grops.man: Clarify handling of `download' file.
6254 2002-05-11 Werner LEMBERG <wl@gnu.org>
6256 Adding `warnscale' and `spreadwarn' requests, based on a patch from
6257 Jeffrey Friedl <jfriedl@yahoo.com>.
6259 * src/roff/troff/input.cc (spread_limit, warn_scale,
6260 warn_scaling_indicator): New global variables.
6261 (warnscale_request, spreadwarn_requests): New functions.
6262 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
6263 (init_input_requests): Updated.
6264 (error_type): Add `OUTPUT_WARNING'.
6265 (do_error): Handle it.
6266 (output_warning): New warning function which shows output location.
6267 * src/roff/troff/env.h (spread_limit): New external variable.
6268 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6270 (distribute_space): Emit warning if added space is larger than
6272 (environment::possibly_break_line): Emit warning if a line can't
6273 be adjusted on both sides.
6275 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6277 2002-05-08 Werner LEMBERG <wl@gnu.org>
6279 * src/roff/troff/node.cc (special_node::special_node): Use
6280 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
6281 \X''\% crashes, for example.
6283 * doc/groff.texinfo: Document \! and \? used at top-level.
6285 2002-05-06 Werner LEMBERG <wl@gnu.org>
6287 * src/preproc/pic/pic.man: Fix some keyword syntax.
6288 Other minor typographical fixes.
6290 * src/roff/groff/groff.man: Fix typos.
6292 2002-05-04 Werner LEMBERG <wl@gnu.org>
6294 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6295 (ShortOpt[]): This to avoid problems with refer.
6297 * doc/pic.ms: Fix typo.
6298 Fix pic grammar description.
6300 * tmac/an-old.tmac (ne): Use de1, not de.
6302 2002-05-03 Werner LEMBERG <wl@gnu.org>
6304 * doc/groff.texinfo: Finished separation of glyphs and characters.
6305 Don't use the string `Appendix' for appendix headers (both in
6306 the text and the table of contents).
6307 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6310 Use registers LL and LT (similar to -ms) for controlling the
6311 length of title and line, respectively, in the -man and -mdoc
6314 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6315 (doc-setup-page-layout): Use \n[LL] and \n[LT].
6316 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6318 (an-header, an-p-footer): Use \n[LT].
6319 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6320 doc/groff.texinfo: Document it.
6322 2002-05-02 Werner LEMBERG <wl@gnu.org>
6324 * doc/fdl.texi: New file.
6325 * doc/groff.texinfo: Include it.
6326 Define and use @copying.
6327 Starting with separating glyph, symbol, and character.
6329 2002-04-27 Werner LEMBERG <wl@gnu.org>
6331 * Makefile.in (EXEEXT): Set it.
6332 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6335 * src/include/nonposix.h: Define GS_NAME.
6336 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6338 Some preliminary changes for EMX support under OS/2.
6340 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6341 __EMX__ similar to __MSDOS__.
6342 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6344 2002-04-25 Werner LEMBERG <wl@gnu.org>
6346 * doc/groff.texinfo: Integrated groff_out.man.
6349 2002-04-23 Werner LEMBERG <wl@gnu.org>
6351 * man/groff_out.man: Minor fixes.
6353 2002-04-23 Werner LEMBERG <wl@gnu.org>
6355 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6356 correct page references.
6357 Fixed many index entries.
6359 2002-04-23 Bernd Warken <bwarken@mayn.de>
6361 * man/roff.man: Enlarged.
6363 2002-04-22 Werner LEMBERG <wl@gnu.org>
6365 * doc/groff.texinfo: More examples, other fixes.
6367 2002-04-20 Werner LEMBERG <wl@gnu.org>
6369 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6370 will now form a chain, e.g.
6379 This is for compatibility with plan 9's troff.
6381 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6385 * doc/groff.texinfo: Add documentation of remaining requests and
6388 2002-04-19 Werner LEMBERG <wl@gnu.org>
6390 * doc/groff.texinfo: Add documentation of remaining escapes.
6392 * font/devdvi/generate/tc.map: Remove entry for `sr'.
6393 * font/devdvi/*TC: Regenerated.
6395 2002-04-18 Werner LEMBERG <wl@gnu.org>
6397 * src/roff/troff/input.cc (token::next): Make \H behave consistently
6398 if not in compatibility mode, i.e., increment relative to the
6400 * doc/groff.texinfo: Updated accordingly.
6402 2002-04-17 Werner LEMBERG <wl@gnu.org>
6404 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6406 2002-04-16 Bernd Warken <bwarken@mayn.de>
6408 * src/roff/groff/groff.man: Improve documentation of -P option.
6411 2002-04-15 Werner LEMBERG <wl@gnu.org>
6413 Add new escape \F to switch font family.
6415 * src/roff/troff/input.cc (token::next): Handle \F.
6416 * src/roff/troff/env.cc (environment::set_family): Handle
6418 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6421 2002-04-14 Werner LEMBERG <wl@gnu.org>
6423 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6426 2002-04-13 Werner LEMBERG <wl@gnu.org>
6428 Implement \f[] as an alternative to \fP. Change \mP and \MP to
6429 \m[] and \M[], respectively.
6431 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6432 (symbol::symbol): Handle NULL string and empty string differently.
6433 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6434 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6435 Add optional parameter.
6436 Updated calling functions.
6437 (get_copy, do_glyph_color, do_fill_color, token::next): Use
6439 * src/roff/troff/env.cc (environment::set_font): Ditto.
6441 * src/preproc/pic/troff.cc (troff_output::set_fill,
6442 troff_output::reset_color: Updated.
6444 * tmac/www.tmac: Updated.
6446 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6447 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6450 * tmac/Xps.tmac: Remove some redundant code.
6452 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6453 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6454 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6457 2002-04-13 Bernd Warken <bwarken@mayn.de>
6459 * src/include/printer.h, src/libs/libdriver/printer.cc
6460 (printer::change_fill_color): New member function.
6461 * src/libs/libdriver/input.cc (parse_D_command): Use it.
6463 2002-04-12 Werner LEMBERG <wl@gnu.org>
6465 * doc/groff.texinfo: Completed pass on gtroff reference.
6467 2002-04-11 Werner LEMBERG <wl@gnu.org>
6469 * doc/groff.texinfo: More fixes.
6471 2002-04-11 Bernd Warken <bwarken@mayn.de>
6473 * src/include/color.h: Decorate with `const'.
6476 * src/libs/libgroff.color.cc: Decorate with `const'.
6478 (color::color): Initialize members.
6479 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6480 command according to the documentation.
6482 * man/groff_out.man: Updated.
6485 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
6487 * src/preproc/html/pre-html.cc (write_start_image): Remove
6489 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6491 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6492 \C'hy' caused an assertion failure.
6494 * src/roff/troff/env.cc (environment::environment): Initialize
6496 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6498 2002-04-10 Werner LEMBERG <wl@gnu.org>
6500 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6501 Document pvs request and .pvs register.
6503 2002-04-09 Werner LEMBERG <wl@gnu.org>
6505 * doc/groff.texinfo: Improve and fix documentation of diversions
6508 2002-04-08 Werner LEMBERG <wl@gnu.org>
6510 * doc/groff.texinfo: Fix documentation of drawing functions.
6513 2002-04-07 Werner LEMBERG <wl@gnu.org>
6515 * doc/groff.texinfo: Better documentation of double quotes as
6519 2002-04-06 Werner LEMBERG <wl@gnu.org>
6521 * man/groff_font.man: Document names of special characters better.
6522 * doc/groff.texinfo: Minor improvements.
6524 * tmac/lbp.tmac: Load latin1.tmac.
6525 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6527 * font/devX*/*: Regenerated (all chars > 0x80 removed).
6529 2002-04-05 Werner LEMBERG <wl@gnu.org>
6531 * tmac/tty.tmac: Don't use shc request.
6532 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6535 * man/groff_diff.man: Minor fixes.
6537 * font/devlbp/*: Remove all `charXXX' entities.
6539 * src/libs/libgroff/font.cc (font::~font): Deallocate
6540 `special_device_coding'.
6541 (font::load): Use `new' for allocating `special_device_coding'.
6542 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6543 Removed unused member.
6545 2002-04-05 Werner LEMBERG <wl@gnu.org>
6547 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6548 (resource_manager::do_begin_binary,
6549 resource_manager::do_begin_data): Use it.
6551 * doc/texinfo.tex: Updated to version 4.2.
6553 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6554 (token::zero_width_break): New inline function.
6555 * src/roff/troff/input.cc (token::next): Use it.
6556 (token::description): Updated.
6557 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6558 (token::add_to_node_list, token::process): Use it.
6559 * NEWS, doc/groff.texinfo: Updated.
6561 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6562 * tmac/tty.tmac: Add missing backslash.
6564 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
6566 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6567 `.ps' register instead of `.s' to handle fractional point sizes.
6568 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6569 limit_box::output): Ditto.
6570 * src/preproc/eqn/other.cc (size_box::compute_metrics,
6571 size_box::output): Ditto.
6572 * src/preproc/eqn/over.cc (over_box::compute_metrics,
6573 over_box::output): Ditto.
6574 * src/preproc/eqn/script.cc (script_box::compute_metrics,
6575 script_box::output): Ditto.
6576 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6577 sqrt_box::output): Ditto.
6579 2002-04-03 Michael Selway <mas@ssl.co.uk>
6581 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6584 2002-04-03 Werner LEMBERG <wl@gnu.org>
6586 * doc/homepage.ms: Reduce title size.
6587 * doc/groff.texinfo: Fix documentation of .t register.
6588 Fix handling of colon.
6591 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6592 only if page length is positive to avoid a loop.
6594 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6597 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
6599 * src/include/nonposix.h, src/roff/groff/pipeline.c:
6600 s/__CYGWIN32__/__CYGWIN__/.
6602 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
6604 * doc/gnu.xpm: New image contributed by Emily Mulley.
6605 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6606 (homepage.html): Be dependent on gnu.eps.
6607 * doc/homepage.ms: Updated to new image.
6609 * src/devices/grohtml/post-html.cc (html_printer): New member
6611 (html_printer::flush_sbuf, html_printer::set_char): Set it.
6612 (html_printer::sbuf_continuation): Use it.
6614 2002-03-28 Werner LEMBERG <wl@gnu.org>
6616 * src/libs/libgroff/getopt.c: Updated to latest version.
6618 * tmac/README: More on hyphen.tex license.
6620 2002-03-26 Larry Kollar <kollar@alltel.net>
6622 * doc/groff.texinfo: Add documentation of most missing requests.
6624 2002-03-25 Werner LEMBERG <wl@gnu.org>
6626 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6627 of `+-', `mu', and `di', respectively.
6629 * font/devascii/R.proto, font/devutf8/R.proto,
6630 font/devlatin1/R.proto, font/devhtml/R.proto,
6631 font/devcp1047/R.proto, font/devlpb/*: Add them.
6632 * font/devps/generate/textmap: Ditto.
6633 * font/devps/*: Regenerated.
6634 * font/devlj4/generate/text.map: Add them.
6635 * font/devlj4/*: Regenerated.
6636 * font/devdvi/generate/tc.map: Use them.
6637 * font/devdvi/generate/texsy.map: Add them.
6638 * font/devdvi/*: Regenerated.
6639 * font/devX*/*: Regenerated.
6641 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6642 tmac/tty-char.tmac: Updated.
6644 * NEWS, man/groff_char.man: Updated.
6646 2002-03-24 Werner LEMBERG <wl@gnu.org>
6648 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6649 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6650 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6651 we use `.fchar' in dvi.tmac.
6652 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6653 * tmac/Xps.tmac: Simplify some char definitions.
6654 Add definition for \[f/].
6655 * man/groff_char.man: Updated for new X.tmac.
6657 * tmac/README: New file.
6659 2002-03-23 Phil Lobbes <phil@perkpartners.com>
6661 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6662 internal .y.o rule took precendence over the .y.cc rule, compiling
6663 the yacc files with gcc instead of g++.
6665 2002-03-23 Werner LEMBERG <wl@gnu.org>
6667 * tmac/dvi.tmac: Add replacement font for `CB'.
6669 * tmac/doc.tmac: s/request/macro/ in messages.
6670 (doc-generic-macro): Improve error message.
6671 * tmac/groff_mdoc.man: Minor improvements.
6673 2002-03-22 Werner LEMBERG <wl@gnu.org>
6675 * doc/groff.texinfo: Document possible conflict between `tr' and
6678 2002-03-21 Werner LEMBERG <wl@gnu.org>
6680 Improve handling of hyphenation patterns. It is now possible to
6681 use most of TeX's pattern files unmodified. To make the process
6682 more flexible, a new request `hpfcode' has been added which
6683 provides a character code mapping for the `hpf' request. See
6684 comment before hpf_getc() for more details.
6686 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6688 (read_patterns_file): Additional parameter for exception dictionary.
6689 Extended to recognize \pattern, \hyphenation, and \endinput.
6690 (do_hyphenation_patterns_file): Updated.
6691 * src/roff/troff/env.h (hpf_code_table): New extern.
6693 * src/roff/troff/input.cc (hpf_code_table): New array.
6694 (init_hpf_code_table, hyphenation_patterns_file_code): New
6696 (hyphenation_code): Handle translation from `trin' correctly.
6697 (main, init_input_requests): Updated.
6698 (charinfo::set_translation): Handle hyphenation code also.
6700 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6703 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6704 char' is used for offsets in hyphenation exceptions.
6706 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6708 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6710 2002-03-20 Larry Kollar <kollar@alltel.net>
6712 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6715 2002-03-18 Werner LEMBERG <wl@gnu.org>
6717 * tmac/html.tmac: Fix serious typo.
6719 2002-03-17 Larry Kollar <kollar@alltel.net>
6721 * doc/groff.texinfo: Add documentation for `writec' request.
6723 2002-03-17 Werner LEMBERG <wl@gnu.org>
6725 Added request `hpfa' to append hyphenation patterns.
6727 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6729 (hyphenation_patterns_file): Renamed to...
6730 (do_hyphenation_patterns_file): This.
6731 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6733 (init_hyphen_requests): Updated.
6734 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6736 2002-03-16 Werner LEMBERG <wl@gnu.org>
6738 Added request `writec' in analogy to `tmc'.
6740 * src/roff/troff/input.cc (write_request): Renamed to...
6741 (do_write_request): This.
6742 Added one parameter.
6743 (write_request, write_request_continue): New functions.
6744 (init_input_requests): Updated.
6745 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6747 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6749 * NEWS: Document it.
6751 2002-03-15 Werner LEMBERG <wl@gnu.org>
6753 * man/groff.man: Add writem request.
6755 Add request `trin' (translate input) to make `.asciify' work
6756 correctly. This is necessary since `charXXX' entity names are no
6757 longer hardcoded in font definition files.
6759 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6760 `translate_input' members.
6761 (charinfo::set_asciify_code, charinfo::get_asciify_code,
6762 charinfo::set_translation_input): New methods.
6763 (charinfo::set_translation): Add third argument.
6764 * src/roff/troff/input.cc (charinfo:set_translation): Set
6766 (do_translate): Add second argument.
6767 (translate_input): New function.
6768 (init_input_requests): Updated.
6769 * src/roff/troff/node.cc (glyph_node::asciify,
6770 composite_node::asciify): Use `get_asciify_code'.
6772 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6774 * NEWS, man/groff.man, man/groff_diff.man: Updated.
6776 2002-03-14 Larry Kollar <kollar@alltel.net>
6778 * doc/groff.texinfo: Improve documentation of .RS and .RE.
6780 2002-03-14 Werner LEMBERG <wl@gnu.org>
6782 Add a new request `sizes' similar to the `sizes' command in DESC
6785 * src/roff/troff/env.cc (override_sizes): New function.
6786 (init_env_requests): Use it.
6787 * src/roff/troff/token.h: Export `read_string'.
6788 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6790 2002-03-12 Werner LEMBERG <wl@gnu.org>
6792 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6794 2002-03-10 Werner LEMBERG <wl@gnu.org>
6796 * tmac/pspic.tmac: Add support for -Tdvi.
6797 * tmac/dvi.tmac: Include pspic.tmac.
6798 * src/devices/grodvi/grodvi.man: Document it.
6801 * font/devlj4/generate/Makefile: Fix URL of metric files.
6803 2002-03-09 Werner LEMBERG <wl@gnu.org>
6805 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6807 2002-03-09 Larry Kollar <kollar@alltel.net>
6809 * tmac/groff_ms.man: Add documentation for RS and RE macros.
6811 2002-03-08 Werner LEMBERG <wl@gnu.org>
6813 * doc/groff.texinfo: Fixes for texinfo 4.1.
6815 2002-03-07 Werner LEMBERG <wl@gnu.org>
6817 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6819 Handle CYGWIN properly.
6821 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
6823 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6824 * tmac/lbp.tmac: Add some font translations.
6826 2002-03-02 Werner LEMBERG <wl@gnu.org>
6828 * font/devcp1047/R.proto, font/devlatin1/R.proto,
6829 font/devhtml/R.proto: Remove `charXXX' entries.
6830 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6833 * font/devlj4/generate/text.map: Remove `charXXX' entries.
6834 * font/devlj4/*: Regenerated all font definition files.
6835 * tmac/lj4.tmac: Load latin1.tmac.
6837 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6838 from 2000-06-17: LJ4 metric files are *not* text files.
6840 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6841 register to test for EBCDIC.
6843 2002-03-01 Werner LEMBERG <wl@gnu.org>
6845 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6846 files (as grops already does).
6847 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6849 * src/devices/grops/grops.man: Document comment lines in encoding
6852 * tmac/cp1047.tmac: New file.
6853 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6854 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6855 * tmac/Makefile.sub (NORMALFILES): Updated.
6857 * tmac/ec.tmac: Don't load latin1.tmac again.
6859 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6860 font/devps/generate/dingbats.map,
6861 font/devps/generate/dingbats.rmap, font/devps/text.enc,
6862 font/devps/generate/Makefile (symbolmap): Add header comment.
6863 * font/devps/generate/textmap: Ditto.
6864 Remove `charXXX' entries.
6865 * font/devps/symbolmap: Regenerated.
6866 * font/devps/*: Regenerated all font definition files.
6868 2002-02-28 Werner LEMBERG <wl@gnu.org>
6870 Add color support to grodvi (for drawing colors are currently
6871 translated to gray values).
6873 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6874 (dvi_printer): Add `cur_color' member.
6875 (dvi_printer::set_color): New function.
6876 (draw_dvi_printer): Remove `fill'.
6877 (draw_dvi_printer::fill_next): Pass environment as parameter.
6878 Update code for new color support translated to gray.
6879 (dvi_printer::set_char): Updated.
6880 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6881 changes crossing the page border.
6882 (dvi_printer::draw): Updated.
6883 Remove cases `f' and `F'.
6884 * tmac/dvi.tmac: Add color definitions.
6885 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6887 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6890 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6891 versions of autoconf.
6892 * configure: Updated.
6894 * doc/homepage.ms: Use `.blm'.
6895 * tmac/www.tmac (www-depth): New auxiliary variable.
6896 (www-pop-level): Don't issue HTML tag.
6897 (ULS, ULE, LI): Use absolute indentation.
6899 * src/devices/grops/ps.cc (ps_printer::begin_page,
6900 ps_printer::end_page): Switch forth and back to default color while
6901 starting a new page.
6903 2002-02-27 Werner LEMBERG <wl@gnu.org>
6905 Add EC and TC fonts to devdvi.
6907 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6908 * font/devdvi/generate/cork.map: Renamed to...
6909 * font/devdvi/generate/ec.map: This.
6910 Remove entry for `aq'.
6911 * font/devdvi/generate/tc.map: New file.
6912 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6915 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6916 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6917 * tmac/ec.tmac: New file.
6918 * tmac/Makefile.sub (NORMALFILES): Updated.
6919 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6920 * man/groff_char.man: Check `ECFONTS' register.
6922 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6924 2002-02-26 Werner LEMBERG <wl@gnu.org>
6926 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6927 * font/devdvi/generate/cork.map: Add 'y and 'Y.
6928 * font/devdvi/*: Updated.
6929 * tmac/dvi.tmac: Formatting.
6931 Add font `HBI' for the dvi output.
6932 Add support for font families `T' and `H'.
6934 * font/devdvi/HBI: New file.
6935 * font/devdvi/B: Renamed to ...
6936 * font/devdvi/TB: This.
6937 * font/devdvi/BI: Renamed to ...
6938 * font/devdvi/TBI: This.
6939 * font/devdvi/I: Renamed to ...
6940 * font/devdvi/TI: This.
6941 * font/devdvi/R: Renamed to ...
6942 * font/devdvi/TR: This.
6943 * font/devdvi/H: Renamed to ...
6944 * font/devdvi/HR: This.
6945 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6946 * font/devdvi/generate/Makefile (HBI): New rule.
6948 (R, I, B, BI, H): Renamed to ...
6949 (TR, TI, TB, TBI, HR): This, respectively.
6951 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6952 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6953 Add `styles' and `family' keywords.
6954 * tmac/dvi.tmac: Alias `H' to `HR'.
6955 Add some fspecial requests for italic fonts.
6956 Add TR and TI as special.
6957 Add support for `_' with font CWI.
6959 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6960 operator `:'. Until now, the expression `0:1' would return 2
6963 2002-02-25 Werner LEMBERG <wl@gnu.org>
6965 * man/groff_char.man: Added some missing PS glyph names (from the
6967 * font/devps/generate/textmap, font/devps/symbolmap: Add
6970 * doc/groff.texinfo: Minor additions and fixes.
6971 * man/groff_diff.man: Remove documentation of fp request. This
6972 is already covered in the original troff manual.
6973 Updated to be consistent with other doc files.
6976 2002-02-24 Werner LEMBERG <wl@gnu.org>
6978 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6980 Define new variable OTHERDEVDIRS (containing `font/devlj4
6981 font/devlbp' if not EBCDIC).
6982 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6983 (OTHERDEVDIRS): New variable.
6984 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6985 * configure: Regenerated.
6987 * NEWS, src/devices/grotty/grotty.man: Updated.
6989 2002-02-23 Werner LEMBERG <wl@gnu.org>
6991 * src/roff/troff/input.cc (do_overstrike, do_bracket,
6992 get_line_arg): Honour input level.
6994 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6996 * font/*/*: Implement it in all font files.
6997 * font/devps/generate/textmap, font/devps/generate/symbolchars,
6998 * font/devps/symbolmap: Updated.
6999 * font/devlj4/generate/text.map: Updated.
7000 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
7001 * font/devdvi/generate/texmi.map: Updated.
7003 * font/devutf8/R.proto: Remove all `charXXX' entries.
7004 * font/devutf8/NOTES: Updated.
7006 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
7009 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
7011 * NEWS, man/groff_char.man: Updated.
7013 2002-02-21 Phil Lobbes <phil@perkpartners.com>
7015 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
7017 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7019 * src/roff/grog/grog.pl: Fix computation of $refer.
7021 2002-02-19 Werner LEMBERG <wl@gnu.org>
7023 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
7024 `snprintf' and `vsnprintf'.
7026 * src/include/htmlindicate.h: Renamed to...
7027 * src/include/htmlhint.h: This.
7028 * src/include/Makefile.sub: Updated.
7029 * src/preproc/eqn/main.cc: Updated.
7031 2002-02-18 Werner LEMBERG <wl@gnu.org>
7033 * man/roff.man, man/groff_out.man, man/groff.man,
7034 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
7035 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
7037 * win32-diffs: Updated.
7039 2002-02-17 Werner LEMBERG <wl@gnu.org>
7041 * doc/Makefile (clean): Add *.eps.
7042 (MEMACROS): Removed.
7043 (TFLAG): New variable.
7046 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
7048 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
7050 * tmac/www.tmac: Use dummy diversion while resetting and disabling
7052 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
7054 * src/roff/troff/troff.man: Fix order of parameter description.
7058 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
7060 Simplify image handling for grohtml.
7063 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
7065 (html_text::dump_stack): Don't emit newline while debugging.
7066 (html_text::do_push) [DEBUGGING]: Print more info.
7067 (html_text::check_emit_text): Fix handling of <p>.
7068 * src/devices/grohtml/html.h: Updated.
7069 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
7070 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
7071 send its data to stderr also.
7073 (simple_output::space_or_newline) [DEBUGGING]: Removed.
7074 * src/devices/grohtml/post-html.cc (html_printer::do_links,
7075 html_printer::html_printer): Remove `DEBUGGING' conditionals.
7077 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
7079 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
7080 is_inline_image): Removed.
7081 (html_begin_suppress, html_end_suppress): Don't take a parameter.
7082 (graphic_start, graphic_end): Removed.
7083 * src/include/htmlindicate.h: Updated.
7084 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
7085 (macroset_template): New global variable.
7086 (makeFileName): Use `macroset_template'.
7087 (write_end_image): Don't take a parameter.
7089 (write_start_image: Don't emit newline.
7090 (char_buffer::write_upto_newline): Updated.
7091 (char_buffer::skip_to_newline): Renamed to ...
7092 (char_buffer::skip_until_newline): This.
7094 (char_buffer::write_file_troff, char_buffer::write_file_html):
7096 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
7097 (removeAllPages): Remove `DEBUGGING' conditionals.
7098 (addRegDef, dump_args): New functions.
7099 (char_buffer::do_html, char_buffer::do_image): Handle
7100 `www-image-template' command line variable.
7101 Add more debugging code.
7102 (addps4html): Removed.
7103 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
7105 * src/preproc/eqn/main.cc: Include `ctype.h'.
7106 (suppress_html): Removed.
7108 (inline_equation): Use `html_begin_suppress' and
7109 `html_end_suppress'.
7110 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
7111 (troff_output::start_picture, troff_output::finish_picture):
7113 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
7114 (process_input_file): Updated.
7116 * src/roff/troff/div.cc (page_number): Set page number only if the
7117 `ps4html' register isn't defined.
7118 * src/roff/troff/input.cc (image_no): New external variable.
7119 (do_suppress): Use it.
7120 * src/roff/troff/node.h (suppress_node::image_id): New member.
7121 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
7122 (suppress_node::suppress_node): Initialize `image_id' member.
7123 (suppress_node::same): Handle `image_id' also.
7124 (suppress_node::copy): Updated.
7125 (last_image_id): New global variable.
7126 (suppress_node::tprint): Use it.
7128 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
7130 * tmac/pspic.mac (PSPIC): Fix html support.
7131 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
7132 * tmac/www.tmac (www-image-template): Set up.
7133 (HTMLINDEX): Renamed to...
7135 (BODYCOLOR): Renamed to...
7137 (BACKGROUND): Renamed to...
7139 (URL): Change order of parameters for consistency.
7140 (MAILTO): Renamed to...
7142 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
7143 (IMG, PIMG, MPIMG): This.
7144 (HTML-H-BEGIN, HTML-H-END): Renamed to...
7146 (LINKS): Renamed to...
7148 (LINE): Renamed to...
7150 (NO-AUTO-RULE): Renamed to...
7152 (HTML-TL): Renamed to...
7154 (UL-BEGIN, UL-END): Renamed to...
7156 (DROPCAP): Renamed to...
7158 (TS, TE, EQ, EN): Provide default definitions.
7159 (www-make-unique-name): Updated.
7160 (HTML-IMAGE-INLINE): Fix typo.
7161 * tmac/groff_www.man: Updated.
7163 * doc/Makefile (homepage.html): Add option -r to grohtml.
7164 Use shortened image name.
7165 * doc/groff.texinfo: Updated info on grohtml strings and macros.
7166 * doc/homepage.ms: Updated and extended.
7168 2002-02-14 Werner LEMBERG <wl@gnu.org>
7170 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
7172 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
7173 SGR_BACK_DEFAULT_COLOR): Replaced with ...
7174 (tty_printer::put_color): Use it.
7175 (ttr_printer::end_page): Simplify.
7177 2002-02-13 Werner LEMBERG <wl@gnu.org>
7179 * tmac/groff_tmac.man: Moved to...
7180 * man/groff_tmac.man: This place.
7181 * tmac/Makefile.sub, man/Makefile.sub: Updated.
7183 2002-02-12 Werner LEMBERG <wl@gnu.org>
7185 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
7186 $(COMPILE.c) to not include groff's assert.h.
7188 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
7190 * NEWS, src/drivers/grotty/grotty.man: Document it.
7192 2002-02-11 Werner LEMBERG <wl@gnu.org>
7194 * src/libs/snprintf/snprintf.c: Updated to latest version
7197 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
7198 test whether there is `.]' also.
7199 Don't check for spaces after `.['.
7200 * src/roff/grog/grog.sh: Do the same.
7202 2002-02-10 Werner LEMBERG <wl@gnu.org>
7206 * src/libs/libgroff/illegal.cc: Renamed to ...
7207 * src/libs/libgroff/invalid.cc: This.
7208 (illegal_char_table): Renamed to ...
7209 (invalid_char_table): This.
7210 * src/libs/libgroff/Makefile.sub: Updated.
7211 * win32-diffs: Updated.
7213 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
7214 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
7215 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
7216 font::load), src/preproc/eqn/main.cc (read_line, main),
7217 src/preproc/eqn/lex.cc (file_input::read_line),
7218 src/preproc/pic/lex.cc (file_input::read_line,
7219 simple_file_input::get, simple_file_input::peek),
7220 src/preproc/pic/main.cc (top_input::get, top_input::peek),
7221 src/preproc/pic/pic.man, src/preproc/refer/main.cc
7222 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
7223 do_bib), src/preproc/tbl/main.cc (table_input::get),
7224 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
7225 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
7226 do_zero_width, read_request, encode_char, ps_get_line,
7227 transparent_file, get_char_for_escape_name, transparent_translate,
7228 asciify, input_char_description, read_string, set_string),
7229 src/roff/troff/env.cc (environment::add_html_tag),
7230 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
7232 * src/include/lib.h: Updated.
7234 * src/preproc/eqn/eqn.cc: Removed.
7238 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
7240 2002-02-09 Werner LEMBERG <wl@gnu.org>
7242 * doc/gnu.xpm: New image.
7243 * doc/Makefile (DOCS): Add homepage.ps.
7244 Add rules for converting xpm->png and xpm->eps.
7245 Use `gnu.{xpm,eps}' as image names.
7246 * doc/homepage.ms: Updated.
7248 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
7250 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
7251 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
7252 Remove calls to `B1' and `B2'
7253 (PNG-IMAGE): New macro for inclusion of images in PNG format.
7254 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
7255 auxiliary variables for MARGIN-PNG-IMAGE.
7256 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
7257 auxiliary macros for MARGIN-PNG-IMAGE.
7258 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
7260 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
7261 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
7262 (DROPCAP): New macro to produce dropcap characters.
7263 (www-do-image): Renamed back to...
7264 (HTML-DO-IMAGE): This.
7265 Updated all callers.
7267 * doc/Makefile (gnubw.eps): Updated.
7268 * doc/homepage.ms: Updated.
7270 2002-02-08 Werner LEMBERG <wl@gnu.org>
7272 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7273 Added `linethick' to table in section `Style Variables'.
7275 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
7277 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7279 2002-02-07 Werner LEMBERG <wl@gnu.org>
7281 Adding options -C (compatibility mode) and -c (grotty's old output
7284 * src/roff/nroff/nroff.sh: Implement it.
7286 * NEWS, src/roff/nroff/nroff.man: Updated.
7288 * PROBLEMS: Document bison 1.32 bug.
7290 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7292 * src/roff/troff/node.cc (make_tfont): Define it earlier.
7293 * src/roff/troff/div.h: Add prototype for `end_diversions'.
7294 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7295 * src/roff/troff/env.h: Add prototype for `title'.
7297 Adding EBCDIC support to grotty.
7299 * src/devices/grotty/tty.cc (CSI): New macro.
7300 (SGR_*, tty_printer::put_color): Use it.
7302 2002-02-06 Werner LEMBERG <wl@gnu.org>
7304 Implementing color support in grotty. The new switch -c activates
7305 the old drawing scheme, disabling color at the same time. The new
7306 switch `-i' selects italic instead of underlining (SGR only).
7308 * src/devices/grotty/tty.cc (putstring): New define instead of
7309 `fputs'. Updated all callers.
7310 (old_drawing_scheme): New global variable.
7311 (COLOR_CHANGE): New enum value.
7312 (SGR_*): New defines containing color handling escape sequences.
7313 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7314 (glyph): New members `back_color_idx' and `fore_color_idx'.
7315 (glyph::order): Add COLOR_CHANGE.
7316 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7317 `is_underline', `is_bold', `cu_flag', `tty_colors'.
7318 New methods `make_underline', `make_bold', `color_to_idx',
7319 `change_color', `put_color'.
7320 (cu_flag): Moved into `tty_printer' class.
7321 (tty_printer::tty_printer): Initialize colors.
7322 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7323 tty_printer::draw, tty_printer::end_page): Handle colors also.
7324 (main): Add options `-c' and `-i'.
7326 * NEWS, src/devices/grotty/grotty.man: Updated.
7328 * src/include/errarg.h (errarg): Add support for `unsigned int'.
7329 * src/libs/libgroff/errarg.c: Implement it.
7331 * src/include/printer.h (printer): Add `change_color' method
7332 (currently used by grotty only).
7333 * src/libs/libdriver/printer.cc: Implement it.
7334 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7335 call to `pr->change_color'.
7337 * src/roff/troff/node.cc (troff_output_file::fill_color,
7338 troff_output_file::glyph_color): Call `do_motion'.
7340 * tmac/tty.tmac: Add color definitions.
7342 * src/roff/groff/groff.man: Minor fixes.
7344 2002-02-05 Bernd Warken <bwarken@mayn.de>
7346 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7347 it. This is a preparation for future changes.
7349 2002-02-05 Werner LEMBERG <wl@gnu.org>
7351 * src/roff/troff/input.cc (process_input_stack): Fix the case
7352 where leading spaces are followed by \f or \s; previously, an
7353 incorrect space width has been used.
7355 * doc/roff.man (quoted_char): Fix argument.
7356 (comment): Define string.
7358 2002-02-04 Larry Kollar <kollar@alltel.net>
7360 * doc/groff.texinfo: More fixes.
7362 2002-02-04 Werner LEMBERG <wl@gnu.org>
7364 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7365 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7366 `restore_compatibility' before `output_string' -- the LINE_STRING
7367 register now already contains proper switches from and to
7370 * man/groff_char.man: Add Euro symbol.
7371 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7372 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7373 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7376 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7378 (.texinfo.html): Add support for texinfo->html.
7380 2002-02-03 Werner LEMBERG <wl@gnu.org>
7382 Added three new requests `ds1', `as1', and `ami'. The former two
7383 are equivalent to `ds' and `as' with the difference that
7384 compatibility mode is saved on entry, switched off during string
7385 expansion, and restored on exit. The latter is the pendant to `dei'
7388 (do_define_string): Use `define_mode' and `calling mode'.
7389 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7390 end of string, respectively.
7391 (define_string, append_string): Use `calling_mode'.
7392 (define_nocomp_string, append_nocomp_string,
7393 define_string_indirect): New functions.
7394 (init_input_requests): Updated.
7395 * NEWS, man/groff_diff.man, man/groff.man: Document it.
7397 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7398 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
7399 mm macro package accesses this string register directly.
7400 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7402 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
7405 2002-02-02 Larry Kollar <kollar@alltel.net>
7407 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7409 2002-01-31 Werner LEMBERG <wl@gnu.org>
7411 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7413 2002-01-31 Bernd Warken <bwarken@mayn.de>
7415 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7416 * man/groff_out.man: Revised and updated.
7418 2002-01-30 Bernd Warken <bwarken@mayn.de>
7420 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7421 out the unused `{' and `}' commands. Undefined by default.
7422 (IntArray): Make `data' private.
7423 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7424 new methods instead.
7425 (skip_line_D, skip_to_end_of_line): New functions.
7426 (get_D_fixed_args): Use `skip_line_D'.
7427 Changed to handle dummy odd arguments by ...
7428 (get_D_fixed_args_odd_dummy): This new function.
7429 (get_D_variable_args): Split some code into ...
7430 (get_possibly_integer_args): This new function.
7431 (send_draw): Use more `const'.
7432 (delete_current_env): New function.
7433 (position_to_end_of_args): Use `size_t'.
7435 (send_draw): Updated.
7436 (parse_D_command): Handle `c', `C', and `t' better.
7440 2002-01-29 Werner LEMBERG <wl@gnu.org>
7443 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7444 @Def...ListEnd which replaces @Def...x. This is necessary to get
7445 proper HTML output -- see the comment in the file for more
7449 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
7451 Fixes to make color changes of 2002-01-21 work with grohtml.
7453 * src/devices/grohtml/post-html.cc (style): Updated.
7454 (html_printer): Remove unused methods.
7455 (html_printer::do_font, html_printer::draw, html_printer::set_char,
7456 html_printer::special): Updated.
7457 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7458 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7459 Added some debugging code.
7460 (html_text::start_tag): Updated.
7461 (html_text::do_push): New method.
7462 (html_text::push_para): Call it.
7463 Add method for handling color.
7464 (html_text::do_color): Updated.
7465 (html_text::shutdown): Handle color.
7466 * src/devices/grohtml/html-text.h (tag_definition): New member
7470 2002-01-28 Werner LEMBERG <wl@gnu.org>
7472 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7474 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
7476 Add two switches -a and -g to control the antialiasing bits for
7477 text and graphics, respectively.
7479 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7481 * src/devices/grohtml/grohtml.man: Document them.
7482 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7484 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7485 (setupAntiAlias): New function.
7486 (createAllPages): Updated.
7487 (scanArguments): Handle `-a' and `-g'.
7488 (main): Call `setupAntiAlias'.
7491 2002-01-27 Werner LEMBERG <wl@gnu.org>
7493 * doc/groff.texinfo (Def*): Call index function after deffn.
7495 * tmac/html.tmac: Call `nroff' request.
7497 2002-01-26 Larry Kollar <kollar@alltel.net>
7499 * tmac/groff_ms.man: Add some omissions.
7501 2002-01-25 Larry Kollar <kollar@alltel.net>
7503 * tmac/groff_ms.man: Typographical improvements.
7505 2002-01-25 Werner LEMBERG <wl@gnu.org>
7507 * doc/groff.texinfo: Updated version and copyright.
7508 * src/devices/grops/grops.man: Updated.
7510 * tmac/groff_tmac.man: Fix `ig' macro.
7512 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7514 Use `.ne' unconditionally everywhere.
7515 (TS): Only insert some vertical space. Doing a page break is no
7516 longer necessary due to the redefinition of the `ne' request.
7518 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7519 warning for unknown subcommands but parse and pass them to the
7522 2002-01-24 Werner LEMBERG <wl@gnu.org>
7524 * tmac/groff_www.man, NEWS: Fix typos.
7526 2002-01-21 Werner LEMBERG <wl@gnu.org>
7528 Complete revision of color support:
7530 Adapt programs to the new libdriver/input.cc.
7532 Color spaces are no longer converted to RGB but transferred as-is
7533 in the troff intermediate output format.
7535 Handle default color gracefully. troff now supports a `default'
7536 color (which can't be changed).
7538 grops will now use the proper color space functions if available.
7542 Note that currently grohtml doesn't handle colors properly. This
7545 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7546 (ui_to_a): New function.
7547 * src/include/lib.h: Updated.
7549 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7550 (color): Simplified; removed all `double' members and methods.
7551 A new array `components' now holds the color parameters.
7552 (color::is_default, color::get_components): New methods.
7553 (color::operator==, color:operator!=): New.
7554 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7555 to make access to the `components' array more comprehensible.
7556 * src/libs/libgroff/color.cc: Implement new color support.
7557 (atoh): Small fixes.
7558 (color::read_encoding): Simplified for new troff intermediate color
7560 (default_color): New global variable.
7562 * src/roff/troff/input.cc (default_symbol): New global variable.
7563 (lookup_color): Use it.
7564 (default_black): Removed.
7565 (do_glyph_color, do_fill_color): Simplified.
7566 (define_color): Handle default color.
7568 (do_if_request): Handle default color.
7569 * src/roff/troff/env.cc (environment::environment): Initialize
7570 colors with `default_color'.
7571 * src/roff/troff/node.cc (troff_output_file::put): Add method
7573 (troff_output_file::hex): Removed.
7574 (troff_output_file::fill_color, troff_output_file::glyph_color):
7575 Updated to include/color.h and libdriver/input.cc.
7577 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7578 fill color properly (identically to the outline color). \D'f...'
7579 doesn't work any more.
7580 All function calls to it updated.
7582 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7584 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7587 * src/devices/grops/ps.cc (ps_output::put_color): New method.
7588 (ps_printer::sbuf_color): Make a real member instead of pointer.
7589 (ps_printer::fill_color, ps_printer::output_color): Removed.
7590 (ps_printer::ps_printer): Updated.
7591 (ps_printer::set_char): Ditto.
7592 (ps_printer::set_color): Use various color schemes.
7593 Use `put_color' method.
7594 (ps_printer::flush_sbuf): Don't set color.
7595 (ps_printer::fill_path): Take `environment' as parameter.
7596 Simplify color handling.
7597 (ps_printer::set_line_thickness): Renamed to ...
7598 (ps_printer::set_line_thickness_and_color): This (and updated).
7599 (ps_printer::set_color): Change second parameter from `complete'
7600 to `fill' which better describes what it does.
7601 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7602 and text in the right order.
7604 Remove branches for `f' and `F'; this is handled by
7606 * src/devices/grops/ps.h: Updated.
7607 * font/devps/prologue (FL): Redefined.
7608 ({F,C}r,k,g: New color functions (with and without filling).
7610 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7611 * man/groff_diff.man, man/groff.man, man/groff_out.man,
7612 doc/groff.texinfo, NEWS: Updated.
7614 2002-01-20 Bernd Warken <bwarken@mayn.de>
7616 * src/libs/libdriver/input.cc: Completely rewritten. See comments
7617 in this file for what has been changed.
7619 2002-01-19 Werner LEMBERG <wl@gnu.org>
7621 * test-groff: Fix GROFF_FONT_PATH.
7622 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7623 is read before .TH or .Dd is parsed.
7625 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
7627 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7628 quadrant boundaries.
7630 2002-01-18 Werner LEMBERG <wl@gnu.org>
7632 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
7635 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
7637 * tmac/doc.common: Initialize %I register for the %I macro to
7638 avoid (harmless) warning.
7639 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7640 when in the SYNOPSIS section.
7642 2002-01-17 Bruno Haible <haible@clisp.cons.org>
7644 * src/preproc/pic/lex.cc (get_token): Fix typo.
7646 2002-01-17 Werner LEMBERG <wl@gnu.org>
7648 * devices/grops/ps.cc: Fix incorrectly applied last patch.
7650 2002-01-17 Larry Kollar <kollar@alltel.net>
7652 * tmac/groff_ms.man: Completely rewritten.
7654 2002-01-16 Werner LEMBERG <wl@gnu.org>
7656 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7658 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
7660 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7662 (ps_printer::draw): Ditto.
7664 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
7666 * tmac/groff_mdoc.man: Minor fixes.
7668 2002-01-13 Werner LEMBERG <wl@gnu.org>
7670 * man/groff_out.man: Some fixes.
7672 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
7674 * doc/pic.ms: Fix typos.
7676 2002-01-12 Werner LEMBERG <wl@gnu.org>
7678 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7680 2002-01-10 Werner LEMBERG <wl@gnu.org>
7682 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7686 2002-01-09 Bernd Warken <bwarken@mayn.de>
7688 * man/groff_out.man: Revised.
7689 * man/roff.man: Minor fixes.
7690 * src/roff/troff/troff.man: Some reordering.
7692 2002-01-09 Werner LEMBERG <wl@gnu.org>
7694 * tmac/an-old.tmac: Add dummy macros for equation support.
7696 2002-01-07 Werner LEMBERG <wl@gnu.org>
7698 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7700 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
7702 * tmac/groff_man.man: Small improvements.
7704 2002-01-07 Bernd Warken <bwarken@mayn.de>
7706 * man/groff_diff.man: Revised.
7708 2002-01-06 Werner LEMBERG <wl@gnu.org>
7710 * tmac/www.tmac: Remove extraneous backslash.
7712 2002-01-06 Bernd Warken <bwarken@mayn.de>
7714 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7716 2002-01-05 Werner LEMBERG <wl@gnu.org>
7718 Integrated groffer, contributed by Bernd Warken.
7720 * contrib/groffer/*: New.
7721 * Makefile.in, NEWS: Updated.
7723 2002-01-04 Werner LEMBERG <wl@gnu.org>
7725 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7726 registers defined in macro packages.
7727 Revising the ms part.
7729 2002-01-04 Larry Kollar <kollar@alltel.net>
7731 * doc/groff.texinfo: Add documentation for ms macros.
7733 2002-01-02 Werner LEMBERG <wl@gnu.org>
7735 First step in adding PS support for the Euro symbol. `eu' is the
7736 official Euro logo, `Eu' is a font-specific glyph variant.
7738 * font/devps/text.enc: Add `Euro' at position 9.
7739 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7740 * font/devps/symbolmap: Regenerated.
7744 2002-01-02 Bernd Warken <bwarken@mayn.de>
7746 * man/roff.man: Revised.
7748 2002-01-01 Bernd Warken <bwarken@mayn.de>
7750 * src/roff/groff/groff.man: Completely rewritten.
7752 2001-12-31 Werner LEMBERG <wl@gnu.org>
7754 * doc/Makefile: Updated.
7756 2001-12-30 Werner LEMBERG <wl@gnu.org>
7758 * tmac/www.tmac: Make all names of internal macros/registers/strings
7759 lowercase, and prepend `www-'.
7760 Other minor changes.
7761 * src/roff/troff/troff.man: Add preprocessor string at BOF.
7763 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
7765 Implement option `-b' in grohtml to set the HTML background colour.
7767 * src/devices/grohtml/post-html.cc (default_background): New global
7769 (html_printer::html_printer): Initialize `background' to
7770 `default_background'.
7771 (main): Implement option `-b'.
7773 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7775 * src/devices/grohtml/grohtml.man: Updated.
7776 * doc/Makefile (.ms.html): Use `-b'.
7777 * tmac/html.tmac: Don't set background color.
7779 Add new grohtml tag `.html-tl'.
7781 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7783 (title_desc::title_desc): Updated.
7784 (html_printer::troff_tag): Handle `.html-tl'.
7785 (html_printer::write_title): Use `with_h1'.
7786 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7787 (HTML-TL): New macro.
7789 Add support for unordered lists in HTML.
7791 * tmac/www.tmac (www-level): New auxiliary register.
7792 (www-level1, www-level2, www-level3): New auxiliary strings.
7793 (www-push-level, www-pop-level): New auxiliary macros
7794 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7798 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7799 (DEFAULT_VERTICAL_OFFSET): Removed.
7800 (IMAGE_BOARDER_PIXELS): Set to 0.
7801 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7802 (vertical_offset): Initialize with 0.
7803 (gsPaper): New global variable.
7804 (get_resolution): Scan for and return unsigned int.
7805 (get_papersize): New function to get paper length from devps/DESC.
7806 (determine_vertical_offset): New function.
7807 (createAllPages): Produce gray-level images and use proper page
7809 (createImage): Use `-quiet' option of pnmcrop.
7810 (addZ): Fix passing of `-Z'.
7811 (scanArguments): Fix handling of `-o'.
7812 (main): Call `determine_vertical_offset'.
7813 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7816 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7817 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7818 glyph descenders properly.
7820 * doc/homepage.ms: Include `gnubw.eps'.
7821 * doc/Makefile (gnubw.eps): New rule.
7822 (homepage.html): Depend on `gnubw.eps'.
7824 2001-12-25 Werner LEMBERG <wl@gnu.org>
7826 * src/roff/troff/input.cc (default_black): Fix return value.
7828 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
7830 * tmac/doc-common (Dt): Change output of architecture strings.
7831 Do some syntax cleanup.
7832 * tmac/groff_mdoc.man: Updated.
7834 2001-12-23 Werner LEMBERG <wl@gnu.org>
7836 Adding an `itc' request (input line trap accepting \c).
7838 * src/roff/troff/env.h (environment): New member
7839 `continued_input_trap'.
7840 Make `do_input_trap' a friend function instead of `input_trap'.
7841 * src/roff/troff/env.cc (environment::environment,
7842 environment::copy): Updated.
7843 (environment::newline): Implement it.
7844 (do_input_trap): New function.
7845 (input_trap): Call `do_input_trap'.
7846 (input_trap_continued): New function.
7847 (init_env_requests): Updated.
7848 * src/roff/troff/TODO: Updated.
7850 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7853 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7855 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
7857 * tmac/doc-common, tmac/doc-syms: Small updates.
7859 2001-12-22 Colin Watson <cjwatson@debian.org>
7861 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7863 2001-12-22 Bernd Warken <bwarken@mayn.de>
7865 * MANIFEST: New file.
7867 2001-12-22 Werner LEMBERG <wl@gnu.org>
7869 * src/preproc/grn/grn.man: Updated.
7871 2001-12-22 Solar Designer <solar@openwall.com>
7873 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7876 2001-12-19 Werner LEMBERG <wl@gnu.org>
7878 Implement a fallback character request `.fchar'.
7880 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7881 (is_fallback): New inline function.
7882 * src/roff/troff/input.cc (do_define_character): New function.
7883 (define_character): Call `do_define_character'.
7884 (define_fallback_character): New function.
7885 (init_input_requests): Add `fchar'.
7886 (charinfo::charinfo): Updated.
7887 (charinfo::set_macro): New argument to set `fallback' flag.
7888 * src/roff/troff/node.cc (make_glyph_node, make_node,
7889 node::add_char): Check `fallback' flag.
7890 * NEWS, man/groff_diff.man, man/groff_man: Updated.
7892 2001-12-16 Werner LEMBERG <wl@gnu.org>
7894 * groff.texinfo: Document exact search algorithm for glyphs.
7896 2001-12-15 Werner LEMBERG <wl@gnu.org>
7898 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7899 the left side of $(MANPAGES) rule to make it always non-empty.
7901 2001-12-14 Werner LEMBERG <wl@gnu.org>
7903 * src/roff/troff/input.cc (default_black): Define default color
7904 `black' if not yet defined.
7906 2001-12-13 Werner LEMBERG <wl@gnu.org>
7908 Implement new string-valued register `.fn' to return the current
7909 real (internal) font name.
7911 * env.cc (environment::get_font_name_string): New function.
7912 (init_env_requests): Add `.fn' register.
7913 * env.h (environment): Updated.
7914 * node.cc (font_info): Make `get_font_name' a friend.
7915 (get_font_name): New function.
7918 * man/groff_diff.man, man/groff.man, NEWS: Updated.
7920 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7922 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7924 2001-12-12 Werner LEMBERG <wl@gnu.org>
7926 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7928 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
7930 * man/groff_diff.man: Adding documentation for \O.
7932 2001-12-10 Werner LEMBERG <wl@gnu.org>
7934 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7935 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7937 2001-12-09 Werner LEMBERG <wl@gnu.org>
7939 * man/roff.man: Revised.
7940 * src/roff/groff/groff.man: Replace man page references with a
7941 pointer to roff.man.
7943 2001-12-09 Bernd Warken <bwarken@mayn.de>
7945 * man/roff.man: Completely rewritten.
7947 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7949 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7951 2001-12-05 Werner LEMBERG <wl@gnu.org>
7953 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7955 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7956 order of initializers.
7959 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
7961 * doc/groff.texinfo: Fix documentation of \O.
7963 * src/devices/grohtml/html-text.cc (html_text::do_indent,
7964 html_text::do_table, html_text::do_emittext, html_text::do_para):
7965 Use `const' for first argument.
7966 (html_text::do_table): Use cast.
7967 * src/devices/grohtml/html-text.h: Updated.
7968 * src/devices/grohtml/output.cc (simple_output::put_string): Add
7969 method for `const string &s'.
7970 * src/devices/grohtml/html.h: Updated.
7971 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7972 (ANCHOR_TEMPLATE): Modified.
7973 (manufacture_headings): New global variable to handle `-h' option.
7974 (is_subsection): Removed.
7975 (char_buffer::add_string): Add `const' to first argument.
7976 Protect against invalid string argument.
7977 Add method for `const string &s'.
7978 (text_glob): Completely redesigned.
7979 (page): Use `const' for strings and remove string length variable.
7980 (page::add_html): Removed.
7981 (page::add_end_encode): New member function.
7982 (to_unicode): Moved upwards.
7983 (title_desc, header_desc): Updated.
7984 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7986 (html_printer::is_bold, html_printer::make_bold): New member
7988 (html_printer::end_of_line): Updated.
7989 (generate_img_src, html_printer::do_auto_image,
7990 html_printer::do_title, html_printer::write_header,
7991 html_printer::determine_header_level, html_printer::do_heading,
7992 html_printer::do_linelength, html_printer::do_pageoffset,
7993 html_printer::do_indentation, html_printer::do_tempindent,
7994 html_printer::do_indentedparagraph, html_printer::do_break,
7995 html_printer::flush_sbuf, get_html_translation,
7996 html_printer::begin_page, html_printer::special): Rewritten to get
7997 rid of static string length limit.
7998 (html_printer::troff_tag): Added `.no-auto-rule'.
7999 (html_printer::flush_globs): Small fix.
8000 (html_printer::determine_space): Don't compute `space_width'.
8001 (html_printer::translate_to_html): Renamed to ...
8002 (html_printer::emit_html): This (with updates).
8003 (html_printer::write_header): Implement `-h' option.
8004 (html_printer::draw): Remove commented-out code. Handle `F'
8006 (html_printer::add_char_to_sbuf): Removed.
8007 (html_printer::add_to_sbuf): Rewritten.
8008 (html_printer::sbuf_continuation): Fixed.
8009 (html_printer::seen_backwards_escape, reverse,
8010 html_printer::remove_last_char_from_sbuf): Removed.
8011 (char_translate_to_html, str_translate_to_html): Removed.
8012 (html_printer::overstrike): New function member.
8013 (html_printer::set_char): Use it.
8014 (html_printer::do_body): New function member.
8015 (html_printer::~html_printer): Use it.
8016 (main): Handle `-h' option.
8018 * src/devices/grohtml/grohtml.man: Document -h switch.
8020 * src/preproc/html/pre-html.cc: Include searchpath.h
8021 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
8022 (get_resolution): New function.
8023 (checkImageDir): Use `0777' permissions in mkdir()
8024 (write_start_image): Rewritten to use `\O[5...]'.
8025 (createImage, generateImages): Updated.
8026 (main): Handle `F' and `h' options.
8027 Use `get_resolution'.
8029 * src/roff/troff/input.cc (begin, end, image): Removed.
8030 (do_suppress): Take parameter.
8031 Handle modified syntax of `\O'.
8032 (token::next): Updated.
8033 (init_markup_requests): Removed.
8036 * src/roff/troff/div.h: Add declaration for begin_page().
8038 * tmac/color-html.tmac: Removed. Contents moved to...
8039 * tmac/html.tmac: Here. Set background color.
8040 * tmac/color.tmac: Removed. Contents moved to...
8041 * tmac/ps.tmac: Here.
8042 * tmac/www.tmac: Remove the title command when generating images
8044 (NO_AUTO_RULE): New macro.
8045 (HTML_DO_IMAGE): Use revised `\O' escapes.
8046 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
8048 2001-12-02 Werner LEMBERG <wl@gnu.org>
8050 * tmac/groff_mdoc.man: Fix typo.
8052 2001-12-01 Colin Watson <cjwatson@debian.org>
8054 * man/roff.man: Fix typo.
8056 2001-11-29 Werner LEMBERG <wl@gnu.org>
8058 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
8061 * src/roff/troff/input.cc (read_draw_node): Emit error message if
8062 more than one argument to \D'f ...'.
8064 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
8066 2001-11-28 Werner LEMBERG <wl@gnu.org>
8068 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
8071 * tmac/groff_man.man: Minor cosmetic fix.
8073 2001-11-27 Werner LEMBERG <wl@gnu.org>
8075 * src/roff/groff/groff.man, tmac/groff_tmac.man,
8076 tmac/groff_www.man: s/mwww/www/.
8078 2001-11-26 Werner LEMBERG <wl@gnu.org>
8080 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
8081 * configure: Regenerated.
8082 * win32-diffs: Updated.
8084 * tmac/groff_mwww.tmac: Renamed to ...
8085 * tmac/groff_www.tmac: This.
8086 * tmac/mwww.tmac: Removed.
8087 * NEWS, tmac/Makefile.sub: Updated.
8089 2001-11-21 Werner LEMBERG <wl@gnu.org>
8091 * doc/groff.texinfo: Improve documentation of the `\v' escape.
8092 Fix explanation of `\D' and `rt'.
8094 2001-11-20 Werner LEMBERG <wl@gnu.org>
8096 * tmac/an-old.tmac (an-header): Set header length equal to page
8098 * doc/groff.texinfo: Improve documentation of `ne' request. Other
8102 2001-11-19 Werner LEMBERG <wl@gnu.org>
8104 * NEWS, man/Makefile.sub: Updated.
8106 2001-11-19 Bernd Warken <bwarken@mayn.de>
8108 * man/ditroff.man: New file.
8110 2001-11-17 Werner LEMBERG <wl@gnu.org>
8112 * man/groff_differences.man: Renamed to ...
8113 * man/groff_diff.man: This. Updated.
8114 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
8116 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
8117 * src/preproc/html/pushback.cc: This. Updated.
8118 * src/preproc/html/pushbackbuffer.h: Renamed to ...
8119 * src/preproc/html/pushback.h: This.
8120 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
8123 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
8124 * src/libs/libgroff/htmlhint.cc: This.
8125 * src/libs/libgroff/Makefile.sub: Updated.
8127 * tmac/an-old.tmac (an-end): Fix page length.
8129 2001-11-16 Werner LEMBERG <wl@gnu.org>
8131 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
8132 * man/Makefile.sub: Include groff_differences.man.
8133 * VERSION: Set to 1.18.
8134 * REVISION: Set to 0.
8136 2001-11-16 Bernd Warken <bwarken@mayn.de>
8138 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
8139 the second dot (or ending macro name) to end a macro.
8140 * doc/groff.texinfo: Doc fix.
8142 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
8144 * tmac/doc-common (doc-header): Handle very long document titles
8147 2001-11-16 Werner LEMBERG <wl@gnu.org>
8149 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
8151 2001-11-15 Werner LEMBERG <wl@gnu.org>
8153 * src/roff/troff/troff.man: Revised and split into troff.man and...
8154 * man/groff_differences.man: New file.
8157 2001-11-13 Werner LEMBERG <wl@gnu.org>
8159 * tmac/an-old.tmac (TS, TE): New macros for table support.
8161 2001-11-12 Werner LEMBERG <wl@gnu.org>
8163 * src/include/lib.h: Provide a fix for emx to not include
8166 2001-10-27 Werner LEMBERG <wl@gnu.org>
8168 * src/roff/troff/input.cc (substring_macro): Fix computation of
8171 2001-10-20 Werner LEMBERG <wl@gnu.org>
8173 Undo change from 2001-08-28.
8175 * src/roff/troff/input.cc (have_input): New global variable.
8176 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
8177 in compatibility mode.
8178 (process_input_stack): Use it.
8180 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
8182 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
8183 being handled as end-of-sentence characters,
8185 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
8187 * src/roff/troff/input.cc (file_iterator): New members
8188 `suppress_newline_flag' and `seen_escape'.
8189 (file_iterator::next_file): Updated.
8190 (file_iterator::fill): Use it.
8191 (string_iterator): New member `suppress_newline_flag'.
8192 (string_iterator::fill): Set it.
8193 (get_color_element): Use MAX_COLOR_VAL.
8194 * src/roff/troff/env.cc (environment): Remove `need_eol'.
8195 (no_fill): Don't set `env->ignore_next_eol'.
8196 (environment::newline): Handle `eol' tag properly.
8198 (environment::add_html_tag): Set `env->ignore_next_eol'.
8200 * src/roff/troff/env.h (environment): Updated.
8202 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
8204 (html_printer::outstanding_eol): New member function.
8205 (html_printer::do_title): Use new functions.
8206 (html_printer::troff_tag): Test `id_eol_ce'.
8208 2001-10-10 Werner LEMBERG <wl@gnu.org>
8210 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
8211 files work with -C also.
8213 2001-10-05 Werner LEMBERG <wl@gnu.org>
8215 * doc/pic.ms: Minor fix.
8216 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
8217 as a valid command line switch.
8218 * src/devices/grohtml/post-html.cc (main): Ditto.
8220 * src/devices/grohtml/grohtml.man: Updated.
8221 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
8223 2001-10-04 Werner LEMBERG <wl@gnu.org>
8225 Implementing color support in troff, pic, grops, and grohtml. These
8226 changes are based on a major patch provided by Gaius Mulley
8229 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
8230 definitions with both hex values and fractions.
8232 New escapes: \m and \M for drawing and background color,
8233 respectively. This corresponds to the troff output commands `m'
8236 groff and troff accept command line switch `-c' to disable color
8237 output (which is automatically disabled in compatibility mode).
8239 New scaling indicator `f' for fractions (1f = 65536u).
8241 New conditional operator `m' to test for defined colors with `if'
8244 New keywords `color' (or `colour', `colored', `coloured'), `outline'
8245 (or `outlined'), and `shaded' added to pic.
8247 * src/include/color.h: New file.
8248 * src/include/driver.h: Include it.
8249 * src/include/printer.h: Include color.h.
8250 (environment): New members `col' and `fill'.
8251 (printer): Remove `adjust_arc_center' member function.
8252 * src/include/Makefile.sub: Updated.
8254 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
8256 Handle `m' and `DF' troff commands.
8257 * src/libs/libgroff/color.cc: New file.
8258 * src/libs/libgroff/Makefile.sub: Updated.
8260 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
8262 (createImage): Fix computation of `y2'.
8264 (buffer::write_file_html): Remove calls to `stop'.
8266 * src/preproc/pic/common.h (common_output): New abstract function
8267 members `set_color', `reset_color', `get_last_filled', and
8268 `get_outline_color'.
8269 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8270 (object_spec): Add members `shaded' and `outlined'.
8271 * src/preproc/pic/output.h (output): `command' is now abstract.
8272 New function members `set_color', `reset_color', `get_last_filled',
8273 and `get_outline_color'.
8274 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8275 `outline[d]', and `shaded'.
8276 * src/preproc/pic/object.cc (output::command): Removed.
8277 (output::set_location): Moved to output.h.
8278 (graphic_object): Add protected members `outline_color' and
8280 Add member functions `set_outline_color', `get_outline_color', and
8282 (closed_object): Add member function `set_fill_color'.
8283 Add member `color_fill'.
8284 (graphic_object::print_text): Use `out->set_color' and
8286 (box_object::print, ellipse_object::print, circle_object::print,
8287 line_object::print, spline_object::print, arc_object::print): Ditto.
8288 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8289 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8290 `SHADED', making them `%left'.
8291 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8292 * src/preproc/pic/tex.cc (tex_output): New dummy function members
8293 `set_color', `reset_color', `get_last_filled', and
8294 `get_outline_color'.
8295 * src/preproc/pic/troff.cc (simple_output): New abstract function
8296 members `set_color', `reset_color', and `get_last_filled'.
8297 (simple_output::polygon, simple_output::circle,
8298 simple_output::ellipse): Use `get_last_filled'.
8299 (troff_output): New members `last_filled' and `last_outlined'.
8300 New function members `set_color', `reset_color', `get_last_filled',
8301 and `get_outline_color'.
8302 (troff_output::finish_picture): Use `reset_color'.
8303 (troff_output::set_fill): Test `last_filled'.
8304 * src/preproc/pic/pic.man: Updated.
8306 * src/roff/groff/groff.cc (main): Implement `-c' option.
8307 (synopsis, help): Updated.
8308 src/roff/groff/groff.man: Updated.
8310 * src/roff/troff/troff.h: Include color.h.
8311 (warning_type): Add WARN_COLOR.
8312 * src/roff/troff/env.h (environment): New members
8313 `{cur,prev}_{glyph,fill}_color'.
8314 New member functions `get_{prev_,}{glyph,fill}_color'.
8315 * src/roff/troff/env.cc: Initialize and implement them.
8316 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8317 Replace `NULL' with `0' everywhere for consistency.
8318 (lookup_color, default_black, do_glyph_color, do_fill_color,
8319 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8320 define_color): New functions.
8321 (token::next): Implement \M and \m escapes.
8322 (do_if_request): Implement `m' operator.
8324 (main): Implement `-c' option.
8325 (init_markup_requests): Add `defcolor' request.
8326 (warning_table): Add `color' warning.
8327 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8329 * src/roff/troff/node.cc (troff_output_file): New members
8330 `current_{page,glyph}color'. New member functions `put_hex',
8331 `glyph_color', and `fill_color'.
8332 (glyph_color_node::*, fill_color_node::*): Implement it.
8333 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8334 (parse_term): Add support for `f'.
8335 * src/roff/troff/troff.man: Updated.
8337 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8339 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8340 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8342 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8343 (tag_definition): Use `void *' for arg1.
8344 (html_text): New member functions `do_color' and `done_color'.
8345 Use `void *' for second parameter of `push_para' member function.
8346 New `push_para' member function with a single parameter.
8347 Use `char *' for parameter of `issue_table_begin' member funtion.
8348 New `issue_color_begin' member function.
8349 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8351 (html_text::issue_color_begin): New function.
8352 (html_text::issue_table_begin): Use `char *' for parameter.
8353 (html_text::start_tag, html_text::shutdown,
8354 html_text::check_emit_text): Updated.
8355 (html_text::push_para): Use `void *' for second parameter.
8356 Add same function with only one parameter.
8357 (html_text::do_*): Updated.
8358 (html_text::do_color, html_text::done_color): New functions.
8359 * src/devices/grohtml/post-html.cc (style): New member `col'.
8360 Mew member `style' with 6 parameters.
8361 (style::style, style::operator==): Updated.
8362 (html_printer::do_font): Use it.
8363 (html_printer::draw): Add dummy entry for `F'.
8364 (html_printer::set_char): Updated.
8365 * src/devices/grohtml/grohtml.man: Updated.
8367 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8368 trailing zeroes removed.
8369 (ps_printer): New members `sbuf_color', `fill_color', and
8371 Removed member `fill'.
8372 New member function `set_color'.
8373 (ps_printer::ps_printer, ps_printer::set_char): Updated.
8374 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8375 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8377 * tmac/color-html.tmac, tmac/color.tmac: New files.
8378 * tmac/troffrc: Include them.
8379 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8380 * tmac/Makefile.sub: Updated.
8382 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8383 man/groff.man: Updated.
8384 * font/devps/prologue.ps: Define FC and CO functions.
8386 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
8388 Fix incorrect cropping of images and incorrect handling of special
8389 characters. Fix handling of file names in \O.
8391 * src/include/geometry.h: New file.
8392 * src/libs/libgroff/geometry.cc: New file.
8393 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8395 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8397 (do_suppress): Updated.
8398 * src/roff/troff/node.cc: Include geometry.h.
8399 (troff_output_file::flush_tbuf): Fixed parameters to
8400 `check_output_limits'.
8401 (troff_output_file::check_charinfo): Ditto.
8402 (troff_output_file::determine_line_limits): Add support for `Da'
8405 * src/devices/grohtml/post-html.cc (str_translate_to_html):
8406 Add new parameter `is_special' to decode special characters from
8408 (html_printer::do_title, html_printer::do_heading,
8409 html_printer::do_indentedparagraph,
8410 html_printer::translate_to_html, html_printer::special): Updated.
8412 2001-10-03 Werner LEMBERG <wl@gnu.org>
8414 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8415 Fix entry for config.h.
8416 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8417 * tmac/troffrc: Translate nonbreakable space character to `\~'.
8418 * src/preproc/eqn/eqn.man: Document -d command line option.
8420 2001-09-27 Werner LEMBERG <wl@gnu.org>
8422 * man/groff.man: Use
8430 instead of the old code (`.ad .hy' after the table) to suppress
8431 incorrect hyphenation for grohtml output.
8433 2001-09-22 Werner LEMBERG <wl@gnu.org>
8435 * man/groff_font.man, man/groff_out.man: Minor fixes.
8437 2001-09-20 Werner LEMBERG <wl@gnu.org>
8439 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
8440 Arnold Robbins <arnold@skeeve.com>).
8442 2001-09-09 Werner LEMBERG <wl@gnu.org>
8444 * configure: Regenerated with autoconf 2.52.
8446 * doc/groff.texinfo: Complete revision of indices.
8448 2001-09-07 Werner LEMBERG <wl@gnu.org>
8450 * doc/Makefile (clean): Updated to delete all indices.
8452 2001-09-05 Werner LEMBERG <wl@gnu.org>
8454 * src/roff/troff/troff.man: Remove superfluous line.
8456 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8457 given on the command line (or rather, if only the default warnings
8460 2001-09-03 Werner LEMBERG <wl@gnu.org>
8462 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8463 use .ne for TTY devices.
8465 2001-08-31 Werner LEMBERG <wl@gnu.org>
8467 * src/roff/troff/token.h, src/roff/troff/input.cc:
8468 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8470 2001-08-28 Werner LEMBERG <wl@gnu.org>
8472 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8473 * src/roff/troff/input.cc (token::next): Return
8474 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8476 (token::description): Updated.
8477 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8478 (token::add_to_node_list, token::process): Ignore
8479 TOKEN_TRANSPARENT_ESCAPE.
8481 2001-08-27 Werner LEMBERG <wl@gnu.org>
8483 * tmac/an-old.tmac: Fix `S' string.
8485 2001-08-26 Werner LEMBERG <wl@gnu.org>
8487 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8489 2001-08-25 Werner LEMBERG <wl@gnu.org>
8491 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8493 Many other minor fixes.
8495 * configure.ac: Add message at end to inform how to compile
8497 * configure: Regenerated.
8499 2001-08-24 Werner LEMBERG <wl@gnu.org>
8501 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8502 Updated to latest version of libc.
8504 2001-08-23 Werner LEMBERG <wl@gnu.org>
8506 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8507 Autoconf 2.50 and newer can handle this.
8508 * configure: Regenerated.
8510 2001-08-21 Werner LEMBERG <wl@gnu.org>
8512 * doc/pic.ms: Fix typo.
8513 * src/preproc/tbl/tbl.man: Document case of global options.
8515 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
8517 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8518 handling of `CR' font.
8520 2001-08-20 Werner LEMBERG <wl@gnu.org>
8522 Use a config.h file.
8524 * src/include/lib.h: Include config.h.
8525 * All C files: Ditto (if necessary).
8526 * All C++ source and header files: Include lib.h first (if
8529 * src/include/config.hin: New file (autogenerated by autoheader).
8530 * stamp-h.in: New file.
8531 * configure.ac: Updated.
8532 * aclocal.m4: Add third parameters to AC_DEFINE macros.
8533 (GROFF_ARRAY_DELETE): Simplified.
8534 * Makefile.sub (DISTCLEANFILES): Updated.
8535 Added targets for remaking config.status, config.hin, config.h,
8536 stamp-h.in, and stamp-h.
8537 * configure: Regenerated.
8539 2001-08-19 Werner LEMBERG <wl@gnu.org>
8543 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
8545 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8546 (do_sprintf): Use snprintf().
8548 2001-08-18 Werner LEMBERG <wl@gnu.org>
8550 * src/libs/snprintf/*: Added an snprintf module written by Mark
8552 * src/libs/libgroff/Makefile.sub: Updated.
8553 * configure.ac: Add test for snprintf().
8554 * Makefile.in: Updated.
8555 * configure: Regenerated.
8557 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8560 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
8562 * tmac/doc.tmac (Ex): New implementation.
8563 * tmac/doc-common, tmac/groff_tmac.man: Updated.
8565 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
8567 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8569 * tmac/groff_tmac.man: Updated.
8571 2001-08-13 Werner LEMBERG <wl@gnu.org>
8573 * src/preproc/tbl/tbl.man: Minor documentation update.
8575 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
8577 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8578 * configure.ac: Add declaration test for gettimeofday().
8579 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8580 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8581 * configure: Regenerated.
8583 2001-08-11 Werner LEMBERG <wl@gnu.org>
8585 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8586 * configure.ac: Add declaration test for strcasecmp().
8587 * Makefile.in: Updated.
8588 * configure: Regenerated.
8589 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8590 this is necessary because groff's mkstemp.cc is C++.
8591 Add declaration conditionally for strcasecmp().
8593 2001-08-10 Werner LEMBERG <wl@gnu.org>
8595 Integrated pic2graph, contributed by Eric S. Raymond.
8597 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8599 * Makefile.in, NEWS: Updated.
8601 * src/preproc/tbl/tbl.man: Revised.
8603 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
8605 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8607 2001-08-09 Werner LEMBERG <wl@gnu.org>
8609 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8612 2001-08-08 Paul Eggert <eggert@twinsun.com>
8614 * Makefile.sub (configure): Depend on configure.ac, not
8616 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8618 2001-08-07 Werner LEMBERG <wl@gnu.org>
8620 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8623 2001-08-06 Werner LEMBERG <wl@gnu.org>
8625 * src/roff/troff/troff.man: Improve documentation of -E option.
8627 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8629 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8632 2001-07-27 Werner LEMBERG <wl@gnu.org>
8634 * src/preproc/refer/refer.cc: Undo last change.
8635 * src/devices/grohtml/post-html.cc: Ditto.
8637 2001-07-26 Werner LEMBERG <wl@gnu.org>
8639 * src/preproc/refer/refer.cc: Include `lib.h'.
8640 * src/devices/grohtml/post-html.cc: Ditto.
8642 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
8644 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8645 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8646 * Makefile.in: Comment updated.
8647 * configure: Regenerated.
8649 2001-07-25 Werner LEMBERG <wl@gnu.org>
8651 * src/preproc/pic/pic.cc: Removed.
8652 * src/preproc/pic/pic_tab.h: Removed.
8653 * src/preproc/refer/label.cc: Removed.
8655 * doc/Makefile (.ms.html): Don't use a file name extension in
8656 argument to grohtml's -I option.
8657 * Makefile.in (dist): Remove CVS directories.
8658 Call `distfiles' target.
8660 * src/devices/grohtml/grohtml.man: Add information about valid
8661 versions of pnmtopng.
8662 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8663 name instead of number.
8665 2001-07-24 Werner LEMBERG <wl@gnu.org>
8667 * doc/groff.texinfo: Minor fixes.
8669 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
8671 * doc/Makefile (.ms.html): Put image files into a subdirectory.
8674 2001-07-20 Werner LEMBERG <wl@gnu.org>
8676 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8677 * src/libs/libgroff/mkstemp.cc: New file.
8678 * src/libs/libgroff/mksdir.cc: New file.
8679 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8680 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8681 * src/libs/libgroff/Makefile.sub: Updated.
8682 * src/include/lib.h: Add mksdir() prototype.
8683 * src/include/posix.h: Define S_IXUSR if not yet defined.
8685 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8686 (createAllPages): Use mksdir() instead of current code.
8687 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8688 (main): [!HAVE_MKSTEMP]: Removed.
8690 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8691 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8693 * configure.ac: Add tests for stdint.h, sys/time.h, and
8695 Call new GROFF_xxx macros.
8696 * configure: Regenerated.
8697 * Makefile.in: Comments updated.
8699 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
8701 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8702 instead of current code.
8703 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8704 * src/roff/groff/groff.cc (possible_command::insert_args): New
8706 (main): Use it for predriver handling instead of insert_arg().
8708 2001-07-19 Werner LEMBERG <wl@gnu.org>
8710 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8713 * src/include/posix.h: Define S_IWUSR if not yet defined.
8715 2001-07-18 Werner LEMBERG <wl@gnu.org>
8719 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
8721 * tmac/groff_mdoc.man: Document new -width and -column syntax.
8722 Some other minor fixes.
8723 * tmac/an-old.tmac: Add `AT' and `UC' macros.
8725 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
8727 Replace call to `troff' with `groff -Z' to make it aware of
8730 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8731 (troff_command, command_prefix): Removed.
8732 (alterDeviceTo): Use groff.
8733 (addZ): New function.
8734 (char_buffer::do_html): Use it.
8735 (scanArguments): Use TROFF_COMMAND.
8736 (findPrefix): Removed.
8738 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8740 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
8742 * doc/pic.ms: Documentation fixes.
8744 2001-07-17 Werner LEMBERG <wl@gnu.org>
8746 Replace atexit() with global destructor.
8748 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8749 (xtmpfile_list_init): New global structure to deallocate
8750 xtmpfile_list on exit. Its destructor inherits most code from
8752 (remove_tmp_files): Deleted.
8753 (add_tmp_file): Simplified.
8755 2001-07-16 Werner LEMBERG <wl@gnu.org>
8757 Replace strdup() with strsave().
8759 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8760 (set_papersize): Use strsave() and a_delete.
8761 (main): Use strsave().
8762 * src/preproc/html/pre-html.cc (make_message, createAllPages,
8763 removeAllPages): Use strsave() and a_delete.
8765 * configure.ac: Remove test for strdup.
8766 * Makefile.in: Comment updated.
8767 * configure: Regenerated.
8769 2001-07-15 Werner LEMBERG <wl@gnu.org>
8771 * win32-diffs: Updated.
8773 2001-07-14 Werner LEMBERG <wl@gnu.org>
8775 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8776 removing the old one.
8777 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8779 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8781 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8783 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
8785 Merge -xwidth into -width. Add -xwidth functionality to -column
8788 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8790 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
8791 string immediately following a leading dot starts with a valid mdoc
8793 Add similar code to the -column branch.
8794 (doc-Bl-usage): Updated.
8795 * groff_mdoc.man: s/-xwidth/-width/.
8797 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
8799 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8800 running into centered or non-formatted text.
8802 2001-07-11 Werner LEMBERG <wl@gnu.org>
8804 Introduce short and long prefixes to have the selection at run-time
8805 whether there is a 8+3 limit for names of temporary files.
8807 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8808 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8809 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8811 (temp_init): New global structure to initialize above three
8813 (xtmptemplate): Use two parameters for long and short prefix.
8814 Simplify code use above three variables.
8815 (xtmpfile): Use long and short prefixes as parameters.
8816 * src/include/lib.h: Updated.
8818 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8820 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8821 (createAllPages, makeTempFiles): Updated.
8823 2001-07-09 Werner LEMBERG <wl@gnu.org>
8825 * REVISION: Increased to 3.
8827 Version 1.17.2 released
8828 =======================
8830 2001-07-07 Werner LEMBERG <wl@gnu.org>
8832 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8835 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
8837 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8839 * tmac/groff_mdoc.man: Fix synopsis.
8841 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
8843 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8844 Restore `doc-Pa-font'.
8846 2001-07-04 Werner LEMBERG <wl@gnu.org>
8848 * src/utils/indxbib/dirnamemax.c: Moved to ...
8849 * src/libs/libgroff/maxfilename.cc: Here.
8850 s/dir_name_max/file_name_max/.
8852 * src/include/lib.h: Add file_name_max.
8853 * src/utils/indxbib/indxbib.cc: Updated.
8854 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8857 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8859 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8861 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8862 REGION_TEMPLATE): New macros.
8863 (createAllPages, makeTempFiles): Use them.
8864 Include `nonposix.h'.
8865 (html_system): New function.
8866 (createAllPages, createImage): Use it.
8869 * tmac/www.tmac: Fix typos.
8871 2001-07-03 Werner LEMBERG <wl@gnu.org>
8873 * tmac/www.tmac: Disable hyphenation in normal text only if output
8875 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8876 * tmac/groff_mwww.man, NEWS: Updated.
8878 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
8880 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8883 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
8885 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8886 doc-display-ps-stack): Implement font and font size stack for
8889 2001-07-02 Werner LEMBERG <wl@gnu.org>
8891 * REVISION: Increased to 2.
8892 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8894 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8895 beginning of a line.
8896 * src/groff/grog/grog.sh: Ditto.
8898 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
8900 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8903 2001-06-27 Werner LEMBERG <wl@gnu.org>
8905 Fix problems with preprocessor string for `man' program.
8907 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
8908 Updated/added copyright.
8909 Moved Emacs's local variable to identify nroff mode to the end of
8910 the file; add local variable if missing.
8912 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
8914 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8915 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8916 * configure: Regenerated.
8918 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
8920 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8921 * configure: Regenerated.
8923 2001-06-24 Werner LEMBERG <wl@gnu.org>
8925 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8927 * doc/pic.ms: Fix typos.
8929 Version 1.17.1 released
8930 =======================
8932 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
8934 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8935 * configure: Updated.
8937 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
8939 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8941 * src/roff/troff/dic.cc (blank_line): Add html tag.
8943 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
8945 * src/roff/troff/input.cc (do_suppress): Fix typo.
8947 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
8949 Added two new options (-D and -I) to specify image names and a
8950 subdirectory to place the images in.
8952 Change syntax from \\Ox to \\O[x].
8954 * src/devices/grohtml/post-html.cc (main): Add options.
8956 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8957 Use `NULL' instead of `0' for null string pointers.
8958 (MAX_RETRIES): New macro.
8959 (lengthOfintToStr, intToStr, make_message): New functions.
8960 (makeFileName): Make function static.
8961 Implement -D and -I options.
8962 (checkImageDir): New function.
8963 (write_end_image, write_start_image): Use new syntax of \O.
8964 (createAllPages, removeAllPages): Implement -D and -I options. Use
8966 (createImage): Use make_message().
8967 (addps4html): Add guard for malloc().
8968 (usage, scanArguments): Updated.
8969 (makeTempFiles): Use mkstemp().
8970 (removeTempFiles): Use unlink().
8971 (findPrefix): Add guard for malloc().
8973 * src/roff/troff/input.cc (get_delim_file_name): New function to
8975 (do_suppress): Updated to parse new syntax.
8976 * src/devices/grohtml/grohtml.man: Updated.
8977 * tmac/www.tmac: Updated to new syntax.
8981 2001-06-15 Werner LEMBERG <wl@gnu.org>
8983 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8985 * src/devices/grohtml/grohtml.man: Minor improvements.
8987 2001-06-14 Werner LEMBERG <wl@gnu.org>
8989 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8991 2001-06-11 Werner LEMBERG <wl@gnu.org>
8993 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8994 line to specify preprocessor options -- mandb 2.3.1 only recognizes
8996 * src/preproc/grn/grn.man: Add proper '\" string.
8998 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
9000 * test-groff: Don't use PATH but GROFF_BIN_PATH.
9002 2001-06-08 Werner LEMBERG <wl@gnu.org>
9004 Updated to autoconf 2.50.
9006 * configure.in: Renamed to...
9007 * configure.ac: This.
9008 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
9009 (GROFF_OS390): Updated.
9010 * configure: Regenerated.
9012 2001-05-18 Werner LEMBERG <wl@gnu.org>
9014 * src/roff/troff/env.c, src/roff/troff/env.h,
9015 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
9018 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
9020 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
9022 2001-05-16 Werner LEMBERG <wl@gnu.org>
9024 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
9025 less than or equal zero; set it to 1 then.
9026 * src/roff/troff/node.h (node::node): Initialize `last'.
9028 2001-05-08 Werner LEMBERG <wl@gnu.org>
9030 * tmac/an-old.tmac: Make predefined strings work in compatibility
9032 Add troff version guard.
9033 * tmac/doc.tmac: Simplify version guard.
9035 2001-05-07 Werner LEMBERG <wl@gnu.org>
9037 The .ns and .rs requests are now honoured not only in the top-level
9038 but in all diversions (similar to UNIX troff).
9040 This change is based on a patch from Tadziu Hoffmann
9041 <hoffmann@usm.uni-muenchen.de>.
9043 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
9044 (top_level_diversion): Remove `no_space_mode' member.
9045 * src/roff/troff/div.cc (diversion::diversion,
9046 top_level_diversion::top_level_diversion): Updated.
9047 (macro_diversion::output): Reset `no_space_mode'.
9048 (no_space, restore_spacing): Use `curdiv' unconditionally.
9049 (space_request, blank_line): Check `curdiv->no_space_mode'.
9050 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
9051 `curdiv' unconditionally.
9052 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9055 2001-05-06 Werner LEMBERG <wl@gnu.org>
9057 Added two new requests `de1' and `am1' which are similar to `de' and
9058 `am' with the difference that compatibility mode is saved on entry,
9059 switched off during macro execution, and restored on exit.
9061 * src/roff/troff/input.h: Added two new special characters
9062 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
9063 * src/roff/troff/input.cc (input_iterator): Added two member
9064 functions `save_compatible_flag' and `get_compatible_flag'.
9065 (input_stack): Ditto.
9066 (string_iterator): Ditto. Also add private member
9067 `saved_compatible_flag'.
9068 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
9069 (calling_mode): New enumeration.
9070 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
9071 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
9072 (define_macro, define_indirect_macro, append_macro, ignore): Use
9074 (define_nocomp_macro, append_nocomp_macro): New functions.
9075 (init_input_requests): Updated.
9076 (do_request): Rename local variable `saved_compatible_flag' to
9077 `old_compatible_flag'.
9078 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9080 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
9081 public and trap-invoked macros. As a consequence, the man macros
9082 work in compatibility mode also.
9084 2001-05-06 Solar Designer <solar@openwall.com>
9086 * Makefile.in: Use $(mandir).
9088 2001-05-06 Alexios Zavras <zvr@pobox.com>
9090 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
9092 2001-05-05 Werner LEMBERG <wl@gnu.org>
9094 Added `.ns' number register: Returns 1 in no-space mode (if in
9095 top-level diversion), 0 otherwise.
9097 * src/roff/troff/div.cc (no_space_mode_reg): New class.
9098 (init_div_requests): Updated.
9099 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9102 2001-05-04 Werner LEMBERG <wl@gnu.org>
9104 * src/roff/nroff/nroff.man: Improved documentation (especially
9107 2001-05-02 Werner LEMBERG <wl@gnu.org>
9109 Added `brp' request: This is \p as a request.
9111 * src/roff/troff/env.cc (environment::do_break): Add parameter
9113 (do_break_request): New function (was `break_request').
9114 (break_request): Calls `do_break_request'.
9115 (break_spread_request): New; calls `do_break_request'.
9116 (init_env_requests): Updated.
9117 * src/roff/troff/env.h: Updated.
9118 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9120 * REVISION: Increased to 1.
9121 * win32-diffs: Updated.
9123 2001-05-01 Werner LEMBERG <wl@gnu.org>
9125 * tmac/an-old.tmac: Fix minor compatibility mode issue.
9126 * tmac/troffrc-end: Make it really work in compatibility mode.
9128 2001-04-27 Werner LEMBERG <wl@gnu.org>
9130 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
9133 2001-04-22 Werner LEMBERG <wl@gnu.org>
9135 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
9136 latest versions from glibc CVS archive.
9138 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
9139 <c.zeelenberg@hccnet.nl>.
9141 2001-04-21 Werner LEMBERG <wl@gnu.org>
9143 * configure.in: Move check for mkstemp() to...
9144 * aclocal.m4 (GROFF_MKSTEMP): This new function.
9145 * configure: Regenerated.
9147 * src/include/groff-getopt.h: Don't use variable names in
9150 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
9151 * src/devices/grohtml/Makefile.sub,
9152 src/devices/grohtml/post-html.cc: Updated.
9154 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
9156 * configure.in: Add special check for mkstemp().
9157 * src/libs/libgroff/tmpfile.cc: Use it.
9158 * src/utils/indxbib/indxbib.cc: Ditto.
9159 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
9160 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
9163 2001-04-20 Bruce Lilly <blilly@erols.com>
9165 `Version_string' as C++ object was not visible to linker from C
9167 Add `const' to `Version_string'.
9169 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
9170 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
9171 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
9172 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
9173 (scanArguments), src/preproc/refer/refer.cc (main),
9174 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
9175 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
9176 (main), src/devices/grohtml/post-html.cc (main),
9177 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
9178 (main), src/utils/hpftodit/hpftodit.cc (main),
9179 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
9180 (main), src/utils/lkbib/lkbib.cc (main),
9181 src/utils/addftinfo/addftinfo.cc (main): Implement it.
9183 * src/roff/groff/pipeline.c: Add _UWIN.
9184 * src/include/nonposix.h: Ditto.
9186 2001-04-20 Werner LEMBERG <wl@gnu.org>
9188 * src/include/lib.h: Use HAVE_STRERROR.
9189 * src/roff/groff/pipeline.c: Ditto.
9190 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
9191 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
9192 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
9193 * win32-diffs: Updated.
9194 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
9196 2001-04-19 Werner LEMBERG <wl@gnu.org>
9198 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
9199 instead of hardwired `"troff"'.
9200 (char_buffer::read_file): Remove unused variables.
9201 (char_buffer::write_file_troff): Ditto.
9202 (char_buffer::write_file_html): Ditto.
9203 (generateImages): Ditto.
9205 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
9207 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
9209 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
9210 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
9211 index_search_item::search1): Ditto.
9212 * src/roff/troff/node.h (width_list): Reorder members.
9213 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
9214 (lookup_warning): Ditto.
9215 (prepend_string): Commented out.
9216 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
9217 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
9218 * src/preproc/tbl/main.cc (process_format): Ditto.
9219 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
9221 * src/preproc/pic/pic.cc: Updated.
9222 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
9223 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
9224 * src/preproc/refer/command.cc (execute_command): Ditto.
9225 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
9226 * src/preproc/refer/token.cc (lookup_token): Ditto.
9227 * src/preproc/soelim/soelim.cc: Ditto.
9228 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
9229 (isHexDigit): Commented out.
9230 (pushBackBuffer::isString): Remove unused variable.
9231 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
9233 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
9234 resource_manager::read_resource_arg, read_one_of, parse_extensions):
9236 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
9237 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
9238 lookup_paper_size): Ditto.
9239 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
9240 (text_glob, element_list): Reorder members.
9241 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
9243 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
9244 return value to `void'.
9245 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
9247 * src/devices/grohtml/html.h (simple_output::check_newline,
9248 simple_output::space_or_newline, simple_output::enable_newlines):
9250 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
9252 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
9253 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
9254 output_ligatures, output_charset, read_map): Ditto.
9255 * src/utils/lookbib/lookbib.cc (main): Ditto.
9256 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
9257 (do_file): Fix typo (`=' -> `==').
9258 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
9259 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
9261 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
9263 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
9264 Fix usage of GROFF_BIN_PATH.
9265 * src/roff/nroff/nroff.man: Updated.
9267 2001-04-18 Werner LEMBERG <wl@gnu.org>
9269 * NEWS: Fixing typos.
9272 Version 1.17 released
9273 =====================
9275 2001-04-17 Werner LEMBERG <wl@gnu.org>
9277 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9278 directory, not in $(srcdir).
9280 2001-04-16 Werner LEMBERG <wl@gnu.org>
9282 * doc/groff.texinfo: More info on conditionals.
9284 2001-04-15 Werner LEMBERG <wl@gnu.org>
9286 * doc/groff.texinfo: Added some info about groff internals.
9288 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9289 about missing special character only if the name is non-null.
9291 2001-04-14 Werner LEMBERG <wl@gnu.org>
9293 Removing the grohtml-old device driver which is now obsolete.
9295 * src/devices/grohtml-old/*: Removed.
9296 * font/devhtml-old/*: Removed.
9297 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9299 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9300 * test-groff (PATH): Updated.
9301 * tmac/Makefile.sub (NORMALFILES): Updated.
9302 * tmac/an-old.tmac: Remove special code for html-old device.
9303 Replace `html-or-html-old' register with `an-html'.
9304 * tmac/eqnrc: Updated.
9305 * tmac/html-old.tmac: Removed.
9306 * tmac/troffrc, tmac/troffrc-end: Updated.
9307 * tmac/www.tmac: Remove special code for html-old device.
9308 Replace `html-or-html-old' register with `www-html'.
9310 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9311 src/libs/libgroff/htmlindicate.cc (graphic_end),
9312 include/htmlindicate.h, src/preproc/grn/*.cc,
9313 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9314 single argument for consistency with rest of source code.
9316 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9318 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
9320 * src/roff/troff/troff.man: Fixing typos.
9322 2001-04-13 Werner LEMBERG <wl@gnu.org>
9324 * doc/pic.ms: Fixing many font switches.
9325 * doc/groff.texinfo: Fixes, additions.
9326 * MORE.STUFF: Updated.
9328 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
9330 * src/devices/grohtml/grohtml.man: Updated manual page regarding
9332 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9334 (removeTempFiles): New function to tidy up temporary files.
9335 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9336 Many fixes to do with the new inline suppress node and image regions
9338 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9339 (generate_img_src): New function.
9340 (html_printer::do_auto_image): Utilizes it.
9341 (do_heading, do_title): Include inline images within their contents.
9342 (html_printer::begin_page): Tidied up comments that are issued to
9343 the html output file.
9344 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9346 (text_glob::is_br): New method used by do_heading.
9347 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9348 equivalent diversion.
9349 * src/include/html-strings.h: Altered image tags to reflect the
9351 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9353 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9354 it is already inside a pic image. Only emit tags if the argument
9355 `-Tps:html' is present.
9356 * src/preproc/tbl/main.cc: Changes to reflect additional
9357 `html_end_suppress' parameter.
9358 * src/roff/troff/env.cc: Only emit eol tag if a node has been
9359 emitted since the last eol tag was written.
9360 * src/roff/troff/env.h: New boolean `emitted_node'.
9361 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9362 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
9363 * src/roff/troff/node.cc (check_charinfo): New method.
9364 (troff_output_file::determine_line_limits): Alterations to limit
9366 * tmac/www.tmac: Changes to reflect new suppress nodes.
9368 2001-04-12 Bruno Haible <haible@clisp.cons.org>
9370 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9371 Escape the html_glyph in the buffer.
9372 (str_translate_to_html): Output the unescaped escaped_char.
9373 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9374 `frame=void', not `frame=none'. Add `border=0'.
9376 2001-04-12 Werner LEMBERG <wl@gnu.org>
9378 * PROBLEMS: Add some words on how to avoid wrapper macros.
9380 2001-04-11 Blake McBride <blake@florida-software.com>
9382 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9384 2001-04-11 Werner LEMBERG <wl@gnu.org>
9386 * font/devlbp/Makefile.sub (CLEANADD): Set it.
9387 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9388 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9389 * Makefile.sub (DISTCLEANFILES): Here.
9391 * libs/libgroff/new.cc: Include `nonposix.h'.
9392 * win32-diffs: Updated.
9394 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
9396 Added skeleton macro for defunct macros.
9398 Updated documentation.
9400 When inside displays, an empty input line warning should be
9401 suppressed. If another macro call is put inside a display,
9402 all subsequent empty lines found in that display caused a
9403 warning to be emitted.
9405 * tmac/doc.tmac (doc-defunct-macro): New macro.
9406 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9407 (doc-restore-global-vars): Fixed typo.
9408 (doc-empty-line): Check the `doc-display-depth' register to
9409 determine whether we are inside display or not.
9411 * tmac/doc-common: Removed `Or' and `Sf' registers.
9412 Moved obsolete `Ds' macro to doc.tmac.
9414 * tmac/groff_mdoc.man: Bump document date.
9415 Document `.Vt' under ``Variable Types''.
9416 Removed documentation for obsolete `.Or' macro.
9418 2001-04-10 Werner LEMBERG <wl@gnu.org>
9421 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9423 2001-04-10 Bruno Haible <haible@clisp.cons.org>
9425 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9426 (usage): Add stream argument. Don't exit.
9427 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9428 Write --version output to stdout, not stderr.
9429 (usage): Add stream argument. Don't exit.
9430 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9431 (usage): Add stream argument. Don't exit.
9432 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9434 (usage): Add stream argument. Don't exit.
9435 (main): Write --help output to stdout, not stderr.
9436 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9437 (usage): Add stream argument. Don't exit.
9438 * src/devices/grops/ps.cc (main): Accept --help and --version.
9439 (usage): Add stream argument. Don't exit.
9440 * src/devices/grotty/tty.cc (main): Accept --help and --version.
9441 (usage): Add stream argument. Don't exit.
9442 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9443 (main): Accept --help and --version.
9444 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9445 (main): Accept --help and --version.
9446 * src/preproc/html/pre-html.cc (usage): Add stream argument.
9447 (scanArguments): Accept --help and --version.
9448 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9449 (main): Accept --help and --version.
9450 * src/preproc/refer/refer.cc (main): Accept --help and --version.
9451 (usage): Add stream argument. Don't exit.
9452 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9454 (main): Accept --help and --version.
9455 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9456 (main): Accept --help and --version.
9457 * src/roff/groff/groff.cc (main): Accept --help and --version.
9458 (synopsis): Add stream argument.
9459 (help): Write --help output to stdout, not stderr.
9460 (usage): Add stream argument. Don't exit.
9461 * src/roff/grog/grog.pl: Accept --help and --version.
9463 * src/roff/grog/grog.sh: Accept --help and --version.
9464 * src/roff/nroff/nroff.sh: Accept --help and --version.
9465 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9466 (usage): Add stream argument. Don't exit.
9467 (main): Accept --help and --version.
9468 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9469 (usage): New function with stream argument, doesn't exit.
9470 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9471 (usage): New function with stream argument, doesn't exit.
9472 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9473 (usage): Add stream argument. Don't exit.
9474 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9475 (main): Accept --help and --version.
9476 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9478 (main): Accept --help and --version.
9479 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9480 (main): Accept --help and --version.
9481 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9482 (usage): Add stream argument. Don't exit.
9484 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
9486 Fix indentation in SYNOPSIS.
9488 Updated to include changes of latest BSD mdoc version (basically,
9489 the only change is that `.Fn' and `.Fc' put a final semicolon after
9490 a function declaration in the SYNOPSIS section).
9492 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9493 (doc-in-synopsis-section): New variable. Updated all related
9495 (doc-indent-synopsis-active): New register.
9496 (Nd, Fn, Fo): Use it.
9497 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9498 `.Cd' with long argument line produces indented wrapped lines.
9499 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9500 undesirable line break to be output.
9501 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9503 (Fn, Fc): Add final `;' to output.
9504 (doc-save-global-vars, doc-restore-global-vars): Updated.
9505 * tmac/doc-common: Remove `Ex' register.
9507 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9510 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9512 * tmac/doc.tmac (Cd): Simplify code.
9513 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9515 2001-04-06 Werner LEMBERG <wl@gnu.org>
9517 Implement continuous underlining for nroff mode. To do that, a new
9518 request in the ditroff language has been added: `x u N' (N is 0
9521 \X and \Y are now transparent to end-of-sentence recognition.
9523 * src/include/printer.h (printer): Add `type' parameter to `special'
9525 * src/libs/libdriver/printer.cc (printer::special): Updated.
9526 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9528 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9529 specials of type `p'.
9530 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9531 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9532 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9533 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9534 (glyph::order): New method.
9535 (tty_printer::add_char): Use it.
9536 (tty_printer::special): New method.
9537 (tty_printer::end_page): Implement it.
9539 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9540 * src/roff/troff/node.cc (special_node::special_node): Add parameter
9541 to set `no_init_string'.
9542 (special_node::tprint_start): Use it.
9543 (special_node::same, special_node::copy): Updated.
9544 (special_node::ends_sentence): New method.
9545 (troff_output_file::start_special): Add parameter to include
9546 inititialization of special conditionally.
9548 * src/roff/troff/env.h (environment): New member `underline_spaces'.
9549 * src/roff/troff/env.cc (do_underline_special): New function.
9550 (environment::set_font): Use it.
9551 (do_underline): Use it. This was `underline()'.
9552 (underline): Call `do_underline()'.
9553 (continuous_underline): New function which calls `do_underline()'.
9554 (environment::newline): Use `do_underline_special()'.
9555 (init_env_requests): Updated.
9557 * NEWS, man/troff_out.man: Updated.
9559 2001-04-06 Bruno Haible <haible@clisp.cons.org>
9561 * font/devutf8/R.proto: Fix code of 'shc'.
9563 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9565 Many fixes. Diag lists can now be nested also; additionally,
9566 `-compact' and `-offset' are supported.
9568 * tmac/doc.tmac (doc-have-indent): Replaced with ...
9569 (doc-list-have-indent-stackXXX): A new register stack.
9570 (doc-have-diag-list): Removed.
9571 (Bl): Use `doc-list-have-indent-stackXXX'.
9573 (doc-diag-list): Use `doc-compact-list-stackXXX'.
9574 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9575 (doc-set-vertical-and-indent): Ditto.
9576 (doc-next-list-depth): Removed.
9577 (doc-increment-list-stack): Updated.
9578 (doc-decrement-list-stack): Use `doc-list-depth' instead of
9579 `doc-next-list-depth'.
9580 (doc-end-list, doc-end-column-list): Don't use
9581 `doc-increment-list-stack'.
9582 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9583 (doc-save-global-vars, doc-restore-global-vars): Updated.
9584 * tmac/doc-common: Updated.
9585 * tmac/groff_mdoc.man: Updated.
9588 2001-04-02 Werner LEMBERG <wl@gnu.org>
9590 * src/devices/grotty/grotty.man: Fix grammatical error.
9592 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
9594 Remove .Ld from mdoc package; replace it with special handling of
9597 * tmac/doc-common: Remove `Ld' register.
9598 Uncomment `doc-volume-ds-*' strings.
9599 Remove `doc-operating-system-default'.
9601 * tmac/doc-syms (Ld): Removed.
9602 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9606 * tmac/groff_mdoc.man: Many fixes and updates.
9608 2001-03-29 Werner LEMBERG <wl@gnu.org>
9610 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
9611 Bond <tkb@tkb.mpl.com>.
9612 * tmac/www.tmac: Save compatibility mode.
9614 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
9616 * tmac/groff_mdoc.man: Many fixes.
9618 2001-03-28 Werner LEMBERG <wl@gnu.org>
9620 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9623 2001-03-27 Werner LEMBERG <wl@gnu.org>
9625 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9626 diversion. This fixes overlong tags.
9628 2001-03-26 Werner LEMBERG <wl@gnu.org>
9630 * doc/groff.texinfo: Fixed and improved documentation of fonts.
9631 * tmac/doc-syms: Fix error messages.
9632 * tmac/an-old.tmac: Remove incorrect double backslashes.
9634 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
9636 * tmac/Makefile.sub: Strip mdoc.local also
9637 * tmac/strip.sed: Fixed.
9639 2001-03-24 Werner LEMBERG <wl@gnu.org>
9641 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9642 selecting the font size.
9643 * tmac/groff_mdoc.man, NEWS: Document it.
9645 2001-03-23 Werner LEMBERG <wl@gnu.org>
9647 * src/roff/troff/div.cc (save_vertical_space): Add default argument
9649 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9650 argument to restore previous font family.
9651 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9653 * doc/groff.texinfo: More fixes and additions (mainly for font
9654 manipulating commands).
9656 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9657 * tmac/groff_mdoc.man: This. The quick reference has been removed.
9658 * tmac/Makefile.sub, NEWS: Updated.
9660 2001-03-23 Werner LEMBERG <wl@gnu.org>
9662 Replaced mdoc implementation. The new version is `state of the
9663 art', using almost all new features of groff 1.17 -- it won't run
9664 with older versions.
9666 * tmac/doc.tmac: Completely rewritten.
9667 * tmac/doc-common: Ditto.
9668 * tmac/doc-nroff: Ditto.
9669 * tmac/doc-ditroff: Ditto.
9670 * tmac/doc-syms: Ditto.
9671 * tmac/mdoc.local: New file.
9672 * tmac/groff_mdoc.samples.man: Replaced with ...
9673 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9674 * tmac/strip.sed: Updated.
9675 * tmac/Makefile.sub: Updated.
9678 * tmac/groff_man.man: Add `man.local' to the FILES section.
9680 2001-03-22 Werner LEMBERG <wl@gnu.org>
9682 * doc/groff.texinfo: Added many @noindent.
9683 Replaced @end_Example -> @endExample.
9684 Added info whether registers are r/o.
9685 Many other additions and fixes.
9687 2001-03-21 Werner LEMBERG <wl@gnu.org>
9689 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9690 in makeinfo of texinfo 4.0) to be used in @Def* macros.
9691 Improved @Def* macros: Now the exact syntax of request, register,
9692 and escapes is shown.
9693 Added macros for parentheses and brackets to be used in @Def*.
9694 Many fixes and improvements of the documentation.
9696 2001-03-20 Werner LEMBERG <wl@gnu.org>
9698 * doc/groff.texinfo: Added new index: `st' (for strings).
9699 Added macros @Defstr(x).
9700 Added macro @Example (adding @group).
9701 Other minor improvements.
9703 2001-03-19 Werner LEMBERG <wl@gnu.org>
9705 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9706 `rq' for requests. `fn' is no longer used.
9707 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9710 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9711 number with name of man page.
9713 2001-03-19 Larry Kollar <kollar@alltel.net>
9715 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
9718 2001-03-19 Werner LEMBERG <wl@gnu.org>
9720 * man/groff_font.man: Document `prepro', `postpro', and `print'.
9721 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9722 * src/devices/grohtml/grohtml.man: Fixing typos.
9724 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
9726 * tmac/s.tmac (@IP): Pass `.ip' html tag.
9727 * tmac/groff_mwww.man: Remove .LINE macro
9728 * tmac/www.tmac (LINE): Add `.ti'.
9730 * src/devices/grohtml/post-html.cc (html_printer): New member
9732 (html_printer::emit_raw): Use it.
9733 (html_printer::do_linelength): Ditto.
9734 (html_printer::do_pageoffset): Ditto.
9735 (html_printer::do_indentation): Ditto.
9736 (html_printer::do_tempindent): Ditto.
9737 (html_printer::do_break): Ditto.
9738 (html_printer::begin_page): Ditto.
9739 (html_printer::do_indentedparagraph): New function.
9740 (html_printer::troff_tag): Handle `.ip'.
9741 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9742 Add `<td width=...>' handling.
9743 (html_text::do_table): Add parameter.
9744 (html_text::do_indent): Updated.
9745 * src/devices/groohtml/html-text.h: Updated.
9747 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
9749 Introduced simple html tables to implement indentation.
9751 * src/devices/grohtml/html.h (word, word_list): New structures.
9752 (simple_output): Use it.
9753 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9754 (html_printer): Improve indentation handling.
9755 (html_printer::emit_raw): Set `in_table' element. Handle
9757 (html_printer::write_header): Move conditional downwards.
9758 Don't allow whitespace in tags.
9759 (html_printer::do_linelength): Handle line length and indentation
9761 (html_printer::do_pageoffset): Handle indentation conditionally.
9762 (html_printer::do_indentation): Ditto.
9763 (html_printer::do_tempindent): New function member.
9764 (html_printer::do_fill): Take care of indentation.
9765 (html_printer::do_flush): Finish table.
9766 (html_printer::do_links): Ditto.
9767 (html_printer::do_break): New function for handling `.br' and `.ti'.
9768 (html_printer::troff_tag): Use it.
9770 (html_printer::flush_globs): Fix.
9771 (html_printer::flush_page): Finish table.
9772 (html_printer::html_printer): Fix error message. Set up
9774 (html_printer::add_to_sbuf): Remove special handling of character
9776 (to_unicode): Remove `stop()'.
9777 (html_printer::write_title): Cleanup.
9778 (html_printer::begin_page): Use `put_string()'. Handle indentation.
9779 (html_printer::~html_printer): Flush text and end the line.
9781 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9782 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9784 (html_text::start_tag): Disable newlines.
9785 (html_text::table_is_void): New function.
9786 (html_text::issue_table_begin): Ditto.
9787 (html_text::issue_table_end): Ditto.
9788 (html_text::push_para): Better table handling.
9789 (html_text::do_indent): New function.
9790 (html_text::do_table): Ditto.
9791 (html_text::done_table): Ditto.
9792 (html_text::do_tt): Handle PRE_TAG.
9793 (html_text::is_in_table): New function.
9794 (html_text::check_emit_text): Handle tables.
9795 (html_text::do_emittext): Use `nl()'.
9796 (html_text::do_para): Handle table.
9797 (html_text::remove_def): New function.
9798 * src/devices/grohtml/output.cc (word, word_list): Implement
9800 (simple_output::end_line): Flush last word.
9801 (simple_output::simple_comment): Ditto.
9802 (simple_output::begin_comment): Recoded.
9803 (simple_output::end_comment): Ditto.
9804 (simple_output::comment_arg): Removed.
9805 (simple_output::check_newline): Improve test and flush last word.
9806 (simple_output::space_or_newline): Improved.
9807 (simple_output::write_newline): Replaced with...
9808 (simple_output::nl): This.
9809 (simple_output::put_raw_char): Flush last word.
9810 (simple_output::check_space): Removed.
9811 (simple_output::put_translated_string): Ditto.
9812 (simple_output::put_string): Simplified.
9813 (simple_output::put_number): Updated.
9814 (simple_output::put_float): Ditto.
9815 (simple_output::put_symbol): Removed.
9816 (simple_output::enable_newlines): Add `check_newline()'.
9817 (simple_output::flush_last_word): New function.
9819 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9820 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9822 * tmac/s.tmac (@PP, @IP): Add html conditional code.
9823 * tmac/an-old.tmac (TP): Ditto.
9825 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
9827 * mdate.sh: Make it POSIX compliant.
9829 2001-03-09 Werner LEMBERG <wl@gnu.org>
9831 Added the `return' request to end a macro immediately. It simply
9832 pops iterators from the input stack until a macro iterator is found.
9834 * src/roff/troff/input.cc (input_iterator::is_macro,
9835 macro_iterator::is_macro): New member.
9836 (input_return_boundary): New class to signal an immediate return
9838 (input_stack::add_return_boundary, input_stack::is_return_boundary):
9840 (input_stack::clear): Use it.
9841 (input_stack::pop_macro): New function.
9842 (while_request): Use `is_return_boundary()'.
9843 (return_macro_request): New function.
9844 (init_input_requests): Use it.
9846 * src/roff/troff/TODO: Updated.
9847 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9849 2001-03-08 Werner LEMBERG <wl@gnu.org>
9851 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9854 2001-03-07 Werner LEMBERG <wl@gnu.org>
9856 Make `\B' more rigid.
9858 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9860 (get_number_rigidly): New function.
9861 * src/roff/troff/input.cc (do_expr_test): Use it.
9862 * src/roff/troff/token.h: Updated.
9864 * src/roff/troff/request.h: Fix typo (init_html_request ->
9865 init_markup_request).
9867 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
9869 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
9870 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9871 are now `.begin', `.end', `.image'.
9873 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9874 (html_printer::add_to_sbuf): Changing type of `code' parameter.
9875 Use add_char_to_sbuf().
9876 (to_unicode): New function.
9877 (char_translate_to_html): Changing type of `ch' parameter.
9879 (html_printer::~html_printer): Comment out doctype string.
9880 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9881 instead of `.html-end'.
9882 (write_start_image): Use `.begin' and `.image' instead of
9883 `.html-begin' and `.html-image'.
9884 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9885 (html_begin): Renamed to ...
9887 (html_end): Renamed to ...
9889 (html_image): Renamed to ...
9891 (init_html_requests): Renamed to ...
9892 (init_markup_requests): This.
9893 * tmac/www.tmac: Updated.
9895 2001-02-28 Bram <bram@avontuur.org>
9897 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9900 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
9902 * doc/meref.me: Fixing some typos.
9904 2001-02-16 Werner LEMBERG <wl@gnu.org>
9906 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9907 method. Return `HYPHEN_MIDDLE' if it was `\:'.
9908 * src/roff/troff/node.h: Updated.
9910 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
9912 * tmac/groff_tmac.man: Fix typo.
9914 2001-02-16 Werner LEMBERG <wl@gnu.org>
9916 Fixing a bug which prevented proper end-of-sentence recognition
9917 between an `unformatted' box and the following text. As a
9918 consequence, vertical line distances are no longer preserved in
9919 boxes after a call to `.unformat' -- because boxes aren't
9920 line-oriented (contrary to diversions), this doesn't make sense
9923 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9925 (vertical_size_node::set_unformat_flag): New method.
9926 * src/roff/troff/node.hh: Updated.
9927 * src/roff/troff/input.cc (word_space_node::reread,
9928 hmotion_node::reread): Reset `unformat' flag after usage.
9929 (unformat_macro): Append only if `set_unformat_flag()' returns
9931 * src/roff/troff/troff.man: Updated.
9933 2001-02-15 Werner LEMBERG <wl@gnu.org>
9935 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9936 documentation of `asciify' and `unformat' requests.
9938 2001-02-13 Werner LEMBERG <wl@gnu.org>
9940 Redesigned the `unformat' request. It is no longer connected with
9941 `asciify' but rather uses new `reread()' methods if the `unformat'
9942 flag is set. Additionally, the handling of space characters after
9943 unformatting has been fixed so that they retain their width.
9945 * src/roff/troff/node.h (width_list): New structure to store
9946 original widths of spaces.
9947 (node): Added `unformat' member.
9948 Replaced `num_spaces' variable with `orig_width' list.
9949 * src/roff/troff/node.cc (*node::asciify,
9950 asciify_reverse_node_list): Removed `unformat_only' flag and related
9952 (word_space_node::asciify, word_space_node::word_space_node): Use
9954 (word_space_node::~word_space_node): New destructor.
9955 (word_space_node::copy): Updated to handle `orig_width'.
9956 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9957 (*node::merge_space): Update `orig_width' list if necessary.
9958 (*node::set_unformat_flag): New methods to set the `unformat' flag.
9959 * src/roff/troff/enc.cc (environment::space_newline): Use
9961 (environment::space): Added method to handle space width and
9962 sentence space width as parameters. Use `width_list'.
9963 (environment::make_tab_node): Updated.
9964 * src/roff/troff/env.h: Updated.
9965 * src/roff/troff/input.cc (word_space_node::reread,
9966 unbreakable_space_node::reread, hmotion_node::reread): New methods
9967 to handle nodes specially if `unformat' flag is set.
9968 (do_asciify_macro): Renamed back to ...
9969 (asciify_macro): This.
9970 (unformat_macro): New implementation to simply set the `unformat'
9973 * MORE.STUFF: Added more info about deroff.
9975 2001-02-08 Werner LEMBERG <wl@gnu.org>
9977 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9978 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9979 and `add_self()' methods to avoid hyphenation. For example, the
9980 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9981 soft hyphen after `foo'. Now the hyphen list is correctly
9982 `foo<ignore><ignore>bar'.
9984 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
9986 * tmac/groff_tmac.man: Fix `BIR' macro.
9988 2001-02-04 Werner LEMBERG <wl@gnu.org>
9990 A new escape sequence `\:', inserting a zero-width break point.
9992 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9993 * src/roff/troff/input.cc (get_copy, token::next, asciify):
9995 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9997 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
9998 and `asciify()' methods.
9999 * src/roff/troff/node.cc (space_node::space_node): Updated.
10000 (space_node::asciify): Handle `was_escape_colon'.
10001 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10003 Handle `\~' similar to other comparable requests.
10005 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
10007 (token::next): Move creation of an unbreakable_space_node to...
10008 (token::add_to_node_list): Here.
10010 Fix a bug which sometimes prevented hyphenation of words connected
10011 with `\~' or `\ ' (and other escape sequences handled as
10012 TOKEN_NODE). This also fixes a hyphenation problem with boxes
10013 (after a call to the `unformat' request).
10015 * src/roff/troff/env.h (environment::possibly_break_line,
10016 environment::hyphenate_line): Introducing `start_here' parameter.
10017 * src/roff/troff/env.cc (environment::space_newline,
10018 environment::space): Use it.
10019 (environment::possibly_break_line, environment::hyphenate_line):
10021 * src/roff/troff/input.cc (process_input_stack): Use it.
10022 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
10023 space_char_hmotion_node, overstrike_node): Add
10024 `get_hyphenation_type()' method.
10025 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
10026 if `unformat_only' is active.
10028 2001-01-30 Werner LEMBERG <wl@gnu.org>
10030 Implemented new read-only number register `.linetabs' which
10031 returns 1 if in line-tabs mode, 0 otherwise.
10033 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
10034 * src/roff/troff/env.cc (get_line_tabs): New function.
10035 (init_env_requests): Use it.
10036 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10038 * VERSION, REVISION: Changing to 1.17.0.
10040 2001-01-28 Werner LEMBERG <wl@gnu.org>
10042 Fixed a bug which prevented hyphenation of words which are finished
10045 * src/roff/troff/token.h (token): Add enum type
10046 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
10047 * src/roff/troff/input.cc (token::next, token::description,
10048 get_line_arg, token::add_to_node_list, token::process): Use it.
10050 2001-01-27 Werner LEMBERG <wl@gnu.org>
10052 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
10053 * src/roff/troff/div.cc (do_divert): Use it.
10055 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
10057 2001-01-25 Werner LEMBERG <wl@gnu.org>
10059 Adding the `linetabs' request. If set, tab distances are not
10060 computed relative to the input line but relative to the output line.
10062 * src/roff/troff/env.h (environment): New member `line_tabs'.
10063 * src/roff/troff/env.cc (line_tabs_request): Implement request.
10064 (environment::environment, environment::copy): Updated.
10065 (environment::distance_to_next_tab): Use `line_tabs'.
10066 (init_env_requests): Register request.
10067 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
10070 2001-01-24 Werner LEMBERG <wl@gnu.org>
10072 Introducing a new read-only register `.int' which is set to a
10073 positive value if the last output line is interrupted (i.e., if it
10076 * src/roff/troff/env.cc (init_env_requests): Add it.
10077 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10079 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
10081 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
10082 * src/preproc/html/pre-html.cc (findPrefix): New function which
10083 generates the troff executable name via the system prefix.
10084 * src/preproc/eqn/main.cc: Modified warning message.
10086 2001-01-23 Werner LEMBERG <wl@gnu.org>
10088 troff's `box' and `boxa' requests didn't preserve temporary
10091 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
10092 `saved_target_text_length' members.
10093 * src/roff/troff/div.cc (do_divert): Use them.
10095 Tabs (but not yet leaders and fields) are now handled correctly by
10098 * node.h (hmotion_node): Add field `was_tab'.
10099 * env.cc (environment::make_tab_node): Set it.
10100 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
10102 Added new request `unformat' which will, contrary to `asciify',
10103 preserve font information after unformatting (i.e., only nodes
10104 dealing with horizontal space are converted back to input
10107 * input.cc (asciify_macro): Renamed to ...
10108 (do_asciify_macro): this, having a new parameter `unformat_only'.
10109 (asciify_macro, unformat_macro): New; using do_asciify_macro.
10110 (init_input_requests): Added `unformat'.
10111 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
10112 parameter to control asciification process.
10113 * node.h (*_node::asciify): Ditto.
10114 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10116 2001-01-20 Werner LEMBERG <wl@gnu.org>
10118 * doc/groff.texinfo: Minor improvement of `.in' documentation.
10120 2001-01-18 Werner LEMBERG <wl@gnu.org>
10122 * tmac/ps.tmac: Remove call of psold.tmac.
10123 * tmac/psold.tmac: Comment updated.
10124 * tmac/psnew.tmac: Removed since no longer needed.
10125 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
10127 * font/devutf8/R.proto: Adding `shc' glyph.
10128 * font/devutf8/NOTES: Updated.
10130 * test-groff: Updated.
10132 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
10134 First cut of the new html device driver. Changes to pre-html and
10135 the new grohtml are too numerous to be documented here.
10137 Stuff related to `html' has been renamed to `html-old' and `html2'
10138 stuff has been renamed to `html' (including directories). The new
10139 html device driver is therefore invoked as `-Thtml'.
10141 Added new `\O' escape to suppress output (needed by html driver).
10143 Added functions and code to pass info about input-level commands
10144 (`.in', `.fl', etc.) to html driver.
10146 Three new functions (.html-begin, .html-end, and .html-image) for
10147 better html handling: `html-begin' will execute the remaining line
10148 if at the outermost nesting level, increasing an internal counter.
10149 `html-end' does the same but decreases the internal counter.
10150 `html_image' puts its arguments into a special node (suppress_node)
10151 to define an image region.
10153 The `output' request has been removed.
10155 * tmac/html-tags.tmac: Removed.
10156 * tmac/arkup.tmac: Updated and renamed to ...
10157 * tmac/www.tmac: New file.
10158 * tmac/markup.tmac Updated and renamed to ...
10159 * tmac/mwww.tmac: New file.
10160 * tmac/Makefile.sub: Updated.
10161 * tmac/an-old.tmac: Updated.
10162 * tmac/eqnrc: Updated.
10163 * tmac/groff_man.man
10164 * tmac/groff_markup.man: Updated and renamed to ...
10165 * tmac/groff_mwww.man: New file.
10166 * tmac/groff_tmac.man: Updated.
10167 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
10168 * tmac/html.tmac: Updated and renamed from html2.tmac.
10169 * tmac/pspic.tmac: Updated html support.
10170 * tmac/s.tmac: Added html output support.
10171 * tmac/troffrc, tmac/troffrc-end: Updated.
10173 * Makefile.in, doc/Makefile: Updated.
10174 * doc/groff.texinfo: Added info about new `\O' escape.
10175 * doc/homepage.ms: Use `MAILTO' macro.
10177 * font/devhtml/DESC.proto: Add `C' font.
10178 * font/devhtml/Makefile.sub: Updated.
10179 * font/devhtml/R.proto: Minor fixes.
10180 * font/devhtml-old/Makefile.sub: Updated.
10182 * src/devices/grohtml-old/Makefile.sub: Updated.
10184 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
10186 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
10187 graphic_start): Add `inline' parameter. Update.
10188 (html_end_suppress, graphic_end): Update.
10190 * src/include/html-strings.h: New file.
10191 * src/include/htmlindicate.h: Comments updated.
10192 * src/include/printer.h: Updated.
10194 * src/preproc/eqn/main.cc (do_file, main): Updated.
10195 * src/preproc/pic/troff.cc (troff_output::start_picture,
10196 troff_output::finish_picture): Updated.
10197 * src/preproc/tbl/main.cc (process_input_file): Updated.
10199 * src/roff/groff/groff.cc (main): Updated.
10200 Pass device arguments to predrivers also.
10201 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
10202 * src/roff/troff/env.h (environment): Updated.
10203 New elements `need_eol' and `ignore_next_eol' (for html output).
10204 * src/roff/troff/env.cc (environment::environment): Add initializers
10205 for `need_eol' and `ignore_next_eol'.
10206 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
10208 (point_size, fill, no_fill, center, right_justify, line_length,
10209 indent, temporary_indent, break_request, handle_tab): Use
10211 (set_tabs): Use `add_html_tag_tabs()'.
10212 (environment::add_html_tag): Updated.
10213 (environment::do_break): Updated.
10214 * src/roff/troff/div.cc (space_request, flush_output): Use
10215 `environment::add_html_tag()'.
10216 * src/roff/troff/input.cc: Updated.
10217 New variable `html_level' to indicate nested `html-begin' requests.
10218 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
10219 (non_interpreted_char_node, token_node, non_interpreted_node): Add
10220 `force_tprint()' method.
10221 (token::next): Handle `\O'.
10222 (do_suppress): Implement it.
10223 (html_begin, html_end, html_image): New functions.
10224 (init_output_requests): Renamed to ...
10225 (init_html_requests): this.
10227 (macro::append_str, macro::append_unsigned, macro::append_int): New
10229 New variable `output_low_mark_miny' to limit minimal value of y.
10230 (reset_output_registers): Use it.
10231 (output_request): Removed.
10232 (get_output_registers): New function.
10233 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
10234 (*_node): Added `force_tprint()' if necessary.
10235 (special_node): New elements `tf' and `get_tfont()'.
10236 (suppress_node): New class.
10237 * src/roff/troff/node.cc:
10238 New global variables `image_no' and `suppress_start_page'.
10239 (real_output_file): New method `is_on()'.
10240 (troff_output_file): New method `start_special(tfont)'.
10241 (troff_output_file::really_print_line): Use `tprint' conditionally.
10242 (real_output_file::print_line): Updated.
10243 (real_output_file::on): Updated.
10244 (*_node): Added `force_tprint()'.
10245 (special_node::special_node): Initializer updated.
10246 (special_node::same, special_node::copy, special_node::tprint_start):
10248 (get_reg_int, get_reg_str): New functions.
10249 (suppress_node::*): New methods.
10250 New global variables last_position, last_image_filename;
10251 (min): New inline function.
10252 * src/roff/troff/reg.h, src/roff/troff/request.h,
10253 src/roff/troff/troff.h: Updated.
10255 2001-01-13 Werner LEMBERG <wl@gnu.org>
10257 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
10258 documentation of `asciify' request.
10260 2001-01-12 Werner LEMBERG <wl@gnu.org>
10262 * src/roff/troff/input.cc: Move definition of special characters
10263 like `ESCAPE_TILDE' to ...
10264 * src/roff/troff/input.h: New file.
10265 * src/roff/troff/Makefile.sub (HDRS): Add it.
10267 Extending the .asciify request to `unformat' space characters also.
10269 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10270 to count input space characters.
10271 Update constructors to take care of it.
10272 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10273 `ESCAPE_SPACE' instead of normal space.
10274 (word_space_node::asciify): New method.
10275 (unbreakable_space_node::asciify): New method.
10276 (word_space_node::merge_space): New method.
10277 * src/roff/troff/env.cc (environment::space_newline,
10278 environment::space): Add code to initialize `num_spaces' (using the
10279 constructor of `word_space_node').
10280 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10283 2001-01-09 Werner LEMBERG <wl@gnu.org>
10285 * man/groff_char.man: Use table header traps only conditionally.
10287 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
10289 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10291 2001-01-08 Werner LEMBERG <wl@gnu.org>
10293 Introducing the `box' and `boxa' requests which are similar to
10294 `di' resp. `da' but omitting a partially filled line (which is
10295 restored after ending the diversion).
10297 * src/roff/troff/div.h (diversion): Add elements to save partially
10299 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10300 partially filled line.
10301 (divert, divert_append): Updated.
10302 (box, box_append): New functions.
10303 (init_div_requests): Use them.
10304 * src/roff/troff/env.h (environment): do_divert() is now a friend.
10305 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10307 * doc/groff.texinfo: Fix documentation of `lf' request.
10309 2000-12-25 Werner LEMBERG <wl@gnu.org>
10311 * src/roff/troff/troff.man, NEWS: Document `writem' request.
10313 2000-12-21 Werner LEMBERG <wl@gnu.org>
10315 Ignore `ss' request if in compatibility mode.
10317 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10318 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10319 * src/roff/troff/env.cc (space_size): Use it.
10321 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10322 `ss' request in nroff mode.
10324 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10327 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
10329 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10331 2000-12-13 Werner LEMBERG <wl@gnu.org>
10333 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10334 * src/preproc/eqn/neqn.man: Small fixes and additions.
10336 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
10338 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10341 * src/preproc/eqn/neqn.man: New file.
10343 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10346 * tmac/e.tmac: Add `T&' macro.
10347 Fix `indent cannot be negative' warning.
10348 * tmac/s.tmac: Fix `indent cannot be negative' warning.
10350 2000-12-07 Werner LEMBERG <wl@gnu.org>
10352 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10354 2000-12-06 Werner LEMBERG <wl@gnu.org>
10356 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10359 * MORE.STUFF: Added info about deroff for djgpp.
10361 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10362 documentation of -rcR switch.
10364 2000-12-03 Werner LEMBERG <wl@gnu.org>
10366 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10367 if -rcR=1 (which is now the default in nroff mode), a single, very
10368 long page is created instead of multiple pages: All `ne' and `wh'
10369 requests are put into conditionals; a new macro `an-end' is added to
10370 be called with `em'.
10372 Some other minor cleanups.
10374 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10376 2000-12-02 Werner LEMBERG <wl@gnu.org>
10378 Fixing a bug which prevented hyphenation in words followed
10379 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10381 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10382 Adding possibly_break_line().
10383 * src/roff/troff/env.h (environment): Make possibly_break_line()
10386 Make `\~' usable in .tr request.
10388 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10389 (token): Add stretchable_space().
10390 * src/roff/troff/input.cc (token::next, token::delimiter,
10391 token::description, process_input_stack, do_translate,
10392 add_to_node_list, token::process): Use it.
10393 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10394 for adjusting the space.
10395 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
10396 for stretchable space.
10397 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10398 (make_node): Add code for stretchable space.
10399 * src/roff/troff/env.cc (environment::add_char): Use it.
10400 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10401 (get_copy, token::next, transparent_translate, asciify): Use it.
10403 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10404 doc/groff.texinfo: Updated.
10405 * man/groff.man: Small reorderings.
10407 2000-11-23 Werner LEMBERG <wl@gnu.org>
10410 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10412 * src/roff/troff/input.cc (main): Add `config_macro_path' and
10413 `safer_macro_path' to -M option.
10414 * src/roff/troff/troff.man: Fixes.
10416 2000-11-22 Werner LEMBERG <wl@gnu.org>
10418 Use safer path (except for config files) if -U isn't specified. Add
10419 a special macro path (without home and current directory) for config
10420 files. Add home directory to unsafe path for consistency. Don't
10421 include the home directory in the font path.
10423 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10425 * src/include/macropath.h: Add `config_macrp_path'.
10426 * src/libs/libgroff/fontfile.cc: Fix font path.
10427 * src/roff/troff/input.cc (process_startup_file): Use
10428 `config_macro_path'.
10429 (main): Select unsafe path if -U is given.
10431 * src/preproc/eqn/main.cc (main): Fixing search path for
10432 configuration file.
10433 * src/preproc/eqn/eqn.man: Updated.
10435 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10438 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10439 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10440 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10441 src/devices/grotty/grotty.man: Updated.
10443 * Makefile.in: Fix comments.
10445 2000-11-17 Werner LEMBERG <wl@gnu.org>
10447 * tmac/safer.tmac: Empty file added (again) for compatibility
10449 * tmac/Makefile.sub: Updated.
10451 2000-11-16 Werner LEMBERG <wl@gnu.org>
10453 * src/devices/grodvi/dvi.cc (main),
10454 src/devices/grohtml2/post-html.cc (main),
10455 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10456 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10457 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10458 (main), src/preproc/html2/pre-html.cc (main),
10459 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10460 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10461 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10462 (main), src/utils/hpftodit/hpftodit.cc (main),
10463 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10464 (main), src/utils/lookbib/lookbib.cc (main),
10465 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10466 (main): Use stdout for -v.
10467 * src/roff/groff/groff.cc (run_commands),
10468 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10469 to make direct printing to stdout possible.
10470 * src/roff/groff/pipeline.h: Updated.
10472 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10473 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10474 * src/utils/afmtodit/afmtodit.man: Updated.
10476 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10477 (version): New function.
10479 * src/utils/addftinfo/addftinfo.man: Updated.
10481 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10482 Fixing copyright dates.
10484 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10487 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10490 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10492 2000-11-15 Werner LEMBERG <wl@gnu.org>
10494 In all programs, make -v return immediately with exit status 0 to
10495 be compliant with the GNU standard.
10497 * src/devices/grodvi/dvi.cc (main),
10498 src/devices/grohtml2/post-html.cc (main),
10499 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10500 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10501 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10502 (main), src/preproc/html2/pre-html.cc (main),
10503 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10504 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10505 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10506 (main): Implement it.
10509 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
10510 and postprocessors to the -v option.
10512 * src/roff/grog/grog.pl: Implement -v.
10513 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10514 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10516 * src/roff/nroff/nroff.sh: Implement -v.
10517 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10518 * src/roff/nroff/nroff.man: Updated.
10520 * src/preproc/eqn/main.cc (main): Fix comment typo.
10522 * MORE.STUFF: Added info about djgpp port of grap.
10524 2000-11-14 Werner LEMBERG <wl@gnu.org>
10526 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10527 mode (or rather, implemented non-compatibility mode).
10528 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10530 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10531 replacing it -- we don't find gxditview otherwise.
10532 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10534 * src/preproc/pic/depend: Removed. Unnecessary.
10536 Implemented dummy keyword `solid' in pic for compatibility with
10539 * lex.cc (lookup_keyword): Added `solid'.
10540 * pic.y: Added SOLID with dummy rule.
10541 * pic.cc, pic_tab.h: Regenerated.
10542 * doc/pic.ms: Updated.
10544 2000-11-13 Werner LEMBERG <wl@gnu.org>
10546 For security reasons, don't use the current directory but the home
10547 directory while searching and scanning troffrc and troffrc-end.
10548 Similarly, replace the current directory with the home directory
10551 * Makefile.in (fontpath, tmacpath): Remove current directory.
10553 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10554 two parameters `add_home' and `add_current'.
10555 (search_path::~search_path, search_path::command_line_dir,
10556 search_path::open_file): Remove tests for `dirs' being zero.
10557 * src/include/searchpath.h: Adjust.
10558 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10559 `safer_macro_path'.
10560 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10562 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10563 * src/roff/troff/input.cc: Use `mac_path', initialized with
10565 (process_startup_file): Set `mac_path' to `safer_macro_path'.
10566 * src/roff/troff/env.cc: Use `mac_path'.
10568 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10570 * NEWS, man/roff.man, src/roff/troff/troff.man,
10571 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10574 2000-11-12 Werner LEMBERG <wl@gnu.org>
10576 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10578 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10579 * configure.in: Fix typo in comment.
10580 * configure: Regenerated.
10582 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10585 2000-11-08 Werner LEMBERG <wl@gnu.org>
10587 Add system tmac directory (/usr/local/lib/groff/site-tmac).
10589 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10590 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10593 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10594 * tmac/Makefile.sub (install_data): Create
10595 $(systemtmacdir) and $(localtmacdir).
10596 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10597 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10598 NEWS, doc/groff.texinfo: Updated and minor fixes.
10600 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10601 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10602 $(systemtmacdir) since the wrapper files are platform-dependent.
10604 2000-11-01 Werner LEMBERG <wl@gnu.org>
10606 * doc/groff.texinfo: Fix typo.
10608 2000-10-26 Werner LEMBERG <wl@gnu.org>
10610 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
10611 tmac.doc.old -> doc-old.tmac
10612 tmac.an.old -> an-old.tmac
10614 * tmac/tmac.*: Moved to ...
10615 * tmac/*.tmac: this.
10616 * tmac/man.local: Fix comment.
10617 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10618 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
10619 Added some `FILES' sections. More use of @...@ directives. Other
10621 * arch/djgpp/README, font/devutf8/NOTES: Updated.
10622 * doc/homepage.ms, doc/groff.texinfo: Updated.
10623 * man/groff.man, man/roff.man: Updated.
10624 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10625 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10626 src/devices/grotty/grotty.man: Updated.
10627 * src/preproc/pic/pic.man: Updated.
10628 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10629 instead of -mdoc.old.
10630 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10631 * src/roff/nroff/nroff.man: Updated.
10634 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10636 * tmac/mm.diff: Removed -- it has no use now since the mm package
10639 * tmac/*: Removed trailing spaces.
10641 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10642 the tmac subdirectory also).
10644 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10645 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10646 stuff since it is no longer needed.
10648 * README, PROBLEMS: Updated.
10650 2000-10-25 Werner LEMBERG <wl@gnu.org>
10652 Invert current behaviour: Search first FOOBAR.tmac, then
10655 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10656 (open_mac_file, macro_source): Implement it.
10657 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10658 doc/groff.texinfo, NEWS: Document it.
10660 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10661 Small documentation improvements.
10663 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10664 subdirectory also).
10666 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10668 2000-10-24 Werner LEMBERG <wl@gnu.org>
10670 Add local tmac directory (groff/site-tmac).
10672 * Makefile.in: Add $(localtmacdir).
10673 (uninstall_dirs): Add $(localtmacdir).
10674 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10675 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10676 in $(localtmacdir). Create $(localtmacdir).
10677 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10678 Updated and minor fixes.
10680 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10682 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10684 2000-10-23 Werner LEMBERG <wl@gnu.org>
10686 Move hyphen.us to tmac directory.
10688 * src/roff/troff/hyphen.us: Removed.
10689 * src/tmac/hyphen.us: Added.
10690 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10692 Change installation structure for data files from .../groff/... to
10693 .../groff/<version><revision>/... to be conform with other GNU
10696 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10697 doc/Makefile: Implement it.
10698 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10699 * configure: Updated.
10700 * arch/djgpp/README, font/devutf8/NOTES: Use it.
10701 * NEWS: Document it.
10702 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10703 @MACRODIR@ instead of hard-coded directories.
10705 2000-10-22 Werner LEMBERG <wl@gnu.org>
10707 Implement $GROFF_BIN_PATH environment variable (which defaults to
10708 $bindir) used for child programs of groff and similar wrappers.
10710 * gendefs.sh: Improve documentation.
10711 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10712 src/preproc/eqn/Makefile.sub (neqn),
10713 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10714 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10716 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10717 $GROFF_PATH__ (the latter for communication with troff).
10718 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10720 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10721 doc/groff.texinfo: Document it.
10723 * doc/groff.texinfo: Improve documentation of troff's -a option.
10725 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
10727 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10728 non-intrusive eol marker.
10729 (troff_output_file::determine_line_limits): New function.
10730 (troff_output_file::draw): Use it.
10731 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10732 output_pending_lines() instead of output_line().
10733 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10734 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10735 createImage): Small fixes.
10737 2000-10-14 Werner LEMBERG <wl@gnu.org>
10739 Replace tmac.safer with a real secure solution.
10741 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10742 system_request, pipe_output): Disable requests if in safer mode.
10743 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10744 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10745 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10746 doc/groff.texinfo, src/roff/groff/groff.man,
10747 src/roff/troff/troff.man, arch/djgpp/README: Updated.
10749 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10750 (resource_manager::output_prolog): Replace setenv() with putenv().
10752 2000-10-09 Werner LEMBERG <wl@gnu.org>
10754 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10755 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10756 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10757 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10758 compilation errors with some compilers. It seems that this code
10759 is no longer necessary -- if yes, it is easy to add some #ifdef's
10760 for that particular old-fashioned compiler.
10762 * MORE.STUFF: Added info about Meta-tbl.
10764 * doc/groff.texinfo: Added more info about `.if "..."..."'.
10766 2000-10-07 Werner LEMBERG <wl@gnu.org>
10768 Adding a new escape sequence \B'...': If the string between
10769 the delimiters is a valid numeric expression, return the character
10770 `1', and `0' otherwise. This is an analogon to \A.
10772 * src/roff/troff/input.cc (do_expr_test): Implement it.
10773 (token::next): Use it.
10774 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10776 * tmac/tmac.trace: Made independent from escape character.
10778 2000-10-06 Werner LEMBERG <wl@gnu.org>
10780 Adding a new request .dei: define indirect. The first and second
10781 parameter of .dei are taken from string registers instead directly;
10782 this very special request is needed to make tmac.trace independent
10783 from the escape character (which might even be disabled).
10785 * src/roff/troff/input.cc (do_define_macro): Implement it.
10786 (define_macro_indirect): New function.
10787 (init_input_requests): Use it.
10789 Adding two requests .ecs and .ecr: Save and restore the escape
10790 character. These two requests are needed to make tmac.trace
10791 independent from the escape character (which might even be
10794 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10796 (init_input_requests): Use it.
10798 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10800 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
10802 Adding a new option -P and new environment variable GROPS_PROLOGUE
10803 to grops, selecting a different prologue file (minor modifications
10806 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10807 src/devices/grops/ps.cc (main): Implement it.
10808 * src/devices/grops/grops.man, NEWS: Document it.
10810 2000-09-22 Werner LEMBERG <wl@gnu.org>
10812 * INSTALL: Add info about selecting paper format.
10814 2000-09-21 Werner LEMBERG <wl@gnu.org>
10816 * src/roff/troff/input.cc (main): Fixing compiler warning.
10817 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10818 strings.h from the former to the latter.
10819 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10820 stuff from the former to the latter.
10822 2000-09-11 Werner LEMBERG <wl@gnu.org>
10824 Implementing two new requests .tm1 and .tmc: The former is similar
10825 to .tm but can output leading spaces; its syntax is similar to
10826 defining a string, i.e., a `"' can be used to mark the beginning of
10827 the string to be written to stderr: `.tm1 " test'. The latter is
10828 similar to .tm1 but doesn't write out a final newline character.
10830 * src/roff/troff/input.cc (terminal1, terminal_continue,
10831 do_terminal): New functions.
10832 (init_input_requests): Use them.
10833 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10835 2000-09-09 Werner LEMBERG <wl@gnu.org>
10837 * tmac/groff_mdoc.samples.man: Small fixes.
10839 2000-09-08 Werner LEMBERG <wl@gnu.org>
10841 * tmac/groff_mdoc.man: Fixing typo.
10843 2000-09-02 Werner LEMBERG <wl@gnu.org>
10845 Implementing a .nop request which does nothing.
10847 * src/roff/troff/input.cc (nop_request): New function.
10848 (init_input_requests): Use it.
10849 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10851 2000-09-01 Werner LEMBERG <wl@gnu.org>
10853 * doc/groff.texinfo: Added some comments.
10855 2000-08-30 Werner LEMBERG <wl@gnu.org>
10857 * src/roff/troff/TODO: Updated.
10859 2000-08-25 Werner LEMBERG <wl@gnu.org>
10861 * doc/groff.texinfo: Fix comment how to compile the DVI file.
10863 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10865 * font/devps/generate/Makefile (SHELL): Define explicitly to
10866 "/bin/sh", for non-Unix platforms.
10867 (extraclean): Use a more portable "" quoting instead of a
10868 backslash (which doesn't work on DOS/Windows).
10870 * font/devlj4/generate/Makefile (extraclean): Ditto.
10872 * font/devdvi/generate/Makefile (extraclean): Ditto.
10874 2000-08-25 Werner LEMBERG <wl@gnu.org>
10876 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10877 src/roff/troff/troff.man: Document Eli's latest changes.
10879 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10881 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10882 macro file names of the form NAME.tmac as well as tmac.NAME.
10884 2000-08-25 Werner LEMBERG <wl@gnu.org>
10886 * src/include/posix.h: Remove definition of FILENAME_MAX.
10888 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10889 `sys_fatal' and `stop' function().
10891 * test-groff: Updated.
10893 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
10895 Added the new troff command .output <arg> to suppress output (while
10896 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10897 registers (for passing the output dimensions to the output device).
10899 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10901 * src/roff/troff/node.h, src/roff/troff/node.cc
10902 (troff_output_file::really_print_line,
10903 ascii_output_file::really_print_line,
10904 supress_output_file::really_print_line): Use `width' parameter.
10905 (troff_output_file::really_on, troff_output_file::really_off,
10906 output_file::on, output_file::off, real_output_file::on,
10907 real_output_file::off, real_output_file::really_on,
10908 real_output_file::really_off): New functions.
10909 (real_output_file:public output_file): New variable `output_on'.
10910 (real_output_file::begin_page, real_output_file::copy_file,
10911 real_output_file::transparent_char, real_output_file::print_line):
10913 (real_output_file::print_line): Use check_output_limits.
10914 * src/roff/troff/reg.h, src/roff/troff/request.h,
10915 src/roff/troff/input.cc (assign_registers): New function to remove
10917 (do_ps_file): Use it.
10918 (check_output_limits, reset_output_registers, output_request,
10919 init_output_requests): New functions.
10920 (init_input_requests): Updated.
10922 Added new grohtml2 device and html2 preprocessor (coding
10923 not yet finished) which will eventually replace grohtml.
10925 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10927 * src/include/htmlindicate.h, src/include/htmlindicate
10928 (html_begin_suppress, html_end_suppress): New functions.
10929 * src/preproc/tbl/main.cc: Use it.
10930 * src/roff/groff/groff.cc: Add support for html2 device (which will
10931 automatically invoke the html2 preprocessor).
10932 * src/roff/troff/input.cc (is_html2): New variable.
10933 * src/roff/troff/troff.h, src/roff/troff/env.h,
10934 src/roff/troff/env.cc (environment::add_html_tag): New function
10936 (environment::do_break): Use it.
10937 * font/devhtml2/*: New files.
10938 * src/devices/grohtml2: New device.
10939 * src/preproc/html2: New preprocessor.
10940 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10942 2000-08-23 Werner LEMBERG <wl@gnu.org>
10944 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10946 2000-08-22 Werner LEMBERG <wl@gnu.org>
10948 * src/include/lib.h: Provide a fix for IRIX to not include
10951 2000-08-18 Werner LEMBERG <wl@gnu.org>
10953 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10954 since some non-GNU sed programs can't handle null regexps.
10955 * configure, src/preproc/eqn/Makefile.sub,
10956 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10958 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10959 bug (string.h and strings.h are both needed according to latest
10962 * MORE.STUFF: Added info about unroff and troffcvt.
10964 2000-08-08 Werner LEMBERG <wl@gnu.org>
10966 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10969 * tmac/tmac.man.old: Remove unused number register.
10971 * tmac.doc: Minor documentation fix.
10973 2000-08-07 Paul Eggert <eggert@twinsun.com>
10975 * src/roff/groff/pipeline.c (is_system_shell):
10976 Fix typo: "monocased_shell" no longer exists.
10978 2000-08-07 Paul Eggert <eggert@twinsun.com>
10980 Remove FILENAME_MAX limits.
10982 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10983 that the argument length is less than FILENAME_MAX.
10984 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10985 Use struct hack to allocate and free file name.
10986 (struct xtmpfile_list): fname is now part of the structure,
10987 not a pointer to another string.
10989 2000-08-07 Tom Schmidt <tschmidt@micron.com>
10991 * src/include/posix.h: Add a default value for FILENAME_MAX.
10993 2000-08-06 Paul Eggert <eggert@twinsun.com>
10995 Add support for new BSD-style man pages (with ".Dd" instead of
10996 ".TH"), so that "groff -man" understands both styles, even
10997 when running "groff -man" on a host whose system man page
10998 macros don't support ".Dd".
11000 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
11001 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
11002 in case the system man macros don't define Dd or TH.
11004 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
11005 * tmac/tmac.an: New one-line file.
11006 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
11008 2000-08-06 Werner LEMBERG <wl@gnu.org>
11010 * src/roff/troff/troff.man: Fixing typos.
11012 Version 1.16.1 released
11013 =======================
11015 2000-07-31 Werner LEMBERG <wl@gnu.org>
11017 Preparing release 1.16.1.
11019 * REVISION: Revision number set to 1.
11020 * MORE.STUFF: Added info about port to DOS.
11021 * NEWS, win32-diffs: Updated.
11023 * src/include/nonposix.h: Remove first line -- this file is used
11026 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
11029 2000-07-30 Werner LEMBERG <wl@gnu.org>
11031 * doc/texinfo.tex: Update to latest version.
11033 2000-06-28 Paul Eggert <eggert@twinsun.com>
11035 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
11036 commands that fail. Don't assume that "export a=b" is valid shell
11037 syntax. This is needed for Solaris 2.5.1.
11039 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
11040 comment about missing Solaris headers.
11042 * PROBLEMS: Add section about problems with Sun Make and VPATH.
11044 2000-06-25 Werner LEMBERG <wl@gnu.org>
11046 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
11049 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
11051 * win32-diffs: Updated.
11052 * README.WIN32: Added CRs to make all Windows editors happy.
11054 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
11055 src/roff/groff/pipeline.c).
11057 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
11059 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
11060 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
11062 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
11064 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
11065 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
11067 (main): Support non-Posix systems with several different styles of
11068 slash characters in file names.
11070 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
11071 (main) [SET_BINARY]: Switch stdin into binary mode.
11073 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
11074 (main): Support file names with several possible slash-type
11075 characters, as given by DIR_SEPS[] in nonposix.h.
11076 (main) [__MSDOS__]: If renaming the temporary index file fails
11077 because it has more than one dot in its trunk, replace the dot
11078 with an underscore and try again.
11079 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
11081 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
11083 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
11084 (File::File): Open the input file in binary mode. Strip CR
11085 characters from each CR-LF pair.
11086 (xbasename): Support file names with several possible slash-type
11087 characters, as given by DIR_SEPS[] in nonposix.h.
11089 * src/include/Makefile.sub (HDRS): Add nonposix.h.
11091 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
11092 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
11093 [!_POSIX_VERSION]: Define for traditional Unix systems.
11094 (real_output_file::real_output_file): Remove the MSVC-specific
11095 call to popen, use instead POPEN_WT, appropriately defined on
11096 nonposix.h. #include nonposix.h.
11097 (real_output_file::~real_output_file): Remove the MSVC-specific
11098 call to pclose, a suitable macro is now defined on nonposix.h.
11099 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
11100 and WEXITSTATUS instead of assuming traditional Unix
11101 interpretation of the status returned by pclose.
11103 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
11104 call to popen, use POPEN_RT instead (appropriately defined on
11105 nonposix.h). #include nonposix.h.
11106 (ps_bbox_request): Open the PostScript file in binary mode.
11107 Close the file after processing it.
11108 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
11111 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
11112 A version of run_pipeline that doesn't use `fork'.
11113 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
11114 (system_shell_name, system_shell_dash_c)
11115 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
11116 the ugliness of testing DOS/Windows file names for equality, and
11117 support both stock shells and ports of Unix shells.
11119 * src/roff/groff/groff.cc: #include nonposix.h.
11120 (BSHELL): Definition moved to nonposix.h.
11121 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
11122 instead of a literal "-c".
11123 (xbasename): Support file names with several possible slash-type
11124 characters, as given by DIR_SEPS[] in nonposix.h.
11125 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
11126 of literal strings.
11128 * src/preproc/soelim/soelim.cc: #include nonposix.h.
11129 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
11131 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
11134 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
11136 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
11139 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
11141 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
11142 P_tmpdir is defined, use it instead of the literal "/tmp".
11143 (remove_tmp_files, add_tmp_file): New functions.
11144 (xtmpfile): Record temporary files and register an atexit function
11145 to delete them explicitly, instead of relying on the OS to do
11146 that, which doesn't work on non-Unix systems.
11148 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
11149 (search_path::search_path): Use PATH_SEP instead of a literal
11151 (search_path::command_line_dir): Ditto.
11152 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
11153 to support non-Posix systems.
11155 * src/libs/libbib/search.cc: #include nonposix.h.
11156 (search_list::add_file): Open the file in binary mode.
11158 * src/libs/libbib/linear.cc: #include nonposix.h.
11159 (file_buffer::load): Remove \r characters preceding \n from the
11162 * src/libs/libbib/index.cc: #include nonposix.h.
11163 (make_index_search_item): Open index_filename in O_BINARY mode.
11164 (index_search_item_iterator::get_tag): Ditto. Remove \r
11165 characters before \n characters.
11166 (index_search_item::check_files): Open files in binary mode.
11167 (index_search_item::munge_filename): Support DOS-style file names
11168 with backslashes and drive letters, use IS_ABSOLUTE.
11170 * src/devices/grops/ps.cc: #include nonposix.h.
11171 (main) [SET_BINARY]: Switch stdout to binary mode.
11173 * src/devices/grolj4/lj4.cc: #include nonposix.h.
11174 (main) [SET_BINARY]: Switch stdout to binary mode.
11176 * src/devices/grolbp/lbp.cc: #include nonposix.h
11177 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
11179 * src/devices/grodvi/dvi.cc: #include nonposix.h.
11180 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
11182 (main) [SET_BINARY]: Switch stdout to binary mode.
11183 [_MSC_VER]: Remove an explicit call to _setmode.
11185 * src/include/nonposix.h: New file.
11187 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
11188 operation when building with DJGPP.
11189 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
11190 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
11193 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
11195 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
11196 etc. can include a semi-colon on DOS/Windows.
11197 (depend.temp): Use depend1.temp instead of depend.temp1, to
11198 prevent files from overerwiting each other on 8+3 filesystems.
11200 * gendef.sh (t): Change definition to work with DOS/Windows.
11202 doc/groff.texinfo: Apart of some typo corrections, I also changed
11203 some index entris, to make them more non-ambiguous, and also put
11204 @ignore around some parts that are not yet written, to allow the
11205 Info output be readable.
11207 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
11209 Replaced specific checks for function declarations with a generic
11210 routine taken from GNU bfd.
11212 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
11213 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
11214 * configure.in: Use it.
11215 * src/devices/grolbp/lbp.cc, src/include/lib.h,
11216 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
11217 src/roff/groff/groff.cc: Use it.
11218 * Makefile.in, configure: Updated.
11220 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
11222 * src/devides/grolbp/lbp.h: Removed unused variables.
11224 2000-05-31 Keith Thompson <kst@sdsc.edu>
11226 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
11229 2000-05-31 Werner LEMBERG <wl@gnu.org>
11231 * aclocal.m4 (GROFF_SRAND): New function to test the return value
11232 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
11233 * configure.in: Use it.
11234 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
11235 * configure, Makefile.in: Updated.
11237 * configure.in: Add test for strncasecmp().
11238 * src/include/lib.h: Use it.
11240 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
11242 * src/preproc/grn/Makefile.sub: Add MLIB.
11244 2000-05-29 Nix <nix@esperi.demon.co.uk>
11246 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
11248 2000-05-29 Werner LEMBERG <wl@gnu.org>
11250 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
11252 * PROBLEMS: Small update.
11254 * src/devices/grolbp/lbp.cc: Various small fixes.
11256 2000-05-28 Keith Thompson <kst@sdsc.edu>
11258 * src/roff/nroff/nroff.sh: Fix main loop syntax.
11260 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
11262 2000-05-25 Werner LEMBERG <wl@gnu.org>
11264 * man/roff.man: Removed unused macro.
11266 2000-05-24 Werner LEMBERG <wl@gnu.org>
11268 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
11269 This is needed e.g. if you do
11270 `make distclean; ./configure; make dist'.
11272 Version 1.16 released
11273 =====================
11275 2000-05-23 Werner LEMBERG <wl@gnu.org>
11277 Adding font CWI (constant width italic) to devdvi.
11279 * font/devdvi/CWI: New file.
11280 * font/devdvi/generate/Makefile: Add generating rule.
11281 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11282 tmac/tmac.dvi: Use it.
11283 * NEWS: Announce it.
11285 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11286 * font/devlj4/generate/Makefile: Cosmetic changes only.
11288 * man/groff.man: Removed most of the redundant description of
11289 special characters (which is in groff_char.man). Added font
11290 translation CB->CR for devdvi. Other minor fixes.
11292 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11293 (registered) symbols.
11295 2000-05-22 Werner LEMBERG <wl@gnu.org>
11297 * doc/Makefile: Added rule for creating info files.
11299 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
11301 * font/devdvi/generate/Makefile: Fixed dependencies.
11303 * font/devps/*: Regenerated. Heavy changes for Bookman and
11304 NewCentury Schoolbook!
11305 * font/devps/generate/afmname: Will now run with GNU awk.
11306 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11307 * font/devps/generate/Makefile: Cosmetic changes only.
11309 2000-05-21 Werner LEMBERG <wl@gnu.org>
11311 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11312 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
11313 `.SS' now produces a heading with a smaller size than `.SH'.
11314 Completely formatted.
11315 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11317 * man/groff.man: Improved table appearance. Use of `eo' request
11318 to reduce number of doubled backslashes in macro definitions.
11319 Replacing `\e' with `\(rs'. Other minor fixes.
11321 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11322 to have correct line number.
11324 * INSTALL: Small improvement.
11326 2000-05-20 Bernd Warken <bwarken@mayn.de>
11328 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11331 2000-05-19 Bernd Warken <bwarken@mayn.de>
11333 * man/groff.man: Complete update (with a lot of corrections by WL).
11335 2000-05-18 Werner LEMBERG <wl@gnu.org>
11337 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11339 * font/*/*: Implement it.
11340 * man/groff_char.man, NEWS: Document it.
11342 * src/include/unix.h: Removed. It isn't used.
11344 * doc/groff.texinfo: Slight improvements.
11346 2000-05-17 Werner LEMBERG <wl@gnu.org>
11348 * README, win32-diffs: Small fixes and improvements.
11350 2000-05-16 Werner LEMBERG <wl@gnu.org>
11352 * FDL: New file (the Free Documentation License version 1.1).
11354 * doc/groff.texinfo: Added many start-up values for gtroff.
11355 Some structural improvements of the source code.
11357 2000-05-15 Werner LEMBERG <wl@gnu.org>
11359 * src/roff/troff/input.cc: Added small comment about troffrc-end.
11360 * src/roff/troff/troff.man: Added info about troffrc-end.
11362 2000-05-14 Werner LEMBERG <wl@gnu.org>
11364 * Makefile.in (EXTRADIRS): Fix typos.
11365 (dist): Handle deletion of old .tar.gz file correctly.
11366 (DISTDIRS): Include all tty output devices.
11368 * doc/groff.texinfo: Adding more cross references; countless other
11371 2000-05-13 Werner LEMBERG <wl@gnu.org>
11373 * MORE.STUFF: Added Robert Marks's utilities.
11375 2000-05-12 Werner LEMBERG <wl@gnu.org>
11377 Added win32 port contributed by Blake McBride
11378 <blake@florida-software.com>.
11380 * README.WIN32, win32-diffs: New files.
11383 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11384 (tmove, tmove2): Added parentheses to avoid compiler warnings.
11385 (change): Removed unused variables.
11387 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11388 (savebounds): Changed return value from `int' to `void'.
11389 * src/preproc/grn/hdb.cc: Ditto.
11391 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11392 final backslash in comment to avoid compiler warning.
11394 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11396 * doc/groff.texinfo: More fixes.
11398 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
11400 * tmac/tmac.doc: Documentation fix.
11402 2000-05-11 Werner LEMBERG <wl@gnu.org>
11404 * doc/groff.texinfo: Reading the source code shows up a lot of
11405 omissions and incorrect data... More conversion to @Deffn macros.
11407 2000-05-10 Werner LEMBERG <wl@gnu.org>
11409 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11412 * src/roff/troff/request.h: Removing unused `no_break_flag'.
11414 2000-05-09 Werner LEMBERG <wl@gnu.org>
11416 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11419 * doc/groff.texinfo: Extended history section. More conversion to
11420 @Deffn macros. More .tr documentation.
11422 2000-05-07 Werner LEMBERG <wl@gnu.org>
11424 * doc/groff.texinfo: Completed tab section. Added info about
11427 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
11429 * PROBLEMS: Describe configure script fix for OS/390 Unix.
11431 2000-05-05 Werner LEMBERG <wl@gnu.org>
11433 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11435 * NEWS: Document it.
11437 * man/troff.man: Minor optical improvements.
11439 2000-05-03 Werner LEMBERG <wl@gnu.org>
11441 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11443 * font/*/*: Implement it.
11444 * man/groff_char.man, NEWS: Document it.
11446 2000-05-02 Werner LEMBERG <wl@gnu.org>
11448 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11450 * NEWS: Document the three new man pages.
11452 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11453 * configure: Updated.
11455 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11457 2000-05-01 Werner LEMBERG <wl@gnu.org>
11459 Added grap support to grog.
11461 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11462 * src/roff/grog/grog.man: Document it.
11464 * doc/groff.texinfo, NEWS: Add info about grap support.
11466 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11467 (with slight fixes by me).
11469 * tmac/groff_tmac.man: New file documenting tmac mechanism.
11470 * tmac/Makefile.sub: Add groff_tmac.man.
11471 * man/roff.man: New file giving overview of roff system.
11472 * man/troff.man: A short reference of troff.
11473 * man/Makefile.sub: Add roff.man and troff.man.
11475 2000-04-30 Werner LEMBERG <wl@gnu.org>
11477 Added grap support to groff.
11479 * src/roff/groff/groff.cc: Implement it.
11480 * src/roff/groff/groff.man: Document it.
11482 * src/devices/grotty/grotty.man: Add cp1047 device.
11483 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11485 * src/roff/groff/groff.man: Ditto.
11486 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11487 * doc/groff.texinfo: Ditto.
11489 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11492 2000-04-29 Werner LEMBERG <wl@gnu.org>
11494 * man/groff_char.man: Add `pc' glyph.
11495 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11496 * tmac/tmac.tty: Add `pc' glyph.
11497 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
11498 we use cp1047 output device.
11500 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11501 there are still hardcoded latin1->unicode values in utf8's font
11503 * configure: Updated.
11504 * NEWS: Minor clarification. Updated.
11506 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
11509 2000-04-28 Werner LEMBERG <wl@gnu.org>
11511 Adding EBCDIC code page 1047.
11513 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11514 font/devcp1047/DESC.proto: New files.
11516 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11517 either ascii/latin1 or cp1047.
11518 * Makefile.in: Use it.
11519 * configure: Updated.
11521 Replacing and/or adding `md' (mathdot) glyph with `pc'
11522 (periodcentered) in all text fonts.
11524 * font/*/*: Change it.
11526 2000-04-27 Werner LEMBERG <wl@gnu.org>
11528 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11530 * configure.in: Add check for strings.h.
11531 * src/include/driver.h: Use HAVE_STRINGS_H.
11532 * src/devices/grolbp/lpb.cc: Remove string.h.
11534 * src/include/groff-getopt.h: New file. It will be used instead of
11535 getopt.h (to be included in lib.h) to avoid endless problems with
11536 picky C++ compilers.
11537 * src/include/lib.h: Use groff-getopt.h.
11538 * src/include/Makefile.sub: Updated.
11540 * configure: Updated.
11541 * Makefile.in: Updated.
11543 * NEWS: Mention EBCDIC support.
11545 2000-04-26 Werner LEMBERG <wl@gnu.org>
11547 * TODO: Some additions.
11549 2000-04-25 Werner LEMBERG <wl@gnu.org>
11551 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11554 2000-04-23 Werner LEMBERG <wl@gnu.org>
11556 * src/roff/troff/troff.man: Minor fixes.
11558 2000-04-22 Werner LEMBERG <wl@gnu.org>
11560 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11561 `.T' string register and the incompatible definition of the `.T'
11562 number register (compared to Unix troff).
11564 * man/groff_char.man: Add some missing characters.
11565 * font/devutf8/NOTES: Update.
11567 2000-04-21 Werner LEMBERG <wl@gnu.org>
11569 * src/include/htmlindicate.h, src/include/lib.h,
11570 src/include/posix.h: Fix copyright.
11572 * src/include/Makefile.sub: Update.
11574 2000-04-20 Werner LEMBERG <wl@gnu.org>
11576 * src/roff/troff/input.cc (input_char_description): Removing
11577 superfluous space char.
11579 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11581 * doc/groff.texinfo: Document EBCDIC.
11583 2000-04-19 Werner LEMBERG <wl@gnu.org>
11585 Introducing `shc' as the glyph name for the soft hyphen character.
11587 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11588 font/devlatin1/R.proto: Use it.
11592 2000-04-18 Werner LEMBERG <wl@gnu.org>
11594 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11595 dependency on ASCII order.
11597 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
11599 * src/libs/libgroff/illegal.c: Added EBCDIC table.
11600 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11602 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11603 to increase portability.
11605 2000-04-15 Werner LEMBERG <wl@gnu.org>
11607 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11608 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11609 the generic `\n' if under OS/390 Unix.
11611 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11613 * configure: Regenerated.
11615 2000-04-14 Werner LEMBERG <wl@gnu.org>
11617 * doc/groff.texinfo: More conversions to @Deffn.
11619 2000-04-12 Werner LEMBERG <wl@gnu.org>
11621 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11624 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11626 2000-04-10 Werner LEMBERG <wl@gnu.org>
11628 * doc/groff.texinfo: More conversions to @Deffn.
11630 2000-04-08 Werner LEMBERG <wl@gnu.org>
11632 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11633 Updated to latest version (glibc 2.1.3).
11635 2000-04-07 Werner LEMBERG <wl@gnu.org>
11637 * doc/Makefile (clean): Include more index files.
11638 Add rule texinfo->dvi.
11640 2000-04-05 Werner LEMBERG <wl@gnu.org>
11642 * doc/groff.texinfo: Added new index `op' for operators. More
11643 info on end of sentence characters. More use of @Deffn.
11645 2000-03-30 Werner LEMBERG <wl@gnu.org>
11647 * */*.man: Adding a note that a whitespace can be inserted between
11648 a command line option and its parameter -- we are using GNU getopt.
11650 * src/roff/groff/groff.man: Add example of `-m mandoc'.
11652 2000-03-28 Werner LEMBERG <wl@gnu.org>
11654 Correct anachronism of calling the man macro file with `-man'
11655 instead of `-m man' etc.
11657 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11658 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11659 load tmac.<package>.
11661 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
11665 * doc/groff.texinfo: Updated.
11667 * tmac/groff_man.man: Copyright added.
11669 2000-03-27 Werner LEMBERG <wl@gnu.org>
11671 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11672 typeset the request resp. escape name with a tt font -- due to a
11673 bug in texinfo.tex it is necessary to use the `-e' switch with
11676 Improving info about usage of groff units.
11680 2000-03-20 Werner LEMBERG <wl@gnu.org>
11682 * doc/groff.texinfo: Added section about man macro package
11683 (I've basically taken groff_man.man). Introducing new indices `ma'
11684 for macros/strings and `gl' for glyph names. Other minor fixes.
11686 * tmac/groff_man.man: Fixed some typos.
11688 2000-03-19 Werner LEMBERG <wl@gnu.org>
11690 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11693 * doc/texinfo.tex: New file.
11695 2000-03-18 Werner LEMBERG <wl@gnu.org>
11697 * doc/groff.texinfo: Improved section on number registers. Other
11700 2000-03-16 Werner LEMBERG <wl@gnu.org>
11702 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
11705 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11706 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11707 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11708 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11710 * src/preproc/grn/grn.man: Better synopsis; added copyright.
11712 * src/roff/grog/grog.man: Updated copyright date.
11714 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
11716 * configure.in: Added test for strdup.
11718 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11721 Replaced dynamic allocation of arrays `[...]' with `new' operator.
11725 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
11727 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11729 2000-03-11 Werner LEMBERG <wl@gnu.org>
11731 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11733 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11734 * src/include/lib.h: Remove some spaces.
11736 2000-03-10 Werner LEMBERG <wl@gnu.org>
11738 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11739 initializers from arguments (some compilers don't like this).
11741 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
11743 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11744 used by pic and eqn to tell grohtml where the graphic regions start
11746 * src/libs/libgroff/Makefile.sub: Use it.
11747 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11748 graphic_start() and graphic_end() from htmlindicate.cc.
11750 2000-03-09 Werner LEMBERG <wl@gnu.org>
11752 * tmac/tmac.safer: Will now work correctly in compatibility mode.
11753 * tmac/groff_man.man: More fixes.
11755 2000-03-08 Werner LEMBERG <wl@gnu.org>
11757 * doc/Makefile: Added texput.log to the `clean' target.
11758 * doc/groff.texinfo: Added info about delimiters for escapes.
11760 2000-03-08 Bernd Warken <bwarken@mayn.de>
11762 * src/preproc/pic/pic.man: Add info on conversion of pic images to
11763 other graphic formats.
11765 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
11767 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11768 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11769 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11772 2000-03-07 Werner LEMBERG <wl@gnu.org>
11774 * doc/groff.texinfo: Spelling fixes.
11776 2000-03-06 Werner LEMBERG <wl@gnu.org>
11778 * tmac/groff_man.man: Completely revised to cover everything in
11781 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11782 Other minor fixings.
11783 * src/roff/troff/env.cc (environment_copy): Improve error message and
11785 * src/roff/troff/TODO: Updated.
11787 * doc/Makefile: Bug fixes -- this is still provisional, though...
11789 * tmac/eqnrc: Small fixes.
11791 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
11793 Adding a request `evc' to copy environments.
11795 * src/roff/troff/env.cc (environment::copy, environment_copy):
11797 * src/roff/troff/env.h: Add prototype.
11799 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
11801 Adding strsep() -- Solaris 8 doesn't have it.
11803 * configure.in: Test it.
11804 * src/devices/grolbp/lbp.cc: Add code.
11806 2000-03-05 Werner LEMBERG <wl@gnu.org>
11808 * src/roff/troff/div.cc (macro_diversion::output,
11809 top_level_diversion::output): Fixing an incompatibility with
11810 original troff: \x'0' updates the .a register also. Thanks to
11811 <Andries.Brouwer@cwi.nl> for pointing this out.
11812 * doc/groff.texinfo: Document it.
11814 * Makefile.in: Create Makefile.dep if necessary before calling the
11815 submake process to avoid warning about nonexistent file.
11817 * NEWS, PROJECTS: Updated.
11819 2000-03-04 Werner LEMBERG <wl@gnu.org>
11821 * tmac/troffrc: Add tmac.lbp.
11823 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
11825 * tmac/tmac.lbp: New file.
11826 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11829 2000-03-03 Werner LEMBERG <wl@gnu.org>
11831 * Makefile.in: Fixing $(subdir).
11833 * README, NEWS: Small fixes.
11835 * test-groff: Adding path to grolbp.
11837 * configure.in: The (new) file src/xditview/Imakefile.in will be
11838 also configured -- it is now possible to build gxditview in a
11839 directory different from $srcdir.
11841 2000-03-02 Blake McBride <blake@florida-software.com>
11843 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11845 * MORE.STUFF: Added website of bell labs and info about plot2dev.
11847 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
11849 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11852 2000-02-29 Werner LEMBERG <wl@gnu.org>
11854 Adding GNU getopt to the groff distribution.
11856 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11858 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11859 * aclocal.a4: Remove GROFF_GETOPT function.
11860 * configure.in, Makefile.in, PROBLEMS: Update.
11861 * src/include/lib.h: Replace getopt tests with getopt.h.
11862 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11864 * doc/groff.texinfo: Further checking/updating. Adding more index
11867 * man/groff_out.man: Fix nroff mode activation (for emacs).
11868 * man/groff_font.man: Add missing ligature.
11870 2000-02-28 Werner LEMBERG <wl@gnu.org>
11872 * doc/groff.texinfo: Further checking/updating. Adding more index
11875 * src/devices/grolbp/grolbp.man: Added a comment line at the
11876 beginning of the file (similar to shell scripts) which indicates
11877 that `tbl' should be used as a preprocessor.
11879 2000-02-27 Blake McBride <blake@florida-software.com>
11881 Adapting groff to MS Visual C++ 6.0 compiler (tested with
11882 Windows NT 4.0). Uses _MSC_VER define where necessary.
11884 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11885 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11886 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11887 src/include/lib.h, src/libs/libgroff/errarg.cc,
11888 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11889 src/preproc/refer/label.y, src/preproc/refer/label.cc,
11890 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11891 src/roff/troff/div.cc, src/roff/troff/env.cc,
11892 src/roff/troff/input.cc, src/roff/troff/node.cc,
11893 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11894 if_to_a() to avoid name clashes.
11895 * src/include/posix.h: Don't use unistd.h.
11896 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11897 clause for integrating non-Unix xtmpfile() code.
11898 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11899 structure; use "rt" for popen() in pipe_source(); add getpid()
11901 * src/roff/troff/node.cc: Use special versions of popen() in
11902 real_output_file() and pclose() in ~real_output_file().
11904 2000-02-27 Werner LEMBERG <wl@gnu.org>
11906 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11907 LBP-8 series laser printers). This code has been contributed by
11908 Francisco Andrés Verdú <pandres@dragonet.es>.
11910 * src/devices/grolbp/*: The grolbp output device.
11911 * font/devlpb/*: The font description files.
11912 * Makefile.in: Add grolpb and devlbp subdirectories.
11914 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11915 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11918 * doc/groff.texinfo: Further checking/updating. Adding more index
11923 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11925 * man/groff_font.man: Adding info about obsolete DESC keywords.
11926 * src/devices/grolj4/grolj4.man: Documenting additional DESC
11929 2000-02-26 Werner LEMBERG <wl@gnu.org>
11931 * src/preproc/grn/grn.man: Added info about the gremlin file format
11932 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11934 2000-02-25 Werner LEMBERG <wl@gnu.org>
11936 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11937 friends to be non-integer.
11939 * src/preproc/grn/grn.man: Document it.
11941 * doc/groff.texinfo: Further checking/updating. Adding more index
11944 2000-02-24 Werner LEMBERG <wl@gnu.org>
11946 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11947 line thicknesses to be integer multiples of this value.
11949 * src/preproc/grn/grn.man: Commenting out the -s option -- the
11950 corresponding code doesn't work (yet).
11952 * doc/groff.texinfo: Further checking/updating. Adding more index
11955 2000-02-23 Werner LEMBERG <wl@gnu.org>
11957 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11958 specify line thickness instead of base units. The new default
11959 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11960 thick lines respectively.
11962 Removed unused variable `prevval'.
11964 * src/preproc/grn/grn.man: Updated.
11966 2000-02-22 Werner LEMBERG <wl@gnu.org>
11968 * src/preproc/grn/main.cc: Slight formatting.
11970 * src/roff/groff/groff.man: Formatting fix.
11971 * src/preproc/grn/grn.man: Ditto.
11973 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11975 * doc/groff.texinfo: Further checking/updating.
11977 2000-02-21 Werner LEMBERG <wl@gnu.org>
11979 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11981 * test-groff: Added grn subdir to path.
11983 * doc/groff.texinfo: Some restructing and other small improvements.
11985 * src/roff/groff/groff.cc (help): Fixed info string.
11987 2000-02-20 Werner LEMBERG <wl@gnu.org>
11989 * doc/meref.me: Fix description of .GS request.
11991 * src/roff/troff/troff.man: Fixing typo.
11993 Adding the `grn' preprocessor for gremlin graphic files.
11995 * src/preproc/grn/*: This is the Berkeley distribution written by
11996 David Slattengren and Barry Roitblat, adapted to groff by Daniel
11997 Senderowicz and Werner Lemberg.
11999 * doc/grnexampl.{me,g}: A sample for grn.
12001 * Makefile.in: Added subdirectory entry for grn.
12003 * src/roff/groff/groff.cc: Added support for grn. It can be now
12004 called with the switch `-g'.
12006 * src/roff/groff/groff.man: Updated.
12008 * src/roff/grog/grog.{man,pl,sh}: Updated.
12012 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
12014 * src/include/lib.h: Added xtmptemplate and made xtmpfile
12015 parametrically polymorphic.
12017 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
12018 and the alterations to xtmpfile.
12019 xtmpfile can be requested to return the filename created
12020 and asked not to unlink the temp file. The default behaviour
12021 if parameters are absent is exactly the same as before.
12023 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
12025 A new request `length' is available which returns the length of a
12026 string in a number register:
12028 * src/roff/troff/input.cc (length_macro): Implement it.
12029 * src/roff/troff/input.cc (init_input_requests): Register it.
12031 2000-02-11 Werner LEMBERG <wl@gnu.org>
12033 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
12034 of the `substring' request.
12036 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
12039 * src/roff/troff/TODO, NEWS: Updated.
12041 2000-02-09 Werner LEMBERG <wl@gnu.org>
12043 * src/roff/groff/groff.man: Added an example.
12045 2000-02-06 Werner LEMBERG <wl@gnu.org>
12047 I've considerably modified the directory structure of the
12048 distribution to get a more vertical layout. For example, the number
12049 of top level directories has been reduced from 42 to 6.
12051 As a consequence, many changes, especially to the makefiles, were
12054 * The makefile variables `top_builddir' and `top_srcdir' have been
12055 introduced. Virtually all relative paths have been replaced with
12056 absolute ones using these two variables.
12058 * Dependencies (in the files `Makefile.dep') are no longer part of
12059 the distribution. Instead, they are created during a `make install'
12060 in the build directory.
12062 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
12063 make `top_srcdir' and `top_builddir' absolute.
12065 Some other changes:
12067 * Man pages now depend on the files `VERSION' and `REVISION'.
12069 * The added shell script `mkinstalldirs' will replace `mkdir' in
12072 * VERSION: Version number increased to 1.16.
12074 2000-02-04 Werner LEMBERG <wl@gnu.org>
12076 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
12078 * Makefile.in: Removed $(tmac_m) since it is no longer needed
12079 (after an update of the mm stuff).
12081 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
12083 2000-02-03 Werner LEMBERG <wl@gnu.org>
12085 The .psbb request will now also accept Mac PS images (i.e. using LF
12086 as the EOL character).
12088 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
12089 (with slight modifications).
12090 * troff/input.cc (do_ps_file): Use it.
12092 * test-groff: Add grohtml and grolj4 output devices to PATH.
12094 2000-01-30 Werner LEMBERG <wl@gnu.org>
12096 * NEWS, MORE.STUFF: Updated.
12098 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
12100 Add the `srand' command to pic.
12102 * pic/lex.cc, pic/pic.y: Implement it.
12103 * pic/pic.man: Document it.
12104 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
12106 2000-01-30 Werner LEMBERG <wl@gnu.org>
12108 Add a new request `.psbb'. This does exactly what the external
12109 program psbb did. It scans a PostScript image file for a
12110 %%BoundingBox comment and extracts the bounding box values (in
12111 PostScript units) which are then stored in the four new (read-only)
12112 number registers `llx', `lly', `urx', and `ury'.
12114 This will allow the usage of the .PSPIC macro without worrying
12115 about unsafe behaviour of groff, i.e., it will work without the
12116 `-U' switch of groff.
12118 * troff/input.cc: Implement it.
12119 * tmac/tmac.pspic: Use it.
12120 * troff/troff.man, grops/grops.man, NEWS: Document it.
12121 * psbb/*, Makefile.in: Remove it since it is no longer needed.
12123 This is bloody C code simply adapted from psbb.c! Any improvements
12126 2000-01-29 Werner LEMBERG <wl@gnu.org>
12128 * man/groff_font.man: Minor clarifications.
12132 2000-01-28 Werner LEMBERG <wl@gnu.org>
12134 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
12136 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
12138 * man/groff_font.man: Brought up to date regarding tcommand
12140 * libgroff/font.cc: Handle everything after `--' as a comment
12142 * devps/*: Added comment delimiter inside devps font files.
12144 2000-01-28 Werner LEMBERG <wl@gnu.org>
12146 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
12147 \fC...\fP (which now works as expected).
12149 * troff/troff.man: Fix typo.
12151 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
12153 Completed the pass_filenames implementation in troff.
12155 * libdriver/input.cc: Will read the new `F' tcommand.
12156 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
12157 * troff/input.cc: Use it.
12159 2000-01-26 Werner LEMBERG <wl@gnu.org>
12161 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
12162 font will now be updated even if an invalid font is selected.
12164 2000-01-24 Werner LEMBERG <wl@gnu.org>
12166 * doc/homepage.ms: Updated for new tmac.arkup.
12168 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
12170 * tmac/tmac.arkup: Cleanup.
12172 Added `\&' to .HTML macro to `leave vertical mode', so to say.
12174 Removed obsolete .LINK macro completely.
12176 The macros .URL, .FTP, and .MAILTO now accept a third argument which
12177 will be immediately appended to the second argument (to be used with
12178 punctuation, for example).
12180 Disabled .CDFTP macro temporarily for security reasons.
12182 * tmac/groff_markup.man: Complete revision for latest changes in
12183 tmac.arkup -- note that it does not yet format correctly with
12186 2000-01-23 Bruno Haible <haible@clisp.cons.org>
12188 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
12189 * devutf8/R.proto: Add mappings for wp, lh, rh.
12190 * devutf8/NOTES: Updated.
12192 2000-01-23 Werner LEMBERG <wl@gnu.org>
12194 * doc/groff.texinfo: Updated version/copyright info.
12196 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
12198 Added support for two new directives in device descriptions:
12199 `pass_filenames' (to pass the input file name to the output device)
12200 and `use_charnames_in_special' (to support e.g. accented characters
12201 in the `X' request).
12203 * include/font.h, troff/charinfo.h: Declare it.
12205 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
12207 * devhtml/DESC: Use it.
12209 * troff/input.cc: New function encoded_char.
12211 * troff/token.h: Add test for `specialness'.
12213 2000-01-21 Werner LEMBERG <wl@gnu.org>
12215 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
12216 mistake from the list of files to be installed.
12218 2000-01-18 Werner LEMBERG <wl@gnu.org>
12220 * README: Added info how to apply patches.
12222 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
12224 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
12226 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
12228 * troff/input.cc: Add support for troffrc-end.
12230 * tbl/main.cc: Altered to issue table-start and table-end special
12231 characters if using the html device.
12233 * devhtml/*: Modified font files to incorporate html encoding of
12236 * tmac/groff_markup.man: New file documenting tmac.arkup.
12238 * tmac/troffrc-end: New file. This is invoked after all user
12239 specified macros. Currently used by the html device to include
12240 tmac.html. Thus no need for users to specify -mhtml anymore.
12242 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
12243 (MAN7): Add groff_markup.man.
12245 * tmac/tmac.an, tmac/tmac.html: Small html updates.
12247 * tmac/troffrc: tmac.arkup will now be called for the html device.
12249 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
12250 extra device specific information about fonts.
12252 * doc/homepage.ms: New file. It is an example how an HTML home page
12253 could look like with grohtml.
12255 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
12257 2000-01-12 Bruno Haible <haible@clisp.cons.org>
12259 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
12262 * devutf8/NOTES: Updated.
12264 2000-01-08 Bruno Haible <haible@clisp.cons.org>
12266 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
12267 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12268 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12269 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12270 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12271 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12272 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12273 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12276 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12278 2000-01-12 Fabrizio Polacco <fab@prosa.it>
12280 grolj4: Paper size will be searched case-insensitively.
12282 * include/lib.h: Add check for strcasecmp().
12283 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12284 * configure.in: Check for strcasecmp().
12286 2000-01-11 Werner LEMBERG <wl@gnu.org>
12288 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12291 2000-01-10 Werner LEMBERG <wl@gnu.org>
12293 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12296 Add a new read-only register, `.Y', which contains the groff
12299 * troff/input.cc (init_input_requests): Define it.
12300 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12301 * doc/groff.texinfo, troff/troff.man: Document it.
12303 * libgroff/Makefile.sub (version.cc): Add definition of
12304 `Version_string[]', consisting of `<major>.<minor>.<revision>'
12305 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12306 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12307 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12308 troff/input.cc, pfbtops/pfbtops.c: Use it.
12310 2000-01-10 Fabrizio Polacco <fab@prosa.it>
12312 Add a revision scheme to the groff package.
12314 * REVISION: New file.
12315 * libgroff/Makefile.sub (version.cc): Use it to define
12316 `revision_string[]'.
12317 * grops/psrm.cc: Use revision_string (converted to an unsigned
12318 integer) in constructor of resource_manager.
12320 2000-01-10 Bruno Haible <haible@clisp.cons.org>
12322 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12324 * Makefile.in (DEVDIRS): Add devutf8.
12325 * grotty/tty.cc: Include device.h.
12326 (glyph): Change type of `code' to `unsigned int'.
12327 (tty_printer): New field is_utf8. Constructor takes device argument.
12328 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12329 (tty_printer::add_char): Change type of first arg to `unsigned int'.
12330 (tty_printer::put_char): New function.
12331 (tty_printer::end_page): Use put_char() instead of ::putchar().
12332 (make_printer): Pass device to tty_printer constructor.
12333 * nroff.sh: Determine default device by calling 'locale'. As a
12334 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12335 Recognize UTF-8 locales.
12336 * tmac/eqnrc: Recognize utf8 like latin1.
12337 * tmac/troffrc: Device utf8 needs tmac.tty.
12339 2000-01-07 Werner LEMBERG <wl@gnu.org>
12341 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12343 2000-01-07 Paul Eggert <eggert@twinsun.com>
12345 Add a new predefined writeable number register, `year',
12346 which contains the current year.
12348 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12349 * tmac/tmac.s: Use it.
12350 * troff/input.cc (init_registers): Initialize it.
12352 2000-01-06 Werner LEMBERG <wl@gnu.org>
12354 * PROBLEMS: Fixed typo.
12356 2000-01-04 Paul Eggert <eggert@twinsun.com>
12358 * PROBLEMS: Add Y2k advice for the yr number register.
12360 2000-01-03 Paul Eggert <eggert@twinsun.com>
12362 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12364 2000-01-02 Werner LEMBERG <wl@gnu.org>
12366 * tmac/tmac.arkup: Slight modification of macros to provide better
12367 appearance for non-HTML formats.
12369 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
12371 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12372 does not automatically translate to malloc(n) on all OSes
12373 (e.g., SunOS) so do it explicitly. Also, check the returned
12376 2000-01-01 Werner LEMBERG <wl@gnu.org>
12378 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
12380 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12381 expects this variable
12383 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
12385 * doc/Makefile: Added instructions to create HTML and text
12386 versions of some files.
12388 1999-12-31 Werner LEMBERG <wl@gnu.org>
12390 * Updated INSTALL.gen.
12392 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12393 better resp. correctly with non-HTML devices.
12395 Version 1.15 released
12396 =====================
12398 1999-12-28 Werner LEMBERG <wl@gnu.org>
12400 * NEWS, VERSION: Changed to 1.15
12402 1999-12-27 Paul Eggert <eggert@twinsun.com>
12404 * nroff/nroff.man: -S is safer, not safe.
12406 * groff/groff.cc (main): Use `safer', not `safe', in variable
12407 names. This does not change the behavior.
12409 * troff/input.cc (main): Likewise.
12411 * nroff/nroff.sh: Likewise.
12413 * troff/input.cc (prepend_string): New function.
12414 (main): Prepend -msafer, so that we check macro libraries for
12417 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12419 Version 1.14 released
12420 =====================
12422 1999-12-26 Werner LEMBERG <wl@gnu.org>
12424 * NEWS, VERSION: Changed to 1.14.
12426 1999-12-24 Werner LEMBERG <wl@gnu.org>
12428 * refer/refer.cc: Fixing the last fix.
12430 Version 1.13 released
12431 =====================
12433 1999-12-23 Werner LEMBERG <wl@gnu.org>
12435 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12440 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12442 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12443 document conventions, the version number must be a real.
12445 Version 1.12.1 released
12446 =======================
12448 1999-12-22 Werner LEMBERG <wl@gnu.org>
12450 * VERSION: Changed to 1.12.1.
12452 1999-12-22 Alan Rooks <arooks@istar.ca>
12454 * refer/refer.cc (do_file): Slight modification to satisfy the
12455 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12458 1999-12-20 Werner LEMBERG <wl@gnu.org>
12460 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12463 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12464 list of unsafe requests.
12466 * pic/pic.man: Fixed a typo.
12468 * man/groff_out.man: Fixed a typo.
12470 1999-12-18 Werner LEMBERG <wl@gnu.org>
12472 * Makefile.in: Doc fixes.
12474 1999-12-17 Fabrizio Polacco <fab@prosa.it>
12476 * groff/groff.cc: Missing `U' option added to getopt().
12478 * troff/troff.man: Missing `U' option added to synopsis.
12480 Version 1.12 released
12481 =====================
12483 1999-12-14 Werner LEMBERG <wl@gnu.org>
12485 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12488 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12489 with the more appropriate terms `safer' and `unsafe'.
12491 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12492 sys_nerr and sys_errlist[].
12494 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12496 * pic/pic.y, pic/pic.cc: Added check for fmod().
12498 1999-12-13 Werner LEMBERG <wl@gnu.org>
12500 * VERSION: Changed to 1.12.
12502 Here some patches from various sources; most of them taken from
12503 the Debian distribution.
12505 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12506 tmac/Makefile.sub: New files copied directly from the NetBSD
12507 distribution. Probably, some additional adaptation later on is
12510 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12511 of unsafe requests.
12513 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12514 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12515 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
12516 (`-S') is now the default.
12518 * README, NEWS: Updated.
12520 1999-12-09 Werner LEMBERG <wl@gnu.org>
12522 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12524 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12526 1999-12-06 Werner LEMBERG <wl@gnu.org>
12528 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12529 grief than relief today. Additionally, it is against the GNU
12532 * configure: Recreated.
12534 1999-12-05 Werner LEMBERG <wl@gnu.org>
12536 * configure.in: Added GROFF_LIBM.
12538 * configure: Recreated.
12540 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12543 * Makefile.in: Added definition of $(LIBM).
12545 * Makefile.comm (LIBM): Removed.
12547 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12549 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
12551 * doc/Makefile: Added rule for generation pic.html.
12553 (clean): Files produced by grohtml will be removed also.
12555 * doc/pic.ms: Small fix.
12557 * tmac/tmac.html: Fixed suppression of headers.
12559 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
12561 * tmac/tmac.html: Fixing horizontal arrows.
12563 Turning off hyphenation.
12565 * tmac/tmac.an: Improved support for grohtml; better indentation,
12566 no footers/headers.
12568 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
12570 * tmac/tmac.arkup: Added CDFTP macro
12572 * tmac/tmac.html: All headers are turned off for ms, me, and mm
12575 * tmac/troffrc: Some additions for HTML stuff.
12577 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
12579 * tmac/tmac.html: Small changes.
12581 1999-09-26 Werner LEMBERG <wl@gnu.org>
12583 * doc/groff.texinfo: Minor fixes.
12585 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
12587 * devhtml/TR: Changed spacewidth to 3.
12589 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12591 * tmac/tmac.html: Moved markup macros to tmap.arkup.
12593 * tmac/tmac.arkup: New file.
12595 * grohtml/ChangeLog: New file.
12597 1999-09-16 Werner LEMBERG <wl@gnu.org>
12599 * doc/groff.texinfo (Common Features): Added Copying chapter.
12600 Changed format to @smallbook.
12602 1999-09-15 Werner LEMBERG <wl@gnu.org>
12604 * NEWS: Added info about groff.texinfo.
12606 * doc/groff.texinfo: Will now compile (using texi2dvi) without
12609 1999-09-14 Werner LEMBERG <wl@gnu.org>
12611 * groff/groff.man: More updates.
12613 1999-09-13 Werner LEMBERG <wl@gnu.org>
12615 * doc/groff.texinfo: New file. This manual is still very
12616 rudimentary. It has been originally contributed by Trent
12617 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12620 * INSTALL: Added information about the `doc' subdir
12622 * troff/troff.man: Minor fixes.
12624 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12627 * troff/input.cc (usage): Added missing `-ffam' to usage message.
12629 * Makefile.in (dist): groff-$(version).tar.gz must be removed
12630 also, otherwise it is included itself in another call of `make
12633 * groff/groff.cc (synopsis): Removed superfluous space.
12635 * PROJECTS, PROBLEMS, NEWS: Updated.
12637 * VERSION: Updated to 1.12beta.
12639 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
12641 * README: Updated: Included documentation about CVS repository,
12642 mailing lists, and daily snapshots.
12644 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12646 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
12648 * tmac/tmac.an: If the tag didn't fit into the space that the
12649 macro `TP' specifies, the rest of the tag went into the space for
12652 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
12654 * grolj4/lj4.cc: Added duplex printing (option `-d').
12656 * grolj4/grolj4.man: Document duplex printing.
12658 1999-09-12 Werner LEMBERG <wl@gnu.org>
12660 * doc/Makefile (pic.ps): Fixed rule which caused problems with
12661 non-GNUish sed programs.
12663 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12666 * configure.in (LIBS): Added `-lc'
12668 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12670 * pic/tex.cc (solid_arc): Casting M_PI to double.
12672 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12674 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12675 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12676 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12678 * groff/groff_man.man: New file. This manual page was originally
12679 written for the Debian GNU/Linux system by Susan G. Kleinmann
12682 * eqn/list.cc (list_box::compute_metrics,
12683 list_box::compute_sublist_width): Removed variable declaration to
12684 avoid shadowing warnings.
12686 * grops/psrm.cc (resource_manager::process_file): Ditto.
12688 * tfmtodit/tfmtodit.cc (main): Ditto.
12690 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12691 to avoid shadowing warnings.
12693 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12694 shadowing loop variable.
12696 * groff/groff.man, troff/troff.man: Added doc about grohtml.
12698 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
12700 New grohtml frontend to convert groff input to html.
12702 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12704 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12706 * tmac/eqnrc: Added html device.
12708 * tmac/tmac.html: New file.
12710 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12711 (troff_output::start_picture, troff_output::finish_picture),
12712 tbl/main.cc (process_input_file):
12713 Surrounded output with `graphics_start' and `graphics_end' so that
12714 the html driver can identify non-text portions.
12716 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12717 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12718 grotty/tty.ps (tty_printer::set_char): Additional parameter
12721 * include/printer.h: Class printer: New function
12722 set_char_and_width; new variables (is_char_named, is_named_set,
12723 named_command, named_char_s, named_char_n) to hold information
12724 about named characters -- needed by the html driver.
12726 * libdriver/printer.cc (printer::set_ascii_char,
12727 printer::set_special_char): Use set_char_and_width.
12729 * devhtml/*: New device files for html driver.
12731 * grohtml/*: New driver grohtml.
12733 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
12735 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12738 1999-09-11 Luke Mewburn <lukem@netbsd.org>
12740 * libgroff/string.cc (search): Small fix to test against NULL
12743 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
12745 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12746 \b'abc') were stacked in reverse order when processed in a
12749 * troff/node.h: Added `*last' to struct `node' to make the above
12752 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12753 The default scale for the 'f' and 't' graphics functions were 'm'
12754 rather than 'u' (i.e., no scaling).
12756 1999-09-11 Peter Miller <peterm@jna.com.au>
12758 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12759 do_file), soelim/soelim.man: Added `-I file' option to soelim,
12760 defining include paths.
12762 * soelim/soelim.cc (include_path_append): New function.
12764 1999-09-11 Larry Jones <larry.jones@sdrc.com>
12766 * tbl/main.cc (process_options): Unix (at least Documenter's
12767 Workbench) tbl allows arbitrary non-alpha characters between
12770 1999-09-11 Paul Eggert <eggert@twinsun.com>
12772 Y2k fixes. Don't assume that the current year precedes 2000.
12774 * doc/meref.me: Add \n(y2, \n(y4.
12776 * tmac/doc-common (Yr): New number register.
12777 (Dd): Don't assume current year precedes 2000.
12779 * tmac/tmac.e (td): Likewise.
12780 (y2, y4): New number registers.
12782 * pic/pic.man: Update reference for pic paper to May, 1991
12785 1999-09-11 Werner LEMBERG <wl@gnu.org>
12787 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12788 Removed quotation marks which prevented correct expansion of
12791 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12793 1999-09-10 Werner LEMBERG <wl@gnu.org>
12795 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12798 * Removed configure.old.
12800 1999-08-31 Werner LEMBERG <wl@gnu.org>
12802 * VERSION: Updated to 1.11.1
12804 1999-05-27 Werner LEMBERG <wl@gnu.org>
12806 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12808 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12809 added quotations around $(tmac_wrap) to avoid syntax error if
12812 * configure: Newly generated using autoconf 2.13.
12814 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12816 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
12818 * README, PROJECTS, NEWS, INSTALL, VERSION,
12819 doc/Makefile. doc/pic.ms, groff/groff.man:
12820 Prepare for 1.11 release. No code changes.
12821 Documentation for pic added (doc/pic.ms).
12823 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
12825 * Version 1.10 released.
12827 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
12829 * afmtodit/afmtodit.pl: Avoid comment on first line.
12831 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
12833 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12834 * configure.in: Call it.
12836 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12837 (distfiles): Doesn't depend on config.log or config.cache.
12839 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
12841 * grog/grog.sh: Use print "" rather than print in END rule.
12843 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
12845 * tbl/main.cc (process_data): Don't give error for excess data
12846 entries that are comments.
12848 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
12850 * tbl/main.cc (process_data): Fix case where new for-scope rules
12851 silently change meaning of code.
12853 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
12855 * troff/env.cc (hyphenate): Loop over all consecutive sequences
12856 of non-zero hyphenation codes.
12858 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
12860 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12862 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
12864 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12866 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
12868 * tmac/tmac.andoc: Make it work in compatibility mode.
12870 * refer/token.h (token_info::is_range_sep): New function.
12871 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12872 * refer/ref.cc (reference::output): More sophisticated check for
12875 * devps/prologue.ps (MANUAL): New procedure.
12876 * grops/ps.cc (main): New -m option.
12877 (usage): Include -m.
12878 (ps_printer::~ps_printer): Implement -m.
12880 * aclocal.m4 (GROFF_G): New macro.
12881 * configure.in: Call it.
12882 * Makefile.in (g): Provided by configure.
12884 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12886 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
12889 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12890 (tmac_m, tmac_s): Deleted.
12891 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12892 tmac_s_prefix): New variables.
12893 (MDEFINES): Change accordingly.
12894 * Makefile.comm (.man.n): Use new TMAC_* variables.
12895 * configure.in (GROFF_TMAC): Call.
12896 * aclocal.m4 (GROFF_TMAC): Define.
12897 * tmac/Makefile.sub (stamp_wrap): New target.
12898 (install_data, uninstall_sub): Handle macro wrapping.
12900 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
12902 * tbl/main.cc (main): Ignore -T option.
12904 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
12906 * devlj4/generate/special.map: Add definition of \(nb.
12908 * tmac/tmac.dvi: Add definition of \(nb.
12910 * troff/dictionary.c (dictionary::dictionary): association::v gets
12911 initialized by association::association.
12913 * tmac/Makefile.sub: Avoid using temporary files when installing.
12915 * troff/env.cc (environment::set_font): Make bad font number a
12918 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12920 * Makefile.in (datadir): Use share rather than lib.
12922 * groff/groff.cc (basename): Rename to xbasename.
12924 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
12926 * Makefile (CCLIBS): Don't use.
12927 * Makefile.ccpg: Likewise.
12929 * acgroff.m4: Rename to...
12930 * aclocal.m4: Modify extensively for autoconf 2.
12931 * configure.in: Likewise.
12932 * Makefile.in: Likewise.
12934 * groff/pipeline.c (const): Declare as empty if __STDC__ not
12936 (xstrsignal): Check for definition of NSIG. Conditionalize
12937 on SYS_SIGLIST_DECLARED. Make return type const.
12939 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
12941 * troff/input.cc (interpolate_macro): Rephrase missing space
12944 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
12946 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12947 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12948 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12949 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12950 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12951 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12952 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12953 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12954 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12955 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12956 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12959 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
12961 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12963 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12965 (macro_iterator::macro_iterator): Add additional argument.
12967 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
12969 * troff/div.cc (vertical_size::vertical_size): In place of integer
12970 specifying line spacing use cunits specifying post vertical
12972 (macro_diversion::output, top_level_diversion::output): Likewise.
12973 * troff/div.h: Change declarations accordingly.
12974 * troff/env.cc (pending_output_line): Replace ls field by post_vs
12976 (pending_output_line::pending_output_line,
12977 pending_output_line::output, environment::output,
12978 environment::output_line, environment::output_title,
12979 environment::hyphenate_line): In place of
12980 integer specifying line spacing use cunits specifying post vertical
12982 (environment::environment): Add post_vertical_spacing and
12983 prev_post_vertical_spacing arguments.
12984 (environment::get_post_vertical_spacing): New function.
12985 (environment::total_post_vertical_spacing): New function.
12986 (environment::post_vertical_spacing): New function.
12987 (init_env_requests): Initialize pvs request and .pvs register.
12988 * troff/env.h: Change declarations.
12990 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
12992 * tmac/tmac.pspic: Immediately remove the temporary file.
12994 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
12996 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12997 height is specified.
12999 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
13001 * tbl/table.c (struct vertical rule, class table_entry): Use int
13002 not short for start_row and end_row.
13004 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
13006 * troff/input.cc (trapping_blank_line, blank_line_macro): New
13008 (diverted_space_node::reread, process_input_stack): Call
13009 trapping_blank_line() rather than blank_line().
13010 (init_input_requests): Bind "blm" to blank_line_macro().
13012 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
13014 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
13016 * troff/env.cc (environment::possibly_break_line): Require that
13017 width total excluding width of final space node be greater than
13018 the target text length.
13020 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
13022 * troff/node.cc (kern_pair_node::vertical_extent): New function.
13024 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
13026 * troff/node.cc (charinfo_node): New class.
13027 (glyph_node, composite_node): Derive from charinfo_node. Change
13028 member functions accordingly.
13030 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
13032 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
13034 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
13036 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
13038 * devps/generate/textmap (notsubset): Add.
13040 * tmac/tmac.a4: New file.
13042 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
13044 * pic/main.cc (had_parse_error): New variable.
13045 (do_picture, do_whole_file): Set had_parse_error if yyparse()
13047 (main): Return 1 if had_parse_error is true.
13049 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
13051 * grolj4/lj4.cc (main): Avoid use of strtoul.
13053 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
13055 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
13056 iso_8859_1 or $LESSCHARSET is latin1.
13058 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
13060 * hpftodit: New directory.
13061 * Makefile.in (CCPROGDIRS): Add hpftodit.
13062 * devlj4/generate: New directory.
13064 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
13066 * configure.in: Don't use AC_VFORK.
13067 * groff/pipeline.c (run_pipeline): Use fork() always.
13069 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
13071 * grops/ps.cc (main): Use %1 not %s in error message for -w.
13073 * Makefile.in (CCPROGDIRS): Add grolj4.
13074 (DEVDIRS): Add devlj4.
13075 * grolj4, devlj4: New directories.
13076 * tmac/troffrc: Handle lj4.
13077 * tmac/tmac.lj4: New file.
13079 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
13081 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
13083 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
13085 * troff/input.cc (do_if_request): At end of second string, switch
13086 environments before getting next token.
13088 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
13090 * devps/psstrip.sed: Split rule that strips whitespace on either
13091 side of delimiters.
13093 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
13095 * troff/node.h (font_family::make_definition): Add return value to
13096 declaration. * troff/symbol.h (symbol::operator==,
13097 symbol::operator!=): Likewise.
13099 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
13101 * groff/groff.cc (main, help, synopsis): Handle -S.
13102 (possible_command::insert_arg): New function.
13104 * tmac/tmac.safer: New file.
13105 * tmac/msafer.man: New file.
13106 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
13108 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
13110 * pic/pic.h, pic/main.cc (safer_flag): New variable.
13111 * pic/pic.y (placeless_element): Avoid unsafe operations if
13112 `safer_flag' is set.
13113 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
13115 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
13117 * eqn/lex.cc (get_token): Put call to add_context() in block to
13118 work around Sun C++ 4.0 bug.
13120 * include/stringclass.h (operator +): Use ?: instead of `if' to
13121 work around Sun C++ 4.0 bug.
13123 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
13125 * tbl/main.cc (process_format): Accept - as a synonym for the _
13128 * libbib/index.cc (minus_one): Don't declare as const.
13130 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
13132 * troff/input.cc (get_char_for_escape_name): Push back a newline.
13134 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
13136 * troff/input.cc (write_macro_request): New function.
13137 (init_input_requests): Bind write_macro_request to writem.
13139 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
13141 * tmac/tmac.s (@EN): Turn filling back on even if there was no
13144 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
13146 * tmac/tmac.s (@TS): Renamed from TS.
13147 (TS): Call LP then TS again.
13148 (cov*ab-init): Alias @TS to TS.
13150 * tmac/tmac.s: Allow QP or RS to initialize.
13152 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
13153 Move initializations of PS and LL here.
13154 (par@init): Don't initialize HY. Avoid changing environment 0.
13155 (par*env-init): Don't all par@reset.
13157 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
13159 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
13161 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
13163 * Makefile.in (MDEFINES): Add LDFLAGS.
13164 (LDFLAGS): Add definition line.
13166 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
13168 * troff/input.cc (get_optional_char): Split off error check into...
13169 (check_missing_character): New function.
13170 * troff/token.h: Declare it.
13171 * troff/env.cc (margin_character): Don't call get_optional_char.
13172 Only call tok.next() after making the node.
13174 * include/lib.h (getopt): Make 2nd argument char *const *.
13176 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
13178 * nroff/conftest.sh: Deleted.
13180 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
13182 * pic/make-dos-dist: Deleted.
13184 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
13186 * devps/psstrip.sed: Strip comments before stripping trailing
13189 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
13191 * Version 1.09 released.
13193 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
13195 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
13197 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
13199 * libgroff/font.cc (font::load_desc): Fix typo in error message.
13201 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
13203 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
13204 about returning without a value.
13206 * troff/charinfo.h (charinfo::get_special_translation): Cast
13207 TRANSLATE_NONE to int.
13209 * refer/token.cc (lookup_token, store_token): Remove bogus loop
13210 test. Fix test so that it works with n unsigned.
13212 * pic/pic.y (defaults_table): Fully bracket initializer.
13213 * pic/lex.cc (lookup_keyword): Likewise.
13214 * eqn/lex.cc (token_table, def_table): Likewise.
13215 * eqn/box.cc (param_table): Likewise.
13216 * troff/input.cc (warning_table): Likewise.
13217 * libgroff/font.cc (table): Likewise.
13218 * grops/ps.cc (ps_printer::special): Likewise.
13219 * grops/psrm.cc (resource_manager::process_file): Likewise.
13220 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
13221 * refer/command.cc (command_table): Likewise.
13222 * addftinfo/addftinfo.cc (param_table): Likewise.
13224 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
13225 about temp's being unused.
13226 (unused): New function.
13228 * groff/pipeline.cc: Declare c_fatal.
13230 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
13233 * libbib/index.cc (index_search_item::load): Prevent compiler
13234 warnings about fd_closer's being unused.
13235 (unused): New function.
13237 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
13239 * troff/input.cc (copy_mode_error): Make `prefix' static.
13242 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
13244 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
13245 HAVE_CC_OSFCN_H and modify accordingly.
13247 * troff/input.cc (init_charset_table): radicalex overlaps
13250 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
13251 udodo!hans@relay.NL.net).
13252 * groff/configure.in: Call it.
13254 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
13255 * groff/configure.in: Call it.
13256 * include/lib.h: Conditionalize declaration of pclose.
13258 * troff/div.cc (last_page_number): New global variable.
13259 (top_level_diversion::begin_page): Exit if we just printed the
13261 * troff/div.h (last_page_number): Declare it.
13262 * troff/input.cc (parse_output_page_list): Set last_page_number.
13264 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
13265 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
13266 tmac/tmac.X: Likewise.
13267 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13268 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13270 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
13272 * tmac/doc-ditroff (hK): Remove groff specific code which
13273 prevented page-breaks between separate manual entries. If this is
13274 the first page, don't set the page number to 1.
13276 * acgroff.m4 (GROFF_POSIX): New macro.
13277 * configure.in: Use it.
13279 * troff/node.cc (class real_output_file,
13280 real_output_file::real_output_file,
13281 real_output_file::~real_output_file): Conditionalize use of
13282 popen/pclose on POPEN_MISSING.
13283 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13284 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13285 (pipe_source): Similarily.
13287 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13289 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13290 presence of declarations by trying to compile example with
13291 conflicting declarations. (gcc only gives a warning for missing
13294 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
13296 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13297 (from Ulrich Lauther).
13299 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
13301 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13303 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
13305 * indxbib/indxbib.cc (write_hash_table): Add code for case where
13306 pointers and ints have different sizes.
13308 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
13310 * tmac/tmac.s (par*env-init): Call par@reset.
13312 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
13314 * tmac/tmac.s (@IP): Switch to a new environment when diverting
13316 (par*push-tag-env, par*pop-tag-env): New macros.
13318 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
13320 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13321 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
13323 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13324 comment. Include <time.h>.
13326 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
13328 * grops/ps.cc (is_small_h, is_small_v): Deleted.
13329 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13332 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
13334 * troff/input.cc (read_request): Only print a prompt if reading
13335 from the terminal. Also clearerr on EOF if reading from the
13336 terminal. Declare isatty.
13338 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
13340 * refer/label.y: Rename map_t to map_func and extractor_t to
13343 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
13345 * include/assert.h: Don't use volatile.
13346 * libgroff/assert.cc: Likewise.
13348 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
13350 * troff/input.cc (abort_request): Look at character in tok before
13351 calling get_copy().
13353 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
13355 * troff/troff.h (NO_RETURN): Deleted.
13356 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
13357 * troff/input.cc (exit_troff): Likewise
13359 * Makefile.in: Remove `Making ...' messages since GNU make now
13362 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13364 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
13366 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13367 to constant 1 inch.
13369 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
13371 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13373 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
13375 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13376 MARK_REG if there was no left delimiter.
13378 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
13380 * pic/troff.cc (troff_output::text): Set line thickness to
13381 relative before outputting text.
13383 * tmac/tmac.e (@k): Don't zero ?T.
13386 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
13388 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13390 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
13392 * troff/input.cc (decode_args): Warn about unquoted tabs (from
13395 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
13397 * troff/input.cc (ignoring): New variable.
13398 (ignore): Set ignoring during call to do_define_macro.
13399 (do_define_macro): Clear ignoring before interpolating terminating
13401 (copy_mode_error): New function.
13402 (get_char_for_escape_name, read_long_escape_name,
13403 interpolate_arg): Use copy_mode_error.
13404 (warning_table): Add WARN_IG.
13405 * troff/troff.h (WARN_IG): Declare.
13406 (WARN_TOTAL): Change accordingly.
13408 * groff/pipeline.c (strsignal): Rename to xstrsignal.
13409 * groff/groff.cc (strsignal): Delete declaration.
13411 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
13413 * troff/div.cc (page_offset): Use 'm' as default scaling.
13415 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
13417 * nroff/nroff.sh: Ignore -u.
13419 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
13421 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13423 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
13425 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13427 (B2): With -Tascii, leave additional vertical space before
13428 and after. Ensure that the left and right indent is restored to
13429 what it was even if the point size changes. Don't call
13430 par@finish. Change the indent, line length and title length
13431 directly. With -Tascii, make the width of the box 1n less.
13432 (B1): Remember 1n at the current point size. Don't call
13433 par@reset. Change the indent, line length and title length
13434 directly. Ensure that the temporary indent is preserved.
13435 (par*box-mark-top): Turn off no spacing mode.
13437 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
13439 * Makefile.in (dist): Use .gz suffix.
13441 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
13443 * troff/input.cc (main): Add return 0.
13444 * pic/main.cc (main): Use return instead of exit.
13445 * tbl/main.cc (main): Likewise.
13446 * eqn/main.cc (main): Likewise.
13447 * grops/ps.cc (main): Likewise.
13448 * grotty/tty.cc (main): Likewise.
13449 * groff/groff.cc (main): Likewise.
13450 * grodvi/dvi.cc (main): Likewise.
13451 * refer/refer.cc (main): Likewise.
13452 * indxbib/indxbib.cc (main): Likewise.
13453 * lkbib/lkbib.cc (main): Likewise.
13454 * soelim/soelim.cc (main): Likewise.
13455 * addftinfo/addftinfo.cc (main): Likewise.
13456 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13457 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13459 * troff/token.h (process_input_stack): Don't declare as static.
13460 * troff/input.cc: Likewise.
13462 * troff/node.c (invalidate_fontno): Make it a static member of
13463 class font_family. Change callers.
13464 * troff/node.c: Change declaration.
13466 * tbl/main.cc (struct input_entry_format): Add explicit public
13468 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13469 struct double_hline_stuff): Likewise.
13470 * tbl/table.h (struct entry_format): Likewise.
13471 * pic/object.h (struct saved_state): Likewise.
13473 * include/stringclass.h: Add forward declarations of friend
13474 functions that are later declared as inline. Don't include inline
13475 specifier in friend declaration.
13477 * libgroff/lib.h: Declare popen and pclose.
13478 * acgroff.m4 (GROFF_POPEN): New macro.
13479 * configure.in: Call it.
13481 * include/lib.h (PI): New constant. Undef first if necessary.
13482 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13483 * grops/ps.cc (degrees, radians): Likewise.
13484 * libgroff/font.cc (font::get_skew): Likewise.
13486 * grops/ps.cc (is_ascii): New function.
13487 (ps_output::put_string): Use is_ascii. Use csprint rather than
13489 (ps_printer::define_encoding): Use csspace.
13490 * libgroff/strtol.c (ISASCII): New macro.
13491 (strtol): Cast arguments to is*() and tolower() to unsigned char.
13492 Use ISASCII rather than isascii.
13493 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13494 * libgroff/cset.cc: Likewise.
13495 * libdriver/input.cc: Include cset.h.
13496 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13499 * refer/refer.cc (main): Use %ld rather than %d for longs.
13501 * libbib/index.cc (index_search_item_iterator::get_tag): Use
13504 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13506 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
13508 * troff/input.cc (hyphenation_code): Skip white space between
13511 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
13513 * tbl/table.h (table::entry_list_tailp): New member.
13514 (table::table): Initialize it.
13515 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13518 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
13520 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13521 with negative horizontal positions. Remove casts of glyph::hpos to
13523 (USHRT_MAX): Delete definition.
13524 (SHRT_MAX, SHRT_MIN): New definitions.
13525 (glyph::hpos): Change type to short.
13526 (tty_printer::end_page): Output multiple backspaces if necessary.
13527 Remove casts of glyph::hpos to int.
13529 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
13531 * tmac/tmac.s (@RT): New definition.
13533 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
13535 * refer/refer.cc (do_file): Make sure current_filename is set when
13538 * pic/common.cc (common_output::dot_line): Handle zero length
13541 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
13543 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13544 (par@init): Initialize \n[HY].
13546 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
13548 * troff/dictionary.cc (dictionary::remove): Continue when
13551 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
13553 * Makefile.com (.y.cc): Avoid ending up with two versions of
13556 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
13558 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13559 (\(,C): Likewise. Also fix typo.
13561 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
13563 * lib.h: Delete extraneous semi-colon.
13565 * Add pso request: `so' from a pipe.
13566 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13567 (file_iterator::close): New function.
13568 (file_iterator::~file_iterator, file_iterator::next_file): Use
13569 file_iterator::close.
13570 (file_iterator::backtrace): Say `process' rather than `file' when
13571 the stream is popened.
13572 (pipe_source): New function.
13573 (init_input_requests): Bind ".pso" to pipe_source.
13575 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
13577 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13579 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
13580 digits in lower case.
13582 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
13584 * Version 1.08 released.
13586 * Makefile.in (dist): Insert || true after ln -s commands that
13589 * mm: Update to mm 1.16.
13591 * acgroff.m4 (GROFF_CSH_HACK): New macro.
13592 * configure.in: Call GROFF_CSH_HACK. Substitute for
13594 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
13596 * nroff/Makefile.sub (nroff): New target.
13597 (install_data): Install nroff.
13598 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13599 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13601 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
13603 * eqn/Makefile.sub (neqn): Add chmod +x.
13605 * grog/Makefile.sub (grog): Remove spurious semi-colon.
13607 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
13609 * troff/input.cc (string_iterator::string_iterator()): Initialize
13612 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
13614 * troff/div.cc (macro_diversion::space,
13615 top_level_diversion::space): Don't set high_water_mark.
13616 (macro_diversion::output, top_level_diversion::output): Don't
13617 include post line space in high water mark.
13619 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
13621 * eqn/eqn.y: Don't define YYDEBUG.
13622 * pic/pic.y: Likewise.
13624 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
13626 * tmac/tmac.e ([3): Add space after comma following editors.
13627 Change double spaces to single spaces.
13628 ([4): Change double spaces to single spaces.
13630 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13631 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13632 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13633 after %!PS-Adobe- (for Newsprint).
13635 * troff/div.cc (top_level_diversion::begin_page): When
13636 before_first_page is 1, set page_number to 1.
13638 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
13640 * eqn/box.cc (box::top_level): Protect equation with \&.
13642 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
13644 * groff/groff.cc (possible_command::set_name): Delete old name.
13646 * groff/groff.cc (possible_command::~possible_command): Use
13649 * troff/node.cc (troff_output_file::begun_page): New member.
13650 (troff_output_file::troff_output_file): Initialize it.
13651 (troff_output_file::really_begin_page): Only output V command if a
13652 page has been begun.
13654 * pic/pic.y (placeless_element): Delete argument to PRINT after
13657 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
13659 * Make wrapman work.
13660 * troff/div.h (class top_level_diversion): Replace
13661 first_page_begun by before_first_page (with opposite sense).
13662 * Change first_page_begun to before_first_page inverting sense.
13663 * troff/div.cc (class nl_reg): New class.
13664 (init_div_requests): Use class nl_reg for \n(nl.
13665 (top_level_diversion::begin_page): Don't call
13666 output_file::begin_page if before_first_page is 2;
13667 reset before_first_page afterwards. If have_next_page_number is
13668 false, then always increment page_number.
13669 * tmac/tmac.an: Set traps within TH rather than at the top-level.
13670 Restore compatibility mode after loading, and then disable
13671 compatibility mode in TH.
13673 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
13675 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13677 * troff/node.h (output_file::trailer): Declare.
13678 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13679 * troff/node.cc (output_file::trailer): New function.
13680 (troff_output_file::~troff_output_file): Move most code into...
13681 (troff_output_file::trailer): New function.
13682 (class troff_output_file): Delete page_length member. Declare
13684 (troff_output_file::really_begin_page): Use current page length
13685 for final V command.
13687 * tbl/main.cc (struct options): New decimal_point_char member.
13688 (options::options): Initialize this.
13689 (process_options): Implement decimalpoint option.
13690 (process_data): Pass decimal_point_char option to table::table.
13691 * tbl/table.h (class table): New decimal_point_char member.
13692 (table::table): Add additional argument.
13693 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13694 second argument specifying decimal point character. Use this
13696 (table::table): Initialize decimal_point_char.
13697 (table::add_entry): Change call to find_dot.
13699 * troff/input.cc (get_copy, token::next): Implement \V.
13700 (interpolate_environment_variable): New function.
13702 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
13704 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13705 * pic/pic.y: Likewise.
13707 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13709 * refer/ref.cc (reference::insert_field, reference::delete_field):
13711 * troff/number.cc (parse_term): Likewise.
13713 * acgroff.m4 (GROFF_PROG_YACC): New macro.
13714 * configure.in: Use GROFF_PROG_YACC.
13716 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13718 * Makefile.in (OPTIMIZE): New define.
13719 (DEBUG): Empty by default.
13720 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13722 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13723 (GROFF_ARRAY_DELETE): Likewise.
13724 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13726 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13728 * devps/psstrip.sed: Use different delimiter on last line (so that
13729 it works with BSD 4.4 sed.)
13731 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
13733 * devps/psstrip.sed: Delete comments.
13735 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13736 optind, opterr, optarg.
13737 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13740 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
13742 * Makefile.in (check): Dummy target.
13744 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
13746 * Version 1.07 released.
13748 * Integrate mm 1.11.
13750 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13751 where start_col was meant.
13753 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
13755 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13757 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
13759 * troff/input.cc (token::next): Make \z\o'...' and similar things
13762 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13764 (environment): Add margin_character_flags member.
13765 * env.cc (environment::environment(symbol),
13766 environment::environment(const environment *): Initialize
13767 margin_character_flags.
13768 (margin_character): Rewrite.
13769 (environment::output_line): Add a margin character if
13770 margin_character_flags is non-zero. Turn off the
13771 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
13772 zero, use margin_character_node without copying and then set
13773 margin_character_node to 0.
13775 * devps/DESC.in: Change minimum size to 1000.
13777 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
13779 * troff/symbol.h (symbol::hash): Change return type to unsigned
13781 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13784 * test-groff: Use -r rather than -x.
13786 * grops/psfig.diff: Include in distribution again.
13788 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
13790 * Makefile.in (dist): Use gzip.
13792 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
13794 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13795 unistd.h as well as in stdlib.h.
13796 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13797 defined; otherwise include <sys/types.h> and <unistd.h> if
13798 UNISTD_H_DECLARES_GETOPT is defined.
13800 * configure.in: use builtin(include, ... rather than include(...
13801 * configure: Regenerate with autoconf 1.3.
13803 * libdriver/print.cc (printer::adjust_arc_center): Use new
13804 algorithm suggested by Andy Fyfe.
13806 * libdriver/printer.cc (printer::adjust_arc_center): New function.
13807 * include/printer.h: Declare this.
13808 * grops/ps.cc (ps_printer::draw): Use it.
13809 * grodvi/dvi.cc (dvi_printer::draw): Use it.
13811 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
13813 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13815 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
13817 * eqn/main.cc (main): Handle "eqn -".
13819 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
13821 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13823 * mm: Integrate version 1.08.
13825 * pic/troff.cc (troff_output::finish_picture): Set
13826 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13827 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13828 if it's not defined. Check whether the register is non-zero rather
13829 than whether it's not defined.
13830 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13832 * indxbib/indxbib.cc: Move all signal handling into...
13833 * indxbib/signal.c: New file.
13834 * configure.in: Call AC_RETSIGTYPE.
13836 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13837 * configure.in: Call GROFF_STRUCT_EXCEPTION.
13838 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13840 * troff/input.cc (token::token, token::operator=): Work round SGI
13842 * pic/object.cc (position::position): Likewise.
13844 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
13846 * pic/pic.h: Move declaration of hypot().
13848 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
13850 * pic/pic.h: Declare hypot().
13852 * pic/pic.h: Define M_PI if necessary.
13854 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
13856 * tmac/tmac.e (re): Add alternative version that doesn't use groff
13859 * devps/prologue.ps (RE): Handle the possibility that the old font
13860 doesn't have a FontName entry.
13862 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
13864 * tmac/tmac.e (fam): Redefine to set family in environment 2.
13865 (@C): Use @fam not fam.
13867 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
13869 * lookbib/lookbib.cc (main): Change type of start to const char *.
13870 * lkbib/lkbib.cc (main): Likewise.
13872 * eqn/lex.cc (definition::definition): Don't use member
13873 initializer syntax for members of anonymous unions.
13875 * troff/input.cc (input_stack::backtrace): Change type of to const
13878 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
13880 * include/stringclass.h (class string): Declare inline friend
13881 functions as inline in class declaration.
13882 * troff/hvunits.h (class hunits, class vunits): Likewise.
13883 * include/refid.h (class reference_id): Likewise
13884 * troff/troff.h (points_to_units(units), scale(units, double)):
13885 Delete declarations.
13886 * libdriver/input.cc (get_char): Delete declaration.
13887 * include/lib.h: Change 2nd argument of getopt from const char **
13889 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13890 char **' before assigning to a `const char **'.
13891 * tbl/table.cc: Delete extra declarations of prints().
13893 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
13895 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13896 char **' before assigning to a `const char **'.
13898 * libgroff/errarg.cc (errarg::errarg): Don't use member
13899 initializer syntax for members of anonymous unions.
13901 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
13903 * mm: Integrate version 1.07.
13905 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
13907 * troff/input.c (translate2): Rename to
13908 (translate_no_transparent).
13909 (init_input_requests): Rename tr2 to trnt.
13911 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
13913 * troff/charinfo.h (class charinfo): Add transparent_translate field.
13914 (charinfo::set_translation, charinfo::set_special_translation):
13915 Add second argument that specifies value for
13916 transparent_translate.
13917 (charinfo::get_translation, charinfo::get_special_translation):
13918 Add optional second argument that specifies whether translation is
13919 being used for transparent throughput.
13920 * troff/input.cc (charinfo::set_translation,
13921 charinfo::set_special_translation): Handle second argument.
13922 (charinfo::charinfo): Initialize transparent_translate.
13923 (translate): Split main part off into
13924 (do_translate): New function. Pass argument saying whether
13925 translation applies to transparent throughput.
13926 (translate2): New request.
13927 (init_input_requests): Bind translate2 to `tr2'.
13929 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
13931 * tbl/table.h (class table): Add `nokeep' flag.
13932 * tbl/main.cc (process_options): Handle `nokeep' option.
13933 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13934 table::do_bottom): Don't output keep/release macro definitions or
13935 calls when `nokeep' option has been specified.
13937 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
13939 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13941 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
13943 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13944 block_entry::divert, alphabetic_block_entry::divert): Add extra
13945 argument giving column separation.
13946 (table::compute_widths): Pass column separation to
13947 table_entry::divert().
13948 (block_entry::do_divert): If an entry spans multiple columns and a
13949 minimumum width has been specified for each column, then set the
13950 line length to the sum of the widths (plus possibly the column
13953 * troff/input.cc (set_escape_char): Don't set the escape_char
13954 until after calling has_arg().
13956 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
13958 * tbl/table.cc (table::do_top): Add missing \s0 for double box
13961 * tbl/table.cc (table::print_double_hline): Avoid extra new line
13962 in case where r > nrows - 1.
13964 * tbl/table.cc (BODY_HEIGHT): Deleted.
13965 (LINE_SEP): New definition.
13966 (table::print_single_hline, table::print_double_hline,
13967 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13968 table::do_row, table::do_top): Use LINE_SEP space before a line
13969 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13971 * tbl/table.cc (text_entry::print_contents): New function.
13972 (text_string_name, right_text_string_name): Deleted.
13973 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13974 (simple_text_entry::do_width, numeric_text_entry::do_width,
13975 alphabetic_text_entry::do_width): Don't store the contents of the
13977 (left_text_entry::simple_print, right_text_entry::simple_print,
13978 center_text_entry::simple_print,
13979 alphabetic_text_entry::simple_print,
13980 numeric_text_entry::simple_print): Print the entry directly
13981 instead of using the stored string.
13983 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
13985 * devps/Makefile: Strip PostScript files.
13986 * devps/prologue: Rename to...
13987 * devps/prologue.ps.
13988 * devps/psstrip.sed: New file.
13989 * devps/download: Use .pfa rather than .ps for installed versions
13992 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
13994 * troff/env.cc (input_trap): Give a warning if the argument is out
13997 * troff/env.cc (adjust): Treat negative argument as missing. Round
13998 argument > 5 down to 5.
14000 * troff/env.cc (center, right_justify): Make negative argument zero.
14002 * troff/div.cc (page_offset, vertical_position_traps): Treat
14003 invalid argument as missing.
14004 * troff/env.cc (line_spacing, line_length, title_length, indent,
14005 underline, hyphen_line_max_request, control_char,
14006 no_break_control_char, widow_control_request, adjust, input_trap,
14007 point_size): Likewise.
14008 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
14009 constant_space): Likewise.
14010 * troff/input.cc (compatible, shift, warn_request,
14011 set_escape_char): Likewise.
14013 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
14014 * tbl/table.cc (table::table): Likewise.
14016 * Makefile.dev (install_dev): depends on $(DEVFILES).
14018 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
14020 * devX75, devX75-12, devX100, devX100-12: New directories.
14021 * Makefile.in: Add these to DEVDIRS.
14023 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
14024 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
14025 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
14026 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
14028 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
14029 (uninstall): New target.
14030 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
14031 uninstall_prog, uninstall_dev): New targets.
14033 * troff/div.cc (return_request): Treat an invalid argument as
14036 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
14038 * tmac/tmac.e ((f): Set up the environment even when there's a
14039 current diversion. Transperently throughput a call to @N.
14042 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
14044 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
14045 up to vertical resolution.
14047 * tbl/table.cc (table::do_row): Change row number after printing
14050 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
14052 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
14054 * Rename CHANGES to NEWS.
14056 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
14058 * libgroff/new.cc (operator new): Avoid calling malloc(0).
14060 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
14062 * man.ultrix: Removed.
14064 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
14066 * Makefile.comm (extraclean): Delete files whose names begin with
14069 * pic/troff.cc (troff_output::text): Fix typo in implementation of
14072 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
14074 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
14075 * troff/div.cc (page_length, need_space, space_request): Treat
14076 invalid optional argument as missing.
14077 * troff/env.cc (number_lines): If the first argument is present
14078 but not a number, turn on line numbering, don't change the next
14079 line number and parse the remaining arguments.
14081 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
14083 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
14085 * eqn/box.h: Change declaration accordingly.
14086 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
14087 the specified size was bad but don't give an error. Check for
14089 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
14090 * eqn/lex (do_size): Likewise.
14092 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
14094 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
14095 compatible headers.
14097 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
14099 * tbl/table.cc (table::init_output): Improve error message when
14100 table won't fit on one page.
14102 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
14104 * pic/troff.cc (troff_output::start_picture): Generate line
14105 containing a horizontal motion equal to the width of the picture.
14107 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
14108 using GROFF_COMMAND_PREFIX environment variable.
14110 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
14112 * mdate.sh: Use $NF rather than $(NF).
14114 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
14116 * pic/main.cc (main): Use %1 not %c in argument to warning.
14118 * eqn/main.cc (main): Output code to check that geqn was given the
14121 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
14123 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
14124 `ln -s ../Makefile .; make; rm -f Makefile'.
14126 * troff/hyphen: Rename to...
14128 * troff/input.cc (main): Delete -H option. Don't call
14129 read_hyphen_file().
14130 * troff/env.cc: Include searchpath.h and macropath.h.
14131 (exception_dictionary): Deleted.
14133 (read_hyphen_file): Deleted.
14134 (hyphenation_language): New struct.
14135 (class trie, class hyphen_trie): Move declarations up.
14136 (trie_node::~trie_node): Deleted.
14137 (trie::delete_trie_node): New function.
14138 (trie::do_delete): New pure virtual function.
14139 (hyphen_trie::do_delete): New function.
14140 (trie::~trie): New function.
14141 (hyphen_trie::~hyphen_trie): New function.
14142 (trie::clear): No need to chcek that tp is not 0.
14143 (current_language, language_dictionary): New variables.
14144 (hyphen_word): Give an error if no current language. Use
14145 exceptions dictionary in current language.
14146 (hyphen_trie::read_patterns_file): Find file using macro_path.
14147 Allow comments (starting with %) in patterns file. Don't make it
14148 a fatal error if the file can't be found.
14149 (hyphenate): Return if no current language. Get the exceptions
14150 dictionary and the hyphenation patterns from the current language.
14151 (set_hyphenation_language): New variable.
14152 (hyphenation_patterns_file): New function.
14153 (hyphenation_language_reg): New class.
14154 (hyphenation_language_reg::get_string): New function.
14155 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
14156 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
14158 * groff/groff.cc (main, help, synopsis): Delete -H option.
14159 * include/Makefile.sub: Don't define HYPHENFILE.
14160 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
14161 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
14162 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
14163 hyphenation patterns.
14165 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
14167 * eqn/neqn.sh: New file.
14168 * eqn/Makefile.sub: Handle neqn.sh.
14170 * eqn/eqn.h: Declare `nroff' variable.
14171 * eqn/box.cc (param_table): Add `nroff' param.
14172 (nroff): Define it.
14173 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
14175 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
14177 * troff/troff.h (WARN_FONT): New warning.
14178 (WARN_TOTAL): Change accordingly.
14179 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
14180 (warning_table): Add WARN_FONT.
14181 * troff/node.cc (mount_font_no_translate): Pass argument to
14182 font::load_font. If this is non-zero, give a warning.
14183 Don't give an error message when accessing a font that has already
14184 been found to be invalid.
14185 * include/font.h (font::load, font::load_font): Add additional
14186 optional argument which suppresses error message if the font is
14188 * libgroff/font.cc (font::load_font): Handle additional argument.
14189 (font::load): Add additional argument. If this is non-null, set it
14190 to 1 and don't give error message.
14192 * include/printer.h (printer::end_page): Add argument giving
14194 * libdriver/input.cc (do_file): Pass this.
14195 * grops/ps.cc (ps_printer::end_page): Add argument.
14196 * grodvi/dvi.cc (dvi_printer::end_page,
14197 draw_dvi_printer::end_page): Add argument.
14198 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
14199 columns_per_page members. New member nlines.
14200 (DEFAULT_LINES_PER_PAGE): Deleted.
14201 (tty_printer::tty_printer): Don't compute lines_per_page from
14202 font::paperlength. Don't compute columns_per_page from
14204 (tty_printer::add_char): Don't check horizontal position against
14205 columns_per_page. Grow glyphs vector if neccessary.
14206 (tty_printer::end_page): Add argument giving page_length in units.
14207 Discard lines past end of page.
14209 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
14211 * tmac/tmac.tty-char: Fix definition of \(/l.
14213 * tmac/tmac.X: Define \(en.
14215 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
14217 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
14218 lpq, then use lp rather than lpr.
14220 * tmac/tmac.s (par@reset): Don't call `ad'.
14221 (par*env-init): Call `ad'.
14223 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
14225 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
14228 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
14229 * indxbib/indxbib.cc: Likewise.
14231 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
14233 * libgroff/putenv.c: New file.
14234 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
14235 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
14236 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
14237 stdlib.h with AC_HAVE_HEADERS.
14239 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
14241 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
14244 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
14246 * eqn/box.cc (gsize): Make it an int.
14247 (set_gsize): Parse argument handling increment or decrement.
14248 (box::top_level): Convert gsize to a string.
14250 * troff/input.cc (exit_troff): Make buf unsigned char [].
14251 Call to make_temp_iterator casts buf to char*.
14253 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
14255 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
14256 * Makefile.cpg (depend.temp): Likewise.
14258 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
14260 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
14262 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
14264 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
14266 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
14268 * Version 1.06 released.
14270 * Integrate mm 1.04.
14272 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
14274 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14276 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
14278 * afmtodit/afmtodit.pl: Add -n option that disables generation of
14280 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14281 afmtodit. Regenerate.
14283 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14284 @f back past the current position.
14286 * tmac/tmac.e: Change calls to @R so that comments are not part of
14289 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
14291 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14293 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14294 check that we can link a call to a function declared in <stdio.h>.
14295 (GROFF_UNISTD_H): New macro.
14296 * configure.in: Call it.
14297 * Makefile.in: Document it.
14298 * include/posix.h: New file.
14299 * troff/troff.h: Don't include <osfcn.h>
14300 * troff/input.cc: Include posix.h.
14301 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14303 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14304 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14306 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14307 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14308 * libbib/search.cc (O_RDONLY): Delete definition.
14309 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14310 Don't include <osfcn.h>.
14312 * acgroff.m4 (GROFF_TIME_T): New macro.
14313 * configure.in: Call it.
14314 * Makefile.in: Document it.
14316 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14317 * configure.in: Call it.
14318 * Makefile.in: Document -DTRADITIONAL_CPP.
14319 * include/ptable.h: Don't include generic.h.
14320 (name2): Define it.
14322 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14323 Afterwards remove [T1 and [T2.
14324 (ref*spec!0, ref*spec!2): Use T1 rather than T.
14325 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14326 (ref*add-T2): Renamed from ref*add-T.
14327 (ref*add-T1): New macro.
14329 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
14331 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14333 * libbib/index.cc: Include <fcntl.h>.
14334 (O_RDONLY): Define if necessary.
14335 (make_index_search_item, index_search_item_iterator::get_tag,
14336 index_search_item::check_files): Use O_RDONLY.
14337 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14338 (O_RDONLY): Define if necessary.
14339 (search_list::add_file): Use O_RDONLY.
14340 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14342 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14345 * libbib/index.cc (S_ISREG): Define it if necessary.
14346 (index_search_item::load): Use S_ISREG.
14348 * include/driver.h: Include <errno.h>.
14350 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
14352 * eqn/box.cc (body_height): Increase default value to 85.
14353 (body_depth): Increase default value to 35.
14355 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
14357 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14358 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14359 protected from expansion with \E.
14361 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14363 * Makefile (Makefile): New target.
14365 * Makefile.sub (configure, distfiles): New targets.
14367 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14370 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
14372 * eqn/box.cc (param_table): Add body_height and body_depth.
14374 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14376 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
14378 * psbb/Makefile.sub: Don't link with libgroff.a.
14380 * acgroff.m4 (GROFF_PUTENV): New macro.
14381 * configure.in: Call GROFF_PUTENV.
14382 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14383 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14386 * troff/env.cc (distribute_space): Rename force_forward argument
14387 to force_reverse. Reverse the list if force_reverse is true.
14389 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
14391 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14393 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14394 height or depth to be negative. Guard against SUP_RAISE quantity
14397 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
14399 * devps/generate/textmap: Add `an' (arrowhorizex).
14400 * tmac/tmac.ps: \(an overlaps horizontally.
14401 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14403 * devps/symbolchars: Add arrowverttp, arrowvertbt.
14404 * devps/textmap: Add arrowvertex.
14405 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14406 updownarrow delimiters.
14407 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14409 * tbl/table.cc (simple_entry::position_vertically,
14410 block_entry::position_vertically): For a centered entry, perform
14411 the motion in two stages.
14413 * refer/refer.cc (split_punct): Don't call lookup_token if there
14416 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
14418 * troff/input.cc (token::next): Delete token_node after copying
14421 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14424 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14426 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14428 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
14430 * grops/ps.cc (usage): -b option takes an argument.
14432 * devps/prologue (PLG): New procedure.
14433 * grops/ps.cc (main, usage): New -g option.
14434 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
14437 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
14439 * include/cset.h: Include <limits.h> if we have it.
14441 * libgroff/illegal.cc: New file.
14442 * include/lib.h (illegal_input_char): Use table.
14443 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14444 * pic/lex.cc (ARG1): Renumber to 14.
14445 * eqn/lex.cc (ARG1): Likewise.
14447 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14448 (eg 1.05.90) correctly.
14450 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
14452 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14453 Rename $r and $R registers to $v and $V.
14454 ($r, $R): Initialize to 0.
14455 (@v, @V): New macros.
14459 * troff/input.cc (main, usage): Add -R option that says not to
14461 * eqn/main.cc (main, usage): Rename -n to -R.
14463 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
14465 * devps/DESC.in: Leave font positions 5-9 blank.
14466 * devdvi/DESC.in: Likewise.
14468 * grog/grog.pl: Handle `.PS <file' correctly.
14470 * troff/input.cc (input_stack::push): Improve error message when
14471 input stack limit exceeded.
14473 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
14475 * refer/refer.cc (main): Fix typo in handling of `a' option.
14477 * refer/refer.cc (do_bib): In state START after a newline remain
14480 * groff/groff.sh: Deleted.
14481 * groff/Makefile.sub: Delete handling of groff.sh.
14483 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14484 to determine whether to use \X'ps:...'.
14485 * tmac/troffrc: Set 0p register to 0.
14486 * tmac/tmac.ps: Set 0p register to 1.
14488 * groff/groff.cc: Support -X option. Give warning for -TXps and
14489 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14490 * tmac/troffrc: Support -r.X=1.
14492 * pic/troff.cc (troff_output::dot): Don't test
14493 zero_length_line_flag.
14495 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
14497 * include/lib.h: Declare getopt() and friends unless
14498 STDLIB_H_DECLARES_GETOPT is defined.
14500 * doc/chars.tr: Delete.
14501 * man/groff_char.man: New file.
14503 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
14505 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14506 user has changed register format.
14508 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
14510 * groff/groff.cc: Get rid of device_table. Get postprocessor from
14511 `postpro' command in DESC file. Get spooler command from `print'
14512 command in DESC file. Execute spooler command with /bin/sh.
14514 * groff/groff.cc: Split Unix-specific parts into...
14515 * groff/pipeline.c: New file.
14518 * COPYING: New file.
14519 * all files: Update copyright notices.
14521 * Rearrange files. Redo Makefiles. Use autoconf.
14523 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
14525 * troff/input.c (charinfo_to_node_list): Interpret character
14526 definition with escape_char of `\'.
14528 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
14530 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14531 Define INT_DIGITS as big enough for 64-bit integer.
14532 * lib/strtol.c: Don't include lib.h.
14533 * lib/lib.h: Delete ifdef __cplusplus stuff.
14535 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
14537 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
14538 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
14539 get DESC from current directory.
14541 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
14543 * tbl/main.c (main): Always reset the line number when reading
14546 * tbl/table.c (table::print_single_hline, table::print_double_hline,
14547 table::define_bottom_macro, table::do_row, table::do_top): Round
14548 vertical spacing up to vertical resolution.
14550 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
14552 * ps/ps.h (enum resource_type): Avoid comma at end of
14554 * dvi/dvi.c (class dvi_printer): Likewise.
14555 * dvi/tfmtodit.c (gf::load): Likewise.
14556 * refer/label.y (struct expression): Likewise.
14557 * refer/refer.c (class label_processing_state): Likewise.
14558 * refer/indxbib.c (do_file): Likewise.
14559 * troff/troff.c (enum warning_type): Likewise.
14560 * tbl/main.c (process_data): Likewise.
14561 * troff/charinfo.h (class charinfo):
14563 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
14565 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
14567 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
14569 * groff.c: Move to new groff subdirectory.
14570 * groff/Makefile: New file.
14571 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14573 * man/mdate.sh: Use ls -L if supported.
14575 * Consolidate all header files produced by gendef into lib/defs.h.
14576 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14577 Don't include path.h.
14578 * lib/Makefile (path.h): Don't generate.
14579 * troff/input.c: Include defs.h. Don't include config.h.
14580 * troff/Makefile (config.h): Don't generate.
14581 * refer/index.h: Don't include suffix.h.
14582 * refer/index.c: Include defs.h.
14583 * refer/indxbib.c: Include defs.h.
14584 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14586 * refer/Makefile (suffix.h, path.h): Don't generate.
14587 * groff.c: Don't include config.h. Include defs.h.
14588 * Makefile (config.h): Don't generate.
14589 (lib/defs.h): Generate.
14590 (topclean): Remove lib/defs.h.
14592 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
14594 * lib/malloc.c, lib/getpagesize.h: Deleted.
14595 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
14597 * lib/Makefile: Delete malloc-related stuff.
14598 * lib/new.c: Workaround COOKIE_BUG if necessary.
14600 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
14601 needed header files directly.
14602 * refer/refer.h: Omit definition of DEFAULT_INDEX.
14603 * Makefile: Include definition of DEFAULT_INDEX in path.h.
14605 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
14607 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14609 * lib/font (font::load_desc, font::load): Don't split argument of
14611 (font::handle_unknown_font_command): Change type.
14612 * ps/ps.c (ps_font::handle_unknown_font_command,
14613 handle_unknown_desc_command): Change type.
14614 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14616 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
14618 * lib/font.h (font::handle_unknown_font_command): Add file and
14620 * lib/font.c (font::handle_unknown_font_command):
14621 * ps/ps.c (ps_font::handle_unknown_font_command):
14622 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14623 lineno arguments. Use _with_file_and_line functions for error
14626 * lib/fontfile.c (font::unknown_desc_command_handler): New static
14628 * lib/font.c (font::set_unknown_desc_command_handler): New
14630 (font::load_desc): For unknown commands, call
14631 unknown_desc_command_handler if not null.
14632 * lib/font.h (class font): Declare them.
14633 (FONT_COMMAND_HANDLER): New typedef.
14634 * ps/ps.c (handle_unknown_desc_command): New function.
14635 (main): Set bflag if we had a -b option. Call
14636 font::set_unknown_desc_command_handler.
14637 (broken.h): Don't include.
14638 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
14640 * ps/devps/Makefile: Add `broken' command to DESC file using
14641 BROKEN_SPOOLER_FLAGS.
14643 * macros/tmac.e ([, ]): Add as synonyms for { and }.
14645 * macros/tmac.e ($p): Only exdent if \$3 > 0.
14647 * macros/tmac.e (@R, @S): New macros.
14648 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14649 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14650 Declare $H, $[0-9], .. macros with @S.
14651 Declare |0, |1, |2, |3 strings with @S.
14653 * macros/tmac.e (@S): Rename to @U.
14655 * macros/tmac.e (@z): Define @b and bp as empty instead of
14658 * macros/tmac.e (@m): Deleted.
14659 (@h): Don't call @m.
14660 (@z): Don't set @m trap.
14662 * macros/tmac.e ($h, $f): Define |z as empty string.
14664 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14667 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14669 ()f): Likewise for * register.
14671 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14672 argument is missing, don't change $R. Call sr with three
14673 arguments when initializing.
14675 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
14677 * macros/tmac.e (sr): New macro.
14678 Initialize $r and $R using sr.
14680 * macros/tmac.e (,): Delete \*(#[.
14682 * troff/env.c (set_tabs): Read the tab type even if the position
14683 is bad. Allow the position of the first tab stop to be negative.
14685 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
14687 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14689 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14690 rather than -DPATHCONF_MISSING.
14691 * Makefile: Get rid of PATHCONF_MISSING.
14693 * refer/map.c: New file.
14694 * refer/index.c: Interface to mmap through map.c. Rename map_size
14696 * refer/Makefile: Handle map.c.
14697 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14699 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
14701 * Makefile: RANLIB should be `true' if there is no ranlib.
14702 * lib/Makefile (libgroff.a): Simplify.
14703 * driver/Makefile (libdriver.a): Simplify.
14705 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14706 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
14709 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
14711 * troff/env.c (compare_ranges): Declare as extern "C".
14713 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14715 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14717 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
14719 * pic/troff.c (troff_output::text): Merge in grops_output::text,
14720 but conditionalize use of \X based on \*(.T.
14721 (grops_output::*): Deleted.
14722 * pic/output.h: Delete declaration of make_grops_output.
14723 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
14724 by default. -n sets it to 0.
14725 (usage): Corresponding changes.
14726 * groff.c (main): Don't pass -x or -p to pic.
14727 * groff.sh: Likewise.
14729 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14732 * ps/devps/afmtodit: Change calculation of asc_boundary and
14733 desc_boundary. Make these bounds inclusive.
14734 * ps/devps: Regenerate font files.
14736 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
14738 * macros/tmac.latin1: New file.
14739 * macros/tmac.tty-char: Use tmac.latin1.
14740 (tmac.tty-tr): Deleted.
14741 * macros/Makefile: Install tmac.latin1.
14742 * macros/tmac.dvi: Use tmac.latin1.
14743 * macros/troffrc: Translate \[char160] onto no-break space here.
14744 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14746 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
14748 * macros/tmac.Xps: Use `do' request.
14750 * macros/tmac.ps: Use `do' request.
14752 * macros/tmac.e (@C): Use `do' request.
14754 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14755 * macros/Makefile: Install tmac.X*.
14757 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14758 * tty/Makefile: Don't install tmac.tty*.
14759 * macros/Makefile: Install tmac.tty*.
14761 * dvi/tmac.dvi: Move to macros.
14762 * dvi/Makefile: Don't install tmac.dvi.
14763 * macros/Makefile: Install tmac.dvi.
14765 * ps/tmac.ps*: Move to macros.
14766 * ps/Makefile: Don't install tmac.ps*.
14767 * macros/Makefile: Install tmac.ps*.
14769 * eqn/box.c: Provide draw_lines parameter corresponding to -D
14771 * macros/eqnrc: Set draw_lines parameter based on device.
14772 * groff.c: Don't pass -D flag to eqn.
14773 * groff.sh: Likewise.
14774 * eqn/main.c: Warn about use of -D.
14776 * troff/input.c (process_startup_file): New function.
14777 (main): Call process_startup_file().
14778 * macros/troffrc: New file.
14779 * macros/Makefile: Install troffrc.
14780 * groff.c (main): Don't pass extra -m option to troff. For a
14781 pseudo device pass the name of the pseudo device to troff using
14783 * groff.sh: Likewise.
14784 * groff.c (possible_command::prepend_arg): Deleted.
14786 * troff/input.c (do_request): New function.
14787 (init_input_requests): Bind "do" to do_request.
14789 * eqn/main.c (main): Instead of loading eqnchar from device directory,
14790 load eqnrc from macro directory.
14791 * macros/eqnrc: New file.
14792 * macros/Makefile: Install eqnrc.
14793 * ps/devps/eqnchar: Deleted.
14794 * ps/devps/Makefile: Don't install eqnchar.
14795 * dvi/devdvi/eqnchar: Deleted.
14796 * dvi/devdvi/Makefile: Don't install eqnchar.
14797 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14800 * lib/device.[ch]: New files.
14801 * lib/font.h (font::set_device_name, font::get_device_name):
14803 * lib/fontfile.c: Use device.h.
14804 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14805 * troff/input.c: Delete definition of `device'.
14806 (main): Don't initialize device.
14807 * troff/troff.h: Include device.h rather than declaring device.
14808 * troff/Makefile: No need to handle DEVICE.
14809 * driver/input.c: Include device.h. Don't use
14810 font::{set,get}_device_name.
14811 * groff.c, Makefile: Rename device.h to config.h.
14812 * groff.c: Use library device variable.
14813 * eqn/main.c: Use library device variable.
14814 * eqn/Makefile: No need to handle DEVICE.
14816 * lib/searchpath.[ch]: New files.
14817 * lib/Makefile: Handle searchpath.[ch].
14818 * troff/input.c (open_file, init_dirs): Deleted.
14819 (macro_dirs): Deleted.
14820 (open_mac_file, macro_source): Use class search_path.
14821 (add_string, struct string_list): Move definition.
14822 (main): Change -M option to use macro_path. Delete call to
14824 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14825 Rewrite to use class search_path.
14826 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14827 * lib/Makefile: fontfile.c depends on searchpath.h.
14828 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14830 * lib/macropath.[ch]: New files.
14831 * troff/Makefile: No need to handle MACROPATH.
14833 * troff/input.c: Delete DUMP code.
14834 * lib/fontfile.c, lib/font.h: Delete
14835 font::forget_command_line_font_dirs.
14837 * troff/input.c (push_token): New function.
14838 (handle_first_page_transition): Use push_token().
14839 (process_input_stack): Change handling of a space at the beginning
14842 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
14844 * troff/input.c (font_dirs): Delete unused variable.
14846 * eqn/lex.c (do_set): Correct error messages.
14848 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
14850 * troff/input.c (do_define_string): Allow the string name to be
14851 followed immediately by a tab.
14852 (define_character): Likewise.
14854 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
14856 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14859 * troff/input.c (input_iterator::is_file): New virtual function.
14860 (file_iterator::is_file): New function.
14861 (input_stack::end_file): New function.
14862 (input_stack::next_file): Handle the situation where there is no
14863 file on the input stack correctly. Avoid making two passes over
14865 (next_file): Make the filename optional; in this case call
14866 input_stack::end_file().
14868 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
14870 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14871 produce a real _ charater when the current font is CW and _
14874 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14875 expression to work around gcc 2.2 bug.
14877 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
14879 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14881 * troff/env.c (environment::add_padding): New function.
14882 (environment::add_char): Use add_padding().
14883 (environment::space): Likewise.
14884 (environment::wrap_up_field): Add some padding if there is none
14885 and there's no current tab.
14886 * troff/env.h: Declare environment::add_padding.
14888 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
14890 * pic/pic.y: undef fmod and rand before declaring them.
14892 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
14894 * troff/input.c (main): If the DESC file specifies a font name of
14895 0, then leave the corresponding font position empty.
14897 * nroff.sh: New file.
14898 * Makefile (install.nobin): Install nroff.sh.
14900 * tty/devlatin1/R.proto: Add ao as synonym for de.
14901 * tty/tmac.tty-char: Define ao as o.
14903 * tty/dev{ascii,latin1}/R.proto: Add aq.
14904 * tty/tmac.tty-char: Delete definition of aq.
14906 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
14908 * troff/input.c (init_charset_table): Don't translate 0240.
14909 * ps/tmac.ps: Translate char160 to space.
14910 * dvi/tmac.dvi: Likewise.
14911 * tty/tmac.tty: Likewise.
14913 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
14915 * dvi/tmac.dvi: Add support for all Latin-1 characters.
14917 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14918 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14921 * tty/tmac.tty-char: Add \(ah.
14923 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14924 No need to define \(FM and \(!/. Conditionalize all character
14927 * ps/devps/lgreekmap: Add +h, +f, +p.
14929 * ps/tmac.psnew: New file.
14930 * ps/Makefile: Install tmac.psnew.
14932 * troff/input.c (charinfo_to_node_list): Don't ever interpret
14933 character definitions in compatible mode.
14935 * troff/input.c (remove_character): New function.
14936 (init_input_requests): Bind remove_character to "rchar".
14938 * ps/tmac.psold: New file.
14939 * ps/Makefile: Install tmac.psold.
14940 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14941 characters into tmac.psold. Make these definitions unconditional.
14943 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14945 * ps/tmac.ps: Don't define \('c and \('C.
14947 * ps/devps/textmap: Move Greek characters to...
14948 * ps/devps/symbolchars:
14950 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
14952 * ps/devps/text.enc: Add quotesingle.
14953 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14954 * tty/tmac.tty-char: Likewise.
14955 * dvi/devdvi/texmi.map: Add +h, +f, +p.
14956 * dvi/devdvi/texi.map: Add Fn.
14957 * dvi/devdvi/msam.map: Add lz.
14958 * dvi/tmac.dvi: Handle Bq, bq, aq.
14960 * pic/lex.c (get_token): Recognize 'th.
14961 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14963 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
14965 * ps/devps/textmap: Move di, mu, +- to...
14966 * ps/devps/symbolchars:
14968 * macros/tmac.s (@XS): Don't call par@reset or fi.
14969 (XA): Call LP. Turn off adjustment. Reduce line length.
14971 * macros/tmac.s: Initially alias XS to LP.
14972 (XS): Rename to @XS.
14973 (cov*ab-init): Alias XS to @XS.
14975 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
14977 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14978 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14979 (token::is_size, token::changes_env): Deleted.
14980 * troff/number.c (parse_term): No need to process \s explicitly.
14981 Call tok.next() only after scale indicator has been processed.
14982 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14984 (token::next): Handle \s, \f, \S, \H immediately rather than
14985 returning them as tokens.
14986 (token::operator==, token::description, token::add_to_node_list,
14987 token::process): Remove handling of deleted tokens.
14989 * troff/env.c (environment::add_char): When adding padding
14990 indicator character, call start_line() if necessary.
14992 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
14994 * ps/devps/afmtodit: Don't output 0 kerns.
14996 * ps/devps/afmtodit: Remove directory from name of encoding in
14997 font description file.
14999 * ps/devps/afmtodit: Improve error messages.
15001 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
15003 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
15004 * ps/devps/FontMakefile: Deleted.
15005 * ps/devps/afmname: New file.
15007 * ps/devps/symbol.sed: New file.
15008 * ps/devps/symbol.diff: Deleted.
15009 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
15010 Generate zapfdr.afm from zapfd.afm.
15012 * tty/tmac.tty (tty-char): Prefix definition with ".
15014 * macros/tmac.an (TP): Don't start a diversion if one has already
15017 * tty/tmac.tty-char: Add Latin-1 characters.
15019 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
15021 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
15023 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
15024 Move declaration of struct horizontal_span.
15026 * tbl/table.c (table::table): Initialize span_list.
15027 (table::~table): Delete span_list.
15029 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
15031 * ps/devps/Makefile: Avoid dependency on GNU make.
15033 * ps/tmac.ps: Check that character does not already exist before
15036 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
15037 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
15038 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
15041 * tty/tmac.tty-char: New file.
15042 * tty/Makefile: Install tmac.tty-char.
15043 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
15046 * tty/tmac.tty: Fix definition of \(34.
15048 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
15049 bracket-drawing characters onto |. Add *o.
15051 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
15052 only if current_field.
15054 * troff/dictionary.c (dictionary::lookup): Free old_table after
15057 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
15059 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
15060 whose glyphs are identical to glyphs of some Roman character.
15062 * tty/devlatin1/R.proto (bu): Deleted.
15063 * tty/devascii/R.proto (bu): Deleted.
15064 * tty/tmac.tty: Add definition of \(bu.
15066 * eqn/main.c (do_file): Pass FILE as argument.
15067 (main): Automatically load eqnchar. New options -F and -n.
15068 Pass do_file an opened FILE.
15069 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
15070 No need to include font.h.
15071 * groff.sh: Likewise. Don't need to use - for standard input.
15072 Prefix files with -- if first file starts with -.
15074 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
15076 * troff/env.c (environment::possibly_break_line): Don't set line
15077 to 0 across call to output_line(). Don't call output_line() until
15078 after discarding nodes after break.
15080 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
15082 * request.h (macro::empty): Declare it.
15083 * input.c (macro::empty): New method.
15084 (interpolate_macro): Don't give a WARN_SPACE if the two-character
15087 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
15089 * troff/env.c (environment::start_field): Decrement space_total
15090 when a space is frozen.
15092 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
15094 * macros/tmac.an (R): Delete macro.
15096 * troff/input.c (get_copy, token::next): Support \# (like \" but
15097 newline is ignored).
15099 * troff/input.c (token::next): Fix error message in 'Y' case.
15101 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
15103 * eqn/delim.c (define_extensible_string): Recognize any prefix of
15106 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
15108 * c++test.c: Include <osfcn.h>.
15110 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
15113 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
15115 * tbl/table.c (table::divide_span): Don't count column separation
15116 if expand was specified.
15118 * tbl/main.c (process_format): Don't ignore width specs in
15119 continued format. Give warning for changing equal widths or
15120 column separation in continued format.
15121 (process_data): Set column separation, minimum width, equal
15122 columns at end of table.
15124 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
15126 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
15127 node::add_discretionary_hyphen): Use soft_hyphen_char.
15128 (set_soft_hyphen_char): New function.
15129 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
15131 * Makefile (c++tested): Give more helpful message if test fails.
15133 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
15135 * troff/input.c (init_charset_table): Translate 0240 to
15136 an unbreakable space.
15138 * troff/token.h (token::hyphen_indicator): New function.
15139 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
15141 * troff/input.c (translate): Allow translation to \%.
15142 * troff/node.c (node::add_char): Handle
15143 TRANSLATE_HYPHEN_INDICATOR.
15144 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
15146 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
15149 * tty/devlatin1/R.proto: \(hy and - should print as 055.
15151 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
15153 * groff.c (run_commands): If the last command gets a SIGPIPE send
15154 a SIGPIPE to all children than haven't yet terminated. When
15155 command terminates, set pid field to -1.
15157 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
15159 * groff.c (main): Pass an appropriate -filename option to gxditview.
15161 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
15163 * Makefile.bd (install): Remove existing program before copying.
15165 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
15166 programs which have Unix counterparts to be installed with
15167 user-specified prefix.
15169 * troff/input.c (exit_troff): Don't check if exit_started.
15170 (exit_request): Don't call exit_troff if exit_started.
15172 * Makefile.bd (install.mm): Rename to install.dwbmm.
15174 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
15176 * driver/input.c (do_file): Add missing break for '#' case.
15178 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
15180 * troff/input.c (input_stack::clear): Clear past any boundaries and
15181 then add the boundaries back.
15183 * troff/input.c (exit_troff): Return immediately if already
15186 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
15188 (pg*end-page): If the text has ended and there are no more
15189 footnotes or keeps, exit.
15191 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
15193 * troff/input.c (init_charset_table): Make \(rq transparent by
15196 * macros/tmac.an: Define lq and rq strings.
15198 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
15200 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
15202 * troff/env.c (environment::final_break): New function.
15203 (environment::newline): Set prev_line_interrupted to 2 if
15205 * troff/env.h: Declare environment::final_break.
15206 * troff/input.c (exit_troff): Call environment::final_break()
15207 instead of environment::do_break().
15209 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
15210 doesn't already exist.
15211 * macros/man.local: New file.
15212 * macros/tmac.an: Load man.local.
15213 * macros/man.ultrix: New file.
15215 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
15217 * troff/input.c (exit_groff): Rename to...
15218 (exit_troff): New function.
15220 * troff/div.c (exit_started, done_end_macro,
15221 seen_last_page_ejector): New global variables.
15222 (began_page_in_end_macro): New static variable.
15223 (exit_flag): Deleted.
15224 (top_level_diversion::top_level_diversion): Initialize
15226 (top_level_diversion): More elaborate test for whether
15227 cleanup_and_exit() should be called.
15228 Set began_page_in_end_macro if the end macro isn't yet finished.
15229 * troff/div.h (top_level_diversion::last_page_count): New data
15231 (top_level_diversion::set_last_page): New function.
15232 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
15233 * troff/env.c (do_break): Zero prev_line_interrupted.
15234 * troff/input.c (exit_flag): Delete declaration.
15235 (LAST_PAGE_EJECTOR): New magic cookie.
15236 (token::next): Handle LAST_PAGE_EJECTOR.
15237 (exit_groff): Set exit_started and done_end_macro instead of
15238 exit_flag. Call top_level_diversion::set_last_page. Push a
15239 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
15240 another ejection after setting seen_last_page_ejector.
15242 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
15244 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
15246 * macros/tmac.e (TH): Make sure there's room for the initial
15249 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
15250 Set FVS in points rather than units.
15252 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
15254 * troff/div.c (top_level_diversion::add_trap): Don't consider the
15255 position of empty slots.
15257 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
15259 * ps/devps/S: Fix height and depth of parenrightex.
15260 * ps/devps/symbol.diff: Regenerate.
15262 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
15264 * tmac.e (u): Do underlining as in -mgs.
15266 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
15268 * tty/tty.c (tty_printer::end_page): If overstriking is
15269 suppressed, still turn overstruck horizontal and vertical lines
15272 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15275 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15277 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
15279 * Version 1.05 released.
15281 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
15283 * tty/tty.c: Instead of keeping an array of glyphs and then
15284 sorting it, keep a ordered linked list of glyphs for each line.
15286 * driver/driver.h: Include stddef.h.
15288 * tty/tty.c (compare_glyph):
15289 * refer/refer.c (rcompare):
15290 * troff/env.c (compare_ranges): Arguments of qsort comparison
15291 function should be const void *.
15293 * troff/number.c (parse_term):
15294 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15297 * refer/label.y (consider_authors): Don't access variables
15298 constructed under a condition outside that condition: put braces
15299 round for statement containing declaration; redeclare use of same
15302 * pic/pic.y (text_expr): Delete production that allows
15303 parenthesised text_expr.
15304 (expr): Allow a conditional_expr to appear in parentheses.
15305 (conditional_expr): Rename to any_expr.
15307 * mm: Install new version 1.01 from jh.
15309 * lib/font.c (font::get_width): Cache scaled widths.
15310 (font::font): Initialize widths_cache.
15311 (font::~font): Destroy widths_cache.
15312 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15314 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
15316 * c++test.c, c++test.ref: New files.
15317 * Makefile: Check that the C++ compiler works.
15319 * ps/tmac.pspic (PSPIC): Do a break.
15321 * ps/tmac.ps: Move definition of PSPIC into...
15322 * ps/tmac.pspic: New file.
15323 (PSPIC): Draw box around picture, but make it invisible to grops.
15324 * ps/tmac.ps: Load tmac.pspic.
15325 * ps/Makefile: Install tmac.pspic.
15327 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
15329 * lib/font.c (scale_round): If n is negative,
15330 subtract .5 before truncating floating point result.
15332 * lib/fontfile.c: Include <errno.h>.
15334 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
15336 * driver/input.c (get_char): Inline. Don't update current_lineno.
15337 Change callers to up date current_lineno if necessary.
15338 Use get_char() instead of getc(current_file).
15340 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
15342 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15344 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
15346 * tty/tty.c (tmac.tty): Define \(rg as (R).
15348 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
15350 * lib/lib.h: New define a_delete.
15351 * Use a_delete instead of delete when deleting an array of objects
15352 without destructors.
15354 * lib/lib.h: Rename adelete to ad_delete.
15355 * Change uses of adelete.
15357 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
15359 * eqn/eqn.y: Include lib.h.
15361 * troff/node.c (grow_font_table): Delete old_font_table.
15363 * mm: Install new version from jh.
15365 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
15367 * tbl/table.h (format_type): Make global instead of local to class
15368 entry_format. Prefix enumerators with FORMAT_.
15369 * tbl/table.c, tbl/main.c: Corresponding changes.
15370 * refer/token.h (token_type): Make global. Prefix enumerators
15372 * refer/token.[ch]: Corresponding changes.
15373 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15375 * troff/div.c (node::set_vertical_size): Don't name argument.
15377 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
15379 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15380 * lib/lib.h: Define adelete accordingly.
15381 * pic/object.c (graphic_object::graphic_object):
15382 * tbl/main.c (format::~format):
15383 * tbl/table.c (table::~table):
15384 * refer/ref.c (reference::~reference, reference::merge,
15385 reference::insert_field, reference::delete_field): Use adelete.
15387 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15389 * tbl/table.h: Corresponding changes.
15391 * common.c (common_output::dashed_arc, common_output::dotted_arc):
15392 Ensure total_angle is positive.
15394 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
15396 * refer/ref.c (reference::merge, reference::insert_field,
15397 reference::delete_field): Avoid delete[0].
15399 * refer/token.c (init_special_chars): Move calls to cmupper
15400 outside calls to init_two_char_letter to work around bug in gcc
15403 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
15405 * lib/new.c (operator new): Use __builtin_new for g++.
15407 * pic/object.c (graphic_object::~graphic_object): Don't use
15410 * pic/object.c (output::compute_scale): Initialize max_width and
15413 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
15415 * troff/input.c (write_request): Call fflush.
15417 * troff/node.h (class composite_node): Move declaration to node.c
15418 * troff/input.c (charinfo_to_node): Rename to ...
15419 (charinfo_to_node_list): Return node list rather than composite
15421 * troff/node.c (make_composite_node): New function.
15422 (make_node, add_char): Call make_composite_node instead of
15424 (class composite_node): Add a tfont * member. Delete font_size
15426 (composite_node::composite_node, composite_node::copy,
15427 composite_node::size): Corresponding changes.
15428 (composite_node::tprint): Provide constant spacing, emboldening
15429 and track kerning as specified in tfont.
15430 (composite_node::width): Change width calculation accordingly.
15431 * troff/env.h (environment::composite): New member.
15432 (environment::is_composite, environment::set_composite): New
15434 * troff/env.c (environment::environment): Initialize composite.
15435 * troff/input.c (charinfo_to_node): Call
15436 environment::set_composite.
15437 * troff/node.c (make_composite_node, make_glyph_node): Use the
15438 plain version of the tfont if the environment is composite.
15440 * troff/node.c (font_info::get_space_width): Additional argument
15441 giving space_size. Handle constant space correctly. Scale by
15442 space_size unless constant spaced.
15443 (env_sentence_space_width): New function.
15444 * troff/node.h: Declare it.
15445 * troff/env.h (environment::get_space_size,
15446 environment::get_sentence_space_size,
15447 environment::get_narrow_space_width,
15448 environment::get_half_narrow_space_width): Make inline.
15449 (environment::get_space_width): Make inline. Just call
15451 * troff/env.c: Delete definitions for funtions made inline.
15452 (environment::space_newline, environment::space): Use
15453 env_sentence_space_width(). Don't scale by space_size.
15454 * troff/node.h: Move declarations of env*space_width() functions
15457 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
15459 * macros/tmac.s (PS): Don't try to set negative indent.
15461 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
15463 * pic/pic.y: Fix min function.
15465 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
15467 * man/mdate.sh: Clear LANGUAGE.
15469 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
15471 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15472 * pic/lex.c: New COMMAND keyword.
15473 * pic/pic.y (print_args, print_arg): New rules.
15474 (placeless_element): Use print_args for PRINT.
15475 New COMMAND element.
15477 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
15479 * troff/input.c (terminal): Handle missing argument correctly.
15481 * pic/pic.y (text_expr): New rule.
15483 * pic/pic.y: Implement := operator.
15485 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
15487 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15490 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
15492 * ps/devps/dingbatsrmap: Include this in the distribution.
15494 * macros/tmac.doc: Replace with new version from 2nd Networking
15495 Release. Fix loading of doc-* files.
15496 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15497 * macros/tmac.doc.old: New file. Apply fixes that had been
15498 applied to old tmac.doc.
15499 * macros/tmac.andoc: Check that we're running under groff.
15500 * macros/Makefile: Rework.
15502 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
15504 * tbl/table.h (format_type):
15505 * refer/token.h (token_type): If NESTED_TYPES is defined, use
15506 typedef to make these types visible at file scope.
15507 * Makefile: Add NESTED_TYPES configuration option.
15509 * troff/div.c (mark): At the top level use the value of
15510 nl_reg_contents rather than the current vertical position.
15512 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
15514 * tty/tty.c: Implement \D for horizontal or vertical lines.
15515 (tty_printer::set_char): Use vec_used+2 as serial number.
15516 Don't allow size of vector to exceed USHRT_MAX-2.
15517 Split off part into...
15518 (tty_printer::add_char): New function.
15519 (tty_printer::draw): New function.
15520 (compare_glyph): Handle equal serial numbers.
15521 (tty_printer::end_page): Handle overstruck characters from \D.
15522 (main, usage): Implement -d option.
15524 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
15526 * tbl/main.c (process_format):
15527 * eqn/text.c (split_text):
15528 * troff/input.c (token::next): Use inner block for declarations
15529 with initializers in switch statement.
15531 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
15533 * pic/common.c (common_output::dash_line): Cope with zero-length
15536 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
15538 * Version 1.04 released.
15540 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
15542 * macros/tmac.an (TH): Define a macro an-init to define variables
15543 based on command line arguments.
15544 (an-header): Call it.
15546 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
15548 * Makefile (install.mm): Rename to install.dwbmm.
15550 * Makefile: Integrate mm.
15551 * mm: New directory.
15553 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
15555 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15558 * pic/troff.c (troff_output::simple_spline,
15559 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15560 shadowing parameter.
15562 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15564 * lib/ptable.h: Add explicit casts when converting from unsigned
15567 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15568 * dvi/devdvi/Makefile: Install SA, SB.
15570 * refer/indxbib.c: Add declaration of mktemp.
15572 * refer/lookbib.c: Add declaration of isatty.
15574 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
15576 * pic/lex.c (interpolate_macro_with_args): While collecting
15577 arguments, keep track of whether we're in a string.
15579 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
15581 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15582 down with \v, so as to avoid problems with top of page trap
15583 setting no space mode.
15585 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
15587 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15589 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
15591 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15592 Improve error message.
15594 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
15596 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15599 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
15601 * groff.c (possible_command::execp): Always use _exit() after a
15604 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15605 NO_SYS_WAIT_H configuration options.
15606 * groff.c: Use these options. Use POSIX-style macros to extract
15607 fields from the status returned by wait().
15609 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
15611 * tbl/table.c (table::compute_separation_factor): Allow the
15612 separation factor to drop to 0.
15614 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
15616 * refer/search.c: Include <errno.h>.
15618 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
15620 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15622 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15625 * pic/lex.c (input_stack::bol): Move definition out of class body.
15627 * pic/main.c: On MSDOS munge argv[0].
15629 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15631 * lib/ptable.c (hash_string): Use unsigned long rather than
15633 (next_ptable_size): Use unsigned rather than int. Give an error
15634 message if we've hit the largest table size.
15635 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
15638 * pic/object.h (object_spec): Make flags unsigned long. Declare
15639 flags as const unisgned long rather than as enums.
15641 * pic/output.c: Deleted.
15643 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15645 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15646 Add additional argument.
15647 (line_entry::note_double_vrule_on_{left,right}): Set value of
15648 douvle_vrule_on_{right,left} flag according to argument.
15649 (simple_line_entry::simple_print,
15650 simple_line_entry::double_line_print): If adjacent to double vrule
15651 on a corner extend rather than shorten the rule by half the double
15654 * troff/number.c (parse_term): In checking for overflow, handle the
15655 case where the current horizontal position is negative.
15657 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
15659 * pic/object.c (draw_arrow): Check for object having zero length.
15661 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
15663 * eqn/main.c (do_file): Split off inline equation handling into...
15664 (inline_equation): New function. Search for starting delimiter
15666 (delim_search): New function. Don't recognize a delimiter that
15667 occurs in the name of an escape sequence, number register, string
15670 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
15672 * eqn/delim.c (delim_box::compute_metrics): Don't call
15673 define_extensible_string if left is 0.
15674 (delim_box::output): Don't print the left delimiter if left is 0.
15675 (delim_box::debug_print): Check for left == 0 before calling printf.
15677 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
15679 * troff/Makefile (majorminor.c): Include only digits in
15682 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
15684 * refer/dirnamemax.c: new file.
15685 * refer/genlimits.c: Deleted.
15686 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15687 Don't check path length.
15688 * refer/Makefile: Add dir_name_max.o; delete genlimits.
15689 * Makefile: Add PATHCONF_MISSING option.
15691 * refer/indxbib.c (get_cwd): New function.
15692 (main): Use get_cwd().
15693 * lib/getcwd.c: New file.
15694 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15695 GETCWD in SUBFLAGS.
15696 * lib/Makefile: Compile getcwd.o.
15698 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15701 * refer/indxbib.c (main): Check success of mktemp.
15703 * lib/tmpfile.c: New file.
15704 * lib/Makefile: Add tmpfile.c.
15705 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15706 * ps/ps.h: Delete declaration of mktemp().
15707 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15708 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15709 * driver/driver.h: No need now to include errno.h.
15711 * everywhere: Set errno to 0 before calling fopen().
15713 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15714 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15715 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15717 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
15719 * troff/env.h (translate_space_to_dummy): Declare it.
15720 * troff/env.c (environment::space_newline, environment::space):
15721 If translate_space_to_dummy is set then make the width of spaces 0.
15722 * troff/input.c (translate): If the second character of a
15723 translation is a space, translate to unbreakable space. If the
15724 first character is a space, set or clear translate_space_to_dummy
15725 according to whether the second character is \&. Weird!
15727 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
15729 * groff.c (run_commands): Don't use non-zero exit code because a
15730 command gets SIGPIPE.
15732 * groff.c, groff.sh: Use -mXps with -TXps.
15734 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15735 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15736 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15737 (ps_printer::special): New specials invis and endinvis.
15738 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15739 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
15740 (ps_printer::end_page): Check that invis_count == 0.
15741 (ps_printer::invis_count): New member.
15742 (ps_printer::ps_printer): Initialize invis_count to 0.
15744 * troff/env.c (environment::hyphenate_line): Hyphenation
15745 indicator at beginning of word inhibits splitting after -, \(em
15748 * pic/pic.y (element): Allow another element to follow } without
15749 any intervening separator.
15751 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
15753 * pic/lex.c (get_delimited): Allow tabs before delimiter.
15755 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
15757 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
15758 declaration of wait() in header files.
15759 * Makefile: Get rid of -DHAVE_UNION_WAIT.
15761 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15763 * lib/lib.h: Declare return type of strerror as char *.
15765 * man/Makefile: Add g flag to sed substitutions.
15766 * Makefile (shgroff, bindist): Likewise.
15768 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
15770 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15771 * ps/devps/prologue (PBEGIN): Define showpage after pushing
15774 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
15776 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15779 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
15781 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15784 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
15786 * troff/input.c (define_number_reg): If currently undefined,
15787 don't define it if the argument is an invalid expression.
15789 * Makefile: Ignore return value of `if' commands without `else'
15792 * Makefile: Split up CPPDEFINES into a series of separate
15793 configuration options.
15795 * troff/input.c (init_registers): Use time_t instead of long
15796 unless LONG_FOR_TIME_T is defined. Use returned result rather
15797 than passing pointer.
15798 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15800 * lib/Makefile (fontpath.h): Use gendef.
15802 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
15804 * troff/input.c (input_iterator::shift): Delete argument name.
15805 * troff/node.c (suppress_output_file::really_begin_page,
15806 suppress_output_file::really_transparent_char, node::ascii_print,
15807 node::tprint): Delete names of unused arguments.
15809 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
15811 * refer/label.y (string): Pass $4 to command_error.
15813 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
15815 * Version 1.03 released.
15817 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
15819 * Makefile: Pass definition of SHELL in SUBFLAGS.
15821 * gendef: New file.
15822 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15823 ps/Makefile: Use gendef to construct header files that are
15824 constructed from the Makefile.
15826 * macros/Makefile: make all should build stripped version of tmac.e.
15828 * refer/Makefile (clean): Remove y.output.
15830 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
15832 * ps/pfbtops.c (main): Add -v option which prints out a version
15834 * ps/Makefile (pfbtops): Link with libgroff.a.
15836 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
15838 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15839 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15841 * refer/lkbib.c (main): Always terminate reference with blank
15843 * refer/lookbib.c (main): Likewise.
15845 * refer/linear.c (file_buffer::load): Check that the file is not a
15848 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15849 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15850 Delete second inclusion of <sys/param.h>.
15852 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
15854 * troff/token.h (token::special): Deleted.
15856 * tbl/main.c (process_format): Rework so that opt->tab_char is
15857 recognized only when appropriate.
15859 * ps/Makefile (clean): Remove pfbtops.
15861 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
15863 * lib/font.c (text_file::next): Don't return if we have got a
15866 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
15868 * refer/refer.c (store_reference): Get hash code from old_table[i]
15869 when rehashing the table.
15871 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
15873 * eqn/box.c (box::top_level): Save size and prev size using \R and
15874 restore it afterwards. Set the size to the size at the beginning
15876 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15877 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15879 * refer/Makefile (limits.h): Use ./genlimits.
15881 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
15883 * refer/index.c: Delete declarations of stat() and fstat().
15885 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
15887 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15889 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
15891 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15893 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
15895 * troff/input.c (token::get_char): Handle \e.
15897 * refer/linear.c: Delete declarations of fstat() and stat().
15899 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
15901 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15902 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15904 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
15906 * troff/input.c (do_define_macro): Improve error handling for end
15907 of file while defining macro.
15909 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
15911 * eqn/box.h: Fix declaration of set_gsize.
15912 * eqn/box.c (set_gsize): Make argument const char *.
15913 (gsize): Declare as char *.
15914 * eqn/main.c (main): Don't convert gsize to int.
15915 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15917 * Version 1.02 released.
15919 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
15921 * macros/tmac.andoc: New file.
15922 * macros/Makefile: Install tmac.andoc.
15924 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15925 operator new and delete on OP_DELETE_BROKEN not being defined.
15926 * Makefile: Mention OP_DELETE_BROKEN.
15928 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
15930 * Makefile (bindist): Pass SUBFLAGS.
15932 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
15934 * Makefile, groff.c: Pass definitions to groff.c via device.h.
15936 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15939 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15941 * ps/ps.h, ps/psrm.c: Make comment_table and
15942 header_comment_table local to resource_manager::process_file.
15944 * groff.sh: With -TXps pass -printCommand option to gxditview.
15946 * groff.c (possible_command::print): Implement using
15947 append_arg_to_string.
15949 * xditview: Merge in new implementation with own ChangeLog.
15951 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
15953 * groff.c (main): Implement PRINT_OPTION.
15954 (append_arg_to_string): New command.
15955 (device_table): Set PRINT_OPTION flag for Xps.
15957 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
15959 * troff/groff.h: Rename to troff.h.
15961 * pic/lex.c (lookup_keyword, docmp): New functions.
15962 (get_token): Use new lookup_keyword.
15963 Don't include key.h.
15964 * pic/key.[ch], pic/pic.gperf: Deleted.
15965 * pic/Makefile: Remove gperf stuff.
15967 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15969 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15971 * troff/Makefile, troff/node.c: Move definition of
15972 STORE_WIDTH into node.c.
15974 * etc/grog.pl, etc/grog.sh: Support -mdoc.
15976 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
15978 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15979 dvi/devdvi/texb.map: Add lq and rq.
15980 dvi/devdvi: Regenerate fonts.
15981 * ps/devps/textmap: Add lq and rq.
15982 * ps/devps: Regenerate fonts.
15983 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15984 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15986 * pic/object.c (position_rectangle): When checking radius
15987 cope with possiblity that width or height is negative.
15988 (box_object::box_object): Have separate xrad and yrad with
15989 signs matching signs of dim components.
15990 (box_object::{north,south}_{east,west}): Use xrad and yrad.
15991 (box_object::print): With rounded boxes use absolute values
15992 for dim and rad arguments.
15994 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15997 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15999 * various files: Add explicit destructors to keep Saber CC +d
16002 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
16004 * eqn/box.c (box::top_level): Restore fonts correctly after
16005 font changes in line containing inline equation. Also
16006 restore previous font as well as current font.
16007 * eqn/pbox.h: Define necessary string and register names.
16009 * troff/input.c (token::next): Case 'R' calls do_register.
16010 (do_register): New function.
16012 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
16014 * groff.c, groff.sh: Support Xps device. Allow each device
16015 to have a pseudo_name and a real_name.
16017 * groff.c (run_commands): Don't print `Broken pipe' messages.
16019 * ps/pfbtops.c: New file.
16020 * ps/Makefile: Add pfbtops.
16022 * troff/number.c (parse_term): Improved error message.
16024 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
16026 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
16028 * Makefile: Integrate refer.
16029 * refer: New directory.
16030 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
16031 man/lkbib.man: New files.
16032 * man/Makefile: Support refer man pages.
16034 * lib/lib.h: Declare is_prime.
16035 * lib/prime.c: New file.
16037 * troff/input.c (macro_source): New function.
16038 (init_input_requests): Bind "mso" to macro_source.
16040 * troff/env.c (environment::possibly_break_line): Maintain
16041 pointer to pointer to node to be split in ndp so as to avoid
16042 using address of freed node.
16044 * troff/env.c (environment::hyphenate_line): Maintain pointer to
16045 pointer to first node to be hyphenated in startp so as to
16046 avoid using address of freed node.
16048 * troff/env.c (class trie, class hyphen_trie): Make the
16049 elements of the trie be of type char not unsigned char.
16050 Declare arguments to be const char* instead of unsigned char *.
16052 * troff/env.c (hyphenate): Initialize hbuf[0].
16054 * troff/input.c (set_string): Declare p to be char * and cast
16055 *p to unsigned char when necessary.
16057 * troff/input.c (do_define_macro): Declare s to be const
16058 char*. Cast element to unisgned char when necessary, Declare
16059 d to be an int. Handle EOF better.
16061 * troff/Makefile, troff/input.c: Different scheme for passing
16062 definitions of MACROPATH, HYPHENFILE and DEVICE.
16064 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
16066 * tty/devascii/R.proto: Delete entry for em.
16067 * tty/devlatin1/R.proto: Likewise.
16069 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
16071 * troff/input.c (translate): Stop when we get a space. Treat eof
16074 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
16076 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
16078 * tbl/main.c (process_format): A font name following a `f'
16079 modifier that starts with a digit can be only one character long.
16080 Also deal with EOF on the second character of the font name.
16082 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
16084 * troff/input.c (token::next): Turn \~ into an
16085 unbreakable_space_node.
16086 * troff/node.c (unbreakable_space_node): New class.
16087 * troff/node.h: Declare it.
16089 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
16091 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
16092 it's >= 0, before outputting it as a single byte.
16094 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
16096 * lib/font.c: Make font_char_metric::code an int.
16097 (font::get_code): Change return type to int.
16098 (font::load): Allow code to be arbitrary integer.
16099 * lib/font.h (font::get_code): Change return type to int.
16100 (font::number_to_index): Change argument type to int.
16101 * troff/input.c (token::next): In case 'N', allow any value.
16102 Store value in token::val.
16103 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
16104 (token::get_char, token::add_to_node_list, token::process): Get
16106 (charinfo::set_number): Change argument to int.
16107 (charinfo::get_number): Require that NUMBERED flag be set.
16108 (get_charinfo_by_number): Store numbered characters not between 0
16109 and 255 in a dictionary.
16110 * troff/charinfo.h (get_charinfo_by_number): Change argument type
16112 (charinfo::number): Change type to int.
16113 (charinfo::set_number): Change type of set_number to int.
16114 * troff/node.c (troff_output_file::put_char_width,
16115 troff_output_file::put_char): Test whether character is numbered
16116 using charinfo::numbered().
16117 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
16119 * lib/nametoindex.c: New implementation to cope with arbitrary
16122 * troff/input.c (token::operator==): Test val for
16123 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
16126 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
16127 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
16129 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
16131 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
16134 * all Makefiles: rm targets of cp and >.
16136 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
16139 * eqn/lex.c (def_table): Add dollar.
16141 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
16143 * troff/input.c (do_width): Push back newline before closing delim
16146 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
16148 * groff.c (possible_command::prepend_arg): New function.
16149 (main): Prepend device -m option.
16150 * groff.sh: Put device -m options before command-line options.
16152 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
16154 * macros/tmac.an (IP): Quote argument to TP.
16156 * ps/ps.c (main): New option -b, which sets...
16157 (broken_flags): New variable.
16158 (ps_printer::~ps_printer): Incorporate the setup section in the
16159 prolog if (broken_flags & NO_SETUP_SECTION).
16160 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
16161 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
16162 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
16163 ps_printer::print_needed_font_comment,
16164 ps_printer::print_supplied_font_comment,
16165 ps_printer::print_include_font_comments,
16166 ps_printer::lookup_doc_font, ps_printer::download_fonts,
16167 ps_printer::read_download_file, read_document_fonts, add_font,
16168 skip_line, parse_fonts_arg, document_font::document_font,
16169 document_font::~document_font, document_font::download,
16170 ps_output::include_file): Deleted.
16171 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
16172 rather than %!PS-Adobe-2.0. Make calls to
16173 resource_manager::need_font for each font that we used. Replace
16174 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
16175 print_supplied_font_comment, print_needed_font_comment by call to
16176 resource_manager::print_header_comments. Output %%Orientation
16177 comment. Output %%Requirements: numcopies comment if ncopies > 1.
16178 Don't output the prolog directly. Instead call
16179 resource_manager::output_prolog. Only define #copies when ncopies
16180 > 1. Delete calls to print_include_font_comments and
16181 download_fonts. Add call to resource_manager::document_setup.
16182 (ps_printer::do_file): Call resource_manager::import_file instead
16183 of including it ourselves.
16184 (ps_printer::do_import): Likewise. Also don't call
16185 merge_import_fonts. Push userdict on the dictionary stack before
16186 and pop it afterwards.
16187 Move declaration of ps_output into ps.h.
16188 * ps/psrm.c: New file implementing resource_manager class.
16189 * ps/ps.h: New file declaring ps_output and resource_manager
16191 * ps/devps/zapfdr.ps:
16192 * ps/devps/symbolsl.ps:
16193 * ps/devps/prologue: Use 3.0 conventions.
16194 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
16195 Add default definition of BROKEN_SPOOLER_FLAGS.
16196 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
16197 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
16199 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
16201 * etc/grog.pl: New file.
16202 * Makefile (GROG): New variable.
16203 Add GROG to SUBFLAGS.
16204 * etc/Makefile (GROG): New variable.
16205 (install.nobin): Install $(GROG) rather than grog.sh.
16207 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
16209 * eqn/special.c (special_box::compute_metrics): Make the input and
16210 output strings the same. Get the new height and depth from the
16211 predefined height and depth registers. Also make subscript kern
16212 and skew available.
16213 (special_box::compute_subscript_kern, special_box::compute_skew):
16216 * eqn/box.c (pointer_box::compute_skew,
16217 simple_box::compute_metrics, box::top_level)
16218 * eqn/text.c (prime_box::compute_metrics,
16219 prime_box::comput_subscript_kern)
16220 * eqn/limit.c (limit_box::compute_metrics):
16221 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
16222 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
16223 negative numbers in `nr' requests with a leading 0.
16225 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
16227 * eqn/special.c: New file.
16228 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
16229 Add new rule for simple.
16230 * eqn/lex.c (token_table): Add SPECIAL.
16231 * eqn/box.h: Declare make_special_box.
16232 * eqn/Makefile: Add special.[co].
16234 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
16236 * ps/devps/prologue: Possibly set packing to true while defining.
16237 Create grops dictionary here. Initialize local variables before
16238 defining procedures.
16239 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
16240 the dictionary stack. Set strokeadjust and overprint to false if
16241 the relevant operators are defined.
16242 (PEND): New procedure.
16243 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
16244 prologue. Do everything else in the setup section.
16245 (ps_printer::do_import): Just call PBEGIN and PEND around the
16246 picture. Also push userdict before, and pop it afterwards.
16248 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
16250 * troff/node.c (bracket_node::tprint): Brackets were being printed
16253 * macros/tmac.an (SH, SS): Set fill mode.
16255 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
16257 * troff/div.c (top_level_diversion::begin_page): Set
16258 high_water_mark to 0.
16260 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
16262 * man/mdate.sh: New file.
16263 * man/mdate.c: Deleted.
16264 * man/Makefile: Use mdate.sh instead of mdate.
16267 * eqn/lex.c (do_gsize): Supply missing argument to error message.
16269 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
16271 * man/mdate.c: New file.
16272 * man/*.man: Replace modification date by @MDATE@.
16273 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16274 (mdate): New target.
16276 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16277 Remove illegal input characters.
16279 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
16281 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16283 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
16285 * troff/div.c (begin_page): Change behaviour when
16286 !first_page_begun and !break_flag.
16288 * troff/input.c (do_name_test): Return 0 if argument is empty.
16290 * troff/input.c (read_long_escape_name): Require closing ] to be
16291 at same input level as opening [.
16293 * troff/input.c (read_increment_and_escape_name): New function.
16294 (get_copy, process_input_stack): Use this for \n.
16296 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
16298 * troff/div.c (top_level_diversion::begin_page): Ignore the
16299 current value of page_number if !first_page_begun.
16301 * groff.c (main): Fix declaration of buf.
16303 * troff/input.c (do_name_test): New function.
16304 (token::next): Implement \A.
16305 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16306 (token::description, token::add_to_node_list, token::process):
16307 Handle TOKEN_ESCAPE.
16308 * troff/token.h: New token TOKEN_ESCAPE.
16310 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
16312 * pic/main.c (do_picture): Allow space before and after filename
16313 following `<'. Check that the filename is not empty.
16315 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
16317 * Version 1.01 released.
16319 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16321 * dvi/tmac.dvi: ftr HR to H.
16323 * macros/tmac.e: Round up computation of $r.
16325 * xditview/tmac.X: Don't give up completely in compatibility mode.
16326 Use \n(.s instead of \n[.s].
16328 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16329 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16330 Add u to factors inside \s[...]. Rename frac to dvi-frac.
16331 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16332 short names in the char definitions.
16334 * ps/tmac.ps: Don't give up completely in compatibility mode.
16335 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16336 quote in front of \n(.s. Add u to factors inside \s[...].
16338 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
16340 * tty/tmac.tty: Call the nroff request.
16342 * macros/tmac.e ((x, )x): Better definitions that work properly
16344 (@0, @1): Helper macros for (x.
16346 * macros/tmac.e ($s, hl): Use \l rather than \D.
16348 * tty/tmac.tty: Make it work better in compatibility mode.
16349 (pchar): Rename to tty-char.
16351 * macros/tmac.e (@E): New macro.
16352 (r, i, b, rb, bi): Use @E.
16354 * macros/tmac.e (@F): Don't use (;...) syntax.
16356 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
16357 it was modified for groff.
16359 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16361 * macros/tmac.e (<., .>): Removed.
16362 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16364 * macros/tmac.e: Remove check that groff is being used.
16366 * macros/tmac.e (@C): Change families only if using groff; turn
16367 compatibility mode off while changing familes. Save compatibility
16368 mode before changing families and restore it afterwards.
16370 * macros/tmac.e (@h): Remove test for offset + line length.
16372 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
16373 (lo, th, ac): Define to call @S instead of using als.
16375 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16376 the ratio of the vertical spacing to the point size in units
16377 expressed as a percentage. Use these instead of $10r and $10R,
16378 Delete $10r and $10R.
16380 * lib/font.c (font::load): In default computation of space_width,
16381 divide by sizescale. Use scale_round.
16383 * macros/tmac.an (TP): Don't call `nf'.
16384 (an-do-tag): Don't call `fi'.
16386 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
16388 * troff/input.c (process_input_stack): Handle the case where
16389 spaces at the beginning of an input line are followed by a
16392 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
16394 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16395 * groff.sh: Use pic -x with the dvi device.
16397 * dvi/devdvi/FontMakefile (H): Don't use -s.
16399 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16400 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16401 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16404 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
16406 * ps/psfig.diff: New file.
16407 * ps/tmac.psfig: New file.
16409 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
16411 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16412 (]-): Don't call ref*do-tl.
16414 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16416 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16417 (fn@do-FS): Rename to fn*do-FS.
16419 * troff/input.c (transparent_translate): New function.
16420 (process_input_stack): Apply transparent_translate before calling
16421 diversion::transparent_output(unsigned char).
16423 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
16425 * troff/input.c (do_define_macro): Define the macro before calling
16428 * xditview/Makefile: Add DEVICES variable. Change install target
16431 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
16433 * groff.c (run_commands): Handle the possibility that there are
16434 child processes other than those forked by us.
16436 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
16438 * lib/string.c (string::append): New function.
16439 * lib/stringclass.h: Declare it.
16441 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
16443 * eqn/main.c (main): New option -N which sets
16444 no_newline_in_delim_flag.
16445 (do_file): If no_newline_in_delim_flag is set don't allow newlines
16447 * groff.c (main): Pass -N on to eqn.
16448 (help, synopsis): Mention -N.
16449 * groff.sh: Implement -N.
16451 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
16453 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16454 (]-): Call ref*do-tl if ref*need-tl is non-zero.
16455 (XP): Allow as initializer.
16457 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
16459 * troff/env.c (environment::wrap_up_field): If field_spaces are
16460 non-zero and we have a current_tab, subtract padding from
16461 tab_distance. If this makes tab_distance <= 0, use the next tab
16462 stop instead. If there isn't any next tab or it's a left tab,
16463 wrap up the current tab.
16464 (environment::start_field): Initialize tab_precedes_field.
16465 (environment::wrap_up_tab): If there's a current field, update
16466 pre_field_width, field_distance and tab_precedes_field.
16467 * troff/env.h (environment::tab_precedes_field): New member.
16469 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
16471 * ps/ps.c (ps_printer::do_file): New function.
16472 (ps_printer::special): Bind to `file' special.
16473 (ps_printer::do_exec): Set ndefined_styles to 0.
16475 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
16477 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16478 Avoid stripping first character from the start of unrecognized
16479 escapes. Use lex_error instead of error to report errors.
16480 * eqn/lex.c (get_token): Rework handling of escapes.
16481 (lex_error): Move declaration into...
16484 * xditview/xditview.c (main): Make -page option work.
16486 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16488 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
16490 * macros/tmac.s (B2): Correct size of box.
16492 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
16494 * macros/tmac.s (B2): Postpone drawing the box until in the
16495 top-level diversion.
16497 * tty/tmac.tty: Add font translations for C, CR, CW.
16499 * groff.c (synopsis, help): Document -i.
16500 * groff.sh: Implement -i.
16502 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16503 Simplify the construction of SN.
16505 * troff/number.c (parse_term): Give `|' a higher precedence.
16506 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16509 * macros/tmac.s (B2): Use par@finish instead of par@reset.
16511 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
16513 * lib/string.c (string::move): New function.
16514 * lib/stringclass.h: Declare it.
16516 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
16518 * troff/env.c (distribute_space): Add optional argument
16520 (environment::wrap_up_field): Call distribute_space with
16521 `force_forward' argument of 1.
16523 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
16525 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16526 Inline it. Move reallocation into...
16527 (string::grow1): New function.
16528 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16529 dependencies to include library header files.
16530 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16532 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
16534 * macros/tmac.s (@NH): Use the same number registers than -ms does
16535 for the heading level counters. Use the same string that -ms does
16536 for the number for this heading.
16538 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
16540 * lib/new.c (operator new): Cast result of malloc to char *.
16542 * troff/input.c (spring_trap, lookup_request): Add assert that nm
16545 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
16547 * groff.c (main): Support -i.
16549 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
16551 * pic/pic.h: Include <osfcn.h>.
16553 * ps/ps.c: Add declaration of mktemp.
16555 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16556 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16557 argument as union wait *.
16558 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16559 argument to union wait *.
16561 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
16563 * tty/tmac.tty: Add definition of \(co.
16565 * pic/object.c (make_arc): Only increase radius when radius
16566 strictly less than d.
16567 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16570 * troff/env.c (environment::environment(symbol),
16571 environment::environment(const environment *)): Initialize
16574 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
16576 * tbl/main.c (main): Add exit(0).
16578 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16580 * pic/main.c (main):
16581 * eqn/main.c (main):
16582 * tbl/main.c (main):
16583 * etc/soelim.c (main):
16584 * driver/printer.c (printer::~printer):
16585 * troff/node.c (real_output_file::~real_output_file,
16586 real_output_file::flush): Check for errors on stdout.
16588 * most files: Add 1991 to copyright notice.
16590 * macros/tmac.s: Don't test \n(.x and \n(.y.
16592 * troff/input.c (token::next): Rename `escape_char' label to
16593 `handle_escape_char' and `normal_char' label to
16594 `handle_normal_char'.
16596 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
16598 * groff.c (main, synopsis, help): Support -a option.
16599 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
16600 to trflags while parsing options.
16602 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
16604 * troff/number.c (parse_term): With `m', `M' and `n' scale
16605 indicators, convert scale factor to hunits before scaling.
16607 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
16609 * lib/font.c (scale_round): Better test for overflow when n is
16612 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
16614 * tbl/main.c (process_format): Add second argument of type
16615 options*. Change callers. Allow opt->tab_char as well as '\t'
16616 between format items.
16618 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
16620 * macros/tmac.an (PD): With no arguments, make sure register PD is
16622 (TH): Call PD with no argument, instead of setting register PD
16625 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
16627 * Version 1.00 released.
16629 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
16631 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16633 * dvi/devdvi/DESC: Mount CW instead of CR.
16635 * dvi/tmac.dvi: Add definition of \(tm.
16637 * dvi/devdvi/texsy.map: Add lh, and rh.
16638 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16639 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16641 * dvi/devdvi/FontMakefile: Generate H from cmss10.
16642 * dvi/devdvi/Makefile: Install H.
16643 * dvi/devdvi/H: New file.
16645 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
16647 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16650 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
16652 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16654 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16656 * macros/tmac.s (@EN): Handle the case where the equation is empty
16657 but the label is not.
16659 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
16661 * troff/groff.h: New warning category WARN_SPACE.
16662 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16663 WARN_SPACE to warning_table.
16664 (interpolate_macro): Give a warning of type WARN_SPACE if the name
16665 is longer than two characters and is not defined, but the first
16666 two characters do make a defined name.
16668 * PROBLEMS: New file.
16670 * CHANGES: New file.
16671 * README-0.6, README-1.00: Deleted.
16673 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16674 * xditview/devX75/Makefile: Make devX75-12.
16675 * xditview/devX100/Makefile: Make devX100-12.
16677 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16678 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16680 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
16682 * README-0.7: Rename to README-1.00.
16684 * macros/tmac.pic: New file.
16685 * macros/Makefile (install.nobin): Install tmac.pic.
16687 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
16689 * troff/env.c (hyphen_word): Correct the test for whether the
16690 token is a hyphen. Reset npos to 0.
16692 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16694 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
16696 * macros/tmac.s (ds*common-end): Call par*reset.
16698 (par@reset-indent): Deleted.
16700 * macros/tmac.s (@IP): Divert the label.
16702 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
16704 * xditview/draw.c (setGC): Use a line width of .1m rather than
16705 .04m by default; round rather than truncate value.
16707 * tbl/table.c (class empty_entry): New class.
16708 (empty_entry::empty_entry, empty_entry::line_type): New functions.
16709 (table::add_entry): Represent empty entries by objects of type
16711 (table_entry::line_type): Return -1.
16712 (table::determine_row_type): Ignore entries with line_type 0.
16713 Treat type -1 as non-lines.
16715 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
16717 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16718 macros/tmac.s: Rename \(-d to \(Sd.
16720 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
16722 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16723 * xditview/libXdvi/DviChar.c: Likewise.
16724 * dvi/devdvi/texsy.map: Add `<<', `>>'.
16726 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
16728 * troff/div.c (top_level_diversion::begin_page): Call
16729 init_output() if the_output is 0.
16731 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
16733 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16735 (get_copy): Turn \E into ESCAPE_E.
16736 (token::process, asciify): Handle ESCAPE_E.
16738 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16740 (DS): Implement `.DS R'.
16742 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
16744 * macros/tmac.s (FS): New macro.
16746 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16748 * macros/tmac.s (cov*tl-init): Remove after first execution
16749 instead of aliasing to @nop. Call top of page macro explicitly
16750 instead of setting trap; call @init first. Set pg@top as top of
16752 (cov*auto-init): Deleted. Set cov*tl-init instead of
16753 cov*auto-init as top of page trap.
16754 (TL, LP): Do a break instead of calling cov*tl-init.
16755 (cov*print): With RP format but no TL, alias FS and FE to @FS and
16756 @FE; in this case also give a warning and always start another
16757 page. No need to set pg@top here.
16758 (cov*tl-init): Rename to cov*first-page-init.
16760 * macros/tmac.s (RP): Do `.pn 0'.
16761 (cov*tl-init): With RP format don't do `.pn 0'.
16763 * macros/tmac.s (pg@cs-top): Set no space mode.
16765 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16766 (cov*ab-init): Alias TL, AU and AI to these.
16768 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
16770 * macros/tmac.s (@EQ): Move the space before the equation into @EN
16771 (@EN): Do nothing unless \n[dl] is > 0.
16773 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
16775 * pic/object.c (ellipse_object::radius): New function.
16777 * VERSION: Change version to 0.7.
16779 * tbl/table.c (block_entry::do_divert): Declare return type as
16781 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16783 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
16785 * troff/column.c: New file.
16786 * troff/Makefile: Corresponding changes.
16788 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
16791 * troff/div.c (top_level_diversion::space): If the space causes
16792 the first-page transition and springs a trap, truncate the space
16795 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
16797 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16800 * pic/troff.c (troff_output::line_thickness,
16801 troff_output::set_fill): Do a horizontal motion to compensate for
16802 the width of the \D escape sequence.
16804 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
16806 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16809 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
16812 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16813 Supply empty definition.
16814 (text_entry::simple_print, simple_text_entry::simple_print):
16815 Delete declarations.
16816 (table::add_entry): Represent empty entries by objects of type
16819 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
16821 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16823 * tbl/table.c (left_text_entry::add_tab): New function.
16825 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
16826 initialize like LP.
16828 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
16830 * troff/env.c (environment::start_field): Give an error message if
16831 there is no next tab.
16833 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
16835 * troff/env.c (hyphenate): Skip initial elements with zero
16838 * macros/tmac.s (par@init): Keep VS in points rather than units.
16840 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
16842 * pic/main.c (main): Implement `-c' option.
16843 * pic/output.h: Declare make_tpic_output().
16844 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16846 (tpic_output): New class.
16847 (tpic_output::tpic_output, tpic_output::set_pen_size,
16848 tpic_output::command, make_tpic_output): New functions.
16850 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
16852 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
16853 if they're not already defined.
16854 * tbl/table.c (init_output): Don't test \n(.g.
16856 * troff/input.c (do_if_request): Delete `g' condition. Recognize
16857 `d', `r' and `c' conditions even in compatibility mode.
16859 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
16861 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16864 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
16866 * troff/env.h (environment::prev_line_interrupted): New member.
16867 (environment::get_prev_line_interrupted): New function.
16868 * troff/env.c (environment::newline): Set prev_line_interrupted.
16869 (environment::environment(const environment *),
16870 environment::environment(symbol)): Initialize
16871 prev_line_interrupted.
16872 * troff/input.c (process_input_stack): Don't give special
16873 treatment to space and newline at the beginning of the line if the
16874 previous line was interrupted.
16876 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
16878 * eqn/eqn.y: Disallow PRIME by itself.
16879 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16881 (def_table): Remove definition of '. Define prime to be `.
16883 * eqn/eqn.y: Split off part of rule `script' into a new rule
16886 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
16888 * macros/tmac.s ({, }): New string aliases.
16890 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
16892 * README-0.7: New file.
16894 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
16896 * macros/tmac.s: New file.
16897 * man/groff_ms.man: New file.
16898 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16899 * Makefile.bd: Similarily.
16900 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16901 definition of TMAC_S.
16902 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16903 * macros/TODO: New file.
16905 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
16907 * troff/env.c (right_justify): New function.
16908 (init_env_requests): Bind this to request "rj".
16909 (center_lines): Set right_justify_lines to 0. If we get a bad
16910 integer, center 1 line.
16911 (environment::environment(symbol), environment::environment(const
16912 environment *)): Initialize right_justify_lines.
16913 (environment::get_right_justify_lines): New function.
16914 (init_env_requests): Bind this to number_register ".rj".
16916 * troff/env.c (environment::choose_breakpoint): Implement
16917 hyphenation_margin and hyphenation_space.
16918 (environment::get_hyphenation_space,
16919 environment::get_hyphenation_margin): New functions.
16920 (init_env_requests): Bind these to .hys and .hym.
16921 (hyphenation_space_request, hyphenation_margin_request): New
16923 (init_env_requests): Bind these to hys and hym.
16924 (environment::environment(symbol), environment::environment(const
16925 environment *)): Initialize hyphenation_margin and
16927 * troff/env.h: Corresponding changes to class environment.
16929 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
16931 * troff/div.c (blank_line): Always do a break.
16933 * eqn/box.c (do_text): Turn off escapes while appending text to
16936 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
16938 * troff/input.c (while_break_request, while_continue_request): New
16940 (init_input_requests): Bind these to "break" and "continue".
16941 (while_depth, while_break_flag): New variables.
16942 (while_request): Update while_depth. Break out of loop if
16943 while_break_flag is set.
16945 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
16947 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16950 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
16952 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
16954 * stringify: New file.
16955 * Makefile (groff.o): Use stringify.
16957 * xditview/tmac.X: Remove definition of \(rn.
16958 * xditview/libXdvi/DviChar.c: Remove radicalex from
16961 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
16963 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16964 (alphabetic_block_entry::alphabetic_block_entry,
16965 alphabetic_block_entry::divert, alphabetic_block_entry::print):
16967 (block_entry::divert): Split off body into ...
16968 (block_entry::do_divert): If the block is alphabetic, subtract 2n
16969 from the line length; also update the span width to dl+2n, and the
16970 alphabetic span width to dl.
16972 * driver/input.c (do_file): While reading argument to D command,
16973 when expanding buffer, multiply szp by sizeof(int) rather than 2
16974 in the argument to memcpy.
16976 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16977 width of alphabetic columns.
16979 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
16981 * troff/node.c (lookup_family): Supply second argument to lookup.
16983 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16984 search, return immediately if v is 0.
16986 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16987 (troff_output::start_picture): Set this reg.
16988 (troff_output::end_picture): Remove this reg
16989 * eqn/box.c (box::extra_space): Don't produce `\x's if
16990 EQN_NO_EXTRA_SPACE_REG is defined.
16992 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16993 * eqn/text.c (split_text): Map ' to \(fm when it's the first
16996 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
16998 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
17001 * troff/div.c (top_level_diversion::top_level_diversion):
17002 Initialize page_number to 0.
17004 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
17006 * groff/troff (environment::environment(const environment *)):
17007 Initialize name to e->name, rather than "anonymous".
17009 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
17011 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
17012 requested_page. Split middle part into ...
17013 (FindPage): New function.
17014 (SetValues): If we don't yet know the last page, and the requested
17015 page is greater than the current page, call FindPage.
17016 Update the font_map_string before doing this.
17018 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
17019 Translate \(lh and \(rh into left and right double arrows.
17021 * troff/node.c (class hyphen_inhibitor_node): New class.
17022 (hyphen_inhibitor_node::hyphen_inhibitor_node,
17023 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
17024 hyphen_inhibitor_node::type,
17025 hyphen_inhibitor_node::get_hyphenation_type): New functions.
17026 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
17027 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
17030 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
17032 * troff/node.h (dummy_node::get_hyphenation_type,
17033 transparent_dummy_node::get_hyphenation_type): Declare them.
17034 * troff/node.c: (dummy_node::get_hyphenation_type,
17035 transparent_dummy_node::get_hyphenation_type): New functions.
17037 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
17039 * xditview/libXdvi/draw.c: If M_PI not defined after including
17040 math.h, then define it.
17042 * xditview/Makefile: Add definition of AR. Pass it to the submake
17044 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
17046 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
17048 * troff/dictionary.h (object_dictionary::alias): Declare return
17050 * troff/dictionary.c (object_dictionary::alias): Return non-zero
17051 if the old name was defined.
17052 * troff/input.c (alias_macro): Give a warning if the old name was
17054 * troff/reg.c (alias_reg): Likewise.
17056 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
17058 * troff/input.c (token::next): Delete implementation of \R.
17060 * macros/Makefile: Strip comments from tmac.e while installing it.
17062 * troff/input.c: New variable `nroff_mode'.
17063 (troff_request, nroff_request): New functions.
17064 (init_input_requests): Bind `troff' and `nroff' to troff_request
17066 (do_if_request): Compute results of t and n conditions from
17069 * text/text.c (split_text): Fix typo in >=.
17071 * eqn/lex.c: Add definition of `==' to def_table.
17073 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
17075 * pic/tex.c (tex_output::start_picture): Change the definitions of
17076 \graph and \graphtemp so that they work properly with Plain TeX.
17078 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
17079 argument to `ar' is not less than the first.
17081 * pic/pic.y: Allow a comma between elements of the variable list
17082 in the argument to `reset'.
17084 * pic/object.c (arc_object::arc_object): Fix computation of
17087 * eqn/main.c (main): Add exit(0).
17089 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
17091 * troff/div.c (begin_page): Test no_space_mode after doing the
17092 break, but still push the page ejector cookie before doing the
17093 break. Also set the next page number after doing the break.
17095 * xditview/xditview.c (NewFile): Don't set the title and icon name
17096 if this is the first file and its name is `-'.
17097 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
17098 the X75 and X100 devices.
17099 (main): If a device has the XT_OPTION flag set and there's exactly
17100 one file argument, pass the driver -xrm and -title options to set
17101 the icon name and window title to the name of the file.
17103 * troff/env.c (environment_switch): If there was an argument but
17104 it wasn't a valid number or name, then pop an environment but
17105 don't give an error message on underflow.
17107 * troff/number.c (start_number): Correct spelling in error message.
17109 * troff/input.c (token::delimiter): Don't print an error message
17112 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
17113 ParseDrawFunction if dw->display_enable is true.
17115 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
17117 * pic/pic.y: Parse text positioning like normal attributes, so as
17118 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
17119 positioning attribute.
17121 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
17123 * tbl/main.c (process_data): When in state START while reading a
17124 text block, don't change to state MIDDLE if c is a newline.
17126 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
17128 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
17129 so as to avoid shadowing parameter.
17131 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
17133 * tbl/table.c (trim_space): Deleted.
17134 (table::add_entry): Don't call trim_space.
17136 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
17138 * VERSION: Change version to 0.6.
17140 * troff/number.c (parse_expr): Make == work.
17142 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
17144 * man/grog.man: New file.
17145 * man/Makefile: Add grog.n to MAN1PAGES.
17146 * etc/grog.sh: New file.
17147 * etc/Makefile: Install grog.sh as grog.
17149 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
17151 * troff/input.c (token::next): Implement \E.
17153 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
17155 * xditview/tmac.X: Change font translations to match tmac.ps.
17157 * troff/input.c (non_empty_name_warning): Don't give a warning if
17158 `\{' terminates the name.
17160 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
17162 * ps/devps/symbol.diff: New file.
17163 * ps/devps/FontMakefile: Mention symbol.diff.
17165 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
17167 * troff/node.c (font_position): Use get_long_name to read the
17170 * troff/env.c (environment_switch): If we get a number that's < 0
17171 or >= NENVIRONMENTS, treat it like a name.
17172 Change NENVIRONMENTS to 10.
17174 * troff/groff.h: Remove definition of FONTS_MAX.
17175 * troff/node.h (class font_family): Make map a pointer instead of
17176 an array. Add a map_size member. Make it a class. Make nm const
17177 and public. Make invalidate_fontno a friend.
17178 * troff/node.c: Define font_table_size. Make font_info a pointer
17179 rather than an array.
17180 (class troff_output_file): Allocate font_position dynamically. Add
17181 nfont_positions member.
17182 (troff_output_file::set_font): Grow font_position if necessary.
17183 (troff_output_file::~troff_output_file): Delete font_position.
17184 (troff_output_file::troff_output_file): Allocate font_position.
17185 (grow_font_table): New function.
17186 (troff_output_file::really_begin_page,
17187 troff_output_file:really_copy_page): Use nfont_positions rather
17189 (mount_font_no_translate, mount_style): Call grow_font_table if
17191 (font_family::font_family): Allocate map.
17192 (font_family::make_definite): Grow map if necessary. Use
17193 font_table_size instead of FONTS_MAX.
17194 (font_family::~font_family): New function.
17195 (invalidate_fontno): Use font_family::map_size.
17196 (get_fontno, env_space_width, env_half_narrow_space_width,
17197 env_narrow_space_width, symbol_fotno, is_good_fontno,
17198 get_bold_fontno, make_glyph_node): Use font_table_size rather than
17200 (next_available_font_position): Never return 0.
17202 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
17204 * ps/tmac.ps: Add font translations for compatibility with dpost.
17206 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
17208 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
17209 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
17210 Move definitions baseline_sep, shift_down, column_sep,
17211 matrix_side_sep into...
17212 * eqn/box.c: Add them to param_table.
17213 * eqn/pbox.h: Add declarations to pbox.h.
17215 * troff/input.c (set_string): Cast value to unsigned char *.
17217 * troff/token.h (process_input_stack): Declare it static before
17218 declaring it a friend.
17220 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
17222 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
17224 * dvi/devdvi/EX: Regenerate.
17226 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
17229 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
17231 * eqn/lex.c: In defaults_table, make definition of `dot' call
17232 `dot_def'. Don't explicitly make it roman. Similarily for other
17235 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
17237 (for_input::get, for_input::peek): Use this.
17238 (do_for): Add by_is_multiplicative argument.
17239 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
17240 Change semantic value of optional_by to be a double plus a flag
17241 saying whethet the by clause is multiplicative.
17243 * eqn/lex.c (get_delimited_text): Remember location of start of
17244 definition. Improve error handling when EOF is encountered.
17246 * lib/font.h: Rename handle_x_command to
17247 handle_unknown_font_command.
17248 * lib/font.c (font::load): Call handle_unknown_font_command for
17249 any unknown command in the font description file. Don't call
17250 handle_x_command. Include the name of the command in the argv.
17251 Improve message for unknown command after kernpairs or charset
17253 * ps/ps.c (ps_font::handle_x_command): Rename to
17254 handle_unknown_font_command. Remove message about `x download'
17255 command. Give error message for wrong number of arguments.
17256 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
17257 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
17258 handle_unknown_font_command. Give an error message for wrong
17259 number of arguments. Rename design_size to designsize.
17260 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
17261 checksum', `designsize' instead of `design_size'.
17263 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
17265 * eqn/*.[chy]: Change underaccent to uaccent.
17267 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
17268 give it the same precedence as ACCENT.
17269 * eqn/other.c (make_underaccent_box): New function.
17270 * eqn/box.h: Declare it.
17271 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17274 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
17276 * pic/pic.y (reset_all): New function. Called in rule for RESET.
17277 (parse_init): Call reset_all.
17278 (define_variable): When defining scale reset only those
17279 pre-defined variables that are scaled.
17280 (defaults_table): Add `scale' as non-scaled value.
17282 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17283 together with the text; allow any number of positioning words;
17284 allow center as a positioning word.
17286 * pic/object.c (output::compute_scale): Get picture maximum height
17287 and width from variables called maxpswid and maxpsht.
17288 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17290 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
17292 * pic/object.c (object_spec::make_text): Multiply textht by number
17295 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17297 (do_sprintf): New function.
17298 (pic.gperf): Add sprintf token.
17299 (text, sprintf): New rules.
17301 * pic/pic.y: `rand()' with no arguments returns a random number
17302 in the range [0,1).
17304 * pic/pic.y: Allow a bare expression to be an attribute: change
17305 precedences to support this. Change optional_ordinal rule to
17306 optional_ordinal_last to avoid reduce/reduce conflict.
17307 * pic/object.c (object_spec::object_spec): Initialize direction.
17309 * pic/pic.y: Implement ^ operator meaning exponentiation.
17311 * troff/node.h: Add default argument to mount_font.
17312 * troff/node.c (font_position): Read an optional third argument
17313 giving the external_name.
17314 (mount_font): Add optional argument giving the external_name.
17315 (mount_font_not_translate): Have additional argument giving
17316 external name. Use this name to load the font. Pass both names
17317 to font_info::font_info.
17318 (font_info::font_info): Have additional argument giving
17320 (class tfont): New member external_name.
17321 (font_info::get_tfont): Use external name to construct tfont_spec.
17323 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
17325 * eqn/lex.c (init_table): Add argument giving device. Define
17326 name of device to be "1".
17327 (do_ifdef): Counts as true if the argument has been defined with
17329 * eqn/main.c (main): Call init_table with device argument. Make
17330 device local to main.
17331 * eqn/eqn.h: Change declaration of init_table. Remove declaration
17334 * pic/lex.c (get_delimited): Allow text to be delimited by
17335 matching {}s. Don't recognize ending delimiter within a string.
17337 * troff/input.c (get_delim_name): New function.
17338 (token::next): Implement \C.
17340 * lib/font.c (font::load): Grok ---. Add an alias for each
17341 character based on its code.
17342 (font::get_code_width): Deleted.
17343 * lib/font.h (class font): Declare font::number_to_index().
17344 Remove declaration of font::get_code_width.
17345 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17346 to indices of named characters.
17347 (font::number_to_index): New function.
17348 * troff/input.c (font::number_to_index): New function.
17349 (get_charinfo_by_number, charinfo::get_number,
17350 charinfo::set_number): New functions.
17351 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17352 (token::process, token::description, token::get_char,
17353 token::add_to_node_list, token::operator==): Handle
17354 TOKEN_NUMBERED_CHAR.
17355 * troff/charinfo.h: Declare get_charinfo_by_number,
17356 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
17358 (charinfo::numbered): New function.
17359 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17360 * troff/env.h (class environment): Remove declaration of ...
17361 * troff/env.c (environment::make_numbered_char_node): Deleted.
17362 * troff/node.c (make_numbered_node): Deleted.
17363 (class numbered_glyph_node): Remove.
17364 (troff_output_file::put_char_width, troff_output_file::put_char):
17365 Handle numbered chars.
17366 (troff_output_file::numbered_char): Removed.
17367 (tfont::get_code_width): Removed.
17368 (make_glyph_node): Don't search special fonts for numbered
17370 * troff/node.h: Remove declaration of make_numbered_node.
17371 * driver/input.c (do_file): Handle N command.
17372 * driver/printer.h: Add declaration of ...
17373 * driver/printer.c (printer::set_numbered_char): New function.
17374 * dvi/tfmtodit.c (main): Generate unnamed entries.
17375 * ps/devps/afmtodit: Likewise.
17376 * xditview/xtotroff.c (MapFont): Likewise.
17377 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17379 * tbl/main.c (process_format): If multiple widths are specified
17380 for a column but all the widths are the same, don't give an error
17383 * tbl/table.c (table::do_row): If the current row is all lines and
17384 the stuff doesn't contains a line, mark the top of the row after
17385 printing stuff before the row. If the current row is not all
17386 lines and the stuff doesn't contain a line, don't unnecessarily
17387 mark the top of the row before printing the stuff.
17389 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
17391 * troff/groff.h: Remove MAX_PATH.
17392 * troff/input.c (open_file): Dynamically allocate space for the
17394 (open_mac_file, process_macro_file): Corresponding changes.
17396 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
17398 * troff/node.h (class output_file): Make copy_file pure. Add
17399 vspace method ifdef COLUMN. Add is_printing method.
17400 * troff/node.c: Add class printing_reg. Add class
17401 real_output_file. Derive other output_file classes from
17402 real_output_file; in these classes rename begin_page to
17403 really_begin_page, print_line to really_print_line, copy_file to
17404 really_copy_file, transparent_char to really_transparent_char.
17405 Move output_file::flush to real_output_file. Add printing member
17406 to class output_file.
17407 * troff/div.h: Remove printing member from top_level_diversion.
17408 Add vspace member function to class diversion ifdef COLUMN. Add
17409 some declarations ifdef COLUMN.
17410 * troff/div.c (top_level_diversion::copy_file,
17411 top_level_diversion::transparent_output,
17412 top_level_diversion::output): Don't test printing member before
17414 * troff/input.c: Handle initial variable_space_request ifdef
17416 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17417 but comment it out.
17419 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
17421 * troff/div.c (diversion::need): Make any space forced. If we
17422 sprung a trap, set truncated_space to minus the distance to the
17423 trap and set needed_space to the amount that was needed.
17424 (top_level_diversion::space): A forced space turns no_space_mode
17426 (class constant_vunits_reg): New class.
17427 (init_div_requests): Implement number registers .trunc and .ne
17428 using constant_vunits_reg.
17429 (class truncated_space_reg): Deleted.
17431 * troff/div.h: Don't have a no_space_mode member in diversion.
17432 Instead have it in top_level_diversion.
17433 * troff/div.c (diversion::diversion): Don't initialize
17435 (top_level_diversion::top_level_diversion): Initialize
17437 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17438 (macro_diversion::output): Don't clear no_space_mode.
17440 * troff/input.c (diverted_space_node::reread): Don't call
17441 environment::do_break. In fill mode, act like a blank line.
17442 (diverted_copy_file_node::reread): Don't call
17443 environment::do_break.
17445 * troff/div.c (blank_line): New function.
17446 * troff/div.h: Declare it.
17447 * troff/input.c (process_input_stack): Call it.
17449 * troff/div.c (truncated_space_reg::get_string): New function.
17450 (init_div_requests): Bind to .trunc.
17451 (space_request, top_level_diversion::space,
17452 top_level_diversion::output, macro_diversion::space,
17453 macro_diversion::output): Update truncated_space.
17454 (macro_diversion::output): Redo calculations when trap sprung.
17455 (macro_diversion::output, macro_diversion::space): No need for
17458 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17459 after truncating post line spacing.
17461 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
17463 * ps/devps/prologue (MF, SF): Make them work even if setfont is
17464 defined as a procedure rather than as an operator.
17466 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
17468 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17470 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
17472 * troff/div.c (top_level_diversion::output): Merge
17473 output_file::print_line and output_file::end_of_line member
17475 * troff/div.h (class output_file):
17476 * troff/node.c (troff_output_file::print_line,
17477 troff_output_file::end_of_line, output_file::end_of_line,
17478 ascii_output_file::print_line, suppress_output_file::print_line):
17479 Corresponding changes.
17481 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
17483 * troff/input.c (token::next): Don't give a warning for `\.'.
17485 * troff/env.c (environment::get_center_lines): New function.
17486 (init_env_requests): Bind number register .ce to it.
17487 * troff/env.h: Declare it.
17488 * tbl/table.c (table::init_output): Define reset macro to restore
17489 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
17491 (table::print): If center option not given, then imply center
17492 option if SAVED_CENTER_REG > 0.
17494 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
17496 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17497 Troff.ps from DOWNLOAD.
17499 * troff/Makefile: Change comment in DEFINES to avoid confusing
17502 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17503 code. Don't try to catch errors with stopped.
17504 (check_line_lengths): New function.
17505 * ps/devps/prologue (EXEC): Deleted.
17506 (EBEGIN, EEND): New procedures.
17508 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
17510 * troff/input.c: Include request.h before node.h.
17511 * troff/node.c: Likewise.
17512 * troff/env.c: Likewise.
17513 * troff/div.c: Likewise.
17514 * troff/node.h (class special_node): Store argument as a macro
17515 rather than a char *.
17516 * troff/node.c (special_node::special_node, special_node::copy):
17518 (special_node::~special_node): Deleted.
17519 (special_node::tprint): Deleted.
17520 (special_node::tprint_start, special_node::tprint_end,
17521 special_node::tprint_char): New functions.
17522 (troff_output_file::special): Deleted.
17523 (troff_output_file::start_special, troff_output_file::end_special,
17524 troff_output_file::special_char): New functions.
17525 * troff/input.c (special_node::tprint): New function.
17526 (do_special): Use macro not char *.
17527 (do_transparent_macro): Deleted.
17528 (token::next): Don't call do_transparent_macro.
17530 * troff/input.c (token::next): Add 'Y' case.
17531 (do_transparent_macro): New function.
17532 * troff/node.c (troff_output_file::special): Handle newlines with
17533 argument using new continuation convention.
17534 * driver/input.c (get_string): Cope with continuation convention.
17535 (do_file): Don't call skip_line after calling get_string(1).
17536 * ps/ps.c (ps_printer::special, ps_printer::do_import,
17537 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17539 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17542 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
17544 * troff/input.c (asciify): By default, illegal input characters
17545 should return empty string.
17547 * troff/input.c (copy_file): Handle first page transition like title.
17548 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17550 * troff/input.c (token::next): Improve error message for EOF after
17552 (input_char_description): New function.
17553 (get_char_for_escape_name): Use input_char_description.
17554 (token::next): Warn about unrecognized escape sequences.
17555 (warning_table): Add WARN_ESCAPE.
17556 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17559 * troff/token.h: Remove declaration of process_input_stack.
17561 * troff/input.c: Remove declaration of init_hyphen_requests.
17562 * troff/request.h: Correct spelling in declaration of same.
17564 * troff/input.c (token::next): Check whether escape_char is 0.
17566 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
17568 * groff.c (main, usage, help): Implement -P and -L options.
17569 * groff.sh: Likewise.
17571 * troff/input.c (token::next): Use some gotos to avoid code
17574 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17575 Avoid calling symbol::symbol if name empty.
17577 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
17579 * troff/input.c (init_input_requests): Make \n(.x return the major
17580 version number and \n(.y return the minor version number.
17581 * troff/Makefile: Construct file majorminor.c defining
17582 major_version and minor_version automatically from ../VERSION.
17584 * troff/node.c (class glyph_node): Make operator new and operator
17586 (class ligature_node): Similarily.
17588 * troff/input.c (operator==(const macro &, const macro &)): New
17590 (non_interpreted_node::same): Use this.
17591 (string_iterator::string_iterator): Make macro& argument const.
17593 * troff/input.c (input_iterator::get): New function. Don't make
17594 asciify_macro or class non_interpreted_node friends of class
17596 (non_interpreted_node::interpret): Use input_iterator::get.
17597 (asciify_macro): Likewise.
17599 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17600 ~non_interpreted_node): Deleted.
17601 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17604 * troff/symbol.h: Make all symbol member functions const.
17606 * lib/strtol.c: New file.
17607 * lib/Makefile: Add strtol.c.
17608 * Makefile: Define STRTOL as strtol.o to include strtol in
17611 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
17613 * pic/troff.c (troff_output::simple_circle): Divide by scale.
17615 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
17617 * troff/input.c (do_special): Use input_level.
17619 * troff/token.h (TOKEN_BACKSPACE): New token.
17620 (token::backspace): New function.
17621 * troff/input.c (token::description, token::next, token::process):
17622 Grok TOKEN_BACKSPACE.
17623 (do_special): Turn TOKEN_BACKSPACE back into \b.
17625 * troff/token.h (token::leader): New function.
17626 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17628 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17630 * troff/input.c (do_special): Use token::description in error
17633 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
17635 * troff/input.c (decode_args): Combine quoted and
17636 quote_input_level variables. Make it a for (;;) loop.
17638 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17640 * troff/input.c (read_long_escape_name): The test for whether to
17641 expand buffer was off by 1.
17642 (read_string): Similarily.
17644 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
17646 * troff/input.c: Use `const int' rather than `static const int'.
17648 * troff/div.h (diversion::copy_file): Declare as pure virtual.
17649 (macro_diversion::copy_file): New function.
17650 * troff/node.h: New class diverted_copy_file_node.
17651 * troff/node.c: Implement it.
17652 * troff/input.c (copy_file): Use diversion::copy_file. Handle
17653 first page transition by pushing a diverted_copy_file_node.
17654 * troff/input.c (token::next, process_input_stack): Don't handle
17657 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
17659 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17660 whether space widths need adjusting.
17662 * troff/charinfo.h: Generalize translated_to_space to
17663 special_translation so as to allow translation to \&.
17664 * troff/input.c (translate): Allow translation to \&.
17665 (charinfo::*): Corresponding changes.
17666 * troff/node.c (make_node, node::add_char): Corresponding changes.
17667 * troff/node.h (dummy_node::dummy_node): Allow optional first
17670 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17671 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17673 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17674 TOKEN_REQUEST with an argument of TITLE_REQUEST.
17675 (token::process): Grok that.
17676 * troff/input.c (copy_file): Handle first page transition like
17677 title by pushing a COPY_FILE_REQUEST cookie.
17678 (token::next, process_input_stack): Grok that.
17679 * troff/node.h (output_file::copy_file): Add x and y arguments.
17681 * troff/div.c (top_level_diversion::copy_file): Supply them.
17682 * troff/node.c (troff_output_file::copy_file): Add x and y
17683 arguments; moveto specified position. Invalidate font_position
17684 array after copying file.
17685 (output_file::copy_file): New function.
17686 (suppressed_output_file::copy_file, ascii_output::copy_file):
17688 * troff/input.c (transparent_file): New function.
17689 (init_input_requests): Bind to "trf".
17690 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17691 (process_input_stack): Likewise.
17693 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17695 * troff/node.c (init_node_requests): New number registers .kern
17696 pointing to global_kern_mode, and .lg pointing to
17697 global_ligature_mode.
17699 * troff/node.c (ligature): Don't change it if we get a bad
17702 * troff/input.c (do_define_string): Don't strip tabs.
17704 * troff/input.c (asciify_macro): Make the string_iterator auto.
17706 * troff/node.c (init_font_requests): Rename to...
17707 (init_node_requests):
17708 * troff/node.h: Change declaration.
17709 * troff/input.c (main): Change call.
17711 * troff/input.c (node::reread, diverted_space_node::reread): New
17713 (process_input_stack): Call reread rather than
17714 get_diverted_space_node.
17715 * troff/node.c (node::get_diverted_space_node,
17716 diverted_space_node::get_diverted_space_node): Removed.
17717 * troff/node.h: Declare reread methods instead of
17718 get_diverted_space_node methods. Make `n' member private.
17719 * troff/input.c: (token::diverted_space): Removed.
17720 * troff/token.h: Removed declaration.
17723 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
17725 * eqn/script.c (script_box::compute_metrics): Don't let
17726 SUP_RAISE_FORMAT become negative.
17728 * tbl/table.c (table::do_row): Entries that don't end in the
17729 this row shouldn't make the row non-blank.
17731 * tbl/table.c (table::make_columns_equal): Only set the width of
17732 columns which are marked as equal.
17734 * tbl/main.c (process_data): Before issuing excess data error,
17735 if last character was a newline unget it; then get it again after
17736 the error. Also include the contents of the entry in the message.
17738 * groff.c: New file.
17739 * Makefile: Build groff from groff.c. Make it possible to use
17740 either groff.sh or groff.c as groff.
17741 * Makefile.bd: Similarily.
17743 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
17745 * groff.sh: Don't delay expansion of $@ in assignment to files.
17746 Remove occurrences of \".
17748 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
17750 * all Makefiles: Simplify and rearrange.
17752 * Makefile: Handle fmod like malloc.
17753 * lib/Makefile: Similarily.
17754 * lib/fmod.c: Remove #ifdef NEED_FMOD.
17756 * Makefile: Rename OPTIMISE to OPTIMIZE.
17758 * groff.sh: Remove assignment to PATH.
17759 * Makefile: Remove SHPATH variable.
17760 * Makefile.bd: Similarily.
17762 * groff.sh: Add -V option to print the pipeline instead of
17765 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
17767 * lib/font.c: Split off file searching into ...
17768 * lib/fontfile.c: New file.
17770 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17772 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
17774 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17775 Also change misleading comment.
17776 (table::do_vspan): Change similarily misleading comment.
17777 * tbl/main.c (process_data): A format row with an explicit `s'
17778 uses up a data line, even if all the other columns are `_' or `='.
17780 * troff/input.c (token::description): Fix description of
17781 TOKEN_DUMMY and TOKEN_EMPTY.
17783 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
17785 * groff.sh: Fix description of -Z in help message.
17787 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
17789 * pic/object.c (object_spec::make_object): Allow negative and zero
17791 * pic/pic.y: Give linethick default value of -1.0.
17792 * pic/troff.c (troff_output::troff_output): Initialize
17793 last_line_thickness to BAD_THICKNESS.
17794 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17795 (troff_output::line_thickness): Canonicalize negative thicknesses
17796 to RELATIVE_THICKNESS.
17797 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17798 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17800 (tex_output::start_picture): Set pen_size to -2.0.
17802 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17803 0, then use 0 linewidth.
17804 (ps_printer::ps_printer): Initialize line_thickness to -1.
17806 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17808 * ps/devps/symbolchars: Remove `or'.
17809 * ps/tmac.ps: Implement \(or with .char.
17811 * ps/devps/symbolchars: Move most characters into textmap.
17812 * ps/devps/textmap: Add names for troff bracket characters. Remove
17815 * ps/devps/TSymbol.ps: Removed.
17816 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17817 * ps/tmac.ps: Do with .char what TSymbol did.
17818 * ps/devps/download: Remove TSymbol.
17820 * ps/devps/T: Removed.
17821 * ps/devps/Troff.ps: Removed.
17822 * ps/devps/Troff.afm: Removed.
17823 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17824 * ps/devps/download: Remove Troff.
17825 * ps/devps/FontMakefile: Remove T target.
17826 * ps/devps/DESC-A4: Remove T from font list.
17827 * ps/devps/DESC-letter: Likewise.
17829 * troff/input.c (macro_to_node): Rename to ...
17830 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
17831 character's definition while processing it.
17832 * troff/node.c (node::add_char, make_node): Change calls to
17833 macro_to_node accordingly.
17835 * troff/input.c (token::next): Translate \_ to \(ul.
17837 * tty/devascii/R.proto: Add `|'.
17838 * tty/devlatin1/R.proto: Likewise.
17840 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
17842 * man: Put the version number in all the man pages.
17844 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
17846 * Makefile.bd: New file.
17847 * README.bd: New file.
17849 * VERSION: New file.
17850 * lib/version.c: Removed.
17851 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17854 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17855 environment variable.
17857 * all Makefiles: Split install target into install.bin for
17858 binaries, and install.nobin for everything else.
17859 * Makefile: Add bindist target.
17861 * man/afmtodit.man: New file.
17862 * man/Makefile: Add afmtodit.n to MAN1PAGES.
17863 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17865 * ps/Makefile: Pass BINDIR to make install in devps.
17867 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17868 the space character.
17870 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17872 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
17874 * ps/ps.c: Redo font downloading.
17875 * ps/devps/download: New file.
17876 * ps/devps/Makefile: Add download to DEVICEFILES.
17877 * ps/devps/afmtodit: Remove -d option.
17878 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17879 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17880 * ps/devps/zapfdr.ps: Likewise.
17881 * ps/devps/TSymbol.ps: Likewise.
17883 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
17885 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17887 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
17889 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17890 then strip the first line if it starts with %.
17891 * Makefile: Add a comment about this.
17893 * man/tfmtodit.man: New file.
17894 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17895 * dvi/Makefile: Install tfmtodit in BINDIR.
17897 * dvi/tfmtodit.c (usage): Mention -v option.
17899 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
17901 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17902 * troff/node.c (troff_output_file::transparent_char): Don't call
17905 * eqn: Add check_tabs method to most box classes.
17906 * eqn/box.c (box::top_level): Call check_tabs.
17908 * eqn/script.c (script_box::output): Use \Z.
17909 * eqn/limit.c (limit_box::output): Use \Z.
17911 * eqn/box.c (box::top_level): Use itoa.
17913 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
17915 * dvi/tmac.dvi: Add font translations for CR, C, TT.
17916 * dvi/devdvi/Makefile: Don't make links to CW.
17918 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17920 * xditview/tmac.X: Likewise.
17922 * troff/node.c: Add font translation feature.
17923 (get_font_translation): New function.
17924 (symbol_fontno): Translate the font name.
17925 (mount_font_no_translate): Rename to mount_font to this.
17926 (mount_font): New function.
17927 (font_family::make_definite): Call mount_font_no_translate instead
17929 (mount_style): Translate the font name.
17930 (font_translate): New function.
17931 (init_font_requests): Bind "ftr" to font_translate.
17933 * ps/devps/prologue (SN): New procedure that rounds a position to
17934 the nearest (pixel + (.25,.25)).
17935 (DL): Use SN to round endpoints.
17937 * lib/version.c: Changed version to 0.5.
17939 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
17941 * Makefile: Move definition of PAGE to the very beginning, so that
17942 people are less likely to miss it.
17944 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
17946 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17948 * troff/env.c (environment::choose_breakpoint): Make `can't find
17949 breakpoint' error a warning of type WARN_BREAK. Change message to
17950 `can't break line'.
17951 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17953 * troff/input.c: Add WARN_BREAK to warning_table. Include
17954 WARN_BREAK in DEFAULT_WARNING_MASK.
17956 * tty/tmac.tty: Add definition of \(+-.
17958 * groff.sh: Remove `--' option to set command.
17960 * dvi/devdvi/texsy.map: Remove duplicate md entry.
17962 * ps/devps/eqnchar: Better definition of cdot using md.
17963 * dvi/devdvi/eqnchar: Likewise.
17964 * xditview/devX100/eqnchar: Likewise.
17965 * xditview/devX75/eqnchar: Likewise.
17966 * eqn/lex.c: Add definition of cdot.
17968 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
17970 * troff/input.c (get_optional_char): New function.
17971 * troff/input.c (set_page_character): Use get_optional_char(),
17972 rather than has_arg() and tok.get_char(1).
17973 * troff/env.c (tab_character, leader_character, hyphen_char,
17974 field_characters): Likewise.
17975 (margin_character): Likewise. Also always delete the
17976 margin_character_node.
17978 * troff/input.c (token::get_char): Use token::description.
17980 * troff/input.c (has_arg): Don't skip over tab and \}.
17981 * troff/number.c (start_number): Give a warning if the number
17982 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17984 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
17986 * troff/input.c (empty_name_warning, non_empty_name_warning): New
17988 (get_name, get_long_name): Use these. Rename `warn' argument to
17991 * troff/node.c (get_fontno): Test that the symbol is not null.
17993 * troff/input.c (token::description): New function.
17994 * troff/number.c (parse_term): Use token::description in `numeric
17995 expression expected' message.
17996 * troff/groff.h: Add WARN_MISSING.
17997 * troff/number.c (start_number): New function.
17998 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17999 get_incr_number): Use start_number().
18000 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
18002 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
18003 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
18005 * troff/input.c (token::get_char): Use WARN_MISSING.
18006 * troff/input.c (token::delimiter): Use token::description.
18007 * troff/env.c (environment_switch): Back out Aug 3 change.
18008 * troff/input.c (has_arg): Skip over \}s and tabs but give a
18010 * troff/token.h (token::tab): New function.
18011 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
18012 * troff/reg.c (alter_format): Likewise.
18013 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
18015 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
18017 * troff (most files): Redo warnings. Divide warnings into various
18018 categories; warning() has an additional first argument indicating
18019 the category it falls into.
18020 * troff/input.c (main): -w now takes an argument. New option -W.
18021 (enable_warning, disable_warning): New functions.
18023 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
18024 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
18026 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
18028 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
18029 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
18030 * xditview/devX75/eqnchar: Likewise.
18031 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
18033 * eqn/other.c: When bar or over applies to a single character
18034 don't produce an overline_box or an underline_box. Instead produce
18035 an accent_box or an underaccent_box, with the accent a line
18036 whose width is accent_width. New classes underaccent_box,
18037 overline_char_box and underline_char_box.
18038 * eqn/box.h: Move overline_box, underline_box, accent_box class
18039 declarations into eqn/other.c. Add declarations of
18040 make_underline_box, make_overline_box, make_accent_box.
18041 * eqn/eqn.y: Call make_overline_box, make_underline_box
18042 make_accent_box instead of constructors.
18043 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
18045 * eqn/other.c: Add accent_box::~accent_box.
18046 * eqn/box.h: Declare it.
18048 * groff.sh: With -Tps, use eqn -D.
18050 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
18052 (underline_box::output): Similarily.
18053 (accent_box::output): Use \Z.
18055 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
18058 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
18060 * troff/div.c (top_level_diversion::transparent_output(unsigned
18061 char)): Use asciify.
18062 * troff/input.c (asciify): Don't make it static.
18063 * troff/token.h (asciify): Declare it.
18065 * troff/input.c (get_name, get_long_name, token::get_char,
18066 token::delimiter): Add an extra default argument which says
18067 whether a warning should be printed.
18068 * troff: Pass a non-zero argument to one of these rather than
18069 printing a warning directly.
18071 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
18073 * troff: Consistently use symbol::is_null.
18075 * troff/dictionary.h: Move some inline functions into
18078 * troff/request.h: Move inline functions into input.c.
18079 (request_or_macro::invoke): Make it pure.
18081 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
18082 * troff/input.c (init_input_requests): Use class constant_int_reg.
18083 (class compatible_reg): Deleted.
18084 * troff/div.c (init_div_requests): Use class constant_int_reg.
18085 (class last_post_line_extra_space_reg): Deleted.
18087 * troff/env.c (tab_character): Don't change the tab character if
18088 we get an invalid argument.
18089 (hyphen_char): Similarily.
18091 * troff/reg.c (alter_format): Check that nm is not null.
18093 * Makefile, groff.sh: Make it possible to customize the commands
18094 used for printing PostScript and dvi files. Also make it possible
18095 to customize the path used by groff.sh.
18097 * eqn/eqn.y: Make `left' right associative.
18099 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
18101 * pic/pic.h: Added definition of M_SQRT2 for those systems that
18104 * pic/pic.h: Removed definition of INT_MAX.
18106 * troff/node.c (italic_corrected_node::vertical_extent): Omit
18109 * troff/input.c (token::next): Handle \R like \n.
18111 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
18113 * ps/tmac.pc (PSPIC): Simplify.
18115 * troff/env.c (tab_stops::to_string):
18116 * pic/pic.y (object_type_name):
18117 * pic/troff.c (simple_output::line):
18118 * pic/tex.c (tex_output::spline):
18119 * pic/object.c (object_spec::make_object):
18120 * tbl/main.c (process_data): Add cases to switch statements to
18121 avoid cfront warnings. (Some of these are spurious, since the
18122 switch already has a default case.)
18124 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
18125 `ps-'. Don't test systat; instead check number of arguments to
18128 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
18130 * macros/tmac.e: Do not decrease the page offset by 0.5i.
18132 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
18133 Unlink the file as soon as we have opened it, so that we don't
18134 have to bother with signal handlers.
18135 (handler): Deleted.
18136 (fatal_error_exit): Deleted.
18137 (main): Don't call signal.
18139 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
18141 * dvi/devdvi/Makefile: Use the -k option with S and MI.
18143 * pic/pic.y: If there is a label, or an nth construction before
18144 the first `.' in the argument to `with', ignore it and generate a
18146 * pic/lex.c (lex_warning): New function.
18148 * tbl/table.c (table::init_output): In section keep and release
18149 macro, use 0 indent when diverting and the correct indent when
18152 * troff/input.c (interpolate_number_format): Do not interpolate
18153 anything if the number register is not defined.
18155 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
18157 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
18159 * ps/devps/prologue (PICTURE): Set components of graphics state to
18160 their default values.
18162 * ps/devps/text.enc: Add trademark
18163 * ps/devps/textmap: Add names for club, spade, heart, diamond,
18164 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
18165 * ps/devps/symbolchars: Add names for summation and product.
18167 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
18168 suchthat. Add pp. Add upper-case letters.
18170 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
18171 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
18174 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
18175 rA (right angle bracket) to ra. Introduce names for double-headed
18176 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
18177 * ps/devps/textmap: Likewise for ps device.
18178 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
18179 * tty/devascii/R.proto: Rename lA to la and rA to ra.
18180 * tty/devascii/R.proto: Likewise.
18181 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
18183 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
18185 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
18187 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
18190 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
18192 * troff/div.c (when_request): Use symbol::is_null rather than
18193 has_arg to determine whether we have an argument.
18194 (change_trap): Remove the trap if we get an invalid number. Give
18195 an error if we don't get at least the macro name.
18196 (diversion_trap): Remove trap if we get an invalid name or number.
18198 * troff/env.c (environment_switch): Pop if we get an invalid
18199 symbol or numeric expression.
18201 * troff/input.c (do_define_macro): If EOF is encoutered while
18202 defining the macro, do tok.next() before returning.
18204 * troff/token.h (has_arg): Move definition from here, to ...
18205 * troff/input.c (has_arg): ... here
18207 * troff/env.c (space_size): Do nothing if we get an invalid argument.
18208 * troff/input.c (shift): Likewise.
18210 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
18213 * pic/troff.c (troff_output::start_picture): Comment out calls to
18216 * eqn/main.c (do_file): Subtract 1 from current_lineno if
18217 interpret_lf_args succeeds.
18219 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
18220 \\. This avoids problems with \$N.
18222 * groff.sh: Pass -C to preprocessors.
18224 * lib/lf.c (interpret_lf_args): Be more flexible.
18226 * tbl/main.c (main): Add -C option.
18227 (table_input::get): Do not recognize TE if followed by character
18228 other than a space or newline unless -C option given.
18229 (process_input_file): Likewise for lf, TS.
18230 (process_data): Likewise for lf in text blocks.
18232 * eqn/main.c (main): Add -C option.
18233 (do_file): Don't recognize EQ, EN or lf if followed by character
18234 other than space or newline unless -C option given.
18235 * eqn/lex.c (file_input::read_line): Similarily.
18236 * eqn/eqn.h: Declare compatible_flag.
18238 * etc/soelim.c (main): Add -C option.
18239 (interpret_lf_args): Use version in libgroff.
18242 * pic/main.c (main): Add -C option, which sets compatible_flag.
18243 (top_input::get), (top_input::peek): If -C option not given,
18244 do not recognize .PS/.PE/.PF/.lf if followed by a character
18245 other than space or newline.
18246 * pic/lex.c (file_input::read_line): Similarily.
18247 * pic/pic.h: Add declaration of compatible_flag.
18249 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
18251 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
18253 * troff/node.c, troff/node.h: Add `asciify' methods to classes
18254 derived from node. New class space_char_hmotion_node.
18255 * troff/input.c (asciify_macro): New function.
18256 * troff/input.c (init_input_requests): New request `asciify' bound
18258 * macros/mm.diff: New file.
18259 * Makefile: In install.mm target use `patch' to apply
18262 * troff/input.c (macro::print_size): Just print the size in bytes.
18264 * troff/div.c (return_request): Correct the argument
18267 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
18269 * troff/node.h (class composite_node): Add sz member.
18270 * troff/node.c (composite_node::size): Return sz.
18271 * troff/input.c (macro_to_node): Use the initial size in the
18272 environment as the size of the composite_node.
18274 * troff/node.c (node::zero_width_tprint): Provide a reasonable
18277 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
18279 * troff/div.c (change_trap): If we get a bad number expression,
18282 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
18284 * lib/matherr.c (matherr): Define this only if math.h defines
18287 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
18289 * troff/div.c (macro_diversion::distance_to_next_trap): If there
18290 no diversion trap return vunits(INT_MAX - vresolution).
18292 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
18294 * troff/input.c (do_zero_width): New implementation that doesn't
18295 use a temporary environment. Use instead:
18296 (token::add_to_node_list): New function.
18297 * troff/env.c (environment::get_prev_char_height),
18298 (environment::get_prev_char_height),
18299 (environment::get_prev_char_skew): New functions.
18300 (environment::get_prev_char): New function.
18301 (environment::get_prev_char_width): Change to use get_prev_char.
18302 (init_env_request): Implement new registers .cht, .cdp, .csk.
18303 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18304 \Z being processed in a separate environment.
18306 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
18308 * tbl/table.c: Removed TABLE_BOTTOM_REG.
18310 * tbl/table.c (table::init_output): In the section release macro,
18311 give a warning message if the section won't fit on one page.
18313 * tbl/table.c (table::do_top): Emit table keep only if table is
18315 (table::do_bottom): Likewise for table release.
18316 (table::table), (table::add_vertical_rule): Remove reference to
18318 * tbl/table.h: Remove keep member.
18320 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18321 SECTION_RELEASE_MACRO, if there's not enough space before the next
18322 trap to output the diversion, call T# ourselves, set
18323 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18324 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
18325 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
18326 vertical position and return to it before turning traps on again.
18328 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
18330 * troff/node.c, troff/node.h: In classes derived from node,
18331 replace prev_char_width method by last_char_node method.
18332 * troff/env.c (environment::get_prev_char_width): Use
18333 node::last_char_node rather than node::get_prev_char_width.
18335 * Makefile: Added comment about -fno-inline on 68030-based
18338 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18339 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18340 expressions using sizeof to int.
18341 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18343 * macros/tmac.e (TS): Don't move @f back past the current
18346 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
18348 * ps/ps.c (main): Buffer stderr.
18349 * dvi/dvi.c (main): Likewise.
18350 * tty/tty.c (main): Likewise.
18352 * ps/ps.c (ps_printer::do_import): Improve error handling.
18354 * troff/input.c (abort_request): Use asciify.
18356 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18357 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18358 type of first argument int rather than char. This works around a
18359 bug on the 68030 based Apollo using g++ 1.37.1.
18361 * tbl/table.h (class table): Add `keep' member.
18362 * tbl/table.c (table::table): Initialize `keep'.
18363 (table::add_vertical_rule): Set `keep' to 1.
18364 (table::do_top): Only emit table keep macro is `keep' is non-zero.
18365 (table::do_bottom): Likewise for table release macro.
18366 (table::do_row): Emit section keep macro even if the row is 0.
18368 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
18370 * macros/tmac.e (@C): Preserve the font family across the change
18373 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
18375 * lib/font.c: Initialize font::hor and font::vert to 1.
18376 (font::load_desc): Check the values of font::hor and font::vert.
18378 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18379 be included in a C compilation.
18380 (iftoa): Use INT_DIGITS. Include lib.h.
18382 (as_string): Likewise.
18383 * tbl/table.c: Removed definition of INT_DIGITS.
18384 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18385 * troff/input.c (input_input_requests): Likewise.
18386 * ps/ps.c (make_encoding_name): Likewise.
18387 (ps_printer::set_style): Likewise.
18388 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18390 * tty/devascii/R.proto: Map fm onto '.
18391 * tty/devlatin1/R.proto: Likewise.
18393 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
18395 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18396 argument to \w is at a different input level.
18398 * tbl/table.c (table::init_output): Define a new macro
18399 REPEATED_VPT_MACRO, like vpt but if in a diversion also
18400 transparently outputs itself.
18401 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18403 (table::do_row): Likewise.
18405 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18406 TRANSPARENT_STRING_NAME.
18408 * tbl/table.c (table::init_output): In the table release macro
18409 print an error message and don't produce any output if after
18410 issuing the need request the table still will not fit. Also
18411 remove the diversion after bringing it back.
18413 * tbl/table.c (table::init_output): Define a new macro
18414 REPEATED_MARK_MACRO, like mk but if in a diversion also
18415 transparently outputs itself.
18416 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18417 is necessary because .TH might not call .T#.
18418 (table::do_top): Likewise TOP_REG.
18419 (table::define_bottom_macro): If TOP_REG is no longer valid, use
18420 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18421 table header might contain just the two top rules.
18423 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
18425 * troff/div.c: Implement new request `ptr' to print all traps.
18427 * troff/env.c (init_env_requests): Implement `.tabs' reg with
18428 init_string_env_reg.
18429 * troff/env.c (class tab_reg): Deleted.
18431 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
18433 * troff/div.c: New number register .pn returns the number of the
18434 next page as set by the pn request.
18436 * macros/tmac.an: Redid headers and footers. Number each manual
18437 entry starting from 1 unless \nC is > 0, like Sun. Added an
18438 optional 5th argument to .TH which specifies the manual name and
18439 appears in the center of the header. Understand the X, P and D
18440 registers like Sun.
18442 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
18444 * troff/env.c (init_env_requests): New number register `.lt' to
18445 return the title length.
18447 * troff/node.h (class transparent_dummy_node): New class.
18448 * troff/node.c (class transparent_dummy_node): Provide member
18450 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18453 * troff/input.c (token::next): New escape sequence \).
18454 * troff/input.c (get_copy): Recognize \) in copy mode.
18456 * troff/input.c (input_stack::clear): New function.
18457 * troff/input.c (exit_request): Use input_stack::clear.
18459 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18460 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18462 * troff/env.c: Move set_page_character to input.c. Move
18463 page_character to input.c also.
18464 * troff/env.c (title): Split off the reading of the parts of the
18465 title into read_title_parts.
18466 * troff/input.c (read_title_parts): New function. Check the
18467 input_level when testing whether a token matches the delimiter.
18469 * troff/input.c (exit_request): New function.
18470 * troff/input.c (init_input_requests): Bind ex request to
18471 exit_request rather than exit_groff.
18473 * troff/input.c (exit_groff): Call tok.next() before
18474 process_input_stack().
18476 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
18478 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18479 * troff/env.h: ditto.
18480 * troff/input.c: ditto.
18482 * troff/env.c (environment::is_empty): Test pending_lines.
18484 * troff/env.c (environment::have_pending_lines): Removed.
18486 * troff/input.c: Add request to flush pending lines from the
18489 * troff/env.c, troff/env.h: Add automatic widow control feature.
18491 * troff/input.c (exit_groff): Do process_input_stack() after
18492 do_break() but before setting exit_flag to 2.
18494 * troff/input.c: Remove FLUSH_PENDING_LINES and
18495 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18496 environment after END_TRAP token seen, but only if there aren't
18497 any more traps still unfinished.
18498 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18500 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
18502 * troff/env.c: Rename the `retain_size' member of class
18503 pending_output_line to `no_fill'.
18505 * troff/env.c (title): When the line is output, make the
18506 retain_size argument !fill.
18508 * troff/node.h: Add `hyphenated' member to struct breakpoint.
18509 * troff/node.c (space_node::get_breakpoints),
18510 (dbreak_node::get_breakpoints): Fill this in.
18511 * troff/env.c: Allow specification of maximum number of
18512 consecutive hyphenated lines.
18514 * troff/env.c (environment::is_empty): Add test for !current_tab.
18516 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
18518 * troff/env.c (environment::hyphenate_line): Don't completely give
18519 up if the word is not to be hyphenated; continue so that breaks
18520 can be made at break_char_node's.
18522 * lib/lib.h: Only define INT_MAX if it's not already defined;
18523 undef INT_MIN if it's already defined.
18525 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18527 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18528 This works around a bug in AT&T C++ 2.0 used with an ANSI C
18531 * macros/tmac.an (an-header): Set no-space mode.
18533 * macros/tmac.an (TH): Start a new page if necessary.
18535 * Started using ChangeLog at version 0.4.
18538 version-control: never