1 2005-06-16 Bernd Warken
3 * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
5 2005-06-15 Werner LEMBERG <wl@gnu.org>
7 Another try to update getopt files. This time we add a dummy
8 gettext.h file to satisfy the dependency.
10 * src/include/getopt.h, src/libs/libgroff/getopt.c,
11 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
13 * src/include/getopt_int.h: New file (from GNU libc CVS).
15 * src/include/gettext.h: Dummy file which just defines a gettext()
18 * src/include/groff-getopt.h: Updated.
20 * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
23 * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
24 `const' keywords in return value.
26 * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
27 Remove redundant variable `old'.
28 (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
30 * src/preproc/tbl/main.cpp (process_table): Remove redundant
34 Fix more friend name injection problems since modern C++ compilers
35 fail otherwise. We simply provide (global) declarations for all
36 functions declared as friends. This is not really necessary but
39 * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
40 peek_char, and get_location.
42 * src/preproc/refer/ref.h: Provide declarations for
43 compare_reference, same_reference, same_year, same_date,
44 same_author_last_name, and same_author_name.
46 * src/roff/troff/div.h: Provide declarations for do_divert and
49 * src/roff/troff/env.h: Provide declarations for title_length,
50 space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
51 vertical_spacing, post_vertical_spacing, line_spacing, line_length,
52 indent, temporary_indent, do_underline, do_input_trap, set_tabs,
53 margin_character, no_number, number_lines, leader_character,
54 tab_character, hyphenate_request, no_hyphenate,
55 hyphen_line_max_request, hyphenation_space_request,
56 hyphenation_margin_request, line_width, tabs_save, tabs_restore,
57 line_tabs_request, widow_control_request, and do_divert.
59 * src/roff/troff/input.cpp: Provide declaration for chop_macro.
61 * src/roff/troff/node.cpp: Provide declarations for class
63 Provide declaration for make_tfont.
65 2005-05-29 Werner LEMBERG <wl@gnu.org>
67 * doc/fdl.texi: Updated to version 1.2. Reported by Bernd Warken.
69 2005-05-28 Werner LEMBERG <wl@gnu.org>
71 * contrib/pdfmark/Makefile.sub (.ms.pdf): Use `--stylesheet', not
74 * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
77 * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
78 src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
79 Define `MLIB'. Some compilers need this for linking with libgroff.
81 2005-05-27 Werner LEMBERG <wl@gnu.org>
83 * MANIFEST, README, doc/webpage.ms: Updated.
85 2005-05-26 Werner LEMBERG <wl@gnu.org>
87 * All affected files: Update postal address of FSF.
89 2005-05-25 Keith Marshall <keith.d.marshall@ntlworld.com>
94 * README.CVS: Removed. Its contents is now part of the README file.
96 2005-05-21 Werner LEMBERG <wl@gnu.org>
98 * README: Updated. Based on a patch from Bernd Warken.
100 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
102 Miscellaneous script portability enhancements.
104 * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
105 generated conftest.sh script, conforming to portability
106 recommendation in autoconf docs.
107 * configure: Likewise, for code generated by GROFF_CSH_HACK.
108 * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
109 to portability recommendation in autoconf docs.
110 * contrib/gdiffmk/gdiffmk.sh: Likewise.
111 * contrib/gdiffmk/tests/runtests.in: Likewise.
112 * contrib/grap2graph/grap2graph.sh: Likewise.
113 * contrib/groffer/groffer.sh: Likewise.
114 * contrib/mm/mmroff.pl: Likewise.
115 * contrib/mom/momdoc/appendices.html: Likewise.
116 * contrib/pic2graph/pic2graph.sh: Likewise.
117 * font/devps/generate/afmname: Likewise.
118 * src/devices/xditview/ad2c: Likewise.
119 * src/preproc/eqn/neqn.sh: Likewise.
120 * src/roff/grog/grog.pl: Likewise.
121 * src/roff/grog/grog.sh: Likewise.
122 * src/roff/nroff/nroff.sh: Likewise.
123 * PROBLEMS: Likewise, in embedded script examples.
125 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
127 Improve portability of `pdfroff' shell script.
129 * arch/misc/shdeps.sh: Add space in shebang, conforming to
130 portability guidelines in `autoconf' docs.
131 (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
132 initialization code. Used by contrib/pdfmark/pdfroff.sh's
133 `searchpath' function.
135 2005-05-14 Werner LEMBERG <wl@gnu.org>
137 * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
138 contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
139 needed for newer ImageMagick versions.
141 2005-05-07 Werner LEMBERG <wl@gnu.org>
143 * src/preproc/refer/refer.man: Many small typographic fixes.
145 2005-05-06 Jeff Conrad <jeff_conrad@msn.com>
147 * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
148 Use `char *' cast for a_delete.
150 2005-05-03 Werner LEMBERG <wl@gnu.org>
152 * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
153 src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
155 2005-05-03 Jeff Conrad <jeff_conrad@msn.com>
157 * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
158 `a_delete' for `const char *'.
160 2005-05-03 Werner LEMBERG <wl@gnu.org>
162 * src/devices/grohtml/post-html.cpp,
163 src/devices/grohtml/html-table.cpp,
164 src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
165 Replace malloc/free with new/delete/a_delete.
167 * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
168 are prohibited with ANSI C++.
169 (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
170 function has a variable number of arguments).
172 * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
173 Simplify function and update all callers.
175 2005-05-02 Werner LEMBERG <wl@gnu.org>
177 Undo getopt changes from 2005-04-30. We don't want a dependency
180 * src/include/getopt_int.h: Removed.
182 * src/include/getopt.h, src/include/groff-getopt.h,
183 src/include/Makefile.sub, src/libs/libgroff/getopt.c,
184 src/libs/libgroff/getopt1.c: Revert to previous version.
187 * src/include/nonposix.h (access) [_MSC_VER]: New macro.
189 * src/include/posix.h (F_OK): Define conditionally.
191 * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
192 different variable name in second `for' loop to avoid MSVC compiler
195 2005-04-30 Werner LEMBERG <wl@gnu.org>
197 AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
199 * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
200 * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
201 * configure, src/include/config.hin: Regenerated.
208 * src/include/getopt.h, src/libs/libgroff/getopt.c,
209 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
211 * src/include/getopt_int.h: New file (from GNU libc CVS).
213 * src/include/groff-getopt.h: Updated.
215 * src/include/Makefile.sub (HDRS): Add getopt_int.h.
218 * font/devutf8/NOTES: Updated.
220 2005-04-28 Werner LEMBERG <wl@gnu.org>
222 Bug fix for Win32 relocatable code. Based on a patch from Keith
225 * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
228 * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
229 (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
231 2005-04-28 Keith Marshall <keith.d.marshall@ntlworld.com>
233 Correct `gnu.eps' handling for build from distribution tarball, with
234 separate source and build directories.
236 * doc/Makefile.sub: (examples.stamp): New target; forces copy of
237 grnexmpl.g, groff.css and gnu.eps from source to build directory;
238 generate gnu.eps from gnu.xpm if required; touch examples.stamp.
239 (prepare_examples): Make it depend on examples.stamp.
240 (CLEANADD): Add examples.stamp.
242 2005-04-27 Werner LEMBERG <wl@gnu.org>
246 position: '(' position ')'
250 * src/preproc/pic/pic.y (position, position_not_place): Handle
251 additional parentheses.
253 * doc/pic.ms: Updated.
255 2005-04-23 Larry Jones <lawrence.jones@ugs.com>
257 * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
259 2005-04-18 Werner LEMBERG <wl@gnu.org>
261 * src/roff/groff/pipeline.c: Don't include ctype.h.
263 2005-04-13 Werner LEMBERG <wl@gnu.org>
265 * src/roff/nroff/nroff.man: Document option `-M'.
267 2005-04-13 Bruce Lilly <blilly@erols.com>
269 * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
271 2005-04-01 Kees Zeelenberg <kzlg@users.sourceforge.net>
272 Werner LEMBERG <wl@gnu.org>
274 Add binary relocation support for Windows platforms.
276 * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
278 * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
280 * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
281 (search_path::search_path, search_path::open_file_cautious): Use
284 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
285 src/include/Makefile.sub (HDRS): Updated.
287 2005-04-01 Werner LEMBERG <wl@gnu.org>
289 * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
292 * src/libs/libgroff/font.cpp: Replace strdup with strsave.
294 * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
295 lib.h already does it.
297 * src/libs/libgroff/maxpathname.cpp: New file, defining
300 * src/include/lib.h: Add prototype for path_name_max.
302 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
304 * src/include/nonposix.h (PATH_EXT): New macro.
306 2005-03-28 Werner LEMBERG <wl@gnu.org>
308 Add support for double- and zero-width characters in grotty.
310 * src/devices/grotty/tty.cpp (glyph): Add width.
311 (tty_printer::make_underline, tty_printer::make_bold,
312 tty_printer::add_character): Add parameter to pass character width.
314 (tty_printer::end_page): Increase hpos by actual character width.
316 * font/devutf8/R.proto: Specify zero width for non-spacing
319 * tmac/unicode.tmac: Remove definitions for non-spacing entities.
321 * Makefile.comm (extraclean): Remove more junk files.
323 2005-03-25 Werner LEMBERG <wl@gnu.org>
325 * configure.ac: Undo change from 2005-03-24.
326 * configure: Regenerated.
328 2005-03-24 Werner LEMBERG <wl@gnu.org>
330 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
331 (dist): Search Makefile while descending into $(EXTRADIRS).
333 * doc/Makefile.in (.PHONY): Add.
334 (clean): Don't remove *.png and *.eps.
336 (realclean): Remove *.png and *.eps.
337 (extraclean): Depend on distclean.
339 * configure.ac: Add copyright.
340 Handle contrib/pdfmark/Makefile.
342 * configure: Regenerated.
344 2005-03-18 Larry Kollar <kollar@alltel.net>
346 Add numbered and definition lists to www.tmac.
348 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
349 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
350 auxiliary string registers.
351 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
352 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
353 (www-level): Removed.
354 (www-level1, www-level2, www-level3): Initialize to empty.
355 (www-level0, www-level4, www-level5, www-level6, www-level7,
356 www-level8, www-level9): New string registers.
357 (www-push-li, www-pop-li): New macros.
358 (www-push-level, www-pop-level): Renamed to...
359 (www-push-ul-level, www-pop-ul-level): This.
361 (www-push-ol-level, www-pop-ol-level): New macros.
363 (OLS, OLE, DLS, DLE): New user macros.
364 (LI): Removed. It is aliased to one of...
365 (www-li-ul, www-li-ol, www-li-dl): New macros.
367 * tmac/groff_www.man: Document new macros.
371 2005-03-18 Werner LEMBERG <wl@gnu.org>
373 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
374 doc-operating-system-NetBSD-2.0.2): New strings.
376 * tmac/groff_mdoc.man: Updated.
378 2005-03-17 Werner LEMBERG <wl@gnu.org>
380 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
382 2005-03-17 Werner LEMBERG <wl@gnu.org>
384 * src/libs/libgroff/hypot.c: Renamed to...
385 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
387 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
389 * src/include/lib.h: Updated.
391 2005-03-16 Werner LEMBERG <wl@gnu.org>
393 Add workaround for broken hypot() on Interix.
395 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
397 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
398 (CSRCS): Add `hypot.c'.
400 * src/include/lib.h: Declare `groff_hypot'.
402 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
405 * src/preproc/pic/pic.h: Don't declare `hypot'.
407 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
409 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
411 * src/devices/grohtml/post-html.cpp
412 (html_printer::lookahead_for_tables): End .ce properly to avoid a
415 2005-03-15 Werner LEMBERG <wl@gnu.org>
417 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
419 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
421 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
423 2005-03-14 Werner LEMBERG <wl@gnu.org>
425 Add Cyrillic support to devutf8 and devhtml.
427 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
429 * tmac/unicode.tmac: New file.
431 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
433 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
437 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
439 * src/libs/libdriver/printer.cpp (check_for_output_error): New
440 function. It has been introduced to catch peculiar error contexts
441 on MS-Windows platforms.
443 2005-02-28 Werner LEMBERG <wl@gnu.org>
445 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
448 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
450 * configure: Regenerated.
454 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
456 Integrate `pdfmark' into normal groff build system;
457 install macro `pdfmark' packages, build and install `pdfroff',
458 and PDF format documentation.
460 * Makefile.comm: Add PDFDOCDIR.
462 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
463 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
464 (unstall_dirs): Add pdfdocdir.
466 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
467 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
468 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
469 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
470 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
471 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
473 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
474 use of GROFF_AWK_PREFS.
475 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
476 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
478 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
479 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
480 also by modified GROFF_HTML_PROGRAMS).
482 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
484 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
486 (html_text::done_para): Unset `start_space'.
487 (html_text::remove_para_align): Call `retrieve_para_space' for the
490 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
492 (html_printer::do_check_center): Emit vertical space if necessary.
494 * src/roff/troff/env.cpp (environment_switch): Preserve
495 `seen_space', `seen_eol', and `suppress_next_eol' while switching
498 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
501 2005-02-20 Werner LEMBERG <wl@gnu.org>
503 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
506 2005-02-17 Werner LEMBERG <wl@gnu.org>
508 * doc/pic.ms, man/groff.man: Fix typos.
510 * doc/groff.texinfo: Fix typos.
511 (\LEmacro): Get proper mathematical spacing.
513 2005-02-16 Werner LEMBERG <wl@gnu.org>
515 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
516 * configure: Regenerated with autoconf 2.59b.
518 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
520 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
521 html_printer::start_font): Fix handling of preformatted text.
523 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
525 These patches modify the indentation implementation to use `<p
526 style=margin-left: n%>'. Many thanks to Peter and Larry for
527 suggesting this solution. Grohtml only uses tables for `.IP' and
528 related tags when the first operand has a short width.
530 Similarly, they modify all vertical space code. By default, grohtml
531 sets up a style sheet which uses no vertical space between `table',
532 `pre', and `p' tags. It forces spaces when it needs them using
533 `style="margin-top: 1em"'.
535 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
536 (html_table::emit_table_header, html_table::emit_new_row):
538 (html_table::set_space): New function.
539 (html_indent::html_indent): Don't set `is_used'.
540 (html_indent::begin): Rewritten.
541 (html_indent::end): Remove code in function.
543 * src/devices/grohtml/html-table.h: Updated.
544 (html_table): Make `out' public.
546 * src/devices/grohtml/html-text.cpp (html_text::html_text):
547 Initialize `start_space' with FALSE.
548 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
549 (html_text::issue_tag): Add argument to handle space style.
550 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
551 (html_text::flush_text): Don't set `start_space'.
552 (html_text::push_para): Don't set `p->really_issued'.
553 (html_text::do_emittext): Updated.
554 (html_text::do_para): Add paremeter to handle space.
556 (html_text::retrieve_para_space): New function.
558 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
559 (tag_definition): Remove `really_issued'.
560 (html_text): Updated.
562 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
563 `current_column' and `row_space'.
565 (html_printer::emit_raw, html_printer::write_header,
566 html_printer::do_indent, html_printer::do_check_center,
567 html_printer::do_tab_ts): Handle vertical space.
568 (html_printer:do_tab_te, html_printer::do_end_para): Call
570 (html_printer::do_col): Rewritten.
571 (html_printer::flush_globs): Remove debugging code.
572 (html_printer::is_line_start): New function.
573 (html_printer::start_font): Use `is_line_start'.
574 (html_printer::writeHeadMetaStyle): New function.
575 (html_printer::do_file_components, html_printer::~html_printer):
576 Call `writeHeadMetaStyle'.
578 * tmac/www.tmac (www-handle-percent): New macro.
579 (MPIMG): Handle percent values for width and height parameters.
582 * tmac/groff_www.man: Updated.
584 2005-02-14 Werner LEMBERG <wl@gnu.org>
586 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
587 $psname and $italic_angle.
588 Immediately restart file input loops if `split' returns an empty
591 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
592 Werner LEMBERG <wl@gnu.org>
594 Update afmtodit to better support Unicode (Michail).
595 Update afmtodit to use Perl 5 syntax (Werner).
597 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
599 Decorate variables with `my' where necessary.
600 Use `defined' where necessary to avoid warnings.
601 Don't use `do' for subroutine calls.
602 Other minor syntax updates.
603 Check for both `uXXXX[X[X]]' and `uniXXXX'.
604 Handle glyph variants properly.
605 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
608 * src/utils/afmtodit/afmtodit.man: Updated.
610 2005-02-13 Werner LEMBERG <wl@gnu.org>
612 Make groff.texinfo work with texinfo 4.8.
614 * doc/groff.texinfo (@Var): Use @r and @slanted.
615 (@defdummy, @Def*): Use @c to avoid empty lines.
616 (\angles): Replaced with...
617 (\Langlemacro, \Ranglemacro): New TeX macros.
618 (@Langlemacro, @Ranglemacro): New variables defined with @set.
619 (@angles): Use @Langlemacro and @Ranglemacro.
620 (\LE): Replaced with...
621 (\LEmacro): New TeX macro.
622 (@LEmacro): New variable defined with @set.
624 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
625 variables defined with @set.
626 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
627 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
632 * doc/texinfo.tex: Update to texinfo version 4.8.
634 * README.CVS: Updated.
636 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
638 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
641 2005-02-05 Werner LEMBERG <wl@gnu.org>
643 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
644 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
647 2005-02-01 Werner LEMBERG <wl@gnu.org>
649 * src/roff/groff/groff.man: Add information about paper size.
651 2005-01-25 Werner LEMBERG <wl@gnu.org>
653 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
656 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
658 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
660 (Re): Emit a warning if called without `.Rs'.
661 (doc-finish-reference): Use parameter for decreasing
662 `doc-reference-count'.
663 (doc-print-reference): Pass specific count parameters to
664 `doc-finish-reference'.
666 2005-01-21 Werner LEMBERG <wl@gnu.org>
668 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
669 Reset pointers to zero after deallocation. This fixes a crash
670 if a driver is called with multiple input files. Reported by
671 Ken Chilton <ken@chiltonfamily.org>.
673 * src/devices/grops/grops.man: Add more info on DSC.
675 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
677 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
680 2005-01-17 Werner LEMBERG <wl@gnu.org>
682 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
683 against division by zero.
685 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
687 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
689 2004-12-19 Werner LEMBERG <wl@gnu.org>
691 * install-sh: New version; taken from texinfo CVS.
693 2004-12-17 Werner LEMBERG <wl@gnu.org>
695 * tmac/devtag.tmac: Protect against loading twice.
696 Protect agains compatibility mode.
697 * tmac/www.tmac: Protect against loading twice.
698 Load `devtag.tmac' before switching off compatibility mode.
699 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
701 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
703 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
704 * configure: Updated.
706 2004-12-15 Thomas Klausner <wiz@netbsd.org>
708 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
710 2004-12-15 Werner LEMBERG <wl@gnu.org>
712 Make `test-groff' work again -- previously, wrong paths have been
713 used. Additionally, it can now be called from anywhere.
715 * test-groff.in: Don't test for groff binary. This is no longer
716 necessary since the proper paths are determined by `configure'.
717 (EXEEXT): Removed. No longer used.
718 (srcdir, builddir): Use values provided by the configure script.
719 (XENVIRONMENT): Updated.
723 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
725 Make .tag and .taga work for all devices (but only grohtml actually
728 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
729 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
730 html_printer::handle_assertion): Don't use hard-coded string
732 (html_printer::lookahead_for_table): Reset `tbl' properly if
734 (html_printer::devtag): New function, handling `devtag'.
735 (html_printer::special): Don't handle `html-tag'.
737 * src/include/printer.h, src/libs/libdriver/printer.cpp
738 (printer::devtag): New virtual function.
740 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
743 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
744 src/roff/troff/node.cpp: s/html-tag/devtag/.
746 * src/roff/troff/input.cpp (tag, taga): Always call
749 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
750 macros instead of HTML-TAG*.
752 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
754 * tmac/www.tmac: Load devtag.tmac.
755 Replace HTML-TAG* macros with DEVTAG* macros.
756 (HTML, HTML-NS): Changed definitions.
758 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
760 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
762 2004-12-10 Werner LEMBERG <wl@gnu.org>
764 Import Mike's `gdiffmk' package.
766 * contrib/gdiffmk/*: New files.
767 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
770 2004-12-08 Werner LEMBERG <wl@gnu.org>
772 Import Keith's `pdfmark' package. Integration is very preliminary.
774 * contrib/pdfmark/*: New files.
775 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
778 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
780 Fix a bug with title handling in HTML.
782 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
783 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
785 (html_printer::handle_tag_within_title): New function.
786 (html_printer::do_title): Use it.
788 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
789 (cov*tl-au-print): Emit `.eo.tl' tag.
791 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
793 * man/groff_char.man: Minor imrovements.
795 2004-12-04 Werner LEMBERG <wl@gnu.org>
797 * src/preproc/eqn/eqn.man: Revised.
799 2004-11-25 Werner LEMBERG <wl@gnu.org>
801 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
805 Remove X_NOT_STDC_ENV conditional.
806 (Version_string, program_name): New global variables.
807 (groff_flag): Removed.
809 (usage): Take a stream as argument.
812 (main): Add `long_options' array for `--help' and `--version'.
813 Make `-g' a dummy option.
814 Handle `-v' and unknown options.
815 Remove unused `position' variable.
817 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
818 (XLIBS): Add LIBGROFF.
820 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
823 * src/devices/xditview/Dvi.c (default_font_map): Split into three
824 parts to avoid compiler warning.
825 (resources): Don't initialize with `default_font_map'.
826 (ClassInitialize): Initialize first element of `resources'.
828 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
831 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
832 src/utils/pfbtops/pfbtops.man: Revised, updated.
834 * configure.ac: Generate src/utils/xtotroff/Makefile.
835 * configure: Regenerated.
837 2004-11-24 Werner LEMBERG <wl@gnu.org>
839 First fixes to get produce HTML.
841 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
844 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
845 (HR, LI): Use `HTML</p>', not `HTML'.
847 * doc/webpage.ms: Minor updates.
849 2004-11-23 Larry Kollar <kollar@alltel.net>
851 Add option -S grohtml to determine the file split level.
853 * src/devices/grohtml/post-html.cpp (split_level): New global
855 (html_header::determine_header_level): Use split_level.
856 (main): Handle `-S' command line option.
859 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
861 * src/devices/grohtml/grohtml.man: Document it.
866 2004-11-23 Y T <doarhop@hotmail.com>
868 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
869 the volume and number refer entries.
871 2004-11-22 Werner LEMBERG <wl@gnu.org>
873 * src/devices/grohtml/html-table.cpp
874 (html_table::emit_table_header): Don't emit `cols' attribute which
875 doesn't exist in HTML 4.0 and is thus invalid.
877 * NEWS: More minor fixes and updates.
879 2004-11-18 Werner LEMBERG <wl@gnu.org>
881 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
882 (HTML</p>): Minor clean-up.
884 * tmac/groff_www.man: Updated.
886 * src/devices/grohtml/grohtml.man: Revised and updated.
890 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
892 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
894 (html_printer::do_links): Fix rules generation around automatic
897 * tmac/www.tmac (LK): Use HTML-TAG-NS.
899 No longer emit empty line for non-HTML devices.
901 2004-11-17 Werner LEMBERG <wl@gnu.org>
903 * doc/Makefile.in (prepare_examples, webpage.html): Handle
906 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
907 prepare_examples, webpage.html): Handle `groff.css'.
909 2004-11-15 Werner LEMBERG <wl@gnu.org>
911 * NEWS, README, doc/webpage.ms: Updated.
913 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
915 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
917 * src/include/printer.h (printer): Remove virtual function
919 Update all source files.
921 * src/devices/grohtml/post-html.cpp (html_printer): New member
922 function `round_width'.
924 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
926 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
927 column key letter suffix.
929 2004-10-14 Werner LEMBERG <wl@gnu.org>
931 * Makefile.in (check): Depend on `site.exp' and `docheck'.
932 (docheck): Run dejagnu's `runtest' if it exists.
933 (site.exp): Create dejagnu configuration file.
935 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
937 2004-10-13 Werner LEMBERG <wl@gnu.org>
939 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
940 src/devices/grohtml/post-html.cpp (make_val,
941 html_printer::handle_state_assertion): Fix compiler warnings.
943 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
944 (diversion::diversion): Fix order of initializers.
946 * src/roff/troff/div.h: Don't include `mtsm.h'.
948 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
949 (environment::environment): Fix order of initializers.
950 (environment::make_tag, environment::construct_format_state): Fix
953 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
954 (input_iterator::input_iterator, macro::macro): Fix order of
957 * src/roff/troff/mtsm.cpp: Include only necessary header files.
958 (state_set::add, state_set::val): Fix compiler warnings.
960 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
961 (bool_value_state, int_value_state, units_value_state,
962 string_value_state): Remove comma after last element which causes
963 an error with g++ 3.3.3.
965 * src/roff/troff/node.cpp: Include `stringclass.h'.
966 (hline_node::hline_node, vline_node::vline_node,
967 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
969 (zero_width_node::zero_width_node): Fix order of initializers.
971 * src/roff/troff/node.h: Don't include `mtsm.h'.
972 (hmotion_node): Fix compiler warnings.
974 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
976 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
978 * doc/groff.css: New file.
980 * doc/webpage.ms: Use `groff.css'.
983 * tmac/an-old.tmac (need_eo_h): New number register.
984 (TH): Emit `.eo.tl' tag after title.
985 (SH): Set `need_eo_h'.
986 (an-trap): Handle `need_eo_h'.
987 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
989 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
990 (TL): Always start diversion.
992 (@AI): Always call `par@reset'.
993 (@AB): Update code for -Thtml.
994 (cov*tl-au-print): Handle -Thtml.
995 (par@reset): Handle `need_eo_tl', `need_eo_h'.
998 (@SH): Set `need_eo_h' for -Thtml.
999 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
1001 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
1002 Set `need_eo_h' for -Thtml.
1003 (@EQ, @EN): Don't handle -Thtml specially.
1004 (par@load-init): Don't handle -Thtml specially.
1006 * tmac/www.tmac (www:paraspace): New macro.
1007 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
1008 (HTML</p>, HTML-TAG-NEXT): New macros.
1009 (HnE): Emit tag `.eo.h' instead of break.
1010 (HR): s/HTML-NS/HTML/.
1011 (www-end-nowhere): End diversion only if `www-html' not set.
1013 (ULS, ULE): s|HTML|HTML</p>|.
1014 (LI): Call `www:paraspace'.
1017 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
1019 * src/roff/troff/request.h (macro): Make `p' public.
1020 New variable `is_a_diversion'.
1021 New member function `is_diversion'.
1024 * src/devices/grohtml/html.h (simple_output): New member function
1027 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
1028 computation of `total'.
1029 (tabs::check_init): New function.
1030 (html_table::emit_table_header): Emit style data.
1031 (html_table::insert_column): Improved.
1033 * src/devices/grohtml/html-table.h: Updated.
1035 * src/devices/grohtml/html-text.cpp (html_text::html_text):
1036 Initialize `start_space' with TRUE.
1037 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
1039 (html_text::flush_text): Set `start_space' flag.
1040 (html_text::uses_indent, html_text::remove_para_space,
1041 html_text::get_alignment): New functions.
1042 (html_text::push_para): Updated.
1043 (html_text::do_para): Check for empty argument.
1044 Don't set `space_emitted'.
1045 (html_text::do_space, html_text::emit_space): Updated.
1047 * src/devices/grohtml/html-text.h (tag_definition): New variable
1049 (html_text): New member function `uses_indent', `remove_para_space',
1052 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
1054 (simple_output:nl): Always emit `\n'.
1056 * src/devices/grohtml/post-html.cpp: Include `string.h'.
1057 (BASE_POINT_SIZE): Removed.
1058 (base_point_size, head_info): New global variables.
1059 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
1061 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
1063 (page::add_and_encode): Pass additional parameter for tag flag.
1064 (assert_pos): New structure.
1065 (assert_state): New class.
1066 (html_printer): Remove `indentation', `prev_indent'.
1067 Add variables `troff_indent', `device_indent', `temp_indent'.
1068 Add variables `seen_indent', `next_indent', `seen_pageoffset',
1069 `next_pageoffset', `seen_linelenght', `next_linelength',
1070 `seen_center', `next_center', `seen_space', `seen_break', `as'.
1071 Add member functions `do_check_center', `do_space', `do_head',
1072 `get_troff_indent', `restore_troff_indent', `handle_assertion',
1073 `handle_state_assertion', `do_end_para', `set_char_and_width'.
1074 Change argument to `do_fill' to `char *'.
1076 (html_printer::emit_raw): Call `shutdown_table'.
1078 (html_printer::do_center): Simplified.
1079 (html_printer::do_title): Improved.
1080 (html_printer::write_header): Emit one more newline.
1082 (html_printer::do_heading, html_printer::do_indent,
1083 html_printer::do_eol, html_printer::do_tab_ts,
1084 html_printer::do_tab, html_printer::do_tab0,
1085 html_printer::calc_po_in, html_printer::next_horiz_pos,
1086 html_printer::remove_courier_tabs,
1087 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
1089 (html_printer::do_linelength, html_printer::do_pageoffset,
1090 html_printer::do_indentation, html_printer::do_tempindent,
1091 html_printer::do_tab_te): Simplified.
1092 (html_printer::do_pointsize): Check whether point size is really
1093 associated a `.tl' tag.
1094 (html_printer::do_break): Rewritten.
1095 (html_printer::troff_tag): Improved.
1096 (html_printer::flush_globs): Updated.
1097 (html_printer::lookahead_for_tables): Handle `is_br'.
1099 (html_printer::set_char): Check `sbuf_style.f'.
1100 (html_printer::write_navigation): Use string comparison.
1101 (html_printer::~html_printer): Emit `head_info'.
1102 (html_printer::special): Rewritten.
1103 (get_str, make_val): New functions.
1104 (main): New option `s' to set the base point size.
1106 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
1108 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
1110 * src/roff/troff/node.cpp: New extern `debug_state'.
1111 Include `stringclass.h' and `mtsm.h'.
1112 Implement new classes and class members from `node.h'.
1113 (real_output_file): Make `fp' public.
1114 (troff_output_file): New variables `cur_div_level' and `tag_list'.
1115 Update constructors.
1116 (troff_output_file::really_print_line): Check whether we should push
1117 the current troff state and use the state at the start of the
1118 invocation of this diversion.
1119 (troff_output_file::add_to_tag_list): New member function.
1120 (node::add_char): Handle `glyph_comp_np'.
1122 * src/roff/troff/node.h: Include `mtsm.h'.
1123 (node): New variables `state', `push_state', `div_nest_level',
1124 `is_special'. Update constructors, all descendants.
1125 Pass additional argument to `add_char' member function.
1126 New virtual member functions `is_tag', `debug_node',
1127 `debug_node_list'. Update all descendants.
1128 (tag_node): New class for handling tags.
1129 (output_file): Add variable `state'.
1131 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
1133 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
1134 providing a minimal troff state machine to emit meta tags for the
1135 post-grohtml device driver.
1137 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
1140 2004-10-09 Werner LEMBERG <wl@gnu.org>
1142 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
1144 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
1146 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
1148 * src/roff/troff/div.h: Include `mtsm.h'.
1149 (diversion): New variables `any_chars_added', `needs_push',
1150 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
1151 `saved_suppress_next_eol', `modified_tag'.
1152 New virtual member function `is_diversion'. Update all descendants.
1154 * src/roff/troff/div.cpp (diversion::diversion,
1155 macro_diversion::macro_diversion): Updated.
1156 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
1157 `suppress_next_eol'.
1158 (top_level_diversion::space): Handle `curenv->seen_space'.
1159 (page_offset): Update tag handling.
1160 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
1162 * src/roff/troff/env.h (environment): Make `tabs' public.
1163 Remove `ignore_next_eol', `emitted_node'.
1164 Update `output_line', `output'.
1165 New variables `seen_space', `seen_eol', `suppress_next_eol',
1167 New member functions `construct_state', `make_tag',
1168 `construct_format_state, `construct_new_line_state,
1170 Remove `add_html_tag', `make_html_tag'.
1172 * src/roff/troff/env.cpp: New externs `suppress_push',
1173 `get_diversion_state', `global_diverted_space'.
1174 (pending_output_line): New variable `was_centered'.
1175 Update constructor and all callers.
1176 (pending_output_line::output): Call `curenv->construct_format_state'.
1177 (environment::environment, environment::copy): Updated.
1178 (environment::output): Handle `was_centered'.
1179 (environment::add_char): Handle construct and diversion state.
1180 (environment::add_node): Handle construct state.
1181 (environment::newline): Handle `was_centered'.
1182 (environment::output_line): Updated.
1183 (environment::possibly_break_line): Updated.
1184 Update tag handling.
1185 (environment::add_html_tag): Replaced with...
1186 (environment::make_tag): New function.
1187 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
1188 (environment::dump_troff_state): New debugging function.
1189 (environment::construct_state, environment::construct_format_state,
1190 environment::construct_new_line_state): New functions.
1191 (environment::do_break): Updated.
1192 Handle `global_diverted_space'.
1193 (environment::handle_tag): Update tag handling.
1194 (point_size, fill, do_break_request): Don't call `add_html_tag'.
1195 (no_fill): Don't call `add_html_tag'.
1196 Set `suppress_next_eol'.
1197 (center, right_justify, line_length, indent, temporary_indent,
1199 Update tag handling.
1201 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
1202 (input_iterator): New variables `is_diversion', `diversion_state'.
1203 Update constructors.
1204 (input_stack): New member functions `get_div_level',
1205 `get_diversion_state', `check_end_diversion'.
1206 New variables `div_level', `diversion_state'. Initialize them.
1207 (suppress_push, global_diverted_space): New global variables.
1208 (input_stack::finish_get, input_stack::finish_peek,
1209 input_stack::remove_boundary, input_stack::end_file,
1210 input_stack::clear, input_stack::pop_macro): Call
1211 `check_end_diversion'.
1212 (input_stack::push): Handle `div_level' and `diversion_state'.
1213 (get_diversion_state): New function.
1214 (diverted_space_node::reread): Handle `global_diverted_space'.
1215 (macro::macro): Update constructors.
1216 (macro::is_diversion): New function.
1217 (macro::operator=): Set `is_a_diversion'.
1218 (string_iterator): New member function `is_diversion'.
1219 (string_iterator::string_iterator): Update constructors.
1220 (string_iterator::fill): Set `div_nest_level'.
1221 (macro_iterator): New member function `is_diversion'.
1222 (do_if_request): Handle `suppress_push'.
1223 (tag, taga): New functions.
1224 (init_input_requests): Add `tag' and `taga' requests.
1226 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
1228 * src/include/font.h (font): New member function
1229 `get_image_generator'.
1230 New variables `unscaled_charwidths' and `image_generator'.
1232 * src/libs/libgroff/font.cpp (font::get_width): Always return the
1233 character's unscaled width if `font::unscaled_charwidths' is set.
1234 (font::get_image_generator): New function.
1235 (font::load_desc): Check the `unscaled_charwidths' and
1236 `image_generator' keywords.
1238 * src/libs/libgroff/fontfile.cpp: Initialize
1239 `font::unscaled_charwidths' and `font::image_generator'.
1241 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
1243 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
1245 * man/groff_font.man: Document `unscaled_charwidths' and
1248 * src/preproc/html/pre-html.cpp: Include `device.h'.
1249 (image_gen): New global variable.
1250 (imageList::createPage): Use `image_gen'.
1251 (main): Use `image_generator' keyword.
1253 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
1255 * tmac/html.tmac: Handle \[sqrtex].
1257 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
1259 * src/include/printer.h (printer): New virtual method `round_width'.
1261 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1262 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1263 src/devices/grotty/tty.cpp (printer::round_width): New function
1266 * src/devices/grohtml/post-html.cpp (printer::round_width): New
1268 (html_printer::set_numbered_char): Use it.
1270 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
1272 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1274 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1276 * configure: Regenerated.
1278 * Makefile.in (GHOSTSCRIPT): New variable.
1279 (MDEFINES): Add GHOSTSCRIPT.
1281 2004-10-03 Werner LEMBERG <wl@gnu.org>
1283 * INSTALL.gen: Updated (taken from texinfo CVS).
1285 2004-09-28 Werner LEMBERG <wl@gnu.org>
1289 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1291 * tmac/groff_www.man: Revised and updated.
1293 2004-09-26 Werner LEMBERG <wl@gnu.org>
1295 Fix \$@ and \$* to handle any number of arguments.
1297 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1300 * src/roff/troff/input.cpp (input_iterator::internal_level):
1302 (input_stack): New member functions `increase_level' and
1304 (input_stack::get_level): Don't use `internal_level'.
1305 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1306 (end_quote_iterator): Completely removed.
1307 (interpolate_arg): Build string for \$@ and \$* which is then
1308 pushed onto the input stack.
1310 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
1312 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1315 2004-09-23 Werner LEMBERG <wl@gnu.org>
1317 * tmac/an-old.tmac (ne): Using default scaling operator.
1319 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1321 This change implements the following features:
1324 New numeric register: Defines number of lines following LP, PP,
1325 QP, IP or XP, which must be kept together, before any automatic
1326 page break. If insufficient space remains on the current page, a
1327 page break is forced before the new paragraph begins.
1330 New numeric register: Sets number of lines of following paragraph
1331 which must be kept with a heading, defined by NH or SH, before any
1332 automatic page break. If insufficient space remains on the
1333 current page, a page break is forced before the heading.
1336 (Thanks to Joerg van den Hoff, for this idea).
1338 New numeric register: Sets the first level of heading (set with
1339 NH), which will keep the same point size as body text; e.g. if
1340 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1341 point size specified by \n[PS], but .NH 2 and .NH 1 will have
1342 progressively larger point sizes, determined by \n[PSINCR] (see
1346 New numeric register: Sets the point size increment for each level
1347 of heading, (set with NH), below the threshold level set by
1348 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1349 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1350 and all other levels will remain at 10pt, (because \n[PS] = 10).
1353 Existing macro now accepts a numeric argument, to make heading
1354 size match that of NH with same argument value, when the
1355 GROWPS/PSINCR feature is enabled.
1358 New string, set by NH macro, replaces the existing (undocumented)
1359 use of SN, to represent the assigned section number.
1362 New string, set by NH macro, represents the assigned section
1363 number, but omits the terminal period (periods at intermediate
1364 levels are retained).
1367 String set by NH macro, originally undocumented, now implemented
1368 as an alias for SN-DOT (which reproduces original behaviour).
1370 * tmac/s.tmac (PORPHANS): New register.
1371 (par*start): Use it.
1372 (HORPHANS, GROWPS, PSINCR): New registers.
1373 (SH-NO-TAG, @SH): Use them.
1376 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1378 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1379 of `Ds' and `De' macros.
1381 2004-09-10 Werner LEMBERG <wl@gnu.org>
1383 In tbl, handle \a as an interpreted leader character if in
1386 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1387 LEADER_CHAR): New macros.
1388 (compatible_flag): New declaration.
1390 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1391 LEADER_3, and LEADER_4 to `state'.
1392 (table_input::get): Handle `\a'.
1394 * src/preproc/tbl/table.cpp (PREFIX): Removed.
1395 (LEADER_REG): New macro.
1396 (table::init_output): Define LEADER_REG string register if in
1399 * src/preproc/tbl/tbl.man: Document it.
1401 2004-08-18 Werner LEMBERG <wl@gnu.org>
1403 * tmac/doc.tmac (An): Fix error message.
1405 2004-08-06 Werner LEMBERG <wl@gnu.org>
1407 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1408 file can't be opened. UNIX tbl has the same behaviour.
1410 2004-08-05 Y T <doarhop@hotmail.com>
1412 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1413 (DBRead): If in compatibility mode, take into account the text
1414 when computing figure boundaries.
1416 2004-08-05 Werner LEMBERG <wl@gnu.org>
1418 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
1419 from Tadziu Hoffmann.
1421 2004-08-03 Werner LEMBERG <wl@gnu.org>
1423 * doc/meref.me: Document `_M' register.
1425 2004-08-03 Martin Husemann <martin@duskware.de>
1427 Make hpftodit work correctly on big-endian systems.
1429 * src/utils/hpftodit/hpftodit.cpp (File): New method
1430 `get_uint32(char *)'.
1431 (entry): New member `orig_value'.
1432 (read_tags): Use new method.
1433 (output_font_name, read_and_output_pcltypeface, dump_ascii):
1436 2004-08-01 Werner LEMBERG <wl@gnu.org>
1438 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
1439 are already in X11's `macros.t' file.
1441 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
1443 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1445 (read_and_output_pcltypeface): Handle strings with length <= 4.
1447 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
1449 * tmac/s.tmac (pg@top): Don't save `PO' register.
1450 (pg*end-col, pg*end-page): Directly use `PO' register.
1452 2004-07-27 Werner LEMBERG <wl@gnu.org>
1454 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1456 * src/preproc/refer/refer.cpp (output_references): Check for
1458 * src/preproc/refer/refer.man: Improve documentation of
1459 `bibliography' command.
1461 2004-07-26 Werner LEMBERG <wl@gnu.org>
1463 Add requests `fcolor' and `gcolor'.
1465 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1467 (init_env_requests): Add `fcolor' and `gcolor'.
1469 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1471 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1472 Document new requests.
1474 2004-07-24 Werner LEMBERG <wl@gnu.org>
1476 Add support for fractional point sizes in ms macros. A value for
1477 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1478 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
1480 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1481 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1483 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1485 2004-07-19 Werner LEMBERG <wl@gnu.org>
1487 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1489 (do_for, for_input::get, for_input::peek): Handle negative `by'.
1490 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1492 2004-07-08 Thomas Klausner <wiz@netbsd.org>
1494 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1495 * tmac/groff_mdoc.man: Updated.
1497 2004-07-05 Werner LEMBERG <wl@gnu.org>
1499 * doc/groff.texinfo: Further improve documentation of `hcode'.
1501 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
1503 Improve appearance of arrows in pic.
1505 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1507 Use two line segments for drawing non-filled arrow head.
1508 (line_object::print, spline_object::print): Shorten line length to
1509 avoid arrow sticking.
1510 (arc_object::print): Take arrow direction into account.
1512 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1514 * tmac/groff_www.man: Update documentation of .MPIMG.
1516 2004-07-03 Werner LEMBERG <wl@gnu.org>
1518 * tmac/an-old.tmac (RI): Always start with font `R'.
1519 (RI, IR): Properly end with font `R'.
1521 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
1523 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1524 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1525 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1526 Don't pass more than six arguments to .R, .I, .B, etc., for
1527 compatibility with traditional troff macros.
1529 2004-07-02 Werner LEMBERG <wl@gnu.org>
1531 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1532 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1534 (PUSH_COMP_MODE): New internal character constant.
1537 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1538 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1539 (token::next, macro::append): Handle PUSH_COMP_MODE.
1540 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1541 POP_GROFFCOMP after each of the decoded arguments to make them
1542 independent from the compatibility mode status.
1543 (comp_mode): Add `COMP_ENABLE'.
1544 (do_define_string, do_define_macro): Handle COMP_ENABLE.
1545 (define_string, append_string, define_macro, define_indirect_macro,
1546 append_macro, append_indirect_macro): Handle `compatible_flag'.
1547 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1549 * man/groff_diff.man, doc/groff.texinfo: Updated.
1551 2004-07-01 Werner LEMBERG <wl@gnu.org>
1553 * doc/groff.texinfo: Improve documentation of `hcode'.
1554 Use @documentencoding and convert document to latin-1; to do that
1555 make latin characters active and assign proper macros (within a
1556 @tex...@end tex environment).
1557 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1558 * doc/Makefile.sub (groff): Ditto.
1560 2004-06-29 Werner LEMBERG <wl@gnu.org>
1562 Implement two new conditional operators `F <name>' and `S <name>'
1563 which check whether <name> is a valid font or style, respectively.
1565 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1566 (text_file::text_file): Updated.
1567 (text_file::error): Don't emit message if `silent' is set.
1568 (font::load_font): Add optional third argument (which is directly
1570 (font::load): Add optional second argument to check the header of
1571 a font only, without emitting warning or error messages.
1572 * src/include/font.h (font): Updated.
1574 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1576 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1577 fourth argument to check a font without mounting.
1578 (check_font, check_style): New functions.
1579 * src/roff/troff/node.h: Updated.
1581 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1584 2004-06-27 Werner LEMBERG <wl@gnu.org>
1586 Implement new string-valued register `.sty' to return the current
1589 * env.cpp (environment::get_style_name_string): New function.
1590 (init_env_requests): Add `.sty' register.
1591 * env.h (environment): Updated.
1592 * node.cpp (font_info): Make `get_style_name' a friend.
1593 (get_style_name): New function.
1596 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1599 2004-06-15 Werner LEMBERG <wl@gnu.org>
1601 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1604 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
1606 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1607 and \n[mo] to avoid dependency on current date.
1609 2004-06-08 Werner LEMBERG <wl@gnu.org>
1611 * Makefile.sub (install_data): New target.
1613 2004-06-04 Werner LEMBERG <wl@gnu.org>
1615 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1617 2004-06-03 Werner LEMBERG <wl@gnu.org>
1619 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1621 (install_data): Add $(srcdir).
1623 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1626 2004-06-02 Werner LEMBERG <wl@gnu.org>
1628 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1629 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1630 Add test for Xmu library.
1631 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1632 GROFF_APPRESDIR_DEFAULT): New macros.
1634 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1635 and GROFF_APPRESDIR_DEFAULT.
1637 * configure: Regenerated.
1639 * Makefile.in (appresdir): New variable.
1640 (MDEFINES): Add appresdir.
1642 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1644 (install_data, uninstall_sub): New targets to handle GXditview.ad.
1646 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1647 `$(srcdir)/eign', not `eign'.
1649 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1651 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1652 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1653 Protect (g)xditview with `\%' to avoid hyphenation.
1654 Other minor formatting.
1656 2004-06-01 Werner LEMBERG <wl@gnu.org>
1658 Integrate gxditview into groff's standard directory hierarchy.
1660 * src/xditview/*: Moved to ...
1661 * src/devices/xditview/*: Here.
1662 Moved DviChar.h and XFontName.h to src/include.
1663 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1664 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1665 Moved xtotroff.c to new directory src/utils/xtotroff.
1666 Provide proper Makefile.sub files (reusing the stuff from
1668 DESC renamed to DESC.in.
1669 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1670 Converted everything from K&R to ANSI C.
1671 Decorated with const where appropriate.
1672 Cast string constants with `String' and `char *' where appropriate.
1673 Made it compile with C++ (used as a C compiler).
1674 Removed other minor compiler warnings.
1676 * src/devices/xditview/device.c: Include config.h, string.h, and
1678 Don't declare `exit', `strtok', `strchr', and `getenv'.
1681 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1684 * src/devices/xditview/xditview.c: Include config.h.
1685 Include stdio.h earlier.
1686 Protect declaration of `popen' and `pclose' with
1687 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1688 Replace `caddr_t' with `XtPointer'.
1689 (MakePromptFunc): New typedef.
1690 (DoPrint): Use RETSIGTYPE.
1691 (promptfunction): Change type to MakePromptFunc.
1692 (MakePrompt): Use MakePromptFunc for third argument.
1695 * src/devices/xditview/ad2c: Add casts to `String'.
1697 * src/include/XFontName.h (XFontNameString): Don't use array
1699 Add prototypes for `XParseFontName', `XFormatFontName',
1700 `XCompareFontName', and `XCopyFontName'.
1702 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1705 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1706 Don't declare `XParseFontName' and `XFormatFontName'.
1708 (main): Remove `optind' and `optarg'.
1710 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1711 (to select programs which need X).
1712 Make XDEVIDIRS depend on `FORCE'.
1713 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1715 (MDEFINES): Updated.
1716 (LIBDIRS): Use XLIBDIRS.
1717 (CPROGDIRS): Use XPROGDIRS.
1718 (DEVDIRS): Remove font directories for gxditview.
1719 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1720 (EXTRADIRS): Remove src/xditview.
1722 * Makefile.sub (DISCLEANFILES): Updated.
1724 * Makefile.comm (LIBXUTIL): New variable.
1725 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1726 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1728 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1730 * aclocal.m4 (GROFF_X11): New function.
1732 * configure.ac: Call GROFF_X11.
1733 Don't create src/xditview/Imakefile.
1734 Don't emit notice how to build gxditview.
1736 * configure: Regenerated.
1738 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1740 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
1742 * Makefile.in (CPPFLAGS): Define.
1743 (MDEFINES): Add CPPFLAGS.
1745 2004-05-27 Werner LEMBERG <wl@gnu.org>
1747 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1749 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
1751 Fix problems with `friend name injections'.
1753 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1754 make_script_box), src/roff/troff/div.h (end_diversions),
1755 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1758 2004-05-25 Bernd Warken <bwarken@mayn.de>
1760 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1762 2004-05-25 Werner LEMBERG <wl@gnu.org>
1764 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1765 src/libs/libgroff/color.cpp: Include lib.h.
1767 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
1769 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1770 through Forte 6u1, and for how to get GNU make on Solaris.
1772 2004-05-24 Werner LEMBERG <wl@gnu.org>
1774 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
1777 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
1779 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1782 2005-05-14 Werner LEMBERG <wl@gnu.org>
1784 * REVISION: Set to 2.
1786 * aclocal.m4 (GROFF_STDINT_H): Removed.
1787 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1789 * configure.ac: Updated.
1790 * configure, src/include/config.hin: Regenerated.
1792 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1793 inttypes.h conditionally.
1795 2003-05-13 Werner LEMBERG <wl@gnu.org>
1797 Version 1.19.1 released
1798 =======================
1800 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
1802 * src/preproc/refer/label.y (same_author_last_name,
1803 same_author_name): Handle empty sort keys.
1805 2004-05-10 Werner LEMBERG <wl@gnu.org>
1807 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1810 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1811 doc-str-Lb-librt): Reset font.
1812 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1813 Provide `doc-str-Lb' to reset font.
1814 * tmac/groff_mdoc.man: Updated.
1816 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
1818 * src/preproc/html/pre-html.cpp (make_message): Make it work for
1819 snprintf versions which don't conform to ANSI C 99 (this is,
1820 counting the string's trailing null byte in the return value).
1822 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
1824 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1825 that all implementations of sprintf handle null pointers correctly.
1827 2004-05-04 Werner LEMBERG <wl@gnu.org>
1829 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1830 Document `.U' register.
1832 * src/roff/troff/env.cpp (environment::mark_last_line)
1833 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1835 2004-05-04 Larry Kollar <kollar@alltel.net>
1837 New read-only register `.U'; it returns 1 in safer mode and 0
1840 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1843 2004-05-03 Werner LEMBERG <wl@gnu.org>
1845 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1847 2004-04-17 Werner LEMBERG <wl@gnu.org>
1849 * src/include/font.h (font): Use `int' for ch_index.
1850 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1851 font::compact): Updated.
1853 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1856 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1857 (hyphen_word): Fix compiler warnings.
1858 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1861 (get_delim_number, get_line_arg): Change second argument type to
1863 (macro_header::copy, token::next, do_define_string,
1864 do_define_character, substring_request, asciify_macro,
1865 unformat_macro, read_size, non_interpreted_node::interpret,
1866 while_request, main: Fix compiler warnings.
1867 (read_color_draw_node): Initialize `col'.
1869 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1870 `start_col' and `end_col' of type `int'.
1871 (vertical_rule): Make `col' of type `int'.
1873 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1876 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1878 (format_serial): Use them to remove dependency on ASCII.
1880 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1882 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1885 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1887 (glyph): Change type of `hpos' to `int'.
1889 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
1890 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1892 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1894 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1896 2004-04-16 Werner LEMBERG <wl@gnu.org>
1898 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1899 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1900 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1901 `double' instead of `float' everywhere.
1902 * src/preproc/grn/main.cpp: Use `double' instead of `float'
1904 (main): Add return value.
1905 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1907 Update all user functions.
1909 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1910 src/preproc/eqn/box.h, src/preproc/pic/object.h,
1911 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1912 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1913 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1914 src/roff/troff/input.cpp, src/roff/troff/request.h,
1915 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1918 * src/utils/indxbib/signal.c: Include stdlib.h.
1920 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1922 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1923 before the first page.
1925 2004-04-14 Thomas Klausner <wiz@netbsd.org>
1927 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1928 (doc-operating-system-*): Updated.
1929 * tmac/doc-syms (doc-str-St-*): Various small fixes.
1930 (doc-str-Lb-*): Add more library names.
1932 2004-04-10 Art Haas <ahaas@airmail.net>
1934 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1937 2004-04-09 Art Haas <ahaas@airmail.net>
1939 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1941 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
1943 * arch/misc/shdeps.sh: Generate better comment for sed script.
1945 2004-04-08 Art Haas <ahaas@airmail.net>
1947 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1948 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1949 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1950 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1951 (polyfill), src/preproc/grn/main.cpp (polyfill),
1952 src/preproc/refer/command.cpp (command_table),
1953 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1954 gcc 3.5 doesn't like).
1956 2004-04-08 Werner LEMBERG <wl@gnu.org>
1958 Removing many compiler warnings. groff should now compile with
1959 a C++ compiler used for C files also. [Simple variable renamings
1960 to avoid shadowing aren't logged in detail.]
1962 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1963 (draw_dvi_printer::draw) ['c']: Enclose in block.
1965 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1966 (page::add_line): Fix typos.
1967 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1969 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1970 Some local variable renamings.
1971 * src/devices/grolbp/lbp.h: Some local variable renamings.
1973 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1976 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1977 Remove redundant local variable declaration.
1978 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1979 Don't use `caddr_t' but `void *'.
1980 Enclose functions with `extern "C"' for C++.
1982 * src/libs/libdriver/input.cpp (remember_filename,
1983 remember_source_filename): Use cast for string constant.
1985 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1986 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1987 src/libs/libgroff/geometry.cpp: Some local variable renamings.
1988 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1990 Enclose functions with `extern "C"' for C++.
1991 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1992 (needs_quoting): Return `int'.
1993 (quote_arg): Add proper casts to malloc and realloc.
1994 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1995 various MS Windows environments.
1996 (spawnvp_wrapper): Add proper cast to malloc.
1998 * src/preproc/eqn/box.h: Remove redundant declarations of
1999 `make_script_box', `make_mark_box' and `make_lineup_box'.
2000 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
2001 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
2004 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
2005 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
2006 (dx, dy): Renamed functions to...
2007 (deltax, deltay): This.
2008 * src/preproc/grn/main.cpp: Some local variable renamings.
2009 (deffont): Add `const'.
2010 (initpic, conv): Use cast for string constant.
2012 * src/preproc/html/pre-html.cpp: Some local variable renamings.
2013 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
2014 (char_buffer::run_output_filter): Second argument is unused.
2015 * src/preproc/html/pushback.cpp: Some local variable renamings.
2017 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
2018 * src/preproc/pic/object.cpp: Some local variable renamings.
2020 * src/preproc/refer/label.y (lookup_label): Remove redundant
2021 declaration of local variable.
2023 * src/preproc/soelim.cpp: Remove redundant declaration of
2024 `interpret_lf_args'.
2026 * src/preproc/tbl/main.cpp: Some local variable renamings.
2028 * src/roff/groff/groff.cpp (main): Use cast for string constant.
2029 * src/roff/groff/pipeline.c: Enclose declarations of `error',
2030 `c_fatal', and `i_to_a' with `extern "C"' for C++.
2031 Don't use C++-style comments.
2033 * src/roff/troff/env.h: Remove redundant declaration of `title'.
2034 * src/roff/troff/node.h, src/roff/troff/env.cpp,
2035 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
2037 * src/roff/troff/div.h: Remove redundant declaration of
2039 * src/roff/troff/troff.h: Remove redundant declaration of
2041 * src/roff/troff/input.cpp: Remove redundant declaration of
2042 `handle_first_page_transition' and `process_input_stack'.
2044 * src/utils/hpftodit.cpp: Some local variable renamings.
2046 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
2048 Don't define RETSIGTYPE.
2049 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
2051 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
2052 (error): Use `const' in argument.
2053 (main): Remove redundant declaration of `optind'.
2054 Move declaration of `Version_string' to top-level.
2056 * PROBLEMS: Document difficulties compiling signal.c if a C++
2057 compiler is used for C.
2059 2004-04-07 Werner LEMBERG <wl@gnu.org>
2061 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
2063 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
2065 Make scripts like nroff.sh and neqn.sh portable across various
2066 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
2067 non-POSIX path separators. The idea is to extend those scripts to
2068 decide at run-time (of the script) which path separator to use.
2070 * arch/misc/Makefile.sub: New file.
2071 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
2072 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
2073 a proper definition of the variable `GROFF_RUNTIME'.
2075 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
2076 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
2077 (PROGDEPDIRS): New variable.
2079 (PROGDIRS): Add PROGDEPDIRS.
2081 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
2082 Don't substitute @SEP@ and @BINDIR@.
2083 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
2084 (PATH): Use GROFF_RUNTIME.
2086 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
2087 Don't substitute @SEP@ and @BINDIR@.
2088 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
2089 (PATH): Use GROFF_RUNTIME.
2091 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2093 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
2094 Cygwin which doesn't handle stderr correctly.
2096 2004-03-08 Werner LEMBERG <wl@gnu.org>
2098 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
2099 against empty argument. Problem reported by <cgd@broadcom.com>.
2101 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2103 * Makefile.in (SEP): Replaced with...
2104 (RT_SEP, SH_SEP): Separators for the target platform's native path
2105 separator and the build environment, respectively.
2106 (fontpath, tmacpath): Use RT_SEP.
2107 (MDEFINES): Updated.
2109 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2110 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2111 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
2112 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
2114 2004-03-05 Werner LEMBERG <wl@gnu.org>
2116 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
2117 reduce alignment problems with newer printers which use built-in
2118 TrueType fonts (instead of the older Intellifonts). The ideal
2119 solution is to provide a second set of groff metric files, but this
2120 is extremely time-consuming to produce, given that HP's metric
2121 files are very rudimentary.
2123 2004-03-01 Werner LEMBERG <wl@gnu.org>
2125 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
2126 s/operand/argument/ in error message.
2128 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2130 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
2133 2004-03-01 Antti Kantee <pooka@netbsd.org>
2135 * tmac/s.tmac (XE): Fix error message.
2137 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
2139 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
2142 * src/roff/groff/pipeline.c: Declare strcasecmp.
2143 (run_pipeline) [_WIN32]: Use function name variants which don't
2145 Fix stream handling.
2147 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
2149 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
2150 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
2151 for platforms which use the native Win32 runtime libraries.
2152 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
2154 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
2155 QUOTE_ARG_REALLOC_ERROR): Fix string.
2157 * src/preproc/html/pre-html.cpp: Remove declaration of
2159 Don't use __MINGW32__.
2160 s/DEBUG_FILE/DEBUG_FILE_DIR/.
2161 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
2162 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
2163 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
2164 calls to `set_redirection' and `WAIT'.
2165 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
2166 Fix calls to `set_redirection' and `save_and_redirect'.
2167 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
2168 to `set_redirection' and `save_and_redirect'.
2169 (usage): Fix message.
2170 (makeTempFiles, main): Use `DEBUG_FILE'.
2172 2004-02-21 Werner LEMBERG <wl@gnu.org>
2174 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
2176 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
2178 * src/libs/libgroff/quotearg.c: New file, providing proper argument
2179 quoting for MSVC's spawn* and exec* functions.
2180 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
2181 spawnvp with proper quoting for MSVC.
2183 * src/libs/libgroff/assert.cpp (program_name),
2184 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
2185 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
2187 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
2189 * src/include/error.h (program_name): Declare as `extern "C"'.
2190 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
2192 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
2194 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
2196 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
2198 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
2200 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
2202 (sbasename) [__MSDOS__ || ...]: New function.
2203 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
2205 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
2206 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
2208 Use STDOUT_FILENO instead of hardcoded file handle.
2209 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
2211 2004-02-19 Werner LEMBERG <wl@gnu.org>
2213 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
2214 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
2216 2004-02-18 Werner LEMBERG <wl@gnu.org>
2218 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
2219 new font and mapping files.
2221 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
2222 Keith Marshall <keith.d.marshall@ntlworld.com>
2224 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
2225 an input pipe. This is needed for the MSVC compiler to make troff's
2228 * src/roff/troff/div.cpp: Include nonposix.h.
2229 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
2231 2004-02-17 Werner LEMBERG <wl@gnu.org>
2233 * font/devlj4/generate/special.awk: New script.
2234 * font/devlj4/generate/Makefile (S): Use special.awk.
2235 * font/devlj4/*: Regenerated, including the following new files:
2236 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
2237 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
2238 * NEWS: Document new lj4 fonts and revised hpftodit.
2240 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
2242 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
2244 2004-01-25 Werner LEMBERG <wl@gnu.org>
2246 * src/libs/libgroff/progname.cpp: Replaced with...
2247 * src/libs/libgroff/progname.c: New file.
2248 * src/libs/libgroff/Makefile.sub: Updated accordingly.
2250 2004-01-17 Werner LEMBERG <wl@gnu.org>
2252 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
2254 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
2256 * font/devlj4/generate/wingdings.map,
2257 font/devlj4/generate/symbol.map: Include unnamed glyphs.
2258 Use groff glyph names where possible.
2259 * src/devices/grolj4/lj4_font.man: Minor updates.
2261 2004-01-13 Werner LEMBERG <wl@gnu.org>
2263 * tmac/www.tmac (DC): Handle TTY devices.
2265 * doc/webpage.ms: Document viewCVS from ffii.org.
2266 * NEWS, README: Updated.
2268 * src/roff/groff/groff.man: Mention lj4_font man page.
2270 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2272 (FONTS): Add SYMBOL and WINGDINGS.
2273 (SYMBOL, WINGDINGS): New targets.
2275 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
2277 * src/devices/grolj4/lj4_font.man: New man page.
2278 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2279 * src/devices/grolj4.man: Mention lj4_font man page.
2281 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2282 * src/utils/hpftodit/hpftodit.man: Document it.
2284 Remove details about fonts (which are now in lj4_font.man).
2286 * font/devlj4/generate/symbol.map,
2287 font/devlj4/generate/wingdings.map: New files.
2289 2004-01-12 Werner LEMBERG <wl@gnu.org>
2291 * README: Mention ffii's viewcvs access.
2293 2004-01-09 Werner LEMBERG <wl@gnu.org>
2295 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2297 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
2299 Revert most of the change from 2004-01-03 to better control used
2302 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2303 (text_symbol_sets, special_symbol_sets): New arrays.
2304 (symbol_set_table): New global variable.
2305 (read_symbol_sets): Use search order given in the text_symbol_sets
2306 and special_symbol_sets arrays. If command line flag -a is not
2307 given, search both arrays.
2308 (output_charset): Require x_height_tag only for command line flag -i.
2310 2004-01-06 Werner LEMBERG <wl@gnu.org>
2312 Implement string-valued registers \n[.m] and \n[.M] to return the
2313 name of the current drawing and background color, respectively.
2315 * src/roff/troff/symbol.h: Moved to...
2316 * src/include/symbol.h: Here.
2317 Small fixes to make it work outside of the `troff' directory.
2318 * src/roff/troff/symbol.cpp: Moved to...
2319 * src/libs/libgroff/symbol.cpp: Here.
2320 Small fixes to make it work outside of the `troff' directory.
2322 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2323 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2326 * src/include/color.h: Include symbol.h.
2327 (color): Add new field `nm'.
2328 * src/libs/libgroff/color.cpp (color::color): Updated.
2330 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2331 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2332 src/roff/troff/reg.cpp: Don't include symbol.h.
2334 * src/roff/troff/env.cpp: Don't include symbol.h.
2335 (environment::get_glyph_color_string,
2336 environment_get_fill_color_string): New member functions.
2337 (init_env_requests): Handle `.m' and `.M' registers.
2338 * src/roff/troff/input.cpp: Don't include symbol.h.
2339 (default_symbol): Moved to symbol.cpp/symbol.h.
2340 (do_glyph_color, do_fill_color, define_color): Pass symbol name
2341 to color constructor.
2342 * src/roff/troff/env.h: Updated.
2344 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2345 Document new registers.
2347 2004-01-05 Werner LEMBERG <wl@gnu.org>
2349 * src/roff/troff/node.cpp (space_node::get_breakpoints,
2350 space_node::nbreaks): Protect against zero `next' field.
2352 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
2354 In hpftodit, use the symbol sets offered in the TFM.
2356 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2357 (symbol_set, text_symbol_sets, special_symbol_sets,
2358 symbol_set_table): Removed.
2359 (get_printcode): Removed.
2360 (read_symbol_sets): Initialize `symbol_set' field with
2362 Simplify code to just use the `kind' value.
2363 (output_charset): Improve output formatting.
2364 (dump_symbols): Simplified.
2366 2004-01-02 Werner LEMBERG <wl@gnu.org>
2368 * font/devlj4/generate/text.map: Add more MSL numbers.
2370 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
2372 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2373 (text_symbol_sets): Add more symbol sets.
2374 (debug_flag): New static variable (moved from `main').
2375 (get_printcode, show_symset): New functions.
2376 (main): Remove `debug_flag'.
2377 (output_charset): Use `show_symset'.
2378 (dump_symbols): Use `show_symset'.
2379 Print symsets for all glyphs.
2380 (read_map): Actually call `unicode_to_ucode_make' but this time
2383 2004-01-01 Werner LEMBERG <wl@gnu.org>
2385 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2386 Fix placement of comments.
2388 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
2390 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2391 option `-d' is given.
2392 (output_charset): Improve warning messages to give more information.
2393 (dump_symbols): Make information more precise.
2395 (read_map): Don't call unicode_to_ucode_name; the glyph names must
2396 appear as-is and shouldn't be decomposed.
2398 2003-12-31 Werner LEMBERG <wl@gnu.org>
2400 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2401 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2402 (FONTS): Add TrueType font families Arial and Times New Roman.
2403 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2404 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2407 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
2409 * test-groff.in (SEP): Quote value.
2410 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2411 `tem' to `char*' to avoid deallocation of a pointer to a constant
2412 object which some compilers don't like.
2414 2003-12-31 Werner LEMBERG <wl@gnu.org>
2416 * font/devlj4/generate (text.map, special.map): Rewritten to work
2417 with the new hpftodit version.
2419 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
2421 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2422 set and 8bit character code for all glyphs also.
2424 2003-12-30 Werner LEMBERG <wl@gnu.org>
2426 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2428 2003-12-29 Werner LEMBERG <wl@gnu.org>
2430 More fixes for MSVC compiler.
2432 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2435 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2436 STDERR_FILENO) [_MSC_VER]: Define conditionally.
2437 (getpid) [_MSC_VER]: Remove.
2438 Include direct.h and process.h conditionally.
2440 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2441 parentheses for a_delete.
2443 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2445 * test-groff: Replaced with...
2446 * test-groff.in: This new template to handle path separator
2449 * configure.ac: Check for direct.h and process.h.
2450 Generate test-groff script.
2451 * configure, src/include/config.hin: Regenerated.
2453 2003-12-28 Werner LEMBERG <wl@gnu.org>
2455 Add integral extension glyph.
2456 Add new option `-x' to afmtodit to suppress use of built-in AGL.
2458 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2460 * font/devps/generate/textmap: Provide entry for `integralex' to
2461 override (old) PUA value of the AGL.
2462 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2463 * font/devps/*: Regenerated.
2465 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2466 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2468 2003-12-27 Werner LEMBERG <wl@gnu.org>
2470 Add forgotten `coproduct' symbol (already available for DVI).
2472 * font/devhtml/R.proto, font/devps/generate/textmap,
2473 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2474 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2475 U+2210 (\[coproduct]).
2477 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
2479 hpftodit has been extended to handle TrueType metric files and
2480 more glyphs. See hpftodit.man for more details.
2482 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
2483 ctype.h, and unicode.h.
2484 s/msl/charcode/ everywhere since we now handle Unicode values also.
2485 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2486 Use it where appropriate.
2487 (MULTIPLIER): Replaced with...
2488 (multiplier): New global static variable.
2490 (tag_type): Add more TFM tags.
2491 (tag_name): New array.
2492 (ENUM_TYPE, FLOAT_TYPE): Removed.
2493 (BYTE_TYPE): New value assigned.
2494 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2495 (text_symbol_sets, special_symbol_sets): Extended to cover more
2497 (check_type): Add return value.
2498 (check_units): Add parameters to get ppi and upem values.
2499 Handle TrueType TFM data.
2500 (output_font_name): New function.
2501 (output_charset): Add parameter to handle TFM type.
2502 Handle TrueType TFMs also.
2503 (em_fract): New macro.
2504 (dump_tags): Be much more verbose and handle more tags.
2505 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2506 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2508 (read_map): Add parameter to handle TFM type.
2509 Handle both MSL and Unicode mappings.
2510 (main): Add two new command line options `-a' and `-q'.
2511 Updated to make use of new functions.
2514 * src/utils/hpftodit/hpuni.cpp: New file.
2516 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2519 2003-12-25 Werner LEMBERG <wl@gnu.org>
2521 * src/include/nonposix.h (read) [_MSC_VER]: Define.
2523 2003-12-24 Werner LEMBERG <wl@gnu.org>
2525 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2526 by Michail Vidiassov <master@iaas.msu.ru>.
2528 2003-12-20 Werner LEMBERG <wl@gnu.org>
2530 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2532 Add missing latin-2 glyphs.
2533 * font/devutf8/R.proto: Add missing latin-2 glyphs.
2535 * tmac/troffrc: Load `composite.tmac' earlier.
2537 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2538 u00{53,73}_0327, and u0049_0307.
2539 * tmac/X.tmac: Add u00{47,67}_0306.
2540 * tmac/tty-char.tmac: Use composite glyph names for readability.
2544 * src/include/unicode.h: Remove `extern' keywords.
2546 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
2548 * tmac/latin5.tmac: New file.
2550 2003-12-19 Werner LEMBERG <wl@gnu.org>
2552 Add some glyphs needed for Turkish.
2554 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2557 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
2558 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2559 u00{53,73}_0327, and u0049_0307.
2561 2003-12-18 Werner LEMBERG <wl@gnu.org>
2563 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2565 Remove trailing zeros.
2567 2003-12-17 Werner LEMBERG <wl@gnu.org>
2569 Make \? transparent to end-of-sentence recognition.
2571 * src/roff/troff/input.cc (non_interpreted_node): Add
2572 `ends_sentence' member function.
2574 2003-12-16 Werner LEMBERG <wl@gnu.org>
2576 * doc/groff.texinfo: Document `dt' request correctly.
2577 Other minor typographical improvements.
2579 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
2581 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2583 2003-12-10 Richard Stallman <rms@gnu.org>
2585 * LICENSE: Better wording.
2587 2003-12-09 Werner LEMBERG <wl@gnu.org>
2589 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2590 * configure, NEWS: Updated.
2592 2003-12-08 Werner LEMBERG <wl@gnu.org>
2594 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2596 2003-12-07 Bernd Warken <bwarken@mayn.de>
2600 2003-12-07 Werner LEMBERG <wl@gnu.org>
2602 * INSTALL: Improved.
2604 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2606 Use path separator character of target platform for compiled-in
2609 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2610 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2611 * configure: Regenerated.
2612 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2614 2003-12-05 Werner LEMBERG <wl@gnu.org>
2616 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2617 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2619 2003-12-04 Bernd Warken <bwarken@mayn.de>
2621 * LICENSE: New file.
2623 2003-12-03 Werner LEMBERG <wl@gnu.org>
2625 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2626 ligatures present in AFM files since groff currently only
2627 understands some standard ligatures and nothing else.
2629 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
2631 * src/roff/groff/groff.cpp (main): Don't run the spooler if
2634 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2637 Don't use Unix wait flags.
2639 2003-12-02 Werner LEMBERG <wl@gnu.org>
2641 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2642 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2643 src/roff/troff/uniuni.cpp: Moved to...
2644 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2645 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2646 src/libs/libgroff/uniuni.cpp: Here.
2648 * src/include/Makefile.sub.old (HDRS),
2649 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2650 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2652 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2654 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2658 2003-12-01 Werner LEMBERG <wl@gnu.org>
2660 * groff.texinfo: Document special behaviour of `.vs 0'.
2661 Improve documentation of `cflags' request.
2664 2003-11-29 Werner LEMBERG <wl@gnu.org>
2666 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2667 * font/devlj4/CORONET: Regenerated.
2669 2003-11-24 Werner LEMBERG <wl@gnu.org>
2671 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2672 if processing hyphenation patterns in traditional mode.
2673 Improve error messages.
2675 2003-11-20 Werner LEMBERG <wl@gnu.org>
2677 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2678 troff_output_file::put_char): Fix type of local variable `c'.
2680 2003-11-19 Werner LEMBERG <wl@gnu.org>
2682 * src/roff/groff/pipeline.c (P): Removed. Updated all function
2684 (i_to_a): Removed. libgroff already provides this function.
2685 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2687 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
2689 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2692 2003-11-17 Werner LEMBERG <wl@gnu.org>
2694 * COPYING: Use correct version.
2696 2003-11-11 Werner LEMBERG <wl@gnu.org>
2698 LynxOS 4.0.0 doesn't declare vfprintf.
2700 * configure.ac: Check for vfprintf.
2701 * configure: Regenerated.
2702 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2703 * src/include/config.hin: Regenerated.
2705 2003-11-10 Werner LEMBERG <wl@gnu.org>
2707 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2709 * configure.ac: Check for vsnprintf.
2710 * configure: Regenerated.
2711 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2713 * src/include/config.hin: Regenerated.
2715 2003-11-09 Werner LEMBERG <wl@gnu.org>
2717 * aclocal.m4: Updated syntax to autoconf 2.59.
2718 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2719 Don't check for gsos2.
2720 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
2721 working abs_top_srcdir and abs_top_builddir.
2723 * configure.ac: Updated syntax to autoconf 2.59.
2724 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2725 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2726 * configure: Regenerated.
2728 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2729 s/@groff_top_builddir@/@abs_top_builddir@/.
2731 * src/roff/groff/pipeline.c (xstrsignal):
2732 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2734 2003-11-07 Werner LEMBERG <wl@gnu.org>
2736 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2737 make start angle smaller than end angle to circumvent a bug in tpic
2738 handling of some versions of dvipdfm (and dvipdfmx).
2740 2003-10-30 Werner LEMBERG <wl@gnu.org>
2742 * src/devices/grops/grops.man: Improve section on creating EPS.
2744 2003-10-29 Werner LEMBERG <wl@gnu.org>
2746 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2749 2003-10-28 Werner LEMBERG <wl@gnu.org>
2751 * doc/groff.texinfo: Fix documentation of `.if'.
2753 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
2755 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2756 the form `uniXXXX' also.
2758 2003-10-27 Werner LEMBERG <wl@gnu.org>
2760 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2761 contrib/pic2graph/pic2graph.sh: Implement secure management of
2763 Pass `-P-pletter' to groff to avoid data outside of the converted
2764 area -- some versions of `convert' (for example 5.3.8) don't check
2765 the bounding box of the image but always use a fixed image size
2766 (letter paper format).
2767 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2768 contrib/pic2graph/pic2graph.man: Updated.
2770 * src/roff/groff/groff.man: Document $TMP and $TEMP.
2772 2003-10-26 Werner LEMBERG <wl@gnu.org>
2774 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2775 troff_output::simple_ellipse, troff_output::simple_arc,
2776 troff_output::simple_line, troff_output::simple_spline,
2777 troff_output::simple_polygon): Insert a space before arguments.
2778 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2779 latter doesn't produce a node, so the following `.sp -1' would do
2781 Don't emit `.sp -1' after \M. This also doesn't produce a token
2782 (and we don't have to care about compatibility mode).
2783 (troff_output::set_color, troff_output::reset_color): Don't emit
2784 `.sp -1' after \M and \m.
2786 * src/roff/troff/input.cpp (old_have_input): New global variable.
2787 (input_stack::get): Handle `old_have_input'.
2788 (process_input_stack) <token::TOKEN_NEWLINE>: Call
2789 `trapping_blank_line' depending on `old_have_input', not
2792 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
2794 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2795 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2796 default directory names for temporary files.
2797 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2799 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2800 [__MSDOS__] (run_pipeline): Honour environment variables.
2801 Don't use `tmpnam' but `tempnam' to work around messy
2804 * README.MinGW: New file.
2806 2003-10-16 Werner LEMBERG <wl@gnu.org>
2808 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2809 `(*t)->next' without testing validity of `*t'.
2810 (usage): Make it more readable.
2812 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2814 Make html device run under both MS-DOS and Win32.
2816 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2817 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2818 spawn or fork+exec has to be used, and whether parent must sleep
2819 until the child process terminates. Used in
2820 `char_buffer::run_output_filter'.
2821 (copyofstdoutfd): Removed.
2822 (char_buffer): Replace `write_file_html' and `write_file_troff'
2823 member functions with `emit_troff_output' and `run_output_filter'.
2824 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2826 (replaceFd): Replaced with...
2827 (set_redirection): New auxiliary function.
2828 (waitForChild): Replaced with...
2829 (save_and_redirect): New auxiliary function for.
2831 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2834 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2836 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2837 (GROFF_LIBC): New function.
2838 * configure.ac: Call GROFF_LIBC.
2840 * configure: Regenerated.
2842 * src/include/lib.h: Handle __MINGW32__.
2843 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2844 Add macro for `pipe'.
2847 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2850 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2853 2003-10-13 Werner LEMBERG <wl@gnu.org>
2855 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2858 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2861 2003-10-12 Werner LEMBERG <wl@gnu.org>
2863 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2864 src/roff/troff/input.cc (usage): Updated.
2866 * NEWS, doc/groff.texinfo: Updated.
2868 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
2870 * src/libs/libgroff/searchpath.cpp
2871 (search_path::open_file_cautious): New function which also handles
2872 `-' as stdin and stdout depending on the access mode.
2873 * src/include/searchpath.h (search_path): Updated.
2875 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2876 * src/devices/grops/ps.h: Include `searchpath.h'.
2877 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2878 Open resource file with `include_search_path.open_file_cautious'.
2879 * src/devices/grops/grops.man: Document new `-I' switch.
2881 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2882 (main), src/devices/grolj4/lj4.cpp (main),
2883 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2885 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2887 (include_search_path): New global variable.
2888 (include_path_append): Removed.
2889 (main): Use `include_search_path.command_line_dir' to handle `-I'.
2890 (do_file): Simplify, using new
2891 `include_search_path.open_file_cautious'.
2893 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2895 (main): Pass arguments to `-I' to both troff and devices.
2896 Improve handling of `-V'.
2897 * src/roff/groff/groff.man: Document changes to -I and -V.
2899 * src/roff/troff/input.cpp (include_search_path): New global
2901 (next_file, source, ps_bbox_request, transparent_file,
2902 process_input_file): Use new
2903 `include_search_path.open_file_cautious'.
2904 (main) Handle `-I' switch.
2905 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2906 Use new `include_search_path.open_file_cautious'.
2907 * src/roff/troff/node.h: New extern symbol `include_search_path'.
2908 * src/roff/troff/troff.man: Document new `-I' switch.
2910 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
2912 Support multiple calls of .Lb in LIBRARY section.
2914 * tmac/doc-common (doc-in-library-section): New register.
2915 (doc-section-library): New string.
2916 (Sh): Set `doc-in-library-section'.
2918 * tmac/doc-syms (Lb): Insert breaks before and after arguments
2919 if in LIBRARY section.
2920 * tmac/doc.tmac (doc-save-global-vars): Updated.
2921 * NEWS, tmac/groff_mdoc.man: Updated.
2923 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
2925 * tmac/doc-common (doc-default-operating-system): New variable.
2928 2003-09-08 Werner LEMBERG <wl@gnu.org>
2930 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2932 2003-08-31 Werner LEMBERG <wl@gnu.org>
2934 * contrib/mom/Makefile.sub: Fix last change to make it really work.
2935 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2936 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2937 $(DEVFILES) are not empty.
2938 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2940 2003-08-26 Chuck Silvers <chuq@chuq.com>
2942 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2943 with parallel runs of `make'.
2945 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
2947 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2948 insert SORT_SEP. With certain combinations of sort specifications,
2949 refer sorted entries in the wrong order. In particular, entries
2950 with a missing field should be be sorted before all entries that
2951 have that field, before refer looks to the next field.
2953 2003-08-23 Werner LEMBERG <wl@gnu.org>
2955 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2956 g++ linker is used. Reported by Mark J. Reed
2957 <mark.reed@turner.com>.
2959 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2961 Add key character `x' to tbl which makes tbl call a user-defined
2962 macro on a table cell.
2964 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2965 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2966 `set_modifier' after printing the compatibility request.
2967 (set_modifier): Print call to `m->macro' if not empty.
2968 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2970 (process_format): Implement cases `x' and `X'.
2971 * src/preproc/tbl/tbl.man, NEWS: Updated.
2973 2003-08-15 Werner LEMBERG <wl@gnu.org>
2975 * doc/groff.texinfo: Minor fixes.
2977 2003-08-09 Werner LEMBERG <wl@gnu.org>
2979 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2981 2003-08-07 Werner LEMBERG <wl@gnu.org>
2983 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2984 argument list to nothing if there is no file to match. Use `ls' as
2985 a protection, similar to autoconf.
2987 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2988 empty argument lists.
2990 * doc/groff.texinfo: Improve documentation how vertical spacing
2991 and line breaks interact.
2994 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2996 2003-08-03 Werner LEMBERG <wl@gnu.org>
2998 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2999 EPS (using eps2eps or similar programs to compute the bounding box).
3001 2003-07-24 Werner LEMBERG <wl@gnu.org>
3003 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
3004 * doc/texinfo.tex: Updated from texinfo 4.6.
3005 * README.CVS: From now on we need texinfo 4.6.
3007 2003-07-23 Werner LEMBERG <wl@gnu.org>
3009 Add requests `dei1' and `ami1' for completeness.
3011 * src/roff/troff/input.cc (calling_mode): Remove
3012 CALLING_DISABLE_COMP.
3013 (comp_mode): New enumeration.
3014 (do_define_string, define_string, define_nocomp_string,
3015 append_string, append_nocomp_string): Updated.
3016 (do_define_macro): Add third parameter.
3017 (define_macro, define_nocomp_macro, define_indirect_macro,
3018 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
3019 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
3022 (init_input_requests): Add `dei1' and `ami1'.
3024 * tmac/trace.tmac: Handle de1 and am1.
3025 (de): Improve tracing message.
3026 (am): Add missing `do'.
3029 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3030 Document new requests.
3032 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
3034 Add option -G to .MPIMG to insert a gap between text and the image.
3036 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
3037 www-finish-left-ll): Updated.
3038 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
3039 (MPIMG): Make option -L and -R optional.
3040 Implement option -G.
3042 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
3044 * src/devices/grohtml/post-html.cpp
3045 (html_printer::do_file_components): Don't use `stdout' as lvalue
3046 since it can be a macro.
3048 2003-07-22 Werner LEMBERG <wl@gnu.org>
3050 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
3051 the corresponding test in aclocal.m4.
3053 2003-07-21 Werner LEMBERG <wl@gnu.org>
3055 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
3056 names but RGB values directly. Otherwise pnmtopng depends on
3057 an external file `rgb.txt' which maps colour names to values.
3059 2003-07-20 Werner LEMBERG <wl@gnu.org>
3061 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
3062 * configure, src/include/config.hin: Regenerated.
3064 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
3066 2003-07-19 Werner LEMBERG <wl@gnu.org>
3068 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
3070 2003-07-18 Werner LEMBERG <wl@gnu.org>
3072 * *.man: Switch to non-compatibility mode temporarily if GNU
3073 syntax extensions are used in the particular man page.
3075 * PROBLEMS: Add solutions for SGR problems.
3077 2003-07-17 Werner LEMBERG <wl@gnu.org>
3079 Don't ignore grotty's command line options if \X'tty: sgr ...' is
3080 used to change the drawing scheme.
3082 * src/devives/grotty/tty.cpp (bold_flag_option,
3083 underline_flag_option, italic_flag_option, reverse_flag_option,
3084 bold_underline_mode_option): New global variables.
3085 (update_options): New function.
3086 (tty_printer::special): Call update_options.
3087 (main): Don't set xxx_flag but xxx_flag_option, then call
3090 2003-07-14 Werner LEMBERG <wl@gnu.org>
3092 Make grotty emit proper Unicode box drawing characters for -Tutf8.
3094 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
3096 (hline_char, vline_char): New global variables.
3097 (tty_printer::tty_printer): Initialize them.
3098 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
3099 horizontal and vertical lines.
3100 (crossings): New global array.
3101 (tty_printer::end_page): Use it to determine the proper crossing
3102 character for -Tutf8.
3104 2003-07-12 Werner LEMBERG <wl@gnu.org>
3106 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
3107 (HTMLDOCFILES): Revert to `pic.html'.
3108 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
3110 2003-07-11 Werner LEMBERG <wl@gnu.org>
3112 * doc/pic.ms: Improve documentation of absolute coordinates.
3113 Document absolute positioning of pictures.
3115 * NEWS: Add new pic capability.
3117 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
3119 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
3122 2003-07-07 Werner LEMBERG <wl@gnu.org>
3124 Implement support for dashed and dotted ellipses in pic. Based on
3125 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
3127 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
3128 common_output::dashed_ellipse, common_output::dotted_ellipse): New
3129 functions. Ellipse arcs are approximated with circle arcs.
3130 * src/preproc/pic/common.h (common_output): Updated.
3131 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
3133 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
3135 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
3137 2003-07-06 Werner LEMBERG <wl@gnu.org>
3139 Make grotty work on platforms which have unsigned char as the
3140 default for char. Based on a patch by Thomas Klausner
3143 * src/devices/grotty/tty.cpp (schar): New typedef.
3144 Updated calls to declare_ptable and implement_ptable.
3145 (glyph): Use schar for back_color_idx and fore_color_idx.
3146 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
3147 (tty_printer::tty_color, tty_printer::tty_printer,
3148 tty_printer::color_to_idx, tty_printer::put_color): Updated.
3150 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
3152 * src/roff/nroff/nroff.sh: Add option -d for completeness.
3153 * src/roff/nroff/nroff.man: Updated.
3155 2003-07-05 Werner LEMBERG <wl@gnu.org>
3157 * NEWS, tmac/groff_www.man: Updated.
3158 * doc/Makefile.sub: Updated.
3160 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
3162 Implement support for multiple HTML output files.
3164 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
3165 -j command line option.
3167 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
3169 (file): New fields `new_output_file', `require_links',
3171 (file::file): Updated.
3172 (files::set_file_name, files::set_links_required,
3173 files::are_links_required, files::is_new_output_file,
3174 files::file_name, files::next_file_name): New functions.
3175 (header_desc): New fields `no_of_level_one_headings',
3177 (header_desc::header_desc): Updated.
3178 (header_desc::write_headings): Handle multiple files.
3179 (html_printer::write_header): Save file name in which header occurs.
3180 (html_printer::determine_header_level): Possibly split files on
3182 (html_printer::do_links, html_printer::troff_tag): Updated.
3183 (html_printer::insert_split_file, html_printer::do_job_name,
3184 html_printer::emit_link, html_printer::write_navigation,
3185 html_printer::do_file_components): New functions.
3186 (html_printer::~html_printer): Handle multiple files.
3187 (main): Handle command line option `-j'.
3189 * src/devices/grohtml/grohtml.man: Updated.
3191 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
3194 * tmac/www.tmac (JOBNAME): New macro.
3195 * tmac/s.tmac (SH-NO-TAG): New macro.
3196 (@SH): Call SH-NO-TAG.
3199 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
3201 * tmac/groff_mdoc.man: Improve documentation of punctuation
3204 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
3206 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
3208 2003-07-03 Werner LEMBERG <wl@gnu.org>
3210 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
3212 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
3214 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
3215 after `/*' and `*/'.
3217 (Fn, Fo): Reduce indentation in synopsis.
3219 * tmac/doc-common (doc-check-depth): New macro.
3220 (doc-end-macro, Sh, Ss): Use it.
3221 (Cd): Fix behaviour in synopsis.
3222 (In): Make it parsed and callable.
3223 If not in the synopsis, represent the C header file enclosed in
3225 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
3226 Use minus, not hyphen.
3228 * tmc/groff_mdoc.man: Updated.
3230 2003-07-01 Werner LEMBERG <wl@gnu.org>
3232 Integrated grap2graph, contributed by Eric S. Raymond.
3234 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
3236 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
3237 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
3239 2003-07-01 Colin Watson <cjwatson@debian.org>
3241 * src/xditview/*.c: Add prototypes, fix return types, add includes.
3242 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
3244 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
3246 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
3248 2003-06-31 Werner LEMBERG <wl@gnu.org>
3250 * doc/Makefile.sub (CLEANADD): Remove all files created by
3251 running `make groff.{pdf,dvi}'.
3253 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
3256 2003-06-30 Werner LEMBERG <wl@gnu.org>
3258 * Makefile.in (SHELL): Define as @SHELL@.
3259 (mkinstalldirs): Use $(SHELL).
3260 (MDEFINES): Add $(SHELL).
3261 * Makefile.comm (SHELL): Removed.
3263 2003-06-29 Werner LEMBERG <wl@gnu.org>
3265 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3266 The X11 documentation files use them.
3267 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3269 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
3271 * tmac/e.tmac (@C): Handle .ad also.
3273 2003-06-12 Werner LEMBERG <wl@gnu.org>
3275 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3277 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3278 Assign `n' even here. It is possible to construct a node
3279 immediately following an escape character:
3287 2003-06-10 Werner LEMBERG <wl@gnu.org>
3289 * README.WIN32: Removed.
3290 * MANIFEST: Updated.
3292 2003-06-07 Werner LEMBERG <wl@gnu.org>
3294 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3296 2003-06-05 Werner LEMBERG <wl@gnu.org>
3298 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3299 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3301 2003-06-03 Werner LEMBERG <wl@gnu.org>
3303 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3304 is done by the calling function.
3306 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
3308 * tmac/X.tmac: Fix definition of `em'.
3310 2003-05-22 Werner LEMBERG <wl@gnu.org>
3312 * src/roff/troff/input.cc (return_macro_request): Fix detection of
3315 2003-05-18 Werner LEMBERG <wl@gnu.org>
3317 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3318 to make items work which consist only of a tag.
3320 2003-05-17 Werner LEMBERG <wl@gnu.org>
3322 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3323 aren't stretched in a tag (this can fail with unformatted boxes).
3324 Instead, insert a break and go back one line.
3326 2003-05-16 Werner LEMBERG <wl@gnu.org>
3328 * src/roff/troff/input.cc (return_macro_request): If called with
3329 argument pop macro twice. We need this to trace `return'.
3331 * tmac/trace.tmac: Handle `return'.
3334 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3337 2003-05-15 Larry Kollar <kollar@alltel.net>
3339 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3340 registers `FPS', `FVS', and `FPD'.
3342 2003-05-15 Werner LEMBERG <wl@gnu.org>
3344 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3347 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
3349 * tmac/groff_mdoc.man: Slight improvements.
3351 2003-05-03 Werner LEMBERG <wl@gnu.org>
3353 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3354 `doc-header-space' after header line if register `cR' is set.
3356 2003-05-02 Werner LEMBERG <wl@gnu.org>
3360 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
3362 * tmac/doc-common (Nd): Use \[em].
3364 2003-05-01 Werner LEMBERG <wl@gnu.org>
3366 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3367 doc-footer-space): Initialize to 0.5i.
3368 (doc-setup-page-layout): Don't set doc-header-space and
3371 2003-04-30 Werner LEMBERG <wl@gnu.org>
3373 * REVISION: Set to 1.
3375 * doc/pic.ms: Document possible problems with `figname'.
3377 2003-04-29 Werner LEMBERG <wl@gnu.org>
3379 Version 1.19 released
3380 =====================
3382 * VERSION: Set to 1.19.
3383 * REVISION: Set to 0.
3384 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3386 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3387 Define charset as `US-ASCII' in html output.
3389 * tmac/www.tmac (ULE): Add missing scaling indicator.
3391 * win32-diffs: Removed.
3393 2003-04-28 Werner LEMBERG <wl@gnu.org>
3395 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3397 Document how to insert discardable whitespace with `.ss'.
3399 2003-04-27 Werner LEMBERG <wl@gnu.org>
3401 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3402 work with plain TeX also.
3404 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3406 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
3408 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3411 2003-04-24 Werner LEMBERG <wl@gnu.org>
3413 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3414 vbox with positive height and zero depth if in TeX mode.
3416 * NEWS: Document glyph name changes for grodvi and grolj4.
3418 2003-04-23 Werner LEMBERG <wl@gnu.org>
3420 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3421 * doc/pic.ms: Fixed.
3423 2003-04-21 Werner LEMBERG <wl@gnu.org>
3425 HP-UX 10.20 has `snprintf' but it isn't declared.
3427 * configure.ac: Add declaration test for snprintf.
3428 * configure: Regenerated.
3429 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3430 * src/include/config.hin: Regenerated.
3432 2003-04-19 Werner LEMBERG <wl@gnu.org>
3434 Add keyword `figname' to pic, specifying the name of the picture
3435 box in TeX mode. Based on a patch from William J Poser
3436 <wjposer@unagi.cis.upenn.edu>.
3438 * src/preproc/pic/pic.y: New token `FIGNAME'.
3439 (macro_name): New rule of type <str>.
3440 (placeless_element): Handle `FIGNAME'.
3441 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3442 * src/preproc/pic/main.cpp (graphname): New global variable.
3443 (do_picture): Initialize `graphname'.
3444 * src/preproc/pic/pic.h: Updated.
3445 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3448 (tex_output::text): Beautify output.
3449 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3450 `shaded' and `outlined' unconditionally.
3451 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3454 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3455 greater is necessary.
3457 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
3459 Add option -r to soelim to avoid emission of `.lf' lines.
3460 Add option -t to produces TeX comment lines instead of `.lf' lines.
3462 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3465 (main): Handle `-r' and `-t'.
3466 (set_location): Handle `raw_flag' and `tex_flag'.
3467 * src/preproc/soelim/soelim.man, NEWS: Updated.
3469 2003-04-17 Werner LEMBERG <wl@gnu.org>
3471 * tmac/hyphenex.sh: Replaced with...
3472 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3475 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3476 if --quiet is used for the configure script.
3477 * configure: Regenerated.
3479 2003-04-16 Werner LEMBERG <wl@gnu.org>
3481 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3482 Add `const' to second argument.
3483 (html_printer::add_table_end): Add `const' to argument.
3484 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3485 `const' to arguments.
3486 * src/devices/grohtml/html-text.h: Updated.
3488 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3489 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3492 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3493 cast for integer constant.
3495 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3496 (writeNbytes): Add `const' to first argument.
3497 (writeString): Add `const' to argument.
3498 (char_buffer::can_see): Add `const' to third argument.
3499 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3500 `const' to argument.
3501 * src/preproc/html/pushback.h: Updated.
3503 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3504 (include_path_append): Add `const' to argument.
3507 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3509 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3510 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3512 (unicode_decompose_init::unicode_decompose_init): Updated.
3513 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3515 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3516 * src/roff/troff/input.cc (process_startup_file): Add `const' to
3519 * tmac/hyphenex.sh: Make script more portable by using a here
3522 2003-04-15 Werner LEMBERG <wl@gnu.org>
3524 Renamed all `*.cc' files to `*.cpp'.
3525 Updated all configuration files, makefiles, and documentation.
3527 2003-04-14 Werner LEMBERG <wl@gnu.org>
3529 * tmac/hyphenex.sh: Slight improvements.
3531 2003-04-13 Werner LEMBERG <wl@gnu.org>
3533 * font/devascii/R.proto, font/devcp1037/R.proto,
3534 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3535 character slots with unnamed glyphs.
3537 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3538 (an-first): New global variable.
3539 (an-header): Emit vertical space between multiple man pages.
3541 2003-04-11 Werner LEMBERG <wl@gnu.org>
3543 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3546 2003-04-10 Werner LEMBERG <wl@gnu.org>
3548 * PROBLEMS: Revised.
3550 2003-04-10 Bernd Warken <bwarken@mayn.de>
3552 * doc/webpage.ms: Improved.
3554 2003-04-09 Werner LEMBERG <wl@gnu.org>
3556 Add register \n[.height] which returns the value of \H.
3557 Add register \n[.slant] which returns the value of \S.
3559 * src/roff/troff/env.cc (init_env_requests): Implement.
3560 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3563 2003-04-08 Werner LEMBERG <wl@gnu.org>
3565 * tmac/html.tmac: Move some of the data into html-end.tmac.
3566 Remove most of the character translations for eqn since html fonts
3567 now cover those characters.
3569 * tmac/html-end.tmac: New file.
3570 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3571 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3572 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3574 2003-04-07 Werner LEMBERG <wl@gnu.org>
3576 * man/groff_out.man: Document negative values of `N' if -Thtml is
3579 2003-04-06 Werner LEMBERG <wl@gnu.org>
3581 * Makefile.comm (depend.temp): Check location of YTABC.
3583 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3585 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3587 (groff_bin_path): Rename to GROFF_BIN_PATH.
3588 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3589 * doc/Makefile.in (TROFFBIN): New variable for troff
3591 (GROFFBIN): New variable for groff binary path.
3592 (groff_bin_path): Rename to GROFF_BIN_PATH.
3593 (TROFF): Use TROFFBIN.
3594 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3595 * doc/Makefile.sub (GROFFBIN): New variable for groff
3597 (groff_bin_path): Rename to GROFF_BIN_PATH.
3598 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3600 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3601 with INSTALL_SCRIPT.
3602 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3603 * Makefile.dev (all): Depend on DEVSCRIPTS.
3604 (install_dev): Likewise.
3605 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3607 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3608 (DEVGENSCRIPTS): New variable to hold generated scripts.
3610 2003-04-05 Werner LEMBERG <wl@gnu.org>
3612 * src/libs/libdriver/input.cc (IntArray::operator[],
3613 IntArray::get_data): Remove meaningless `const' in return value.
3615 * README.CVS: New file.
3617 2003-04-04 Werner LEMBERG <wl@gnu.org>
3619 Check for stdint.h in C++, not in C.
3621 * aclocal.m4 (GROFF_STDINT_H): New function,
3622 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3624 * configure, src/include/config.hin: Regenerated.
3625 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3628 Fix handling of in grohtml. To do this, troff emits `N'
3629 with a negative value, representing the width of the unbreakable
3630 space (only for -Thtml). grohtml then converts this back to
3631 and uses the value of N as its width.
3633 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3634 unbreakable_space_node::tprint): Emit `N-<width>'.
3635 * src/include/printer.h (printer::set_numbered_char): Make it
3637 Make members `font_table' and `nfonts' protected instead of private.
3638 * src/devices/grohtml/post-html.cc
3639 (html_printer::set_numbered_char): New member function.
3642 * src/libs/libgroff/maxfilename.cc:
3643 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3645 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3648 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
3650 * man/roff.man: Small fixes.
3652 2003-04-03 Werner LEMBERG <wl@gnu.org>
3654 Make groff independent from locale's numeric settings.
3656 * configure.ac: Check for `setlocale'.
3657 * configure, src/include/config.hin: Regenerated.
3659 * src/include/lib.h: Handle HAVE_SETLOCALE.
3661 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3662 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3663 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3666 * doc/groff.texinfo: Change dir category to `Typesetting'.
3667 (Man font macros): Mention that there is no space between arguments
3670 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3671 (*printer::change_color, *printer::change_fill_color): Add missing
3674 2003-04-02 Werner LEMBERG <wl@gnu.org>
3676 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3677 html_table::is_gap): Compute table widths after converting border
3678 positions to avoid rounding errors.
3680 2003-04-01 Werner LEMBERG <wl@gnu.org>
3682 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3683 `space_emitted' properly.
3685 2003-03-31 Werner LEMBERG <wl@gnu.org>
3687 * src/devices/grohtml/html-table.cc: Fix column width calculation.
3688 (html_table::set_linelength): Don't add 1.
3689 (html_table::add_indent): Don't subtract 1.
3691 * tmac/html.tmac: Set default page offset to zero.
3693 2003-03-30 Werner LEMBERG <wl@gnu.org>
3695 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
3697 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3698 unbreakable_space_node::tprint): New functions.
3699 (troff_output_file): Make space_char_hmotion_mode::tprint and
3700 unbreakable_space_node::tprint to friends.
3701 * src/roff/troff/node.h: Updated.
3703 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
3704 in the HTML standard).
3706 2003-03-29 Werner LEMBERG <wl@gnu.org>
3708 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3709 Otherwise, the following code
3718 produces `x a' instead of `xa'. This is a temporary fix, disabling
3719 font changes in diversions for -Thtml.
3721 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3723 (an-do-tag-html): Merge with ...
3724 (an-do-tag): This macro.
3725 Change code slightly to circumvent grohtml bug.
3726 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3728 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3729 html_table::is_gap): Round `width' properly.
3731 * tmac/html.tmac: Provide some default layout parameters for
3734 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3737 2003-03-28 Werner LEMBERG <wl@gnu.org>
3739 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3741 2003-03-27 Werner LEMBERG <wl@gnu.org>
3743 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3746 2003-03-20 Werner LEMBERG <wl@gnu.org>
3748 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3750 * doc/groff.texinfo: Updated.
3752 2003-03-19 Werner LEMBERG <wl@gnu.org>
3754 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3755 TOKEN_END_TRAP>: Reset `have_input'.
3757 2003-03-18 Werner LEMBERG <wl@gnu.org>
3759 * src/roff/groff/groff.man: Mention groff_trace man page.
3761 2003-03-16 Werner LEMBERG <wl@gnu.org>
3763 * Makefile.in (LIBEXT): New variable to indicate the file extension
3764 of library files. Computed heuristically from $(OBJEXT).
3765 (MDEFINES): Add $(LIBEXT).
3766 * Makefile.lib, Makefile.comm: Use it.
3768 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
3769 overlong lines into smaller chunks.
3770 (get_binary): New function.
3772 * src/utils/pfbtops/pfbtops.man: Updated.
3774 2003-03-15 Colin Watson <cjwatson@debian.org>
3776 * src/roff/groff/groff.man: Minor syntax fix.
3778 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
3780 * src/devices/grops/ps.cc (ps_printer::media_set,
3781 ps_printer::~ps_printer): Handle zero paper width and length.
3783 2003-03-13 Werner LEMBERG <wl@gnu.org>
3785 Add options -p and -l to grodvi.
3787 * src/devices/grodvi/dvi.cc: Include paper.h.
3788 (landscape_flag, user_paper_length, user_paper_width): New global
3790 (dvi_printer::begin_page): Emit `papersize' special.
3791 Set color after initialization of `cur_h' and `cur_v'.
3792 (main): Add options `-l' and `-p'.
3793 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3794 * src/devices/grodvi/grodvi.man, NEWS: Updated.
3796 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3798 2003-03-12 Werner LEMBERG <wl@gnu.org>
3800 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3801 * man/groff_tmac.man: This man page.
3802 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3805 * tmac/X.tmac: Don't load pspic.tmac.
3807 2003-03-11 Werner LEMBERG <wl@gnu.org>
3809 Make variable `pr' local to libdriver/input.cc. Based on a patch
3810 by Bernd Warken <bwarken@mayn.de>.
3812 * src/include/driver.h (pr): Removed.
3814 * src/libs/libdriver/input.cc (pr): New global variable.
3815 (do_file): Deallocate `pr'.
3816 * src/libs/libdriver/printer.cc (pr): Removed.
3818 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3819 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3820 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3821 (main): Don't delete `pr'.
3823 2003-03-10 Werner LEMBERG <wl@gnu.org>
3825 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3826 * tmac/papersize.tmac: New file.
3827 * tmac/troffrc: Include `papersize.tmac'.
3828 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3829 * tmac/an-old.tmac: Set LT to LL by default.
3831 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3832 doc/groff.texinfo: Updated.
3834 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3835 bug which caused all odd iso papers to have wrong dimensions.
3837 * src/devices/grops/ps.cc (user_paper_width): New global variable.
3838 (main) <'p'>: Set `user_paper_width' also.
3839 (ps_printer::media_width, ps_printer::media_height): Use values
3840 given with option `-p'.
3842 2003-03-09 Werner LEMBERG <wl@gnu.org>
3844 * src/include/nonposix.h: Provide default for SET_BINARY.
3846 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3847 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3850 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3851 (main): Treat \r\n as \n.
3853 2003-03-08 Werner LEMBERG <wl@gnu.org>
3855 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3856 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3858 2003-03-07 Werner LEMBERG <wl@gnu.org>
3860 Added support to access more than 256 glyphs in Type 1 fonts.
3862 * src/devices/grops/ps.cc (subencoding): New structure.
3863 (style): Add `sub' field.
3865 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3866 Add `set_subencoding', `get_subfont' and `encode_subfont' member
3869 (ps_printer::set_char): Use `set_subencoding'.
3870 (make_subencoding_name): New function.
3871 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3872 (ps_printer::~ps_printer): Emit subencoding definitions.
3874 * src/devices/grops/psrm.cc (valid_input_table): New array to
3875 properly support EBCDIC.
3876 (white_space): Add `\f'.
3877 (ps_get_line): Change first argument to be of type `string &'.
3878 Updated all callers.
3879 This allows to get lines of arbitrary length.
3880 Use `valid_input_table'.
3881 Remove warning about non-conforming PS line length. This seems
3882 not to be of great importance -- for example, dvips don't emit
3884 (PS_LINE_MAX): Removed.
3885 (matches_comment): Change first argument to be of type `string &'.
3887 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3889 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3890 %AGL_to_unicode, %default_ligatures): New hash tables.
3891 Read all map entries.
3892 Add unencoded characters.
3893 Check for default ligatures if there are no `L' entries.
3894 Print all kern entries.
3895 Print all characters in charset.
3896 * src/utils/afmtodit/afmtodit.man: Updated.
3898 * font/devps/*: Regerated all fonts.
3900 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3901 of characters, just use `.trin'. Otherwise the mapping depends
3902 on the font encoding.
3903 * tmac/ps.tmac: Add `fi' and `fl'.
3904 Improve `Fi' and `Fl'.
3905 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3906 * tmac/Xps.tmac: Fix `em'.
3910 2003-03-04 Werner LEMBERG <wl@gnu.org>
3912 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3915 2003-03-03 Werner LEMBERG <wl@gnu.org>
3917 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3919 * font/devps/generate/textmap: Remove entry `similarequal'.
3920 * font/devps/symbolmap: Updated.
3922 2003-03-02 Werner LEMBERG <wl@gnu.org>
3924 * src/libs/libgroff/font.cc (font::load): Fix error message for
3927 * src/devices/grops/grops.man: Improve documentation of the -b
3930 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3931 `ascii' and `cp1047'.
3933 2003-03-01 Werner LEMBERG <wl@gnu.org>
3935 Document composite glyphs and the `composite' request.
3937 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3939 2003-02-28 Werner LEMBERG <wl@gnu.org>
3941 * font/devdvi/generate/ec.map: Add some more Unicode entities.
3942 * font/devdvi/*EC: Updated.
3944 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3945 * tmac/latin1 (latin1-tr): Undo any previous mapping.
3946 * tmac/troffrc: Load `composite.tmac'.
3947 * tmac/Makefile.sub (NORMALFILES): Updated.
3949 * doc/groff.texinfo (Input Encodings): New section.
3952 2003-02-27 Werner LEMBERG <wl@gnu.org>
3954 * doc/texinfo.tex: New version 2003-02-11.06.
3956 * tmac/doc-common (Dt): Don't emit warning for unknown section.
3957 * tmac/groff_mdoc.man: Fix description of `Dt'.
3959 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
3961 * font/devps/prologue.ps: Fix for included Postscript that does
3962 a setpagedevice -- which is now safely ignored.
3966 * src/devices/grops/ps.cc: Now sets the page size in the generated
3967 document. This is done in two ways: Via a %%-comment for gv and
3968 the like, and via a PageSize and setpagedevice for programs that
3969 understands Postscript proper, like ps2pdf.
3971 * src/devices/grops/ps.h: New broken-flag to avoid page size
3972 definition, if required.
3974 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3976 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3977 Not really necessary due to the fix in prologue.ps, but cleaner:
3978 Such information does not belong in an .eps file.
3980 * doc/Makefile.sub: See doc/Makefile.in.
3982 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
3984 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3985 instead of P1 since the latter is broken in some versions of netpbm.
3986 * configure: Updated.
3988 2003-02-26 Larry Kollar <kollar@alltel.net>
3990 Make man pages more customizable.
3992 * tmac/an-old.tmac (FT): New register holding footer distance from
3994 (HF): New string holding the default heading font.
3995 (TH): Handle registers `IN' and `SN' set on the command line.
3997 (PT, BT): New strings to customize header and footer lines.
3998 (an-header, an-footer): Use them.
4000 * tmac/groff_man.man: Document changes.
4002 * doc/groff.texinfo: Document man changes.
4003 Document Ultrix extensions of man.
4005 2003-02-26 Werner LEMBERG <wl@gnu.org>
4007 * src/roff/troff/input.cc (do_width, do_if_request): Reset
4008 `have_input' after changing back to old environment.
4010 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
4011 function up to be defined before first call. This is necessary to
4012 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
4014 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
4015 the default font directory also. Based on a patch from James
4016 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
4017 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
4018 * src/utils/afmtodit/afmtodit.man: Document it.
4022 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
4024 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
4026 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
4027 (GROFF_PNMTOPS_NOSETPAGE): New macro.
4028 * configure.ac: Use it.
4029 * configure: Regenerated.
4030 * Makefile.in: Updated.
4032 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
4033 (CLEANADD): Add www.tmac-sed.
4034 (pnmtops_nosetpage): Define default.
4035 (install_data): Handle www.tmac-sed and substitute
4036 @PNMTOPS_NOSETPAGE@.
4037 (stamp-sed): Add www.tmac.
4038 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
4039 It now breaks URLs at suitable places.
4040 (www:substring_ok): New register set by...
4041 (www:@test_substring): New macro.
4042 (www:error): New alias to www-error.
4043 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
4045 (URL): Use www:url_breaks.
4046 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
4047 (CDS, CDE): New macros.
4049 2003-02-25 Werner LEMBERG <wl@gnu.org>
4051 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
4054 2003-02-24 Werner LEMBERG <wl@gnu.org>
4056 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
4057 can be negative also.
4059 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
4061 (read_char_table): Avoid negative ascenders.
4062 (output_charset): Add cast.
4063 * font/devlj4/*: Regenerated.
4065 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
4068 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
4069 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
4071 * font/devdvi/*: Regenerated.
4073 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
4074 normal width, while the previously used characters (U+2329 and
4075 U+232A) are classified as wide due to canonical equivalence with the
4076 CJK punctuation characters U+3008 and U+3009.
4078 * font/devutf8/R.proto: Updated.
4079 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
4081 * man/groff_char.man: Simplify handling of table traps by
4082 introducing `start block' and `end block' macros.
4083 (Ns, Ne, 2s, 2e, Ds, De): New macros.
4084 (DL): Make it work with Unix troff also.
4085 Fix code values of `la' and `ra'.
4087 * tmac/dvi.tmac: Define `<>' for CW and CWI.
4089 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
4091 * src/devices/grohtml/post-html.cc (element_list::~element_list):
4092 New destructor, fixing a major memory leak.
4094 2003-02-22 Werner LEMBERG <wl@gnu.org>
4096 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
4097 to be in conformance with Unicode 3.0 and newer.
4099 * font/devlj4/generate/text.map: Add `Eu'.
4100 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
4101 * font/devlj4/S: Regenerated.
4103 * man/groff_char.man: Completely rewritten.
4105 * doc/groff.texinfo: Fix description of request and macro arguments.
4107 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
4111 * src/devices/grohtml/html-table.cc (html_table::~html_table):
4112 Deallocate `columns' list.
4113 * src/devices/grohtml/post-html.cc (char_block::~char_block):
4115 (text_glob::text_glob_html, text_glob::text_glob_special,
4116 text_glob::text_glob_line, text_glob::text_glob_auto_image,
4117 text_glob::text_glob_tag): Avoid memory leaks.
4118 (text_glob::remember_table): Free memory before reassigning.
4120 2003-02-19 Werner LEMBERG <wl@gnu.org>
4122 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
4123 alias `hbar'), the Planck constant over two pi.
4125 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
4126 `+e' for position 34.
4127 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
4128 `u2662' and `u2661'.
4129 * font/devdvi/{MI,S}: Regenerated.
4130 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
4131 * font/devlbp/*: Add `hbar' alias.
4132 * font/devlj4/generate/special.map: Ditto.
4133 * font/devlj4/S: Regenerated.
4134 * font/devps/generate/symbolchars: Add `+e'.
4135 * font/devps/generate/textmap: Fix PS name for `-h'.
4137 * font/devps/symbolmap: Regenerated.
4139 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
4141 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
4143 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
4146 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
4148 * tmac/tty-char.tmac: Add `+e'.
4150 2003-02-17 Werner LEMBERG <wl@gnu.org>
4152 Another round trying to really fix problems with `have_input'.
4154 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
4155 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
4157 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
4158 handling if both foreground and background colors are default.
4160 * doc/groff.texinfo (Debugging): Document .lf differences to
4163 2003-02-16 Werner LEMBERG <wl@gnu.org>
4165 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
4166 null-bytes in created string.
4168 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
4169 alias_macro, lookup_request): Improve warning messages.
4171 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
4173 Free `last_image_filename'.
4175 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
4177 (imageList::createPage, imageList::createImage): Use `free', not
4179 (imageItem::~imageItem): Free `imageName'.
4180 (addRegDef): Use `strsave', not `strdup'.
4181 (get_resolution): Free `pathp'.
4183 2003-02-15 Werner LEMBERG <wl@gnu.org>
4185 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
4188 2003-02-14 Werner LEMBERG <wl@gnu.org>
4190 Add memory management for colors to deallocate unnamed colors
4193 * src/include/color.h (color): New members `free_list' and `next'.
4194 New member functions `new' and `delete'.
4196 * src/libs/libgroff/color.cc: Implement it.
4198 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
4199 for array size of new operator.
4201 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
4202 redundant comparison.
4204 * src/roff/troff/input.cc (word_space_node::reread,
4205 hmotion_node::reread): Avoid warning about unused parameter.
4206 (reset_output_registers): Remove redundant parameter.
4207 (define_color): Undo change 2003-02-12.
4209 * src/roff/troff/reg.h: Updated.
4211 * src/roff/troff/node.cc (troff_output_file::really_print_line,
4212 output_file::put_filename, real_output_file::really_put_filename,
4213 ascii_output_file::really_print_line,
4214 break_char_node::get_hyphen_list): Avoid warning about unused
4216 (suppress_node::tprint): Updated.
4218 * configure.ac: Check declaration for rand() and srand().
4219 * configure: Regenerated.
4221 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
4223 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
4226 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
4227 to avoid compiler warnings.
4229 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
4232 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
4234 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
4236 Updated all callers.
4238 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
4240 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
4241 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
4243 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
4244 Parameter is unused.
4245 (html_printer::add_table_end): Define parameter conditionally.
4246 * src/devices/grohtml/output.cc (simple_output::special): Parameter
4249 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
4250 (lbp_printer::set_char): Last parameter is unused.
4252 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
4254 2003-02-13 Werner LEMBERG <wl@gnu.org>
4256 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
4257 Make \D'f ...' move horizontally again for backwards compatibility.
4258 Replace it with \D'Fg ...' where appropriate to avoid dependency
4259 on horizontal resolution.
4261 * src/roff/troff/input.cc (do_get_long_name): New function.
4262 (get_long_name): Call it.
4264 (read_draw_node): Handle `\D'Fx ...' by calling ...
4265 (read_color_draw_node): New function.
4267 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4269 Pass it to `do_get_long_name' which is used instead of
4272 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4273 unnecessary value guard.
4274 (parse_D_command) <'f'>: Add horizontal shift.
4276 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4277 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4278 (FILL_MAX): Removed.
4280 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4283 2003-02-12 Werner LEMBERG <wl@gnu.org>
4285 * src/roff/troff/input.cc (do_name_test, do_expr_test,
4286 do_zero_width): Push `\n' if closing delimiter is missing.
4288 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4289 <'F'>: Make \F non-transparent at the beginning of line.
4290 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4291 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4294 (define_color): Free color in case of reassignment.
4296 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4297 @DefescListEnd): Use @Var, not @var.
4300 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4302 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4303 `shaded' and `outlined' arrays.
4304 (object_spec::object_spec): Initialize `shaded' and `outlined'.
4305 (graphic_object::set_fill_color, graphic_object::set_outline_color):
4307 (closed_object::set_fill_color): Ditto.
4308 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4310 (troff_output::reset_color): Use a_delete instead of free.
4311 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4313 2003-02-11 Werner LEMBERG <wl@gnu.org>
4315 * doc/groff.texinfo: Improve documentation of `ad'.
4316 Document that \D'f...' is dependent on the horizontal resolution.
4317 * man/groff_diff.man: Improve documentation of \D'f...'.
4319 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4320 compensating \h'...' for \D'f ...' since the latter no longer moves
4322 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4324 2003-02-10 Werner LEMBERG <wl@gnu.org>
4326 Improve error messages for `x F' (and `F') commands.
4328 * src/include/error.h: Add declaration for
4329 `current_source_filename'.
4330 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4331 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4332 parameter for source file string.
4333 Updated all callers.
4335 * src/libs/libdriver/input.cc: Add `current_source_filename'.
4336 (remember_source_filename): New function.
4337 (parse_x_command <'F'>, do_file <'F'>): Use it.
4339 2003-02-09 Werner LEMBERG <wl@gnu.org>
4341 Make grotty not emit warnings about unknown colors more than
4344 * src/devices/grotty/tty.cc: Include `ptable.h'.
4345 (TTY_MAX_COLORS): Removed.
4346 (DEFAULT_COLOR_IDX): Defined to -1.
4347 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4348 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4349 Change `tty_colors' to be a ptable.
4350 First arg of `put_color' is now `char'.
4351 New functions `make_rgb_string' and `tty_color'.
4352 (tty_printer::tty_printer): Use `tty_color'.
4353 (tty_printer::color_to_idx): Return value is now `char'.
4356 * src/include/color.h (color): Add `print_color' member function.
4357 * src/libs/libgroff/color.cc (color::print_color): Implement it.
4359 2003-02-08 Werner LEMBERG <wl@gnu.org>
4363 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4366 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4367 assume that value has been allocated with `new[]', thus use
4368 `a_delete' for deallocation.
4370 * src/libs/libdriver/input.cc (get_integer_arg,
4371 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4374 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4375 * src/libs/libgroff/nametoindex.cc
4376 (character_indexer::named_char_index): Use `new <type>[1]'.
4378 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4380 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4381 (split_text): Use `a_delete'.
4383 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4386 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4387 harmless memory leak.
4388 (hyphen_trie::read_patterns_file): Initialize `buf'.
4389 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4390 Initialize `current_fill_color'and `current_glyph_color'.
4391 * src/roff/troff/glyphuni.cc
4392 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4393 * src/roff/troff/uniuni.cc
4394 (unicode_decompose_init::unicode_decompose_init): Ditto.
4395 * src/roff/troff/uniglyph.cc
4396 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4398 2003-01-26 Werner LEMBERG <wl@gnu.org>
4400 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4401 `access' before calling `unlink'.
4402 (do_file): Handle __EMX__.
4404 * src/include/nonposix.h: Handle __EMX__.
4406 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4407 (fontpath,tmacpath): Use it.
4409 Sorted alphabetically.
4411 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4413 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4416 2003-01-27 Werner LEMBERG <wl@gnu.org>
4418 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4419 New files, copied from gnulib.
4420 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4421 * configure.ac: Updated.
4422 * configure: Regenerated.
4424 * src/include/config.hin: Regenerated.
4425 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4426 Don't define `strcasecmp' as `strcmp'.
4427 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4428 Dont define `strncasecmp' as `strncmp'.
4430 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4433 2003-01-26 Werner LEMBERG <wl@gnu.org>
4435 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4438 2003-01-25 Werner LEMBERG <wl@gnu.org>
4440 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4442 2003-01-24 Werner LEMBERG <wl@gnu.org>
4444 Add US-english hyphenation exceptions (converted from Barbara
4445 Beeton's hyphenation exception log reports which appear irregularly
4448 * tmac/hyphen.us: Updated to latest version.
4449 * tmac/README: Updated.
4450 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4451 * tmac/troffrc: Load `hyphenex.us'.
4452 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4453 * doc/groff.texinfo: Updated.
4455 2003-01-23 Werner LEMBERG <wl@gnu.org>
4457 Improve hyphenation slightly. This is a first step in redesigning
4458 the hyphenation algorithm to make it more flexible (e.g. allowing
4459 kerns and ligatures between the hyphenation character and the
4460 following character -- while not used normally in English, other
4461 languages like German would benefit).
4463 * src/roff/troff/env.cc (environment::hyphenate_line): Use
4464 assertion instead of if-clause.
4465 Let `get_hyphen_list' return the number of involved characters in
4466 the hyphenation pattern instead of computing it directly (which
4467 often yields too small values).
4468 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4469 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4472 2003-01-22 Werner LEMBERG <wl@gnu.org>
4474 Fixing a bug which caused groff to hang if the hyphenation exception
4475 dictionary tried to grow.
4477 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4478 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4479 pointer to dictionary.
4481 2003-01-20 Werner LEMBERG <wl@gnu.org>
4483 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4484 negative left italic correction.
4485 * src/utils/afmtodit/afmtodit.man: Document it.
4487 * font/devps/generate/Makefile (RFLAG): Add `-m'.
4488 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4489 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4493 2003-01-16 Werner LEMBERG <wl@gnu.org>
4497 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
4499 * src/preproc/refer/refer.man: Mention REFER environment variable.
4501 2003-01-05 Werner LEMBERG <wl@gnu.org>
4503 Similar to \[is], the square root glyph (\[sr]) and the square root
4504 extension glyph (\[radicalex]) are now text symbols. The new
4505 mathematical versions are called \[sqrt] and \[sqrtex],
4508 * font/devX*/S: Regenerated.
4509 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4510 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4511 * font/devdvi/EX, font/devdvi/S: Regenerated.
4512 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4513 * font/devlj4/generate/special.map: Add `sqrt'.
4514 * font/devlj4/S: Regenerated.
4515 * font/devps/generate/textmap: Add `sqrt'.
4516 * font/devps/S, font/devps/symbolmap: Regenerated.
4518 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4519 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4520 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4521 overlap horizontally.
4523 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4524 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4527 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4528 and `sqrtex' are overlapping glyphs.
4530 2003-01-04 Werner LEMBERG <wl@gnu.org>
4532 * font/devdvi/generate/texsy.map: Add `is'.
4533 * font/devps/symbolmap: Regenerated.
4534 * font/devdvi/*TC, MI, S: Regenerated.
4536 * tmac/dvi.tmac: Remove `is'.
4538 2003-01-03 Werner LEMBERG <wl@gnu.org>
4540 `is' is now a text symbol (only relevant for dvi). The math variant
4541 can be accessed with `integral'.
4543 * font/devX*/S: Regenerated.
4544 * font/devdvi/generate/texex.map: Remove `is'.
4545 * font/devdvi/EX: Updated.
4546 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4547 * font/devlj4/generate/special.map: Ditto.
4548 * font/devlj4/S: Regenerated.
4549 * font/devps/generate/textmap: Add `integral'.
4550 * font/devps/S: Regenerated.
4552 * tmac/dvi.tmac: Define `is'.
4554 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4556 * src/preproc/tbl/main.cc (process_format): Fix error message.
4558 2003-01-02 Werner LEMBERG <wl@gnu.org>
4560 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4561 * font/devps/textmap: Fix entries for `ne' and `nc'.
4562 * font/devps/symbolmap: Regenerated.
4564 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4565 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4566 `38', `58', `78', `-+', `|=', `nc', `ne'.
4568 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4569 Use `schar' for `aq'.
4570 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4571 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4572 * tmac/tty.tmac: Add `ne'.
4574 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4575 for fallback glyphs.
4577 2002-12-29 Werner LEMBERG <wl@gnu.org>
4581 * font/devX*/*: Regenerated.
4582 * font/devdvi/generate/ec.map: Remove `eq'.
4583 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4584 Assign `|=' to position 39.
4585 * font/devdvi/*EC, S: Regenerated.
4586 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4587 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4588 Assign `|=' to position 549.
4589 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4591 Add `uni2243' for `|='.
4593 * tmac/ec.tmac: Add `eq'.
4594 * tmac/dvi.tmac: Add `=~'.
4595 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4598 2002-12-21 Werner LEMBERG <wl@gnu.org>
4600 * font/devdvi/generate/tc.map: Remove `**'.
4601 * font/devdvi/*TC: Regenerated.
4602 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4604 * font/devutf8/NOTES: Updated.
4606 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4607 Don't give default parameter to `set_macro'.
4608 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4609 instead of `set_macro'.
4610 (charinfo::setx_macro): Implement it.
4611 (charinfo::set_macro): Don't change `mode'.
4613 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4614 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4615 * tmac/dvi.tmac: Define `!=' with `.schar'.
4617 2002-12-20 Werner LEMBERG <wl@gnu.org>
4619 * font/devX*/S: Regenerated.
4620 * font/devdvi/generate/ec.map: Remove `pl'.
4621 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4622 * font/devdvi/*{TC,EC}: Regenerated.
4623 * font/devhtml/R.proto: Add `-+'.
4624 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4625 * font/devlbp/*: Remove `or'.
4626 * font/devlj4/generate/special.map: Remove `or'.
4627 * font/devlj4/S: Regenerated.
4628 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4629 `seveneighths', `threeeighths'.
4631 Replace `minusplus' with `uni2213'.
4632 * font/devps/symbolmap: Regenerated.
4633 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4636 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4638 * src/roff/troff/node.cc (troff_output_file::put_char_width):
4639 Call glyph_color and fill_color even if tcommand_flag isn't set.
4640 (make_node, node::add_char): Check not ci->is_fallback but
4643 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4644 * tmac/ec.tmac: Add .rchar entry for `f/'.
4645 Don't remove `12', `14', `34'.
4646 Define `pl' to be always roman.
4647 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4648 Define `18', `38', `58', `78'.
4649 * tmac/tty.tmac: Add `-+'.
4650 * tmac/dvi.tmac: Define `f/'.
4651 (dvi-frac): Use `f/'.
4652 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4653 Define `18', `38', `58', `78'.
4655 2002-12-15 Colin Watson <cjwatson@debian.org>
4657 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4659 2002-12-10 Werner LEMBERG <wl@gnu.org>
4661 Add glyph `tno', a textual variant of `no'.
4663 * font/devX*/*: Regenerated.
4664 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4665 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4666 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4667 * font/devdvi/*: Regenerated.
4668 * font/devlbp/*: Add `tno'.
4669 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4670 * font/devlj4/*: Regenerated.
4671 * font/devps/generate/textmap: Replace `no' with `tno'.
4672 * font/devps/generate/symbolchars: Add `no'.
4673 * font/devps/*: Regenerated.
4675 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4677 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4678 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4682 * tmac/dvi.tmac: Replace most `\\' with `\E'.
4683 Add definition for `sd'.
4684 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4686 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4688 2002-12-08 Werner LEMBERG <wl@gnu.org>
4690 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4691 mode to avoid rounding errors.
4692 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4694 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4695 src/roff/troff/troff.man: Improve documentation of -T.
4697 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
4699 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4700 (run_pipeline) [_WIN32]: Provide working function without `fork'.
4702 2002-12-06 Werner LEMBERG <wl@gnu.org>
4704 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4705 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4706 Scaling Euro.sansserif glyphs down to have the same height as
4708 Removed unnecessary points; added some extrema.
4710 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4713 2002-12-04 Werner LEMBERG <wl@gnu.org>
4715 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4716 and `Euro.symbol.bold.slanted'.
4717 Improve some glyph offsets and widths.
4718 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4720 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4722 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4725 * tmac/europs.tmac: Updated to new glyph indices.
4726 Use Euro.symbol for font familiy `A'.
4728 * doc/groff.texinfo: Minor improvements.
4730 2002-12-02 Werner LEMBERG <wl@gnu.org>
4732 * font/devdvi/generate.tc.map: s/%O/%0/.
4733 * font/devdvi/*TC: Regenerated.
4735 * src/roff/troff/div.cc (init_div_requests): Sorted.
4737 * tmac/dvi.tmac: Remove `Ye'.
4738 * tmac/ec.tmac: Remove `Ye'.
4739 Add .rchar entry for `de'.
4741 * man/groff.man, man/groff_diff.man: Document register `.pe'.
4742 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4745 2002-11-30 Werner LEMBERG <wl@gnu.org>
4747 Add PS font for various Euro glyphs.
4749 * font/devps/generate/freeeuro.sfd: New master font file for
4751 * font/devps/generate/sfdtopfa.pe: New conversion script for
4753 * font/devps/generate/Makefile (FONTS): Add `EURO'.
4754 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4755 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4757 * font/devps/EURO: Generated from `freeeuro.afm'.
4758 * font/devps/download: Add `freeuro.pfa'.
4759 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4762 * tmac/europs.tmac: New file.
4763 * tmac/ps.tmac: Include `europs.tmac'.
4764 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4766 2002-11-29 Werner LEMBERG <wl@gnu.org>
4768 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4769 * font/devdvi/S: Regenerated.
4770 * font/devhtml/R.proto: Fix `CR' and `ci'.
4772 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4774 * font/devps/symbolmap: Regenerated.
4775 * font/devutf8/R.proto: Fix `CR' and `ci'.
4777 * font/devutf8/NOTES: Updated.
4779 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4782 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4784 * tmac/dvi.tmac: Add `lh' and `rh'.
4785 * tmac/Xps.tmac: Fix `lh' and `rh'.
4786 * tmac/X.tmac: Add `OK'.
4787 * tmac/lj4.tmac: Ditto.
4789 2002-11-24 Werner LEMBERG <wl@gnu.org>
4791 * font/devX*/S: Regenerated.
4792 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4793 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4794 * font/devdvi/generate/texsy.map: Remove `or' glyph.
4795 * font/devdvi/S: Regenerated.
4796 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4797 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4798 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4799 `bracketleftbt', `bracketrighttp', `bracketrightex',
4800 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4801 `braceex', `braceleftex', `bracerightex', `bracerighttp',
4802 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4804 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4805 * font/devutf8/NOTES: Updated.
4806 * font/devlj4/generate/special.map: Add glyph `braceex'.
4807 * font/devlj4/S: Regenerated.
4809 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4811 2002-11-14 Werner LEMBERG <wl@gnu.org>
4813 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4816 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4818 * doc/texinfo.tex: New version from texinfo 4.3.
4819 * doc/groff.texinfo: Updated for texinfo 4.3.
4820 Use @tie{} where appropriate.
4821 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4822 * font/devdvi/generate/tc.map: Remove `rn'.
4823 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4824 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4826 * font/devX100/*, font/devX100-12/*, font/devX75/*,
4827 font/devX75-12/*: Regenerated.
4829 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4830 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4831 Improve definition of `an'.
4832 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4834 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4835 * tmac/X.tmac: Add definition for `or'.
4836 * tmac/Xps.tmac: Undo change 2002-11-05.
4837 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4839 2002-11-11 Werner LEMBERG <wl@gnu.org>
4841 * src/roff/troff/node.cc (troff_output_file::put_char): Always
4844 2002-11-10 Werner LEMBERG <wl@gnu.org>
4846 Added three new requests `schar', `fschar', and `rfschar'. `schar'
4847 defines a glyph which is searched after the check for fonts declared
4848 with `.special' (and before the check for all mounted special
4849 fonts). `fschar' defines a glyph for a particular font which is
4850 searched after the check for fonts declared with `.fspecial' (and
4851 before the check for fonts declared with `.special'). `rfschar'
4852 removes glyphs defined with `fschar'.
4854 * src/roff/troff/token.h (char_mode): New enum.
4855 Declare do_define_character.
4856 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4858 (charinfo::is_fallback): Updated.
4859 (charinfo::is_special): New method.
4860 * src/roff/troff/input.cc (do_define_character): Add and use
4861 optional second parameter used as a prefix for font-specific glyph
4863 (define_character, define_fallback_character): Updated.
4864 (define_special_character): New function.
4865 (init_input_requests): Add `schar'.
4866 (charinfo::charinfo, charinfo::set_macro): Updated.
4867 * src/roff/troff/node.cc: Include `stringclass.h'.
4868 (make_glyph_node): Handle special glyphs defined with `.schar' and
4870 (define_font_special_character, remove_font_special_character): New
4872 (init_node_requests): Sorted.
4873 Add `fschar' and `rfschar'.
4874 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4875 Document new requests.
4877 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4878 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4880 2002-11-08 Werner LEMBERG <wl@gnu.org>
4882 Added new font `SC' (cmtex10) to devdvi.
4884 * devdvi/generate/Makefile (FONTS): Add `SC'.
4886 * devdvi/generate/textex.map: New map file for cmtex.
4888 * devdvi/Makefile.sub (DEVFILES): Updated.
4889 * tmac/dvi.tmac: Add fspecial entries for SC.
4890 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
4891 found before `S' since the font position of `SC' is lower due to the
4892 gaps in DESC's `font' line.
4893 * tmac/ec.tmac: Add a `special' call.
4896 * font/devhtml/R.proto: Remove double entry for `ti'.
4897 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4898 * tmac/tty-char.tmac: Remove entry for `bq'.
4899 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4900 * tmac/ec.tmac: Don't remove `aq' glyph.
4901 * tmac/X.tmac: Fix entry for `em'.
4902 Add entries for `fo' and `fc'.
4903 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4905 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4906 documentation of `special' and `fspecial' requests.
4908 2002-11-05 Werner LEMBERG <wl@gnu.org>
4910 * font/devascii/R.proto, font/devcp1047/R.proto,
4911 font/devlatin1/R.proto: Remove entry for `.i'.
4912 * font/devdvi/generate/textt.map: Add entry for `ad'.
4913 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4914 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4915 We need this for getting kerning values to compose `/l' and `/L'.
4916 * font/devdvi: Regenerated font definition files for CM fonts.
4917 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4918 * font/devutf8/R.proto: Ditto.
4919 Remove double entry for `ti'.
4921 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4922 for (groff) ligatures, `la', and `ra'.
4923 Add "'C", "'c", `IJ', and `ij'.
4924 Remove double entry for `ti'.
4925 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4927 Add "'C", "'c", `IJ', and `ij'.
4928 Fix entries for (groff) ligatures, `la', and `ra'.
4930 * tmac/ps.tmac (ps-achar): New macro.
4931 Define "'c" and "'C".
4932 * tmac/tty.tmac: Add entry for `.i'.
4933 * tmac/X.tmac (X-achar): New macro.
4934 Define "'c", "'C", and `:Y'.
4935 Add entries for `IJ' and `ij'.
4936 * tmac/Xps.tmac (Xps-achar): New macro.
4937 Define "'c" and "'C".
4938 Add entries for `IJ' and `ij'.
4939 * tmac/lbp.tmac (lbp-achar): New macro.
4940 Add fallback characters for all groff ligatures and many other
4942 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4943 Add entries for `/l' and `/L'.
4944 Define "'c" and "'C".
4945 Add entries for `IJ' and `ij'.
4947 2002-11-02 Larry Kollar <kollar@alltel.net>
4949 * PROBLEMS: Document how to solve Mac OS X compilation problems.
4951 2002-11-02 Werner LEMBERG <wl@gnu.org>
4953 Adding support for composite glyphs: \[xxx yyy ...] and the
4954 `composite' request.
4956 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4957 to Unicode-based glyph names.
4958 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4959 glyph names to groff glyph names.
4960 * src/roff/troff/uniuni.cc: New file for canonically decomposing
4961 Unicode-based glyph names.
4962 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4963 for handling Unicode glyph names.
4964 * src/roff/troff/input.cc: Include unicode.h.
4965 (composite_glyph_name): New function.
4966 (token::next) <'['>: Handle Unicode glyph names and composite
4968 (composite_dictionary): New dictionary for the `composite' request.
4969 (composite_request): Implement `composite' request.
4970 (init_input_requests): Add `composite'.
4971 Alphabetically sorted.
4972 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4974 (init_env_requests): Alphabetically sorted.
4975 Removed `tas' and `tar' (already commented out).
4976 * src/roff/troff/Makefile.sub: Updated.
4978 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
4980 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4983 2002-10-29 Werner LEMBERG <wl@gnu.org>
4985 Fix computation of .trunc register. Additionally, its value (and
4986 the value of the .ne register) is now always set before entering the
4989 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4990 `needed_space' before calling `space'.
4991 (top_level_diversion::space): Remove special code for 'sp before the
4993 Call `begin_page' with the discarded space as a parameter.
4994 (top_level_diversion::begin_page): Add optional parameter to set
4996 * src/roff/troff/div.h: Updated.
4998 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
5001 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
5002 (LP): Remove superfluous call to `br'.
5003 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
5004 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5006 2002-10-26 Werner LEMBERG <wl@gnu.org>
5008 * tmac/doc-ditroff: Remove useless switch/variable -rC.
5009 (doc-setup-header): Don't set page register `%'.
5010 * tmac/doc-nroff: Remove variable `C'.
5011 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
5012 (doc-setup-header): Don't set page register `%'.
5014 * tmac/doc-common (doc-header): Call `ns'.
5015 (doc-paragraph): Protect .sp with .br so that it survives traps
5016 possibly set by the user.
5017 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5019 * tmac/doc*: Replace ' with . for consistency if no effect.
5021 2002-10-26 Werner LEMBERG <wl@gnu.org>
5023 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
5024 so that it survives traps possibly set by the user.
5026 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
5027 (troff_output_file::set_font): Call flush_tbuf if necessary.
5028 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
5029 flush_tbuf and do_motion only if necessary.
5030 (troff_output_file::start_special,
5031 troff_output_file::put_char_width, troff_output_file::put_char,
5032 troff_output_file::draw): Updated.
5033 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5034 vmotion_node::tprint): Undo change 2002-10-23.
5036 2002-10-25 Werner LEMBERG <wl@gnu.org>
5038 * tmac/www.tmac (DC): Fix case of overlapping images.
5040 2002-10-23 Werner LEMBERG <wl@gnu.org>
5042 * src/roff/troff/node.cc (troff_output_file::fill_color,
5043 troff_output_file::glyph_color): Set current color before testing
5045 (troff_output_file::put_char_width, troff_output_file::put_char,
5046 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
5048 (troff_output_file::file_color, troff_output_file::glyph_color):
5050 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5051 vmotion_node::tprint): Move first, then call fill_color.
5053 2002-10-20 Werner LEMBERG <wl@gnu.org>
5055 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
5056 possible to use multiple main macro packages.
5058 2002-10-19 Werner LEMBERG <wl@gnu.org>
5060 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
5061 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
5062 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
5064 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
5065 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
5067 2002-10-16 Werner LEMBERG <wl@gnu.org>
5069 * NEWS, doc/webpage.ms: Updated.
5071 2002-10-14 Werner LEMBERG <wl@gnu.org>
5073 * src/roff/troff/node.cc (troff_output_file::put_char_width,
5074 troff_output_file::put_char, troff_output_file::fill_color,
5075 troff_output_file::glyph_color): Handle case where color pointer
5078 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
5080 Add the new -r option to grotty. It is similar to the -i option
5081 except it tells grotty(1) to use the "reverse video" attribute to
5082 render italic fonts.
5084 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
5085 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
5086 (tty_printer::make_underline, tty_printer::put_color,
5087 tty_printer::end_page): Use it.
5088 (main): Add -r switch.
5090 * src/devices/grotty/grotty.man: Document it.
5092 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
5094 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5095 cast to `unsigned char' to properly read patterns with 8bit
5098 2002-10-08 Werner LEMBERG <wl@gnu.org>
5100 * REVISION: Increased to 2.
5102 Version 1.18.1 released
5103 =======================
5105 2002-10-08 Werner LEMBERG <wl@gnu.org>
5107 * doc/webpage.ms, NEWS: Updated.
5109 2002-10-07 Werner LEMBERG <wl@gnu.org>
5111 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
5112 suppress additional whitespace after the header.
5114 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
5117 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
5119 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
5121 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
5122 (Dt): Use it to improve language localization (especially Russian
5125 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
5127 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
5128 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
5130 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
5132 Call `picurve' for BSPLINE.
5133 (HGPrintElt): Handle BSPLINE.
5134 * src/preproc/grn/README: Document it.
5136 2002-10-03 Werner LEMBERG <wl@gnu.org>
5138 * src/roff/troff/node.cc (break_char_node::col): New variable.
5139 Updated constructor.
5140 (space_node::tprint, word_space_node::tprint): Call `fill_color'
5142 (space_node::space_node): Remove assertion.
5143 (break_char_node::add_self): Pass color argument to space node.
5144 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
5146 * src/roff/troff/env.cc (environment::do_break,
5147 environment::add_padding): Ditto.
5149 2002-10-02 Werner LEMBERG <wl@gnu.org>
5151 Redesigning color support in troff. Colors are no longer
5152 represented as separate nodes but are now part of glyph nodes and
5153 friends. This fixes the current formatting misbehaviour due to the
5154 changes introduced on 2002-09-20. Some extra code is necessary for
5155 proper grotty support: Without adding color variables to
5156 space-related nodes, the background color would be changed too late.
5158 * src/roff/troff/node.h, src/roff/troff/node.cc:
5159 s/current_pagecolor/current_fill_color/.
5160 s/current_glyphcolor/current_glyph_color/.
5161 (glyph_color_node, fill_color_node): Removed.
5162 (node::get_glyph_color, node::get_fill_color): New virtual member
5164 (space_node::col): New variable.
5165 Updated constructors of space_node and derived classes accordingly.
5166 (hmotion_node::col): New variable.
5167 Updated constructors of hmotion_node and space_char_hmotion_node
5169 (vmotion_node::col): New variable.
5170 Updated constructor accordingly.
5171 (draw_node::gcol, draw_node::fcol): New variables.
5172 Updated constructor accordingly.
5173 (special_node::gcol, special_node::fcol): New variables.
5174 Updated constructors accordingly.
5175 (troff_output_file::put_char, troff_output_file::put_charwidth,
5176 troff_output_file::draw): Set glyph and fill color.
5177 (troff_output_file::start_special): Set glyph and fill color.
5178 Always set current font.
5179 (troff_output_file::fill_color, troff_output_file::glyph_color):
5180 Don't call `do_motion'.
5181 (glyph_node::gcol, glyph_node::fcol): New variables.
5182 Updated constructors of glyph_node and ligature_node accordingly.
5183 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
5185 (glyph_node::merge_glyph_node,
5186 kern_pair_node::add_discretionary_hyphen,
5187 node::add_discretionary_hyphen): Updated.
5188 (break_char_node::merge_self): Updated.
5189 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5190 vmotion_node::tprint): Handle color.
5191 (make_glyph_node, make_node, node::add_char): Updated.
5193 * src/roff/troff/env.cc (environment::space_newline,
5194 environment::space, environment::output_line, environment::do_break,
5195 environment::make_tab_node, environment::add_padding, title):
5197 (environment_switch, environment_copy): Don't add color nodes.
5199 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
5201 (token::next): Updated.
5202 \m and \M now are as transparent as \s.
5203 (process_input_stack, token::add_to_node_list, token::process,
5204 read_draw_node): Updated.
5205 (charinfo_to_node_list): Don't add color nodes.
5207 * doc/groff.texinfo: Updated.
5209 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
5211 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
5214 2002-09-27 Colin Watson <cjwatson@debian.org>
5216 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
5218 2002-09-23 Werner LEMBERG <wl@gnu.org>
5220 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
5222 (DEFAULT_LINEWIDTH_FACTOR): New macro.
5223 (linewidth_factor): New global variable.
5224 (lbp_printer::set_line_thickness): Fix case for size < 0, using
5226 (long_options): Add -w/--linewidth option.
5228 (main): Handle -w option to set linewidth_factor.
5229 (lbp_printer::lbp_printer): Initialize req_linethickness, not
5232 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
5234 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
5236 Fixed a bug in the line thickness setting code.
5238 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
5240 (lbp_printer::set_line_thickness): Pass environment as second
5242 Implement it actually.
5243 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
5244 and `set_line_thickness, depending on the current font size.
5246 2002-09-21 Werner LEMBERG <wl@gnu.org>
5248 Some Debian patches.
5250 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
5251 * src/roff/troff/node.cc (bracket_node::copy): Initialize
5254 2002-09-20 Werner LEMBERG <wl@gnu.org>
5256 * configure: Regenerated with autoconf 2.54.
5258 2002-09-20 Werner LEMBERG <wl@gnu.org>
5260 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
5262 Rename cur_fill_color to fill_color.
5263 * src/roff/troff/env.cc: Updated.
5265 2002-09-20 Werner LEMBERG <wl@gnu.org>
5267 * src/roff/troff/env.cc (title): Copy color status after processing
5269 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
5270 fill color nodes to reset colors properly.
5272 * tmac/www.tmac (DC): Fix color handling.
5274 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
5275 * doc/groff.texinfo: Fixing documentation of `tl' request.
5276 * doc/webpage.ms: Updated.
5278 2002-09-19 Werner LEMBERG <wl@gnu.org>
5280 * src/roff/troff/env.cc (environent_switch, environment_copy):
5281 Emit glyph and fill color nodes to initialize colors properly.
5283 2002-09-17 Colin Watson <cjwatson@debian.org>
5285 * src/roff/troff/env.cc (environment::set_glyph_color,
5286 environment::set_fill_color): Fix typo which prevented \m[] work
5289 2002-09-17 Werner LEMBERG <wl@gnu.org>
5291 Add left and right italic correction to non-slanted PS fonts. This
5292 is an experimental feature to improve image rendering of grohtml.
5294 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
5295 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
5296 * font/devps/*: All non-slanted fonts regenerated.
5299 2002-09-16 Werner LEMBERG <wl@gnu.org>
5301 Add a site-specific font directory.
5303 * Makefile.in (localfontdir, legacyfontdir): New variables.
5304 (fontpath): Use them.
5305 (MDEFINES, uninstall_dirs): Updated.
5306 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
5307 Remove `FONTPATH' and `MACROPATH'.
5309 * src/roff/troff/troff.man, NEWS: Updated.
5310 * doc/groff.texinfo (Font Directories): New section.
5313 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
5314 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
5315 src/preproc/grn/grn.man: Minor fixes.
5317 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
5318 Remove unused variable.
5320 2002-09-11 Werner LEMBERG <wl@gnu.org>
5322 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
5323 * man/groff_out.man: Fix documentation of 'N'.
5325 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
5327 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
5328 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
5330 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
5331 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5332 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5333 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5334 PRE_TAG>: Call `begin' with `FALSE'.
5336 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5338 * src/libs/libgroff/string.cc (string::extract): Fix position of
5339 terminating null byte.
5341 2002-09-08 Werner LEMBERG <wl@gnu.org>
5343 Add global option `nospaces' to tbl so that leading and trailing
5344 spaces in data items are ignored.
5346 * src/libs/libgroff/string.cc (string::remove_spaces): New member
5347 function to remove leading and trailing spaces.
5348 * src/include/stringclass.h: Updated.
5350 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5352 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5354 Fix typo in error messages.
5355 (process_data): Implement `nospaces' option.
5356 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5358 2002-09-07 Werner LEMBERG <wl@gnu.org>
5360 * src/include/config.hin: Add `HAVE_ISATTY'.
5361 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5363 * src/libs/libgroff/tmpname.cc: Include `time.h'.
5364 * src/libs/libdriver/input.cc (Char): Add `operator==' and
5365 `operator!=' for `char'.
5366 * doc/groff.texinfo: Replace @ifnottex block for top node with
5369 2002-09-06 Werner LEMBERG <wl@gnu.org>
5371 * doc/Makefile.in (.texinfo.html): Add -I switch.
5372 * doc/groff.texinfo: Add @ifnottex block for top node to make
5373 translation to HTML work.
5375 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
5377 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5378 (get_papersize, determine_vertical_offset): Removed.
5379 (char_buffer::do_image): Always specify letter size.
5381 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5384 2002-09-05 Werner LEMBERG <wl@gnu.org>
5386 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5387 default indentation.
5389 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
5391 * src/preproc/html/pre-html.cc (imageList::createPage): Use
5393 (generateImages): Clean up push-back buffer.
5395 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5397 * doc/groff.texinfo: Minor fixes.
5399 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5401 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5402 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5404 (determine_vertical_offset): Use LETTER_LENGTH.
5405 (createPage): Moved to ...
5406 (imageList::createPage): This.
5407 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5408 (imageList::getMaxX): New function.
5409 (createImage): Moved to ...
5410 (imageList::createImage): This.
5411 (imageList::createImages): New function.
5412 (generateImages): Read `maxx' directly.
5414 (scanArguments): Don't specify `gsPaper' for `-o'.
5415 (makeTempFiles): Call `xtmpfile' with the last argument set to
5418 2002-08-24 Werner LEMBERG <wl@gnu.org>
5420 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5421 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5422 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5423 * src/preproc/html/pushback.cc: Include nonposix.h.
5424 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5427 2002-08-23 Werner LEMBERG <wl@gnu.org>
5429 Use $(OBJEXT) for the object file extension.
5431 * Makefile.comm (.SUFFIXES): Add .obj.
5432 (.cc.obj, .c.obj): New implicit rules.
5433 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5434 (MDEFINES): Add EXEEXT and OBJEXT.
5435 * */Makefile.sub: s/.o/.$(OBJEXT)/.
5437 2002-08-22 Werner LEMBERG <wl@gnu.org>
5439 * INSTALL: Mention texinfo 4.2 as a prerequisite.
5441 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5443 * src/devices/grohtml/post-html.cc (colType): Make enum global to
5445 (html_printer::update_min_max, html_printer::add_table_end): New
5447 (html_printer::lookahead_for_tables): Use them.
5448 Reset page offset correctly.
5449 (html_printer::~html_printer): Add creation of creator comment up.
5451 2002-08-20 Werner LEMBERG <wl@gnu.org>
5453 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5454 * man/groff_tmac.man: Fix typos.
5455 * man/groff_font.man: Minor reordering.
5456 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5458 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5460 Avoid endless loops while scanning for tables.
5462 * src/devices/grohtml/post-html.cc (list::insert): Set
5464 (html_printer::next_horiz_pos): Add `text_glob' argument; update
5466 Return immediately if that argument is NULL.
5467 (html_printer::calc_nf): Don't test if `g' is NULL.
5468 (html_printer::lookahead_for_tables): Use
5469 `glyphs.move_right_get_data'.
5470 Don't test if `g' is NULL.
5472 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5474 A better fix, replacing fix 2002-08-15, for increasing SIZE.
5476 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5478 (char_block::char_block): Allocate `buffer'.
5479 (char_buffer::add_string): Use it.
5481 2002-08-15 Werner LEMBERG <wl@gnu.org>
5483 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5484 src/devices/grodvi/grodvi.man: Document default line thickness.
5486 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
5488 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5491 2002-08-14 Werner LEMBERG <wl@gnu.org>
5493 * doc/webpage.ms: Updated.
5495 2002-08-09 Werner LEMBERG <wl@gnu.org>
5497 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5500 2002-08-08 Aaron Campbell <aaron@monkey.org>
5502 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5505 2002-08-08 Werner LEMBERG <wl@gnu.org>
5507 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5510 Don't push back a space but a newline onto the stack.
5512 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
5514 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5517 * src/devices/grohtml/post-html.cc (html_printer::end_font,
5518 html_printer::start_font): Handle them.
5519 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5521 (html_text::do_bold): Don't reset italic and tt.
5522 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5523 * font/devhtml/DESC.proto: Add those fonts.
5524 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5526 2002-08-07 Werner LEMBERG <wl@gnu.org>
5528 * MORE.STUFF: Added gpresent.
5530 * tmac/trace.tmac: Show nesting level by a corresponding amount of
5531 whitespace before printing the logging message.
5533 2002-07-31 Colin Watson <cjwatson@debian.org>
5535 * src/devices/grohtml/html-table.cc (html_table::finish_row):
5536 Initialize `n' to zero. This fixes a segfault on ARM.
5538 2002-07-30 Werner LEMBERG <wl@gnu.org>
5540 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5542 2002-07-29 Werner LEMBERG <wl@gnu.org>
5544 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5547 2002-07-28 Colin Watson <cjwatson@debian.org>
5549 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5551 (html_printer::html_printer): Initialize `pointsize'.
5553 2002-07-26 Werner LEMBERG <wl@gnu.org>
5555 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5557 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5558 (gnu.eps): Add -rle switch to pnmtops.
5559 (distfiles): Add gnu.eps and gnu.png.
5561 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
5563 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5566 2002-07-24 Werner LEMBERG <wl@gnu.org>
5568 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5569 ' \+' but ' *' for sed.
5570 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5572 2002-07-23 Werner LEMBERG <wl@gnu.org>
5574 * doc/groff.texinfo: Document `papersize' keyword.
5575 * NEWS, man/groff_font.man: Updated.
5577 2002-07-23 Colin Watson <cjwatson@debian.org>
5579 Extend papersize keyword to accept more than a single entry. The
5580 first valid will be used.
5582 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5583 (font::scan_papersize): Really skip final newline.
5584 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5586 2002-07-23 Werner LEMBERG <wl@gnu.org>
5588 * configure.ac: Test for isatty.
5589 * configure: Regenerated.
5590 * src/include/posix.h: Check HAVE_ISATTY.
5591 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5592 * src/utils/lookbib/lookbib.cc: Include posix.h.
5593 Don't declare isatty.
5595 2002-07-21 Werner LEMBERG <wl@gnu.org>
5597 * NEWS: Add `output' request.
5599 * REVISION: Increased to 1.
5601 Version 1.18.0 released
5602 =======================
5604 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
5606 Allow internal glyph indices > 0xFF in grohtml for input characters.
5608 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5610 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5611 Updated all callers.
5612 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5613 (html_printer): Updated.
5615 2002-07-19 Werner LEMBERG <wl@gnu.org>
5617 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5618 * font/devutf8/R.proto: Adding some missing glyphs.
5619 * font/devutf8/NOTES: Updated.
5621 * tmac/dvi.tmac: Add more composite glyphs.
5622 * tmac/html.tmac: Updated.
5624 * man/groff_char.man: Add `sum' and `product' entities.
5628 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
5630 Improved table, tab, and indenting support.
5632 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5633 string_iterator::suppress_newline_flag): Removed. Updated all
5634 function which have used it.
5636 * src/roff/troff/env.cc: Include `input.h'.
5637 (environment::add_node): Accept 0 as parameter.
5638 (environment::add_html_tag): Add `force' parameter.
5639 Updated all callers.
5640 (environment::add_html_tag_tabs): Ditto.
5641 For the moment, support left-aligned tabs only.
5642 (environment::make_html_tag): New function.
5643 (fill, no_fill): Set .br html tag additionally.
5644 (environment::newline): Emit `eol.ce' or `eol' tag for html.
5645 (environment::add_html_tag_eol): Removed.
5646 (tab_stops::distance_to_next_tab): Add variant for handling
5648 (environment::distance_to_next_tab): Ditto.
5649 Updated all callers.
5650 (environment::handle_tab): Handle tabs for html.
5652 * src/roff/troff/env.h: Updated.
5654 * src/roff/troff/div.cc: Updated all callers of
5655 `environment::add_html_tag'.
5657 * src/devices/grohtml/html-table.cc,
5658 src/devices/grohtml/html-table.h: New files.
5660 * src/devices/grohtml/html-text.cc (html_text): New members
5661 `blank_para' and `start_space'.
5662 (html_text::issue_tag): Don't emit TABLE_TAG.
5663 Handle indentation for PRE_TAG and P_TAG.
5664 (html_text::end_tag): Updated.
5665 (html_text::table_is_void, html_text::issue_table_begin,
5666 html_text::issue_table_end): Removed.
5667 (html_text::do_push): Simplified.
5668 [DEBUGGING]: Small fix.
5669 (html_text::push_para): Add new parameter for indentation; updated
5672 (html_text::do_indent, html_text::do_table, html_text::done_table,
5673 html_text::is_in_table): Removed.
5674 (html_text::do_pre): Handle P_TAG also.
5675 (html_text::shutdown): Handle p->indent.
5676 (html_text::check_emit_text): Simplified.
5677 (html_text::do_emittext): Reset `blank_para'.
5678 (html_text::do_para): Add new parameter for indentation; updated
5680 (html_text::remove_indent): New function.
5681 (html_text::do_space): Handle verbatim text properly.
5682 (html_text::ever_emitted_text, html_text::starts_with_space,
5683 html_text::remove_para_align): New functions.
5684 (html_text::dump_stack_element, html_text::dump_stack): Updated.
5686 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5689 * src/devices/grohtml/post-html.cc: Include html-table.h.
5690 (INDENTATION): Removed.
5691 (text_glob): Added many `is_<foo>' functions.
5692 Added table description `tab'.
5693 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5695 (list): Add `insert' and `move_to' member functions.
5696 (page): Add `insert_tag' member function.
5697 (page::dump_page) [DEBUG_TABLES]: Improved.
5698 (html_printer): Add `table' and `max_linelength' elements.
5699 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5700 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5701 `remove_tabs', `remove_courier_tabs'.
5702 (html_printer::emit_raw): Handle indentation.
5703 (html_printer::do_center, html_printer::write_header): Updated.
5704 (html_printer::is_courier_until_eol): Check for tag.
5705 (html_printer::do_linelength): Handle max_linelength.
5706 (html_printer::do_page_offset, html_printer::do_indentation): Handle
5708 (html_printer::do_tempindent): Updated.
5709 (html_printer::do_indentedparagraph): Removed.
5710 (html_printer::do_indent): Simplified.
5711 (html_printer::do_eol): Use `ever_emitted_text'.
5712 (html_printer::do_flush, html_printer::do_links): Don't call
5714 (html_printer::do_break): Handle end_tempindent.
5715 (html_printer::troff_tag): Get argument.
5717 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5718 (html_printer::flush_page): Call `lookahead_for_tables'.
5719 Don't call `done_table'.
5720 (html_printer::add_to_sbuf): Always call do_indent.
5722 * src/devices/grohtml/Makefile.sub: Updated.
5724 * tmac/an-old.tmac (TP): Don't handle html device specially.
5725 (an-do-tag-html): New function which will be used instead of
5726 `an-do-tag' if html device is used.
5728 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5730 * tmac/s.tmac (@IP): Don't handle html device specially.
5731 (@IP-html): New function which will be used instead of `@IP' if
5732 html device is used.
5734 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5735 is a hack which will eventually vanish again.
5736 (PIMG): Handle `-C' option correctly if not html.
5739 2002-07-17 Werner LEMBERG <wl@gnu.org>
5741 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5743 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
5745 * contrib/pic2graph/pic2graph.*: Use convert(1).
5746 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5748 2002-07-14 Bernd Warken <bwarken@mayn.de>
5750 * tmac/groff_trace.man: New file.
5751 * tmac/Makefile.sub: Updated.
5754 2002-07-13 Werner LEMBERG <wl@gnu.org>
5756 * src/roff/groff/groff.man: Add some cross references.
5758 2002-07-12 Werner LEMBERG <wl@gnu.org>
5760 * src/roff/troff/input.cc (substring_request): Add warnings for
5761 string indices out of range.
5763 2002-07-11 Werner LEMBERG <wl@gnu.org>
5765 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5766 * font/devdvi/*EC: Regenerated.
5768 2002-07-10 Bernd Warken <bwarken@mayn.de>
5770 * man/groff_char.man: Updated and extended.
5772 2002-07-10 Werner LEMBERG <wl@gnu.org>
5774 * src/roff/troff/input.cc (length_macro): Renamed to...
5775 (length_request): This.
5776 Move call of `tok.next()' to the very end, otherwise the register
5777 value hasn't been updated yet.
5778 (init_input_requests): Updated.
5780 2002-07-09 Werner LEMBERG <wl@gnu.org>
5782 * src/roff/troff/input.cc (substring_macro): Renamed to...
5783 (substring_request): This.
5784 (init_input_requests): Updated.
5785 * src/roff/troff/request.h: Updated.
5787 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
5789 * src/roff/grog/grog.sh: Fix typo.
5791 2002-07-08 Werner LEMBERG <wl@gnu.org>
5793 * win32-diffs: Updated.
5795 Handle `papersize' keyword properly in DESC.
5797 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5799 Updated all callers.
5800 * src/libs/libgroff/paper.cc: Add four more paper formats used by
5802 * src/include/paper.h: Updated.
5804 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5805 Other minor C syntax fixes.
5806 (papersize, paperlength, paperwidth): Renamed to `user_*'.
5807 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5809 (lbp_printer::lbp_printer): Pass three arguments.
5810 Set paper dimensions properly.
5811 (make_printer, main): Updated.
5812 (handle_unknown_desc_command): Fix error messages.
5813 (main): Handle papersize keyword in DESC properly.
5815 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5817 (lbp_printer::lbp_printer): Pass an argument.
5818 Set paper_size properly.
5819 (handle_unknown_desc_command): Removed.
5820 (make_printer, main): Updated.
5821 * src/devices/grolj4/grolj4.man: Minor documentation fix.
5823 * man/groff_font.man, NEWS: Updated.
5825 2002-07-07 Werner LEMBERG <wl@gnu.org>
5827 Integrated eqn2graph, contributed by Eric S. Raymond.
5829 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5831 * Makefile.in, NEWS: Updated.
5833 2002-06-04 Werner LEMBERG <wl@gnu.org>
5835 Changing the substring request to make it fit better with other
5836 string manipulation functions in other programming languages:
5837 Index 0 is now the first character in the string, and index -1
5838 indicates the last character. Since this request didn't work
5839 properly anyway in the last release, it doesn't harm too much to
5842 * src/roff/troff/input.cc (substring_macro): Use loops to get
5843 the real string length (ignoring COMPATIBLE_SAVE and
5844 COMPATIBLE_RESTORE) and offsets.
5845 Implement change described above.
5847 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5848 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5850 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5852 2002-06-03 Werner LEMBERG <wl@gnu.org>
5854 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
5855 COMPATIBLE_RESTORE are completely ignored.
5857 * src/roff/troff/input.cc (char_list::set, char_list::get): New
5859 (macro): `length' field renamed to `len'.
5860 Added new field `empty_macro' (1 if macro is empty), to be used
5861 instead of checking `len'.
5862 Updated all callers.
5863 (macro::empty): Updated.
5864 (macro::length, macro::set, macro::get): New functions.
5865 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5867 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5868 COMPATIBLE_RESTORE pairs.
5869 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5870 * src/roff/troff/request.h: Updated.
5872 * doc/groff.texinfo: Document .chop's behaviour better.
5874 2002-06-02 Werner LEMBERG <wl@gnu.org>
5876 * doc/pic.ms: Fix documentation for the addition of positions.
5878 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5880 2002-06-29 Werner LEMBERG <wl@gnu.org>
5882 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5884 * src/roff/troff/input.cc (have_string_arg): New global variable.
5885 (read_mode): New enumeration.
5886 (read_escape_name): Use it. Update all calls.
5887 (read_long_escape_name): Use it. Update all calls.
5888 Set have_string_arg if appropriate.
5889 (get_char_for_escape_name): Add parameter for handling space
5891 (interpolate_string_with_args, decode_string_args): New functions.
5892 (get_copy, token::next): Call it if necessary.
5893 (interpolate_string): Fix error message.
5895 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5898 2002-06-24 Bernd Warken <bwarken@mayn.de>
5900 * man/groff_tmac.man: Updated and extended.
5902 2002-06-24 Werner LEMBERG <wl@gnu.org>
5904 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5906 2002-06-23 Werner LEMBERG <wl@gnu.org>
5908 * doc/pic.ms: Improve documentation of composite block objects.
5910 2002-06-22 Werner LEMBERG <wl@gnu.org>
5912 * src/roff/troff/input.cc (init_registers): Add three registers
5913 `seconds', `minutes', and `hours' to hold the current time.
5915 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5918 2002-06-20 Werner LEMBERG <wl@gnu.org>
5920 Make \X accept both `\ ' and `\~', converting them to single space
5923 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5924 (token::unstretchable_space): New inline function.
5925 * src/roff/troff/input.cc (token::next, token::delimiter,
5926 token::description, token::add_to_node_list, token::process): Handle
5927 TOKEN_UNSTRETCHABLE_NODE.
5928 (encode_char): Handle tok.stretchable_space and
5929 tok.unstretchable_space.
5931 * NEWS, doc/groff.texinfo: Document it..
5933 2002-06-19 Werner LEMBERG <wl@gnu.org>
5935 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5937 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5938 keyword to enable/disable SGR output.
5939 (tty_printer::change_fill_color): New function.
5940 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5942 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5945 2002-06-18 Werner LEMBERG <wl@gnu.org>
5947 Add a `color' request and a `.color' register to control usage of
5950 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5951 (color_flag): This (which is the inverse).
5952 (activate_color): New function.
5953 (main, init_input_requests): Updated.
5954 * src/roff/troff/troff.h, src/roff/troff/node.cc
5955 (troff_output_file::fill_color, troff_output_file::glyph_color):
5958 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5959 Document the changes.
5961 2002-06-17 Colin Watson <cjwatson@debian.org>
5963 Circumvent bug in autoconf 2.53 regarding top_builddir.
5965 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5966 * Makefile.in, doc/Makefile.in:
5967 s/@top_builddir@/@groff_top_builddir@/.
5968 * configure: Regenerated (with autoconf 2.53).
5970 2002-06-17 Werner LEMBERG <wl@gnu.org>
5972 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5973 `paperwidth' and `paperlength' for the `papersize' keyword.
5975 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
5977 * src/devices/grops/grops.man: Add info about Type 42 fonts.
5979 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
5981 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5982 html_printer::do_linelength, html_printer::do_pageoffset,
5983 html_printer::do_indentation, html_printer::do_tempindent,
5984 html_printer::do_break, html_printer::begin_page): Clear indented
5986 * tmac/html.tmac: Disable hyphenation.
5988 2002-06-15 Werner LEMBERG <wl@gnu.org>
5990 Don't produce HTML files if utility programs are missing.
5992 * Makefile.in (make_html, make_install_html): New variables.
5993 (MDEFINES): Updated.
5995 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5997 * configure.ac: Use it.
5998 * configure: Regenerated.
6000 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
6001 (HTMLEXAMPLESFILES): This new variable.
6002 (EXAMPLESIMAGEFILES): Renamed to...
6003 (HTMLEXAMPLEIMAGEFILES): This.
6004 (CLEANADD): Add HTMLEXAMPLEFILES.
6005 (all): Use `make_html'.
6007 (install_data): Use `make_install_html'.
6008 Move html stuff to...
6009 (install_html): This new target.
6010 (uninstall_sub): Updated.
6012 2002-06-14 Bernd Warken <bwarken@mayn.de>
6014 * src/roff/grog/Makefile.sub (grog): Renamed to...
6016 (grog): New rule to always install grog.sh as grog.
6018 2002-06-08 Bernd Warken <bwarken@mayn.de>
6020 * src/roff/grog/grog.pl: Fix typo.
6022 2002-06-07 Werner LEMBERG <wl@gnu.org>
6024 * doc/groff.texinfo: Add more info on .tr arguments.
6026 2002-06-05 Werner LEMBERG <wl@gnu.org>
6028 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
6030 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
6031 * configure: Regenerated.
6033 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6035 * src/roff/troff/symbol.cc (table_sizes): Add more values.
6037 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
6039 2002-06-04 Werner LEMBERG <wl@gnu.org>
6041 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
6042 is not initialized at the time we need it in case `--prefix' hasn't
6043 been set. Check for `ac_default_prefix' also.
6044 Test for `papersize' keyword also and generalize allowed whitespace.
6045 * configure: Regenerated.
6047 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
6050 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
6052 (src_version, src_revision): New variables to avoid overwriting
6053 from parent make process.
6054 (version.cc): Updated.
6056 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
6057 (linebuf, linebufsize): New global variables.
6058 (sys_fatal): Use `fatal' to abort properly.
6059 (get_line): New function.
6060 (get_resolution): Use it.
6061 Improve error messages.
6062 (get_papersize): Check `papersize' also.
6064 Improve error messages.
6066 2002-06-03 Werner LEMBERG <wl@gnu.org>
6068 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
6069 should be removed only if builddir is not srcdir.
6070 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
6071 (clean): Depend on `mostlyclean'.
6072 (distclean): Depend on `clean'.
6073 (realclean, extraclean): Depend on `distclean'.
6074 (.y.cc, .y.o): Simplified. The output files are no longer written
6075 to srcdir but to builddir.
6076 * Makefile.in (MDEFINES): Add `version' and `revision'.
6077 (uninstall_dirs): Fix order of directories.
6078 * doc/Makefile.sub (version, revision): Removed.
6079 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
6080 Added `HTMLDOCFILES'.
6081 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
6082 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
6083 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
6086 * doc/texinfo.tex (\authortt): New macro.
6087 (\shortcontt): Define.
6088 (\titlepage): Set \tt to \authortt while defining \authorfont.
6089 (\appendixbox): New macro.
6090 (\chapmacro, \appendixentry): Use \appendixbox to get even
6091 indentation for letters.
6092 (\summarycontents): Set \tt.
6093 (\internalpagesize): Add two arguments for real paper width and
6094 height as needed by pdfTeX.
6095 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
6097 (\tempdima, \tempdimb): New temporary dimensions.
6098 (\pagesizesyyy): Updated.
6100 2002-06-02 Werner LEMBERG <wl@gnu.org>
6102 Adding a new keyword `papersize' to the DESC file format (similar
6103 but not completely identical to grolbp's extension). grops now has
6104 a -p command line option to override `papersize'. Finally, grolbp
6105 has been adapted to the new syntax.
6107 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
6108 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
6110 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
6111 (CCSRCS): Add `paper.cc'.
6113 * src/include/font.h (font): Add `papersize' element.
6114 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
6115 (font::scan_papersize): New function.
6116 (font::load_desc): Use it for handling `papersize' keyword.
6117 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
6119 * src/devices/grops/ps.cc: Include paper.h.
6120 (user_paper_length): New global variable.
6121 (ps_printer): Use paper length as initializer.
6122 (make_printer): Updated.
6123 (main): Handle new `-p' option.
6124 * src/devices/grops/grops.man: Updated.
6126 * src/devices/grolbp/lbp.cc: Include paper.h.
6127 s/papersizes/lbp_papersizes/.
6128 (set_papersize): Use new `papersizes' array.
6129 (handle_unknown_desc_command): Don't handle `papersize'.
6130 (main): Use `font::scan_papersize' for handling `-p' option.
6131 * src/devices/grolbp/grolbp.man: Updated.
6133 * man/groff_font.man: Document `papersize'.
6136 2002-05-30 Werner LEMBERG <wl@gnu.org>
6138 * src/devices/grops/TODO: Updated.
6139 * src/devices/grops/grops.man: More info on paper formats.
6140 * man/groff_font.man: Document `paperheight' and `paperwidth'.
6142 2002-05-29 Werner LEMBERG <wl@gnu.org>
6144 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
6145 to list only if srcdir != currdir.
6146 (distfiles): New target.
6148 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
6149 (NOMAKEDIRS): New variable.
6152 2002-05-26 Werner LEMBERG <wl@gnu.org>
6154 Add .output request, similar to \! at top-level.
6156 * src/roff/troff/input.cc (transparent): Remove unused declaration.
6157 (output_request): New function.
6158 (init_input_requests): Add it.
6160 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6163 * Makefile.in (MDEFINES): Add INSTALL_INFO.
6164 (prepare_examples): Fix typo.
6165 * doc/groff.texinfo (@direntry): Fix it.
6167 2002-05-25 Werner LEMBERG <wl@gnu.org>
6169 Including the doc subdir into groff's Makefile system.
6171 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
6172 * configure.ac: Use it.
6173 Generate `doc/Makefile'.
6174 * configure: Regenerated.
6176 * Makefile.in (infodir, INSTALL_INFO): New variables.
6177 (MDEFINES, uninstall_dirs): Updated.
6178 (OTHERDIRS): Add `doc'.
6179 * Makefile.comm (CLEANDIRADD): New variable.
6180 (mostlyclean): Use it.
6182 * doc/Makefile.sub, doc/Makefile.in: New files.
6183 * doc/Makefile: Removed.
6185 * NEWS, INSTALL: Updated.
6187 2002-05-24 Werner LEMBERG <wl@gnu.org>
6189 * doc/homepage.ms: Renamed to ...
6190 * doc/webpage.ms: This.
6193 2002-05-23 Werner LEMBERG <wl@gnu.org>
6195 Integrating the `mom' macro package, contributed by Peter Schaffter
6198 * contrib/mom/*: New subdirectory tree.
6199 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
6200 be used for documentation files.
6201 (MDEFINES, uninstall_dirs): Use them.
6202 (OTHERDIRS): Add contrib/mom.
6203 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
6205 * MANIFEST, NEWS: Updated.
6207 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
6209 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
6210 if at outer level; at start-up we are at outer level.
6212 * src/roff/troff/input.cc (do_suppress): Implement it.
6215 Add option -p to show progress information.
6216 pre-grohtml will now render only one page at a time, reducing the
6217 size of needed disk resources enormously.
6219 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
6220 (imagePageName): New global variable.
6221 (psPageName, show_progress, currentPageNo): New global variables.
6222 (html_system): Close saved stderr and stdout handles.
6223 (write_end_image): Accept a parameter to control \O escape.
6224 (write_start_image): Adapted to new \O meaning.
6225 (char_buffer::write_upto_newline): Updated.
6226 (createAllPages): Replaced with...
6227 (createPage): This new function to create a single page for images.
6228 It uses `psselect' from the psutils package.
6229 (removeAllPages): Removed.
6230 (createImage): Updated.
6231 Handle progress display.
6232 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
6233 (scanArguments): Add option -p.
6234 (makeTempFiles): Updated to create temp files for psPageName and
6236 (removeTempFiles): Removed.
6239 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
6240 html_printer::write_header): Append `\0' to `buffer'.
6241 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
6243 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
6244 Handle `text_emitted'.
6245 (html_text::table_is_void): Slightly rewritten.
6246 (stop): New external symbol.
6247 (html_text::do_push) [DEBUGGING]: Use it and simplify.
6248 (html_text::shutdown): Call `dump_stack'.
6249 (html_text::do_space): Rewritten.
6250 * src/devices/grohtml/grohtml.man: Document -p and the need of
6253 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
6255 Call \O[0] if `ps4html' is active.
6256 * tmac/s.tmac (@EQ, @EN): Handle html better.
6258 * tmac/html.tmac: Don't use black for background colour.
6260 * src/roff/troff/node.cc: Include `div.h'.
6261 (troff_output_file::really_print_line): Don't use `is_on'.
6262 (troff_output_file::word_marker, troff_output_file::flush_tbuf
6263 troff_output_file::check_charinfo,
6264 troff_output_file::put_char_width, troff_output_file::put_char,
6265 troff_output_file::determine_line_limits, troff_output_file::draw,
6266 real_output_file::begin_page, glyph_color_node::tprintf,
6267 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
6269 (troff_output_file::really_on): Call `do_motion'.
6270 (suppress_node::tprint): Use `get_page_number' instead of `%'
6272 Call `reset_output_registers' conditionally on `is_on'.
6274 * doc/groff.texinfo: Document new syntax of \O.
6275 * NEWS, man/groff_diff.man: Updated.
6277 2002-05-22 Werner LEMBERG <wl@gnu.org>
6279 * MORE.STUFF: Add info about David Frey's deroff implementation.
6282 2002-05-16 Werner LEMBERG <wl@gnu.org>
6284 Pic's `with' attribute now accepts positions.
6286 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
6287 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
6289 (object_spec): Add rule for `WITH' and `position'.
6290 (relative_path): Give `corner' the precedence of `CHOP'.
6291 * src/preproc/pic/object.h (path): New members `pos' and
6293 * src/preproc/pic/object.cc: Updated initializers of `path'.
6294 (path::follow): Handle `is_position'.
6296 * doc/pic.ms: Completely updated grammar description.
6297 Many typographical improvements.
6299 2002-05-15 Werner LEMBERG <wl@gnu.org>
6301 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
6302 code of x in range 0-127) also.
6303 * doc/groff.texinfo, man/groff_diff.man: Updated.
6305 Added keywords `north', `south', `east', and `west' for corners
6308 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
6310 (yylex): Handle them.
6311 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
6312 (corner): Handle them.
6314 2002-05-14 Werner LEMBERG <wl@gnu.org>
6316 * src/devices/grops/grops.man: Clarify handling of `download' file.
6318 2002-05-11 Werner LEMBERG <wl@gnu.org>
6320 Adding `warnscale' and `spreadwarn' requests, based on a patch from
6321 Jeffrey Friedl <jfriedl@yahoo.com>.
6323 * src/roff/troff/input.cc (spread_limit, warn_scale,
6324 warn_scaling_indicator): New global variables.
6325 (warnscale_request, spreadwarn_requests): New functions.
6326 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
6327 (init_input_requests): Updated.
6328 (error_type): Add `OUTPUT_WARNING'.
6329 (do_error): Handle it.
6330 (output_warning): New warning function which shows output location.
6331 * src/roff/troff/env.h (spread_limit): New external variable.
6332 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6334 (distribute_space): Emit warning if added space is larger than
6336 (environment::possibly_break_line): Emit warning if a line can't
6337 be adjusted on both sides.
6339 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6341 2002-05-08 Werner LEMBERG <wl@gnu.org>
6343 * src/roff/troff/node.cc (special_node::special_node): Use
6344 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
6345 \X''\% crashes, for example.
6347 * doc/groff.texinfo: Document \! and \? used at top-level.
6349 2002-05-06 Werner LEMBERG <wl@gnu.org>
6351 * src/preproc/pic/pic.man: Fix some keyword syntax.
6352 Other minor typographical fixes.
6354 * src/roff/groff/groff.man: Fix typos.
6356 2002-05-04 Werner LEMBERG <wl@gnu.org>
6358 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6359 (ShortOpt[]): This to avoid problems with refer.
6361 * doc/pic.ms: Fix typo.
6362 Fix pic grammar description.
6364 * tmac/an-old.tmac (ne): Use de1, not de.
6366 2002-05-03 Werner LEMBERG <wl@gnu.org>
6368 * doc/groff.texinfo: Finished separation of glyphs and characters.
6369 Don't use the string `Appendix' for appendix headers (both in
6370 the text and the table of contents).
6371 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6374 Use registers LL and LT (similar to -ms) for controlling the
6375 length of title and line, respectively, in the -man and -mdoc
6378 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6379 (doc-setup-page-layout): Use \n[LL] and \n[LT].
6380 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6382 (an-header, an-p-footer): Use \n[LT].
6383 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6384 doc/groff.texinfo: Document it.
6386 2002-05-02 Werner LEMBERG <wl@gnu.org>
6388 * doc/fdl.texi: New file.
6389 * doc/groff.texinfo: Include it.
6390 Define and use @copying.
6391 Starting with separating glyph, symbol, and character.
6393 2002-04-27 Werner LEMBERG <wl@gnu.org>
6395 * Makefile.in (EXEEXT): Set it.
6396 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6399 * src/include/nonposix.h: Define GS_NAME.
6400 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6402 Some preliminary changes for EMX support under OS/2.
6404 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6405 __EMX__ similar to __MSDOS__.
6406 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6408 2002-04-25 Werner LEMBERG <wl@gnu.org>
6410 * doc/groff.texinfo: Integrated groff_out.man.
6413 2002-04-23 Werner LEMBERG <wl@gnu.org>
6415 * man/groff_out.man: Minor fixes.
6417 2002-04-23 Werner LEMBERG <wl@gnu.org>
6419 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6420 correct page references.
6421 Fixed many index entries.
6423 2002-04-23 Bernd Warken <bwarken@mayn.de>
6425 * man/roff.man: Enlarged.
6427 2002-04-22 Werner LEMBERG <wl@gnu.org>
6429 * doc/groff.texinfo: More examples, other fixes.
6431 2002-04-20 Werner LEMBERG <wl@gnu.org>
6433 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6434 will now form a chain, e.g.
6443 This is for compatibility with plan 9's troff.
6445 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6449 * doc/groff.texinfo: Add documentation of remaining requests and
6452 2002-04-19 Werner LEMBERG <wl@gnu.org>
6454 * doc/groff.texinfo: Add documentation of remaining escapes.
6456 * font/devdvi/generate/tc.map: Remove entry for `sr'.
6457 * font/devdvi/*TC: Regenerated.
6459 2002-04-18 Werner LEMBERG <wl@gnu.org>
6461 * src/roff/troff/input.cc (token::next): Make \H behave consistently
6462 if not in compatibility mode, i.e., increment relative to the
6464 * doc/groff.texinfo: Updated accordingly.
6466 2002-04-17 Werner LEMBERG <wl@gnu.org>
6468 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6470 2002-04-16 Bernd Warken <bwarken@mayn.de>
6472 * src/roff/groff/groff.man: Improve documentation of -P option.
6475 2002-04-15 Werner LEMBERG <wl@gnu.org>
6477 Add new escape \F to switch font family.
6479 * src/roff/troff/input.cc (token::next): Handle \F.
6480 * src/roff/troff/env.cc (environment::set_family): Handle
6482 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6485 2002-04-14 Werner LEMBERG <wl@gnu.org>
6487 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6490 2002-04-13 Werner LEMBERG <wl@gnu.org>
6492 Implement \f[] as an alternative to \fP. Change \mP and \MP to
6493 \m[] and \M[], respectively.
6495 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6496 (symbol::symbol): Handle NULL string and empty string differently.
6497 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6498 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6499 Add optional parameter.
6500 Updated calling functions.
6501 (get_copy, do_glyph_color, do_fill_color, token::next): Use
6503 * src/roff/troff/env.cc (environment::set_font): Ditto.
6505 * src/preproc/pic/troff.cc (troff_output::set_fill,
6506 troff_output::reset_color: Updated.
6508 * tmac/www.tmac: Updated.
6510 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6511 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6514 * tmac/Xps.tmac: Remove some redundant code.
6516 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6517 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6518 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6521 2002-04-13 Bernd Warken <bwarken@mayn.de>
6523 * src/include/printer.h, src/libs/libdriver/printer.cc
6524 (printer::change_fill_color): New member function.
6525 * src/libs/libdriver/input.cc (parse_D_command): Use it.
6527 2002-04-12 Werner LEMBERG <wl@gnu.org>
6529 * doc/groff.texinfo: Completed pass on gtroff reference.
6531 2002-04-11 Werner LEMBERG <wl@gnu.org>
6533 * doc/groff.texinfo: More fixes.
6535 2002-04-11 Bernd Warken <bwarken@mayn.de>
6537 * src/include/color.h: Decorate with `const'.
6540 * src/libs/libgroff.color.cc: Decorate with `const'.
6542 (color::color): Initialize members.
6543 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6544 command according to the documentation.
6546 * man/groff_out.man: Updated.
6549 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
6551 * src/preproc/html/pre-html.cc (write_start_image): Remove
6553 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6555 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6556 \C'hy' caused an assertion failure.
6558 * src/roff/troff/env.cc (environment::environment): Initialize
6560 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6562 2002-04-10 Werner LEMBERG <wl@gnu.org>
6564 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6565 Document pvs request and .pvs register.
6567 2002-04-09 Werner LEMBERG <wl@gnu.org>
6569 * doc/groff.texinfo: Improve and fix documentation of diversions
6572 2002-04-08 Werner LEMBERG <wl@gnu.org>
6574 * doc/groff.texinfo: Fix documentation of drawing functions.
6577 2002-04-07 Werner LEMBERG <wl@gnu.org>
6579 * doc/groff.texinfo: Better documentation of double quotes as
6583 2002-04-06 Werner LEMBERG <wl@gnu.org>
6585 * man/groff_font.man: Document names of special characters better.
6586 * doc/groff.texinfo: Minor improvements.
6588 * tmac/lbp.tmac: Load latin1.tmac.
6589 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6591 * font/devX*/*: Regenerated (all chars > 0x80 removed).
6593 2002-04-05 Werner LEMBERG <wl@gnu.org>
6595 * tmac/tty.tmac: Don't use shc request.
6596 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6599 * man/groff_diff.man: Minor fixes.
6601 * font/devlbp/*: Remove all `charXXX' entities.
6603 * src/libs/libgroff/font.cc (font::~font): Deallocate
6604 `special_device_coding'.
6605 (font::load): Use `new' for allocating `special_device_coding'.
6606 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6607 Removed unused member.
6609 2002-04-05 Werner LEMBERG <wl@gnu.org>
6611 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6612 (resource_manager::do_begin_binary,
6613 resource_manager::do_begin_data): Use it.
6615 * doc/texinfo.tex: Updated to version 4.2.
6617 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6618 (token::zero_width_break): New inline function.
6619 * src/roff/troff/input.cc (token::next): Use it.
6620 (token::description): Updated.
6621 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6622 (token::add_to_node_list, token::process): Use it.
6623 * NEWS, doc/groff.texinfo: Updated.
6625 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6626 * tmac/tty.tmac: Add missing backslash.
6628 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
6630 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6631 `.ps' register instead of `.s' to handle fractional point sizes.
6632 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6633 limit_box::output): Ditto.
6634 * src/preproc/eqn/other.cc (size_box::compute_metrics,
6635 size_box::output): Ditto.
6636 * src/preproc/eqn/over.cc (over_box::compute_metrics,
6637 over_box::output): Ditto.
6638 * src/preproc/eqn/script.cc (script_box::compute_metrics,
6639 script_box::output): Ditto.
6640 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6641 sqrt_box::output): Ditto.
6643 2002-04-03 Michael Selway <mas@ssl.co.uk>
6645 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6648 2002-04-03 Werner LEMBERG <wl@gnu.org>
6650 * doc/homepage.ms: Reduce title size.
6651 * doc/groff.texinfo: Fix documentation of .t register.
6652 Fix handling of colon.
6655 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6656 only if page length is positive to avoid a loop.
6658 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6661 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
6663 * src/include/nonposix.h, src/roff/groff/pipeline.c:
6664 s/__CYGWIN32__/__CYGWIN__/.
6666 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
6668 * doc/gnu.xpm: New image contributed by Emily Mulley.
6669 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6670 (homepage.html): Be dependent on gnu.eps.
6671 * doc/homepage.ms: Updated to new image.
6673 * src/devices/grohtml/post-html.cc (html_printer): New member
6675 (html_printer::flush_sbuf, html_printer::set_char): Set it.
6676 (html_printer::sbuf_continuation): Use it.
6678 2002-03-28 Werner LEMBERG <wl@gnu.org>
6680 * src/libs/libgroff/getopt.c: Updated to latest version.
6682 * tmac/README: More on hyphen.tex license.
6684 2002-03-26 Larry Kollar <kollar@alltel.net>
6686 * doc/groff.texinfo: Add documentation of most missing requests.
6688 2002-03-25 Werner LEMBERG <wl@gnu.org>
6690 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6691 of `+-', `mu', and `di', respectively.
6693 * font/devascii/R.proto, font/devutf8/R.proto,
6694 font/devlatin1/R.proto, font/devhtml/R.proto,
6695 font/devcp1047/R.proto, font/devlpb/*: Add them.
6696 * font/devps/generate/textmap: Ditto.
6697 * font/devps/*: Regenerated.
6698 * font/devlj4/generate/text.map: Add them.
6699 * font/devlj4/*: Regenerated.
6700 * font/devdvi/generate/tc.map: Use them.
6701 * font/devdvi/generate/texsy.map: Add them.
6702 * font/devdvi/*: Regenerated.
6703 * font/devX*/*: Regenerated.
6705 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6706 tmac/tty-char.tmac: Updated.
6708 * NEWS, man/groff_char.man: Updated.
6710 2002-03-24 Werner LEMBERG <wl@gnu.org>
6712 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6713 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6714 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6715 we use `.fchar' in dvi.tmac.
6716 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6717 * tmac/Xps.tmac: Simplify some char definitions.
6718 Add definition for \[f/].
6719 * man/groff_char.man: Updated for new X.tmac.
6721 * tmac/README: New file.
6723 2002-03-23 Phil Lobbes <phil@perkpartners.com>
6725 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6726 internal .y.o rule took precendence over the .y.cc rule, compiling
6727 the yacc files with gcc instead of g++.
6729 2002-03-23 Werner LEMBERG <wl@gnu.org>
6731 * tmac/dvi.tmac: Add replacement font for `CB'.
6733 * tmac/doc.tmac: s/request/macro/ in messages.
6734 (doc-generic-macro): Improve error message.
6735 * tmac/groff_mdoc.man: Minor improvements.
6737 2002-03-22 Werner LEMBERG <wl@gnu.org>
6739 * doc/groff.texinfo: Document possible conflict between `tr' and
6742 2002-03-21 Werner LEMBERG <wl@gnu.org>
6744 Improve handling of hyphenation patterns. It is now possible to
6745 use most of TeX's pattern files unmodified. To make the process
6746 more flexible, a new request `hpfcode' has been added which
6747 provides a character code mapping for the `hpf' request. See
6748 comment before hpf_getc() for more details.
6750 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6752 (read_patterns_file): Additional parameter for exception dictionary.
6753 Extended to recognize \pattern, \hyphenation, and \endinput.
6754 (do_hyphenation_patterns_file): Updated.
6755 * src/roff/troff/env.h (hpf_code_table): New extern.
6757 * src/roff/troff/input.cc (hpf_code_table): New array.
6758 (init_hpf_code_table, hyphenation_patterns_file_code): New
6760 (hyphenation_code): Handle translation from `trin' correctly.
6761 (main, init_input_requests): Updated.
6762 (charinfo::set_translation): Handle hyphenation code also.
6764 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6767 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6768 char' is used for offsets in hyphenation exceptions.
6770 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6772 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6774 2002-03-20 Larry Kollar <kollar@alltel.net>
6776 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6779 2002-03-18 Werner LEMBERG <wl@gnu.org>
6781 * tmac/html.tmac: Fix serious typo.
6783 2002-03-17 Larry Kollar <kollar@alltel.net>
6785 * doc/groff.texinfo: Add documentation for `writec' request.
6787 2002-03-17 Werner LEMBERG <wl@gnu.org>
6789 Added request `hpfa' to append hyphenation patterns.
6791 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6793 (hyphenation_patterns_file): Renamed to...
6794 (do_hyphenation_patterns_file): This.
6795 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6797 (init_hyphen_requests): Updated.
6798 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6800 2002-03-16 Werner LEMBERG <wl@gnu.org>
6802 Added request `writec' in analogy to `tmc'.
6804 * src/roff/troff/input.cc (write_request): Renamed to...
6805 (do_write_request): This.
6806 Added one parameter.
6807 (write_request, write_request_continue): New functions.
6808 (init_input_requests): Updated.
6809 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6811 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6813 * NEWS: Document it.
6815 2002-03-15 Werner LEMBERG <wl@gnu.org>
6817 * man/groff.man: Add writem request.
6819 Add request `trin' (translate input) to make `.asciify' work
6820 correctly. This is necessary since `charXXX' entity names are no
6821 longer hardcoded in font definition files.
6823 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6824 `translate_input' members.
6825 (charinfo::set_asciify_code, charinfo::get_asciify_code,
6826 charinfo::set_translation_input): New methods.
6827 (charinfo::set_translation): Add third argument.
6828 * src/roff/troff/input.cc (charinfo:set_translation): Set
6830 (do_translate): Add second argument.
6831 (translate_input): New function.
6832 (init_input_requests): Updated.
6833 * src/roff/troff/node.cc (glyph_node::asciify,
6834 composite_node::asciify): Use `get_asciify_code'.
6836 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6838 * NEWS, man/groff.man, man/groff_diff.man: Updated.
6840 2002-03-14 Larry Kollar <kollar@alltel.net>
6842 * doc/groff.texinfo: Improve documentation of .RS and .RE.
6844 2002-03-14 Werner LEMBERG <wl@gnu.org>
6846 Add a new request `sizes' similar to the `sizes' command in DESC
6849 * src/roff/troff/env.cc (override_sizes): New function.
6850 (init_env_requests): Use it.
6851 * src/roff/troff/token.h: Export `read_string'.
6852 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6854 2002-03-12 Werner LEMBERG <wl@gnu.org>
6856 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6858 2002-03-10 Werner LEMBERG <wl@gnu.org>
6860 * tmac/pspic.tmac: Add support for -Tdvi.
6861 * tmac/dvi.tmac: Include pspic.tmac.
6862 * src/devices/grodvi/grodvi.man: Document it.
6865 * font/devlj4/generate/Makefile: Fix URL of metric files.
6867 2002-03-09 Werner LEMBERG <wl@gnu.org>
6869 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6871 2002-03-09 Larry Kollar <kollar@alltel.net>
6873 * tmac/groff_ms.man: Add documentation for RS and RE macros.
6875 2002-03-08 Werner LEMBERG <wl@gnu.org>
6877 * doc/groff.texinfo: Fixes for texinfo 4.1.
6879 2002-03-07 Werner LEMBERG <wl@gnu.org>
6881 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6883 Handle CYGWIN properly.
6885 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
6887 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6888 * tmac/lbp.tmac: Add some font translations.
6890 2002-03-02 Werner LEMBERG <wl@gnu.org>
6892 * font/devcp1047/R.proto, font/devlatin1/R.proto,
6893 font/devhtml/R.proto: Remove `charXXX' entries.
6894 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6897 * font/devlj4/generate/text.map: Remove `charXXX' entries.
6898 * font/devlj4/*: Regenerated all font definition files.
6899 * tmac/lj4.tmac: Load latin1.tmac.
6901 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6902 from 2000-06-17: LJ4 metric files are *not* text files.
6904 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6905 register to test for EBCDIC.
6907 2002-03-01 Werner LEMBERG <wl@gnu.org>
6909 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6910 files (as grops already does).
6911 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6913 * src/devices/grops/grops.man: Document comment lines in encoding
6916 * tmac/cp1047.tmac: New file.
6917 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6918 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6919 * tmac/Makefile.sub (NORMALFILES): Updated.
6921 * tmac/ec.tmac: Don't load latin1.tmac again.
6923 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6924 font/devps/generate/dingbats.map,
6925 font/devps/generate/dingbats.rmap, font/devps/text.enc,
6926 font/devps/generate/Makefile (symbolmap): Add header comment.
6927 * font/devps/generate/textmap: Ditto.
6928 Remove `charXXX' entries.
6929 * font/devps/symbolmap: Regenerated.
6930 * font/devps/*: Regenerated all font definition files.
6932 2002-02-28 Werner LEMBERG <wl@gnu.org>
6934 Add color support to grodvi (for drawing colors are currently
6935 translated to gray values).
6937 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6938 (dvi_printer): Add `cur_color' member.
6939 (dvi_printer::set_color): New function.
6940 (draw_dvi_printer): Remove `fill'.
6941 (draw_dvi_printer::fill_next): Pass environment as parameter.
6942 Update code for new color support translated to gray.
6943 (dvi_printer::set_char): Updated.
6944 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6945 changes crossing the page border.
6946 (dvi_printer::draw): Updated.
6947 Remove cases `f' and `F'.
6948 * tmac/dvi.tmac: Add color definitions.
6949 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6951 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6954 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6955 versions of autoconf.
6956 * configure: Updated.
6958 * doc/homepage.ms: Use `.blm'.
6959 * tmac/www.tmac (www-depth): New auxiliary variable.
6960 (www-pop-level): Don't issue HTML tag.
6961 (ULS, ULE, LI): Use absolute indentation.
6963 * src/devices/grops/ps.cc (ps_printer::begin_page,
6964 ps_printer::end_page): Switch forth and back to default color while
6965 starting a new page.
6967 2002-02-27 Werner LEMBERG <wl@gnu.org>
6969 Add EC and TC fonts to devdvi.
6971 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6972 * font/devdvi/generate/cork.map: Renamed to...
6973 * font/devdvi/generate/ec.map: This.
6974 Remove entry for `aq'.
6975 * font/devdvi/generate/tc.map: New file.
6976 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6979 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6980 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6981 * tmac/ec.tmac: New file.
6982 * tmac/Makefile.sub (NORMALFILES): Updated.
6983 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6984 * man/groff_char.man: Check `ECFONTS' register.
6986 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6988 2002-02-26 Werner LEMBERG <wl@gnu.org>
6990 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6991 * font/devdvi/generate/cork.map: Add 'y and 'Y.
6992 * font/devdvi/*: Updated.
6993 * tmac/dvi.tmac: Formatting.
6995 Add font `HBI' for the dvi output.
6996 Add support for font families `T' and `H'.
6998 * font/devdvi/HBI: New file.
6999 * font/devdvi/B: Renamed to ...
7000 * font/devdvi/TB: This.
7001 * font/devdvi/BI: Renamed to ...
7002 * font/devdvi/TBI: This.
7003 * font/devdvi/I: Renamed to ...
7004 * font/devdvi/TI: This.
7005 * font/devdvi/R: Renamed to ...
7006 * font/devdvi/TR: This.
7007 * font/devdvi/H: Renamed to ...
7008 * font/devdvi/HR: This.
7009 * font/devdvi/Makefile.sub (DEVFILES): Updated.
7010 * font/devdvi/generate/Makefile (HBI): New rule.
7012 (R, I, B, BI, H): Renamed to ...
7013 (TR, TI, TB, TBI, HR): This, respectively.
7015 * NEWS, src/devices/grodvi/grodvi.man: Updated.
7016 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
7017 Add `styles' and `family' keywords.
7018 * tmac/dvi.tmac: Alias `H' to `HR'.
7019 Add some fspecial requests for italic fonts.
7020 Add TR and TI as special.
7021 Add support for `_' with font CWI.
7023 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
7024 operator `:'. Until now, the expression `0:1' would return 2
7027 2002-02-25 Werner LEMBERG <wl@gnu.org>
7029 * man/groff_char.man: Added some missing PS glyph names (from the
7031 * font/devps/generate/textmap, font/devps/symbolmap: Add
7034 * doc/groff.texinfo: Minor additions and fixes.
7035 * man/groff_diff.man: Remove documentation of fp request. This
7036 is already covered in the original troff manual.
7037 Updated to be consistent with other doc files.
7040 2002-02-24 Werner LEMBERG <wl@gnu.org>
7042 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
7044 Define new variable OTHERDEVDIRS (containing `font/devlj4
7045 font/devlbp' if not EBCDIC).
7046 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
7047 (OTHERDEVDIRS): New variable.
7048 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
7049 * configure: Regenerated.
7051 * NEWS, src/devices/grotty/grotty.man: Updated.
7053 2002-02-23 Werner LEMBERG <wl@gnu.org>
7055 * src/roff/troff/input.cc (do_overstrike, do_bracket,
7056 get_line_arg): Honour input level.
7058 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
7060 * font/*/*: Implement it in all font files.
7061 * font/devps/generate/textmap, font/devps/generate/symbolchars,
7062 * font/devps/symbolmap: Updated.
7063 * font/devlj4/generate/text.map: Updated.
7064 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
7065 * font/devdvi/generate/texmi.map: Updated.
7067 * font/devutf8/R.proto: Remove all `charXXX' entries.
7068 * font/devutf8/NOTES: Updated.
7070 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
7073 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
7075 * NEWS, man/groff_char.man: Updated.
7077 2002-02-21 Phil Lobbes <phil@perkpartners.com>
7079 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
7081 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7083 * src/roff/grog/grog.pl: Fix computation of $refer.
7085 2002-02-19 Werner LEMBERG <wl@gnu.org>
7087 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
7088 `snprintf' and `vsnprintf'.
7090 * src/include/htmlindicate.h: Renamed to...
7091 * src/include/htmlhint.h: This.
7092 * src/include/Makefile.sub: Updated.
7093 * src/preproc/eqn/main.cc: Updated.
7095 2002-02-18 Werner LEMBERG <wl@gnu.org>
7097 * man/roff.man, man/groff_out.man, man/groff.man,
7098 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
7099 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
7101 * win32-diffs: Updated.
7103 2002-02-17 Werner LEMBERG <wl@gnu.org>
7105 * doc/Makefile (clean): Add *.eps.
7106 (MEMACROS): Removed.
7107 (TFLAG): New variable.
7110 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
7112 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
7114 * tmac/www.tmac: Use dummy diversion while resetting and disabling
7116 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
7118 * src/roff/troff/troff.man: Fix order of parameter description.
7122 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
7124 Simplify image handling for grohtml.
7127 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
7129 (html_text::dump_stack): Don't emit newline while debugging.
7130 (html_text::do_push) [DEBUGGING]: Print more info.
7131 (html_text::check_emit_text): Fix handling of <p>.
7132 * src/devices/grohtml/html.h: Updated.
7133 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
7134 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
7135 send its data to stderr also.
7137 (simple_output::space_or_newline) [DEBUGGING]: Removed.
7138 * src/devices/grohtml/post-html.cc (html_printer::do_links,
7139 html_printer::html_printer): Remove `DEBUGGING' conditionals.
7141 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
7143 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
7144 is_inline_image): Removed.
7145 (html_begin_suppress, html_end_suppress): Don't take a parameter.
7146 (graphic_start, graphic_end): Removed.
7147 * src/include/htmlindicate.h: Updated.
7148 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
7149 (macroset_template): New global variable.
7150 (makeFileName): Use `macroset_template'.
7151 (write_end_image): Don't take a parameter.
7153 (write_start_image: Don't emit newline.
7154 (char_buffer::write_upto_newline): Updated.
7155 (char_buffer::skip_to_newline): Renamed to ...
7156 (char_buffer::skip_until_newline): This.
7158 (char_buffer::write_file_troff, char_buffer::write_file_html):
7160 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
7161 (removeAllPages): Remove `DEBUGGING' conditionals.
7162 (addRegDef, dump_args): New functions.
7163 (char_buffer::do_html, char_buffer::do_image): Handle
7164 `www-image-template' command line variable.
7165 Add more debugging code.
7166 (addps4html): Removed.
7167 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
7169 * src/preproc/eqn/main.cc: Include `ctype.h'.
7170 (suppress_html): Removed.
7172 (inline_equation): Use `html_begin_suppress' and
7173 `html_end_suppress'.
7174 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
7175 (troff_output::start_picture, troff_output::finish_picture):
7177 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
7178 (process_input_file): Updated.
7180 * src/roff/troff/div.cc (page_number): Set page number only if the
7181 `ps4html' register isn't defined.
7182 * src/roff/troff/input.cc (image_no): New external variable.
7183 (do_suppress): Use it.
7184 * src/roff/troff/node.h (suppress_node::image_id): New member.
7185 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
7186 (suppress_node::suppress_node): Initialize `image_id' member.
7187 (suppress_node::same): Handle `image_id' also.
7188 (suppress_node::copy): Updated.
7189 (last_image_id): New global variable.
7190 (suppress_node::tprint): Use it.
7192 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
7194 * tmac/pspic.mac (PSPIC): Fix html support.
7195 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
7196 * tmac/www.tmac (www-image-template): Set up.
7197 (HTMLINDEX): Renamed to...
7199 (BODYCOLOR): Renamed to...
7201 (BACKGROUND): Renamed to...
7203 (URL): Change order of parameters for consistency.
7204 (MAILTO): Renamed to...
7206 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
7207 (IMG, PIMG, MPIMG): This.
7208 (HTML-H-BEGIN, HTML-H-END): Renamed to...
7210 (LINKS): Renamed to...
7212 (LINE): Renamed to...
7214 (NO-AUTO-RULE): Renamed to...
7216 (HTML-TL): Renamed to...
7218 (UL-BEGIN, UL-END): Renamed to...
7220 (DROPCAP): Renamed to...
7222 (TS, TE, EQ, EN): Provide default definitions.
7223 (www-make-unique-name): Updated.
7224 (HTML-IMAGE-INLINE): Fix typo.
7225 * tmac/groff_www.man: Updated.
7227 * doc/Makefile (homepage.html): Add option -r to grohtml.
7228 Use shortened image name.
7229 * doc/groff.texinfo: Updated info on grohtml strings and macros.
7230 * doc/homepage.ms: Updated and extended.
7232 2002-02-14 Werner LEMBERG <wl@gnu.org>
7234 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
7236 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
7237 SGR_BACK_DEFAULT_COLOR): Replaced with ...
7238 (tty_printer::put_color): Use it.
7239 (ttr_printer::end_page): Simplify.
7241 2002-02-13 Werner LEMBERG <wl@gnu.org>
7243 * tmac/groff_tmac.man: Moved to...
7244 * man/groff_tmac.man: This place.
7245 * tmac/Makefile.sub, man/Makefile.sub: Updated.
7247 2002-02-12 Werner LEMBERG <wl@gnu.org>
7249 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
7250 $(COMPILE.c) to not include groff's assert.h.
7252 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
7254 * NEWS, src/drivers/grotty/grotty.man: Document it.
7256 2002-02-11 Werner LEMBERG <wl@gnu.org>
7258 * src/libs/snprintf/snprintf.c: Updated to latest version
7261 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
7262 test whether there is `.]' also.
7263 Don't check for spaces after `.['.
7264 * src/roff/grog/grog.sh: Do the same.
7266 2002-02-10 Werner LEMBERG <wl@gnu.org>
7270 * src/libs/libgroff/illegal.cc: Renamed to ...
7271 * src/libs/libgroff/invalid.cc: This.
7272 (illegal_char_table): Renamed to ...
7273 (invalid_char_table): This.
7274 * src/libs/libgroff/Makefile.sub: Updated.
7275 * win32-diffs: Updated.
7277 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
7278 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
7279 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
7280 font::load), src/preproc/eqn/main.cc (read_line, main),
7281 src/preproc/eqn/lex.cc (file_input::read_line),
7282 src/preproc/pic/lex.cc (file_input::read_line,
7283 simple_file_input::get, simple_file_input::peek),
7284 src/preproc/pic/main.cc (top_input::get, top_input::peek),
7285 src/preproc/pic/pic.man, src/preproc/refer/main.cc
7286 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
7287 do_bib), src/preproc/tbl/main.cc (table_input::get),
7288 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
7289 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
7290 do_zero_width, read_request, encode_char, ps_get_line,
7291 transparent_file, get_char_for_escape_name, transparent_translate,
7292 asciify, input_char_description, read_string, set_string),
7293 src/roff/troff/env.cc (environment::add_html_tag),
7294 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
7296 * src/include/lib.h: Updated.
7298 * src/preproc/eqn/eqn.cc: Removed.
7302 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
7304 2002-02-09 Werner LEMBERG <wl@gnu.org>
7306 * doc/gnu.xpm: New image.
7307 * doc/Makefile (DOCS): Add homepage.ps.
7308 Add rules for converting xpm->png and xpm->eps.
7309 Use `gnu.{xpm,eps}' as image names.
7310 * doc/homepage.ms: Updated.
7312 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
7314 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
7315 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
7316 Remove calls to `B1' and `B2'
7317 (PNG-IMAGE): New macro for inclusion of images in PNG format.
7318 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
7319 auxiliary variables for MARGIN-PNG-IMAGE.
7320 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
7321 auxiliary macros for MARGIN-PNG-IMAGE.
7322 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
7324 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
7325 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
7326 (DROPCAP): New macro to produce dropcap characters.
7327 (www-do-image): Renamed back to...
7328 (HTML-DO-IMAGE): This.
7329 Updated all callers.
7331 * doc/Makefile (gnubw.eps): Updated.
7332 * doc/homepage.ms: Updated.
7334 2002-02-08 Werner LEMBERG <wl@gnu.org>
7336 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7337 Added `linethick' to table in section `Style Variables'.
7339 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
7341 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7343 2002-02-07 Werner LEMBERG <wl@gnu.org>
7345 Adding options -C (compatibility mode) and -c (grotty's old output
7348 * src/roff/nroff/nroff.sh: Implement it.
7350 * NEWS, src/roff/nroff/nroff.man: Updated.
7352 * PROBLEMS: Document bison 1.32 bug.
7354 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7356 * src/roff/troff/node.cc (make_tfont): Define it earlier.
7357 * src/roff/troff/div.h: Add prototype for `end_diversions'.
7358 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7359 * src/roff/troff/env.h: Add prototype for `title'.
7361 Adding EBCDIC support to grotty.
7363 * src/devices/grotty/tty.cc (CSI): New macro.
7364 (SGR_*, tty_printer::put_color): Use it.
7366 2002-02-06 Werner LEMBERG <wl@gnu.org>
7368 Implementing color support in grotty. The new switch -c activates
7369 the old drawing scheme, disabling color at the same time. The new
7370 switch `-i' selects italic instead of underlining (SGR only).
7372 * src/devices/grotty/tty.cc (putstring): New define instead of
7373 `fputs'. Updated all callers.
7374 (old_drawing_scheme): New global variable.
7375 (COLOR_CHANGE): New enum value.
7376 (SGR_*): New defines containing color handling escape sequences.
7377 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7378 (glyph): New members `back_color_idx' and `fore_color_idx'.
7379 (glyph::order): Add COLOR_CHANGE.
7380 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7381 `is_underline', `is_bold', `cu_flag', `tty_colors'.
7382 New methods `make_underline', `make_bold', `color_to_idx',
7383 `change_color', `put_color'.
7384 (cu_flag): Moved into `tty_printer' class.
7385 (tty_printer::tty_printer): Initialize colors.
7386 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7387 tty_printer::draw, tty_printer::end_page): Handle colors also.
7388 (main): Add options `-c' and `-i'.
7390 * NEWS, src/devices/grotty/grotty.man: Updated.
7392 * src/include/errarg.h (errarg): Add support for `unsigned int'.
7393 * src/libs/libgroff/errarg.c: Implement it.
7395 * src/include/printer.h (printer): Add `change_color' method
7396 (currently used by grotty only).
7397 * src/libs/libdriver/printer.cc: Implement it.
7398 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7399 call to `pr->change_color'.
7401 * src/roff/troff/node.cc (troff_output_file::fill_color,
7402 troff_output_file::glyph_color): Call `do_motion'.
7404 * tmac/tty.tmac: Add color definitions.
7406 * src/roff/groff/groff.man: Minor fixes.
7408 2002-02-05 Bernd Warken <bwarken@mayn.de>
7410 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7411 it. This is a preparation for future changes.
7413 2002-02-05 Werner LEMBERG <wl@gnu.org>
7415 * src/roff/troff/input.cc (process_input_stack): Fix the case
7416 where leading spaces are followed by \f or \s; previously, an
7417 incorrect space width has been used.
7419 * doc/roff.man (quoted_char): Fix argument.
7420 (comment): Define string.
7422 2002-02-04 Larry Kollar <kollar@alltel.net>
7424 * doc/groff.texinfo: More fixes.
7426 2002-02-04 Werner LEMBERG <wl@gnu.org>
7428 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7429 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7430 `restore_compatibility' before `output_string' -- the LINE_STRING
7431 register now already contains proper switches from and to
7434 * man/groff_char.man: Add Euro symbol.
7435 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7436 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7437 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7440 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7442 (.texinfo.html): Add support for texinfo->html.
7444 2002-02-03 Werner LEMBERG <wl@gnu.org>
7446 Added three new requests `ds1', `as1', and `ami'. The former two
7447 are equivalent to `ds' and `as' with the difference that
7448 compatibility mode is saved on entry, switched off during string
7449 expansion, and restored on exit. The latter is the pendant to `dei'
7452 (do_define_string): Use `define_mode' and `calling mode'.
7453 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7454 end of string, respectively.
7455 (define_string, append_string): Use `calling_mode'.
7456 (define_nocomp_string, append_nocomp_string,
7457 define_string_indirect): New functions.
7458 (init_input_requests): Updated.
7459 * NEWS, man/groff_diff.man, man/groff.man: Document it.
7461 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7462 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
7463 mm macro package accesses this string register directly.
7464 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7466 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
7469 2002-02-02 Larry Kollar <kollar@alltel.net>
7471 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7473 2002-01-31 Werner LEMBERG <wl@gnu.org>
7475 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7477 2002-01-31 Bernd Warken <bwarken@mayn.de>
7479 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7480 * man/groff_out.man: Revised and updated.
7482 2002-01-30 Bernd Warken <bwarken@mayn.de>
7484 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7485 out the unused `{' and `}' commands. Undefined by default.
7486 (IntArray): Make `data' private.
7487 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7488 new methods instead.
7489 (skip_line_D, skip_to_end_of_line): New functions.
7490 (get_D_fixed_args): Use `skip_line_D'.
7491 Changed to handle dummy odd arguments by ...
7492 (get_D_fixed_args_odd_dummy): This new function.
7493 (get_D_variable_args): Split some code into ...
7494 (get_possibly_integer_args): This new function.
7495 (send_draw): Use more `const'.
7496 (delete_current_env): New function.
7497 (position_to_end_of_args): Use `size_t'.
7499 (send_draw): Updated.
7500 (parse_D_command): Handle `c', `C', and `t' better.
7504 2002-01-29 Werner LEMBERG <wl@gnu.org>
7507 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7508 @Def...ListEnd which replaces @Def...x. This is necessary to get
7509 proper HTML output -- see the comment in the file for more
7513 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
7515 Fixes to make color changes of 2002-01-21 work with grohtml.
7517 * src/devices/grohtml/post-html.cc (style): Updated.
7518 (html_printer): Remove unused methods.
7519 (html_printer::do_font, html_printer::draw, html_printer::set_char,
7520 html_printer::special): Updated.
7521 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7522 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7523 Added some debugging code.
7524 (html_text::start_tag): Updated.
7525 (html_text::do_push): New method.
7526 (html_text::push_para): Call it.
7527 Add method for handling color.
7528 (html_text::do_color): Updated.
7529 (html_text::shutdown): Handle color.
7530 * src/devices/grohtml/html-text.h (tag_definition): New member
7534 2002-01-28 Werner LEMBERG <wl@gnu.org>
7536 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7538 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
7540 Add two switches -a and -g to control the antialiasing bits for
7541 text and graphics, respectively.
7543 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7545 * src/devices/grohtml/grohtml.man: Document them.
7546 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7548 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7549 (setupAntiAlias): New function.
7550 (createAllPages): Updated.
7551 (scanArguments): Handle `-a' and `-g'.
7552 (main): Call `setupAntiAlias'.
7555 2002-01-27 Werner LEMBERG <wl@gnu.org>
7557 * doc/groff.texinfo (Def*): Call index function after deffn.
7559 * tmac/html.tmac: Call `nroff' request.
7561 2002-01-26 Larry Kollar <kollar@alltel.net>
7563 * tmac/groff_ms.man: Add some omissions.
7565 2002-01-25 Larry Kollar <kollar@alltel.net>
7567 * tmac/groff_ms.man: Typographical improvements.
7569 2002-01-25 Werner LEMBERG <wl@gnu.org>
7571 * doc/groff.texinfo: Updated version and copyright.
7572 * src/devices/grops/grops.man: Updated.
7574 * tmac/groff_tmac.man: Fix `ig' macro.
7576 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7578 Use `.ne' unconditionally everywhere.
7579 (TS): Only insert some vertical space. Doing a page break is no
7580 longer necessary due to the redefinition of the `ne' request.
7582 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7583 warning for unknown subcommands but parse and pass them to the
7586 2002-01-24 Werner LEMBERG <wl@gnu.org>
7588 * tmac/groff_www.man, NEWS: Fix typos.
7590 2002-01-21 Werner LEMBERG <wl@gnu.org>
7592 Complete revision of color support:
7594 Adapt programs to the new libdriver/input.cc.
7596 Color spaces are no longer converted to RGB but transferred as-is
7597 in the troff intermediate output format.
7599 Handle default color gracefully. troff now supports a `default'
7600 color (which can't be changed).
7602 grops will now use the proper color space functions if available.
7606 Note that currently grohtml doesn't handle colors properly. This
7609 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7610 (ui_to_a): New function.
7611 * src/include/lib.h: Updated.
7613 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7614 (color): Simplified; removed all `double' members and methods.
7615 A new array `components' now holds the color parameters.
7616 (color::is_default, color::get_components): New methods.
7617 (color::operator==, color:operator!=): New.
7618 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7619 to make access to the `components' array more comprehensible.
7620 * src/libs/libgroff/color.cc: Implement new color support.
7621 (atoh): Small fixes.
7622 (color::read_encoding): Simplified for new troff intermediate color
7624 (default_color): New global variable.
7626 * src/roff/troff/input.cc (default_symbol): New global variable.
7627 (lookup_color): Use it.
7628 (default_black): Removed.
7629 (do_glyph_color, do_fill_color): Simplified.
7630 (define_color): Handle default color.
7632 (do_if_request): Handle default color.
7633 * src/roff/troff/env.cc (environment::environment): Initialize
7634 colors with `default_color'.
7635 * src/roff/troff/node.cc (troff_output_file::put): Add method
7637 (troff_output_file::hex): Removed.
7638 (troff_output_file::fill_color, troff_output_file::glyph_color):
7639 Updated to include/color.h and libdriver/input.cc.
7641 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7642 fill color properly (identically to the outline color). \D'f...'
7643 doesn't work any more.
7644 All function calls to it updated.
7646 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7648 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7651 * src/devices/grops/ps.cc (ps_output::put_color): New method.
7652 (ps_printer::sbuf_color): Make a real member instead of pointer.
7653 (ps_printer::fill_color, ps_printer::output_color): Removed.
7654 (ps_printer::ps_printer): Updated.
7655 (ps_printer::set_char): Ditto.
7656 (ps_printer::set_color): Use various color schemes.
7657 Use `put_color' method.
7658 (ps_printer::flush_sbuf): Don't set color.
7659 (ps_printer::fill_path): Take `environment' as parameter.
7660 Simplify color handling.
7661 (ps_printer::set_line_thickness): Renamed to ...
7662 (ps_printer::set_line_thickness_and_color): This (and updated).
7663 (ps_printer::set_color): Change second parameter from `complete'
7664 to `fill' which better describes what it does.
7665 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7666 and text in the right order.
7668 Remove branches for `f' and `F'; this is handled by
7670 * src/devices/grops/ps.h: Updated.
7671 * font/devps/prologue (FL): Redefined.
7672 ({F,C}r,k,g: New color functions (with and without filling).
7674 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7675 * man/groff_diff.man, man/groff.man, man/groff_out.man,
7676 doc/groff.texinfo, NEWS: Updated.
7678 2002-01-20 Bernd Warken <bwarken@mayn.de>
7680 * src/libs/libdriver/input.cc: Completely rewritten. See comments
7681 in this file for what has been changed.
7683 2002-01-19 Werner LEMBERG <wl@gnu.org>
7685 * test-groff: Fix GROFF_FONT_PATH.
7686 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7687 is read before .TH or .Dd is parsed.
7689 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
7691 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7692 quadrant boundaries.
7694 2002-01-18 Werner LEMBERG <wl@gnu.org>
7696 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
7699 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
7701 * tmac/doc.common: Initialize %I register for the %I macro to
7702 avoid (harmless) warning.
7703 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7704 when in the SYNOPSIS section.
7706 2002-01-17 Bruno Haible <haible@clisp.cons.org>
7708 * src/preproc/pic/lex.cc (get_token): Fix typo.
7710 2002-01-17 Werner LEMBERG <wl@gnu.org>
7712 * devices/grops/ps.cc: Fix incorrectly applied last patch.
7714 2002-01-17 Larry Kollar <kollar@alltel.net>
7716 * tmac/groff_ms.man: Completely rewritten.
7718 2002-01-16 Werner LEMBERG <wl@gnu.org>
7720 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7722 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
7724 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7726 (ps_printer::draw): Ditto.
7728 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
7730 * tmac/groff_mdoc.man: Minor fixes.
7732 2002-01-13 Werner LEMBERG <wl@gnu.org>
7734 * man/groff_out.man: Some fixes.
7736 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
7738 * doc/pic.ms: Fix typos.
7740 2002-01-12 Werner LEMBERG <wl@gnu.org>
7742 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7744 2002-01-10 Werner LEMBERG <wl@gnu.org>
7746 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7750 2002-01-09 Bernd Warken <bwarken@mayn.de>
7752 * man/groff_out.man: Revised.
7753 * man/roff.man: Minor fixes.
7754 * src/roff/troff/troff.man: Some reordering.
7756 2002-01-09 Werner LEMBERG <wl@gnu.org>
7758 * tmac/an-old.tmac: Add dummy macros for equation support.
7760 2002-01-07 Werner LEMBERG <wl@gnu.org>
7762 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7764 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
7766 * tmac/groff_man.man: Small improvements.
7768 2002-01-07 Bernd Warken <bwarken@mayn.de>
7770 * man/groff_diff.man: Revised.
7772 2002-01-06 Werner LEMBERG <wl@gnu.org>
7774 * tmac/www.tmac: Remove extraneous backslash.
7776 2002-01-06 Bernd Warken <bwarken@mayn.de>
7778 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7780 2002-01-05 Werner LEMBERG <wl@gnu.org>
7782 Integrated groffer, contributed by Bernd Warken.
7784 * contrib/groffer/*: New.
7785 * Makefile.in, NEWS: Updated.
7787 2002-01-04 Werner LEMBERG <wl@gnu.org>
7789 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7790 registers defined in macro packages.
7791 Revising the ms part.
7793 2002-01-04 Larry Kollar <kollar@alltel.net>
7795 * doc/groff.texinfo: Add documentation for ms macros.
7797 2002-01-02 Werner LEMBERG <wl@gnu.org>
7799 First step in adding PS support for the Euro symbol. `eu' is the
7800 official Euro logo, `Eu' is a font-specific glyph variant.
7802 * font/devps/text.enc: Add `Euro' at position 9.
7803 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7804 * font/devps/symbolmap: Regenerated.
7808 2002-01-02 Bernd Warken <bwarken@mayn.de>
7810 * man/roff.man: Revised.
7812 2002-01-01 Bernd Warken <bwarken@mayn.de>
7814 * src/roff/groff/groff.man: Completely rewritten.
7816 2001-12-31 Werner LEMBERG <wl@gnu.org>
7818 * doc/Makefile: Updated.
7820 2001-12-30 Werner LEMBERG <wl@gnu.org>
7822 * tmac/www.tmac: Make all names of internal macros/registers/strings
7823 lowercase, and prepend `www-'.
7824 Other minor changes.
7825 * src/roff/troff/troff.man: Add preprocessor string at BOF.
7827 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
7829 Implement option `-b' in grohtml to set the HTML background colour.
7831 * src/devices/grohtml/post-html.cc (default_background): New global
7833 (html_printer::html_printer): Initialize `background' to
7834 `default_background'.
7835 (main): Implement option `-b'.
7837 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7839 * src/devices/grohtml/grohtml.man: Updated.
7840 * doc/Makefile (.ms.html): Use `-b'.
7841 * tmac/html.tmac: Don't set background color.
7843 Add new grohtml tag `.html-tl'.
7845 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7847 (title_desc::title_desc): Updated.
7848 (html_printer::troff_tag): Handle `.html-tl'.
7849 (html_printer::write_title): Use `with_h1'.
7850 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7851 (HTML-TL): New macro.
7853 Add support for unordered lists in HTML.
7855 * tmac/www.tmac (www-level): New auxiliary register.
7856 (www-level1, www-level2, www-level3): New auxiliary strings.
7857 (www-push-level, www-pop-level): New auxiliary macros
7858 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7862 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7863 (DEFAULT_VERTICAL_OFFSET): Removed.
7864 (IMAGE_BOARDER_PIXELS): Set to 0.
7865 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7866 (vertical_offset): Initialize with 0.
7867 (gsPaper): New global variable.
7868 (get_resolution): Scan for and return unsigned int.
7869 (get_papersize): New function to get paper length from devps/DESC.
7870 (determine_vertical_offset): New function.
7871 (createAllPages): Produce gray-level images and use proper page
7873 (createImage): Use `-quiet' option of pnmcrop.
7874 (addZ): Fix passing of `-Z'.
7875 (scanArguments): Fix handling of `-o'.
7876 (main): Call `determine_vertical_offset'.
7877 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7880 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7881 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7882 glyph descenders properly.
7884 * doc/homepage.ms: Include `gnubw.eps'.
7885 * doc/Makefile (gnubw.eps): New rule.
7886 (homepage.html): Depend on `gnubw.eps'.
7888 2001-12-25 Werner LEMBERG <wl@gnu.org>
7890 * src/roff/troff/input.cc (default_black): Fix return value.
7892 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
7894 * tmac/doc-common (Dt): Change output of architecture strings.
7895 Do some syntax cleanup.
7896 * tmac/groff_mdoc.man: Updated.
7898 2001-12-23 Werner LEMBERG <wl@gnu.org>
7900 Adding an `itc' request (input line trap accepting \c).
7902 * src/roff/troff/env.h (environment): New member
7903 `continued_input_trap'.
7904 Make `do_input_trap' a friend function instead of `input_trap'.
7905 * src/roff/troff/env.cc (environment::environment,
7906 environment::copy): Updated.
7907 (environment::newline): Implement it.
7908 (do_input_trap): New function.
7909 (input_trap): Call `do_input_trap'.
7910 (input_trap_continued): New function.
7911 (init_env_requests): Updated.
7912 * src/roff/troff/TODO: Updated.
7914 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7917 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7919 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
7921 * tmac/doc-common, tmac/doc-syms: Small updates.
7923 2001-12-22 Colin Watson <cjwatson@debian.org>
7925 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7927 2001-12-22 Bernd Warken <bwarken@mayn.de>
7929 * MANIFEST: New file.
7931 2001-12-22 Werner LEMBERG <wl@gnu.org>
7933 * src/preproc/grn/grn.man: Updated.
7935 2001-12-22 Solar Designer <solar@openwall.com>
7937 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7940 2001-12-19 Werner LEMBERG <wl@gnu.org>
7942 Implement a fallback character request `.fchar'.
7944 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7945 (is_fallback): New inline function.
7946 * src/roff/troff/input.cc (do_define_character): New function.
7947 (define_character): Call `do_define_character'.
7948 (define_fallback_character): New function.
7949 (init_input_requests): Add `fchar'.
7950 (charinfo::charinfo): Updated.
7951 (charinfo::set_macro): New argument to set `fallback' flag.
7952 * src/roff/troff/node.cc (make_glyph_node, make_node,
7953 node::add_char): Check `fallback' flag.
7954 * NEWS, man/groff_diff.man, man/groff_man: Updated.
7956 2001-12-16 Werner LEMBERG <wl@gnu.org>
7958 * groff.texinfo: Document exact search algorithm for glyphs.
7960 2001-12-15 Werner LEMBERG <wl@gnu.org>
7962 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7963 the left side of $(MANPAGES) rule to make it always non-empty.
7965 2001-12-14 Werner LEMBERG <wl@gnu.org>
7967 * src/roff/troff/input.cc (default_black): Define default color
7968 `black' if not yet defined.
7970 2001-12-13 Werner LEMBERG <wl@gnu.org>
7972 Implement new string-valued register `.fn' to return the current
7973 real (internal) font name.
7975 * env.cc (environment::get_font_name_string): New function.
7976 (init_env_requests): Add `.fn' register.
7977 * env.h (environment): Updated.
7978 * node.cc (font_info): Make `get_font_name' a friend.
7979 (get_font_name): New function.
7982 * man/groff_diff.man, man/groff.man, NEWS: Updated.
7984 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7986 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7988 2001-12-12 Werner LEMBERG <wl@gnu.org>
7990 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7992 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
7994 * man/groff_diff.man: Adding documentation for \O.
7996 2001-12-10 Werner LEMBERG <wl@gnu.org>
7998 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7999 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
8001 2001-12-09 Werner LEMBERG <wl@gnu.org>
8003 * man/roff.man: Revised.
8004 * src/roff/groff/groff.man: Replace man page references with a
8005 pointer to roff.man.
8007 2001-12-09 Bernd Warken <bwarken@mayn.de>
8009 * man/roff.man: Completely rewritten.
8011 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8013 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
8015 2001-12-05 Werner LEMBERG <wl@gnu.org>
8017 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
8019 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
8020 order of initializers.
8023 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
8025 * doc/groff.texinfo: Fix documentation of \O.
8027 * src/devices/grohtml/html-text.cc (html_text::do_indent,
8028 html_text::do_table, html_text::do_emittext, html_text::do_para):
8029 Use `const' for first argument.
8030 (html_text::do_table): Use cast.
8031 * src/devices/grohtml/html-text.h: Updated.
8032 * src/devices/grohtml/output.cc (simple_output::put_string): Add
8033 method for `const string &s'.
8034 * src/devices/grohtml/html.h: Updated.
8035 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
8036 (ANCHOR_TEMPLATE): Modified.
8037 (manufacture_headings): New global variable to handle `-h' option.
8038 (is_subsection): Removed.
8039 (char_buffer::add_string): Add `const' to first argument.
8040 Protect against invalid string argument.
8041 Add method for `const string &s'.
8042 (text_glob): Completely redesigned.
8043 (page): Use `const' for strings and remove string length variable.
8044 (page::add_html): Removed.
8045 (page::add_end_encode): New member function.
8046 (to_unicode): Moved upwards.
8047 (title_desc, header_desc): Updated.
8048 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
8050 (html_printer::is_bold, html_printer::make_bold): New member
8052 (html_printer::end_of_line): Updated.
8053 (generate_img_src, html_printer::do_auto_image,
8054 html_printer::do_title, html_printer::write_header,
8055 html_printer::determine_header_level, html_printer::do_heading,
8056 html_printer::do_linelength, html_printer::do_pageoffset,
8057 html_printer::do_indentation, html_printer::do_tempindent,
8058 html_printer::do_indentedparagraph, html_printer::do_break,
8059 html_printer::flush_sbuf, get_html_translation,
8060 html_printer::begin_page, html_printer::special): Rewritten to get
8061 rid of static string length limit.
8062 (html_printer::troff_tag): Added `.no-auto-rule'.
8063 (html_printer::flush_globs): Small fix.
8064 (html_printer::determine_space): Don't compute `space_width'.
8065 (html_printer::translate_to_html): Renamed to ...
8066 (html_printer::emit_html): This (with updates).
8067 (html_printer::write_header): Implement `-h' option.
8068 (html_printer::draw): Remove commented-out code. Handle `F'
8070 (html_printer::add_char_to_sbuf): Removed.
8071 (html_printer::add_to_sbuf): Rewritten.
8072 (html_printer::sbuf_continuation): Fixed.
8073 (html_printer::seen_backwards_escape, reverse,
8074 html_printer::remove_last_char_from_sbuf): Removed.
8075 (char_translate_to_html, str_translate_to_html): Removed.
8076 (html_printer::overstrike): New function member.
8077 (html_printer::set_char): Use it.
8078 (html_printer::do_body): New function member.
8079 (html_printer::~html_printer): Use it.
8080 (main): Handle `-h' option.
8082 * src/devices/grohtml/grohtml.man: Document -h switch.
8084 * src/preproc/html/pre-html.cc: Include searchpath.h
8085 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
8086 (get_resolution): New function.
8087 (checkImageDir): Use `0777' permissions in mkdir()
8088 (write_start_image): Rewritten to use `\O[5...]'.
8089 (createImage, generateImages): Updated.
8090 (main): Handle `F' and `h' options.
8091 Use `get_resolution'.
8093 * src/roff/troff/input.cc (begin, end, image): Removed.
8094 (do_suppress): Take parameter.
8095 Handle modified syntax of `\O'.
8096 (token::next): Updated.
8097 (init_markup_requests): Removed.
8100 * src/roff/troff/div.h: Add declaration for begin_page().
8102 * tmac/color-html.tmac: Removed. Contents moved to...
8103 * tmac/html.tmac: Here. Set background color.
8104 * tmac/color.tmac: Removed. Contents moved to...
8105 * tmac/ps.tmac: Here.
8106 * tmac/www.tmac: Remove the title command when generating images
8108 (NO_AUTO_RULE): New macro.
8109 (HTML_DO_IMAGE): Use revised `\O' escapes.
8110 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
8112 2001-12-02 Werner LEMBERG <wl@gnu.org>
8114 * tmac/groff_mdoc.man: Fix typo.
8116 2001-12-01 Colin Watson <cjwatson@debian.org>
8118 * man/roff.man: Fix typo.
8120 2001-11-29 Werner LEMBERG <wl@gnu.org>
8122 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
8125 * src/roff/troff/input.cc (read_draw_node): Emit error message if
8126 more than one argument to \D'f ...'.
8128 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
8130 2001-11-28 Werner LEMBERG <wl@gnu.org>
8132 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
8135 * tmac/groff_man.man: Minor cosmetic fix.
8137 2001-11-27 Werner LEMBERG <wl@gnu.org>
8139 * src/roff/groff/groff.man, tmac/groff_tmac.man,
8140 tmac/groff_www.man: s/mwww/www/.
8142 2001-11-26 Werner LEMBERG <wl@gnu.org>
8144 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
8145 * configure: Regenerated.
8146 * win32-diffs: Updated.
8148 * tmac/groff_mwww.tmac: Renamed to ...
8149 * tmac/groff_www.tmac: This.
8150 * tmac/mwww.tmac: Removed.
8151 * NEWS, tmac/Makefile.sub: Updated.
8153 2001-11-21 Werner LEMBERG <wl@gnu.org>
8155 * doc/groff.texinfo: Improve documentation of the `\v' escape.
8156 Fix explanation of `\D' and `rt'.
8158 2001-11-20 Werner LEMBERG <wl@gnu.org>
8160 * tmac/an-old.tmac (an-header): Set header length equal to page
8162 * doc/groff.texinfo: Improve documentation of `ne' request. Other
8166 2001-11-19 Werner LEMBERG <wl@gnu.org>
8168 * NEWS, man/Makefile.sub: Updated.
8170 2001-11-19 Bernd Warken <bwarken@mayn.de>
8172 * man/ditroff.man: New file.
8174 2001-11-17 Werner LEMBERG <wl@gnu.org>
8176 * man/groff_differences.man: Renamed to ...
8177 * man/groff_diff.man: This. Updated.
8178 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
8180 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
8181 * src/preproc/html/pushback.cc: This. Updated.
8182 * src/preproc/html/pushbackbuffer.h: Renamed to ...
8183 * src/preproc/html/pushback.h: This.
8184 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
8187 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
8188 * src/libs/libgroff/htmlhint.cc: This.
8189 * src/libs/libgroff/Makefile.sub: Updated.
8191 * tmac/an-old.tmac (an-end): Fix page length.
8193 2001-11-16 Werner LEMBERG <wl@gnu.org>
8195 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
8196 * man/Makefile.sub: Include groff_differences.man.
8197 * VERSION: Set to 1.18.
8198 * REVISION: Set to 0.
8200 2001-11-16 Bernd Warken <bwarken@mayn.de>
8202 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
8203 the second dot (or ending macro name) to end a macro.
8204 * doc/groff.texinfo: Doc fix.
8206 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
8208 * tmac/doc-common (doc-header): Handle very long document titles
8211 2001-11-16 Werner LEMBERG <wl@gnu.org>
8213 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
8215 2001-11-15 Werner LEMBERG <wl@gnu.org>
8217 * src/roff/troff/troff.man: Revised and split into troff.man and...
8218 * man/groff_differences.man: New file.
8221 2001-11-13 Werner LEMBERG <wl@gnu.org>
8223 * tmac/an-old.tmac (TS, TE): New macros for table support.
8225 2001-11-12 Werner LEMBERG <wl@gnu.org>
8227 * src/include/lib.h: Provide a fix for emx to not include
8230 2001-10-27 Werner LEMBERG <wl@gnu.org>
8232 * src/roff/troff/input.cc (substring_macro): Fix computation of
8235 2001-10-20 Werner LEMBERG <wl@gnu.org>
8237 Undo change from 2001-08-28.
8239 * src/roff/troff/input.cc (have_input): New global variable.
8240 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
8241 in compatibility mode.
8242 (process_input_stack): Use it.
8244 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
8246 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
8247 being handled as end-of-sentence characters,
8249 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
8251 * src/roff/troff/input.cc (file_iterator): New members
8252 `suppress_newline_flag' and `seen_escape'.
8253 (file_iterator::next_file): Updated.
8254 (file_iterator::fill): Use it.
8255 (string_iterator): New member `suppress_newline_flag'.
8256 (string_iterator::fill): Set it.
8257 (get_color_element): Use MAX_COLOR_VAL.
8258 * src/roff/troff/env.cc (environment): Remove `need_eol'.
8259 (no_fill): Don't set `env->ignore_next_eol'.
8260 (environment::newline): Handle `eol' tag properly.
8262 (environment::add_html_tag): Set `env->ignore_next_eol'.
8264 * src/roff/troff/env.h (environment): Updated.
8266 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
8268 (html_printer::outstanding_eol): New member function.
8269 (html_printer::do_title): Use new functions.
8270 (html_printer::troff_tag): Test `id_eol_ce'.
8272 2001-10-10 Werner LEMBERG <wl@gnu.org>
8274 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
8275 files work with -C also.
8277 2001-10-05 Werner LEMBERG <wl@gnu.org>
8279 * doc/pic.ms: Minor fix.
8280 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
8281 as a valid command line switch.
8282 * src/devices/grohtml/post-html.cc (main): Ditto.
8284 * src/devices/grohtml/grohtml.man: Updated.
8285 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
8287 2001-10-04 Werner LEMBERG <wl@gnu.org>
8289 Implementing color support in troff, pic, grops, and grohtml. These
8290 changes are based on a major patch provided by Gaius Mulley
8293 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
8294 definitions with both hex values and fractions.
8296 New escapes: \m and \M for drawing and background color,
8297 respectively. This corresponds to the troff output commands `m'
8300 groff and troff accept command line switch `-c' to disable color
8301 output (which is automatically disabled in compatibility mode).
8303 New scaling indicator `f' for fractions (1f = 65536u).
8305 New conditional operator `m' to test for defined colors with `if'
8308 New keywords `color' (or `colour', `colored', `coloured'), `outline'
8309 (or `outlined'), and `shaded' added to pic.
8311 * src/include/color.h: New file.
8312 * src/include/driver.h: Include it.
8313 * src/include/printer.h: Include color.h.
8314 (environment): New members `col' and `fill'.
8315 (printer): Remove `adjust_arc_center' member function.
8316 * src/include/Makefile.sub: Updated.
8318 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
8320 Handle `m' and `DF' troff commands.
8321 * src/libs/libgroff/color.cc: New file.
8322 * src/libs/libgroff/Makefile.sub: Updated.
8324 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
8326 (createImage): Fix computation of `y2'.
8328 (buffer::write_file_html): Remove calls to `stop'.
8330 * src/preproc/pic/common.h (common_output): New abstract function
8331 members `set_color', `reset_color', `get_last_filled', and
8332 `get_outline_color'.
8333 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8334 (object_spec): Add members `shaded' and `outlined'.
8335 * src/preproc/pic/output.h (output): `command' is now abstract.
8336 New function members `set_color', `reset_color', `get_last_filled',
8337 and `get_outline_color'.
8338 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8339 `outline[d]', and `shaded'.
8340 * src/preproc/pic/object.cc (output::command): Removed.
8341 (output::set_location): Moved to output.h.
8342 (graphic_object): Add protected members `outline_color' and
8344 Add member functions `set_outline_color', `get_outline_color', and
8346 (closed_object): Add member function `set_fill_color'.
8347 Add member `color_fill'.
8348 (graphic_object::print_text): Use `out->set_color' and
8350 (box_object::print, ellipse_object::print, circle_object::print,
8351 line_object::print, spline_object::print, arc_object::print): Ditto.
8352 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8353 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8354 `SHADED', making them `%left'.
8355 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8356 * src/preproc/pic/tex.cc (tex_output): New dummy function members
8357 `set_color', `reset_color', `get_last_filled', and
8358 `get_outline_color'.
8359 * src/preproc/pic/troff.cc (simple_output): New abstract function
8360 members `set_color', `reset_color', and `get_last_filled'.
8361 (simple_output::polygon, simple_output::circle,
8362 simple_output::ellipse): Use `get_last_filled'.
8363 (troff_output): New members `last_filled' and `last_outlined'.
8364 New function members `set_color', `reset_color', `get_last_filled',
8365 and `get_outline_color'.
8366 (troff_output::finish_picture): Use `reset_color'.
8367 (troff_output::set_fill): Test `last_filled'.
8368 * src/preproc/pic/pic.man: Updated.
8370 * src/roff/groff/groff.cc (main): Implement `-c' option.
8371 (synopsis, help): Updated.
8372 src/roff/groff/groff.man: Updated.
8374 * src/roff/troff/troff.h: Include color.h.
8375 (warning_type): Add WARN_COLOR.
8376 * src/roff/troff/env.h (environment): New members
8377 `{cur,prev}_{glyph,fill}_color'.
8378 New member functions `get_{prev_,}{glyph,fill}_color'.
8379 * src/roff/troff/env.cc: Initialize and implement them.
8380 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8381 Replace `NULL' with `0' everywhere for consistency.
8382 (lookup_color, default_black, do_glyph_color, do_fill_color,
8383 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8384 define_color): New functions.
8385 (token::next): Implement \M and \m escapes.
8386 (do_if_request): Implement `m' operator.
8388 (main): Implement `-c' option.
8389 (init_markup_requests): Add `defcolor' request.
8390 (warning_table): Add `color' warning.
8391 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8393 * src/roff/troff/node.cc (troff_output_file): New members
8394 `current_{page,glyph}color'. New member functions `put_hex',
8395 `glyph_color', and `fill_color'.
8396 (glyph_color_node::*, fill_color_node::*): Implement it.
8397 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8398 (parse_term): Add support for `f'.
8399 * src/roff/troff/troff.man: Updated.
8401 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8403 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8404 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8406 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8407 (tag_definition): Use `void *' for arg1.
8408 (html_text): New member functions `do_color' and `done_color'.
8409 Use `void *' for second parameter of `push_para' member function.
8410 New `push_para' member function with a single parameter.
8411 Use `char *' for parameter of `issue_table_begin' member funtion.
8412 New `issue_color_begin' member function.
8413 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8415 (html_text::issue_color_begin): New function.
8416 (html_text::issue_table_begin): Use `char *' for parameter.
8417 (html_text::start_tag, html_text::shutdown,
8418 html_text::check_emit_text): Updated.
8419 (html_text::push_para): Use `void *' for second parameter.
8420 Add same function with only one parameter.
8421 (html_text::do_*): Updated.
8422 (html_text::do_color, html_text::done_color): New functions.
8423 * src/devices/grohtml/post-html.cc (style): New member `col'.
8424 Mew member `style' with 6 parameters.
8425 (style::style, style::operator==): Updated.
8426 (html_printer::do_font): Use it.
8427 (html_printer::draw): Add dummy entry for `F'.
8428 (html_printer::set_char): Updated.
8429 * src/devices/grohtml/grohtml.man: Updated.
8431 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8432 trailing zeroes removed.
8433 (ps_printer): New members `sbuf_color', `fill_color', and
8435 Removed member `fill'.
8436 New member function `set_color'.
8437 (ps_printer::ps_printer, ps_printer::set_char): Updated.
8438 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8439 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8441 * tmac/color-html.tmac, tmac/color.tmac: New files.
8442 * tmac/troffrc: Include them.
8443 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8444 * tmac/Makefile.sub: Updated.
8446 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8447 man/groff.man: Updated.
8448 * font/devps/prologue.ps: Define FC and CO functions.
8450 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
8452 Fix incorrect cropping of images and incorrect handling of special
8453 characters. Fix handling of file names in \O.
8455 * src/include/geometry.h: New file.
8456 * src/libs/libgroff/geometry.cc: New file.
8457 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8459 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8461 (do_suppress): Updated.
8462 * src/roff/troff/node.cc: Include geometry.h.
8463 (troff_output_file::flush_tbuf): Fixed parameters to
8464 `check_output_limits'.
8465 (troff_output_file::check_charinfo): Ditto.
8466 (troff_output_file::determine_line_limits): Add support for `Da'
8469 * src/devices/grohtml/post-html.cc (str_translate_to_html):
8470 Add new parameter `is_special' to decode special characters from
8472 (html_printer::do_title, html_printer::do_heading,
8473 html_printer::do_indentedparagraph,
8474 html_printer::translate_to_html, html_printer::special): Updated.
8476 2001-10-03 Werner LEMBERG <wl@gnu.org>
8478 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8479 Fix entry for config.h.
8480 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8481 * tmac/troffrc: Translate nonbreakable space character to `\~'.
8482 * src/preproc/eqn/eqn.man: Document -d command line option.
8484 2001-09-27 Werner LEMBERG <wl@gnu.org>
8486 * man/groff.man: Use
8494 instead of the old code (`.ad .hy' after the table) to suppress
8495 incorrect hyphenation for grohtml output.
8497 2001-09-22 Werner LEMBERG <wl@gnu.org>
8499 * man/groff_font.man, man/groff_out.man: Minor fixes.
8501 2001-09-20 Werner LEMBERG <wl@gnu.org>
8503 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
8504 Arnold Robbins <arnold@skeeve.com>).
8506 2001-09-09 Werner LEMBERG <wl@gnu.org>
8508 * configure: Regenerated with autoconf 2.52.
8510 * doc/groff.texinfo: Complete revision of indices.
8512 2001-09-07 Werner LEMBERG <wl@gnu.org>
8514 * doc/Makefile (clean): Updated to delete all indices.
8516 2001-09-05 Werner LEMBERG <wl@gnu.org>
8518 * src/roff/troff/troff.man: Remove superfluous line.
8520 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8521 given on the command line (or rather, if only the default warnings
8524 2001-09-03 Werner LEMBERG <wl@gnu.org>
8526 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8527 use .ne for TTY devices.
8529 2001-08-31 Werner LEMBERG <wl@gnu.org>
8531 * src/roff/troff/token.h, src/roff/troff/input.cc:
8532 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8534 2001-08-28 Werner LEMBERG <wl@gnu.org>
8536 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8537 * src/roff/troff/input.cc (token::next): Return
8538 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8540 (token::description): Updated.
8541 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8542 (token::add_to_node_list, token::process): Ignore
8543 TOKEN_TRANSPARENT_ESCAPE.
8545 2001-08-27 Werner LEMBERG <wl@gnu.org>
8547 * tmac/an-old.tmac: Fix `S' string.
8549 2001-08-26 Werner LEMBERG <wl@gnu.org>
8551 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8553 2001-08-25 Werner LEMBERG <wl@gnu.org>
8555 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8557 Many other minor fixes.
8559 * configure.ac: Add message at end to inform how to compile
8561 * configure: Regenerated.
8563 2001-08-24 Werner LEMBERG <wl@gnu.org>
8565 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8566 Updated to latest version of libc.
8568 2001-08-23 Werner LEMBERG <wl@gnu.org>
8570 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8571 Autoconf 2.50 and newer can handle this.
8572 * configure: Regenerated.
8574 2001-08-21 Werner LEMBERG <wl@gnu.org>
8576 * doc/pic.ms: Fix typo.
8577 * src/preproc/tbl/tbl.man: Document case of global options.
8579 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
8581 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8582 handling of `CR' font.
8584 2001-08-20 Werner LEMBERG <wl@gnu.org>
8586 Use a config.h file.
8588 * src/include/lib.h: Include config.h.
8589 * All C files: Ditto (if necessary).
8590 * All C++ source and header files: Include lib.h first (if
8593 * src/include/config.hin: New file (autogenerated by autoheader).
8594 * stamp-h.in: New file.
8595 * configure.ac: Updated.
8596 * aclocal.m4: Add third parameters to AC_DEFINE macros.
8597 (GROFF_ARRAY_DELETE): Simplified.
8598 * Makefile.sub (DISTCLEANFILES): Updated.
8599 Added targets for remaking config.status, config.hin, config.h,
8600 stamp-h.in, and stamp-h.
8601 * configure: Regenerated.
8603 2001-08-19 Werner LEMBERG <wl@gnu.org>
8607 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
8609 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8610 (do_sprintf): Use snprintf().
8612 2001-08-18 Werner LEMBERG <wl@gnu.org>
8614 * src/libs/snprintf/*: Added an snprintf module written by Mark
8616 * src/libs/libgroff/Makefile.sub: Updated.
8617 * configure.ac: Add test for snprintf().
8618 * Makefile.in: Updated.
8619 * configure: Regenerated.
8621 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8624 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
8626 * tmac/doc.tmac (Ex): New implementation.
8627 * tmac/doc-common, tmac/groff_tmac.man: Updated.
8629 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
8631 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8633 * tmac/groff_tmac.man: Updated.
8635 2001-08-13 Werner LEMBERG <wl@gnu.org>
8637 * src/preproc/tbl/tbl.man: Minor documentation update.
8639 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
8641 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8642 * configure.ac: Add declaration test for gettimeofday().
8643 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8644 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8645 * configure: Regenerated.
8647 2001-08-11 Werner LEMBERG <wl@gnu.org>
8649 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8650 * configure.ac: Add declaration test for strcasecmp().
8651 * Makefile.in: Updated.
8652 * configure: Regenerated.
8653 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8654 this is necessary because groff's mkstemp.cc is C++.
8655 Add declaration conditionally for strcasecmp().
8657 2001-08-10 Werner LEMBERG <wl@gnu.org>
8659 Integrated pic2graph, contributed by Eric S. Raymond.
8661 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8663 * Makefile.in, NEWS: Updated.
8665 * src/preproc/tbl/tbl.man: Revised.
8667 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
8669 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8671 2001-08-09 Werner LEMBERG <wl@gnu.org>
8673 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8676 2001-08-08 Paul Eggert <eggert@twinsun.com>
8678 * Makefile.sub (configure): Depend on configure.ac, not
8680 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8682 2001-08-07 Werner LEMBERG <wl@gnu.org>
8684 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8687 2001-08-06 Werner LEMBERG <wl@gnu.org>
8689 * src/roff/troff/troff.man: Improve documentation of -E option.
8691 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8693 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8696 2001-07-27 Werner LEMBERG <wl@gnu.org>
8698 * src/preproc/refer/refer.cc: Undo last change.
8699 * src/devices/grohtml/post-html.cc: Ditto.
8701 2001-07-26 Werner LEMBERG <wl@gnu.org>
8703 * src/preproc/refer/refer.cc: Include `lib.h'.
8704 * src/devices/grohtml/post-html.cc: Ditto.
8706 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
8708 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8709 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8710 * Makefile.in: Comment updated.
8711 * configure: Regenerated.
8713 2001-07-25 Werner LEMBERG <wl@gnu.org>
8715 * src/preproc/pic/pic.cc: Removed.
8716 * src/preproc/pic/pic_tab.h: Removed.
8717 * src/preproc/refer/label.cc: Removed.
8719 * doc/Makefile (.ms.html): Don't use a file name extension in
8720 argument to grohtml's -I option.
8721 * Makefile.in (dist): Remove CVS directories.
8722 Call `distfiles' target.
8724 * src/devices/grohtml/grohtml.man: Add information about valid
8725 versions of pnmtopng.
8726 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8727 name instead of number.
8729 2001-07-24 Werner LEMBERG <wl@gnu.org>
8731 * doc/groff.texinfo: Minor fixes.
8733 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
8735 * doc/Makefile (.ms.html): Put image files into a subdirectory.
8738 2001-07-20 Werner LEMBERG <wl@gnu.org>
8740 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8741 * src/libs/libgroff/mkstemp.cc: New file.
8742 * src/libs/libgroff/mksdir.cc: New file.
8743 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8744 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8745 * src/libs/libgroff/Makefile.sub: Updated.
8746 * src/include/lib.h: Add mksdir() prototype.
8747 * src/include/posix.h: Define S_IXUSR if not yet defined.
8749 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8750 (createAllPages): Use mksdir() instead of current code.
8751 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8752 (main): [!HAVE_MKSTEMP]: Removed.
8754 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8755 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8757 * configure.ac: Add tests for stdint.h, sys/time.h, and
8759 Call new GROFF_xxx macros.
8760 * configure: Regenerated.
8761 * Makefile.in: Comments updated.
8763 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
8765 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8766 instead of current code.
8767 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8768 * src/roff/groff/groff.cc (possible_command::insert_args): New
8770 (main): Use it for predriver handling instead of insert_arg().
8772 2001-07-19 Werner LEMBERG <wl@gnu.org>
8774 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8777 * src/include/posix.h: Define S_IWUSR if not yet defined.
8779 2001-07-18 Werner LEMBERG <wl@gnu.org>
8783 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
8785 * tmac/groff_mdoc.man: Document new -width and -column syntax.
8786 Some other minor fixes.
8787 * tmac/an-old.tmac: Add `AT' and `UC' macros.
8789 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
8791 Replace call to `troff' with `groff -Z' to make it aware of
8794 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8795 (troff_command, command_prefix): Removed.
8796 (alterDeviceTo): Use groff.
8797 (addZ): New function.
8798 (char_buffer::do_html): Use it.
8799 (scanArguments): Use TROFF_COMMAND.
8800 (findPrefix): Removed.
8802 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8804 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
8806 * doc/pic.ms: Documentation fixes.
8808 2001-07-17 Werner LEMBERG <wl@gnu.org>
8810 Replace atexit() with global destructor.
8812 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8813 (xtmpfile_list_init): New global structure to deallocate
8814 xtmpfile_list on exit. Its destructor inherits most code from
8816 (remove_tmp_files): Deleted.
8817 (add_tmp_file): Simplified.
8819 2001-07-16 Werner LEMBERG <wl@gnu.org>
8821 Replace strdup() with strsave().
8823 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8824 (set_papersize): Use strsave() and a_delete.
8825 (main): Use strsave().
8826 * src/preproc/html/pre-html.cc (make_message, createAllPages,
8827 removeAllPages): Use strsave() and a_delete.
8829 * configure.ac: Remove test for strdup.
8830 * Makefile.in: Comment updated.
8831 * configure: Regenerated.
8833 2001-07-15 Werner LEMBERG <wl@gnu.org>
8835 * win32-diffs: Updated.
8837 2001-07-14 Werner LEMBERG <wl@gnu.org>
8839 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8840 removing the old one.
8841 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8843 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8845 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8847 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
8849 Merge -xwidth into -width. Add -xwidth functionality to -column
8852 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8854 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
8855 string immediately following a leading dot starts with a valid mdoc
8857 Add similar code to the -column branch.
8858 (doc-Bl-usage): Updated.
8859 * groff_mdoc.man: s/-xwidth/-width/.
8861 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
8863 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8864 running into centered or non-formatted text.
8866 2001-07-11 Werner LEMBERG <wl@gnu.org>
8868 Introduce short and long prefixes to have the selection at run-time
8869 whether there is a 8+3 limit for names of temporary files.
8871 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8872 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8873 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8875 (temp_init): New global structure to initialize above three
8877 (xtmptemplate): Use two parameters for long and short prefix.
8878 Simplify code use above three variables.
8879 (xtmpfile): Use long and short prefixes as parameters.
8880 * src/include/lib.h: Updated.
8882 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8884 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8885 (createAllPages, makeTempFiles): Updated.
8887 2001-07-09 Werner LEMBERG <wl@gnu.org>
8889 * REVISION: Increased to 3.
8891 Version 1.17.2 released
8892 =======================
8894 2001-07-07 Werner LEMBERG <wl@gnu.org>
8896 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8899 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
8901 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8903 * tmac/groff_mdoc.man: Fix synopsis.
8905 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
8907 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8908 Restore `doc-Pa-font'.
8910 2001-07-04 Werner LEMBERG <wl@gnu.org>
8912 * src/utils/indxbib/dirnamemax.c: Moved to ...
8913 * src/libs/libgroff/maxfilename.cc: Here.
8914 s/dir_name_max/file_name_max/.
8916 * src/include/lib.h: Add file_name_max.
8917 * src/utils/indxbib/indxbib.cc: Updated.
8918 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8921 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8923 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8925 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8926 REGION_TEMPLATE): New macros.
8927 (createAllPages, makeTempFiles): Use them.
8928 Include `nonposix.h'.
8929 (html_system): New function.
8930 (createAllPages, createImage): Use it.
8933 * tmac/www.tmac: Fix typos.
8935 2001-07-03 Werner LEMBERG <wl@gnu.org>
8937 * tmac/www.tmac: Disable hyphenation in normal text only if output
8939 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8940 * tmac/groff_mwww.man, NEWS: Updated.
8942 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
8944 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8947 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
8949 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8950 doc-display-ps-stack): Implement font and font size stack for
8953 2001-07-02 Werner LEMBERG <wl@gnu.org>
8955 * REVISION: Increased to 2.
8956 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8958 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8959 beginning of a line.
8960 * src/groff/grog/grog.sh: Ditto.
8962 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
8964 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8967 2001-06-27 Werner LEMBERG <wl@gnu.org>
8969 Fix problems with preprocessor string for `man' program.
8971 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
8972 Updated/added copyright.
8973 Moved Emacs's local variable to identify nroff mode to the end of
8974 the file; add local variable if missing.
8976 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
8978 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8979 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8980 * configure: Regenerated.
8982 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
8984 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8985 * configure: Regenerated.
8987 2001-06-24 Werner LEMBERG <wl@gnu.org>
8989 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8991 * doc/pic.ms: Fix typos.
8993 Version 1.17.1 released
8994 =======================
8996 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
8998 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8999 * configure: Updated.
9001 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
9003 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
9005 * src/roff/troff/dic.cc (blank_line): Add html tag.
9007 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
9009 * src/roff/troff/input.cc (do_suppress): Fix typo.
9011 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
9013 Added two new options (-D and -I) to specify image names and a
9014 subdirectory to place the images in.
9016 Change syntax from \\Ox to \\O[x].
9018 * src/devices/grohtml/post-html.cc (main): Add options.
9020 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
9021 Use `NULL' instead of `0' for null string pointers.
9022 (MAX_RETRIES): New macro.
9023 (lengthOfintToStr, intToStr, make_message): New functions.
9024 (makeFileName): Make function static.
9025 Implement -D and -I options.
9026 (checkImageDir): New function.
9027 (write_end_image, write_start_image): Use new syntax of \O.
9028 (createAllPages, removeAllPages): Implement -D and -I options. Use
9030 (createImage): Use make_message().
9031 (addps4html): Add guard for malloc().
9032 (usage, scanArguments): Updated.
9033 (makeTempFiles): Use mkstemp().
9034 (removeTempFiles): Use unlink().
9035 (findPrefix): Add guard for malloc().
9037 * src/roff/troff/input.cc (get_delim_file_name): New function to
9039 (do_suppress): Updated to parse new syntax.
9040 * src/devices/grohtml/grohtml.man: Updated.
9041 * tmac/www.tmac: Updated to new syntax.
9045 2001-06-15 Werner LEMBERG <wl@gnu.org>
9047 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
9049 * src/devices/grohtml/grohtml.man: Minor improvements.
9051 2001-06-14 Werner LEMBERG <wl@gnu.org>
9053 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
9055 2001-06-11 Werner LEMBERG <wl@gnu.org>
9057 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
9058 line to specify preprocessor options -- mandb 2.3.1 only recognizes
9060 * src/preproc/grn/grn.man: Add proper '\" string.
9062 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
9064 * test-groff: Don't use PATH but GROFF_BIN_PATH.
9066 2001-06-08 Werner LEMBERG <wl@gnu.org>
9068 Updated to autoconf 2.50.
9070 * configure.in: Renamed to...
9071 * configure.ac: This.
9072 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
9073 (GROFF_OS390): Updated.
9074 * configure: Regenerated.
9076 2001-05-18 Werner LEMBERG <wl@gnu.org>
9078 * src/roff/troff/env.c, src/roff/troff/env.h,
9079 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
9082 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
9084 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
9086 2001-05-16 Werner LEMBERG <wl@gnu.org>
9088 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
9089 less than or equal zero; set it to 1 then.
9090 * src/roff/troff/node.h (node::node): Initialize `last'.
9092 2001-05-08 Werner LEMBERG <wl@gnu.org>
9094 * tmac/an-old.tmac: Make predefined strings work in compatibility
9096 Add troff version guard.
9097 * tmac/doc.tmac: Simplify version guard.
9099 2001-05-07 Werner LEMBERG <wl@gnu.org>
9101 The .ns and .rs requests are now honoured not only in the top-level
9102 but in all diversions (similar to UNIX troff).
9104 This change is based on a patch from Tadziu Hoffmann
9105 <hoffmann@usm.uni-muenchen.de>.
9107 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
9108 (top_level_diversion): Remove `no_space_mode' member.
9109 * src/roff/troff/div.cc (diversion::diversion,
9110 top_level_diversion::top_level_diversion): Updated.
9111 (macro_diversion::output): Reset `no_space_mode'.
9112 (no_space, restore_spacing): Use `curdiv' unconditionally.
9113 (space_request, blank_line): Check `curdiv->no_space_mode'.
9114 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
9115 `curdiv' unconditionally.
9116 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9119 2001-05-06 Werner LEMBERG <wl@gnu.org>
9121 Added two new requests `de1' and `am1' which are similar to `de' and
9122 `am' with the difference that compatibility mode is saved on entry,
9123 switched off during macro execution, and restored on exit.
9125 * src/roff/troff/input.h: Added two new special characters
9126 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
9127 * src/roff/troff/input.cc (input_iterator): Added two member
9128 functions `save_compatible_flag' and `get_compatible_flag'.
9129 (input_stack): Ditto.
9130 (string_iterator): Ditto. Also add private member
9131 `saved_compatible_flag'.
9132 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
9133 (calling_mode): New enumeration.
9134 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
9135 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
9136 (define_macro, define_indirect_macro, append_macro, ignore): Use
9138 (define_nocomp_macro, append_nocomp_macro): New functions.
9139 (init_input_requests): Updated.
9140 (do_request): Rename local variable `saved_compatible_flag' to
9141 `old_compatible_flag'.
9142 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9144 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
9145 public and trap-invoked macros. As a consequence, the man macros
9146 work in compatibility mode also.
9148 2001-05-06 Solar Designer <solar@openwall.com>
9150 * Makefile.in: Use $(mandir).
9152 2001-05-06 Alexios Zavras <zvr@pobox.com>
9154 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
9156 2001-05-05 Werner LEMBERG <wl@gnu.org>
9158 Added `.ns' number register: Returns 1 in no-space mode (if in
9159 top-level diversion), 0 otherwise.
9161 * src/roff/troff/div.cc (no_space_mode_reg): New class.
9162 (init_div_requests): Updated.
9163 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9166 2001-05-04 Werner LEMBERG <wl@gnu.org>
9168 * src/roff/nroff/nroff.man: Improved documentation (especially
9171 2001-05-02 Werner LEMBERG <wl@gnu.org>
9173 Added `brp' request: This is \p as a request.
9175 * src/roff/troff/env.cc (environment::do_break): Add parameter
9177 (do_break_request): New function (was `break_request').
9178 (break_request): Calls `do_break_request'.
9179 (break_spread_request): New; calls `do_break_request'.
9180 (init_env_requests): Updated.
9181 * src/roff/troff/env.h: Updated.
9182 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9184 * REVISION: Increased to 1.
9185 * win32-diffs: Updated.
9187 2001-05-01 Werner LEMBERG <wl@gnu.org>
9189 * tmac/an-old.tmac: Fix minor compatibility mode issue.
9190 * tmac/troffrc-end: Make it really work in compatibility mode.
9192 2001-04-27 Werner LEMBERG <wl@gnu.org>
9194 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
9197 2001-04-22 Werner LEMBERG <wl@gnu.org>
9199 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
9200 latest versions from glibc CVS archive.
9202 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
9203 <c.zeelenberg@hccnet.nl>.
9205 2001-04-21 Werner LEMBERG <wl@gnu.org>
9207 * configure.in: Move check for mkstemp() to...
9208 * aclocal.m4 (GROFF_MKSTEMP): This new function.
9209 * configure: Regenerated.
9211 * src/include/groff-getopt.h: Don't use variable names in
9214 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
9215 * src/devices/grohtml/Makefile.sub,
9216 src/devices/grohtml/post-html.cc: Updated.
9218 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
9220 * configure.in: Add special check for mkstemp().
9221 * src/libs/libgroff/tmpfile.cc: Use it.
9222 * src/utils/indxbib/indxbib.cc: Ditto.
9223 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
9224 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
9227 2001-04-20 Bruce Lilly <blilly@erols.com>
9229 `Version_string' as C++ object was not visible to linker from C
9231 Add `const' to `Version_string'.
9233 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
9234 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
9235 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
9236 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
9237 (scanArguments), src/preproc/refer/refer.cc (main),
9238 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
9239 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
9240 (main), src/devices/grohtml/post-html.cc (main),
9241 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
9242 (main), src/utils/hpftodit/hpftodit.cc (main),
9243 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
9244 (main), src/utils/lkbib/lkbib.cc (main),
9245 src/utils/addftinfo/addftinfo.cc (main): Implement it.
9247 * src/roff/groff/pipeline.c: Add _UWIN.
9248 * src/include/nonposix.h: Ditto.
9250 2001-04-20 Werner LEMBERG <wl@gnu.org>
9252 * src/include/lib.h: Use HAVE_STRERROR.
9253 * src/roff/groff/pipeline.c: Ditto.
9254 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
9255 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
9256 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
9257 * win32-diffs: Updated.
9258 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
9260 2001-04-19 Werner LEMBERG <wl@gnu.org>
9262 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
9263 instead of hardwired `"troff"'.
9264 (char_buffer::read_file): Remove unused variables.
9265 (char_buffer::write_file_troff): Ditto.
9266 (char_buffer::write_file_html): Ditto.
9267 (generateImages): Ditto.
9269 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
9271 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
9273 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
9274 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
9275 index_search_item::search1): Ditto.
9276 * src/roff/troff/node.h (width_list): Reorder members.
9277 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
9278 (lookup_warning): Ditto.
9279 (prepend_string): Commented out.
9280 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
9281 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
9282 * src/preproc/tbl/main.cc (process_format): Ditto.
9283 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
9285 * src/preproc/pic/pic.cc: Updated.
9286 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
9287 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
9288 * src/preproc/refer/command.cc (execute_command): Ditto.
9289 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
9290 * src/preproc/refer/token.cc (lookup_token): Ditto.
9291 * src/preproc/soelim/soelim.cc: Ditto.
9292 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
9293 (isHexDigit): Commented out.
9294 (pushBackBuffer::isString): Remove unused variable.
9295 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
9297 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
9298 resource_manager::read_resource_arg, read_one_of, parse_extensions):
9300 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
9301 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
9302 lookup_paper_size): Ditto.
9303 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
9304 (text_glob, element_list): Reorder members.
9305 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
9307 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
9308 return value to `void'.
9309 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
9311 * src/devices/grohtml/html.h (simple_output::check_newline,
9312 simple_output::space_or_newline, simple_output::enable_newlines):
9314 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
9316 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
9317 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
9318 output_ligatures, output_charset, read_map): Ditto.
9319 * src/utils/lookbib/lookbib.cc (main): Ditto.
9320 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
9321 (do_file): Fix typo (`=' -> `==').
9322 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
9323 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
9325 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
9327 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
9328 Fix usage of GROFF_BIN_PATH.
9329 * src/roff/nroff/nroff.man: Updated.
9331 2001-04-18 Werner LEMBERG <wl@gnu.org>
9333 * NEWS: Fixing typos.
9336 Version 1.17 released
9337 =====================
9339 2001-04-17 Werner LEMBERG <wl@gnu.org>
9341 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9342 directory, not in $(srcdir).
9344 2001-04-16 Werner LEMBERG <wl@gnu.org>
9346 * doc/groff.texinfo: More info on conditionals.
9348 2001-04-15 Werner LEMBERG <wl@gnu.org>
9350 * doc/groff.texinfo: Added some info about groff internals.
9352 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9353 about missing special character only if the name is non-null.
9355 2001-04-14 Werner LEMBERG <wl@gnu.org>
9357 Removing the grohtml-old device driver which is now obsolete.
9359 * src/devices/grohtml-old/*: Removed.
9360 * font/devhtml-old/*: Removed.
9361 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9363 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9364 * test-groff (PATH): Updated.
9365 * tmac/Makefile.sub (NORMALFILES): Updated.
9366 * tmac/an-old.tmac: Remove special code for html-old device.
9367 Replace `html-or-html-old' register with `an-html'.
9368 * tmac/eqnrc: Updated.
9369 * tmac/html-old.tmac: Removed.
9370 * tmac/troffrc, tmac/troffrc-end: Updated.
9371 * tmac/www.tmac: Remove special code for html-old device.
9372 Replace `html-or-html-old' register with `www-html'.
9374 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9375 src/libs/libgroff/htmlindicate.cc (graphic_end),
9376 include/htmlindicate.h, src/preproc/grn/*.cc,
9377 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9378 single argument for consistency with rest of source code.
9380 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9382 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
9384 * src/roff/troff/troff.man: Fixing typos.
9386 2001-04-13 Werner LEMBERG <wl@gnu.org>
9388 * doc/pic.ms: Fixing many font switches.
9389 * doc/groff.texinfo: Fixes, additions.
9390 * MORE.STUFF: Updated.
9392 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
9394 * src/devices/grohtml/grohtml.man: Updated manual page regarding
9396 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9398 (removeTempFiles): New function to tidy up temporary files.
9399 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9400 Many fixes to do with the new inline suppress node and image regions
9402 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9403 (generate_img_src): New function.
9404 (html_printer::do_auto_image): Utilizes it.
9405 (do_heading, do_title): Include inline images within their contents.
9406 (html_printer::begin_page): Tidied up comments that are issued to
9407 the html output file.
9408 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9410 (text_glob::is_br): New method used by do_heading.
9411 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9412 equivalent diversion.
9413 * src/include/html-strings.h: Altered image tags to reflect the
9415 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9417 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9418 it is already inside a pic image. Only emit tags if the argument
9419 `-Tps:html' is present.
9420 * src/preproc/tbl/main.cc: Changes to reflect additional
9421 `html_end_suppress' parameter.
9422 * src/roff/troff/env.cc: Only emit eol tag if a node has been
9423 emitted since the last eol tag was written.
9424 * src/roff/troff/env.h: New boolean `emitted_node'.
9425 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9426 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
9427 * src/roff/troff/node.cc (check_charinfo): New method.
9428 (troff_output_file::determine_line_limits): Alterations to limit
9430 * tmac/www.tmac: Changes to reflect new suppress nodes.
9432 2001-04-12 Bruno Haible <haible@clisp.cons.org>
9434 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9435 Escape the html_glyph in the buffer.
9436 (str_translate_to_html): Output the unescaped escaped_char.
9437 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9438 `frame=void', not `frame=none'. Add `border=0'.
9440 2001-04-12 Werner LEMBERG <wl@gnu.org>
9442 * PROBLEMS: Add some words on how to avoid wrapper macros.
9444 2001-04-11 Blake McBride <blake@florida-software.com>
9446 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9448 2001-04-11 Werner LEMBERG <wl@gnu.org>
9450 * font/devlbp/Makefile.sub (CLEANADD): Set it.
9451 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9452 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9453 * Makefile.sub (DISTCLEANFILES): Here.
9455 * libs/libgroff/new.cc: Include `nonposix.h'.
9456 * win32-diffs: Updated.
9458 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
9460 Added skeleton macro for defunct macros.
9462 Updated documentation.
9464 When inside displays, an empty input line warning should be
9465 suppressed. If another macro call is put inside a display,
9466 all subsequent empty lines found in that display caused a
9467 warning to be emitted.
9469 * tmac/doc.tmac (doc-defunct-macro): New macro.
9470 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9471 (doc-restore-global-vars): Fixed typo.
9472 (doc-empty-line): Check the `doc-display-depth' register to
9473 determine whether we are inside display or not.
9475 * tmac/doc-common: Removed `Or' and `Sf' registers.
9476 Moved obsolete `Ds' macro to doc.tmac.
9478 * tmac/groff_mdoc.man: Bump document date.
9479 Document `.Vt' under ``Variable Types''.
9480 Removed documentation for obsolete `.Or' macro.
9482 2001-04-10 Werner LEMBERG <wl@gnu.org>
9485 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9487 2001-04-10 Bruno Haible <haible@clisp.cons.org>
9489 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9490 (usage): Add stream argument. Don't exit.
9491 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9492 Write --version output to stdout, not stderr.
9493 (usage): Add stream argument. Don't exit.
9494 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9495 (usage): Add stream argument. Don't exit.
9496 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9498 (usage): Add stream argument. Don't exit.
9499 (main): Write --help output to stdout, not stderr.
9500 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9501 (usage): Add stream argument. Don't exit.
9502 * src/devices/grops/ps.cc (main): Accept --help and --version.
9503 (usage): Add stream argument. Don't exit.
9504 * src/devices/grotty/tty.cc (main): Accept --help and --version.
9505 (usage): Add stream argument. Don't exit.
9506 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9507 (main): Accept --help and --version.
9508 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9509 (main): Accept --help and --version.
9510 * src/preproc/html/pre-html.cc (usage): Add stream argument.
9511 (scanArguments): Accept --help and --version.
9512 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9513 (main): Accept --help and --version.
9514 * src/preproc/refer/refer.cc (main): Accept --help and --version.
9515 (usage): Add stream argument. Don't exit.
9516 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9518 (main): Accept --help and --version.
9519 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9520 (main): Accept --help and --version.
9521 * src/roff/groff/groff.cc (main): Accept --help and --version.
9522 (synopsis): Add stream argument.
9523 (help): Write --help output to stdout, not stderr.
9524 (usage): Add stream argument. Don't exit.
9525 * src/roff/grog/grog.pl: Accept --help and --version.
9527 * src/roff/grog/grog.sh: Accept --help and --version.
9528 * src/roff/nroff/nroff.sh: Accept --help and --version.
9529 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9530 (usage): Add stream argument. Don't exit.
9531 (main): Accept --help and --version.
9532 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9533 (usage): New function with stream argument, doesn't exit.
9534 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9535 (usage): New function with stream argument, doesn't exit.
9536 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9537 (usage): Add stream argument. Don't exit.
9538 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9539 (main): Accept --help and --version.
9540 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9542 (main): Accept --help and --version.
9543 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9544 (main): Accept --help and --version.
9545 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9546 (usage): Add stream argument. Don't exit.
9548 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
9550 Fix indentation in SYNOPSIS.
9552 Updated to include changes of latest BSD mdoc version (basically,
9553 the only change is that `.Fn' and `.Fc' put a final semicolon after
9554 a function declaration in the SYNOPSIS section).
9556 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9557 (doc-in-synopsis-section): New variable. Updated all related
9559 (doc-indent-synopsis-active): New register.
9560 (Nd, Fn, Fo): Use it.
9561 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9562 `.Cd' with long argument line produces indented wrapped lines.
9563 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9564 undesirable line break to be output.
9565 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9567 (Fn, Fc): Add final `;' to output.
9568 (doc-save-global-vars, doc-restore-global-vars): Updated.
9569 * tmac/doc-common: Remove `Ex' register.
9571 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9574 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9576 * tmac/doc.tmac (Cd): Simplify code.
9577 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9579 2001-04-06 Werner LEMBERG <wl@gnu.org>
9581 Implement continuous underlining for nroff mode. To do that, a new
9582 request in the ditroff language has been added: `x u N' (N is 0
9585 \X and \Y are now transparent to end-of-sentence recognition.
9587 * src/include/printer.h (printer): Add `type' parameter to `special'
9589 * src/libs/libdriver/printer.cc (printer::special): Updated.
9590 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9592 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9593 specials of type `p'.
9594 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9595 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9596 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9597 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9598 (glyph::order): New method.
9599 (tty_printer::add_char): Use it.
9600 (tty_printer::special): New method.
9601 (tty_printer::end_page): Implement it.
9603 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9604 * src/roff/troff/node.cc (special_node::special_node): Add parameter
9605 to set `no_init_string'.
9606 (special_node::tprint_start): Use it.
9607 (special_node::same, special_node::copy): Updated.
9608 (special_node::ends_sentence): New method.
9609 (troff_output_file::start_special): Add parameter to include
9610 inititialization of special conditionally.
9612 * src/roff/troff/env.h (environment): New member `underline_spaces'.
9613 * src/roff/troff/env.cc (do_underline_special): New function.
9614 (environment::set_font): Use it.
9615 (do_underline): Use it. This was `underline()'.
9616 (underline): Call `do_underline()'.
9617 (continuous_underline): New function which calls `do_underline()'.
9618 (environment::newline): Use `do_underline_special()'.
9619 (init_env_requests): Updated.
9621 * NEWS, man/troff_out.man: Updated.
9623 2001-04-06 Bruno Haible <haible@clisp.cons.org>
9625 * font/devutf8/R.proto: Fix code of 'shc'.
9627 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9629 Many fixes. Diag lists can now be nested also; additionally,
9630 `-compact' and `-offset' are supported.
9632 * tmac/doc.tmac (doc-have-indent): Replaced with ...
9633 (doc-list-have-indent-stackXXX): A new register stack.
9634 (doc-have-diag-list): Removed.
9635 (Bl): Use `doc-list-have-indent-stackXXX'.
9637 (doc-diag-list): Use `doc-compact-list-stackXXX'.
9638 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9639 (doc-set-vertical-and-indent): Ditto.
9640 (doc-next-list-depth): Removed.
9641 (doc-increment-list-stack): Updated.
9642 (doc-decrement-list-stack): Use `doc-list-depth' instead of
9643 `doc-next-list-depth'.
9644 (doc-end-list, doc-end-column-list): Don't use
9645 `doc-increment-list-stack'.
9646 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9647 (doc-save-global-vars, doc-restore-global-vars): Updated.
9648 * tmac/doc-common: Updated.
9649 * tmac/groff_mdoc.man: Updated.
9652 2001-04-02 Werner LEMBERG <wl@gnu.org>
9654 * src/devices/grotty/grotty.man: Fix grammatical error.
9656 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
9658 Remove .Ld from mdoc package; replace it with special handling of
9661 * tmac/doc-common: Remove `Ld' register.
9662 Uncomment `doc-volume-ds-*' strings.
9663 Remove `doc-operating-system-default'.
9665 * tmac/doc-syms (Ld): Removed.
9666 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9670 * tmac/groff_mdoc.man: Many fixes and updates.
9672 2001-03-29 Werner LEMBERG <wl@gnu.org>
9674 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
9675 Bond <tkb@tkb.mpl.com>.
9676 * tmac/www.tmac: Save compatibility mode.
9678 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
9680 * tmac/groff_mdoc.man: Many fixes.
9682 2001-03-28 Werner LEMBERG <wl@gnu.org>
9684 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9687 2001-03-27 Werner LEMBERG <wl@gnu.org>
9689 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9690 diversion. This fixes overlong tags.
9692 2001-03-26 Werner LEMBERG <wl@gnu.org>
9694 * doc/groff.texinfo: Fixed and improved documentation of fonts.
9695 * tmac/doc-syms: Fix error messages.
9696 * tmac/an-old.tmac: Remove incorrect double backslashes.
9698 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
9700 * tmac/Makefile.sub: Strip mdoc.local also
9701 * tmac/strip.sed: Fixed.
9703 2001-03-24 Werner LEMBERG <wl@gnu.org>
9705 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9706 selecting the font size.
9707 * tmac/groff_mdoc.man, NEWS: Document it.
9709 2001-03-23 Werner LEMBERG <wl@gnu.org>
9711 * src/roff/troff/div.cc (save_vertical_space): Add default argument
9713 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9714 argument to restore previous font family.
9715 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9717 * doc/groff.texinfo: More fixes and additions (mainly for font
9718 manipulating commands).
9720 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9721 * tmac/groff_mdoc.man: This. The quick reference has been removed.
9722 * tmac/Makefile.sub, NEWS: Updated.
9724 2001-03-23 Werner LEMBERG <wl@gnu.org>
9726 Replaced mdoc implementation. The new version is `state of the
9727 art', using almost all new features of groff 1.17 -- it won't run
9728 with older versions.
9730 * tmac/doc.tmac: Completely rewritten.
9731 * tmac/doc-common: Ditto.
9732 * tmac/doc-nroff: Ditto.
9733 * tmac/doc-ditroff: Ditto.
9734 * tmac/doc-syms: Ditto.
9735 * tmac/mdoc.local: New file.
9736 * tmac/groff_mdoc.samples.man: Replaced with ...
9737 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9738 * tmac/strip.sed: Updated.
9739 * tmac/Makefile.sub: Updated.
9742 * tmac/groff_man.man: Add `man.local' to the FILES section.
9744 2001-03-22 Werner LEMBERG <wl@gnu.org>
9746 * doc/groff.texinfo: Added many @noindent.
9747 Replaced @end_Example -> @endExample.
9748 Added info whether registers are r/o.
9749 Many other additions and fixes.
9751 2001-03-21 Werner LEMBERG <wl@gnu.org>
9753 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9754 in makeinfo of texinfo 4.0) to be used in @Def* macros.
9755 Improved @Def* macros: Now the exact syntax of request, register,
9756 and escapes is shown.
9757 Added macros for parentheses and brackets to be used in @Def*.
9758 Many fixes and improvements of the documentation.
9760 2001-03-20 Werner LEMBERG <wl@gnu.org>
9762 * doc/groff.texinfo: Added new index: `st' (for strings).
9763 Added macros @Defstr(x).
9764 Added macro @Example (adding @group).
9765 Other minor improvements.
9767 2001-03-19 Werner LEMBERG <wl@gnu.org>
9769 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9770 `rq' for requests. `fn' is no longer used.
9771 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9774 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9775 number with name of man page.
9777 2001-03-19 Larry Kollar <kollar@alltel.net>
9779 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
9782 2001-03-19 Werner LEMBERG <wl@gnu.org>
9784 * man/groff_font.man: Document `prepro', `postpro', and `print'.
9785 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9786 * src/devices/grohtml/grohtml.man: Fixing typos.
9788 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
9790 * tmac/s.tmac (@IP): Pass `.ip' html tag.
9791 * tmac/groff_mwww.man: Remove .LINE macro
9792 * tmac/www.tmac (LINE): Add `.ti'.
9794 * src/devices/grohtml/post-html.cc (html_printer): New member
9796 (html_printer::emit_raw): Use it.
9797 (html_printer::do_linelength): Ditto.
9798 (html_printer::do_pageoffset): Ditto.
9799 (html_printer::do_indentation): Ditto.
9800 (html_printer::do_tempindent): Ditto.
9801 (html_printer::do_break): Ditto.
9802 (html_printer::begin_page): Ditto.
9803 (html_printer::do_indentedparagraph): New function.
9804 (html_printer::troff_tag): Handle `.ip'.
9805 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9806 Add `<td width=...>' handling.
9807 (html_text::do_table): Add parameter.
9808 (html_text::do_indent): Updated.
9809 * src/devices/groohtml/html-text.h: Updated.
9811 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
9813 Introduced simple html tables to implement indentation.
9815 * src/devices/grohtml/html.h (word, word_list): New structures.
9816 (simple_output): Use it.
9817 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9818 (html_printer): Improve indentation handling.
9819 (html_printer::emit_raw): Set `in_table' element. Handle
9821 (html_printer::write_header): Move conditional downwards.
9822 Don't allow whitespace in tags.
9823 (html_printer::do_linelength): Handle line length and indentation
9825 (html_printer::do_pageoffset): Handle indentation conditionally.
9826 (html_printer::do_indentation): Ditto.
9827 (html_printer::do_tempindent): New function member.
9828 (html_printer::do_fill): Take care of indentation.
9829 (html_printer::do_flush): Finish table.
9830 (html_printer::do_links): Ditto.
9831 (html_printer::do_break): New function for handling `.br' and `.ti'.
9832 (html_printer::troff_tag): Use it.
9834 (html_printer::flush_globs): Fix.
9835 (html_printer::flush_page): Finish table.
9836 (html_printer::html_printer): Fix error message. Set up
9838 (html_printer::add_to_sbuf): Remove special handling of character
9840 (to_unicode): Remove `stop()'.
9841 (html_printer::write_title): Cleanup.
9842 (html_printer::begin_page): Use `put_string()'. Handle indentation.
9843 (html_printer::~html_printer): Flush text and end the line.
9845 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9846 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9848 (html_text::start_tag): Disable newlines.
9849 (html_text::table_is_void): New function.
9850 (html_text::issue_table_begin): Ditto.
9851 (html_text::issue_table_end): Ditto.
9852 (html_text::push_para): Better table handling.
9853 (html_text::do_indent): New function.
9854 (html_text::do_table): Ditto.
9855 (html_text::done_table): Ditto.
9856 (html_text::do_tt): Handle PRE_TAG.
9857 (html_text::is_in_table): New function.
9858 (html_text::check_emit_text): Handle tables.
9859 (html_text::do_emittext): Use `nl()'.
9860 (html_text::do_para): Handle table.
9861 (html_text::remove_def): New function.
9862 * src/devices/grohtml/output.cc (word, word_list): Implement
9864 (simple_output::end_line): Flush last word.
9865 (simple_output::simple_comment): Ditto.
9866 (simple_output::begin_comment): Recoded.
9867 (simple_output::end_comment): Ditto.
9868 (simple_output::comment_arg): Removed.
9869 (simple_output::check_newline): Improve test and flush last word.
9870 (simple_output::space_or_newline): Improved.
9871 (simple_output::write_newline): Replaced with...
9872 (simple_output::nl): This.
9873 (simple_output::put_raw_char): Flush last word.
9874 (simple_output::check_space): Removed.
9875 (simple_output::put_translated_string): Ditto.
9876 (simple_output::put_string): Simplified.
9877 (simple_output::put_number): Updated.
9878 (simple_output::put_float): Ditto.
9879 (simple_output::put_symbol): Removed.
9880 (simple_output::enable_newlines): Add `check_newline()'.
9881 (simple_output::flush_last_word): New function.
9883 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9884 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9886 * tmac/s.tmac (@PP, @IP): Add html conditional code.
9887 * tmac/an-old.tmac (TP): Ditto.
9889 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
9891 * mdate.sh: Make it POSIX compliant.
9893 2001-03-09 Werner LEMBERG <wl@gnu.org>
9895 Added the `return' request to end a macro immediately. It simply
9896 pops iterators from the input stack until a macro iterator is found.
9898 * src/roff/troff/input.cc (input_iterator::is_macro,
9899 macro_iterator::is_macro): New member.
9900 (input_return_boundary): New class to signal an immediate return
9902 (input_stack::add_return_boundary, input_stack::is_return_boundary):
9904 (input_stack::clear): Use it.
9905 (input_stack::pop_macro): New function.
9906 (while_request): Use `is_return_boundary()'.
9907 (return_macro_request): New function.
9908 (init_input_requests): Use it.
9910 * src/roff/troff/TODO: Updated.
9911 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9913 2001-03-08 Werner LEMBERG <wl@gnu.org>
9915 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9918 2001-03-07 Werner LEMBERG <wl@gnu.org>
9920 Make `\B' more rigid.
9922 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9924 (get_number_rigidly): New function.
9925 * src/roff/troff/input.cc (do_expr_test): Use it.
9926 * src/roff/troff/token.h: Updated.
9928 * src/roff/troff/request.h: Fix typo (init_html_request ->
9929 init_markup_request).
9931 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
9933 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
9934 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9935 are now `.begin', `.end', `.image'.
9937 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9938 (html_printer::add_to_sbuf): Changing type of `code' parameter.
9939 Use add_char_to_sbuf().
9940 (to_unicode): New function.
9941 (char_translate_to_html): Changing type of `ch' parameter.
9943 (html_printer::~html_printer): Comment out doctype string.
9944 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9945 instead of `.html-end'.
9946 (write_start_image): Use `.begin' and `.image' instead of
9947 `.html-begin' and `.html-image'.
9948 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9949 (html_begin): Renamed to ...
9951 (html_end): Renamed to ...
9953 (html_image): Renamed to ...
9955 (init_html_requests): Renamed to ...
9956 (init_markup_requests): This.
9957 * tmac/www.tmac: Updated.
9959 2001-02-28 Bram <bram@avontuur.org>
9961 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9964 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
9966 * doc/meref.me: Fixing some typos.
9968 2001-02-16 Werner LEMBERG <wl@gnu.org>
9970 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9971 method. Return `HYPHEN_MIDDLE' if it was `\:'.
9972 * src/roff/troff/node.h: Updated.
9974 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
9976 * tmac/groff_tmac.man: Fix typo.
9978 2001-02-16 Werner LEMBERG <wl@gnu.org>
9980 Fixing a bug which prevented proper end-of-sentence recognition
9981 between an `unformatted' box and the following text. As a
9982 consequence, vertical line distances are no longer preserved in
9983 boxes after a call to `.unformat' -- because boxes aren't
9984 line-oriented (contrary to diversions), this doesn't make sense
9987 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9989 (vertical_size_node::set_unformat_flag): New method.
9990 * src/roff/troff/node.hh: Updated.
9991 * src/roff/troff/input.cc (word_space_node::reread,
9992 hmotion_node::reread): Reset `unformat' flag after usage.
9993 (unformat_macro): Append only if `set_unformat_flag()' returns
9995 * src/roff/troff/troff.man: Updated.
9997 2001-02-15 Werner LEMBERG <wl@gnu.org>
9999 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
10000 documentation of `asciify' and `unformat' requests.
10002 2001-02-13 Werner LEMBERG <wl@gnu.org>
10004 Redesigned the `unformat' request. It is no longer connected with
10005 `asciify' but rather uses new `reread()' methods if the `unformat'
10006 flag is set. Additionally, the handling of space characters after
10007 unformatting has been fixed so that they retain their width.
10009 * src/roff/troff/node.h (width_list): New structure to store
10010 original widths of spaces.
10011 (node): Added `unformat' member.
10012 Replaced `num_spaces' variable with `orig_width' list.
10013 * src/roff/troff/node.cc (*node::asciify,
10014 asciify_reverse_node_list): Removed `unformat_only' flag and related
10016 (word_space_node::asciify, word_space_node::word_space_node): Use
10018 (word_space_node::~word_space_node): New destructor.
10019 (word_space_node::copy): Updated to handle `orig_width'.
10020 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
10021 (*node::merge_space): Update `orig_width' list if necessary.
10022 (*node::set_unformat_flag): New methods to set the `unformat' flag.
10023 * src/roff/troff/enc.cc (environment::space_newline): Use
10025 (environment::space): Added method to handle space width and
10026 sentence space width as parameters. Use `width_list'.
10027 (environment::make_tab_node): Updated.
10028 * src/roff/troff/env.h: Updated.
10029 * src/roff/troff/input.cc (word_space_node::reread,
10030 unbreakable_space_node::reread, hmotion_node::reread): New methods
10031 to handle nodes specially if `unformat' flag is set.
10032 (do_asciify_macro): Renamed back to ...
10033 (asciify_macro): This.
10034 (unformat_macro): New implementation to simply set the `unformat'
10037 * MORE.STUFF: Added more info about deroff.
10039 2001-02-08 Werner LEMBERG <wl@gnu.org>
10041 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
10042 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
10043 and `add_self()' methods to avoid hyphenation. For example, the
10044 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
10045 soft hyphen after `foo'. Now the hyphen list is correctly
10046 `foo<ignore><ignore>bar'.
10048 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
10050 * tmac/groff_tmac.man: Fix `BIR' macro.
10052 2001-02-04 Werner LEMBERG <wl@gnu.org>
10054 A new escape sequence `\:', inserting a zero-width break point.
10056 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
10057 * src/roff/troff/input.cc (get_copy, token::next, asciify):
10059 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
10061 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
10062 and `asciify()' methods.
10063 * src/roff/troff/node.cc (space_node::space_node): Updated.
10064 (space_node::asciify): Handle `was_escape_colon'.
10065 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10067 Handle `\~' similar to other comparable requests.
10069 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
10071 (token::next): Move creation of an unbreakable_space_node to...
10072 (token::add_to_node_list): Here.
10074 Fix a bug which sometimes prevented hyphenation of words connected
10075 with `\~' or `\ ' (and other escape sequences handled as
10076 TOKEN_NODE). This also fixes a hyphenation problem with boxes
10077 (after a call to the `unformat' request).
10079 * src/roff/troff/env.h (environment::possibly_break_line,
10080 environment::hyphenate_line): Introducing `start_here' parameter.
10081 * src/roff/troff/env.cc (environment::space_newline,
10082 environment::space): Use it.
10083 (environment::possibly_break_line, environment::hyphenate_line):
10085 * src/roff/troff/input.cc (process_input_stack): Use it.
10086 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
10087 space_char_hmotion_node, overstrike_node): Add
10088 `get_hyphenation_type()' method.
10089 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
10090 if `unformat_only' is active.
10092 2001-01-30 Werner LEMBERG <wl@gnu.org>
10094 Implemented new read-only number register `.linetabs' which
10095 returns 1 if in line-tabs mode, 0 otherwise.
10097 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
10098 * src/roff/troff/env.cc (get_line_tabs): New function.
10099 (init_env_requests): Use it.
10100 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10102 * VERSION, REVISION: Changing to 1.17.0.
10104 2001-01-28 Werner LEMBERG <wl@gnu.org>
10106 Fixed a bug which prevented hyphenation of words which are finished
10109 * src/roff/troff/token.h (token): Add enum type
10110 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
10111 * src/roff/troff/input.cc (token::next, token::description,
10112 get_line_arg, token::add_to_node_list, token::process): Use it.
10114 2001-01-27 Werner LEMBERG <wl@gnu.org>
10116 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
10117 * src/roff/troff/div.cc (do_divert): Use it.
10119 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
10121 2001-01-25 Werner LEMBERG <wl@gnu.org>
10123 Adding the `linetabs' request. If set, tab distances are not
10124 computed relative to the input line but relative to the output line.
10126 * src/roff/troff/env.h (environment): New member `line_tabs'.
10127 * src/roff/troff/env.cc (line_tabs_request): Implement request.
10128 (environment::environment, environment::copy): Updated.
10129 (environment::distance_to_next_tab): Use `line_tabs'.
10130 (init_env_requests): Register request.
10131 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
10134 2001-01-24 Werner LEMBERG <wl@gnu.org>
10136 Introducing a new read-only register `.int' which is set to a
10137 positive value if the last output line is interrupted (i.e., if it
10140 * src/roff/troff/env.cc (init_env_requests): Add it.
10141 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10143 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
10145 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
10146 * src/preproc/html/pre-html.cc (findPrefix): New function which
10147 generates the troff executable name via the system prefix.
10148 * src/preproc/eqn/main.cc: Modified warning message.
10150 2001-01-23 Werner LEMBERG <wl@gnu.org>
10152 troff's `box' and `boxa' requests didn't preserve temporary
10155 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
10156 `saved_target_text_length' members.
10157 * src/roff/troff/div.cc (do_divert): Use them.
10159 Tabs (but not yet leaders and fields) are now handled correctly by
10162 * node.h (hmotion_node): Add field `was_tab'.
10163 * env.cc (environment::make_tab_node): Set it.
10164 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
10166 Added new request `unformat' which will, contrary to `asciify',
10167 preserve font information after unformatting (i.e., only nodes
10168 dealing with horizontal space are converted back to input
10171 * input.cc (asciify_macro): Renamed to ...
10172 (do_asciify_macro): this, having a new parameter `unformat_only'.
10173 (asciify_macro, unformat_macro): New; using do_asciify_macro.
10174 (init_input_requests): Added `unformat'.
10175 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
10176 parameter to control asciification process.
10177 * node.h (*_node::asciify): Ditto.
10178 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10180 2001-01-20 Werner LEMBERG <wl@gnu.org>
10182 * doc/groff.texinfo: Minor improvement of `.in' documentation.
10184 2001-01-18 Werner LEMBERG <wl@gnu.org>
10186 * tmac/ps.tmac: Remove call of psold.tmac.
10187 * tmac/psold.tmac: Comment updated.
10188 * tmac/psnew.tmac: Removed since no longer needed.
10189 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
10191 * font/devutf8/R.proto: Adding `shc' glyph.
10192 * font/devutf8/NOTES: Updated.
10194 * test-groff: Updated.
10196 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
10198 First cut of the new html device driver. Changes to pre-html and
10199 the new grohtml are too numerous to be documented here.
10201 Stuff related to `html' has been renamed to `html-old' and `html2'
10202 stuff has been renamed to `html' (including directories). The new
10203 html device driver is therefore invoked as `-Thtml'.
10205 Added new `\O' escape to suppress output (needed by html driver).
10207 Added functions and code to pass info about input-level commands
10208 (`.in', `.fl', etc.) to html driver.
10210 Three new functions (.html-begin, .html-end, and .html-image) for
10211 better html handling: `html-begin' will execute the remaining line
10212 if at the outermost nesting level, increasing an internal counter.
10213 `html-end' does the same but decreases the internal counter.
10214 `html_image' puts its arguments into a special node (suppress_node)
10215 to define an image region.
10217 The `output' request has been removed.
10219 * tmac/html-tags.tmac: Removed.
10220 * tmac/arkup.tmac: Updated and renamed to ...
10221 * tmac/www.tmac: New file.
10222 * tmac/markup.tmac Updated and renamed to ...
10223 * tmac/mwww.tmac: New file.
10224 * tmac/Makefile.sub: Updated.
10225 * tmac/an-old.tmac: Updated.
10226 * tmac/eqnrc: Updated.
10227 * tmac/groff_man.man
10228 * tmac/groff_markup.man: Updated and renamed to ...
10229 * tmac/groff_mwww.man: New file.
10230 * tmac/groff_tmac.man: Updated.
10231 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
10232 * tmac/html.tmac: Updated and renamed from html2.tmac.
10233 * tmac/pspic.tmac: Updated html support.
10234 * tmac/s.tmac: Added html output support.
10235 * tmac/troffrc, tmac/troffrc-end: Updated.
10237 * Makefile.in, doc/Makefile: Updated.
10238 * doc/groff.texinfo: Added info about new `\O' escape.
10239 * doc/homepage.ms: Use `MAILTO' macro.
10241 * font/devhtml/DESC.proto: Add `C' font.
10242 * font/devhtml/Makefile.sub: Updated.
10243 * font/devhtml/R.proto: Minor fixes.
10244 * font/devhtml-old/Makefile.sub: Updated.
10246 * src/devices/grohtml-old/Makefile.sub: Updated.
10248 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
10250 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
10251 graphic_start): Add `inline' parameter. Update.
10252 (html_end_suppress, graphic_end): Update.
10254 * src/include/html-strings.h: New file.
10255 * src/include/htmlindicate.h: Comments updated.
10256 * src/include/printer.h: Updated.
10258 * src/preproc/eqn/main.cc (do_file, main): Updated.
10259 * src/preproc/pic/troff.cc (troff_output::start_picture,
10260 troff_output::finish_picture): Updated.
10261 * src/preproc/tbl/main.cc (process_input_file): Updated.
10263 * src/roff/groff/groff.cc (main): Updated.
10264 Pass device arguments to predrivers also.
10265 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
10266 * src/roff/troff/env.h (environment): Updated.
10267 New elements `need_eol' and `ignore_next_eol' (for html output).
10268 * src/roff/troff/env.cc (environment::environment): Add initializers
10269 for `need_eol' and `ignore_next_eol'.
10270 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
10272 (point_size, fill, no_fill, center, right_justify, line_length,
10273 indent, temporary_indent, break_request, handle_tab): Use
10275 (set_tabs): Use `add_html_tag_tabs()'.
10276 (environment::add_html_tag): Updated.
10277 (environment::do_break): Updated.
10278 * src/roff/troff/div.cc (space_request, flush_output): Use
10279 `environment::add_html_tag()'.
10280 * src/roff/troff/input.cc: Updated.
10281 New variable `html_level' to indicate nested `html-begin' requests.
10282 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
10283 (non_interpreted_char_node, token_node, non_interpreted_node): Add
10284 `force_tprint()' method.
10285 (token::next): Handle `\O'.
10286 (do_suppress): Implement it.
10287 (html_begin, html_end, html_image): New functions.
10288 (init_output_requests): Renamed to ...
10289 (init_html_requests): this.
10291 (macro::append_str, macro::append_unsigned, macro::append_int): New
10293 New variable `output_low_mark_miny' to limit minimal value of y.
10294 (reset_output_registers): Use it.
10295 (output_request): Removed.
10296 (get_output_registers): New function.
10297 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
10298 (*_node): Added `force_tprint()' if necessary.
10299 (special_node): New elements `tf' and `get_tfont()'.
10300 (suppress_node): New class.
10301 * src/roff/troff/node.cc:
10302 New global variables `image_no' and `suppress_start_page'.
10303 (real_output_file): New method `is_on()'.
10304 (troff_output_file): New method `start_special(tfont)'.
10305 (troff_output_file::really_print_line): Use `tprint' conditionally.
10306 (real_output_file::print_line): Updated.
10307 (real_output_file::on): Updated.
10308 (*_node): Added `force_tprint()'.
10309 (special_node::special_node): Initializer updated.
10310 (special_node::same, special_node::copy, special_node::tprint_start):
10312 (get_reg_int, get_reg_str): New functions.
10313 (suppress_node::*): New methods.
10314 New global variables last_position, last_image_filename;
10315 (min): New inline function.
10316 * src/roff/troff/reg.h, src/roff/troff/request.h,
10317 src/roff/troff/troff.h: Updated.
10319 2001-01-13 Werner LEMBERG <wl@gnu.org>
10321 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
10322 documentation of `asciify' request.
10324 2001-01-12 Werner LEMBERG <wl@gnu.org>
10326 * src/roff/troff/input.cc: Move definition of special characters
10327 like `ESCAPE_TILDE' to ...
10328 * src/roff/troff/input.h: New file.
10329 * src/roff/troff/Makefile.sub (HDRS): Add it.
10331 Extending the .asciify request to `unformat' space characters also.
10333 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10334 to count input space characters.
10335 Update constructors to take care of it.
10336 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10337 `ESCAPE_SPACE' instead of normal space.
10338 (word_space_node::asciify): New method.
10339 (unbreakable_space_node::asciify): New method.
10340 (word_space_node::merge_space): New method.
10341 * src/roff/troff/env.cc (environment::space_newline,
10342 environment::space): Add code to initialize `num_spaces' (using the
10343 constructor of `word_space_node').
10344 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10347 2001-01-09 Werner LEMBERG <wl@gnu.org>
10349 * man/groff_char.man: Use table header traps only conditionally.
10351 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
10353 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10355 2001-01-08 Werner LEMBERG <wl@gnu.org>
10357 Introducing the `box' and `boxa' requests which are similar to
10358 `di' resp. `da' but omitting a partially filled line (which is
10359 restored after ending the diversion).
10361 * src/roff/troff/div.h (diversion): Add elements to save partially
10363 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10364 partially filled line.
10365 (divert, divert_append): Updated.
10366 (box, box_append): New functions.
10367 (init_div_requests): Use them.
10368 * src/roff/troff/env.h (environment): do_divert() is now a friend.
10369 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10371 * doc/groff.texinfo: Fix documentation of `lf' request.
10373 2000-12-25 Werner LEMBERG <wl@gnu.org>
10375 * src/roff/troff/troff.man, NEWS: Document `writem' request.
10377 2000-12-21 Werner LEMBERG <wl@gnu.org>
10379 Ignore `ss' request if in compatibility mode.
10381 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10382 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10383 * src/roff/troff/env.cc (space_size): Use it.
10385 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10386 `ss' request in nroff mode.
10388 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10391 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
10393 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10395 2000-12-13 Werner LEMBERG <wl@gnu.org>
10397 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10398 * src/preproc/eqn/neqn.man: Small fixes and additions.
10400 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
10402 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10405 * src/preproc/eqn/neqn.man: New file.
10407 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10410 * tmac/e.tmac: Add `T&' macro.
10411 Fix `indent cannot be negative' warning.
10412 * tmac/s.tmac: Fix `indent cannot be negative' warning.
10414 2000-12-07 Werner LEMBERG <wl@gnu.org>
10416 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10418 2000-12-06 Werner LEMBERG <wl@gnu.org>
10420 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10423 * MORE.STUFF: Added info about deroff for djgpp.
10425 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10426 documentation of -rcR switch.
10428 2000-12-03 Werner LEMBERG <wl@gnu.org>
10430 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10431 if -rcR=1 (which is now the default in nroff mode), a single, very
10432 long page is created instead of multiple pages: All `ne' and `wh'
10433 requests are put into conditionals; a new macro `an-end' is added to
10434 be called with `em'.
10436 Some other minor cleanups.
10438 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10440 2000-12-02 Werner LEMBERG <wl@gnu.org>
10442 Fixing a bug which prevented hyphenation in words followed
10443 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10445 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10446 Adding possibly_break_line().
10447 * src/roff/troff/env.h (environment): Make possibly_break_line()
10450 Make `\~' usable in .tr request.
10452 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10453 (token): Add stretchable_space().
10454 * src/roff/troff/input.cc (token::next, token::delimiter,
10455 token::description, process_input_stack, do_translate,
10456 add_to_node_list, token::process): Use it.
10457 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10458 for adjusting the space.
10459 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
10460 for stretchable space.
10461 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10462 (make_node): Add code for stretchable space.
10463 * src/roff/troff/env.cc (environment::add_char): Use it.
10464 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10465 (get_copy, token::next, transparent_translate, asciify): Use it.
10467 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10468 doc/groff.texinfo: Updated.
10469 * man/groff.man: Small reorderings.
10471 2000-11-23 Werner LEMBERG <wl@gnu.org>
10474 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10476 * src/roff/troff/input.cc (main): Add `config_macro_path' and
10477 `safer_macro_path' to -M option.
10478 * src/roff/troff/troff.man: Fixes.
10480 2000-11-22 Werner LEMBERG <wl@gnu.org>
10482 Use safer path (except for config files) if -U isn't specified. Add
10483 a special macro path (without home and current directory) for config
10484 files. Add home directory to unsafe path for consistency. Don't
10485 include the home directory in the font path.
10487 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10489 * src/include/macropath.h: Add `config_macrp_path'.
10490 * src/libs/libgroff/fontfile.cc: Fix font path.
10491 * src/roff/troff/input.cc (process_startup_file): Use
10492 `config_macro_path'.
10493 (main): Select unsafe path if -U is given.
10495 * src/preproc/eqn/main.cc (main): Fixing search path for
10496 configuration file.
10497 * src/preproc/eqn/eqn.man: Updated.
10499 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10502 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10503 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10504 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10505 src/devices/grotty/grotty.man: Updated.
10507 * Makefile.in: Fix comments.
10509 2000-11-17 Werner LEMBERG <wl@gnu.org>
10511 * tmac/safer.tmac: Empty file added (again) for compatibility
10513 * tmac/Makefile.sub: Updated.
10515 2000-11-16 Werner LEMBERG <wl@gnu.org>
10517 * src/devices/grodvi/dvi.cc (main),
10518 src/devices/grohtml2/post-html.cc (main),
10519 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10520 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10521 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10522 (main), src/preproc/html2/pre-html.cc (main),
10523 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10524 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10525 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10526 (main), src/utils/hpftodit/hpftodit.cc (main),
10527 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10528 (main), src/utils/lookbib/lookbib.cc (main),
10529 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10530 (main): Use stdout for -v.
10531 * src/roff/groff/groff.cc (run_commands),
10532 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10533 to make direct printing to stdout possible.
10534 * src/roff/groff/pipeline.h: Updated.
10536 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10537 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10538 * src/utils/afmtodit/afmtodit.man: Updated.
10540 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10541 (version): New function.
10543 * src/utils/addftinfo/addftinfo.man: Updated.
10545 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10546 Fixing copyright dates.
10548 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10551 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10554 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10556 2000-11-15 Werner LEMBERG <wl@gnu.org>
10558 In all programs, make -v return immediately with exit status 0 to
10559 be compliant with the GNU standard.
10561 * src/devices/grodvi/dvi.cc (main),
10562 src/devices/grohtml2/post-html.cc (main),
10563 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10564 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10565 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10566 (main), src/preproc/html2/pre-html.cc (main),
10567 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10568 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10569 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10570 (main): Implement it.
10573 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
10574 and postprocessors to the -v option.
10576 * src/roff/grog/grog.pl: Implement -v.
10577 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10578 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10580 * src/roff/nroff/nroff.sh: Implement -v.
10581 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10582 * src/roff/nroff/nroff.man: Updated.
10584 * src/preproc/eqn/main.cc (main): Fix comment typo.
10586 * MORE.STUFF: Added info about djgpp port of grap.
10588 2000-11-14 Werner LEMBERG <wl@gnu.org>
10590 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10591 mode (or rather, implemented non-compatibility mode).
10592 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10594 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10595 replacing it -- we don't find gxditview otherwise.
10596 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10598 * src/preproc/pic/depend: Removed. Unnecessary.
10600 Implemented dummy keyword `solid' in pic for compatibility with
10603 * lex.cc (lookup_keyword): Added `solid'.
10604 * pic.y: Added SOLID with dummy rule.
10605 * pic.cc, pic_tab.h: Regenerated.
10606 * doc/pic.ms: Updated.
10608 2000-11-13 Werner LEMBERG <wl@gnu.org>
10610 For security reasons, don't use the current directory but the home
10611 directory while searching and scanning troffrc and troffrc-end.
10612 Similarly, replace the current directory with the home directory
10615 * Makefile.in (fontpath, tmacpath): Remove current directory.
10617 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10618 two parameters `add_home' and `add_current'.
10619 (search_path::~search_path, search_path::command_line_dir,
10620 search_path::open_file): Remove tests for `dirs' being zero.
10621 * src/include/searchpath.h: Adjust.
10622 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10623 `safer_macro_path'.
10624 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10626 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10627 * src/roff/troff/input.cc: Use `mac_path', initialized with
10629 (process_startup_file): Set `mac_path' to `safer_macro_path'.
10630 * src/roff/troff/env.cc: Use `mac_path'.
10632 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10634 * NEWS, man/roff.man, src/roff/troff/troff.man,
10635 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10638 2000-11-12 Werner LEMBERG <wl@gnu.org>
10640 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10642 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10643 * configure.in: Fix typo in comment.
10644 * configure: Regenerated.
10646 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10649 2000-11-08 Werner LEMBERG <wl@gnu.org>
10651 Add system tmac directory (/usr/local/lib/groff/site-tmac).
10653 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10654 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10657 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10658 * tmac/Makefile.sub (install_data): Create
10659 $(systemtmacdir) and $(localtmacdir).
10660 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10661 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10662 NEWS, doc/groff.texinfo: Updated and minor fixes.
10664 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10665 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10666 $(systemtmacdir) since the wrapper files are platform-dependent.
10668 2000-11-01 Werner LEMBERG <wl@gnu.org>
10670 * doc/groff.texinfo: Fix typo.
10672 2000-10-26 Werner LEMBERG <wl@gnu.org>
10674 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
10675 tmac.doc.old -> doc-old.tmac
10676 tmac.an.old -> an-old.tmac
10678 * tmac/tmac.*: Moved to ...
10679 * tmac/*.tmac: this.
10680 * tmac/man.local: Fix comment.
10681 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10682 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
10683 Added some `FILES' sections. More use of @...@ directives. Other
10685 * arch/djgpp/README, font/devutf8/NOTES: Updated.
10686 * doc/homepage.ms, doc/groff.texinfo: Updated.
10687 * man/groff.man, man/roff.man: Updated.
10688 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10689 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10690 src/devices/grotty/grotty.man: Updated.
10691 * src/preproc/pic/pic.man: Updated.
10692 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10693 instead of -mdoc.old.
10694 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10695 * src/roff/nroff/nroff.man: Updated.
10698 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10700 * tmac/mm.diff: Removed -- it has no use now since the mm package
10703 * tmac/*: Removed trailing spaces.
10705 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10706 the tmac subdirectory also).
10708 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10709 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10710 stuff since it is no longer needed.
10712 * README, PROBLEMS: Updated.
10714 2000-10-25 Werner LEMBERG <wl@gnu.org>
10716 Invert current behaviour: Search first FOOBAR.tmac, then
10719 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10720 (open_mac_file, macro_source): Implement it.
10721 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10722 doc/groff.texinfo, NEWS: Document it.
10724 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10725 Small documentation improvements.
10727 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10728 subdirectory also).
10730 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10732 2000-10-24 Werner LEMBERG <wl@gnu.org>
10734 Add local tmac directory (groff/site-tmac).
10736 * Makefile.in: Add $(localtmacdir).
10737 (uninstall_dirs): Add $(localtmacdir).
10738 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10739 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10740 in $(localtmacdir). Create $(localtmacdir).
10741 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10742 Updated and minor fixes.
10744 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10746 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10748 2000-10-23 Werner LEMBERG <wl@gnu.org>
10750 Move hyphen.us to tmac directory.
10752 * src/roff/troff/hyphen.us: Removed.
10753 * src/tmac/hyphen.us: Added.
10754 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10756 Change installation structure for data files from .../groff/... to
10757 .../groff/<version><revision>/... to be conform with other GNU
10760 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10761 doc/Makefile: Implement it.
10762 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10763 * configure: Updated.
10764 * arch/djgpp/README, font/devutf8/NOTES: Use it.
10765 * NEWS: Document it.
10766 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10767 @MACRODIR@ instead of hard-coded directories.
10769 2000-10-22 Werner LEMBERG <wl@gnu.org>
10771 Implement $GROFF_BIN_PATH environment variable (which defaults to
10772 $bindir) used for child programs of groff and similar wrappers.
10774 * gendefs.sh: Improve documentation.
10775 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10776 src/preproc/eqn/Makefile.sub (neqn),
10777 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10778 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10780 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10781 $GROFF_PATH__ (the latter for communication with troff).
10782 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10784 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10785 doc/groff.texinfo: Document it.
10787 * doc/groff.texinfo: Improve documentation of troff's -a option.
10789 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
10791 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10792 non-intrusive eol marker.
10793 (troff_output_file::determine_line_limits): New function.
10794 (troff_output_file::draw): Use it.
10795 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10796 output_pending_lines() instead of output_line().
10797 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10798 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10799 createImage): Small fixes.
10801 2000-10-14 Werner LEMBERG <wl@gnu.org>
10803 Replace tmac.safer with a real secure solution.
10805 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10806 system_request, pipe_output): Disable requests if in safer mode.
10807 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10808 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10809 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10810 doc/groff.texinfo, src/roff/groff/groff.man,
10811 src/roff/troff/troff.man, arch/djgpp/README: Updated.
10813 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10814 (resource_manager::output_prolog): Replace setenv() with putenv().
10816 2000-10-09 Werner LEMBERG <wl@gnu.org>
10818 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10819 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10820 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10821 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10822 compilation errors with some compilers. It seems that this code
10823 is no longer necessary -- if yes, it is easy to add some #ifdef's
10824 for that particular old-fashioned compiler.
10826 * MORE.STUFF: Added info about Meta-tbl.
10828 * doc/groff.texinfo: Added more info about `.if "..."..."'.
10830 2000-10-07 Werner LEMBERG <wl@gnu.org>
10832 Adding a new escape sequence \B'...': If the string between
10833 the delimiters is a valid numeric expression, return the character
10834 `1', and `0' otherwise. This is an analogon to \A.
10836 * src/roff/troff/input.cc (do_expr_test): Implement it.
10837 (token::next): Use it.
10838 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10840 * tmac/tmac.trace: Made independent from escape character.
10842 2000-10-06 Werner LEMBERG <wl@gnu.org>
10844 Adding a new request .dei: define indirect. The first and second
10845 parameter of .dei are taken from string registers instead directly;
10846 this very special request is needed to make tmac.trace independent
10847 from the escape character (which might even be disabled).
10849 * src/roff/troff/input.cc (do_define_macro): Implement it.
10850 (define_macro_indirect): New function.
10851 (init_input_requests): Use it.
10853 Adding two requests .ecs and .ecr: Save and restore the escape
10854 character. These two requests are needed to make tmac.trace
10855 independent from the escape character (which might even be
10858 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10860 (init_input_requests): Use it.
10862 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10864 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
10866 Adding a new option -P and new environment variable GROPS_PROLOGUE
10867 to grops, selecting a different prologue file (minor modifications
10870 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10871 src/devices/grops/ps.cc (main): Implement it.
10872 * src/devices/grops/grops.man, NEWS: Document it.
10874 2000-09-22 Werner LEMBERG <wl@gnu.org>
10876 * INSTALL: Add info about selecting paper format.
10878 2000-09-21 Werner LEMBERG <wl@gnu.org>
10880 * src/roff/troff/input.cc (main): Fixing compiler warning.
10881 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10882 strings.h from the former to the latter.
10883 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10884 stuff from the former to the latter.
10886 2000-09-11 Werner LEMBERG <wl@gnu.org>
10888 Implementing two new requests .tm1 and .tmc: The former is similar
10889 to .tm but can output leading spaces; its syntax is similar to
10890 defining a string, i.e., a `"' can be used to mark the beginning of
10891 the string to be written to stderr: `.tm1 " test'. The latter is
10892 similar to .tm1 but doesn't write out a final newline character.
10894 * src/roff/troff/input.cc (terminal1, terminal_continue,
10895 do_terminal): New functions.
10896 (init_input_requests): Use them.
10897 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10899 2000-09-09 Werner LEMBERG <wl@gnu.org>
10901 * tmac/groff_mdoc.samples.man: Small fixes.
10903 2000-09-08 Werner LEMBERG <wl@gnu.org>
10905 * tmac/groff_mdoc.man: Fixing typo.
10907 2000-09-02 Werner LEMBERG <wl@gnu.org>
10909 Implementing a .nop request which does nothing.
10911 * src/roff/troff/input.cc (nop_request): New function.
10912 (init_input_requests): Use it.
10913 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10915 2000-09-01 Werner LEMBERG <wl@gnu.org>
10917 * doc/groff.texinfo: Added some comments.
10919 2000-08-30 Werner LEMBERG <wl@gnu.org>
10921 * src/roff/troff/TODO: Updated.
10923 2000-08-25 Werner LEMBERG <wl@gnu.org>
10925 * doc/groff.texinfo: Fix comment how to compile the DVI file.
10927 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10929 * font/devps/generate/Makefile (SHELL): Define explicitly to
10930 "/bin/sh", for non-Unix platforms.
10931 (extraclean): Use a more portable "" quoting instead of a
10932 backslash (which doesn't work on DOS/Windows).
10934 * font/devlj4/generate/Makefile (extraclean): Ditto.
10936 * font/devdvi/generate/Makefile (extraclean): Ditto.
10938 2000-08-25 Werner LEMBERG <wl@gnu.org>
10940 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10941 src/roff/troff/troff.man: Document Eli's latest changes.
10943 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10945 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10946 macro file names of the form NAME.tmac as well as tmac.NAME.
10948 2000-08-25 Werner LEMBERG <wl@gnu.org>
10950 * src/include/posix.h: Remove definition of FILENAME_MAX.
10952 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10953 `sys_fatal' and `stop' function().
10955 * test-groff: Updated.
10957 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
10959 Added the new troff command .output <arg> to suppress output (while
10960 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10961 registers (for passing the output dimensions to the output device).
10963 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10965 * src/roff/troff/node.h, src/roff/troff/node.cc
10966 (troff_output_file::really_print_line,
10967 ascii_output_file::really_print_line,
10968 supress_output_file::really_print_line): Use `width' parameter.
10969 (troff_output_file::really_on, troff_output_file::really_off,
10970 output_file::on, output_file::off, real_output_file::on,
10971 real_output_file::off, real_output_file::really_on,
10972 real_output_file::really_off): New functions.
10973 (real_output_file:public output_file): New variable `output_on'.
10974 (real_output_file::begin_page, real_output_file::copy_file,
10975 real_output_file::transparent_char, real_output_file::print_line):
10977 (real_output_file::print_line): Use check_output_limits.
10978 * src/roff/troff/reg.h, src/roff/troff/request.h,
10979 src/roff/troff/input.cc (assign_registers): New function to remove
10981 (do_ps_file): Use it.
10982 (check_output_limits, reset_output_registers, output_request,
10983 init_output_requests): New functions.
10984 (init_input_requests): Updated.
10986 Added new grohtml2 device and html2 preprocessor (coding
10987 not yet finished) which will eventually replace grohtml.
10989 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10991 * src/include/htmlindicate.h, src/include/htmlindicate
10992 (html_begin_suppress, html_end_suppress): New functions.
10993 * src/preproc/tbl/main.cc: Use it.
10994 * src/roff/groff/groff.cc: Add support for html2 device (which will
10995 automatically invoke the html2 preprocessor).
10996 * src/roff/troff/input.cc (is_html2): New variable.
10997 * src/roff/troff/troff.h, src/roff/troff/env.h,
10998 src/roff/troff/env.cc (environment::add_html_tag): New function
11000 (environment::do_break): Use it.
11001 * font/devhtml2/*: New files.
11002 * src/devices/grohtml2: New device.
11003 * src/preproc/html2: New preprocessor.
11004 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
11006 2000-08-23 Werner LEMBERG <wl@gnu.org>
11008 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
11010 2000-08-22 Werner LEMBERG <wl@gnu.org>
11012 * src/include/lib.h: Provide a fix for IRIX to not include
11015 2000-08-18 Werner LEMBERG <wl@gnu.org>
11017 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
11018 since some non-GNU sed programs can't handle null regexps.
11019 * configure, src/preproc/eqn/Makefile.sub,
11020 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
11022 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
11023 bug (string.h and strings.h are both needed according to latest
11026 * MORE.STUFF: Added info about unroff and troffcvt.
11028 2000-08-08 Werner LEMBERG <wl@gnu.org>
11030 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
11033 * tmac/tmac.man.old: Remove unused number register.
11035 * tmac.doc: Minor documentation fix.
11037 2000-08-07 Paul Eggert <eggert@twinsun.com>
11039 * src/roff/groff/pipeline.c (is_system_shell):
11040 Fix typo: "monocased_shell" no longer exists.
11042 2000-08-07 Paul Eggert <eggert@twinsun.com>
11044 Remove FILENAME_MAX limits.
11046 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
11047 that the argument length is less than FILENAME_MAX.
11048 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
11049 Use struct hack to allocate and free file name.
11050 (struct xtmpfile_list): fname is now part of the structure,
11051 not a pointer to another string.
11053 2000-08-07 Tom Schmidt <tschmidt@micron.com>
11055 * src/include/posix.h: Add a default value for FILENAME_MAX.
11057 2000-08-06 Paul Eggert <eggert@twinsun.com>
11059 Add support for new BSD-style man pages (with ".Dd" instead of
11060 ".TH"), so that "groff -man" understands both styles, even
11061 when running "groff -man" on a host whose system man page
11062 macros don't support ".Dd".
11064 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
11065 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
11066 in case the system man macros don't define Dd or TH.
11068 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
11069 * tmac/tmac.an: New one-line file.
11070 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
11072 2000-08-06 Werner LEMBERG <wl@gnu.org>
11074 * src/roff/troff/troff.man: Fixing typos.
11076 Version 1.16.1 released
11077 =======================
11079 2000-07-31 Werner LEMBERG <wl@gnu.org>
11081 Preparing release 1.16.1.
11083 * REVISION: Revision number set to 1.
11084 * MORE.STUFF: Added info about port to DOS.
11085 * NEWS, win32-diffs: Updated.
11087 * src/include/nonposix.h: Remove first line -- this file is used
11090 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
11093 2000-07-30 Werner LEMBERG <wl@gnu.org>
11095 * doc/texinfo.tex: Update to latest version.
11097 2000-06-28 Paul Eggert <eggert@twinsun.com>
11099 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
11100 commands that fail. Don't assume that "export a=b" is valid shell
11101 syntax. This is needed for Solaris 2.5.1.
11103 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
11104 comment about missing Solaris headers.
11106 * PROBLEMS: Add section about problems with Sun Make and VPATH.
11108 2000-06-25 Werner LEMBERG <wl@gnu.org>
11110 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
11113 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
11115 * win32-diffs: Updated.
11116 * README.WIN32: Added CRs to make all Windows editors happy.
11118 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
11119 src/roff/groff/pipeline.c).
11121 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
11123 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
11124 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
11126 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
11128 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
11129 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
11131 (main): Support non-Posix systems with several different styles of
11132 slash characters in file names.
11134 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
11135 (main) [SET_BINARY]: Switch stdin into binary mode.
11137 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
11138 (main): Support file names with several possible slash-type
11139 characters, as given by DIR_SEPS[] in nonposix.h.
11140 (main) [__MSDOS__]: If renaming the temporary index file fails
11141 because it has more than one dot in its trunk, replace the dot
11142 with an underscore and try again.
11143 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
11145 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
11147 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
11148 (File::File): Open the input file in binary mode. Strip CR
11149 characters from each CR-LF pair.
11150 (xbasename): Support file names with several possible slash-type
11151 characters, as given by DIR_SEPS[] in nonposix.h.
11153 * src/include/Makefile.sub (HDRS): Add nonposix.h.
11155 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
11156 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
11157 [!_POSIX_VERSION]: Define for traditional Unix systems.
11158 (real_output_file::real_output_file): Remove the MSVC-specific
11159 call to popen, use instead POPEN_WT, appropriately defined on
11160 nonposix.h. #include nonposix.h.
11161 (real_output_file::~real_output_file): Remove the MSVC-specific
11162 call to pclose, a suitable macro is now defined on nonposix.h.
11163 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
11164 and WEXITSTATUS instead of assuming traditional Unix
11165 interpretation of the status returned by pclose.
11167 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
11168 call to popen, use POPEN_RT instead (appropriately defined on
11169 nonposix.h). #include nonposix.h.
11170 (ps_bbox_request): Open the PostScript file in binary mode.
11171 Close the file after processing it.
11172 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
11175 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
11176 A version of run_pipeline that doesn't use `fork'.
11177 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
11178 (system_shell_name, system_shell_dash_c)
11179 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
11180 the ugliness of testing DOS/Windows file names for equality, and
11181 support both stock shells and ports of Unix shells.
11183 * src/roff/groff/groff.cc: #include nonposix.h.
11184 (BSHELL): Definition moved to nonposix.h.
11185 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
11186 instead of a literal "-c".
11187 (xbasename): Support file names with several possible slash-type
11188 characters, as given by DIR_SEPS[] in nonposix.h.
11189 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
11190 of literal strings.
11192 * src/preproc/soelim/soelim.cc: #include nonposix.h.
11193 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
11195 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
11198 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
11200 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
11203 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
11205 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
11206 P_tmpdir is defined, use it instead of the literal "/tmp".
11207 (remove_tmp_files, add_tmp_file): New functions.
11208 (xtmpfile): Record temporary files and register an atexit function
11209 to delete them explicitly, instead of relying on the OS to do
11210 that, which doesn't work on non-Unix systems.
11212 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
11213 (search_path::search_path): Use PATH_SEP instead of a literal
11215 (search_path::command_line_dir): Ditto.
11216 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
11217 to support non-Posix systems.
11219 * src/libs/libbib/search.cc: #include nonposix.h.
11220 (search_list::add_file): Open the file in binary mode.
11222 * src/libs/libbib/linear.cc: #include nonposix.h.
11223 (file_buffer::load): Remove \r characters preceding \n from the
11226 * src/libs/libbib/index.cc: #include nonposix.h.
11227 (make_index_search_item): Open index_filename in O_BINARY mode.
11228 (index_search_item_iterator::get_tag): Ditto. Remove \r
11229 characters before \n characters.
11230 (index_search_item::check_files): Open files in binary mode.
11231 (index_search_item::munge_filename): Support DOS-style file names
11232 with backslashes and drive letters, use IS_ABSOLUTE.
11234 * src/devices/grops/ps.cc: #include nonposix.h.
11235 (main) [SET_BINARY]: Switch stdout to binary mode.
11237 * src/devices/grolj4/lj4.cc: #include nonposix.h.
11238 (main) [SET_BINARY]: Switch stdout to binary mode.
11240 * src/devices/grolbp/lbp.cc: #include nonposix.h
11241 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
11243 * src/devices/grodvi/dvi.cc: #include nonposix.h.
11244 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
11246 (main) [SET_BINARY]: Switch stdout to binary mode.
11247 [_MSC_VER]: Remove an explicit call to _setmode.
11249 * src/include/nonposix.h: New file.
11251 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
11252 operation when building with DJGPP.
11253 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
11254 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
11257 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
11259 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
11260 etc. can include a semi-colon on DOS/Windows.
11261 (depend.temp): Use depend1.temp instead of depend.temp1, to
11262 prevent files from overerwiting each other on 8+3 filesystems.
11264 * gendef.sh (t): Change definition to work with DOS/Windows.
11266 doc/groff.texinfo: Apart of some typo corrections, I also changed
11267 some index entris, to make them more non-ambiguous, and also put
11268 @ignore around some parts that are not yet written, to allow the
11269 Info output be readable.
11271 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
11273 Replaced specific checks for function declarations with a generic
11274 routine taken from GNU bfd.
11276 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
11277 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
11278 * configure.in: Use it.
11279 * src/devices/grolbp/lbp.cc, src/include/lib.h,
11280 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
11281 src/roff/groff/groff.cc: Use it.
11282 * Makefile.in, configure: Updated.
11284 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
11286 * src/devides/grolbp/lbp.h: Removed unused variables.
11288 2000-05-31 Keith Thompson <kst@sdsc.edu>
11290 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
11293 2000-05-31 Werner LEMBERG <wl@gnu.org>
11295 * aclocal.m4 (GROFF_SRAND): New function to test the return value
11296 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
11297 * configure.in: Use it.
11298 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
11299 * configure, Makefile.in: Updated.
11301 * configure.in: Add test for strncasecmp().
11302 * src/include/lib.h: Use it.
11304 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
11306 * src/preproc/grn/Makefile.sub: Add MLIB.
11308 2000-05-29 Nix <nix@esperi.demon.co.uk>
11310 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
11312 2000-05-29 Werner LEMBERG <wl@gnu.org>
11314 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
11316 * PROBLEMS: Small update.
11318 * src/devices/grolbp/lbp.cc: Various small fixes.
11320 2000-05-28 Keith Thompson <kst@sdsc.edu>
11322 * src/roff/nroff/nroff.sh: Fix main loop syntax.
11324 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
11326 2000-05-25 Werner LEMBERG <wl@gnu.org>
11328 * man/roff.man: Removed unused macro.
11330 2000-05-24 Werner LEMBERG <wl@gnu.org>
11332 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
11333 This is needed e.g. if you do
11334 `make distclean; ./configure; make dist'.
11336 Version 1.16 released
11337 =====================
11339 2000-05-23 Werner LEMBERG <wl@gnu.org>
11341 Adding font CWI (constant width italic) to devdvi.
11343 * font/devdvi/CWI: New file.
11344 * font/devdvi/generate/Makefile: Add generating rule.
11345 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11346 tmac/tmac.dvi: Use it.
11347 * NEWS: Announce it.
11349 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11350 * font/devlj4/generate/Makefile: Cosmetic changes only.
11352 * man/groff.man: Removed most of the redundant description of
11353 special characters (which is in groff_char.man). Added font
11354 translation CB->CR for devdvi. Other minor fixes.
11356 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11357 (registered) symbols.
11359 2000-05-22 Werner LEMBERG <wl@gnu.org>
11361 * doc/Makefile: Added rule for creating info files.
11363 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
11365 * font/devdvi/generate/Makefile: Fixed dependencies.
11367 * font/devps/*: Regenerated. Heavy changes for Bookman and
11368 NewCentury Schoolbook!
11369 * font/devps/generate/afmname: Will now run with GNU awk.
11370 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11371 * font/devps/generate/Makefile: Cosmetic changes only.
11373 2000-05-21 Werner LEMBERG <wl@gnu.org>
11375 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11376 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
11377 `.SS' now produces a heading with a smaller size than `.SH'.
11378 Completely formatted.
11379 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11381 * man/groff.man: Improved table appearance. Use of `eo' request
11382 to reduce number of doubled backslashes in macro definitions.
11383 Replacing `\e' with `\(rs'. Other minor fixes.
11385 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11386 to have correct line number.
11388 * INSTALL: Small improvement.
11390 2000-05-20 Bernd Warken <bwarken@mayn.de>
11392 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11395 2000-05-19 Bernd Warken <bwarken@mayn.de>
11397 * man/groff.man: Complete update (with a lot of corrections by WL).
11399 2000-05-18 Werner LEMBERG <wl@gnu.org>
11401 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11403 * font/*/*: Implement it.
11404 * man/groff_char.man, NEWS: Document it.
11406 * src/include/unix.h: Removed. It isn't used.
11408 * doc/groff.texinfo: Slight improvements.
11410 2000-05-17 Werner LEMBERG <wl@gnu.org>
11412 * README, win32-diffs: Small fixes and improvements.
11414 2000-05-16 Werner LEMBERG <wl@gnu.org>
11416 * FDL: New file (the Free Documentation License version 1.1).
11418 * doc/groff.texinfo: Added many start-up values for gtroff.
11419 Some structural improvements of the source code.
11421 2000-05-15 Werner LEMBERG <wl@gnu.org>
11423 * src/roff/troff/input.cc: Added small comment about troffrc-end.
11424 * src/roff/troff/troff.man: Added info about troffrc-end.
11426 2000-05-14 Werner LEMBERG <wl@gnu.org>
11428 * Makefile.in (EXTRADIRS): Fix typos.
11429 (dist): Handle deletion of old .tar.gz file correctly.
11430 (DISTDIRS): Include all tty output devices.
11432 * doc/groff.texinfo: Adding more cross references; countless other
11435 2000-05-13 Werner LEMBERG <wl@gnu.org>
11437 * MORE.STUFF: Added Robert Marks's utilities.
11439 2000-05-12 Werner LEMBERG <wl@gnu.org>
11441 Added win32 port contributed by Blake McBride
11442 <blake@florida-software.com>.
11444 * README.WIN32, win32-diffs: New files.
11447 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11448 (tmove, tmove2): Added parentheses to avoid compiler warnings.
11449 (change): Removed unused variables.
11451 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11452 (savebounds): Changed return value from `int' to `void'.
11453 * src/preproc/grn/hdb.cc: Ditto.
11455 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11456 final backslash in comment to avoid compiler warning.
11458 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11460 * doc/groff.texinfo: More fixes.
11462 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
11464 * tmac/tmac.doc: Documentation fix.
11466 2000-05-11 Werner LEMBERG <wl@gnu.org>
11468 * doc/groff.texinfo: Reading the source code shows up a lot of
11469 omissions and incorrect data... More conversion to @Deffn macros.
11471 2000-05-10 Werner LEMBERG <wl@gnu.org>
11473 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11476 * src/roff/troff/request.h: Removing unused `no_break_flag'.
11478 2000-05-09 Werner LEMBERG <wl@gnu.org>
11480 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11483 * doc/groff.texinfo: Extended history section. More conversion to
11484 @Deffn macros. More .tr documentation.
11486 2000-05-07 Werner LEMBERG <wl@gnu.org>
11488 * doc/groff.texinfo: Completed tab section. Added info about
11491 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
11493 * PROBLEMS: Describe configure script fix for OS/390 Unix.
11495 2000-05-05 Werner LEMBERG <wl@gnu.org>
11497 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11499 * NEWS: Document it.
11501 * man/troff.man: Minor optical improvements.
11503 2000-05-03 Werner LEMBERG <wl@gnu.org>
11505 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11507 * font/*/*: Implement it.
11508 * man/groff_char.man, NEWS: Document it.
11510 2000-05-02 Werner LEMBERG <wl@gnu.org>
11512 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11514 * NEWS: Document the three new man pages.
11516 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11517 * configure: Updated.
11519 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11521 2000-05-01 Werner LEMBERG <wl@gnu.org>
11523 Added grap support to grog.
11525 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11526 * src/roff/grog/grog.man: Document it.
11528 * doc/groff.texinfo, NEWS: Add info about grap support.
11530 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11531 (with slight fixes by me).
11533 * tmac/groff_tmac.man: New file documenting tmac mechanism.
11534 * tmac/Makefile.sub: Add groff_tmac.man.
11535 * man/roff.man: New file giving overview of roff system.
11536 * man/troff.man: A short reference of troff.
11537 * man/Makefile.sub: Add roff.man and troff.man.
11539 2000-04-30 Werner LEMBERG <wl@gnu.org>
11541 Added grap support to groff.
11543 * src/roff/groff/groff.cc: Implement it.
11544 * src/roff/groff/groff.man: Document it.
11546 * src/devices/grotty/grotty.man: Add cp1047 device.
11547 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11549 * src/roff/groff/groff.man: Ditto.
11550 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11551 * doc/groff.texinfo: Ditto.
11553 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11556 2000-04-29 Werner LEMBERG <wl@gnu.org>
11558 * man/groff_char.man: Add `pc' glyph.
11559 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11560 * tmac/tmac.tty: Add `pc' glyph.
11561 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
11562 we use cp1047 output device.
11564 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11565 there are still hardcoded latin1->unicode values in utf8's font
11567 * configure: Updated.
11568 * NEWS: Minor clarification. Updated.
11570 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
11573 2000-04-28 Werner LEMBERG <wl@gnu.org>
11575 Adding EBCDIC code page 1047.
11577 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11578 font/devcp1047/DESC.proto: New files.
11580 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11581 either ascii/latin1 or cp1047.
11582 * Makefile.in: Use it.
11583 * configure: Updated.
11585 Replacing and/or adding `md' (mathdot) glyph with `pc'
11586 (periodcentered) in all text fonts.
11588 * font/*/*: Change it.
11590 2000-04-27 Werner LEMBERG <wl@gnu.org>
11592 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11594 * configure.in: Add check for strings.h.
11595 * src/include/driver.h: Use HAVE_STRINGS_H.
11596 * src/devices/grolbp/lpb.cc: Remove string.h.
11598 * src/include/groff-getopt.h: New file. It will be used instead of
11599 getopt.h (to be included in lib.h) to avoid endless problems with
11600 picky C++ compilers.
11601 * src/include/lib.h: Use groff-getopt.h.
11602 * src/include/Makefile.sub: Updated.
11604 * configure: Updated.
11605 * Makefile.in: Updated.
11607 * NEWS: Mention EBCDIC support.
11609 2000-04-26 Werner LEMBERG <wl@gnu.org>
11611 * TODO: Some additions.
11613 2000-04-25 Werner LEMBERG <wl@gnu.org>
11615 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11618 2000-04-23 Werner LEMBERG <wl@gnu.org>
11620 * src/roff/troff/troff.man: Minor fixes.
11622 2000-04-22 Werner LEMBERG <wl@gnu.org>
11624 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11625 `.T' string register and the incompatible definition of the `.T'
11626 number register (compared to Unix troff).
11628 * man/groff_char.man: Add some missing characters.
11629 * font/devutf8/NOTES: Update.
11631 2000-04-21 Werner LEMBERG <wl@gnu.org>
11633 * src/include/htmlindicate.h, src/include/lib.h,
11634 src/include/posix.h: Fix copyright.
11636 * src/include/Makefile.sub: Update.
11638 2000-04-20 Werner LEMBERG <wl@gnu.org>
11640 * src/roff/troff/input.cc (input_char_description): Removing
11641 superfluous space char.
11643 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11645 * doc/groff.texinfo: Document EBCDIC.
11647 2000-04-19 Werner LEMBERG <wl@gnu.org>
11649 Introducing `shc' as the glyph name for the soft hyphen character.
11651 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11652 font/devlatin1/R.proto: Use it.
11656 2000-04-18 Werner LEMBERG <wl@gnu.org>
11658 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11659 dependency on ASCII order.
11661 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
11663 * src/libs/libgroff/illegal.c: Added EBCDIC table.
11664 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11666 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11667 to increase portability.
11669 2000-04-15 Werner LEMBERG <wl@gnu.org>
11671 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11672 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11673 the generic `\n' if under OS/390 Unix.
11675 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11677 * configure: Regenerated.
11679 2000-04-14 Werner LEMBERG <wl@gnu.org>
11681 * doc/groff.texinfo: More conversions to @Deffn.
11683 2000-04-12 Werner LEMBERG <wl@gnu.org>
11685 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11688 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11690 2000-04-10 Werner LEMBERG <wl@gnu.org>
11692 * doc/groff.texinfo: More conversions to @Deffn.
11694 2000-04-08 Werner LEMBERG <wl@gnu.org>
11696 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11697 Updated to latest version (glibc 2.1.3).
11699 2000-04-07 Werner LEMBERG <wl@gnu.org>
11701 * doc/Makefile (clean): Include more index files.
11702 Add rule texinfo->dvi.
11704 2000-04-05 Werner LEMBERG <wl@gnu.org>
11706 * doc/groff.texinfo: Added new index `op' for operators. More
11707 info on end of sentence characters. More use of @Deffn.
11709 2000-03-30 Werner LEMBERG <wl@gnu.org>
11711 * */*.man: Adding a note that a whitespace can be inserted between
11712 a command line option and its parameter -- we are using GNU getopt.
11714 * src/roff/groff/groff.man: Add example of `-m mandoc'.
11716 2000-03-28 Werner LEMBERG <wl@gnu.org>
11718 Correct anachronism of calling the man macro file with `-man'
11719 instead of `-m man' etc.
11721 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11722 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11723 load tmac.<package>.
11725 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
11729 * doc/groff.texinfo: Updated.
11731 * tmac/groff_man.man: Copyright added.
11733 2000-03-27 Werner LEMBERG <wl@gnu.org>
11735 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11736 typeset the request resp. escape name with a tt font -- due to a
11737 bug in texinfo.tex it is necessary to use the `-e' switch with
11740 Improving info about usage of groff units.
11744 2000-03-20 Werner LEMBERG <wl@gnu.org>
11746 * doc/groff.texinfo: Added section about man macro package
11747 (I've basically taken groff_man.man). Introducing new indices `ma'
11748 for macros/strings and `gl' for glyph names. Other minor fixes.
11750 * tmac/groff_man.man: Fixed some typos.
11752 2000-03-19 Werner LEMBERG <wl@gnu.org>
11754 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11757 * doc/texinfo.tex: New file.
11759 2000-03-18 Werner LEMBERG <wl@gnu.org>
11761 * doc/groff.texinfo: Improved section on number registers. Other
11764 2000-03-16 Werner LEMBERG <wl@gnu.org>
11766 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
11769 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11770 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11771 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11772 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11774 * src/preproc/grn/grn.man: Better synopsis; added copyright.
11776 * src/roff/grog/grog.man: Updated copyright date.
11778 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
11780 * configure.in: Added test for strdup.
11782 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11785 Replaced dynamic allocation of arrays `[...]' with `new' operator.
11789 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
11791 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11793 2000-03-11 Werner LEMBERG <wl@gnu.org>
11795 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11797 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11798 * src/include/lib.h: Remove some spaces.
11800 2000-03-10 Werner LEMBERG <wl@gnu.org>
11802 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11803 initializers from arguments (some compilers don't like this).
11805 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
11807 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11808 used by pic and eqn to tell grohtml where the graphic regions start
11810 * src/libs/libgroff/Makefile.sub: Use it.
11811 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11812 graphic_start() and graphic_end() from htmlindicate.cc.
11814 2000-03-09 Werner LEMBERG <wl@gnu.org>
11816 * tmac/tmac.safer: Will now work correctly in compatibility mode.
11817 * tmac/groff_man.man: More fixes.
11819 2000-03-08 Werner LEMBERG <wl@gnu.org>
11821 * doc/Makefile: Added texput.log to the `clean' target.
11822 * doc/groff.texinfo: Added info about delimiters for escapes.
11824 2000-03-08 Bernd Warken <bwarken@mayn.de>
11826 * src/preproc/pic/pic.man: Add info on conversion of pic images to
11827 other graphic formats.
11829 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
11831 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11832 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11833 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11836 2000-03-07 Werner LEMBERG <wl@gnu.org>
11838 * doc/groff.texinfo: Spelling fixes.
11840 2000-03-06 Werner LEMBERG <wl@gnu.org>
11842 * tmac/groff_man.man: Completely revised to cover everything in
11845 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11846 Other minor fixings.
11847 * src/roff/troff/env.cc (environment_copy): Improve error message and
11849 * src/roff/troff/TODO: Updated.
11851 * doc/Makefile: Bug fixes -- this is still provisional, though...
11853 * tmac/eqnrc: Small fixes.
11855 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
11857 Adding a request `evc' to copy environments.
11859 * src/roff/troff/env.cc (environment::copy, environment_copy):
11861 * src/roff/troff/env.h: Add prototype.
11863 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
11865 Adding strsep() -- Solaris 8 doesn't have it.
11867 * configure.in: Test it.
11868 * src/devices/grolbp/lbp.cc: Add code.
11870 2000-03-05 Werner LEMBERG <wl@gnu.org>
11872 * src/roff/troff/div.cc (macro_diversion::output,
11873 top_level_diversion::output): Fixing an incompatibility with
11874 original troff: \x'0' updates the .a register also. Thanks to
11875 <Andries.Brouwer@cwi.nl> for pointing this out.
11876 * doc/groff.texinfo: Document it.
11878 * Makefile.in: Create Makefile.dep if necessary before calling the
11879 submake process to avoid warning about nonexistent file.
11881 * NEWS, PROJECTS: Updated.
11883 2000-03-04 Werner LEMBERG <wl@gnu.org>
11885 * tmac/troffrc: Add tmac.lbp.
11887 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
11889 * tmac/tmac.lbp: New file.
11890 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11893 2000-03-03 Werner LEMBERG <wl@gnu.org>
11895 * Makefile.in: Fixing $(subdir).
11897 * README, NEWS: Small fixes.
11899 * test-groff: Adding path to grolbp.
11901 * configure.in: The (new) file src/xditview/Imakefile.in will be
11902 also configured -- it is now possible to build gxditview in a
11903 directory different from $srcdir.
11905 2000-03-02 Blake McBride <blake@florida-software.com>
11907 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11909 * MORE.STUFF: Added website of bell labs and info about plot2dev.
11911 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
11913 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11916 2000-02-29 Werner LEMBERG <wl@gnu.org>
11918 Adding GNU getopt to the groff distribution.
11920 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11922 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11923 * aclocal.a4: Remove GROFF_GETOPT function.
11924 * configure.in, Makefile.in, PROBLEMS: Update.
11925 * src/include/lib.h: Replace getopt tests with getopt.h.
11926 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11928 * doc/groff.texinfo: Further checking/updating. Adding more index
11931 * man/groff_out.man: Fix nroff mode activation (for emacs).
11932 * man/groff_font.man: Add missing ligature.
11934 2000-02-28 Werner LEMBERG <wl@gnu.org>
11936 * doc/groff.texinfo: Further checking/updating. Adding more index
11939 * src/devices/grolbp/grolbp.man: Added a comment line at the
11940 beginning of the file (similar to shell scripts) which indicates
11941 that `tbl' should be used as a preprocessor.
11943 2000-02-27 Blake McBride <blake@florida-software.com>
11945 Adapting groff to MS Visual C++ 6.0 compiler (tested with
11946 Windows NT 4.0). Uses _MSC_VER define where necessary.
11948 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11949 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11950 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11951 src/include/lib.h, src/libs/libgroff/errarg.cc,
11952 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11953 src/preproc/refer/label.y, src/preproc/refer/label.cc,
11954 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11955 src/roff/troff/div.cc, src/roff/troff/env.cc,
11956 src/roff/troff/input.cc, src/roff/troff/node.cc,
11957 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11958 if_to_a() to avoid name clashes.
11959 * src/include/posix.h: Don't use unistd.h.
11960 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11961 clause for integrating non-Unix xtmpfile() code.
11962 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11963 structure; use "rt" for popen() in pipe_source(); add getpid()
11965 * src/roff/troff/node.cc: Use special versions of popen() in
11966 real_output_file() and pclose() in ~real_output_file().
11968 2000-02-27 Werner LEMBERG <wl@gnu.org>
11970 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11971 LBP-8 series laser printers). This code has been contributed by
11972 Francisco Andrés Verdú <pandres@dragonet.es>.
11974 * src/devices/grolbp/*: The grolbp output device.
11975 * font/devlpb/*: The font description files.
11976 * Makefile.in: Add grolpb and devlbp subdirectories.
11978 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11979 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11982 * doc/groff.texinfo: Further checking/updating. Adding more index
11987 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11989 * man/groff_font.man: Adding info about obsolete DESC keywords.
11990 * src/devices/grolj4/grolj4.man: Documenting additional DESC
11993 2000-02-26 Werner LEMBERG <wl@gnu.org>
11995 * src/preproc/grn/grn.man: Added info about the gremlin file format
11996 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11998 2000-02-25 Werner LEMBERG <wl@gnu.org>
12000 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
12001 friends to be non-integer.
12003 * src/preproc/grn/grn.man: Document it.
12005 * doc/groff.texinfo: Further checking/updating. Adding more index
12008 2000-02-24 Werner LEMBERG <wl@gnu.org>
12010 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
12011 line thicknesses to be integer multiples of this value.
12013 * src/preproc/grn/grn.man: Commenting out the -s option -- the
12014 corresponding code doesn't work (yet).
12016 * doc/groff.texinfo: Further checking/updating. Adding more index
12019 2000-02-23 Werner LEMBERG <wl@gnu.org>
12021 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
12022 specify line thickness instead of base units. The new default
12023 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
12024 thick lines respectively.
12026 Removed unused variable `prevval'.
12028 * src/preproc/grn/grn.man: Updated.
12030 2000-02-22 Werner LEMBERG <wl@gnu.org>
12032 * src/preproc/grn/main.cc: Slight formatting.
12034 * src/roff/groff/groff.man: Formatting fix.
12035 * src/preproc/grn/grn.man: Ditto.
12037 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
12039 * doc/groff.texinfo: Further checking/updating.
12041 2000-02-21 Werner LEMBERG <wl@gnu.org>
12043 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
12045 * test-groff: Added grn subdir to path.
12047 * doc/groff.texinfo: Some restructing and other small improvements.
12049 * src/roff/groff/groff.cc (help): Fixed info string.
12051 2000-02-20 Werner LEMBERG <wl@gnu.org>
12053 * doc/meref.me: Fix description of .GS request.
12055 * src/roff/troff/troff.man: Fixing typo.
12057 Adding the `grn' preprocessor for gremlin graphic files.
12059 * src/preproc/grn/*: This is the Berkeley distribution written by
12060 David Slattengren and Barry Roitblat, adapted to groff by Daniel
12061 Senderowicz and Werner Lemberg.
12063 * doc/grnexampl.{me,g}: A sample for grn.
12065 * Makefile.in: Added subdirectory entry for grn.
12067 * src/roff/groff/groff.cc: Added support for grn. It can be now
12068 called with the switch `-g'.
12070 * src/roff/groff/groff.man: Updated.
12072 * src/roff/grog/grog.{man,pl,sh}: Updated.
12076 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
12078 * src/include/lib.h: Added xtmptemplate and made xtmpfile
12079 parametrically polymorphic.
12081 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
12082 and the alterations to xtmpfile.
12083 xtmpfile can be requested to return the filename created
12084 and asked not to unlink the temp file. The default behaviour
12085 if parameters are absent is exactly the same as before.
12087 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
12089 A new request `length' is available which returns the length of a
12090 string in a number register:
12092 * src/roff/troff/input.cc (length_macro): Implement it.
12093 * src/roff/troff/input.cc (init_input_requests): Register it.
12095 2000-02-11 Werner LEMBERG <wl@gnu.org>
12097 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
12098 of the `substring' request.
12100 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
12103 * src/roff/troff/TODO, NEWS: Updated.
12105 2000-02-09 Werner LEMBERG <wl@gnu.org>
12107 * src/roff/groff/groff.man: Added an example.
12109 2000-02-06 Werner LEMBERG <wl@gnu.org>
12111 I've considerably modified the directory structure of the
12112 distribution to get a more vertical layout. For example, the number
12113 of top level directories has been reduced from 42 to 6.
12115 As a consequence, many changes, especially to the makefiles, were
12118 * The makefile variables `top_builddir' and `top_srcdir' have been
12119 introduced. Virtually all relative paths have been replaced with
12120 absolute ones using these two variables.
12122 * Dependencies (in the files `Makefile.dep') are no longer part of
12123 the distribution. Instead, they are created during a `make install'
12124 in the build directory.
12126 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
12127 make `top_srcdir' and `top_builddir' absolute.
12129 Some other changes:
12131 * Man pages now depend on the files `VERSION' and `REVISION'.
12133 * The added shell script `mkinstalldirs' will replace `mkdir' in
12136 * VERSION: Version number increased to 1.16.
12138 2000-02-04 Werner LEMBERG <wl@gnu.org>
12140 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
12142 * Makefile.in: Removed $(tmac_m) since it is no longer needed
12143 (after an update of the mm stuff).
12145 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
12147 2000-02-03 Werner LEMBERG <wl@gnu.org>
12149 The .psbb request will now also accept Mac PS images (i.e. using LF
12150 as the EOL character).
12152 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
12153 (with slight modifications).
12154 * troff/input.cc (do_ps_file): Use it.
12156 * test-groff: Add grohtml and grolj4 output devices to PATH.
12158 2000-01-30 Werner LEMBERG <wl@gnu.org>
12160 * NEWS, MORE.STUFF: Updated.
12162 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
12164 Add the `srand' command to pic.
12166 * pic/lex.cc, pic/pic.y: Implement it.
12167 * pic/pic.man: Document it.
12168 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
12170 2000-01-30 Werner LEMBERG <wl@gnu.org>
12172 Add a new request `.psbb'. This does exactly what the external
12173 program psbb did. It scans a PostScript image file for a
12174 %%BoundingBox comment and extracts the bounding box values (in
12175 PostScript units) which are then stored in the four new (read-only)
12176 number registers `llx', `lly', `urx', and `ury'.
12178 This will allow the usage of the .PSPIC macro without worrying
12179 about unsafe behaviour of groff, i.e., it will work without the
12180 `-U' switch of groff.
12182 * troff/input.cc: Implement it.
12183 * tmac/tmac.pspic: Use it.
12184 * troff/troff.man, grops/grops.man, NEWS: Document it.
12185 * psbb/*, Makefile.in: Remove it since it is no longer needed.
12187 This is bloody C code simply adapted from psbb.c! Any improvements
12190 2000-01-29 Werner LEMBERG <wl@gnu.org>
12192 * man/groff_font.man: Minor clarifications.
12196 2000-01-28 Werner LEMBERG <wl@gnu.org>
12198 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
12200 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
12202 * man/groff_font.man: Brought up to date regarding tcommand
12204 * libgroff/font.cc: Handle everything after `--' as a comment
12206 * devps/*: Added comment delimiter inside devps font files.
12208 2000-01-28 Werner LEMBERG <wl@gnu.org>
12210 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
12211 \fC...\fP (which now works as expected).
12213 * troff/troff.man: Fix typo.
12215 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
12217 Completed the pass_filenames implementation in troff.
12219 * libdriver/input.cc: Will read the new `F' tcommand.
12220 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
12221 * troff/input.cc: Use it.
12223 2000-01-26 Werner LEMBERG <wl@gnu.org>
12225 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
12226 font will now be updated even if an invalid font is selected.
12228 2000-01-24 Werner LEMBERG <wl@gnu.org>
12230 * doc/homepage.ms: Updated for new tmac.arkup.
12232 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
12234 * tmac/tmac.arkup: Cleanup.
12236 Added `\&' to .HTML macro to `leave vertical mode', so to say.
12238 Removed obsolete .LINK macro completely.
12240 The macros .URL, .FTP, and .MAILTO now accept a third argument which
12241 will be immediately appended to the second argument (to be used with
12242 punctuation, for example).
12244 Disabled .CDFTP macro temporarily for security reasons.
12246 * tmac/groff_markup.man: Complete revision for latest changes in
12247 tmac.arkup -- note that it does not yet format correctly with
12250 2000-01-23 Bruno Haible <haible@clisp.cons.org>
12252 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
12253 * devutf8/R.proto: Add mappings for wp, lh, rh.
12254 * devutf8/NOTES: Updated.
12256 2000-01-23 Werner LEMBERG <wl@gnu.org>
12258 * doc/groff.texinfo: Updated version/copyright info.
12260 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
12262 Added support for two new directives in device descriptions:
12263 `pass_filenames' (to pass the input file name to the output device)
12264 and `use_charnames_in_special' (to support e.g. accented characters
12265 in the `X' request).
12267 * include/font.h, troff/charinfo.h: Declare it.
12269 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
12271 * devhtml/DESC: Use it.
12273 * troff/input.cc: New function encoded_char.
12275 * troff/token.h: Add test for `specialness'.
12277 2000-01-21 Werner LEMBERG <wl@gnu.org>
12279 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
12280 mistake from the list of files to be installed.
12282 2000-01-18 Werner LEMBERG <wl@gnu.org>
12284 * README: Added info how to apply patches.
12286 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
12288 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
12290 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
12292 * troff/input.cc: Add support for troffrc-end.
12294 * tbl/main.cc: Altered to issue table-start and table-end special
12295 characters if using the html device.
12297 * devhtml/*: Modified font files to incorporate html encoding of
12300 * tmac/groff_markup.man: New file documenting tmac.arkup.
12302 * tmac/troffrc-end: New file. This is invoked after all user
12303 specified macros. Currently used by the html device to include
12304 tmac.html. Thus no need for users to specify -mhtml anymore.
12306 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
12307 (MAN7): Add groff_markup.man.
12309 * tmac/tmac.an, tmac/tmac.html: Small html updates.
12311 * tmac/troffrc: tmac.arkup will now be called for the html device.
12313 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
12314 extra device specific information about fonts.
12316 * doc/homepage.ms: New file. It is an example how an HTML home page
12317 could look like with grohtml.
12319 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
12321 2000-01-12 Bruno Haible <haible@clisp.cons.org>
12323 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
12326 * devutf8/NOTES: Updated.
12328 2000-01-08 Bruno Haible <haible@clisp.cons.org>
12330 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
12331 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12332 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12333 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12334 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12335 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12336 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12337 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12340 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12342 2000-01-12 Fabrizio Polacco <fab@prosa.it>
12344 grolj4: Paper size will be searched case-insensitively.
12346 * include/lib.h: Add check for strcasecmp().
12347 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12348 * configure.in: Check for strcasecmp().
12350 2000-01-11 Werner LEMBERG <wl@gnu.org>
12352 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12355 2000-01-10 Werner LEMBERG <wl@gnu.org>
12357 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12360 Add a new read-only register, `.Y', which contains the groff
12363 * troff/input.cc (init_input_requests): Define it.
12364 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12365 * doc/groff.texinfo, troff/troff.man: Document it.
12367 * libgroff/Makefile.sub (version.cc): Add definition of
12368 `Version_string[]', consisting of `<major>.<minor>.<revision>'
12369 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12370 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12371 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12372 troff/input.cc, pfbtops/pfbtops.c: Use it.
12374 2000-01-10 Fabrizio Polacco <fab@prosa.it>
12376 Add a revision scheme to the groff package.
12378 * REVISION: New file.
12379 * libgroff/Makefile.sub (version.cc): Use it to define
12380 `revision_string[]'.
12381 * grops/psrm.cc: Use revision_string (converted to an unsigned
12382 integer) in constructor of resource_manager.
12384 2000-01-10 Bruno Haible <haible@clisp.cons.org>
12386 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12388 * Makefile.in (DEVDIRS): Add devutf8.
12389 * grotty/tty.cc: Include device.h.
12390 (glyph): Change type of `code' to `unsigned int'.
12391 (tty_printer): New field is_utf8. Constructor takes device argument.
12392 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12393 (tty_printer::add_char): Change type of first arg to `unsigned int'.
12394 (tty_printer::put_char): New function.
12395 (tty_printer::end_page): Use put_char() instead of ::putchar().
12396 (make_printer): Pass device to tty_printer constructor.
12397 * nroff.sh: Determine default device by calling 'locale'. As a
12398 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12399 Recognize UTF-8 locales.
12400 * tmac/eqnrc: Recognize utf8 like latin1.
12401 * tmac/troffrc: Device utf8 needs tmac.tty.
12403 2000-01-07 Werner LEMBERG <wl@gnu.org>
12405 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12407 2000-01-07 Paul Eggert <eggert@twinsun.com>
12409 Add a new predefined writeable number register, `year',
12410 which contains the current year.
12412 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12413 * tmac/tmac.s: Use it.
12414 * troff/input.cc (init_registers): Initialize it.
12416 2000-01-06 Werner LEMBERG <wl@gnu.org>
12418 * PROBLEMS: Fixed typo.
12420 2000-01-04 Paul Eggert <eggert@twinsun.com>
12422 * PROBLEMS: Add Y2k advice for the yr number register.
12424 2000-01-03 Paul Eggert <eggert@twinsun.com>
12426 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12428 2000-01-02 Werner LEMBERG <wl@gnu.org>
12430 * tmac/tmac.arkup: Slight modification of macros to provide better
12431 appearance for non-HTML formats.
12433 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
12435 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12436 does not automatically translate to malloc(n) on all OSes
12437 (e.g., SunOS) so do it explicitly. Also, check the returned
12440 2000-01-01 Werner LEMBERG <wl@gnu.org>
12442 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
12444 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12445 expects this variable
12447 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
12449 * doc/Makefile: Added instructions to create HTML and text
12450 versions of some files.
12452 1999-12-31 Werner LEMBERG <wl@gnu.org>
12454 * Updated INSTALL.gen.
12456 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12457 better resp. correctly with non-HTML devices.
12459 Version 1.15 released
12460 =====================
12462 1999-12-28 Werner LEMBERG <wl@gnu.org>
12464 * NEWS, VERSION: Changed to 1.15
12466 1999-12-27 Paul Eggert <eggert@twinsun.com>
12468 * nroff/nroff.man: -S is safer, not safe.
12470 * groff/groff.cc (main): Use `safer', not `safe', in variable
12471 names. This does not change the behavior.
12473 * troff/input.cc (main): Likewise.
12475 * nroff/nroff.sh: Likewise.
12477 * troff/input.cc (prepend_string): New function.
12478 (main): Prepend -msafer, so that we check macro libraries for
12481 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12483 Version 1.14 released
12484 =====================
12486 1999-12-26 Werner LEMBERG <wl@gnu.org>
12488 * NEWS, VERSION: Changed to 1.14.
12490 1999-12-24 Werner LEMBERG <wl@gnu.org>
12492 * refer/refer.cc: Fixing the last fix.
12494 Version 1.13 released
12495 =====================
12497 1999-12-23 Werner LEMBERG <wl@gnu.org>
12499 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12504 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12506 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12507 document conventions, the version number must be a real.
12509 Version 1.12.1 released
12510 =======================
12512 1999-12-22 Werner LEMBERG <wl@gnu.org>
12514 * VERSION: Changed to 1.12.1.
12516 1999-12-22 Alan Rooks <arooks@istar.ca>
12518 * refer/refer.cc (do_file): Slight modification to satisfy the
12519 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12522 1999-12-20 Werner LEMBERG <wl@gnu.org>
12524 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12527 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12528 list of unsafe requests.
12530 * pic/pic.man: Fixed a typo.
12532 * man/groff_out.man: Fixed a typo.
12534 1999-12-18 Werner LEMBERG <wl@gnu.org>
12536 * Makefile.in: Doc fixes.
12538 1999-12-17 Fabrizio Polacco <fab@prosa.it>
12540 * groff/groff.cc: Missing `U' option added to getopt().
12542 * troff/troff.man: Missing `U' option added to synopsis.
12544 Version 1.12 released
12545 =====================
12547 1999-12-14 Werner LEMBERG <wl@gnu.org>
12549 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12552 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12553 with the more appropriate terms `safer' and `unsafe'.
12555 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12556 sys_nerr and sys_errlist[].
12558 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12560 * pic/pic.y, pic/pic.cc: Added check for fmod().
12562 1999-12-13 Werner LEMBERG <wl@gnu.org>
12564 * VERSION: Changed to 1.12.
12566 Here some patches from various sources; most of them taken from
12567 the Debian distribution.
12569 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12570 tmac/Makefile.sub: New files copied directly from the NetBSD
12571 distribution. Probably, some additional adaptation later on is
12574 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12575 of unsafe requests.
12577 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12578 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12579 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
12580 (`-S') is now the default.
12582 * README, NEWS: Updated.
12584 1999-12-09 Werner LEMBERG <wl@gnu.org>
12586 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12588 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12590 1999-12-06 Werner LEMBERG <wl@gnu.org>
12592 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12593 grief than relief today. Additionally, it is against the GNU
12596 * configure: Recreated.
12598 1999-12-05 Werner LEMBERG <wl@gnu.org>
12600 * configure.in: Added GROFF_LIBM.
12602 * configure: Recreated.
12604 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12607 * Makefile.in: Added definition of $(LIBM).
12609 * Makefile.comm (LIBM): Removed.
12611 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12613 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
12615 * doc/Makefile: Added rule for generation pic.html.
12617 (clean): Files produced by grohtml will be removed also.
12619 * doc/pic.ms: Small fix.
12621 * tmac/tmac.html: Fixed suppression of headers.
12623 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
12625 * tmac/tmac.html: Fixing horizontal arrows.
12627 Turning off hyphenation.
12629 * tmac/tmac.an: Improved support for grohtml; better indentation,
12630 no footers/headers.
12632 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
12634 * tmac/tmac.arkup: Added CDFTP macro
12636 * tmac/tmac.html: All headers are turned off for ms, me, and mm
12639 * tmac/troffrc: Some additions for HTML stuff.
12641 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
12643 * tmac/tmac.html: Small changes.
12645 1999-09-26 Werner LEMBERG <wl@gnu.org>
12647 * doc/groff.texinfo: Minor fixes.
12649 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
12651 * devhtml/TR: Changed spacewidth to 3.
12653 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12655 * tmac/tmac.html: Moved markup macros to tmap.arkup.
12657 * tmac/tmac.arkup: New file.
12659 * grohtml/ChangeLog: New file.
12661 1999-09-16 Werner LEMBERG <wl@gnu.org>
12663 * doc/groff.texinfo (Common Features): Added Copying chapter.
12664 Changed format to @smallbook.
12666 1999-09-15 Werner LEMBERG <wl@gnu.org>
12668 * NEWS: Added info about groff.texinfo.
12670 * doc/groff.texinfo: Will now compile (using texi2dvi) without
12673 1999-09-14 Werner LEMBERG <wl@gnu.org>
12675 * groff/groff.man: More updates.
12677 1999-09-13 Werner LEMBERG <wl@gnu.org>
12679 * doc/groff.texinfo: New file. This manual is still very
12680 rudimentary. It has been originally contributed by Trent
12681 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12684 * INSTALL: Added information about the `doc' subdir
12686 * troff/troff.man: Minor fixes.
12688 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12691 * troff/input.cc (usage): Added missing `-ffam' to usage message.
12693 * Makefile.in (dist): groff-$(version).tar.gz must be removed
12694 also, otherwise it is included itself in another call of `make
12697 * groff/groff.cc (synopsis): Removed superfluous space.
12699 * PROJECTS, PROBLEMS, NEWS: Updated.
12701 * VERSION: Updated to 1.12beta.
12703 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
12705 * README: Updated: Included documentation about CVS repository,
12706 mailing lists, and daily snapshots.
12708 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12710 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
12712 * tmac/tmac.an: If the tag didn't fit into the space that the
12713 macro `TP' specifies, the rest of the tag went into the space for
12716 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
12718 * grolj4/lj4.cc: Added duplex printing (option `-d').
12720 * grolj4/grolj4.man: Document duplex printing.
12722 1999-09-12 Werner LEMBERG <wl@gnu.org>
12724 * doc/Makefile (pic.ps): Fixed rule which caused problems with
12725 non-GNUish sed programs.
12727 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12730 * configure.in (LIBS): Added `-lc'
12732 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12734 * pic/tex.cc (solid_arc): Casting M_PI to double.
12736 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12738 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12739 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12740 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12742 * groff/groff_man.man: New file. This manual page was originally
12743 written for the Debian GNU/Linux system by Susan G. Kleinmann
12746 * eqn/list.cc (list_box::compute_metrics,
12747 list_box::compute_sublist_width): Removed variable declaration to
12748 avoid shadowing warnings.
12750 * grops/psrm.cc (resource_manager::process_file): Ditto.
12752 * tfmtodit/tfmtodit.cc (main): Ditto.
12754 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12755 to avoid shadowing warnings.
12757 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12758 shadowing loop variable.
12760 * groff/groff.man, troff/troff.man: Added doc about grohtml.
12762 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
12764 New grohtml frontend to convert groff input to html.
12766 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12768 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12770 * tmac/eqnrc: Added html device.
12772 * tmac/tmac.html: New file.
12774 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12775 (troff_output::start_picture, troff_output::finish_picture),
12776 tbl/main.cc (process_input_file):
12777 Surrounded output with `graphics_start' and `graphics_end' so that
12778 the html driver can identify non-text portions.
12780 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12781 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12782 grotty/tty.ps (tty_printer::set_char): Additional parameter
12785 * include/printer.h: Class printer: New function
12786 set_char_and_width; new variables (is_char_named, is_named_set,
12787 named_command, named_char_s, named_char_n) to hold information
12788 about named characters -- needed by the html driver.
12790 * libdriver/printer.cc (printer::set_ascii_char,
12791 printer::set_special_char): Use set_char_and_width.
12793 * devhtml/*: New device files for html driver.
12795 * grohtml/*: New driver grohtml.
12797 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
12799 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12802 1999-09-11 Luke Mewburn <lukem@netbsd.org>
12804 * libgroff/string.cc (search): Small fix to test against NULL
12807 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
12809 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12810 \b'abc') were stacked in reverse order when processed in a
12813 * troff/node.h: Added `*last' to struct `node' to make the above
12816 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12817 The default scale for the 'f' and 't' graphics functions were 'm'
12818 rather than 'u' (i.e., no scaling).
12820 1999-09-11 Peter Miller <peterm@jna.com.au>
12822 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12823 do_file), soelim/soelim.man: Added `-I file' option to soelim,
12824 defining include paths.
12826 * soelim/soelim.cc (include_path_append): New function.
12828 1999-09-11 Larry Jones <larry.jones@sdrc.com>
12830 * tbl/main.cc (process_options): Unix (at least Documenter's
12831 Workbench) tbl allows arbitrary non-alpha characters between
12834 1999-09-11 Paul Eggert <eggert@twinsun.com>
12836 Y2k fixes. Don't assume that the current year precedes 2000.
12838 * doc/meref.me: Add \n(y2, \n(y4.
12840 * tmac/doc-common (Yr): New number register.
12841 (Dd): Don't assume current year precedes 2000.
12843 * tmac/tmac.e (td): Likewise.
12844 (y2, y4): New number registers.
12846 * pic/pic.man: Update reference for pic paper to May, 1991
12849 1999-09-11 Werner LEMBERG <wl@gnu.org>
12851 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12852 Removed quotation marks which prevented correct expansion of
12855 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12857 1999-09-10 Werner LEMBERG <wl@gnu.org>
12859 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12862 * Removed configure.old.
12864 1999-08-31 Werner LEMBERG <wl@gnu.org>
12866 * VERSION: Updated to 1.11.1
12868 1999-05-27 Werner LEMBERG <wl@gnu.org>
12870 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12872 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12873 added quotations around $(tmac_wrap) to avoid syntax error if
12876 * configure: Newly generated using autoconf 2.13.
12878 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12880 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
12882 * README, PROJECTS, NEWS, INSTALL, VERSION,
12883 doc/Makefile. doc/pic.ms, groff/groff.man:
12884 Prepare for 1.11 release. No code changes.
12885 Documentation for pic added (doc/pic.ms).
12887 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
12889 * Version 1.10 released.
12891 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
12893 * afmtodit/afmtodit.pl: Avoid comment on first line.
12895 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
12897 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12898 * configure.in: Call it.
12900 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12901 (distfiles): Doesn't depend on config.log or config.cache.
12903 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
12905 * grog/grog.sh: Use print "" rather than print in END rule.
12907 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
12909 * tbl/main.cc (process_data): Don't give error for excess data
12910 entries that are comments.
12912 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
12914 * tbl/main.cc (process_data): Fix case where new for-scope rules
12915 silently change meaning of code.
12917 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
12919 * troff/env.cc (hyphenate): Loop over all consecutive sequences
12920 of non-zero hyphenation codes.
12922 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
12924 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12926 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
12928 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12930 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
12932 * tmac/tmac.andoc: Make it work in compatibility mode.
12934 * refer/token.h (token_info::is_range_sep): New function.
12935 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12936 * refer/ref.cc (reference::output): More sophisticated check for
12939 * devps/prologue.ps (MANUAL): New procedure.
12940 * grops/ps.cc (main): New -m option.
12941 (usage): Include -m.
12942 (ps_printer::~ps_printer): Implement -m.
12944 * aclocal.m4 (GROFF_G): New macro.
12945 * configure.in: Call it.
12946 * Makefile.in (g): Provided by configure.
12948 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12950 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
12953 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12954 (tmac_m, tmac_s): Deleted.
12955 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12956 tmac_s_prefix): New variables.
12957 (MDEFINES): Change accordingly.
12958 * Makefile.comm (.man.n): Use new TMAC_* variables.
12959 * configure.in (GROFF_TMAC): Call.
12960 * aclocal.m4 (GROFF_TMAC): Define.
12961 * tmac/Makefile.sub (stamp_wrap): New target.
12962 (install_data, uninstall_sub): Handle macro wrapping.
12964 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
12966 * tbl/main.cc (main): Ignore -T option.
12968 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
12970 * devlj4/generate/special.map: Add definition of \(nb.
12972 * tmac/tmac.dvi: Add definition of \(nb.
12974 * troff/dictionary.c (dictionary::dictionary): association::v gets
12975 initialized by association::association.
12977 * tmac/Makefile.sub: Avoid using temporary files when installing.
12979 * troff/env.cc (environment::set_font): Make bad font number a
12982 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12984 * Makefile.in (datadir): Use share rather than lib.
12986 * groff/groff.cc (basename): Rename to xbasename.
12988 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
12990 * Makefile (CCLIBS): Don't use.
12991 * Makefile.ccpg: Likewise.
12993 * acgroff.m4: Rename to...
12994 * aclocal.m4: Modify extensively for autoconf 2.
12995 * configure.in: Likewise.
12996 * Makefile.in: Likewise.
12998 * groff/pipeline.c (const): Declare as empty if __STDC__ not
13000 (xstrsignal): Check for definition of NSIG. Conditionalize
13001 on SYS_SIGLIST_DECLARED. Make return type const.
13003 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
13005 * troff/input.cc (interpolate_macro): Rephrase missing space
13008 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
13010 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
13011 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
13012 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
13013 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
13014 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
13015 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
13016 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
13017 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
13018 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
13019 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
13020 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
13023 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
13025 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
13027 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
13029 (macro_iterator::macro_iterator): Add additional argument.
13031 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
13033 * troff/div.cc (vertical_size::vertical_size): In place of integer
13034 specifying line spacing use cunits specifying post vertical
13036 (macro_diversion::output, top_level_diversion::output): Likewise.
13037 * troff/div.h: Change declarations accordingly.
13038 * troff/env.cc (pending_output_line): Replace ls field by post_vs
13040 (pending_output_line::pending_output_line,
13041 pending_output_line::output, environment::output,
13042 environment::output_line, environment::output_title,
13043 environment::hyphenate_line): In place of
13044 integer specifying line spacing use cunits specifying post vertical
13046 (environment::environment): Add post_vertical_spacing and
13047 prev_post_vertical_spacing arguments.
13048 (environment::get_post_vertical_spacing): New function.
13049 (environment::total_post_vertical_spacing): New function.
13050 (environment::post_vertical_spacing): New function.
13051 (init_env_requests): Initialize pvs request and .pvs register.
13052 * troff/env.h: Change declarations.
13054 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
13056 * tmac/tmac.pspic: Immediately remove the temporary file.
13058 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
13060 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
13061 height is specified.
13063 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
13065 * tbl/table.c (struct vertical rule, class table_entry): Use int
13066 not short for start_row and end_row.
13068 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
13070 * troff/input.cc (trapping_blank_line, blank_line_macro): New
13072 (diverted_space_node::reread, process_input_stack): Call
13073 trapping_blank_line() rather than blank_line().
13074 (init_input_requests): Bind "blm" to blank_line_macro().
13076 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
13078 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
13080 * troff/env.cc (environment::possibly_break_line): Require that
13081 width total excluding width of final space node be greater than
13082 the target text length.
13084 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
13086 * troff/node.cc (kern_pair_node::vertical_extent): New function.
13088 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
13090 * troff/node.cc (charinfo_node): New class.
13091 (glyph_node, composite_node): Derive from charinfo_node. Change
13092 member functions accordingly.
13094 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
13096 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
13098 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
13100 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
13102 * devps/generate/textmap (notsubset): Add.
13104 * tmac/tmac.a4: New file.
13106 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
13108 * pic/main.cc (had_parse_error): New variable.
13109 (do_picture, do_whole_file): Set had_parse_error if yyparse()
13111 (main): Return 1 if had_parse_error is true.
13113 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
13115 * grolj4/lj4.cc (main): Avoid use of strtoul.
13117 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
13119 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
13120 iso_8859_1 or $LESSCHARSET is latin1.
13122 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
13124 * hpftodit: New directory.
13125 * Makefile.in (CCPROGDIRS): Add hpftodit.
13126 * devlj4/generate: New directory.
13128 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
13130 * configure.in: Don't use AC_VFORK.
13131 * groff/pipeline.c (run_pipeline): Use fork() always.
13133 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
13135 * grops/ps.cc (main): Use %1 not %s in error message for -w.
13137 * Makefile.in (CCPROGDIRS): Add grolj4.
13138 (DEVDIRS): Add devlj4.
13139 * grolj4, devlj4: New directories.
13140 * tmac/troffrc: Handle lj4.
13141 * tmac/tmac.lj4: New file.
13143 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
13145 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
13147 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
13149 * troff/input.cc (do_if_request): At end of second string, switch
13150 environments before getting next token.
13152 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
13154 * devps/psstrip.sed: Split rule that strips whitespace on either
13155 side of delimiters.
13157 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
13159 * troff/node.h (font_family::make_definition): Add return value to
13160 declaration. * troff/symbol.h (symbol::operator==,
13161 symbol::operator!=): Likewise.
13163 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
13165 * groff/groff.cc (main, help, synopsis): Handle -S.
13166 (possible_command::insert_arg): New function.
13168 * tmac/tmac.safer: New file.
13169 * tmac/msafer.man: New file.
13170 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
13172 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
13174 * pic/pic.h, pic/main.cc (safer_flag): New variable.
13175 * pic/pic.y (placeless_element): Avoid unsafe operations if
13176 `safer_flag' is set.
13177 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
13179 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
13181 * eqn/lex.cc (get_token): Put call to add_context() in block to
13182 work around Sun C++ 4.0 bug.
13184 * include/stringclass.h (operator +): Use ?: instead of `if' to
13185 work around Sun C++ 4.0 bug.
13187 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
13189 * tbl/main.cc (process_format): Accept - as a synonym for the _
13192 * libbib/index.cc (minus_one): Don't declare as const.
13194 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
13196 * troff/input.cc (get_char_for_escape_name): Push back a newline.
13198 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
13200 * troff/input.cc (write_macro_request): New function.
13201 (init_input_requests): Bind write_macro_request to writem.
13203 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
13205 * tmac/tmac.s (@EN): Turn filling back on even if there was no
13208 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
13210 * tmac/tmac.s (@TS): Renamed from TS.
13211 (TS): Call LP then TS again.
13212 (cov*ab-init): Alias @TS to TS.
13214 * tmac/tmac.s: Allow QP or RS to initialize.
13216 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
13217 Move initializations of PS and LL here.
13218 (par@init): Don't initialize HY. Avoid changing environment 0.
13219 (par*env-init): Don't all par@reset.
13221 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
13223 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
13225 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
13227 * Makefile.in (MDEFINES): Add LDFLAGS.
13228 (LDFLAGS): Add definition line.
13230 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
13232 * troff/input.cc (get_optional_char): Split off error check into...
13233 (check_missing_character): New function.
13234 * troff/token.h: Declare it.
13235 * troff/env.cc (margin_character): Don't call get_optional_char.
13236 Only call tok.next() after making the node.
13238 * include/lib.h (getopt): Make 2nd argument char *const *.
13240 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
13242 * nroff/conftest.sh: Deleted.
13244 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
13246 * pic/make-dos-dist: Deleted.
13248 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
13250 * devps/psstrip.sed: Strip comments before stripping trailing
13253 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
13255 * Version 1.09 released.
13257 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
13259 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
13261 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
13263 * libgroff/font.cc (font::load_desc): Fix typo in error message.
13265 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
13267 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
13268 about returning without a value.
13270 * troff/charinfo.h (charinfo::get_special_translation): Cast
13271 TRANSLATE_NONE to int.
13273 * refer/token.cc (lookup_token, store_token): Remove bogus loop
13274 test. Fix test so that it works with n unsigned.
13276 * pic/pic.y (defaults_table): Fully bracket initializer.
13277 * pic/lex.cc (lookup_keyword): Likewise.
13278 * eqn/lex.cc (token_table, def_table): Likewise.
13279 * eqn/box.cc (param_table): Likewise.
13280 * troff/input.cc (warning_table): Likewise.
13281 * libgroff/font.cc (table): Likewise.
13282 * grops/ps.cc (ps_printer::special): Likewise.
13283 * grops/psrm.cc (resource_manager::process_file): Likewise.
13284 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
13285 * refer/command.cc (command_table): Likewise.
13286 * addftinfo/addftinfo.cc (param_table): Likewise.
13288 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
13289 about temp's being unused.
13290 (unused): New function.
13292 * groff/pipeline.cc: Declare c_fatal.
13294 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
13297 * libbib/index.cc (index_search_item::load): Prevent compiler
13298 warnings about fd_closer's being unused.
13299 (unused): New function.
13301 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
13303 * troff/input.cc (copy_mode_error): Make `prefix' static.
13306 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
13308 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
13309 HAVE_CC_OSFCN_H and modify accordingly.
13311 * troff/input.cc (init_charset_table): radicalex overlaps
13314 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
13315 udodo!hans@relay.NL.net).
13316 * groff/configure.in: Call it.
13318 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
13319 * groff/configure.in: Call it.
13320 * include/lib.h: Conditionalize declaration of pclose.
13322 * troff/div.cc (last_page_number): New global variable.
13323 (top_level_diversion::begin_page): Exit if we just printed the
13325 * troff/div.h (last_page_number): Declare it.
13326 * troff/input.cc (parse_output_page_list): Set last_page_number.
13328 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
13329 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
13330 tmac/tmac.X: Likewise.
13331 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13332 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13334 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
13336 * tmac/doc-ditroff (hK): Remove groff specific code which
13337 prevented page-breaks between separate manual entries. If this is
13338 the first page, don't set the page number to 1.
13340 * acgroff.m4 (GROFF_POSIX): New macro.
13341 * configure.in: Use it.
13343 * troff/node.cc (class real_output_file,
13344 real_output_file::real_output_file,
13345 real_output_file::~real_output_file): Conditionalize use of
13346 popen/pclose on POPEN_MISSING.
13347 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13348 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13349 (pipe_source): Similarily.
13351 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13353 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13354 presence of declarations by trying to compile example with
13355 conflicting declarations. (gcc only gives a warning for missing
13358 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
13360 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13361 (from Ulrich Lauther).
13363 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
13365 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13367 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
13369 * indxbib/indxbib.cc (write_hash_table): Add code for case where
13370 pointers and ints have different sizes.
13372 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
13374 * tmac/tmac.s (par*env-init): Call par@reset.
13376 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
13378 * tmac/tmac.s (@IP): Switch to a new environment when diverting
13380 (par*push-tag-env, par*pop-tag-env): New macros.
13382 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
13384 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13385 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
13387 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13388 comment. Include <time.h>.
13390 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
13392 * grops/ps.cc (is_small_h, is_small_v): Deleted.
13393 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13396 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
13398 * troff/input.cc (read_request): Only print a prompt if reading
13399 from the terminal. Also clearerr on EOF if reading from the
13400 terminal. Declare isatty.
13402 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
13404 * refer/label.y: Rename map_t to map_func and extractor_t to
13407 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
13409 * include/assert.h: Don't use volatile.
13410 * libgroff/assert.cc: Likewise.
13412 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
13414 * troff/input.cc (abort_request): Look at character in tok before
13415 calling get_copy().
13417 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
13419 * troff/troff.h (NO_RETURN): Deleted.
13420 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
13421 * troff/input.cc (exit_troff): Likewise
13423 * Makefile.in: Remove `Making ...' messages since GNU make now
13426 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13428 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
13430 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13431 to constant 1 inch.
13433 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
13435 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13437 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
13439 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13440 MARK_REG if there was no left delimiter.
13442 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
13444 * pic/troff.cc (troff_output::text): Set line thickness to
13445 relative before outputting text.
13447 * tmac/tmac.e (@k): Don't zero ?T.
13450 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
13452 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13454 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
13456 * troff/input.cc (decode_args): Warn about unquoted tabs (from
13459 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
13461 * troff/input.cc (ignoring): New variable.
13462 (ignore): Set ignoring during call to do_define_macro.
13463 (do_define_macro): Clear ignoring before interpolating terminating
13465 (copy_mode_error): New function.
13466 (get_char_for_escape_name, read_long_escape_name,
13467 interpolate_arg): Use copy_mode_error.
13468 (warning_table): Add WARN_IG.
13469 * troff/troff.h (WARN_IG): Declare.
13470 (WARN_TOTAL): Change accordingly.
13472 * groff/pipeline.c (strsignal): Rename to xstrsignal.
13473 * groff/groff.cc (strsignal): Delete declaration.
13475 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
13477 * troff/div.cc (page_offset): Use 'm' as default scaling.
13479 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
13481 * nroff/nroff.sh: Ignore -u.
13483 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
13485 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13487 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
13489 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13491 (B2): With -Tascii, leave additional vertical space before
13492 and after. Ensure that the left and right indent is restored to
13493 what it was even if the point size changes. Don't call
13494 par@finish. Change the indent, line length and title length
13495 directly. With -Tascii, make the width of the box 1n less.
13496 (B1): Remember 1n at the current point size. Don't call
13497 par@reset. Change the indent, line length and title length
13498 directly. Ensure that the temporary indent is preserved.
13499 (par*box-mark-top): Turn off no spacing mode.
13501 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
13503 * Makefile.in (dist): Use .gz suffix.
13505 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
13507 * troff/input.cc (main): Add return 0.
13508 * pic/main.cc (main): Use return instead of exit.
13509 * tbl/main.cc (main): Likewise.
13510 * eqn/main.cc (main): Likewise.
13511 * grops/ps.cc (main): Likewise.
13512 * grotty/tty.cc (main): Likewise.
13513 * groff/groff.cc (main): Likewise.
13514 * grodvi/dvi.cc (main): Likewise.
13515 * refer/refer.cc (main): Likewise.
13516 * indxbib/indxbib.cc (main): Likewise.
13517 * lkbib/lkbib.cc (main): Likewise.
13518 * soelim/soelim.cc (main): Likewise.
13519 * addftinfo/addftinfo.cc (main): Likewise.
13520 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13521 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13523 * troff/token.h (process_input_stack): Don't declare as static.
13524 * troff/input.cc: Likewise.
13526 * troff/node.c (invalidate_fontno): Make it a static member of
13527 class font_family. Change callers.
13528 * troff/node.c: Change declaration.
13530 * tbl/main.cc (struct input_entry_format): Add explicit public
13532 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13533 struct double_hline_stuff): Likewise.
13534 * tbl/table.h (struct entry_format): Likewise.
13535 * pic/object.h (struct saved_state): Likewise.
13537 * include/stringclass.h: Add forward declarations of friend
13538 functions that are later declared as inline. Don't include inline
13539 specifier in friend declaration.
13541 * libgroff/lib.h: Declare popen and pclose.
13542 * acgroff.m4 (GROFF_POPEN): New macro.
13543 * configure.in: Call it.
13545 * include/lib.h (PI): New constant. Undef first if necessary.
13546 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13547 * grops/ps.cc (degrees, radians): Likewise.
13548 * libgroff/font.cc (font::get_skew): Likewise.
13550 * grops/ps.cc (is_ascii): New function.
13551 (ps_output::put_string): Use is_ascii. Use csprint rather than
13553 (ps_printer::define_encoding): Use csspace.
13554 * libgroff/strtol.c (ISASCII): New macro.
13555 (strtol): Cast arguments to is*() and tolower() to unsigned char.
13556 Use ISASCII rather than isascii.
13557 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13558 * libgroff/cset.cc: Likewise.
13559 * libdriver/input.cc: Include cset.h.
13560 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13563 * refer/refer.cc (main): Use %ld rather than %d for longs.
13565 * libbib/index.cc (index_search_item_iterator::get_tag): Use
13568 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13570 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
13572 * troff/input.cc (hyphenation_code): Skip white space between
13575 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
13577 * tbl/table.h (table::entry_list_tailp): New member.
13578 (table::table): Initialize it.
13579 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13582 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
13584 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13585 with negative horizontal positions. Remove casts of glyph::hpos to
13587 (USHRT_MAX): Delete definition.
13588 (SHRT_MAX, SHRT_MIN): New definitions.
13589 (glyph::hpos): Change type to short.
13590 (tty_printer::end_page): Output multiple backspaces if necessary.
13591 Remove casts of glyph::hpos to int.
13593 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
13595 * tmac/tmac.s (@RT): New definition.
13597 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
13599 * refer/refer.cc (do_file): Make sure current_filename is set when
13602 * pic/common.cc (common_output::dot_line): Handle zero length
13605 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
13607 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13608 (par@init): Initialize \n[HY].
13610 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
13612 * troff/dictionary.cc (dictionary::remove): Continue when
13615 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
13617 * Makefile.com (.y.cc): Avoid ending up with two versions of
13620 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
13622 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13623 (\(,C): Likewise. Also fix typo.
13625 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
13627 * lib.h: Delete extraneous semi-colon.
13629 * Add pso request: `so' from a pipe.
13630 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13631 (file_iterator::close): New function.
13632 (file_iterator::~file_iterator, file_iterator::next_file): Use
13633 file_iterator::close.
13634 (file_iterator::backtrace): Say `process' rather than `file' when
13635 the stream is popened.
13636 (pipe_source): New function.
13637 (init_input_requests): Bind ".pso" to pipe_source.
13639 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
13641 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13643 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
13644 digits in lower case.
13646 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
13648 * Version 1.08 released.
13650 * Makefile.in (dist): Insert || true after ln -s commands that
13653 * mm: Update to mm 1.16.
13655 * acgroff.m4 (GROFF_CSH_HACK): New macro.
13656 * configure.in: Call GROFF_CSH_HACK. Substitute for
13658 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
13660 * nroff/Makefile.sub (nroff): New target.
13661 (install_data): Install nroff.
13662 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13663 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13665 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
13667 * eqn/Makefile.sub (neqn): Add chmod +x.
13669 * grog/Makefile.sub (grog): Remove spurious semi-colon.
13671 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
13673 * troff/input.cc (string_iterator::string_iterator()): Initialize
13676 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
13678 * troff/div.cc (macro_diversion::space,
13679 top_level_diversion::space): Don't set high_water_mark.
13680 (macro_diversion::output, top_level_diversion::output): Don't
13681 include post line space in high water mark.
13683 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
13685 * eqn/eqn.y: Don't define YYDEBUG.
13686 * pic/pic.y: Likewise.
13688 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
13690 * tmac/tmac.e ([3): Add space after comma following editors.
13691 Change double spaces to single spaces.
13692 ([4): Change double spaces to single spaces.
13694 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13695 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13696 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13697 after %!PS-Adobe- (for Newsprint).
13699 * troff/div.cc (top_level_diversion::begin_page): When
13700 before_first_page is 1, set page_number to 1.
13702 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
13704 * eqn/box.cc (box::top_level): Protect equation with \&.
13706 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
13708 * groff/groff.cc (possible_command::set_name): Delete old name.
13710 * groff/groff.cc (possible_command::~possible_command): Use
13713 * troff/node.cc (troff_output_file::begun_page): New member.
13714 (troff_output_file::troff_output_file): Initialize it.
13715 (troff_output_file::really_begin_page): Only output V command if a
13716 page has been begun.
13718 * pic/pic.y (placeless_element): Delete argument to PRINT after
13721 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
13723 * Make wrapman work.
13724 * troff/div.h (class top_level_diversion): Replace
13725 first_page_begun by before_first_page (with opposite sense).
13726 * Change first_page_begun to before_first_page inverting sense.
13727 * troff/div.cc (class nl_reg): New class.
13728 (init_div_requests): Use class nl_reg for \n(nl.
13729 (top_level_diversion::begin_page): Don't call
13730 output_file::begin_page if before_first_page is 2;
13731 reset before_first_page afterwards. If have_next_page_number is
13732 false, then always increment page_number.
13733 * tmac/tmac.an: Set traps within TH rather than at the top-level.
13734 Restore compatibility mode after loading, and then disable
13735 compatibility mode in TH.
13737 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
13739 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13741 * troff/node.h (output_file::trailer): Declare.
13742 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13743 * troff/node.cc (output_file::trailer): New function.
13744 (troff_output_file::~troff_output_file): Move most code into...
13745 (troff_output_file::trailer): New function.
13746 (class troff_output_file): Delete page_length member. Declare
13748 (troff_output_file::really_begin_page): Use current page length
13749 for final V command.
13751 * tbl/main.cc (struct options): New decimal_point_char member.
13752 (options::options): Initialize this.
13753 (process_options): Implement decimalpoint option.
13754 (process_data): Pass decimal_point_char option to table::table.
13755 * tbl/table.h (class table): New decimal_point_char member.
13756 (table::table): Add additional argument.
13757 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13758 second argument specifying decimal point character. Use this
13760 (table::table): Initialize decimal_point_char.
13761 (table::add_entry): Change call to find_dot.
13763 * troff/input.cc (get_copy, token::next): Implement \V.
13764 (interpolate_environment_variable): New function.
13766 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
13768 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13769 * pic/pic.y: Likewise.
13771 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13773 * refer/ref.cc (reference::insert_field, reference::delete_field):
13775 * troff/number.cc (parse_term): Likewise.
13777 * acgroff.m4 (GROFF_PROG_YACC): New macro.
13778 * configure.in: Use GROFF_PROG_YACC.
13780 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13782 * Makefile.in (OPTIMIZE): New define.
13783 (DEBUG): Empty by default.
13784 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13786 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13787 (GROFF_ARRAY_DELETE): Likewise.
13788 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13790 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13792 * devps/psstrip.sed: Use different delimiter on last line (so that
13793 it works with BSD 4.4 sed.)
13795 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
13797 * devps/psstrip.sed: Delete comments.
13799 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13800 optind, opterr, optarg.
13801 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13804 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
13806 * Makefile.in (check): Dummy target.
13808 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
13810 * Version 1.07 released.
13812 * Integrate mm 1.11.
13814 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13815 where start_col was meant.
13817 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
13819 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13821 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
13823 * troff/input.cc (token::next): Make \z\o'...' and similar things
13826 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13828 (environment): Add margin_character_flags member.
13829 * env.cc (environment::environment(symbol),
13830 environment::environment(const environment *): Initialize
13831 margin_character_flags.
13832 (margin_character): Rewrite.
13833 (environment::output_line): Add a margin character if
13834 margin_character_flags is non-zero. Turn off the
13835 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
13836 zero, use margin_character_node without copying and then set
13837 margin_character_node to 0.
13839 * devps/DESC.in: Change minimum size to 1000.
13841 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
13843 * troff/symbol.h (symbol::hash): Change return type to unsigned
13845 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13848 * test-groff: Use -r rather than -x.
13850 * grops/psfig.diff: Include in distribution again.
13852 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
13854 * Makefile.in (dist): Use gzip.
13856 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
13858 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13859 unistd.h as well as in stdlib.h.
13860 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13861 defined; otherwise include <sys/types.h> and <unistd.h> if
13862 UNISTD_H_DECLARES_GETOPT is defined.
13864 * configure.in: use builtin(include, ... rather than include(...
13865 * configure: Regenerate with autoconf 1.3.
13867 * libdriver/print.cc (printer::adjust_arc_center): Use new
13868 algorithm suggested by Andy Fyfe.
13870 * libdriver/printer.cc (printer::adjust_arc_center): New function.
13871 * include/printer.h: Declare this.
13872 * grops/ps.cc (ps_printer::draw): Use it.
13873 * grodvi/dvi.cc (dvi_printer::draw): Use it.
13875 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
13877 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13879 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
13881 * eqn/main.cc (main): Handle "eqn -".
13883 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
13885 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13887 * mm: Integrate version 1.08.
13889 * pic/troff.cc (troff_output::finish_picture): Set
13890 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13891 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13892 if it's not defined. Check whether the register is non-zero rather
13893 than whether it's not defined.
13894 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13896 * indxbib/indxbib.cc: Move all signal handling into...
13897 * indxbib/signal.c: New file.
13898 * configure.in: Call AC_RETSIGTYPE.
13900 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13901 * configure.in: Call GROFF_STRUCT_EXCEPTION.
13902 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13904 * troff/input.cc (token::token, token::operator=): Work round SGI
13906 * pic/object.cc (position::position): Likewise.
13908 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
13910 * pic/pic.h: Move declaration of hypot().
13912 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
13914 * pic/pic.h: Declare hypot().
13916 * pic/pic.h: Define M_PI if necessary.
13918 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
13920 * tmac/tmac.e (re): Add alternative version that doesn't use groff
13923 * devps/prologue.ps (RE): Handle the possibility that the old font
13924 doesn't have a FontName entry.
13926 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
13928 * tmac/tmac.e (fam): Redefine to set family in environment 2.
13929 (@C): Use @fam not fam.
13931 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
13933 * lookbib/lookbib.cc (main): Change type of start to const char *.
13934 * lkbib/lkbib.cc (main): Likewise.
13936 * eqn/lex.cc (definition::definition): Don't use member
13937 initializer syntax for members of anonymous unions.
13939 * troff/input.cc (input_stack::backtrace): Change type of to const
13942 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
13944 * include/stringclass.h (class string): Declare inline friend
13945 functions as inline in class declaration.
13946 * troff/hvunits.h (class hunits, class vunits): Likewise.
13947 * include/refid.h (class reference_id): Likewise
13948 * troff/troff.h (points_to_units(units), scale(units, double)):
13949 Delete declarations.
13950 * libdriver/input.cc (get_char): Delete declaration.
13951 * include/lib.h: Change 2nd argument of getopt from const char **
13953 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13954 char **' before assigning to a `const char **'.
13955 * tbl/table.cc: Delete extra declarations of prints().
13957 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
13959 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13960 char **' before assigning to a `const char **'.
13962 * libgroff/errarg.cc (errarg::errarg): Don't use member
13963 initializer syntax for members of anonymous unions.
13965 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
13967 * mm: Integrate version 1.07.
13969 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
13971 * troff/input.c (translate2): Rename to
13972 (translate_no_transparent).
13973 (init_input_requests): Rename tr2 to trnt.
13975 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
13977 * troff/charinfo.h (class charinfo): Add transparent_translate field.
13978 (charinfo::set_translation, charinfo::set_special_translation):
13979 Add second argument that specifies value for
13980 transparent_translate.
13981 (charinfo::get_translation, charinfo::get_special_translation):
13982 Add optional second argument that specifies whether translation is
13983 being used for transparent throughput.
13984 * troff/input.cc (charinfo::set_translation,
13985 charinfo::set_special_translation): Handle second argument.
13986 (charinfo::charinfo): Initialize transparent_translate.
13987 (translate): Split main part off into
13988 (do_translate): New function. Pass argument saying whether
13989 translation applies to transparent throughput.
13990 (translate2): New request.
13991 (init_input_requests): Bind translate2 to `tr2'.
13993 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
13995 * tbl/table.h (class table): Add `nokeep' flag.
13996 * tbl/main.cc (process_options): Handle `nokeep' option.
13997 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13998 table::do_bottom): Don't output keep/release macro definitions or
13999 calls when `nokeep' option has been specified.
14001 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
14003 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
14005 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
14007 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
14008 block_entry::divert, alphabetic_block_entry::divert): Add extra
14009 argument giving column separation.
14010 (table::compute_widths): Pass column separation to
14011 table_entry::divert().
14012 (block_entry::do_divert): If an entry spans multiple columns and a
14013 minimumum width has been specified for each column, then set the
14014 line length to the sum of the widths (plus possibly the column
14017 * troff/input.cc (set_escape_char): Don't set the escape_char
14018 until after calling has_arg().
14020 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
14022 * tbl/table.cc (table::do_top): Add missing \s0 for double box
14025 * tbl/table.cc (table::print_double_hline): Avoid extra new line
14026 in case where r > nrows - 1.
14028 * tbl/table.cc (BODY_HEIGHT): Deleted.
14029 (LINE_SEP): New definition.
14030 (table::print_single_hline, table::print_double_hline,
14031 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
14032 table::do_row, table::do_top): Use LINE_SEP space before a line
14033 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
14035 * tbl/table.cc (text_entry::print_contents): New function.
14036 (text_string_name, right_text_string_name): Deleted.
14037 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
14038 (simple_text_entry::do_width, numeric_text_entry::do_width,
14039 alphabetic_text_entry::do_width): Don't store the contents of the
14041 (left_text_entry::simple_print, right_text_entry::simple_print,
14042 center_text_entry::simple_print,
14043 alphabetic_text_entry::simple_print,
14044 numeric_text_entry::simple_print): Print the entry directly
14045 instead of using the stored string.
14047 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
14049 * devps/Makefile: Strip PostScript files.
14050 * devps/prologue: Rename to...
14051 * devps/prologue.ps.
14052 * devps/psstrip.sed: New file.
14053 * devps/download: Use .pfa rather than .ps for installed versions
14056 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
14058 * troff/env.cc (input_trap): Give a warning if the argument is out
14061 * troff/env.cc (adjust): Treat negative argument as missing. Round
14062 argument > 5 down to 5.
14064 * troff/env.cc (center, right_justify): Make negative argument zero.
14066 * troff/div.cc (page_offset, vertical_position_traps): Treat
14067 invalid argument as missing.
14068 * troff/env.cc (line_spacing, line_length, title_length, indent,
14069 underline, hyphen_line_max_request, control_char,
14070 no_break_control_char, widow_control_request, adjust, input_trap,
14071 point_size): Likewise.
14072 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
14073 constant_space): Likewise.
14074 * troff/input.cc (compatible, shift, warn_request,
14075 set_escape_char): Likewise.
14077 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
14078 * tbl/table.cc (table::table): Likewise.
14080 * Makefile.dev (install_dev): depends on $(DEVFILES).
14082 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
14084 * devX75, devX75-12, devX100, devX100-12: New directories.
14085 * Makefile.in: Add these to DEVDIRS.
14087 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
14088 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
14089 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
14090 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
14092 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
14093 (uninstall): New target.
14094 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
14095 uninstall_prog, uninstall_dev): New targets.
14097 * troff/div.cc (return_request): Treat an invalid argument as
14100 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
14102 * tmac/tmac.e ((f): Set up the environment even when there's a
14103 current diversion. Transperently throughput a call to @N.
14106 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
14108 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
14109 up to vertical resolution.
14111 * tbl/table.cc (table::do_row): Change row number after printing
14114 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
14116 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
14118 * Rename CHANGES to NEWS.
14120 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
14122 * libgroff/new.cc (operator new): Avoid calling malloc(0).
14124 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
14126 * man.ultrix: Removed.
14128 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
14130 * Makefile.comm (extraclean): Delete files whose names begin with
14133 * pic/troff.cc (troff_output::text): Fix typo in implementation of
14136 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
14138 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
14139 * troff/div.cc (page_length, need_space, space_request): Treat
14140 invalid optional argument as missing.
14141 * troff/env.cc (number_lines): If the first argument is present
14142 but not a number, turn on line numbering, don't change the next
14143 line number and parse the remaining arguments.
14145 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
14147 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
14149 * eqn/box.h: Change declaration accordingly.
14150 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
14151 the specified size was bad but don't give an error. Check for
14153 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
14154 * eqn/lex (do_size): Likewise.
14156 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
14158 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
14159 compatible headers.
14161 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
14163 * tbl/table.cc (table::init_output): Improve error message when
14164 table won't fit on one page.
14166 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
14168 * pic/troff.cc (troff_output::start_picture): Generate line
14169 containing a horizontal motion equal to the width of the picture.
14171 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
14172 using GROFF_COMMAND_PREFIX environment variable.
14174 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
14176 * mdate.sh: Use $NF rather than $(NF).
14178 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
14180 * pic/main.cc (main): Use %1 not %c in argument to warning.
14182 * eqn/main.cc (main): Output code to check that geqn was given the
14185 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
14187 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
14188 `ln -s ../Makefile .; make; rm -f Makefile'.
14190 * troff/hyphen: Rename to...
14192 * troff/input.cc (main): Delete -H option. Don't call
14193 read_hyphen_file().
14194 * troff/env.cc: Include searchpath.h and macropath.h.
14195 (exception_dictionary): Deleted.
14197 (read_hyphen_file): Deleted.
14198 (hyphenation_language): New struct.
14199 (class trie, class hyphen_trie): Move declarations up.
14200 (trie_node::~trie_node): Deleted.
14201 (trie::delete_trie_node): New function.
14202 (trie::do_delete): New pure virtual function.
14203 (hyphen_trie::do_delete): New function.
14204 (trie::~trie): New function.
14205 (hyphen_trie::~hyphen_trie): New function.
14206 (trie::clear): No need to chcek that tp is not 0.
14207 (current_language, language_dictionary): New variables.
14208 (hyphen_word): Give an error if no current language. Use
14209 exceptions dictionary in current language.
14210 (hyphen_trie::read_patterns_file): Find file using macro_path.
14211 Allow comments (starting with %) in patterns file. Don't make it
14212 a fatal error if the file can't be found.
14213 (hyphenate): Return if no current language. Get the exceptions
14214 dictionary and the hyphenation patterns from the current language.
14215 (set_hyphenation_language): New variable.
14216 (hyphenation_patterns_file): New function.
14217 (hyphenation_language_reg): New class.
14218 (hyphenation_language_reg::get_string): New function.
14219 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
14220 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
14222 * groff/groff.cc (main, help, synopsis): Delete -H option.
14223 * include/Makefile.sub: Don't define HYPHENFILE.
14224 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
14225 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
14226 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
14227 hyphenation patterns.
14229 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
14231 * eqn/neqn.sh: New file.
14232 * eqn/Makefile.sub: Handle neqn.sh.
14234 * eqn/eqn.h: Declare `nroff' variable.
14235 * eqn/box.cc (param_table): Add `nroff' param.
14236 (nroff): Define it.
14237 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
14239 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
14241 * troff/troff.h (WARN_FONT): New warning.
14242 (WARN_TOTAL): Change accordingly.
14243 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
14244 (warning_table): Add WARN_FONT.
14245 * troff/node.cc (mount_font_no_translate): Pass argument to
14246 font::load_font. If this is non-zero, give a warning.
14247 Don't give an error message when accessing a font that has already
14248 been found to be invalid.
14249 * include/font.h (font::load, font::load_font): Add additional
14250 optional argument which suppresses error message if the font is
14252 * libgroff/font.cc (font::load_font): Handle additional argument.
14253 (font::load): Add additional argument. If this is non-null, set it
14254 to 1 and don't give error message.
14256 * include/printer.h (printer::end_page): Add argument giving
14258 * libdriver/input.cc (do_file): Pass this.
14259 * grops/ps.cc (ps_printer::end_page): Add argument.
14260 * grodvi/dvi.cc (dvi_printer::end_page,
14261 draw_dvi_printer::end_page): Add argument.
14262 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
14263 columns_per_page members. New member nlines.
14264 (DEFAULT_LINES_PER_PAGE): Deleted.
14265 (tty_printer::tty_printer): Don't compute lines_per_page from
14266 font::paperlength. Don't compute columns_per_page from
14268 (tty_printer::add_char): Don't check horizontal position against
14269 columns_per_page. Grow glyphs vector if neccessary.
14270 (tty_printer::end_page): Add argument giving page_length in units.
14271 Discard lines past end of page.
14273 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
14275 * tmac/tmac.tty-char: Fix definition of \(/l.
14277 * tmac/tmac.X: Define \(en.
14279 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
14281 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
14282 lpq, then use lp rather than lpr.
14284 * tmac/tmac.s (par@reset): Don't call `ad'.
14285 (par*env-init): Call `ad'.
14287 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
14289 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
14292 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
14293 * indxbib/indxbib.cc: Likewise.
14295 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
14297 * libgroff/putenv.c: New file.
14298 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
14299 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
14300 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
14301 stdlib.h with AC_HAVE_HEADERS.
14303 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
14305 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
14308 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
14310 * eqn/box.cc (gsize): Make it an int.
14311 (set_gsize): Parse argument handling increment or decrement.
14312 (box::top_level): Convert gsize to a string.
14314 * troff/input.cc (exit_troff): Make buf unsigned char [].
14315 Call to make_temp_iterator casts buf to char*.
14317 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
14319 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
14320 * Makefile.cpg (depend.temp): Likewise.
14322 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
14324 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
14326 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
14328 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
14330 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
14332 * Version 1.06 released.
14334 * Integrate mm 1.04.
14336 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
14338 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14340 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
14342 * afmtodit/afmtodit.pl: Add -n option that disables generation of
14344 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14345 afmtodit. Regenerate.
14347 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14348 @f back past the current position.
14350 * tmac/tmac.e: Change calls to @R so that comments are not part of
14353 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
14355 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14357 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14358 check that we can link a call to a function declared in <stdio.h>.
14359 (GROFF_UNISTD_H): New macro.
14360 * configure.in: Call it.
14361 * Makefile.in: Document it.
14362 * include/posix.h: New file.
14363 * troff/troff.h: Don't include <osfcn.h>
14364 * troff/input.cc: Include posix.h.
14365 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14367 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14368 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14370 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14371 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14372 * libbib/search.cc (O_RDONLY): Delete definition.
14373 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14374 Don't include <osfcn.h>.
14376 * acgroff.m4 (GROFF_TIME_T): New macro.
14377 * configure.in: Call it.
14378 * Makefile.in: Document it.
14380 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14381 * configure.in: Call it.
14382 * Makefile.in: Document -DTRADITIONAL_CPP.
14383 * include/ptable.h: Don't include generic.h.
14384 (name2): Define it.
14386 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14387 Afterwards remove [T1 and [T2.
14388 (ref*spec!0, ref*spec!2): Use T1 rather than T.
14389 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14390 (ref*add-T2): Renamed from ref*add-T.
14391 (ref*add-T1): New macro.
14393 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
14395 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14397 * libbib/index.cc: Include <fcntl.h>.
14398 (O_RDONLY): Define if necessary.
14399 (make_index_search_item, index_search_item_iterator::get_tag,
14400 index_search_item::check_files): Use O_RDONLY.
14401 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14402 (O_RDONLY): Define if necessary.
14403 (search_list::add_file): Use O_RDONLY.
14404 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14406 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14409 * libbib/index.cc (S_ISREG): Define it if necessary.
14410 (index_search_item::load): Use S_ISREG.
14412 * include/driver.h: Include <errno.h>.
14414 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
14416 * eqn/box.cc (body_height): Increase default value to 85.
14417 (body_depth): Increase default value to 35.
14419 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
14421 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14422 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14423 protected from expansion with \E.
14425 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14427 * Makefile (Makefile): New target.
14429 * Makefile.sub (configure, distfiles): New targets.
14431 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14434 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
14436 * eqn/box.cc (param_table): Add body_height and body_depth.
14438 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14440 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
14442 * psbb/Makefile.sub: Don't link with libgroff.a.
14444 * acgroff.m4 (GROFF_PUTENV): New macro.
14445 * configure.in: Call GROFF_PUTENV.
14446 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14447 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14450 * troff/env.cc (distribute_space): Rename force_forward argument
14451 to force_reverse. Reverse the list if force_reverse is true.
14453 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
14455 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14457 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14458 height or depth to be negative. Guard against SUP_RAISE quantity
14461 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
14463 * devps/generate/textmap: Add `an' (arrowhorizex).
14464 * tmac/tmac.ps: \(an overlaps horizontally.
14465 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14467 * devps/symbolchars: Add arrowverttp, arrowvertbt.
14468 * devps/textmap: Add arrowvertex.
14469 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14470 updownarrow delimiters.
14471 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14473 * tbl/table.cc (simple_entry::position_vertically,
14474 block_entry::position_vertically): For a centered entry, perform
14475 the motion in two stages.
14477 * refer/refer.cc (split_punct): Don't call lookup_token if there
14480 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
14482 * troff/input.cc (token::next): Delete token_node after copying
14485 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14488 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14490 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14492 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
14494 * grops/ps.cc (usage): -b option takes an argument.
14496 * devps/prologue (PLG): New procedure.
14497 * grops/ps.cc (main, usage): New -g option.
14498 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
14501 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
14503 * include/cset.h: Include <limits.h> if we have it.
14505 * libgroff/illegal.cc: New file.
14506 * include/lib.h (illegal_input_char): Use table.
14507 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14508 * pic/lex.cc (ARG1): Renumber to 14.
14509 * eqn/lex.cc (ARG1): Likewise.
14511 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14512 (eg 1.05.90) correctly.
14514 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
14516 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14517 Rename $r and $R registers to $v and $V.
14518 ($r, $R): Initialize to 0.
14519 (@v, @V): New macros.
14523 * troff/input.cc (main, usage): Add -R option that says not to
14525 * eqn/main.cc (main, usage): Rename -n to -R.
14527 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
14529 * devps/DESC.in: Leave font positions 5-9 blank.
14530 * devdvi/DESC.in: Likewise.
14532 * grog/grog.pl: Handle `.PS <file' correctly.
14534 * troff/input.cc (input_stack::push): Improve error message when
14535 input stack limit exceeded.
14537 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
14539 * refer/refer.cc (main): Fix typo in handling of `a' option.
14541 * refer/refer.cc (do_bib): In state START after a newline remain
14544 * groff/groff.sh: Deleted.
14545 * groff/Makefile.sub: Delete handling of groff.sh.
14547 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14548 to determine whether to use \X'ps:...'.
14549 * tmac/troffrc: Set 0p register to 0.
14550 * tmac/tmac.ps: Set 0p register to 1.
14552 * groff/groff.cc: Support -X option. Give warning for -TXps and
14553 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14554 * tmac/troffrc: Support -r.X=1.
14556 * pic/troff.cc (troff_output::dot): Don't test
14557 zero_length_line_flag.
14559 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
14561 * include/lib.h: Declare getopt() and friends unless
14562 STDLIB_H_DECLARES_GETOPT is defined.
14564 * doc/chars.tr: Delete.
14565 * man/groff_char.man: New file.
14567 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
14569 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14570 user has changed register format.
14572 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
14574 * groff/groff.cc: Get rid of device_table. Get postprocessor from
14575 `postpro' command in DESC file. Get spooler command from `print'
14576 command in DESC file. Execute spooler command with /bin/sh.
14578 * groff/groff.cc: Split Unix-specific parts into...
14579 * groff/pipeline.c: New file.
14582 * COPYING: New file.
14583 * all files: Update copyright notices.
14585 * Rearrange files. Redo Makefiles. Use autoconf.
14587 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
14589 * troff/input.c (charinfo_to_node_list): Interpret character
14590 definition with escape_char of `\'.
14592 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
14594 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14595 Define INT_DIGITS as big enough for 64-bit integer.
14596 * lib/strtol.c: Don't include lib.h.
14597 * lib/lib.h: Delete ifdef __cplusplus stuff.
14599 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
14601 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
14602 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
14603 get DESC from current directory.
14605 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
14607 * tbl/main.c (main): Always reset the line number when reading
14610 * tbl/table.c (table::print_single_hline, table::print_double_hline,
14611 table::define_bottom_macro, table::do_row, table::do_top): Round
14612 vertical spacing up to vertical resolution.
14614 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
14616 * ps/ps.h (enum resource_type): Avoid comma at end of
14618 * dvi/dvi.c (class dvi_printer): Likewise.
14619 * dvi/tfmtodit.c (gf::load): Likewise.
14620 * refer/label.y (struct expression): Likewise.
14621 * refer/refer.c (class label_processing_state): Likewise.
14622 * refer/indxbib.c (do_file): Likewise.
14623 * troff/troff.c (enum warning_type): Likewise.
14624 * tbl/main.c (process_data): Likewise.
14625 * troff/charinfo.h (class charinfo):
14627 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
14629 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
14631 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
14633 * groff.c: Move to new groff subdirectory.
14634 * groff/Makefile: New file.
14635 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14637 * man/mdate.sh: Use ls -L if supported.
14639 * Consolidate all header files produced by gendef into lib/defs.h.
14640 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14641 Don't include path.h.
14642 * lib/Makefile (path.h): Don't generate.
14643 * troff/input.c: Include defs.h. Don't include config.h.
14644 * troff/Makefile (config.h): Don't generate.
14645 * refer/index.h: Don't include suffix.h.
14646 * refer/index.c: Include defs.h.
14647 * refer/indxbib.c: Include defs.h.
14648 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14650 * refer/Makefile (suffix.h, path.h): Don't generate.
14651 * groff.c: Don't include config.h. Include defs.h.
14652 * Makefile (config.h): Don't generate.
14653 (lib/defs.h): Generate.
14654 (topclean): Remove lib/defs.h.
14656 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
14658 * lib/malloc.c, lib/getpagesize.h: Deleted.
14659 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
14661 * lib/Makefile: Delete malloc-related stuff.
14662 * lib/new.c: Workaround COOKIE_BUG if necessary.
14664 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
14665 needed header files directly.
14666 * refer/refer.h: Omit definition of DEFAULT_INDEX.
14667 * Makefile: Include definition of DEFAULT_INDEX in path.h.
14669 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
14671 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14673 * lib/font (font::load_desc, font::load): Don't split argument of
14675 (font::handle_unknown_font_command): Change type.
14676 * ps/ps.c (ps_font::handle_unknown_font_command,
14677 handle_unknown_desc_command): Change type.
14678 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14680 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
14682 * lib/font.h (font::handle_unknown_font_command): Add file and
14684 * lib/font.c (font::handle_unknown_font_command):
14685 * ps/ps.c (ps_font::handle_unknown_font_command):
14686 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14687 lineno arguments. Use _with_file_and_line functions for error
14690 * lib/fontfile.c (font::unknown_desc_command_handler): New static
14692 * lib/font.c (font::set_unknown_desc_command_handler): New
14694 (font::load_desc): For unknown commands, call
14695 unknown_desc_command_handler if not null.
14696 * lib/font.h (class font): Declare them.
14697 (FONT_COMMAND_HANDLER): New typedef.
14698 * ps/ps.c (handle_unknown_desc_command): New function.
14699 (main): Set bflag if we had a -b option. Call
14700 font::set_unknown_desc_command_handler.
14701 (broken.h): Don't include.
14702 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
14704 * ps/devps/Makefile: Add `broken' command to DESC file using
14705 BROKEN_SPOOLER_FLAGS.
14707 * macros/tmac.e ([, ]): Add as synonyms for { and }.
14709 * macros/tmac.e ($p): Only exdent if \$3 > 0.
14711 * macros/tmac.e (@R, @S): New macros.
14712 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14713 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14714 Declare $H, $[0-9], .. macros with @S.
14715 Declare |0, |1, |2, |3 strings with @S.
14717 * macros/tmac.e (@S): Rename to @U.
14719 * macros/tmac.e (@z): Define @b and bp as empty instead of
14722 * macros/tmac.e (@m): Deleted.
14723 (@h): Don't call @m.
14724 (@z): Don't set @m trap.
14726 * macros/tmac.e ($h, $f): Define |z as empty string.
14728 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14731 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14733 ()f): Likewise for * register.
14735 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14736 argument is missing, don't change $R. Call sr with three
14737 arguments when initializing.
14739 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
14741 * macros/tmac.e (sr): New macro.
14742 Initialize $r and $R using sr.
14744 * macros/tmac.e (,): Delete \*(#[.
14746 * troff/env.c (set_tabs): Read the tab type even if the position
14747 is bad. Allow the position of the first tab stop to be negative.
14749 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
14751 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14753 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14754 rather than -DPATHCONF_MISSING.
14755 * Makefile: Get rid of PATHCONF_MISSING.
14757 * refer/map.c: New file.
14758 * refer/index.c: Interface to mmap through map.c. Rename map_size
14760 * refer/Makefile: Handle map.c.
14761 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14763 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
14765 * Makefile: RANLIB should be `true' if there is no ranlib.
14766 * lib/Makefile (libgroff.a): Simplify.
14767 * driver/Makefile (libdriver.a): Simplify.
14769 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14770 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
14773 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
14775 * troff/env.c (compare_ranges): Declare as extern "C".
14777 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14779 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14781 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
14783 * pic/troff.c (troff_output::text): Merge in grops_output::text,
14784 but conditionalize use of \X based on \*(.T.
14785 (grops_output::*): Deleted.
14786 * pic/output.h: Delete declaration of make_grops_output.
14787 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
14788 by default. -n sets it to 0.
14789 (usage): Corresponding changes.
14790 * groff.c (main): Don't pass -x or -p to pic.
14791 * groff.sh: Likewise.
14793 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14796 * ps/devps/afmtodit: Change calculation of asc_boundary and
14797 desc_boundary. Make these bounds inclusive.
14798 * ps/devps: Regenerate font files.
14800 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
14802 * macros/tmac.latin1: New file.
14803 * macros/tmac.tty-char: Use tmac.latin1.
14804 (tmac.tty-tr): Deleted.
14805 * macros/Makefile: Install tmac.latin1.
14806 * macros/tmac.dvi: Use tmac.latin1.
14807 * macros/troffrc: Translate \[char160] onto no-break space here.
14808 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14810 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
14812 * macros/tmac.Xps: Use `do' request.
14814 * macros/tmac.ps: Use `do' request.
14816 * macros/tmac.e (@C): Use `do' request.
14818 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14819 * macros/Makefile: Install tmac.X*.
14821 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14822 * tty/Makefile: Don't install tmac.tty*.
14823 * macros/Makefile: Install tmac.tty*.
14825 * dvi/tmac.dvi: Move to macros.
14826 * dvi/Makefile: Don't install tmac.dvi.
14827 * macros/Makefile: Install tmac.dvi.
14829 * ps/tmac.ps*: Move to macros.
14830 * ps/Makefile: Don't install tmac.ps*.
14831 * macros/Makefile: Install tmac.ps*.
14833 * eqn/box.c: Provide draw_lines parameter corresponding to -D
14835 * macros/eqnrc: Set draw_lines parameter based on device.
14836 * groff.c: Don't pass -D flag to eqn.
14837 * groff.sh: Likewise.
14838 * eqn/main.c: Warn about use of -D.
14840 * troff/input.c (process_startup_file): New function.
14841 (main): Call process_startup_file().
14842 * macros/troffrc: New file.
14843 * macros/Makefile: Install troffrc.
14844 * groff.c (main): Don't pass extra -m option to troff. For a
14845 pseudo device pass the name of the pseudo device to troff using
14847 * groff.sh: Likewise.
14848 * groff.c (possible_command::prepend_arg): Deleted.
14850 * troff/input.c (do_request): New function.
14851 (init_input_requests): Bind "do" to do_request.
14853 * eqn/main.c (main): Instead of loading eqnchar from device directory,
14854 load eqnrc from macro directory.
14855 * macros/eqnrc: New file.
14856 * macros/Makefile: Install eqnrc.
14857 * ps/devps/eqnchar: Deleted.
14858 * ps/devps/Makefile: Don't install eqnchar.
14859 * dvi/devdvi/eqnchar: Deleted.
14860 * dvi/devdvi/Makefile: Don't install eqnchar.
14861 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14864 * lib/device.[ch]: New files.
14865 * lib/font.h (font::set_device_name, font::get_device_name):
14867 * lib/fontfile.c: Use device.h.
14868 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14869 * troff/input.c: Delete definition of `device'.
14870 (main): Don't initialize device.
14871 * troff/troff.h: Include device.h rather than declaring device.
14872 * troff/Makefile: No need to handle DEVICE.
14873 * driver/input.c: Include device.h. Don't use
14874 font::{set,get}_device_name.
14875 * groff.c, Makefile: Rename device.h to config.h.
14876 * groff.c: Use library device variable.
14877 * eqn/main.c: Use library device variable.
14878 * eqn/Makefile: No need to handle DEVICE.
14880 * lib/searchpath.[ch]: New files.
14881 * lib/Makefile: Handle searchpath.[ch].
14882 * troff/input.c (open_file, init_dirs): Deleted.
14883 (macro_dirs): Deleted.
14884 (open_mac_file, macro_source): Use class search_path.
14885 (add_string, struct string_list): Move definition.
14886 (main): Change -M option to use macro_path. Delete call to
14888 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14889 Rewrite to use class search_path.
14890 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14891 * lib/Makefile: fontfile.c depends on searchpath.h.
14892 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14894 * lib/macropath.[ch]: New files.
14895 * troff/Makefile: No need to handle MACROPATH.
14897 * troff/input.c: Delete DUMP code.
14898 * lib/fontfile.c, lib/font.h: Delete
14899 font::forget_command_line_font_dirs.
14901 * troff/input.c (push_token): New function.
14902 (handle_first_page_transition): Use push_token().
14903 (process_input_stack): Change handling of a space at the beginning
14906 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
14908 * troff/input.c (font_dirs): Delete unused variable.
14910 * eqn/lex.c (do_set): Correct error messages.
14912 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
14914 * troff/input.c (do_define_string): Allow the string name to be
14915 followed immediately by a tab.
14916 (define_character): Likewise.
14918 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
14920 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14923 * troff/input.c (input_iterator::is_file): New virtual function.
14924 (file_iterator::is_file): New function.
14925 (input_stack::end_file): New function.
14926 (input_stack::next_file): Handle the situation where there is no
14927 file on the input stack correctly. Avoid making two passes over
14929 (next_file): Make the filename optional; in this case call
14930 input_stack::end_file().
14932 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
14934 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14935 produce a real _ charater when the current font is CW and _
14938 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14939 expression to work around gcc 2.2 bug.
14941 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
14943 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14945 * troff/env.c (environment::add_padding): New function.
14946 (environment::add_char): Use add_padding().
14947 (environment::space): Likewise.
14948 (environment::wrap_up_field): Add some padding if there is none
14949 and there's no current tab.
14950 * troff/env.h: Declare environment::add_padding.
14952 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
14954 * pic/pic.y: undef fmod and rand before declaring them.
14956 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
14958 * troff/input.c (main): If the DESC file specifies a font name of
14959 0, then leave the corresponding font position empty.
14961 * nroff.sh: New file.
14962 * Makefile (install.nobin): Install nroff.sh.
14964 * tty/devlatin1/R.proto: Add ao as synonym for de.
14965 * tty/tmac.tty-char: Define ao as o.
14967 * tty/dev{ascii,latin1}/R.proto: Add aq.
14968 * tty/tmac.tty-char: Delete definition of aq.
14970 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
14972 * troff/input.c (init_charset_table): Don't translate 0240.
14973 * ps/tmac.ps: Translate char160 to space.
14974 * dvi/tmac.dvi: Likewise.
14975 * tty/tmac.tty: Likewise.
14977 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
14979 * dvi/tmac.dvi: Add support for all Latin-1 characters.
14981 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14982 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14985 * tty/tmac.tty-char: Add \(ah.
14987 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14988 No need to define \(FM and \(!/. Conditionalize all character
14991 * ps/devps/lgreekmap: Add +h, +f, +p.
14993 * ps/tmac.psnew: New file.
14994 * ps/Makefile: Install tmac.psnew.
14996 * troff/input.c (charinfo_to_node_list): Don't ever interpret
14997 character definitions in compatible mode.
14999 * troff/input.c (remove_character): New function.
15000 (init_input_requests): Bind remove_character to "rchar".
15002 * ps/tmac.psold: New file.
15003 * ps/Makefile: Install tmac.psold.
15004 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
15005 characters into tmac.psold. Make these definitions unconditional.
15007 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
15009 * ps/tmac.ps: Don't define \('c and \('C.
15011 * ps/devps/textmap: Move Greek characters to...
15012 * ps/devps/symbolchars:
15014 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
15016 * ps/devps/text.enc: Add quotesingle.
15017 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
15018 * tty/tmac.tty-char: Likewise.
15019 * dvi/devdvi/texmi.map: Add +h, +f, +p.
15020 * dvi/devdvi/texi.map: Add Fn.
15021 * dvi/devdvi/msam.map: Add lz.
15022 * dvi/tmac.dvi: Handle Bq, bq, aq.
15024 * pic/lex.c (get_token): Recognize 'th.
15025 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
15027 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
15029 * ps/devps/textmap: Move di, mu, +- to...
15030 * ps/devps/symbolchars:
15032 * macros/tmac.s (@XS): Don't call par@reset or fi.
15033 (XA): Call LP. Turn off adjustment. Reduce line length.
15035 * macros/tmac.s: Initially alias XS to LP.
15036 (XS): Rename to @XS.
15037 (cov*ab-init): Alias XS to @XS.
15039 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
15041 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
15042 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
15043 (token::is_size, token::changes_env): Deleted.
15044 * troff/number.c (parse_term): No need to process \s explicitly.
15045 Call tok.next() only after scale indicator has been processed.
15046 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
15048 (token::next): Handle \s, \f, \S, \H immediately rather than
15049 returning them as tokens.
15050 (token::operator==, token::description, token::add_to_node_list,
15051 token::process): Remove handling of deleted tokens.
15053 * troff/env.c (environment::add_char): When adding padding
15054 indicator character, call start_line() if necessary.
15056 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
15058 * ps/devps/afmtodit: Don't output 0 kerns.
15060 * ps/devps/afmtodit: Remove directory from name of encoding in
15061 font description file.
15063 * ps/devps/afmtodit: Improve error messages.
15065 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
15067 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
15068 * ps/devps/FontMakefile: Deleted.
15069 * ps/devps/afmname: New file.
15071 * ps/devps/symbol.sed: New file.
15072 * ps/devps/symbol.diff: Deleted.
15073 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
15074 Generate zapfdr.afm from zapfd.afm.
15076 * tty/tmac.tty (tty-char): Prefix definition with ".
15078 * macros/tmac.an (TP): Don't start a diversion if one has already
15081 * tty/tmac.tty-char: Add Latin-1 characters.
15083 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
15085 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
15087 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
15088 Move declaration of struct horizontal_span.
15090 * tbl/table.c (table::table): Initialize span_list.
15091 (table::~table): Delete span_list.
15093 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
15095 * ps/devps/Makefile: Avoid dependency on GNU make.
15097 * ps/tmac.ps: Check that character does not already exist before
15100 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
15101 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
15102 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
15105 * tty/tmac.tty-char: New file.
15106 * tty/Makefile: Install tmac.tty-char.
15107 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
15110 * tty/tmac.tty: Fix definition of \(34.
15112 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
15113 bracket-drawing characters onto |. Add *o.
15115 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
15116 only if current_field.
15118 * troff/dictionary.c (dictionary::lookup): Free old_table after
15121 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
15123 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
15124 whose glyphs are identical to glyphs of some Roman character.
15126 * tty/devlatin1/R.proto (bu): Deleted.
15127 * tty/devascii/R.proto (bu): Deleted.
15128 * tty/tmac.tty: Add definition of \(bu.
15130 * eqn/main.c (do_file): Pass FILE as argument.
15131 (main): Automatically load eqnchar. New options -F and -n.
15132 Pass do_file an opened FILE.
15133 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
15134 No need to include font.h.
15135 * groff.sh: Likewise. Don't need to use - for standard input.
15136 Prefix files with -- if first file starts with -.
15138 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
15140 * troff/env.c (environment::possibly_break_line): Don't set line
15141 to 0 across call to output_line(). Don't call output_line() until
15142 after discarding nodes after break.
15144 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
15146 * request.h (macro::empty): Declare it.
15147 * input.c (macro::empty): New method.
15148 (interpolate_macro): Don't give a WARN_SPACE if the two-character
15151 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
15153 * troff/env.c (environment::start_field): Decrement space_total
15154 when a space is frozen.
15156 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
15158 * macros/tmac.an (R): Delete macro.
15160 * troff/input.c (get_copy, token::next): Support \# (like \" but
15161 newline is ignored).
15163 * troff/input.c (token::next): Fix error message in 'Y' case.
15165 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
15167 * eqn/delim.c (define_extensible_string): Recognize any prefix of
15170 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
15172 * c++test.c: Include <osfcn.h>.
15174 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
15177 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
15179 * tbl/table.c (table::divide_span): Don't count column separation
15180 if expand was specified.
15182 * tbl/main.c (process_format): Don't ignore width specs in
15183 continued format. Give warning for changing equal widths or
15184 column separation in continued format.
15185 (process_data): Set column separation, minimum width, equal
15186 columns at end of table.
15188 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
15190 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
15191 node::add_discretionary_hyphen): Use soft_hyphen_char.
15192 (set_soft_hyphen_char): New function.
15193 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
15195 * Makefile (c++tested): Give more helpful message if test fails.
15197 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
15199 * troff/input.c (init_charset_table): Translate 0240 to
15200 an unbreakable space.
15202 * troff/token.h (token::hyphen_indicator): New function.
15203 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
15205 * troff/input.c (translate): Allow translation to \%.
15206 * troff/node.c (node::add_char): Handle
15207 TRANSLATE_HYPHEN_INDICATOR.
15208 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
15210 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
15213 * tty/devlatin1/R.proto: \(hy and - should print as 055.
15215 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
15217 * groff.c (run_commands): If the last command gets a SIGPIPE send
15218 a SIGPIPE to all children than haven't yet terminated. When
15219 command terminates, set pid field to -1.
15221 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
15223 * groff.c (main): Pass an appropriate -filename option to gxditview.
15225 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
15227 * Makefile.bd (install): Remove existing program before copying.
15229 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
15230 programs which have Unix counterparts to be installed with
15231 user-specified prefix.
15233 * troff/input.c (exit_troff): Don't check if exit_started.
15234 (exit_request): Don't call exit_troff if exit_started.
15236 * Makefile.bd (install.mm): Rename to install.dwbmm.
15238 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
15240 * driver/input.c (do_file): Add missing break for '#' case.
15242 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
15244 * troff/input.c (input_stack::clear): Clear past any boundaries and
15245 then add the boundaries back.
15247 * troff/input.c (exit_troff): Return immediately if already
15250 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
15252 (pg*end-page): If the text has ended and there are no more
15253 footnotes or keeps, exit.
15255 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
15257 * troff/input.c (init_charset_table): Make \(rq transparent by
15260 * macros/tmac.an: Define lq and rq strings.
15262 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
15264 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
15266 * troff/env.c (environment::final_break): New function.
15267 (environment::newline): Set prev_line_interrupted to 2 if
15269 * troff/env.h: Declare environment::final_break.
15270 * troff/input.c (exit_troff): Call environment::final_break()
15271 instead of environment::do_break().
15273 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
15274 doesn't already exist.
15275 * macros/man.local: New file.
15276 * macros/tmac.an: Load man.local.
15277 * macros/man.ultrix: New file.
15279 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
15281 * troff/input.c (exit_groff): Rename to...
15282 (exit_troff): New function.
15284 * troff/div.c (exit_started, done_end_macro,
15285 seen_last_page_ejector): New global variables.
15286 (began_page_in_end_macro): New static variable.
15287 (exit_flag): Deleted.
15288 (top_level_diversion::top_level_diversion): Initialize
15290 (top_level_diversion): More elaborate test for whether
15291 cleanup_and_exit() should be called.
15292 Set began_page_in_end_macro if the end macro isn't yet finished.
15293 * troff/div.h (top_level_diversion::last_page_count): New data
15295 (top_level_diversion::set_last_page): New function.
15296 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
15297 * troff/env.c (do_break): Zero prev_line_interrupted.
15298 * troff/input.c (exit_flag): Delete declaration.
15299 (LAST_PAGE_EJECTOR): New magic cookie.
15300 (token::next): Handle LAST_PAGE_EJECTOR.
15301 (exit_groff): Set exit_started and done_end_macro instead of
15302 exit_flag. Call top_level_diversion::set_last_page. Push a
15303 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
15304 another ejection after setting seen_last_page_ejector.
15306 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
15308 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
15310 * macros/tmac.e (TH): Make sure there's room for the initial
15313 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
15314 Set FVS in points rather than units.
15316 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
15318 * troff/div.c (top_level_diversion::add_trap): Don't consider the
15319 position of empty slots.
15321 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
15323 * ps/devps/S: Fix height and depth of parenrightex.
15324 * ps/devps/symbol.diff: Regenerate.
15326 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
15328 * tmac.e (u): Do underlining as in -mgs.
15330 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
15332 * tty/tty.c (tty_printer::end_page): If overstriking is
15333 suppressed, still turn overstruck horizontal and vertical lines
15336 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15339 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15341 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
15343 * Version 1.05 released.
15345 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
15347 * tty/tty.c: Instead of keeping an array of glyphs and then
15348 sorting it, keep a ordered linked list of glyphs for each line.
15350 * driver/driver.h: Include stddef.h.
15352 * tty/tty.c (compare_glyph):
15353 * refer/refer.c (rcompare):
15354 * troff/env.c (compare_ranges): Arguments of qsort comparison
15355 function should be const void *.
15357 * troff/number.c (parse_term):
15358 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15361 * refer/label.y (consider_authors): Don't access variables
15362 constructed under a condition outside that condition: put braces
15363 round for statement containing declaration; redeclare use of same
15366 * pic/pic.y (text_expr): Delete production that allows
15367 parenthesised text_expr.
15368 (expr): Allow a conditional_expr to appear in parentheses.
15369 (conditional_expr): Rename to any_expr.
15371 * mm: Install new version 1.01 from jh.
15373 * lib/font.c (font::get_width): Cache scaled widths.
15374 (font::font): Initialize widths_cache.
15375 (font::~font): Destroy widths_cache.
15376 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15378 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
15380 * c++test.c, c++test.ref: New files.
15381 * Makefile: Check that the C++ compiler works.
15383 * ps/tmac.pspic (PSPIC): Do a break.
15385 * ps/tmac.ps: Move definition of PSPIC into...
15386 * ps/tmac.pspic: New file.
15387 (PSPIC): Draw box around picture, but make it invisible to grops.
15388 * ps/tmac.ps: Load tmac.pspic.
15389 * ps/Makefile: Install tmac.pspic.
15391 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
15393 * lib/font.c (scale_round): If n is negative,
15394 subtract .5 before truncating floating point result.
15396 * lib/fontfile.c: Include <errno.h>.
15398 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
15400 * driver/input.c (get_char): Inline. Don't update current_lineno.
15401 Change callers to up date current_lineno if necessary.
15402 Use get_char() instead of getc(current_file).
15404 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
15406 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15408 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
15410 * tty/tty.c (tmac.tty): Define \(rg as (R).
15412 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
15414 * lib/lib.h: New define a_delete.
15415 * Use a_delete instead of delete when deleting an array of objects
15416 without destructors.
15418 * lib/lib.h: Rename adelete to ad_delete.
15419 * Change uses of adelete.
15421 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
15423 * eqn/eqn.y: Include lib.h.
15425 * troff/node.c (grow_font_table): Delete old_font_table.
15427 * mm: Install new version from jh.
15429 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
15431 * tbl/table.h (format_type): Make global instead of local to class
15432 entry_format. Prefix enumerators with FORMAT_.
15433 * tbl/table.c, tbl/main.c: Corresponding changes.
15434 * refer/token.h (token_type): Make global. Prefix enumerators
15436 * refer/token.[ch]: Corresponding changes.
15437 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15439 * troff/div.c (node::set_vertical_size): Don't name argument.
15441 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
15443 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15444 * lib/lib.h: Define adelete accordingly.
15445 * pic/object.c (graphic_object::graphic_object):
15446 * tbl/main.c (format::~format):
15447 * tbl/table.c (table::~table):
15448 * refer/ref.c (reference::~reference, reference::merge,
15449 reference::insert_field, reference::delete_field): Use adelete.
15451 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15453 * tbl/table.h: Corresponding changes.
15455 * common.c (common_output::dashed_arc, common_output::dotted_arc):
15456 Ensure total_angle is positive.
15458 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
15460 * refer/ref.c (reference::merge, reference::insert_field,
15461 reference::delete_field): Avoid delete[0].
15463 * refer/token.c (init_special_chars): Move calls to cmupper
15464 outside calls to init_two_char_letter to work around bug in gcc
15467 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
15469 * lib/new.c (operator new): Use __builtin_new for g++.
15471 * pic/object.c (graphic_object::~graphic_object): Don't use
15474 * pic/object.c (output::compute_scale): Initialize max_width and
15477 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
15479 * troff/input.c (write_request): Call fflush.
15481 * troff/node.h (class composite_node): Move declaration to node.c
15482 * troff/input.c (charinfo_to_node): Rename to ...
15483 (charinfo_to_node_list): Return node list rather than composite
15485 * troff/node.c (make_composite_node): New function.
15486 (make_node, add_char): Call make_composite_node instead of
15488 (class composite_node): Add a tfont * member. Delete font_size
15490 (composite_node::composite_node, composite_node::copy,
15491 composite_node::size): Corresponding changes.
15492 (composite_node::tprint): Provide constant spacing, emboldening
15493 and track kerning as specified in tfont.
15494 (composite_node::width): Change width calculation accordingly.
15495 * troff/env.h (environment::composite): New member.
15496 (environment::is_composite, environment::set_composite): New
15498 * troff/env.c (environment::environment): Initialize composite.
15499 * troff/input.c (charinfo_to_node): Call
15500 environment::set_composite.
15501 * troff/node.c (make_composite_node, make_glyph_node): Use the
15502 plain version of the tfont if the environment is composite.
15504 * troff/node.c (font_info::get_space_width): Additional argument
15505 giving space_size. Handle constant space correctly. Scale by
15506 space_size unless constant spaced.
15507 (env_sentence_space_width): New function.
15508 * troff/node.h: Declare it.
15509 * troff/env.h (environment::get_space_size,
15510 environment::get_sentence_space_size,
15511 environment::get_narrow_space_width,
15512 environment::get_half_narrow_space_width): Make inline.
15513 (environment::get_space_width): Make inline. Just call
15515 * troff/env.c: Delete definitions for funtions made inline.
15516 (environment::space_newline, environment::space): Use
15517 env_sentence_space_width(). Don't scale by space_size.
15518 * troff/node.h: Move declarations of env*space_width() functions
15521 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
15523 * macros/tmac.s (PS): Don't try to set negative indent.
15525 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
15527 * pic/pic.y: Fix min function.
15529 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
15531 * man/mdate.sh: Clear LANGUAGE.
15533 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
15535 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15536 * pic/lex.c: New COMMAND keyword.
15537 * pic/pic.y (print_args, print_arg): New rules.
15538 (placeless_element): Use print_args for PRINT.
15539 New COMMAND element.
15541 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
15543 * troff/input.c (terminal): Handle missing argument correctly.
15545 * pic/pic.y (text_expr): New rule.
15547 * pic/pic.y: Implement := operator.
15549 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
15551 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15554 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
15556 * ps/devps/dingbatsrmap: Include this in the distribution.
15558 * macros/tmac.doc: Replace with new version from 2nd Networking
15559 Release. Fix loading of doc-* files.
15560 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15561 * macros/tmac.doc.old: New file. Apply fixes that had been
15562 applied to old tmac.doc.
15563 * macros/tmac.andoc: Check that we're running under groff.
15564 * macros/Makefile: Rework.
15566 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
15568 * tbl/table.h (format_type):
15569 * refer/token.h (token_type): If NESTED_TYPES is defined, use
15570 typedef to make these types visible at file scope.
15571 * Makefile: Add NESTED_TYPES configuration option.
15573 * troff/div.c (mark): At the top level use the value of
15574 nl_reg_contents rather than the current vertical position.
15576 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
15578 * tty/tty.c: Implement \D for horizontal or vertical lines.
15579 (tty_printer::set_char): Use vec_used+2 as serial number.
15580 Don't allow size of vector to exceed USHRT_MAX-2.
15581 Split off part into...
15582 (tty_printer::add_char): New function.
15583 (tty_printer::draw): New function.
15584 (compare_glyph): Handle equal serial numbers.
15585 (tty_printer::end_page): Handle overstruck characters from \D.
15586 (main, usage): Implement -d option.
15588 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
15590 * tbl/main.c (process_format):
15591 * eqn/text.c (split_text):
15592 * troff/input.c (token::next): Use inner block for declarations
15593 with initializers in switch statement.
15595 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
15597 * pic/common.c (common_output::dash_line): Cope with zero-length
15600 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
15602 * Version 1.04 released.
15604 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
15606 * macros/tmac.an (TH): Define a macro an-init to define variables
15607 based on command line arguments.
15608 (an-header): Call it.
15610 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
15612 * Makefile (install.mm): Rename to install.dwbmm.
15614 * Makefile: Integrate mm.
15615 * mm: New directory.
15617 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
15619 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15622 * pic/troff.c (troff_output::simple_spline,
15623 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15624 shadowing parameter.
15626 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15628 * lib/ptable.h: Add explicit casts when converting from unsigned
15631 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15632 * dvi/devdvi/Makefile: Install SA, SB.
15634 * refer/indxbib.c: Add declaration of mktemp.
15636 * refer/lookbib.c: Add declaration of isatty.
15638 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
15640 * pic/lex.c (interpolate_macro_with_args): While collecting
15641 arguments, keep track of whether we're in a string.
15643 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
15645 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15646 down with \v, so as to avoid problems with top of page trap
15647 setting no space mode.
15649 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
15651 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15653 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
15655 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15656 Improve error message.
15658 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
15660 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15663 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
15665 * groff.c (possible_command::execp): Always use _exit() after a
15668 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15669 NO_SYS_WAIT_H configuration options.
15670 * groff.c: Use these options. Use POSIX-style macros to extract
15671 fields from the status returned by wait().
15673 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
15675 * tbl/table.c (table::compute_separation_factor): Allow the
15676 separation factor to drop to 0.
15678 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
15680 * refer/search.c: Include <errno.h>.
15682 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
15684 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15686 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15689 * pic/lex.c (input_stack::bol): Move definition out of class body.
15691 * pic/main.c: On MSDOS munge argv[0].
15693 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15695 * lib/ptable.c (hash_string): Use unsigned long rather than
15697 (next_ptable_size): Use unsigned rather than int. Give an error
15698 message if we've hit the largest table size.
15699 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
15702 * pic/object.h (object_spec): Make flags unsigned long. Declare
15703 flags as const unisgned long rather than as enums.
15705 * pic/output.c: Deleted.
15707 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15709 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15710 Add additional argument.
15711 (line_entry::note_double_vrule_on_{left,right}): Set value of
15712 douvle_vrule_on_{right,left} flag according to argument.
15713 (simple_line_entry::simple_print,
15714 simple_line_entry::double_line_print): If adjacent to double vrule
15715 on a corner extend rather than shorten the rule by half the double
15718 * troff/number.c (parse_term): In checking for overflow, handle the
15719 case where the current horizontal position is negative.
15721 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
15723 * pic/object.c (draw_arrow): Check for object having zero length.
15725 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
15727 * eqn/main.c (do_file): Split off inline equation handling into...
15728 (inline_equation): New function. Search for starting delimiter
15730 (delim_search): New function. Don't recognize a delimiter that
15731 occurs in the name of an escape sequence, number register, string
15734 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
15736 * eqn/delim.c (delim_box::compute_metrics): Don't call
15737 define_extensible_string if left is 0.
15738 (delim_box::output): Don't print the left delimiter if left is 0.
15739 (delim_box::debug_print): Check for left == 0 before calling printf.
15741 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
15743 * troff/Makefile (majorminor.c): Include only digits in
15746 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
15748 * refer/dirnamemax.c: new file.
15749 * refer/genlimits.c: Deleted.
15750 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15751 Don't check path length.
15752 * refer/Makefile: Add dir_name_max.o; delete genlimits.
15753 * Makefile: Add PATHCONF_MISSING option.
15755 * refer/indxbib.c (get_cwd): New function.
15756 (main): Use get_cwd().
15757 * lib/getcwd.c: New file.
15758 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15759 GETCWD in SUBFLAGS.
15760 * lib/Makefile: Compile getcwd.o.
15762 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15765 * refer/indxbib.c (main): Check success of mktemp.
15767 * lib/tmpfile.c: New file.
15768 * lib/Makefile: Add tmpfile.c.
15769 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15770 * ps/ps.h: Delete declaration of mktemp().
15771 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15772 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15773 * driver/driver.h: No need now to include errno.h.
15775 * everywhere: Set errno to 0 before calling fopen().
15777 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15778 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15779 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15781 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
15783 * troff/env.h (translate_space_to_dummy): Declare it.
15784 * troff/env.c (environment::space_newline, environment::space):
15785 If translate_space_to_dummy is set then make the width of spaces 0.
15786 * troff/input.c (translate): If the second character of a
15787 translation is a space, translate to unbreakable space. If the
15788 first character is a space, set or clear translate_space_to_dummy
15789 according to whether the second character is \&. Weird!
15791 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
15793 * groff.c (run_commands): Don't use non-zero exit code because a
15794 command gets SIGPIPE.
15796 * groff.c, groff.sh: Use -mXps with -TXps.
15798 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15799 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15800 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15801 (ps_printer::special): New specials invis and endinvis.
15802 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15803 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
15804 (ps_printer::end_page): Check that invis_count == 0.
15805 (ps_printer::invis_count): New member.
15806 (ps_printer::ps_printer): Initialize invis_count to 0.
15808 * troff/env.c (environment::hyphenate_line): Hyphenation
15809 indicator at beginning of word inhibits splitting after -, \(em
15812 * pic/pic.y (element): Allow another element to follow } without
15813 any intervening separator.
15815 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
15817 * pic/lex.c (get_delimited): Allow tabs before delimiter.
15819 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
15821 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
15822 declaration of wait() in header files.
15823 * Makefile: Get rid of -DHAVE_UNION_WAIT.
15825 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15827 * lib/lib.h: Declare return type of strerror as char *.
15829 * man/Makefile: Add g flag to sed substitutions.
15830 * Makefile (shgroff, bindist): Likewise.
15832 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
15834 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15835 * ps/devps/prologue (PBEGIN): Define showpage after pushing
15838 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
15840 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15843 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
15845 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15848 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
15850 * troff/input.c (define_number_reg): If currently undefined,
15851 don't define it if the argument is an invalid expression.
15853 * Makefile: Ignore return value of `if' commands without `else'
15856 * Makefile: Split up CPPDEFINES into a series of separate
15857 configuration options.
15859 * troff/input.c (init_registers): Use time_t instead of long
15860 unless LONG_FOR_TIME_T is defined. Use returned result rather
15861 than passing pointer.
15862 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15864 * lib/Makefile (fontpath.h): Use gendef.
15866 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
15868 * troff/input.c (input_iterator::shift): Delete argument name.
15869 * troff/node.c (suppress_output_file::really_begin_page,
15870 suppress_output_file::really_transparent_char, node::ascii_print,
15871 node::tprint): Delete names of unused arguments.
15873 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
15875 * refer/label.y (string): Pass $4 to command_error.
15877 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
15879 * Version 1.03 released.
15881 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
15883 * Makefile: Pass definition of SHELL in SUBFLAGS.
15885 * gendef: New file.
15886 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15887 ps/Makefile: Use gendef to construct header files that are
15888 constructed from the Makefile.
15890 * macros/Makefile: make all should build stripped version of tmac.e.
15892 * refer/Makefile (clean): Remove y.output.
15894 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
15896 * ps/pfbtops.c (main): Add -v option which prints out a version
15898 * ps/Makefile (pfbtops): Link with libgroff.a.
15900 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
15902 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15903 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15905 * refer/lkbib.c (main): Always terminate reference with blank
15907 * refer/lookbib.c (main): Likewise.
15909 * refer/linear.c (file_buffer::load): Check that the file is not a
15912 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15913 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15914 Delete second inclusion of <sys/param.h>.
15916 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
15918 * troff/token.h (token::special): Deleted.
15920 * tbl/main.c (process_format): Rework so that opt->tab_char is
15921 recognized only when appropriate.
15923 * ps/Makefile (clean): Remove pfbtops.
15925 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
15927 * lib/font.c (text_file::next): Don't return if we have got a
15930 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
15932 * refer/refer.c (store_reference): Get hash code from old_table[i]
15933 when rehashing the table.
15935 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
15937 * eqn/box.c (box::top_level): Save size and prev size using \R and
15938 restore it afterwards. Set the size to the size at the beginning
15940 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15941 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15943 * refer/Makefile (limits.h): Use ./genlimits.
15945 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
15947 * refer/index.c: Delete declarations of stat() and fstat().
15949 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
15951 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15953 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
15955 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15957 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
15959 * troff/input.c (token::get_char): Handle \e.
15961 * refer/linear.c: Delete declarations of fstat() and stat().
15963 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
15965 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15966 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15968 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
15970 * troff/input.c (do_define_macro): Improve error handling for end
15971 of file while defining macro.
15973 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
15975 * eqn/box.h: Fix declaration of set_gsize.
15976 * eqn/box.c (set_gsize): Make argument const char *.
15977 (gsize): Declare as char *.
15978 * eqn/main.c (main): Don't convert gsize to int.
15979 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15981 * Version 1.02 released.
15983 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
15985 * macros/tmac.andoc: New file.
15986 * macros/Makefile: Install tmac.andoc.
15988 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15989 operator new and delete on OP_DELETE_BROKEN not being defined.
15990 * Makefile: Mention OP_DELETE_BROKEN.
15992 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
15994 * Makefile (bindist): Pass SUBFLAGS.
15996 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
15998 * Makefile, groff.c: Pass definitions to groff.c via device.h.
16000 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
16003 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
16005 * ps/ps.h, ps/psrm.c: Make comment_table and
16006 header_comment_table local to resource_manager::process_file.
16008 * groff.sh: With -TXps pass -printCommand option to gxditview.
16010 * groff.c (possible_command::print): Implement using
16011 append_arg_to_string.
16013 * xditview: Merge in new implementation with own ChangeLog.
16015 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
16017 * groff.c (main): Implement PRINT_OPTION.
16018 (append_arg_to_string): New command.
16019 (device_table): Set PRINT_OPTION flag for Xps.
16021 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
16023 * troff/groff.h: Rename to troff.h.
16025 * pic/lex.c (lookup_keyword, docmp): New functions.
16026 (get_token): Use new lookup_keyword.
16027 Don't include key.h.
16028 * pic/key.[ch], pic/pic.gperf: Deleted.
16029 * pic/Makefile: Remove gperf stuff.
16031 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
16033 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
16035 * troff/Makefile, troff/node.c: Move definition of
16036 STORE_WIDTH into node.c.
16038 * etc/grog.pl, etc/grog.sh: Support -mdoc.
16040 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
16042 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
16043 dvi/devdvi/texb.map: Add lq and rq.
16044 dvi/devdvi: Regenerate fonts.
16045 * ps/devps/textmap: Add lq and rq.
16046 * ps/devps: Regenerate fonts.
16047 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
16048 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
16050 * pic/object.c (position_rectangle): When checking radius
16051 cope with possiblity that width or height is negative.
16052 (box_object::box_object): Have separate xrad and yrad with
16053 signs matching signs of dim components.
16054 (box_object::{north,south}_{east,west}): Use xrad and yrad.
16055 (box_object::print): With rounded boxes use absolute values
16056 for dim and rad arguments.
16058 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
16061 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
16063 * various files: Add explicit destructors to keep Saber CC +d
16066 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
16068 * eqn/box.c (box::top_level): Restore fonts correctly after
16069 font changes in line containing inline equation. Also
16070 restore previous font as well as current font.
16071 * eqn/pbox.h: Define necessary string and register names.
16073 * troff/input.c (token::next): Case 'R' calls do_register.
16074 (do_register): New function.
16076 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
16078 * groff.c, groff.sh: Support Xps device. Allow each device
16079 to have a pseudo_name and a real_name.
16081 * groff.c (run_commands): Don't print `Broken pipe' messages.
16083 * ps/pfbtops.c: New file.
16084 * ps/Makefile: Add pfbtops.
16086 * troff/number.c (parse_term): Improved error message.
16088 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
16090 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
16092 * Makefile: Integrate refer.
16093 * refer: New directory.
16094 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
16095 man/lkbib.man: New files.
16096 * man/Makefile: Support refer man pages.
16098 * lib/lib.h: Declare is_prime.
16099 * lib/prime.c: New file.
16101 * troff/input.c (macro_source): New function.
16102 (init_input_requests): Bind "mso" to macro_source.
16104 * troff/env.c (environment::possibly_break_line): Maintain
16105 pointer to pointer to node to be split in ndp so as to avoid
16106 using address of freed node.
16108 * troff/env.c (environment::hyphenate_line): Maintain pointer to
16109 pointer to first node to be hyphenated in startp so as to
16110 avoid using address of freed node.
16112 * troff/env.c (class trie, class hyphen_trie): Make the
16113 elements of the trie be of type char not unsigned char.
16114 Declare arguments to be const char* instead of unsigned char *.
16116 * troff/env.c (hyphenate): Initialize hbuf[0].
16118 * troff/input.c (set_string): Declare p to be char * and cast
16119 *p to unsigned char when necessary.
16121 * troff/input.c (do_define_macro): Declare s to be const
16122 char*. Cast element to unisgned char when necessary, Declare
16123 d to be an int. Handle EOF better.
16125 * troff/Makefile, troff/input.c: Different scheme for passing
16126 definitions of MACROPATH, HYPHENFILE and DEVICE.
16128 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
16130 * tty/devascii/R.proto: Delete entry for em.
16131 * tty/devlatin1/R.proto: Likewise.
16133 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
16135 * troff/input.c (translate): Stop when we get a space. Treat eof
16138 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
16140 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
16142 * tbl/main.c (process_format): A font name following a `f'
16143 modifier that starts with a digit can be only one character long.
16144 Also deal with EOF on the second character of the font name.
16146 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
16148 * troff/input.c (token::next): Turn \~ into an
16149 unbreakable_space_node.
16150 * troff/node.c (unbreakable_space_node): New class.
16151 * troff/node.h: Declare it.
16153 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
16155 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
16156 it's >= 0, before outputting it as a single byte.
16158 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
16160 * lib/font.c: Make font_char_metric::code an int.
16161 (font::get_code): Change return type to int.
16162 (font::load): Allow code to be arbitrary integer.
16163 * lib/font.h (font::get_code): Change return type to int.
16164 (font::number_to_index): Change argument type to int.
16165 * troff/input.c (token::next): In case 'N', allow any value.
16166 Store value in token::val.
16167 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
16168 (token::get_char, token::add_to_node_list, token::process): Get
16170 (charinfo::set_number): Change argument to int.
16171 (charinfo::get_number): Require that NUMBERED flag be set.
16172 (get_charinfo_by_number): Store numbered characters not between 0
16173 and 255 in a dictionary.
16174 * troff/charinfo.h (get_charinfo_by_number): Change argument type
16176 (charinfo::number): Change type to int.
16177 (charinfo::set_number): Change type of set_number to int.
16178 * troff/node.c (troff_output_file::put_char_width,
16179 troff_output_file::put_char): Test whether character is numbered
16180 using charinfo::numbered().
16181 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
16183 * lib/nametoindex.c: New implementation to cope with arbitrary
16186 * troff/input.c (token::operator==): Test val for
16187 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
16190 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
16191 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
16193 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
16195 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
16198 * all Makefiles: rm targets of cp and >.
16200 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
16203 * eqn/lex.c (def_table): Add dollar.
16205 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
16207 * troff/input.c (do_width): Push back newline before closing delim
16210 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
16212 * groff.c (possible_command::prepend_arg): New function.
16213 (main): Prepend device -m option.
16214 * groff.sh: Put device -m options before command-line options.
16216 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
16218 * macros/tmac.an (IP): Quote argument to TP.
16220 * ps/ps.c (main): New option -b, which sets...
16221 (broken_flags): New variable.
16222 (ps_printer::~ps_printer): Incorporate the setup section in the
16223 prolog if (broken_flags & NO_SETUP_SECTION).
16224 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
16225 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
16226 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
16227 ps_printer::print_needed_font_comment,
16228 ps_printer::print_supplied_font_comment,
16229 ps_printer::print_include_font_comments,
16230 ps_printer::lookup_doc_font, ps_printer::download_fonts,
16231 ps_printer::read_download_file, read_document_fonts, add_font,
16232 skip_line, parse_fonts_arg, document_font::document_font,
16233 document_font::~document_font, document_font::download,
16234 ps_output::include_file): Deleted.
16235 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
16236 rather than %!PS-Adobe-2.0. Make calls to
16237 resource_manager::need_font for each font that we used. Replace
16238 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
16239 print_supplied_font_comment, print_needed_font_comment by call to
16240 resource_manager::print_header_comments. Output %%Orientation
16241 comment. Output %%Requirements: numcopies comment if ncopies > 1.
16242 Don't output the prolog directly. Instead call
16243 resource_manager::output_prolog. Only define #copies when ncopies
16244 > 1. Delete calls to print_include_font_comments and
16245 download_fonts. Add call to resource_manager::document_setup.
16246 (ps_printer::do_file): Call resource_manager::import_file instead
16247 of including it ourselves.
16248 (ps_printer::do_import): Likewise. Also don't call
16249 merge_import_fonts. Push userdict on the dictionary stack before
16250 and pop it afterwards.
16251 Move declaration of ps_output into ps.h.
16252 * ps/psrm.c: New file implementing resource_manager class.
16253 * ps/ps.h: New file declaring ps_output and resource_manager
16255 * ps/devps/zapfdr.ps:
16256 * ps/devps/symbolsl.ps:
16257 * ps/devps/prologue: Use 3.0 conventions.
16258 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
16259 Add default definition of BROKEN_SPOOLER_FLAGS.
16260 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
16261 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
16263 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
16265 * etc/grog.pl: New file.
16266 * Makefile (GROG): New variable.
16267 Add GROG to SUBFLAGS.
16268 * etc/Makefile (GROG): New variable.
16269 (install.nobin): Install $(GROG) rather than grog.sh.
16271 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
16273 * eqn/special.c (special_box::compute_metrics): Make the input and
16274 output strings the same. Get the new height and depth from the
16275 predefined height and depth registers. Also make subscript kern
16276 and skew available.
16277 (special_box::compute_subscript_kern, special_box::compute_skew):
16280 * eqn/box.c (pointer_box::compute_skew,
16281 simple_box::compute_metrics, box::top_level)
16282 * eqn/text.c (prime_box::compute_metrics,
16283 prime_box::comput_subscript_kern)
16284 * eqn/limit.c (limit_box::compute_metrics):
16285 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
16286 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
16287 negative numbers in `nr' requests with a leading 0.
16289 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
16291 * eqn/special.c: New file.
16292 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
16293 Add new rule for simple.
16294 * eqn/lex.c (token_table): Add SPECIAL.
16295 * eqn/box.h: Declare make_special_box.
16296 * eqn/Makefile: Add special.[co].
16298 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
16300 * ps/devps/prologue: Possibly set packing to true while defining.
16301 Create grops dictionary here. Initialize local variables before
16302 defining procedures.
16303 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
16304 the dictionary stack. Set strokeadjust and overprint to false if
16305 the relevant operators are defined.
16306 (PEND): New procedure.
16307 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
16308 prologue. Do everything else in the setup section.
16309 (ps_printer::do_import): Just call PBEGIN and PEND around the
16310 picture. Also push userdict before, and pop it afterwards.
16312 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
16314 * troff/node.c (bracket_node::tprint): Brackets were being printed
16317 * macros/tmac.an (SH, SS): Set fill mode.
16319 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
16321 * troff/div.c (top_level_diversion::begin_page): Set
16322 high_water_mark to 0.
16324 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
16326 * man/mdate.sh: New file.
16327 * man/mdate.c: Deleted.
16328 * man/Makefile: Use mdate.sh instead of mdate.
16331 * eqn/lex.c (do_gsize): Supply missing argument to error message.
16333 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
16335 * man/mdate.c: New file.
16336 * man/*.man: Replace modification date by @MDATE@.
16337 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16338 (mdate): New target.
16340 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16341 Remove illegal input characters.
16343 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
16345 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16347 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
16349 * troff/div.c (begin_page): Change behaviour when
16350 !first_page_begun and !break_flag.
16352 * troff/input.c (do_name_test): Return 0 if argument is empty.
16354 * troff/input.c (read_long_escape_name): Require closing ] to be
16355 at same input level as opening [.
16357 * troff/input.c (read_increment_and_escape_name): New function.
16358 (get_copy, process_input_stack): Use this for \n.
16360 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
16362 * troff/div.c (top_level_diversion::begin_page): Ignore the
16363 current value of page_number if !first_page_begun.
16365 * groff.c (main): Fix declaration of buf.
16367 * troff/input.c (do_name_test): New function.
16368 (token::next): Implement \A.
16369 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16370 (token::description, token::add_to_node_list, token::process):
16371 Handle TOKEN_ESCAPE.
16372 * troff/token.h: New token TOKEN_ESCAPE.
16374 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
16376 * pic/main.c (do_picture): Allow space before and after filename
16377 following `<'. Check that the filename is not empty.
16379 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
16381 * Version 1.01 released.
16383 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16385 * dvi/tmac.dvi: ftr HR to H.
16387 * macros/tmac.e: Round up computation of $r.
16389 * xditview/tmac.X: Don't give up completely in compatibility mode.
16390 Use \n(.s instead of \n[.s].
16392 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16393 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16394 Add u to factors inside \s[...]. Rename frac to dvi-frac.
16395 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16396 short names in the char definitions.
16398 * ps/tmac.ps: Don't give up completely in compatibility mode.
16399 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16400 quote in front of \n(.s. Add u to factors inside \s[...].
16402 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
16404 * tty/tmac.tty: Call the nroff request.
16406 * macros/tmac.e ((x, )x): Better definitions that work properly
16408 (@0, @1): Helper macros for (x.
16410 * macros/tmac.e ($s, hl): Use \l rather than \D.
16412 * tty/tmac.tty: Make it work better in compatibility mode.
16413 (pchar): Rename to tty-char.
16415 * macros/tmac.e (@E): New macro.
16416 (r, i, b, rb, bi): Use @E.
16418 * macros/tmac.e (@F): Don't use (;...) syntax.
16420 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
16421 it was modified for groff.
16423 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16425 * macros/tmac.e (<., .>): Removed.
16426 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16428 * macros/tmac.e: Remove check that groff is being used.
16430 * macros/tmac.e (@C): Change families only if using groff; turn
16431 compatibility mode off while changing familes. Save compatibility
16432 mode before changing families and restore it afterwards.
16434 * macros/tmac.e (@h): Remove test for offset + line length.
16436 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
16437 (lo, th, ac): Define to call @S instead of using als.
16439 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16440 the ratio of the vertical spacing to the point size in units
16441 expressed as a percentage. Use these instead of $10r and $10R,
16442 Delete $10r and $10R.
16444 * lib/font.c (font::load): In default computation of space_width,
16445 divide by sizescale. Use scale_round.
16447 * macros/tmac.an (TP): Don't call `nf'.
16448 (an-do-tag): Don't call `fi'.
16450 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
16452 * troff/input.c (process_input_stack): Handle the case where
16453 spaces at the beginning of an input line are followed by a
16456 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
16458 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16459 * groff.sh: Use pic -x with the dvi device.
16461 * dvi/devdvi/FontMakefile (H): Don't use -s.
16463 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16464 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16465 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16468 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
16470 * ps/psfig.diff: New file.
16471 * ps/tmac.psfig: New file.
16473 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
16475 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16476 (]-): Don't call ref*do-tl.
16478 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16480 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16481 (fn@do-FS): Rename to fn*do-FS.
16483 * troff/input.c (transparent_translate): New function.
16484 (process_input_stack): Apply transparent_translate before calling
16485 diversion::transparent_output(unsigned char).
16487 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
16489 * troff/input.c (do_define_macro): Define the macro before calling
16492 * xditview/Makefile: Add DEVICES variable. Change install target
16495 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
16497 * groff.c (run_commands): Handle the possibility that there are
16498 child processes other than those forked by us.
16500 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
16502 * lib/string.c (string::append): New function.
16503 * lib/stringclass.h: Declare it.
16505 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
16507 * eqn/main.c (main): New option -N which sets
16508 no_newline_in_delim_flag.
16509 (do_file): If no_newline_in_delim_flag is set don't allow newlines
16511 * groff.c (main): Pass -N on to eqn.
16512 (help, synopsis): Mention -N.
16513 * groff.sh: Implement -N.
16515 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
16517 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16518 (]-): Call ref*do-tl if ref*need-tl is non-zero.
16519 (XP): Allow as initializer.
16521 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
16523 * troff/env.c (environment::wrap_up_field): If field_spaces are
16524 non-zero and we have a current_tab, subtract padding from
16525 tab_distance. If this makes tab_distance <= 0, use the next tab
16526 stop instead. If there isn't any next tab or it's a left tab,
16527 wrap up the current tab.
16528 (environment::start_field): Initialize tab_precedes_field.
16529 (environment::wrap_up_tab): If there's a current field, update
16530 pre_field_width, field_distance and tab_precedes_field.
16531 * troff/env.h (environment::tab_precedes_field): New member.
16533 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
16535 * ps/ps.c (ps_printer::do_file): New function.
16536 (ps_printer::special): Bind to `file' special.
16537 (ps_printer::do_exec): Set ndefined_styles to 0.
16539 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
16541 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16542 Avoid stripping first character from the start of unrecognized
16543 escapes. Use lex_error instead of error to report errors.
16544 * eqn/lex.c (get_token): Rework handling of escapes.
16545 (lex_error): Move declaration into...
16548 * xditview/xditview.c (main): Make -page option work.
16550 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16552 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
16554 * macros/tmac.s (B2): Correct size of box.
16556 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
16558 * macros/tmac.s (B2): Postpone drawing the box until in the
16559 top-level diversion.
16561 * tty/tmac.tty: Add font translations for C, CR, CW.
16563 * groff.c (synopsis, help): Document -i.
16564 * groff.sh: Implement -i.
16566 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16567 Simplify the construction of SN.
16569 * troff/number.c (parse_term): Give `|' a higher precedence.
16570 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16573 * macros/tmac.s (B2): Use par@finish instead of par@reset.
16575 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
16577 * lib/string.c (string::move): New function.
16578 * lib/stringclass.h: Declare it.
16580 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
16582 * troff/env.c (distribute_space): Add optional argument
16584 (environment::wrap_up_field): Call distribute_space with
16585 `force_forward' argument of 1.
16587 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
16589 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16590 Inline it. Move reallocation into...
16591 (string::grow1): New function.
16592 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16593 dependencies to include library header files.
16594 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16596 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
16598 * macros/tmac.s (@NH): Use the same number registers than -ms does
16599 for the heading level counters. Use the same string that -ms does
16600 for the number for this heading.
16602 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
16604 * lib/new.c (operator new): Cast result of malloc to char *.
16606 * troff/input.c (spring_trap, lookup_request): Add assert that nm
16609 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
16611 * groff.c (main): Support -i.
16613 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
16615 * pic/pic.h: Include <osfcn.h>.
16617 * ps/ps.c: Add declaration of mktemp.
16619 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16620 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16621 argument as union wait *.
16622 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16623 argument to union wait *.
16625 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
16627 * tty/tmac.tty: Add definition of \(co.
16629 * pic/object.c (make_arc): Only increase radius when radius
16630 strictly less than d.
16631 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16634 * troff/env.c (environment::environment(symbol),
16635 environment::environment(const environment *)): Initialize
16638 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
16640 * tbl/main.c (main): Add exit(0).
16642 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16644 * pic/main.c (main):
16645 * eqn/main.c (main):
16646 * tbl/main.c (main):
16647 * etc/soelim.c (main):
16648 * driver/printer.c (printer::~printer):
16649 * troff/node.c (real_output_file::~real_output_file,
16650 real_output_file::flush): Check for errors on stdout.
16652 * most files: Add 1991 to copyright notice.
16654 * macros/tmac.s: Don't test \n(.x and \n(.y.
16656 * troff/input.c (token::next): Rename `escape_char' label to
16657 `handle_escape_char' and `normal_char' label to
16658 `handle_normal_char'.
16660 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
16662 * groff.c (main, synopsis, help): Support -a option.
16663 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
16664 to trflags while parsing options.
16666 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
16668 * troff/number.c (parse_term): With `m', `M' and `n' scale
16669 indicators, convert scale factor to hunits before scaling.
16671 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
16673 * lib/font.c (scale_round): Better test for overflow when n is
16676 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
16678 * tbl/main.c (process_format): Add second argument of type
16679 options*. Change callers. Allow opt->tab_char as well as '\t'
16680 between format items.
16682 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
16684 * macros/tmac.an (PD): With no arguments, make sure register PD is
16686 (TH): Call PD with no argument, instead of setting register PD
16689 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
16691 * Version 1.00 released.
16693 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
16695 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16697 * dvi/devdvi/DESC: Mount CW instead of CR.
16699 * dvi/tmac.dvi: Add definition of \(tm.
16701 * dvi/devdvi/texsy.map: Add lh, and rh.
16702 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16703 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16705 * dvi/devdvi/FontMakefile: Generate H from cmss10.
16706 * dvi/devdvi/Makefile: Install H.
16707 * dvi/devdvi/H: New file.
16709 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
16711 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16714 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
16716 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16718 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16720 * macros/tmac.s (@EN): Handle the case where the equation is empty
16721 but the label is not.
16723 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
16725 * troff/groff.h: New warning category WARN_SPACE.
16726 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16727 WARN_SPACE to warning_table.
16728 (interpolate_macro): Give a warning of type WARN_SPACE if the name
16729 is longer than two characters and is not defined, but the first
16730 two characters do make a defined name.
16732 * PROBLEMS: New file.
16734 * CHANGES: New file.
16735 * README-0.6, README-1.00: Deleted.
16737 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16738 * xditview/devX75/Makefile: Make devX75-12.
16739 * xditview/devX100/Makefile: Make devX100-12.
16741 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16742 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16744 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
16746 * README-0.7: Rename to README-1.00.
16748 * macros/tmac.pic: New file.
16749 * macros/Makefile (install.nobin): Install tmac.pic.
16751 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
16753 * troff/env.c (hyphen_word): Correct the test for whether the
16754 token is a hyphen. Reset npos to 0.
16756 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16758 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
16760 * macros/tmac.s (ds*common-end): Call par*reset.
16762 (par@reset-indent): Deleted.
16764 * macros/tmac.s (@IP): Divert the label.
16766 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
16768 * xditview/draw.c (setGC): Use a line width of .1m rather than
16769 .04m by default; round rather than truncate value.
16771 * tbl/table.c (class empty_entry): New class.
16772 (empty_entry::empty_entry, empty_entry::line_type): New functions.
16773 (table::add_entry): Represent empty entries by objects of type
16775 (table_entry::line_type): Return -1.
16776 (table::determine_row_type): Ignore entries with line_type 0.
16777 Treat type -1 as non-lines.
16779 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
16781 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16782 macros/tmac.s: Rename \(-d to \(Sd.
16784 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
16786 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16787 * xditview/libXdvi/DviChar.c: Likewise.
16788 * dvi/devdvi/texsy.map: Add `<<', `>>'.
16790 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
16792 * troff/div.c (top_level_diversion::begin_page): Call
16793 init_output() if the_output is 0.
16795 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
16797 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16799 (get_copy): Turn \E into ESCAPE_E.
16800 (token::process, asciify): Handle ESCAPE_E.
16802 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16804 (DS): Implement `.DS R'.
16806 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
16808 * macros/tmac.s (FS): New macro.
16810 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16812 * macros/tmac.s (cov*tl-init): Remove after first execution
16813 instead of aliasing to @nop. Call top of page macro explicitly
16814 instead of setting trap; call @init first. Set pg@top as top of
16816 (cov*auto-init): Deleted. Set cov*tl-init instead of
16817 cov*auto-init as top of page trap.
16818 (TL, LP): Do a break instead of calling cov*tl-init.
16819 (cov*print): With RP format but no TL, alias FS and FE to @FS and
16820 @FE; in this case also give a warning and always start another
16821 page. No need to set pg@top here.
16822 (cov*tl-init): Rename to cov*first-page-init.
16824 * macros/tmac.s (RP): Do `.pn 0'.
16825 (cov*tl-init): With RP format don't do `.pn 0'.
16827 * macros/tmac.s (pg@cs-top): Set no space mode.
16829 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16830 (cov*ab-init): Alias TL, AU and AI to these.
16832 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
16834 * macros/tmac.s (@EQ): Move the space before the equation into @EN
16835 (@EN): Do nothing unless \n[dl] is > 0.
16837 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
16839 * pic/object.c (ellipse_object::radius): New function.
16841 * VERSION: Change version to 0.7.
16843 * tbl/table.c (block_entry::do_divert): Declare return type as
16845 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16847 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
16849 * troff/column.c: New file.
16850 * troff/Makefile: Corresponding changes.
16852 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
16855 * troff/div.c (top_level_diversion::space): If the space causes
16856 the first-page transition and springs a trap, truncate the space
16859 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
16861 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16864 * pic/troff.c (troff_output::line_thickness,
16865 troff_output::set_fill): Do a horizontal motion to compensate for
16866 the width of the \D escape sequence.
16868 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
16870 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16873 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
16876 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16877 Supply empty definition.
16878 (text_entry::simple_print, simple_text_entry::simple_print):
16879 Delete declarations.
16880 (table::add_entry): Represent empty entries by objects of type
16883 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
16885 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16887 * tbl/table.c (left_text_entry::add_tab): New function.
16889 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
16890 initialize like LP.
16892 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
16894 * troff/env.c (environment::start_field): Give an error message if
16895 there is no next tab.
16897 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
16899 * troff/env.c (hyphenate): Skip initial elements with zero
16902 * macros/tmac.s (par@init): Keep VS in points rather than units.
16904 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
16906 * pic/main.c (main): Implement `-c' option.
16907 * pic/output.h: Declare make_tpic_output().
16908 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16910 (tpic_output): New class.
16911 (tpic_output::tpic_output, tpic_output::set_pen_size,
16912 tpic_output::command, make_tpic_output): New functions.
16914 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
16916 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
16917 if they're not already defined.
16918 * tbl/table.c (init_output): Don't test \n(.g.
16920 * troff/input.c (do_if_request): Delete `g' condition. Recognize
16921 `d', `r' and `c' conditions even in compatibility mode.
16923 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
16925 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16928 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
16930 * troff/env.h (environment::prev_line_interrupted): New member.
16931 (environment::get_prev_line_interrupted): New function.
16932 * troff/env.c (environment::newline): Set prev_line_interrupted.
16933 (environment::environment(const environment *),
16934 environment::environment(symbol)): Initialize
16935 prev_line_interrupted.
16936 * troff/input.c (process_input_stack): Don't give special
16937 treatment to space and newline at the beginning of the line if the
16938 previous line was interrupted.
16940 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
16942 * eqn/eqn.y: Disallow PRIME by itself.
16943 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16945 (def_table): Remove definition of '. Define prime to be `.
16947 * eqn/eqn.y: Split off part of rule `script' into a new rule
16950 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
16952 * macros/tmac.s ({, }): New string aliases.
16954 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
16956 * README-0.7: New file.
16958 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
16960 * macros/tmac.s: New file.
16961 * man/groff_ms.man: New file.
16962 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16963 * Makefile.bd: Similarily.
16964 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16965 definition of TMAC_S.
16966 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16967 * macros/TODO: New file.
16969 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
16971 * troff/env.c (right_justify): New function.
16972 (init_env_requests): Bind this to request "rj".
16973 (center_lines): Set right_justify_lines to 0. If we get a bad
16974 integer, center 1 line.
16975 (environment::environment(symbol), environment::environment(const
16976 environment *)): Initialize right_justify_lines.
16977 (environment::get_right_justify_lines): New function.
16978 (init_env_requests): Bind this to number_register ".rj".
16980 * troff/env.c (environment::choose_breakpoint): Implement
16981 hyphenation_margin and hyphenation_space.
16982 (environment::get_hyphenation_space,
16983 environment::get_hyphenation_margin): New functions.
16984 (init_env_requests): Bind these to .hys and .hym.
16985 (hyphenation_space_request, hyphenation_margin_request): New
16987 (init_env_requests): Bind these to hys and hym.
16988 (environment::environment(symbol), environment::environment(const
16989 environment *)): Initialize hyphenation_margin and
16991 * troff/env.h: Corresponding changes to class environment.
16993 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
16995 * troff/div.c (blank_line): Always do a break.
16997 * eqn/box.c (do_text): Turn off escapes while appending text to
17000 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
17002 * troff/input.c (while_break_request, while_continue_request): New
17004 (init_input_requests): Bind these to "break" and "continue".
17005 (while_depth, while_break_flag): New variables.
17006 (while_request): Update while_depth. Break out of loop if
17007 while_break_flag is set.
17009 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
17011 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
17014 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
17016 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
17018 * stringify: New file.
17019 * Makefile (groff.o): Use stringify.
17021 * xditview/tmac.X: Remove definition of \(rn.
17022 * xditview/libXdvi/DviChar.c: Remove radicalex from
17025 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
17027 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
17028 (alphabetic_block_entry::alphabetic_block_entry,
17029 alphabetic_block_entry::divert, alphabetic_block_entry::print):
17031 (block_entry::divert): Split off body into ...
17032 (block_entry::do_divert): If the block is alphabetic, subtract 2n
17033 from the line length; also update the span width to dl+2n, and the
17034 alphabetic span width to dl.
17036 * driver/input.c (do_file): While reading argument to D command,
17037 when expanding buffer, multiply szp by sizeof(int) rather than 2
17038 in the argument to memcpy.
17040 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
17041 width of alphabetic columns.
17043 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
17045 * troff/node.c (lookup_family): Supply second argument to lookup.
17047 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
17048 search, return immediately if v is 0.
17050 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
17051 (troff_output::start_picture): Set this reg.
17052 (troff_output::end_picture): Remove this reg
17053 * eqn/box.c (box::extra_space): Don't produce `\x's if
17054 EQN_NO_EXTRA_SPACE_REG is defined.
17056 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
17057 * eqn/text.c (split_text): Map ' to \(fm when it's the first
17060 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
17062 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
17065 * troff/div.c (top_level_diversion::top_level_diversion):
17066 Initialize page_number to 0.
17068 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
17070 * groff/troff (environment::environment(const environment *)):
17071 Initialize name to e->name, rather than "anonymous".
17073 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
17075 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
17076 requested_page. Split middle part into ...
17077 (FindPage): New function.
17078 (SetValues): If we don't yet know the last page, and the requested
17079 page is greater than the current page, call FindPage.
17080 Update the font_map_string before doing this.
17082 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
17083 Translate \(lh and \(rh into left and right double arrows.
17085 * troff/node.c (class hyphen_inhibitor_node): New class.
17086 (hyphen_inhibitor_node::hyphen_inhibitor_node,
17087 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
17088 hyphen_inhibitor_node::type,
17089 hyphen_inhibitor_node::get_hyphenation_type): New functions.
17090 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
17091 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
17094 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
17096 * troff/node.h (dummy_node::get_hyphenation_type,
17097 transparent_dummy_node::get_hyphenation_type): Declare them.
17098 * troff/node.c: (dummy_node::get_hyphenation_type,
17099 transparent_dummy_node::get_hyphenation_type): New functions.
17101 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
17103 * xditview/libXdvi/draw.c: If M_PI not defined after including
17104 math.h, then define it.
17106 * xditview/Makefile: Add definition of AR. Pass it to the submake
17108 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
17110 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
17112 * troff/dictionary.h (object_dictionary::alias): Declare return
17114 * troff/dictionary.c (object_dictionary::alias): Return non-zero
17115 if the old name was defined.
17116 * troff/input.c (alias_macro): Give a warning if the old name was
17118 * troff/reg.c (alias_reg): Likewise.
17120 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
17122 * troff/input.c (token::next): Delete implementation of \R.
17124 * macros/Makefile: Strip comments from tmac.e while installing it.
17126 * troff/input.c: New variable `nroff_mode'.
17127 (troff_request, nroff_request): New functions.
17128 (init_input_requests): Bind `troff' and `nroff' to troff_request
17130 (do_if_request): Compute results of t and n conditions from
17133 * text/text.c (split_text): Fix typo in >=.
17135 * eqn/lex.c: Add definition of `==' to def_table.
17137 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
17139 * pic/tex.c (tex_output::start_picture): Change the definitions of
17140 \graph and \graphtemp so that they work properly with Plain TeX.
17142 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
17143 argument to `ar' is not less than the first.
17145 * pic/pic.y: Allow a comma between elements of the variable list
17146 in the argument to `reset'.
17148 * pic/object.c (arc_object::arc_object): Fix computation of
17151 * eqn/main.c (main): Add exit(0).
17153 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
17155 * troff/div.c (begin_page): Test no_space_mode after doing the
17156 break, but still push the page ejector cookie before doing the
17157 break. Also set the next page number after doing the break.
17159 * xditview/xditview.c (NewFile): Don't set the title and icon name
17160 if this is the first file and its name is `-'.
17161 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
17162 the X75 and X100 devices.
17163 (main): If a device has the XT_OPTION flag set and there's exactly
17164 one file argument, pass the driver -xrm and -title options to set
17165 the icon name and window title to the name of the file.
17167 * troff/env.c (environment_switch): If there was an argument but
17168 it wasn't a valid number or name, then pop an environment but
17169 don't give an error message on underflow.
17171 * troff/number.c (start_number): Correct spelling in error message.
17173 * troff/input.c (token::delimiter): Don't print an error message
17176 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
17177 ParseDrawFunction if dw->display_enable is true.
17179 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
17181 * pic/pic.y: Parse text positioning like normal attributes, so as
17182 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
17183 positioning attribute.
17185 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
17187 * tbl/main.c (process_data): When in state START while reading a
17188 text block, don't change to state MIDDLE if c is a newline.
17190 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
17192 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
17193 so as to avoid shadowing parameter.
17195 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
17197 * tbl/table.c (trim_space): Deleted.
17198 (table::add_entry): Don't call trim_space.
17200 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
17202 * VERSION: Change version to 0.6.
17204 * troff/number.c (parse_expr): Make == work.
17206 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
17208 * man/grog.man: New file.
17209 * man/Makefile: Add grog.n to MAN1PAGES.
17210 * etc/grog.sh: New file.
17211 * etc/Makefile: Install grog.sh as grog.
17213 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
17215 * troff/input.c (token::next): Implement \E.
17217 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
17219 * xditview/tmac.X: Change font translations to match tmac.ps.
17221 * troff/input.c (non_empty_name_warning): Don't give a warning if
17222 `\{' terminates the name.
17224 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
17226 * ps/devps/symbol.diff: New file.
17227 * ps/devps/FontMakefile: Mention symbol.diff.
17229 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
17231 * troff/node.c (font_position): Use get_long_name to read the
17234 * troff/env.c (environment_switch): If we get a number that's < 0
17235 or >= NENVIRONMENTS, treat it like a name.
17236 Change NENVIRONMENTS to 10.
17238 * troff/groff.h: Remove definition of FONTS_MAX.
17239 * troff/node.h (class font_family): Make map a pointer instead of
17240 an array. Add a map_size member. Make it a class. Make nm const
17241 and public. Make invalidate_fontno a friend.
17242 * troff/node.c: Define font_table_size. Make font_info a pointer
17243 rather than an array.
17244 (class troff_output_file): Allocate font_position dynamically. Add
17245 nfont_positions member.
17246 (troff_output_file::set_font): Grow font_position if necessary.
17247 (troff_output_file::~troff_output_file): Delete font_position.
17248 (troff_output_file::troff_output_file): Allocate font_position.
17249 (grow_font_table): New function.
17250 (troff_output_file::really_begin_page,
17251 troff_output_file:really_copy_page): Use nfont_positions rather
17253 (mount_font_no_translate, mount_style): Call grow_font_table if
17255 (font_family::font_family): Allocate map.
17256 (font_family::make_definite): Grow map if necessary. Use
17257 font_table_size instead of FONTS_MAX.
17258 (font_family::~font_family): New function.
17259 (invalidate_fontno): Use font_family::map_size.
17260 (get_fontno, env_space_width, env_half_narrow_space_width,
17261 env_narrow_space_width, symbol_fotno, is_good_fontno,
17262 get_bold_fontno, make_glyph_node): Use font_table_size rather than
17264 (next_available_font_position): Never return 0.
17266 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
17268 * ps/tmac.ps: Add font translations for compatibility with dpost.
17270 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
17272 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
17273 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
17274 Move definitions baseline_sep, shift_down, column_sep,
17275 matrix_side_sep into...
17276 * eqn/box.c: Add them to param_table.
17277 * eqn/pbox.h: Add declarations to pbox.h.
17279 * troff/input.c (set_string): Cast value to unsigned char *.
17281 * troff/token.h (process_input_stack): Declare it static before
17282 declaring it a friend.
17284 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
17286 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
17288 * dvi/devdvi/EX: Regenerate.
17290 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
17293 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
17295 * eqn/lex.c: In defaults_table, make definition of `dot' call
17296 `dot_def'. Don't explicitly make it roman. Similarily for other
17299 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
17301 (for_input::get, for_input::peek): Use this.
17302 (do_for): Add by_is_multiplicative argument.
17303 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
17304 Change semantic value of optional_by to be a double plus a flag
17305 saying whethet the by clause is multiplicative.
17307 * eqn/lex.c (get_delimited_text): Remember location of start of
17308 definition. Improve error handling when EOF is encountered.
17310 * lib/font.h: Rename handle_x_command to
17311 handle_unknown_font_command.
17312 * lib/font.c (font::load): Call handle_unknown_font_command for
17313 any unknown command in the font description file. Don't call
17314 handle_x_command. Include the name of the command in the argv.
17315 Improve message for unknown command after kernpairs or charset
17317 * ps/ps.c (ps_font::handle_x_command): Rename to
17318 handle_unknown_font_command. Remove message about `x download'
17319 command. Give error message for wrong number of arguments.
17320 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
17321 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
17322 handle_unknown_font_command. Give an error message for wrong
17323 number of arguments. Rename design_size to designsize.
17324 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
17325 checksum', `designsize' instead of `design_size'.
17327 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
17329 * eqn/*.[chy]: Change underaccent to uaccent.
17331 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
17332 give it the same precedence as ACCENT.
17333 * eqn/other.c (make_underaccent_box): New function.
17334 * eqn/box.h: Declare it.
17335 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17338 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
17340 * pic/pic.y (reset_all): New function. Called in rule for RESET.
17341 (parse_init): Call reset_all.
17342 (define_variable): When defining scale reset only those
17343 pre-defined variables that are scaled.
17344 (defaults_table): Add `scale' as non-scaled value.
17346 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17347 together with the text; allow any number of positioning words;
17348 allow center as a positioning word.
17350 * pic/object.c (output::compute_scale): Get picture maximum height
17351 and width from variables called maxpswid and maxpsht.
17352 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17354 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
17356 * pic/object.c (object_spec::make_text): Multiply textht by number
17359 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17361 (do_sprintf): New function.
17362 (pic.gperf): Add sprintf token.
17363 (text, sprintf): New rules.
17365 * pic/pic.y: `rand()' with no arguments returns a random number
17366 in the range [0,1).
17368 * pic/pic.y: Allow a bare expression to be an attribute: change
17369 precedences to support this. Change optional_ordinal rule to
17370 optional_ordinal_last to avoid reduce/reduce conflict.
17371 * pic/object.c (object_spec::object_spec): Initialize direction.
17373 * pic/pic.y: Implement ^ operator meaning exponentiation.
17375 * troff/node.h: Add default argument to mount_font.
17376 * troff/node.c (font_position): Read an optional third argument
17377 giving the external_name.
17378 (mount_font): Add optional argument giving the external_name.
17379 (mount_font_not_translate): Have additional argument giving
17380 external name. Use this name to load the font. Pass both names
17381 to font_info::font_info.
17382 (font_info::font_info): Have additional argument giving
17384 (class tfont): New member external_name.
17385 (font_info::get_tfont): Use external name to construct tfont_spec.
17387 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
17389 * eqn/lex.c (init_table): Add argument giving device. Define
17390 name of device to be "1".
17391 (do_ifdef): Counts as true if the argument has been defined with
17393 * eqn/main.c (main): Call init_table with device argument. Make
17394 device local to main.
17395 * eqn/eqn.h: Change declaration of init_table. Remove declaration
17398 * pic/lex.c (get_delimited): Allow text to be delimited by
17399 matching {}s. Don't recognize ending delimiter within a string.
17401 * troff/input.c (get_delim_name): New function.
17402 (token::next): Implement \C.
17404 * lib/font.c (font::load): Grok ---. Add an alias for each
17405 character based on its code.
17406 (font::get_code_width): Deleted.
17407 * lib/font.h (class font): Declare font::number_to_index().
17408 Remove declaration of font::get_code_width.
17409 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17410 to indices of named characters.
17411 (font::number_to_index): New function.
17412 * troff/input.c (font::number_to_index): New function.
17413 (get_charinfo_by_number, charinfo::get_number,
17414 charinfo::set_number): New functions.
17415 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17416 (token::process, token::description, token::get_char,
17417 token::add_to_node_list, token::operator==): Handle
17418 TOKEN_NUMBERED_CHAR.
17419 * troff/charinfo.h: Declare get_charinfo_by_number,
17420 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
17422 (charinfo::numbered): New function.
17423 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17424 * troff/env.h (class environment): Remove declaration of ...
17425 * troff/env.c (environment::make_numbered_char_node): Deleted.
17426 * troff/node.c (make_numbered_node): Deleted.
17427 (class numbered_glyph_node): Remove.
17428 (troff_output_file::put_char_width, troff_output_file::put_char):
17429 Handle numbered chars.
17430 (troff_output_file::numbered_char): Removed.
17431 (tfont::get_code_width): Removed.
17432 (make_glyph_node): Don't search special fonts for numbered
17434 * troff/node.h: Remove declaration of make_numbered_node.
17435 * driver/input.c (do_file): Handle N command.
17436 * driver/printer.h: Add declaration of ...
17437 * driver/printer.c (printer::set_numbered_char): New function.
17438 * dvi/tfmtodit.c (main): Generate unnamed entries.
17439 * ps/devps/afmtodit: Likewise.
17440 * xditview/xtotroff.c (MapFont): Likewise.
17441 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17443 * tbl/main.c (process_format): If multiple widths are specified
17444 for a column but all the widths are the same, don't give an error
17447 * tbl/table.c (table::do_row): If the current row is all lines and
17448 the stuff doesn't contains a line, mark the top of the row after
17449 printing stuff before the row. If the current row is not all
17450 lines and the stuff doesn't contain a line, don't unnecessarily
17451 mark the top of the row before printing the stuff.
17453 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
17455 * troff/groff.h: Remove MAX_PATH.
17456 * troff/input.c (open_file): Dynamically allocate space for the
17458 (open_mac_file, process_macro_file): Corresponding changes.
17460 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
17462 * troff/node.h (class output_file): Make copy_file pure. Add
17463 vspace method ifdef COLUMN. Add is_printing method.
17464 * troff/node.c: Add class printing_reg. Add class
17465 real_output_file. Derive other output_file classes from
17466 real_output_file; in these classes rename begin_page to
17467 really_begin_page, print_line to really_print_line, copy_file to
17468 really_copy_file, transparent_char to really_transparent_char.
17469 Move output_file::flush to real_output_file. Add printing member
17470 to class output_file.
17471 * troff/div.h: Remove printing member from top_level_diversion.
17472 Add vspace member function to class diversion ifdef COLUMN. Add
17473 some declarations ifdef COLUMN.
17474 * troff/div.c (top_level_diversion::copy_file,
17475 top_level_diversion::transparent_output,
17476 top_level_diversion::output): Don't test printing member before
17478 * troff/input.c: Handle initial variable_space_request ifdef
17480 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17481 but comment it out.
17483 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
17485 * troff/div.c (diversion::need): Make any space forced. If we
17486 sprung a trap, set truncated_space to minus the distance to the
17487 trap and set needed_space to the amount that was needed.
17488 (top_level_diversion::space): A forced space turns no_space_mode
17490 (class constant_vunits_reg): New class.
17491 (init_div_requests): Implement number registers .trunc and .ne
17492 using constant_vunits_reg.
17493 (class truncated_space_reg): Deleted.
17495 * troff/div.h: Don't have a no_space_mode member in diversion.
17496 Instead have it in top_level_diversion.
17497 * troff/div.c (diversion::diversion): Don't initialize
17499 (top_level_diversion::top_level_diversion): Initialize
17501 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17502 (macro_diversion::output): Don't clear no_space_mode.
17504 * troff/input.c (diverted_space_node::reread): Don't call
17505 environment::do_break. In fill mode, act like a blank line.
17506 (diverted_copy_file_node::reread): Don't call
17507 environment::do_break.
17509 * troff/div.c (blank_line): New function.
17510 * troff/div.h: Declare it.
17511 * troff/input.c (process_input_stack): Call it.
17513 * troff/div.c (truncated_space_reg::get_string): New function.
17514 (init_div_requests): Bind to .trunc.
17515 (space_request, top_level_diversion::space,
17516 top_level_diversion::output, macro_diversion::space,
17517 macro_diversion::output): Update truncated_space.
17518 (macro_diversion::output): Redo calculations when trap sprung.
17519 (macro_diversion::output, macro_diversion::space): No need for
17522 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17523 after truncating post line spacing.
17525 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
17527 * ps/devps/prologue (MF, SF): Make them work even if setfont is
17528 defined as a procedure rather than as an operator.
17530 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
17532 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17534 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
17536 * troff/div.c (top_level_diversion::output): Merge
17537 output_file::print_line and output_file::end_of_line member
17539 * troff/div.h (class output_file):
17540 * troff/node.c (troff_output_file::print_line,
17541 troff_output_file::end_of_line, output_file::end_of_line,
17542 ascii_output_file::print_line, suppress_output_file::print_line):
17543 Corresponding changes.
17545 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
17547 * troff/input.c (token::next): Don't give a warning for `\.'.
17549 * troff/env.c (environment::get_center_lines): New function.
17550 (init_env_requests): Bind number register .ce to it.
17551 * troff/env.h: Declare it.
17552 * tbl/table.c (table::init_output): Define reset macro to restore
17553 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
17555 (table::print): If center option not given, then imply center
17556 option if SAVED_CENTER_REG > 0.
17558 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
17560 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17561 Troff.ps from DOWNLOAD.
17563 * troff/Makefile: Change comment in DEFINES to avoid confusing
17566 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17567 code. Don't try to catch errors with stopped.
17568 (check_line_lengths): New function.
17569 * ps/devps/prologue (EXEC): Deleted.
17570 (EBEGIN, EEND): New procedures.
17572 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
17574 * troff/input.c: Include request.h before node.h.
17575 * troff/node.c: Likewise.
17576 * troff/env.c: Likewise.
17577 * troff/div.c: Likewise.
17578 * troff/node.h (class special_node): Store argument as a macro
17579 rather than a char *.
17580 * troff/node.c (special_node::special_node, special_node::copy):
17582 (special_node::~special_node): Deleted.
17583 (special_node::tprint): Deleted.
17584 (special_node::tprint_start, special_node::tprint_end,
17585 special_node::tprint_char): New functions.
17586 (troff_output_file::special): Deleted.
17587 (troff_output_file::start_special, troff_output_file::end_special,
17588 troff_output_file::special_char): New functions.
17589 * troff/input.c (special_node::tprint): New function.
17590 (do_special): Use macro not char *.
17591 (do_transparent_macro): Deleted.
17592 (token::next): Don't call do_transparent_macro.
17594 * troff/input.c (token::next): Add 'Y' case.
17595 (do_transparent_macro): New function.
17596 * troff/node.c (troff_output_file::special): Handle newlines with
17597 argument using new continuation convention.
17598 * driver/input.c (get_string): Cope with continuation convention.
17599 (do_file): Don't call skip_line after calling get_string(1).
17600 * ps/ps.c (ps_printer::special, ps_printer::do_import,
17601 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17603 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17606 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
17608 * troff/input.c (asciify): By default, illegal input characters
17609 should return empty string.
17611 * troff/input.c (copy_file): Handle first page transition like title.
17612 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17614 * troff/input.c (token::next): Improve error message for EOF after
17616 (input_char_description): New function.
17617 (get_char_for_escape_name): Use input_char_description.
17618 (token::next): Warn about unrecognized escape sequences.
17619 (warning_table): Add WARN_ESCAPE.
17620 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17623 * troff/token.h: Remove declaration of process_input_stack.
17625 * troff/input.c: Remove declaration of init_hyphen_requests.
17626 * troff/request.h: Correct spelling in declaration of same.
17628 * troff/input.c (token::next): Check whether escape_char is 0.
17630 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
17632 * groff.c (main, usage, help): Implement -P and -L options.
17633 * groff.sh: Likewise.
17635 * troff/input.c (token::next): Use some gotos to avoid code
17638 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17639 Avoid calling symbol::symbol if name empty.
17641 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
17643 * troff/input.c (init_input_requests): Make \n(.x return the major
17644 version number and \n(.y return the minor version number.
17645 * troff/Makefile: Construct file majorminor.c defining
17646 major_version and minor_version automatically from ../VERSION.
17648 * troff/node.c (class glyph_node): Make operator new and operator
17650 (class ligature_node): Similarily.
17652 * troff/input.c (operator==(const macro &, const macro &)): New
17654 (non_interpreted_node::same): Use this.
17655 (string_iterator::string_iterator): Make macro& argument const.
17657 * troff/input.c (input_iterator::get): New function. Don't make
17658 asciify_macro or class non_interpreted_node friends of class
17660 (non_interpreted_node::interpret): Use input_iterator::get.
17661 (asciify_macro): Likewise.
17663 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17664 ~non_interpreted_node): Deleted.
17665 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17668 * troff/symbol.h: Make all symbol member functions const.
17670 * lib/strtol.c: New file.
17671 * lib/Makefile: Add strtol.c.
17672 * Makefile: Define STRTOL as strtol.o to include strtol in
17675 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
17677 * pic/troff.c (troff_output::simple_circle): Divide by scale.
17679 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
17681 * troff/input.c (do_special): Use input_level.
17683 * troff/token.h (TOKEN_BACKSPACE): New token.
17684 (token::backspace): New function.
17685 * troff/input.c (token::description, token::next, token::process):
17686 Grok TOKEN_BACKSPACE.
17687 (do_special): Turn TOKEN_BACKSPACE back into \b.
17689 * troff/token.h (token::leader): New function.
17690 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17692 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17694 * troff/input.c (do_special): Use token::description in error
17697 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
17699 * troff/input.c (decode_args): Combine quoted and
17700 quote_input_level variables. Make it a for (;;) loop.
17702 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17704 * troff/input.c (read_long_escape_name): The test for whether to
17705 expand buffer was off by 1.
17706 (read_string): Similarily.
17708 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
17710 * troff/input.c: Use `const int' rather than `static const int'.
17712 * troff/div.h (diversion::copy_file): Declare as pure virtual.
17713 (macro_diversion::copy_file): New function.
17714 * troff/node.h: New class diverted_copy_file_node.
17715 * troff/node.c: Implement it.
17716 * troff/input.c (copy_file): Use diversion::copy_file. Handle
17717 first page transition by pushing a diverted_copy_file_node.
17718 * troff/input.c (token::next, process_input_stack): Don't handle
17721 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
17723 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17724 whether space widths need adjusting.
17726 * troff/charinfo.h: Generalize translated_to_space to
17727 special_translation so as to allow translation to \&.
17728 * troff/input.c (translate): Allow translation to \&.
17729 (charinfo::*): Corresponding changes.
17730 * troff/node.c (make_node, node::add_char): Corresponding changes.
17731 * troff/node.h (dummy_node::dummy_node): Allow optional first
17734 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17735 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17737 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17738 TOKEN_REQUEST with an argument of TITLE_REQUEST.
17739 (token::process): Grok that.
17740 * troff/input.c (copy_file): Handle first page transition like
17741 title by pushing a COPY_FILE_REQUEST cookie.
17742 (token::next, process_input_stack): Grok that.
17743 * troff/node.h (output_file::copy_file): Add x and y arguments.
17745 * troff/div.c (top_level_diversion::copy_file): Supply them.
17746 * troff/node.c (troff_output_file::copy_file): Add x and y
17747 arguments; moveto specified position. Invalidate font_position
17748 array after copying file.
17749 (output_file::copy_file): New function.
17750 (suppressed_output_file::copy_file, ascii_output::copy_file):
17752 * troff/input.c (transparent_file): New function.
17753 (init_input_requests): Bind to "trf".
17754 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17755 (process_input_stack): Likewise.
17757 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17759 * troff/node.c (init_node_requests): New number registers .kern
17760 pointing to global_kern_mode, and .lg pointing to
17761 global_ligature_mode.
17763 * troff/node.c (ligature): Don't change it if we get a bad
17766 * troff/input.c (do_define_string): Don't strip tabs.
17768 * troff/input.c (asciify_macro): Make the string_iterator auto.
17770 * troff/node.c (init_font_requests): Rename to...
17771 (init_node_requests):
17772 * troff/node.h: Change declaration.
17773 * troff/input.c (main): Change call.
17775 * troff/input.c (node::reread, diverted_space_node::reread): New
17777 (process_input_stack): Call reread rather than
17778 get_diverted_space_node.
17779 * troff/node.c (node::get_diverted_space_node,
17780 diverted_space_node::get_diverted_space_node): Removed.
17781 * troff/node.h: Declare reread methods instead of
17782 get_diverted_space_node methods. Make `n' member private.
17783 * troff/input.c: (token::diverted_space): Removed.
17784 * troff/token.h: Removed declaration.
17787 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
17789 * eqn/script.c (script_box::compute_metrics): Don't let
17790 SUP_RAISE_FORMAT become negative.
17792 * tbl/table.c (table::do_row): Entries that don't end in the
17793 this row shouldn't make the row non-blank.
17795 * tbl/table.c (table::make_columns_equal): Only set the width of
17796 columns which are marked as equal.
17798 * tbl/main.c (process_data): Before issuing excess data error,
17799 if last character was a newline unget it; then get it again after
17800 the error. Also include the contents of the entry in the message.
17802 * groff.c: New file.
17803 * Makefile: Build groff from groff.c. Make it possible to use
17804 either groff.sh or groff.c as groff.
17805 * Makefile.bd: Similarily.
17807 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
17809 * groff.sh: Don't delay expansion of $@ in assignment to files.
17810 Remove occurrences of \".
17812 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
17814 * all Makefiles: Simplify and rearrange.
17816 * Makefile: Handle fmod like malloc.
17817 * lib/Makefile: Similarily.
17818 * lib/fmod.c: Remove #ifdef NEED_FMOD.
17820 * Makefile: Rename OPTIMISE to OPTIMIZE.
17822 * groff.sh: Remove assignment to PATH.
17823 * Makefile: Remove SHPATH variable.
17824 * Makefile.bd: Similarily.
17826 * groff.sh: Add -V option to print the pipeline instead of
17829 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
17831 * lib/font.c: Split off file searching into ...
17832 * lib/fontfile.c: New file.
17834 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17836 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
17838 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17839 Also change misleading comment.
17840 (table::do_vspan): Change similarily misleading comment.
17841 * tbl/main.c (process_data): A format row with an explicit `s'
17842 uses up a data line, even if all the other columns are `_' or `='.
17844 * troff/input.c (token::description): Fix description of
17845 TOKEN_DUMMY and TOKEN_EMPTY.
17847 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
17849 * groff.sh: Fix description of -Z in help message.
17851 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
17853 * pic/object.c (object_spec::make_object): Allow negative and zero
17855 * pic/pic.y: Give linethick default value of -1.0.
17856 * pic/troff.c (troff_output::troff_output): Initialize
17857 last_line_thickness to BAD_THICKNESS.
17858 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17859 (troff_output::line_thickness): Canonicalize negative thicknesses
17860 to RELATIVE_THICKNESS.
17861 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17862 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17864 (tex_output::start_picture): Set pen_size to -2.0.
17866 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17867 0, then use 0 linewidth.
17868 (ps_printer::ps_printer): Initialize line_thickness to -1.
17870 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17872 * ps/devps/symbolchars: Remove `or'.
17873 * ps/tmac.ps: Implement \(or with .char.
17875 * ps/devps/symbolchars: Move most characters into textmap.
17876 * ps/devps/textmap: Add names for troff bracket characters. Remove
17879 * ps/devps/TSymbol.ps: Removed.
17880 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17881 * ps/tmac.ps: Do with .char what TSymbol did.
17882 * ps/devps/download: Remove TSymbol.
17884 * ps/devps/T: Removed.
17885 * ps/devps/Troff.ps: Removed.
17886 * ps/devps/Troff.afm: Removed.
17887 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17888 * ps/devps/download: Remove Troff.
17889 * ps/devps/FontMakefile: Remove T target.
17890 * ps/devps/DESC-A4: Remove T from font list.
17891 * ps/devps/DESC-letter: Likewise.
17893 * troff/input.c (macro_to_node): Rename to ...
17894 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
17895 character's definition while processing it.
17896 * troff/node.c (node::add_char, make_node): Change calls to
17897 macro_to_node accordingly.
17899 * troff/input.c (token::next): Translate \_ to \(ul.
17901 * tty/devascii/R.proto: Add `|'.
17902 * tty/devlatin1/R.proto: Likewise.
17904 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
17906 * man: Put the version number in all the man pages.
17908 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
17910 * Makefile.bd: New file.
17911 * README.bd: New file.
17913 * VERSION: New file.
17914 * lib/version.c: Removed.
17915 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17918 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17919 environment variable.
17921 * all Makefiles: Split install target into install.bin for
17922 binaries, and install.nobin for everything else.
17923 * Makefile: Add bindist target.
17925 * man/afmtodit.man: New file.
17926 * man/Makefile: Add afmtodit.n to MAN1PAGES.
17927 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17929 * ps/Makefile: Pass BINDIR to make install in devps.
17931 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17932 the space character.
17934 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17936 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
17938 * ps/ps.c: Redo font downloading.
17939 * ps/devps/download: New file.
17940 * ps/devps/Makefile: Add download to DEVICEFILES.
17941 * ps/devps/afmtodit: Remove -d option.
17942 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17943 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17944 * ps/devps/zapfdr.ps: Likewise.
17945 * ps/devps/TSymbol.ps: Likewise.
17947 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
17949 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17951 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
17953 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17954 then strip the first line if it starts with %.
17955 * Makefile: Add a comment about this.
17957 * man/tfmtodit.man: New file.
17958 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17959 * dvi/Makefile: Install tfmtodit in BINDIR.
17961 * dvi/tfmtodit.c (usage): Mention -v option.
17963 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
17965 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17966 * troff/node.c (troff_output_file::transparent_char): Don't call
17969 * eqn: Add check_tabs method to most box classes.
17970 * eqn/box.c (box::top_level): Call check_tabs.
17972 * eqn/script.c (script_box::output): Use \Z.
17973 * eqn/limit.c (limit_box::output): Use \Z.
17975 * eqn/box.c (box::top_level): Use itoa.
17977 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
17979 * dvi/tmac.dvi: Add font translations for CR, C, TT.
17980 * dvi/devdvi/Makefile: Don't make links to CW.
17982 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17984 * xditview/tmac.X: Likewise.
17986 * troff/node.c: Add font translation feature.
17987 (get_font_translation): New function.
17988 (symbol_fontno): Translate the font name.
17989 (mount_font_no_translate): Rename to mount_font to this.
17990 (mount_font): New function.
17991 (font_family::make_definite): Call mount_font_no_translate instead
17993 (mount_style): Translate the font name.
17994 (font_translate): New function.
17995 (init_font_requests): Bind "ftr" to font_translate.
17997 * ps/devps/prologue (SN): New procedure that rounds a position to
17998 the nearest (pixel + (.25,.25)).
17999 (DL): Use SN to round endpoints.
18001 * lib/version.c: Changed version to 0.5.
18003 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
18005 * Makefile: Move definition of PAGE to the very beginning, so that
18006 people are less likely to miss it.
18008 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
18010 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
18012 * troff/env.c (environment::choose_breakpoint): Make `can't find
18013 breakpoint' error a warning of type WARN_BREAK. Change message to
18014 `can't break line'.
18015 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
18017 * troff/input.c: Add WARN_BREAK to warning_table. Include
18018 WARN_BREAK in DEFAULT_WARNING_MASK.
18020 * tty/tmac.tty: Add definition of \(+-.
18022 * groff.sh: Remove `--' option to set command.
18024 * dvi/devdvi/texsy.map: Remove duplicate md entry.
18026 * ps/devps/eqnchar: Better definition of cdot using md.
18027 * dvi/devdvi/eqnchar: Likewise.
18028 * xditview/devX100/eqnchar: Likewise.
18029 * xditview/devX75/eqnchar: Likewise.
18030 * eqn/lex.c: Add definition of cdot.
18032 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
18034 * troff/input.c (get_optional_char): New function.
18035 * troff/input.c (set_page_character): Use get_optional_char(),
18036 rather than has_arg() and tok.get_char(1).
18037 * troff/env.c (tab_character, leader_character, hyphen_char,
18038 field_characters): Likewise.
18039 (margin_character): Likewise. Also always delete the
18040 margin_character_node.
18042 * troff/input.c (token::get_char): Use token::description.
18044 * troff/input.c (has_arg): Don't skip over tab and \}.
18045 * troff/number.c (start_number): Give a warning if the number
18046 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
18048 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
18050 * troff/input.c (empty_name_warning, non_empty_name_warning): New
18052 (get_name, get_long_name): Use these. Rename `warn' argument to
18055 * troff/node.c (get_fontno): Test that the symbol is not null.
18057 * troff/input.c (token::description): New function.
18058 * troff/number.c (parse_term): Use token::description in `numeric
18059 expression expected' message.
18060 * troff/groff.h: Add WARN_MISSING.
18061 * troff/number.c (start_number): New function.
18062 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
18063 get_incr_number): Use start_number().
18064 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
18066 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
18067 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
18069 * troff/input.c (token::get_char): Use WARN_MISSING.
18070 * troff/input.c (token::delimiter): Use token::description.
18071 * troff/env.c (environment_switch): Back out Aug 3 change.
18072 * troff/input.c (has_arg): Skip over \}s and tabs but give a
18074 * troff/token.h (token::tab): New function.
18075 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
18076 * troff/reg.c (alter_format): Likewise.
18077 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
18079 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
18081 * troff (most files): Redo warnings. Divide warnings into various
18082 categories; warning() has an additional first argument indicating
18083 the category it falls into.
18084 * troff/input.c (main): -w now takes an argument. New option -W.
18085 (enable_warning, disable_warning): New functions.
18087 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
18088 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
18090 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
18092 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
18093 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
18094 * xditview/devX75/eqnchar: Likewise.
18095 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
18097 * eqn/other.c: When bar or over applies to a single character
18098 don't produce an overline_box or an underline_box. Instead produce
18099 an accent_box or an underaccent_box, with the accent a line
18100 whose width is accent_width. New classes underaccent_box,
18101 overline_char_box and underline_char_box.
18102 * eqn/box.h: Move overline_box, underline_box, accent_box class
18103 declarations into eqn/other.c. Add declarations of
18104 make_underline_box, make_overline_box, make_accent_box.
18105 * eqn/eqn.y: Call make_overline_box, make_underline_box
18106 make_accent_box instead of constructors.
18107 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
18109 * eqn/other.c: Add accent_box::~accent_box.
18110 * eqn/box.h: Declare it.
18112 * groff.sh: With -Tps, use eqn -D.
18114 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
18116 (underline_box::output): Similarily.
18117 (accent_box::output): Use \Z.
18119 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
18122 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
18124 * troff/div.c (top_level_diversion::transparent_output(unsigned
18125 char)): Use asciify.
18126 * troff/input.c (asciify): Don't make it static.
18127 * troff/token.h (asciify): Declare it.
18129 * troff/input.c (get_name, get_long_name, token::get_char,
18130 token::delimiter): Add an extra default argument which says
18131 whether a warning should be printed.
18132 * troff: Pass a non-zero argument to one of these rather than
18133 printing a warning directly.
18135 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
18137 * troff: Consistently use symbol::is_null.
18139 * troff/dictionary.h: Move some inline functions into
18142 * troff/request.h: Move inline functions into input.c.
18143 (request_or_macro::invoke): Make it pure.
18145 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
18146 * troff/input.c (init_input_requests): Use class constant_int_reg.
18147 (class compatible_reg): Deleted.
18148 * troff/div.c (init_div_requests): Use class constant_int_reg.
18149 (class last_post_line_extra_space_reg): Deleted.
18151 * troff/env.c (tab_character): Don't change the tab character if
18152 we get an invalid argument.
18153 (hyphen_char): Similarily.
18155 * troff/reg.c (alter_format): Check that nm is not null.
18157 * Makefile, groff.sh: Make it possible to customize the commands
18158 used for printing PostScript and dvi files. Also make it possible
18159 to customize the path used by groff.sh.
18161 * eqn/eqn.y: Make `left' right associative.
18163 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
18165 * pic/pic.h: Added definition of M_SQRT2 for those systems that
18168 * pic/pic.h: Removed definition of INT_MAX.
18170 * troff/node.c (italic_corrected_node::vertical_extent): Omit
18173 * troff/input.c (token::next): Handle \R like \n.
18175 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
18177 * ps/tmac.pc (PSPIC): Simplify.
18179 * troff/env.c (tab_stops::to_string):
18180 * pic/pic.y (object_type_name):
18181 * pic/troff.c (simple_output::line):
18182 * pic/tex.c (tex_output::spline):
18183 * pic/object.c (object_spec::make_object):
18184 * tbl/main.c (process_data): Add cases to switch statements to
18185 avoid cfront warnings. (Some of these are spurious, since the
18186 switch already has a default case.)
18188 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
18189 `ps-'. Don't test systat; instead check number of arguments to
18192 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
18194 * macros/tmac.e: Do not decrease the page offset by 0.5i.
18196 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
18197 Unlink the file as soon as we have opened it, so that we don't
18198 have to bother with signal handlers.
18199 (handler): Deleted.
18200 (fatal_error_exit): Deleted.
18201 (main): Don't call signal.
18203 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
18205 * dvi/devdvi/Makefile: Use the -k option with S and MI.
18207 * pic/pic.y: If there is a label, or an nth construction before
18208 the first `.' in the argument to `with', ignore it and generate a
18210 * pic/lex.c (lex_warning): New function.
18212 * tbl/table.c (table::init_output): In section keep and release
18213 macro, use 0 indent when diverting and the correct indent when
18216 * troff/input.c (interpolate_number_format): Do not interpolate
18217 anything if the number register is not defined.
18219 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
18221 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
18223 * ps/devps/prologue (PICTURE): Set components of graphics state to
18224 their default values.
18226 * ps/devps/text.enc: Add trademark
18227 * ps/devps/textmap: Add names for club, spade, heart, diamond,
18228 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
18229 * ps/devps/symbolchars: Add names for summation and product.
18231 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
18232 suchthat. Add pp. Add upper-case letters.
18234 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
18235 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
18238 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
18239 rA (right angle bracket) to ra. Introduce names for double-headed
18240 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
18241 * ps/devps/textmap: Likewise for ps device.
18242 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
18243 * tty/devascii/R.proto: Rename lA to la and rA to ra.
18244 * tty/devascii/R.proto: Likewise.
18245 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
18247 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
18249 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
18251 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
18254 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
18256 * troff/div.c (when_request): Use symbol::is_null rather than
18257 has_arg to determine whether we have an argument.
18258 (change_trap): Remove the trap if we get an invalid number. Give
18259 an error if we don't get at least the macro name.
18260 (diversion_trap): Remove trap if we get an invalid name or number.
18262 * troff/env.c (environment_switch): Pop if we get an invalid
18263 symbol or numeric expression.
18265 * troff/input.c (do_define_macro): If EOF is encoutered while
18266 defining the macro, do tok.next() before returning.
18268 * troff/token.h (has_arg): Move definition from here, to ...
18269 * troff/input.c (has_arg): ... here
18271 * troff/env.c (space_size): Do nothing if we get an invalid argument.
18272 * troff/input.c (shift): Likewise.
18274 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
18277 * pic/troff.c (troff_output::start_picture): Comment out calls to
18280 * eqn/main.c (do_file): Subtract 1 from current_lineno if
18281 interpret_lf_args succeeds.
18283 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
18284 \\. This avoids problems with \$N.
18286 * groff.sh: Pass -C to preprocessors.
18288 * lib/lf.c (interpret_lf_args): Be more flexible.
18290 * tbl/main.c (main): Add -C option.
18291 (table_input::get): Do not recognize TE if followed by character
18292 other than a space or newline unless -C option given.
18293 (process_input_file): Likewise for lf, TS.
18294 (process_data): Likewise for lf in text blocks.
18296 * eqn/main.c (main): Add -C option.
18297 (do_file): Don't recognize EQ, EN or lf if followed by character
18298 other than space or newline unless -C option given.
18299 * eqn/lex.c (file_input::read_line): Similarily.
18300 * eqn/eqn.h: Declare compatible_flag.
18302 * etc/soelim.c (main): Add -C option.
18303 (interpret_lf_args): Use version in libgroff.
18306 * pic/main.c (main): Add -C option, which sets compatible_flag.
18307 (top_input::get), (top_input::peek): If -C option not given,
18308 do not recognize .PS/.PE/.PF/.lf if followed by a character
18309 other than space or newline.
18310 * pic/lex.c (file_input::read_line): Similarily.
18311 * pic/pic.h: Add declaration of compatible_flag.
18313 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
18315 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
18317 * troff/node.c, troff/node.h: Add `asciify' methods to classes
18318 derived from node. New class space_char_hmotion_node.
18319 * troff/input.c (asciify_macro): New function.
18320 * troff/input.c (init_input_requests): New request `asciify' bound
18322 * macros/mm.diff: New file.
18323 * Makefile: In install.mm target use `patch' to apply
18326 * troff/input.c (macro::print_size): Just print the size in bytes.
18328 * troff/div.c (return_request): Correct the argument
18331 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
18333 * troff/node.h (class composite_node): Add sz member.
18334 * troff/node.c (composite_node::size): Return sz.
18335 * troff/input.c (macro_to_node): Use the initial size in the
18336 environment as the size of the composite_node.
18338 * troff/node.c (node::zero_width_tprint): Provide a reasonable
18341 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
18343 * troff/div.c (change_trap): If we get a bad number expression,
18346 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
18348 * lib/matherr.c (matherr): Define this only if math.h defines
18351 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
18353 * troff/div.c (macro_diversion::distance_to_next_trap): If there
18354 no diversion trap return vunits(INT_MAX - vresolution).
18356 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
18358 * troff/input.c (do_zero_width): New implementation that doesn't
18359 use a temporary environment. Use instead:
18360 (token::add_to_node_list): New function.
18361 * troff/env.c (environment::get_prev_char_height),
18362 (environment::get_prev_char_height),
18363 (environment::get_prev_char_skew): New functions.
18364 (environment::get_prev_char): New function.
18365 (environment::get_prev_char_width): Change to use get_prev_char.
18366 (init_env_request): Implement new registers .cht, .cdp, .csk.
18367 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18368 \Z being processed in a separate environment.
18370 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
18372 * tbl/table.c: Removed TABLE_BOTTOM_REG.
18374 * tbl/table.c (table::init_output): In the section release macro,
18375 give a warning message if the section won't fit on one page.
18377 * tbl/table.c (table::do_top): Emit table keep only if table is
18379 (table::do_bottom): Likewise for table release.
18380 (table::table), (table::add_vertical_rule): Remove reference to
18382 * tbl/table.h: Remove keep member.
18384 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18385 SECTION_RELEASE_MACRO, if there's not enough space before the next
18386 trap to output the diversion, call T# ourselves, set
18387 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18388 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
18389 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
18390 vertical position and return to it before turning traps on again.
18392 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
18394 * troff/node.c, troff/node.h: In classes derived from node,
18395 replace prev_char_width method by last_char_node method.
18396 * troff/env.c (environment::get_prev_char_width): Use
18397 node::last_char_node rather than node::get_prev_char_width.
18399 * Makefile: Added comment about -fno-inline on 68030-based
18402 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18403 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18404 expressions using sizeof to int.
18405 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18407 * macros/tmac.e (TS): Don't move @f back past the current
18410 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
18412 * ps/ps.c (main): Buffer stderr.
18413 * dvi/dvi.c (main): Likewise.
18414 * tty/tty.c (main): Likewise.
18416 * ps/ps.c (ps_printer::do_import): Improve error handling.
18418 * troff/input.c (abort_request): Use asciify.
18420 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18421 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18422 type of first argument int rather than char. This works around a
18423 bug on the 68030 based Apollo using g++ 1.37.1.
18425 * tbl/table.h (class table): Add `keep' member.
18426 * tbl/table.c (table::table): Initialize `keep'.
18427 (table::add_vertical_rule): Set `keep' to 1.
18428 (table::do_top): Only emit table keep macro is `keep' is non-zero.
18429 (table::do_bottom): Likewise for table release macro.
18430 (table::do_row): Emit section keep macro even if the row is 0.
18432 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
18434 * macros/tmac.e (@C): Preserve the font family across the change
18437 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
18439 * lib/font.c: Initialize font::hor and font::vert to 1.
18440 (font::load_desc): Check the values of font::hor and font::vert.
18442 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18443 be included in a C compilation.
18444 (iftoa): Use INT_DIGITS. Include lib.h.
18446 (as_string): Likewise.
18447 * tbl/table.c: Removed definition of INT_DIGITS.
18448 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18449 * troff/input.c (input_input_requests): Likewise.
18450 * ps/ps.c (make_encoding_name): Likewise.
18451 (ps_printer::set_style): Likewise.
18452 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18454 * tty/devascii/R.proto: Map fm onto '.
18455 * tty/devlatin1/R.proto: Likewise.
18457 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
18459 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18460 argument to \w is at a different input level.
18462 * tbl/table.c (table::init_output): Define a new macro
18463 REPEATED_VPT_MACRO, like vpt but if in a diversion also
18464 transparently outputs itself.
18465 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18467 (table::do_row): Likewise.
18469 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18470 TRANSPARENT_STRING_NAME.
18472 * tbl/table.c (table::init_output): In the table release macro
18473 print an error message and don't produce any output if after
18474 issuing the need request the table still will not fit. Also
18475 remove the diversion after bringing it back.
18477 * tbl/table.c (table::init_output): Define a new macro
18478 REPEATED_MARK_MACRO, like mk but if in a diversion also
18479 transparently outputs itself.
18480 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18481 is necessary because .TH might not call .T#.
18482 (table::do_top): Likewise TOP_REG.
18483 (table::define_bottom_macro): If TOP_REG is no longer valid, use
18484 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18485 table header might contain just the two top rules.
18487 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
18489 * troff/div.c: Implement new request `ptr' to print all traps.
18491 * troff/env.c (init_env_requests): Implement `.tabs' reg with
18492 init_string_env_reg.
18493 * troff/env.c (class tab_reg): Deleted.
18495 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
18497 * troff/div.c: New number register .pn returns the number of the
18498 next page as set by the pn request.
18500 * macros/tmac.an: Redid headers and footers. Number each manual
18501 entry starting from 1 unless \nC is > 0, like Sun. Added an
18502 optional 5th argument to .TH which specifies the manual name and
18503 appears in the center of the header. Understand the X, P and D
18504 registers like Sun.
18506 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
18508 * troff/env.c (init_env_requests): New number register `.lt' to
18509 return the title length.
18511 * troff/node.h (class transparent_dummy_node): New class.
18512 * troff/node.c (class transparent_dummy_node): Provide member
18514 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18517 * troff/input.c (token::next): New escape sequence \).
18518 * troff/input.c (get_copy): Recognize \) in copy mode.
18520 * troff/input.c (input_stack::clear): New function.
18521 * troff/input.c (exit_request): Use input_stack::clear.
18523 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18524 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18526 * troff/env.c: Move set_page_character to input.c. Move
18527 page_character to input.c also.
18528 * troff/env.c (title): Split off the reading of the parts of the
18529 title into read_title_parts.
18530 * troff/input.c (read_title_parts): New function. Check the
18531 input_level when testing whether a token matches the delimiter.
18533 * troff/input.c (exit_request): New function.
18534 * troff/input.c (init_input_requests): Bind ex request to
18535 exit_request rather than exit_groff.
18537 * troff/input.c (exit_groff): Call tok.next() before
18538 process_input_stack().
18540 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
18542 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18543 * troff/env.h: ditto.
18544 * troff/input.c: ditto.
18546 * troff/env.c (environment::is_empty): Test pending_lines.
18548 * troff/env.c (environment::have_pending_lines): Removed.
18550 * troff/input.c: Add request to flush pending lines from the
18553 * troff/env.c, troff/env.h: Add automatic widow control feature.
18555 * troff/input.c (exit_groff): Do process_input_stack() after
18556 do_break() but before setting exit_flag to 2.
18558 * troff/input.c: Remove FLUSH_PENDING_LINES and
18559 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18560 environment after END_TRAP token seen, but only if there aren't
18561 any more traps still unfinished.
18562 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18564 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
18566 * troff/env.c: Rename the `retain_size' member of class
18567 pending_output_line to `no_fill'.
18569 * troff/env.c (title): When the line is output, make the
18570 retain_size argument !fill.
18572 * troff/node.h: Add `hyphenated' member to struct breakpoint.
18573 * troff/node.c (space_node::get_breakpoints),
18574 (dbreak_node::get_breakpoints): Fill this in.
18575 * troff/env.c: Allow specification of maximum number of
18576 consecutive hyphenated lines.
18578 * troff/env.c (environment::is_empty): Add test for !current_tab.
18580 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
18582 * troff/env.c (environment::hyphenate_line): Don't completely give
18583 up if the word is not to be hyphenated; continue so that breaks
18584 can be made at break_char_node's.
18586 * lib/lib.h: Only define INT_MAX if it's not already defined;
18587 undef INT_MIN if it's already defined.
18589 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18591 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18592 This works around a bug in AT&T C++ 2.0 used with an ANSI C
18595 * macros/tmac.an (an-header): Set no-space mode.
18597 * macros/tmac.an (TH): Start a new page if necessary.
18599 * Started using ChangeLog at version 0.4.
18602 version-control: never