1 2005-06-26 Bernd Warken
3 * src/devices/xditview/gxditview.man: More minor fixes.
5 2005-06-24 Werner Lemberg <wl@gnu.org>
7 * src/preproc/pic/troff.cpp (troff_output::set_fill,
8 troff_output::set_color, troff_output::reset_color): Use .bcolor and
9 .fcolor instead of \m and \M, respectively.
11 2005-06-23 Bernd Warken
13 * src/devices/xditview/gxditview.man: More minor fixes.
14 * README: Formatting issues.
15 Mention some problems with Debian.
17 2005-06-23 Bernd Warken
19 * src/devices/xditview/gxditview.man: Revised and improved.
21 2005-06-22 Werner LEMBERG <wl@gnu.org>
23 Another round in fixing getopt problems. Hopefully the last one!
24 This time we use the getopt stuff from gnulib and define a prefix
25 unconditionally so that there are no collisions with any other
26 getopt implementations. This is a slight waste of space in case
27 we already use a GNU getopt implementation, but on
28 the other hand it really simplifies life.
30 * src/include/getopt.h: Use gnulib version.
32 * src/include/getopt_int.h: Use gnulib version.
34 * src/include/groff-getopt.h: Removed. Obsolete now.
36 * src/include/lib.h: Regarding getopt, don't handle any platform
37 specially; just include getopt.h.
38 (__GETOPT_PREFIX): Define (before getopt.h).
40 * src/include/Makefile.sub (HDRS): Updated.
42 * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
45 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
48 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
49 (__GETOPT_PREFIX): Define (before getopt.h).
51 2005-06-21 Werner LEMBERG <wl@gnu.org>
53 * src/include/lib.h: Provide a fix for Mac OS X to not include
56 2005-06-20 Denis M. Wilson <dmw@oxytropis.plus.com>
58 * font/devps/prologue.ps (EP): Dont' use `bind'. Reason: Using
59 `bind' to define a procedure which contains `showpage' means that an
60 invocation of `showpage' may execute wrongly (the exact effect
61 depending on the interpreter). Not usually a problem except under
62 transformations, such as combining pages.
63 (PEND): Don't call `clear'. Reason: Using `clear' in the definition
64 of /PEND means that stack underflow will occur if the stack is
65 deliberately non-empty before document inclusion. If included
66 files are found to be generally badly behaved, we could replace the
67 `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
68 never found this necessary).
70 2005-06-20 Jörgen Grahn <jgrahn@algonet.se>
72 * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
73 earlier to get correct error message.
75 2005-06-16 Bernd Warken
76 * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
78 2005-06-15 Werner LEMBERG <wl@gnu.org>
80 Another try to update getopt files. This time we add a dummy
81 gettext.h file to satisfy the dependency.
83 * src/include/getopt.h, src/libs/libgroff/getopt.c,
84 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
86 * src/include/getopt_int.h: New file (from GNU libc CVS).
88 * src/include/gettext.h: Dummy file which just defines a gettext()
91 * src/include/groff-getopt.h: Updated.
93 * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
96 * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
97 `const' keywords in return value.
99 * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
100 Remove redundant variable `old'.
101 (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
103 * src/preproc/tbl/main.cpp (process_table): Remove redundant
107 Fix more friend name injection problems since modern C++ compilers
108 fail otherwise. We simply provide (global) declarations for all
109 functions declared as friends. This is not really necessary but
112 * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
113 peek_char, and get_location.
115 * src/preproc/refer/ref.h: Provide declarations for
116 compare_reference, same_reference, same_year, same_date,
117 same_author_last_name, and same_author_name.
119 * src/roff/troff/div.h: Provide declarations for do_divert and
122 * src/roff/troff/env.h: Provide declarations for title_length,
123 space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
124 vertical_spacing, post_vertical_spacing, line_spacing, line_length,
125 indent, temporary_indent, do_underline, do_input_trap, set_tabs,
126 margin_character, no_number, number_lines, leader_character,
127 tab_character, hyphenate_request, no_hyphenate,
128 hyphen_line_max_request, hyphenation_space_request,
129 hyphenation_margin_request, line_width, tabs_save, tabs_restore,
130 line_tabs_request, widow_control_request, and do_divert.
132 * src/roff/troff/input.cpp: Provide declaration for chop_macro.
134 * src/roff/troff/node.cpp: Provide declarations for class
136 Provide declaration for make_tfont.
138 2005-05-29 Werner LEMBERG <wl@gnu.org>
140 * doc/fdl.texi: Updated to version 1.2. Reported by Bernd Warken.
142 2005-05-28 Werner LEMBERG <wl@gnu.org>
144 * contrib/pdfmark/Makefile.sub (.ms.pdf): Use `--stylesheet', not
147 * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
148 redundant semicolons.
150 * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
151 src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
152 Define `MLIB'. Some compilers need this for linking with libgroff.
154 2005-05-27 Werner LEMBERG <wl@gnu.org>
156 * MANIFEST, README, doc/webpage.ms: Updated.
158 2005-05-26 Werner LEMBERG <wl@gnu.org>
160 * All affected files: Update postal address of FSF.
162 2005-05-25 Keith Marshall <keith.d.marshall@ntlworld.com>
165 * README: More fixes.
167 * README.CVS: Removed. Its contents is now part of the README file.
169 2005-05-21 Werner LEMBERG <wl@gnu.org>
171 * README: Updated. Based on a patch from Bernd Warken.
173 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
175 Miscellaneous script portability enhancements.
177 * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
178 generated conftest.sh script, conforming to portability
179 recommendation in autoconf docs.
180 * configure: Likewise, for code generated by GROFF_CSH_HACK.
181 * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
182 to portability recommendation in autoconf docs.
183 * contrib/gdiffmk/gdiffmk.sh: Likewise.
184 * contrib/gdiffmk/tests/runtests.in: Likewise.
185 * contrib/grap2graph/grap2graph.sh: Likewise.
186 * contrib/groffer/groffer.sh: Likewise.
187 * contrib/mm/mmroff.pl: Likewise.
188 * contrib/mom/momdoc/appendices.html: Likewise.
189 * contrib/pic2graph/pic2graph.sh: Likewise.
190 * font/devps/generate/afmname: Likewise.
191 * src/devices/xditview/ad2c: Likewise.
192 * src/preproc/eqn/neqn.sh: Likewise.
193 * src/roff/grog/grog.pl: Likewise.
194 * src/roff/grog/grog.sh: Likewise.
195 * src/roff/nroff/nroff.sh: Likewise.
196 * PROBLEMS: Likewise, in embedded script examples.
198 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
200 Improve portability of `pdfroff' shell script.
202 * arch/misc/shdeps.sh: Add space in shebang, conforming to
203 portability guidelines in `autoconf' docs.
204 (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
205 initialization code. Used by contrib/pdfmark/pdfroff.sh's
206 `searchpath' function.
208 2005-05-14 Werner LEMBERG <wl@gnu.org>
210 * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
211 contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
212 needed for newer ImageMagick versions.
214 2005-05-07 Werner LEMBERG <wl@gnu.org>
216 * src/preproc/refer/refer.man: Many small typographic fixes.
218 2005-05-06 Jeff Conrad <jeff_conrad@msn.com>
220 * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
221 Use `char *' cast for a_delete.
223 2005-05-03 Werner LEMBERG <wl@gnu.org>
225 * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
226 src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
228 2005-05-03 Jeff Conrad <jeff_conrad@msn.com>
230 * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
231 `a_delete' for `const char *'.
233 2005-05-03 Werner LEMBERG <wl@gnu.org>
235 * src/devices/grohtml/post-html.cpp,
236 src/devices/grohtml/html-table.cpp,
237 src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
238 Replace malloc/free with new/delete/a_delete.
240 * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
241 are prohibited with ANSI C++.
242 (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
243 function has a variable number of arguments).
245 * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
246 Simplify function and update all callers.
248 2005-05-02 Werner LEMBERG <wl@gnu.org>
250 Undo getopt changes from 2005-04-30. We don't want a dependency
253 * src/include/getopt_int.h: Removed.
255 * src/include/getopt.h, src/include/groff-getopt.h,
256 src/include/Makefile.sub, src/libs/libgroff/getopt.c,
257 src/libs/libgroff/getopt1.c: Revert to previous version.
260 * src/include/nonposix.h (access) [_MSC_VER]: New macro.
262 * src/include/posix.h (F_OK): Define conditionally.
264 * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
265 different variable name in second `for' loop to avoid MSVC compiler
268 2005-04-30 Werner LEMBERG <wl@gnu.org>
270 AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
272 * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
273 * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
274 * configure, src/include/config.hin: Regenerated.
281 * src/include/getopt.h, src/libs/libgroff/getopt.c,
282 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
284 * src/include/getopt_int.h: New file (from GNU libc CVS).
286 * src/include/groff-getopt.h: Updated.
288 * src/include/Makefile.sub (HDRS): Add getopt_int.h.
291 * font/devutf8/NOTES: Updated.
293 2005-04-28 Werner LEMBERG <wl@gnu.org>
295 Bug fix for Win32 relocatable code. Based on a patch from Keith
298 * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
301 * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
302 (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
304 2005-04-28 Keith Marshall <keith.d.marshall@ntlworld.com>
306 Correct `gnu.eps' handling for build from distribution tarball, with
307 separate source and build directories.
309 * doc/Makefile.sub: (examples.stamp): New target; forces copy of
310 grnexmpl.g, groff.css and gnu.eps from source to build directory;
311 generate gnu.eps from gnu.xpm if required; touch examples.stamp.
312 (prepare_examples): Make it depend on examples.stamp.
313 (CLEANADD): Add examples.stamp.
315 2005-04-27 Werner LEMBERG <wl@gnu.org>
319 position: '(' position ')'
323 * src/preproc/pic/pic.y (position, position_not_place): Handle
324 additional parentheses.
326 * doc/pic.ms: Updated.
328 2005-04-23 Larry Jones <lawrence.jones@ugs.com>
330 * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
332 2005-04-18 Werner LEMBERG <wl@gnu.org>
334 * src/roff/groff/pipeline.c: Don't include ctype.h.
336 2005-04-13 Werner LEMBERG <wl@gnu.org>
338 * src/roff/nroff/nroff.man: Document option `-M'.
340 2005-04-13 Bruce Lilly <blilly@erols.com>
342 * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
344 2005-04-01 Kees Zeelenberg <kzlg@users.sourceforge.net>
345 Werner LEMBERG <wl@gnu.org>
347 Add binary relocation support for Windows platforms.
349 * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
351 * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
353 * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
354 (search_path::search_path, search_path::open_file_cautious): Use
357 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
358 src/include/Makefile.sub (HDRS): Updated.
360 2005-04-01 Werner LEMBERG <wl@gnu.org>
362 * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
365 * src/libs/libgroff/font.cpp: Replace strdup with strsave.
367 * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
368 lib.h already does it.
370 * src/libs/libgroff/maxpathname.cpp: New file, defining
373 * src/include/lib.h: Add prototype for path_name_max.
375 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
377 * src/include/nonposix.h (PATH_EXT): New macro.
379 2005-03-28 Werner LEMBERG <wl@gnu.org>
381 Add support for double- and zero-width characters in grotty.
383 * src/devices/grotty/tty.cpp (glyph): Add width.
384 (tty_printer::make_underline, tty_printer::make_bold,
385 tty_printer::add_character): Add parameter to pass character width.
387 (tty_printer::end_page): Increase hpos by actual character width.
389 * font/devutf8/R.proto: Specify zero width for non-spacing
392 * tmac/unicode.tmac: Remove definitions for non-spacing entities.
394 * Makefile.comm (extraclean): Remove more junk files.
396 2005-03-25 Werner LEMBERG <wl@gnu.org>
398 * configure.ac: Undo change from 2005-03-24.
399 * configure: Regenerated.
401 2005-03-24 Werner LEMBERG <wl@gnu.org>
403 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
404 (dist): Search Makefile while descending into $(EXTRADIRS).
406 * doc/Makefile.in (.PHONY): Add.
407 (clean): Don't remove *.png and *.eps.
409 (realclean): Remove *.png and *.eps.
410 (extraclean): Depend on distclean.
412 * configure.ac: Add copyright.
413 Handle contrib/pdfmark/Makefile.
415 * configure: Regenerated.
417 2005-03-18 Larry Kollar <kollar@alltel.net>
419 Add numbered and definition lists to www.tmac.
421 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
422 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
423 auxiliary string registers.
424 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
425 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
426 (www-level): Removed.
427 (www-level1, www-level2, www-level3): Initialize to empty.
428 (www-level0, www-level4, www-level5, www-level6, www-level7,
429 www-level8, www-level9): New string registers.
430 (www-push-li, www-pop-li): New macros.
431 (www-push-level, www-pop-level): Renamed to...
432 (www-push-ul-level, www-pop-ul-level): This.
434 (www-push-ol-level, www-pop-ol-level): New macros.
436 (OLS, OLE, DLS, DLE): New user macros.
437 (LI): Removed. It is aliased to one of...
438 (www-li-ul, www-li-ol, www-li-dl): New macros.
440 * tmac/groff_www.man: Document new macros.
444 2005-03-18 Werner LEMBERG <wl@gnu.org>
446 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
447 doc-operating-system-NetBSD-2.0.2): New strings.
449 * tmac/groff_mdoc.man: Updated.
451 2005-03-17 Werner LEMBERG <wl@gnu.org>
453 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
455 2005-03-17 Werner LEMBERG <wl@gnu.org>
457 * src/libs/libgroff/hypot.c: Renamed to...
458 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
460 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
462 * src/include/lib.h: Updated.
464 2005-03-16 Werner LEMBERG <wl@gnu.org>
466 Add workaround for broken hypot() on Interix.
468 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
470 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
471 (CSRCS): Add `hypot.c'.
473 * src/include/lib.h: Declare `groff_hypot'.
475 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
478 * src/preproc/pic/pic.h: Don't declare `hypot'.
480 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
482 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
484 * src/devices/grohtml/post-html.cpp
485 (html_printer::lookahead_for_tables): End .ce properly to avoid a
488 2005-03-15 Werner LEMBERG <wl@gnu.org>
490 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
492 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
494 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
496 2005-03-14 Werner LEMBERG <wl@gnu.org>
498 Add Cyrillic support to devutf8 and devhtml.
500 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
502 * tmac/unicode.tmac: New file.
504 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
506 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
510 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
512 * src/libs/libdriver/printer.cpp (check_for_output_error): New
513 function. It has been introduced to catch peculiar error contexts
514 on MS-Windows platforms.
516 2005-02-28 Werner LEMBERG <wl@gnu.org>
518 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
521 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
523 * configure: Regenerated.
527 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
529 Integrate `pdfmark' into normal groff build system;
530 install macro `pdfmark' packages, build and install `pdfroff',
531 and PDF format documentation.
533 * Makefile.comm: Add PDFDOCDIR.
535 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
536 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
537 (unstall_dirs): Add pdfdocdir.
539 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
540 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
541 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
542 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
543 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
544 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
546 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
547 use of GROFF_AWK_PREFS.
548 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
549 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
551 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
552 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
553 also by modified GROFF_HTML_PROGRAMS).
555 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
557 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
559 (html_text::done_para): Unset `start_space'.
560 (html_text::remove_para_align): Call `retrieve_para_space' for the
563 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
565 (html_printer::do_check_center): Emit vertical space if necessary.
567 * src/roff/troff/env.cpp (environment_switch): Preserve
568 `seen_space', `seen_eol', and `suppress_next_eol' while switching
571 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
574 2005-02-20 Werner LEMBERG <wl@gnu.org>
576 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
579 2005-02-17 Werner LEMBERG <wl@gnu.org>
581 * doc/pic.ms, man/groff.man: Fix typos.
583 * doc/groff.texinfo: Fix typos.
584 (\LEmacro): Get proper mathematical spacing.
586 2005-02-16 Werner LEMBERG <wl@gnu.org>
588 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
589 * configure: Regenerated with autoconf 2.59b.
591 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
593 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
594 html_printer::start_font): Fix handling of preformatted text.
596 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
598 These patches modify the indentation implementation to use `<p
599 style=margin-left: n%>'. Many thanks to Peter and Larry for
600 suggesting this solution. Grohtml only uses tables for `.IP' and
601 related tags when the first operand has a short width.
603 Similarly, they modify all vertical space code. By default, grohtml
604 sets up a style sheet which uses no vertical space between `table',
605 `pre', and `p' tags. It forces spaces when it needs them using
606 `style="margin-top: 1em"'.
608 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
609 (html_table::emit_table_header, html_table::emit_new_row):
611 (html_table::set_space): New function.
612 (html_indent::html_indent): Don't set `is_used'.
613 (html_indent::begin): Rewritten.
614 (html_indent::end): Remove code in function.
616 * src/devices/grohtml/html-table.h: Updated.
617 (html_table): Make `out' public.
619 * src/devices/grohtml/html-text.cpp (html_text::html_text):
620 Initialize `start_space' with FALSE.
621 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
622 (html_text::issue_tag): Add argument to handle space style.
623 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
624 (html_text::flush_text): Don't set `start_space'.
625 (html_text::push_para): Don't set `p->really_issued'.
626 (html_text::do_emittext): Updated.
627 (html_text::do_para): Add paremeter to handle space.
629 (html_text::retrieve_para_space): New function.
631 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
632 (tag_definition): Remove `really_issued'.
633 (html_text): Updated.
635 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
636 `current_column' and `row_space'.
638 (html_printer::emit_raw, html_printer::write_header,
639 html_printer::do_indent, html_printer::do_check_center,
640 html_printer::do_tab_ts): Handle vertical space.
641 (html_printer:do_tab_te, html_printer::do_end_para): Call
643 (html_printer::do_col): Rewritten.
644 (html_printer::flush_globs): Remove debugging code.
645 (html_printer::is_line_start): New function.
646 (html_printer::start_font): Use `is_line_start'.
647 (html_printer::writeHeadMetaStyle): New function.
648 (html_printer::do_file_components, html_printer::~html_printer):
649 Call `writeHeadMetaStyle'.
651 * tmac/www.tmac (www-handle-percent): New macro.
652 (MPIMG): Handle percent values for width and height parameters.
655 * tmac/groff_www.man: Updated.
657 2005-02-14 Werner LEMBERG <wl@gnu.org>
659 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
660 $psname and $italic_angle.
661 Immediately restart file input loops if `split' returns an empty
664 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
665 Werner LEMBERG <wl@gnu.org>
667 Update afmtodit to better support Unicode (Michail).
668 Update afmtodit to use Perl 5 syntax (Werner).
670 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
672 Decorate variables with `my' where necessary.
673 Use `defined' where necessary to avoid warnings.
674 Don't use `do' for subroutine calls.
675 Other minor syntax updates.
676 Check for both `uXXXX[X[X]]' and `uniXXXX'.
677 Handle glyph variants properly.
678 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
681 * src/utils/afmtodit/afmtodit.man: Updated.
683 2005-02-13 Werner LEMBERG <wl@gnu.org>
685 Make groff.texinfo work with texinfo 4.8.
687 * doc/groff.texinfo (@Var): Use @r and @slanted.
688 (@defdummy, @Def*): Use @c to avoid empty lines.
689 (\angles): Replaced with...
690 (\Langlemacro, \Ranglemacro): New TeX macros.
691 (@Langlemacro, @Ranglemacro): New variables defined with @set.
692 (@angles): Use @Langlemacro and @Ranglemacro.
693 (\LE): Replaced with...
694 (\LEmacro): New TeX macro.
695 (@LEmacro): New variable defined with @set.
697 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
698 variables defined with @set.
699 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
700 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
705 * doc/texinfo.tex: Update to texinfo version 4.8.
707 * README.CVS: Updated.
709 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
711 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
714 2005-02-05 Werner LEMBERG <wl@gnu.org>
716 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
717 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
720 2005-02-01 Werner LEMBERG <wl@gnu.org>
722 * src/roff/groff/groff.man: Add information about paper size.
724 2005-01-25 Werner LEMBERG <wl@gnu.org>
726 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
729 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
731 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
733 (Re): Emit a warning if called without `.Rs'.
734 (doc-finish-reference): Use parameter for decreasing
735 `doc-reference-count'.
736 (doc-print-reference): Pass specific count parameters to
737 `doc-finish-reference'.
739 2005-01-21 Werner LEMBERG <wl@gnu.org>
741 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
742 Reset pointers to zero after deallocation. This fixes a crash
743 if a driver is called with multiple input files. Reported by
744 Ken Chilton <ken@chiltonfamily.org>.
746 * src/devices/grops/grops.man: Add more info on DSC.
748 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
750 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
753 2005-01-17 Werner LEMBERG <wl@gnu.org>
755 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
756 against division by zero.
758 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
760 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
762 2004-12-19 Werner LEMBERG <wl@gnu.org>
764 * install-sh: New version; taken from texinfo CVS.
766 2004-12-17 Werner LEMBERG <wl@gnu.org>
768 * tmac/devtag.tmac: Protect against loading twice.
769 Protect agains compatibility mode.
770 * tmac/www.tmac: Protect against loading twice.
771 Load `devtag.tmac' before switching off compatibility mode.
772 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
774 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
776 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
777 * configure: Updated.
779 2004-12-15 Thomas Klausner <wiz@netbsd.org>
781 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
783 2004-12-15 Werner LEMBERG <wl@gnu.org>
785 Make `test-groff' work again -- previously, wrong paths have been
786 used. Additionally, it can now be called from anywhere.
788 * test-groff.in: Don't test for groff binary. This is no longer
789 necessary since the proper paths are determined by `configure'.
790 (EXEEXT): Removed. No longer used.
791 (srcdir, builddir): Use values provided by the configure script.
792 (XENVIRONMENT): Updated.
796 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
798 Make .tag and .taga work for all devices (but only grohtml actually
801 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
802 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
803 html_printer::handle_assertion): Don't use hard-coded string
805 (html_printer::lookahead_for_table): Reset `tbl' properly if
807 (html_printer::devtag): New function, handling `devtag'.
808 (html_printer::special): Don't handle `html-tag'.
810 * src/include/printer.h, src/libs/libdriver/printer.cpp
811 (printer::devtag): New virtual function.
813 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
816 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
817 src/roff/troff/node.cpp: s/html-tag/devtag/.
819 * src/roff/troff/input.cpp (tag, taga): Always call
822 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
823 macros instead of HTML-TAG*.
825 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
827 * tmac/www.tmac: Load devtag.tmac.
828 Replace HTML-TAG* macros with DEVTAG* macros.
829 (HTML, HTML-NS): Changed definitions.
831 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
833 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
835 2004-12-10 Werner LEMBERG <wl@gnu.org>
837 Import Mike's `gdiffmk' package.
839 * contrib/gdiffmk/*: New files.
840 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
843 2004-12-08 Werner LEMBERG <wl@gnu.org>
845 Import Keith's `pdfmark' package. Integration is very preliminary.
847 * contrib/pdfmark/*: New files.
848 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
851 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
853 Fix a bug with title handling in HTML.
855 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
856 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
858 (html_printer::handle_tag_within_title): New function.
859 (html_printer::do_title): Use it.
861 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
862 (cov*tl-au-print): Emit `.eo.tl' tag.
864 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
866 * man/groff_char.man: Minor imrovements.
868 2004-12-04 Werner LEMBERG <wl@gnu.org>
870 * src/preproc/eqn/eqn.man: Revised.
872 2004-11-25 Werner LEMBERG <wl@gnu.org>
874 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
878 Remove X_NOT_STDC_ENV conditional.
879 (Version_string, program_name): New global variables.
880 (groff_flag): Removed.
882 (usage): Take a stream as argument.
885 (main): Add `long_options' array for `--help' and `--version'.
886 Make `-g' a dummy option.
887 Handle `-v' and unknown options.
888 Remove unused `position' variable.
890 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
891 (XLIBS): Add LIBGROFF.
893 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
896 * src/devices/xditview/Dvi.c (default_font_map): Split into three
897 parts to avoid compiler warning.
898 (resources): Don't initialize with `default_font_map'.
899 (ClassInitialize): Initialize first element of `resources'.
901 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
904 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
905 src/utils/pfbtops/pfbtops.man: Revised, updated.
907 * configure.ac: Generate src/utils/xtotroff/Makefile.
908 * configure: Regenerated.
910 2004-11-24 Werner LEMBERG <wl@gnu.org>
912 First fixes to get produce HTML.
914 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
917 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
918 (HR, LI): Use `HTML</p>', not `HTML'.
920 * doc/webpage.ms: Minor updates.
922 2004-11-23 Larry Kollar <kollar@alltel.net>
924 Add option -S grohtml to determine the file split level.
926 * src/devices/grohtml/post-html.cpp (split_level): New global
928 (html_header::determine_header_level): Use split_level.
929 (main): Handle `-S' command line option.
932 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
934 * src/devices/grohtml/grohtml.man: Document it.
939 2004-11-23 Y T <doarhop@hotmail.com>
941 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
942 the volume and number refer entries.
944 2004-11-22 Werner LEMBERG <wl@gnu.org>
946 * src/devices/grohtml/html-table.cpp
947 (html_table::emit_table_header): Don't emit `cols' attribute which
948 doesn't exist in HTML 4.0 and is thus invalid.
950 * NEWS: More minor fixes and updates.
952 2004-11-18 Werner LEMBERG <wl@gnu.org>
954 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
955 (HTML</p>): Minor clean-up.
957 * tmac/groff_www.man: Updated.
959 * src/devices/grohtml/grohtml.man: Revised and updated.
963 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
965 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
967 (html_printer::do_links): Fix rules generation around automatic
970 * tmac/www.tmac (LK): Use HTML-TAG-NS.
972 No longer emit empty line for non-HTML devices.
974 2004-11-17 Werner LEMBERG <wl@gnu.org>
976 * doc/Makefile.in (prepare_examples, webpage.html): Handle
979 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
980 prepare_examples, webpage.html): Handle `groff.css'.
982 2004-11-15 Werner LEMBERG <wl@gnu.org>
984 * NEWS, README, doc/webpage.ms: Updated.
986 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
988 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
990 * src/include/printer.h (printer): Remove virtual function
992 Update all source files.
994 * src/devices/grohtml/post-html.cpp (html_printer): New member
995 function `round_width'.
997 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
999 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
1000 column key letter suffix.
1002 2004-10-14 Werner LEMBERG <wl@gnu.org>
1004 * Makefile.in (check): Depend on `site.exp' and `docheck'.
1005 (docheck): Run dejagnu's `runtest' if it exists.
1006 (site.exp): Create dejagnu configuration file.
1008 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
1010 2004-10-13 Werner LEMBERG <wl@gnu.org>
1012 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
1013 src/devices/grohtml/post-html.cpp (make_val,
1014 html_printer::handle_state_assertion): Fix compiler warnings.
1016 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
1017 (diversion::diversion): Fix order of initializers.
1019 * src/roff/troff/div.h: Don't include `mtsm.h'.
1021 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
1022 (environment::environment): Fix order of initializers.
1023 (environment::make_tag, environment::construct_format_state): Fix
1026 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
1027 (input_iterator::input_iterator, macro::macro): Fix order of
1030 * src/roff/troff/mtsm.cpp: Include only necessary header files.
1031 (state_set::add, state_set::val): Fix compiler warnings.
1033 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
1034 (bool_value_state, int_value_state, units_value_state,
1035 string_value_state): Remove comma after last element which causes
1036 an error with g++ 3.3.3.
1038 * src/roff/troff/node.cpp: Include `stringclass.h'.
1039 (hline_node::hline_node, vline_node::vline_node,
1040 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
1042 (zero_width_node::zero_width_node): Fix order of initializers.
1044 * src/roff/troff/node.h: Don't include `mtsm.h'.
1045 (hmotion_node): Fix compiler warnings.
1047 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
1049 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
1051 * doc/groff.css: New file.
1053 * doc/webpage.ms: Use `groff.css'.
1056 * tmac/an-old.tmac (need_eo_h): New number register.
1057 (TH): Emit `.eo.tl' tag after title.
1058 (SH): Set `need_eo_h'.
1059 (an-trap): Handle `need_eo_h'.
1060 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
1062 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
1063 (TL): Always start diversion.
1065 (@AI): Always call `par@reset'.
1066 (@AB): Update code for -Thtml.
1067 (cov*tl-au-print): Handle -Thtml.
1068 (par@reset): Handle `need_eo_tl', `need_eo_h'.
1070 (@IT-html): Removed.
1071 (@SH): Set `need_eo_h' for -Thtml.
1072 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
1074 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
1075 Set `need_eo_h' for -Thtml.
1076 (@EQ, @EN): Don't handle -Thtml specially.
1077 (par@load-init): Don't handle -Thtml specially.
1079 * tmac/www.tmac (www:paraspace): New macro.
1080 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
1081 (HTML</p>, HTML-TAG-NEXT): New macros.
1082 (HnE): Emit tag `.eo.h' instead of break.
1083 (HR): s/HTML-NS/HTML/.
1084 (www-end-nowhere): End diversion only if `www-html' not set.
1086 (ULS, ULE): s|HTML|HTML</p>|.
1087 (LI): Call `www:paraspace'.
1090 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
1092 * src/roff/troff/request.h (macro): Make `p' public.
1093 New variable `is_a_diversion'.
1094 New member function `is_diversion'.
1097 * src/devices/grohtml/html.h (simple_output): New member function
1100 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
1101 computation of `total'.
1102 (tabs::check_init): New function.
1103 (html_table::emit_table_header): Emit style data.
1104 (html_table::insert_column): Improved.
1106 * src/devices/grohtml/html-table.h: Updated.
1108 * src/devices/grohtml/html-text.cpp (html_text::html_text):
1109 Initialize `start_space' with TRUE.
1110 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
1112 (html_text::flush_text): Set `start_space' flag.
1113 (html_text::uses_indent, html_text::remove_para_space,
1114 html_text::get_alignment): New functions.
1115 (html_text::push_para): Updated.
1116 (html_text::do_para): Check for empty argument.
1117 Don't set `space_emitted'.
1118 (html_text::do_space, html_text::emit_space): Updated.
1120 * src/devices/grohtml/html-text.h (tag_definition): New variable
1122 (html_text): New member function `uses_indent', `remove_para_space',
1125 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
1127 (simple_output:nl): Always emit `\n'.
1129 * src/devices/grohtml/post-html.cpp: Include `string.h'.
1130 (BASE_POINT_SIZE): Removed.
1131 (base_point_size, head_info): New global variables.
1132 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
1134 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
1136 (page::add_and_encode): Pass additional parameter for tag flag.
1137 (assert_pos): New structure.
1138 (assert_state): New class.
1139 (html_printer): Remove `indentation', `prev_indent'.
1140 Add variables `troff_indent', `device_indent', `temp_indent'.
1141 Add variables `seen_indent', `next_indent', `seen_pageoffset',
1142 `next_pageoffset', `seen_linelenght', `next_linelength',
1143 `seen_center', `next_center', `seen_space', `seen_break', `as'.
1144 Add member functions `do_check_center', `do_space', `do_head',
1145 `get_troff_indent', `restore_troff_indent', `handle_assertion',
1146 `handle_state_assertion', `do_end_para', `set_char_and_width'.
1147 Change argument to `do_fill' to `char *'.
1149 (html_printer::emit_raw): Call `shutdown_table'.
1151 (html_printer::do_center): Simplified.
1152 (html_printer::do_title): Improved.
1153 (html_printer::write_header): Emit one more newline.
1155 (html_printer::do_heading, html_printer::do_indent,
1156 html_printer::do_eol, html_printer::do_tab_ts,
1157 html_printer::do_tab, html_printer::do_tab0,
1158 html_printer::calc_po_in, html_printer::next_horiz_pos,
1159 html_printer::remove_courier_tabs,
1160 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
1162 (html_printer::do_linelength, html_printer::do_pageoffset,
1163 html_printer::do_indentation, html_printer::do_tempindent,
1164 html_printer::do_tab_te): Simplified.
1165 (html_printer::do_pointsize): Check whether point size is really
1166 associated a `.tl' tag.
1167 (html_printer::do_break): Rewritten.
1168 (html_printer::troff_tag): Improved.
1169 (html_printer::flush_globs): Updated.
1170 (html_printer::lookahead_for_tables): Handle `is_br'.
1172 (html_printer::set_char): Check `sbuf_style.f'.
1173 (html_printer::write_navigation): Use string comparison.
1174 (html_printer::~html_printer): Emit `head_info'.
1175 (html_printer::special): Rewritten.
1176 (get_str, make_val): New functions.
1177 (main): New option `s' to set the base point size.
1179 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
1181 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
1183 * src/roff/troff/node.cpp: New extern `debug_state'.
1184 Include `stringclass.h' and `mtsm.h'.
1185 Implement new classes and class members from `node.h'.
1186 (real_output_file): Make `fp' public.
1187 (troff_output_file): New variables `cur_div_level' and `tag_list'.
1188 Update constructors.
1189 (troff_output_file::really_print_line): Check whether we should push
1190 the current troff state and use the state at the start of the
1191 invocation of this diversion.
1192 (troff_output_file::add_to_tag_list): New member function.
1193 (node::add_char): Handle `glyph_comp_np'.
1195 * src/roff/troff/node.h: Include `mtsm.h'.
1196 (node): New variables `state', `push_state', `div_nest_level',
1197 `is_special'. Update constructors, all descendants.
1198 Pass additional argument to `add_char' member function.
1199 New virtual member functions `is_tag', `debug_node',
1200 `debug_node_list'. Update all descendants.
1201 (tag_node): New class for handling tags.
1202 (output_file): Add variable `state'.
1204 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
1206 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
1207 providing a minimal troff state machine to emit meta tags for the
1208 post-grohtml device driver.
1210 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
1213 2004-10-09 Werner LEMBERG <wl@gnu.org>
1215 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
1217 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
1219 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
1221 * src/roff/troff/div.h: Include `mtsm.h'.
1222 (diversion): New variables `any_chars_added', `needs_push',
1223 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
1224 `saved_suppress_next_eol', `modified_tag'.
1225 New virtual member function `is_diversion'. Update all descendants.
1227 * src/roff/troff/div.cpp (diversion::diversion,
1228 macro_diversion::macro_diversion): Updated.
1229 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
1230 `suppress_next_eol'.
1231 (top_level_diversion::space): Handle `curenv->seen_space'.
1232 (page_offset): Update tag handling.
1233 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
1235 * src/roff/troff/env.h (environment): Make `tabs' public.
1236 Remove `ignore_next_eol', `emitted_node'.
1237 Update `output_line', `output'.
1238 New variables `seen_space', `seen_eol', `suppress_next_eol',
1240 New member functions `construct_state', `make_tag',
1241 `construct_format_state, `construct_new_line_state,
1243 Remove `add_html_tag', `make_html_tag'.
1245 * src/roff/troff/env.cpp: New externs `suppress_push',
1246 `get_diversion_state', `global_diverted_space'.
1247 (pending_output_line): New variable `was_centered'.
1248 Update constructor and all callers.
1249 (pending_output_line::output): Call `curenv->construct_format_state'.
1250 (environment::environment, environment::copy): Updated.
1251 (environment::output): Handle `was_centered'.
1252 (environment::add_char): Handle construct and diversion state.
1253 (environment::add_node): Handle construct state.
1254 (environment::newline): Handle `was_centered'.
1255 (environment::output_line): Updated.
1256 (environment::possibly_break_line): Updated.
1257 Update tag handling.
1258 (environment::add_html_tag): Replaced with...
1259 (environment::make_tag): New function.
1260 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
1261 (environment::dump_troff_state): New debugging function.
1262 (environment::construct_state, environment::construct_format_state,
1263 environment::construct_new_line_state): New functions.
1264 (environment::do_break): Updated.
1265 Handle `global_diverted_space'.
1266 (environment::handle_tag): Update tag handling.
1267 (point_size, fill, do_break_request): Don't call `add_html_tag'.
1268 (no_fill): Don't call `add_html_tag'.
1269 Set `suppress_next_eol'.
1270 (center, right_justify, line_length, indent, temporary_indent,
1272 Update tag handling.
1274 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
1275 (input_iterator): New variables `is_diversion', `diversion_state'.
1276 Update constructors.
1277 (input_stack): New member functions `get_div_level',
1278 `get_diversion_state', `check_end_diversion'.
1279 New variables `div_level', `diversion_state'. Initialize them.
1280 (suppress_push, global_diverted_space): New global variables.
1281 (input_stack::finish_get, input_stack::finish_peek,
1282 input_stack::remove_boundary, input_stack::end_file,
1283 input_stack::clear, input_stack::pop_macro): Call
1284 `check_end_diversion'.
1285 (input_stack::push): Handle `div_level' and `diversion_state'.
1286 (get_diversion_state): New function.
1287 (diverted_space_node::reread): Handle `global_diverted_space'.
1288 (macro::macro): Update constructors.
1289 (macro::is_diversion): New function.
1290 (macro::operator=): Set `is_a_diversion'.
1291 (string_iterator): New member function `is_diversion'.
1292 (string_iterator::string_iterator): Update constructors.
1293 (string_iterator::fill): Set `div_nest_level'.
1294 (macro_iterator): New member function `is_diversion'.
1295 (do_if_request): Handle `suppress_push'.
1296 (tag, taga): New functions.
1297 (init_input_requests): Add `tag' and `taga' requests.
1299 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
1301 * src/include/font.h (font): New member function
1302 `get_image_generator'.
1303 New variables `unscaled_charwidths' and `image_generator'.
1305 * src/libs/libgroff/font.cpp (font::get_width): Always return the
1306 character's unscaled width if `font::unscaled_charwidths' is set.
1307 (font::get_image_generator): New function.
1308 (font::load_desc): Check the `unscaled_charwidths' and
1309 `image_generator' keywords.
1311 * src/libs/libgroff/fontfile.cpp: Initialize
1312 `font::unscaled_charwidths' and `font::image_generator'.
1314 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
1316 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
1318 * man/groff_font.man: Document `unscaled_charwidths' and
1321 * src/preproc/html/pre-html.cpp: Include `device.h'.
1322 (image_gen): New global variable.
1323 (imageList::createPage): Use `image_gen'.
1324 (main): Use `image_generator' keyword.
1326 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
1328 * tmac/html.tmac: Handle \[sqrtex].
1330 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
1332 * src/include/printer.h (printer): New virtual method `round_width'.
1334 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1335 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1336 src/devices/grotty/tty.cpp (printer::round_width): New function
1339 * src/devices/grohtml/post-html.cpp (printer::round_width): New
1341 (html_printer::set_numbered_char): Use it.
1343 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
1345 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1347 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1349 * configure: Regenerated.
1351 * Makefile.in (GHOSTSCRIPT): New variable.
1352 (MDEFINES): Add GHOSTSCRIPT.
1354 2004-10-03 Werner LEMBERG <wl@gnu.org>
1356 * INSTALL.gen: Updated (taken from texinfo CVS).
1358 2004-09-28 Werner LEMBERG <wl@gnu.org>
1362 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1364 * tmac/groff_www.man: Revised and updated.
1366 2004-09-26 Werner LEMBERG <wl@gnu.org>
1368 Fix \$@ and \$* to handle any number of arguments.
1370 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1373 * src/roff/troff/input.cpp (input_iterator::internal_level):
1375 (input_stack): New member functions `increase_level' and
1377 (input_stack::get_level): Don't use `internal_level'.
1378 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1379 (end_quote_iterator): Completely removed.
1380 (interpolate_arg): Build string for \$@ and \$* which is then
1381 pushed onto the input stack.
1383 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
1385 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1388 2004-09-23 Werner LEMBERG <wl@gnu.org>
1390 * tmac/an-old.tmac (ne): Using default scaling operator.
1392 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1394 This change implements the following features:
1397 New numeric register: Defines number of lines following LP, PP,
1398 QP, IP or XP, which must be kept together, before any automatic
1399 page break. If insufficient space remains on the current page, a
1400 page break is forced before the new paragraph begins.
1403 New numeric register: Sets number of lines of following paragraph
1404 which must be kept with a heading, defined by NH or SH, before any
1405 automatic page break. If insufficient space remains on the
1406 current page, a page break is forced before the heading.
1409 (Thanks to Joerg van den Hoff, for this idea).
1411 New numeric register: Sets the first level of heading (set with
1412 NH), which will keep the same point size as body text; e.g. if
1413 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1414 point size specified by \n[PS], but .NH 2 and .NH 1 will have
1415 progressively larger point sizes, determined by \n[PSINCR] (see
1419 New numeric register: Sets the point size increment for each level
1420 of heading, (set with NH), below the threshold level set by
1421 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1422 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1423 and all other levels will remain at 10pt, (because \n[PS] = 10).
1426 Existing macro now accepts a numeric argument, to make heading
1427 size match that of NH with same argument value, when the
1428 GROWPS/PSINCR feature is enabled.
1431 New string, set by NH macro, replaces the existing (undocumented)
1432 use of SN, to represent the assigned section number.
1435 New string, set by NH macro, represents the assigned section
1436 number, but omits the terminal period (periods at intermediate
1437 levels are retained).
1440 String set by NH macro, originally undocumented, now implemented
1441 as an alias for SN-DOT (which reproduces original behaviour).
1443 * tmac/s.tmac (PORPHANS): New register.
1444 (par*start): Use it.
1445 (HORPHANS, GROWPS, PSINCR): New registers.
1446 (SH-NO-TAG, @SH): Use them.
1449 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1451 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1452 of `Ds' and `De' macros.
1454 2004-09-10 Werner LEMBERG <wl@gnu.org>
1456 In tbl, handle \a as an interpreted leader character if in
1459 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1460 LEADER_CHAR): New macros.
1461 (compatible_flag): New declaration.
1463 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1464 LEADER_3, and LEADER_4 to `state'.
1465 (table_input::get): Handle `\a'.
1467 * src/preproc/tbl/table.cpp (PREFIX): Removed.
1468 (LEADER_REG): New macro.
1469 (table::init_output): Define LEADER_REG string register if in
1472 * src/preproc/tbl/tbl.man: Document it.
1474 2004-08-18 Werner LEMBERG <wl@gnu.org>
1476 * tmac/doc.tmac (An): Fix error message.
1478 2004-08-06 Werner LEMBERG <wl@gnu.org>
1480 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1481 file can't be opened. UNIX tbl has the same behaviour.
1483 2004-08-05 Y T <doarhop@hotmail.com>
1485 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1486 (DBRead): If in compatibility mode, take into account the text
1487 when computing figure boundaries.
1489 2004-08-05 Werner LEMBERG <wl@gnu.org>
1491 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
1492 from Tadziu Hoffmann.
1494 2004-08-03 Werner LEMBERG <wl@gnu.org>
1496 * doc/meref.me: Document `_M' register.
1498 2004-08-03 Martin Husemann <martin@duskware.de>
1500 Make hpftodit work correctly on big-endian systems.
1502 * src/utils/hpftodit/hpftodit.cpp (File): New method
1503 `get_uint32(char *)'.
1504 (entry): New member `orig_value'.
1505 (read_tags): Use new method.
1506 (output_font_name, read_and_output_pcltypeface, dump_ascii):
1509 2004-08-01 Werner LEMBERG <wl@gnu.org>
1511 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
1512 are already in X11's `macros.t' file.
1514 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
1516 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1518 (read_and_output_pcltypeface): Handle strings with length <= 4.
1520 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
1522 * tmac/s.tmac (pg@top): Don't save `PO' register.
1523 (pg*end-col, pg*end-page): Directly use `PO' register.
1525 2004-07-27 Werner LEMBERG <wl@gnu.org>
1527 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1529 * src/preproc/refer/refer.cpp (output_references): Check for
1531 * src/preproc/refer/refer.man: Improve documentation of
1532 `bibliography' command.
1534 2004-07-26 Werner LEMBERG <wl@gnu.org>
1536 Add requests `fcolor' and `gcolor'.
1538 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1540 (init_env_requests): Add `fcolor' and `gcolor'.
1542 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1544 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1545 Document new requests.
1547 2004-07-24 Werner LEMBERG <wl@gnu.org>
1549 Add support for fractional point sizes in ms macros. A value for
1550 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1551 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
1553 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1554 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1556 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1558 2004-07-19 Werner LEMBERG <wl@gnu.org>
1560 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1562 (do_for, for_input::get, for_input::peek): Handle negative `by'.
1563 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1565 2004-07-08 Thomas Klausner <wiz@netbsd.org>
1567 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1568 * tmac/groff_mdoc.man: Updated.
1570 2004-07-05 Werner LEMBERG <wl@gnu.org>
1572 * doc/groff.texinfo: Further improve documentation of `hcode'.
1574 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
1576 Improve appearance of arrows in pic.
1578 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1580 Use two line segments for drawing non-filled arrow head.
1581 (line_object::print, spline_object::print): Shorten line length to
1582 avoid arrow sticking.
1583 (arc_object::print): Take arrow direction into account.
1585 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1587 * tmac/groff_www.man: Update documentation of .MPIMG.
1589 2004-07-03 Werner LEMBERG <wl@gnu.org>
1591 * tmac/an-old.tmac (RI): Always start with font `R'.
1592 (RI, IR): Properly end with font `R'.
1594 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
1596 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1597 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1598 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1599 Don't pass more than six arguments to .R, .I, .B, etc., for
1600 compatibility with traditional troff macros.
1602 2004-07-02 Werner LEMBERG <wl@gnu.org>
1604 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1605 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1607 (PUSH_COMP_MODE): New internal character constant.
1610 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1611 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1612 (token::next, macro::append): Handle PUSH_COMP_MODE.
1613 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1614 POP_GROFFCOMP after each of the decoded arguments to make them
1615 independent from the compatibility mode status.
1616 (comp_mode): Add `COMP_ENABLE'.
1617 (do_define_string, do_define_macro): Handle COMP_ENABLE.
1618 (define_string, append_string, define_macro, define_indirect_macro,
1619 append_macro, append_indirect_macro): Handle `compatible_flag'.
1620 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1622 * man/groff_diff.man, doc/groff.texinfo: Updated.
1624 2004-07-01 Werner LEMBERG <wl@gnu.org>
1626 * doc/groff.texinfo: Improve documentation of `hcode'.
1627 Use @documentencoding and convert document to latin-1; to do that
1628 make latin characters active and assign proper macros (within a
1629 @tex...@end tex environment).
1630 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1631 * doc/Makefile.sub (groff): Ditto.
1633 2004-06-29 Werner LEMBERG <wl@gnu.org>
1635 Implement two new conditional operators `F <name>' and `S <name>'
1636 which check whether <name> is a valid font or style, respectively.
1638 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1639 (text_file::text_file): Updated.
1640 (text_file::error): Don't emit message if `silent' is set.
1641 (font::load_font): Add optional third argument (which is directly
1643 (font::load): Add optional second argument to check the header of
1644 a font only, without emitting warning or error messages.
1645 * src/include/font.h (font): Updated.
1647 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1649 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1650 fourth argument to check a font without mounting.
1651 (check_font, check_style): New functions.
1652 * src/roff/troff/node.h: Updated.
1654 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1657 2004-06-27 Werner LEMBERG <wl@gnu.org>
1659 Implement new string-valued register `.sty' to return the current
1662 * env.cpp (environment::get_style_name_string): New function.
1663 (init_env_requests): Add `.sty' register.
1664 * env.h (environment): Updated.
1665 * node.cpp (font_info): Make `get_style_name' a friend.
1666 (get_style_name): New function.
1669 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1672 2004-06-15 Werner LEMBERG <wl@gnu.org>
1674 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1677 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
1679 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1680 and \n[mo] to avoid dependency on current date.
1682 2004-06-08 Werner LEMBERG <wl@gnu.org>
1684 * Makefile.sub (install_data): New target.
1686 2004-06-04 Werner LEMBERG <wl@gnu.org>
1688 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1690 2004-06-03 Werner LEMBERG <wl@gnu.org>
1692 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1694 (install_data): Add $(srcdir).
1696 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1699 2004-06-02 Werner LEMBERG <wl@gnu.org>
1701 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1702 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1703 Add test for Xmu library.
1704 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1705 GROFF_APPRESDIR_DEFAULT): New macros.
1707 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1708 and GROFF_APPRESDIR_DEFAULT.
1710 * configure: Regenerated.
1712 * Makefile.in (appresdir): New variable.
1713 (MDEFINES): Add appresdir.
1715 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1717 (install_data, uninstall_sub): New targets to handle GXditview.ad.
1719 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1720 `$(srcdir)/eign', not `eign'.
1722 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1724 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1725 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1726 Protect (g)xditview with `\%' to avoid hyphenation.
1727 Other minor formatting.
1729 2004-06-01 Werner LEMBERG <wl@gnu.org>
1731 Integrate gxditview into groff's standard directory hierarchy.
1733 * src/xditview/*: Moved to ...
1734 * src/devices/xditview/*: Here.
1735 Moved DviChar.h and XFontName.h to src/include.
1736 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1737 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1738 Moved xtotroff.c to new directory src/utils/xtotroff.
1739 Provide proper Makefile.sub files (reusing the stuff from
1741 DESC renamed to DESC.in.
1742 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1743 Converted everything from K&R to ANSI C.
1744 Decorated with const where appropriate.
1745 Cast string constants with `String' and `char *' where appropriate.
1746 Made it compile with C++ (used as a C compiler).
1747 Removed other minor compiler warnings.
1749 * src/devices/xditview/device.c: Include config.h, string.h, and
1751 Don't declare `exit', `strtok', `strchr', and `getenv'.
1754 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1757 * src/devices/xditview/xditview.c: Include config.h.
1758 Include stdio.h earlier.
1759 Protect declaration of `popen' and `pclose' with
1760 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1761 Replace `caddr_t' with `XtPointer'.
1762 (MakePromptFunc): New typedef.
1763 (DoPrint): Use RETSIGTYPE.
1764 (promptfunction): Change type to MakePromptFunc.
1765 (MakePrompt): Use MakePromptFunc for third argument.
1768 * src/devices/xditview/ad2c: Add casts to `String'.
1770 * src/include/XFontName.h (XFontNameString): Don't use array
1772 Add prototypes for `XParseFontName', `XFormatFontName',
1773 `XCompareFontName', and `XCopyFontName'.
1775 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1778 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1779 Don't declare `XParseFontName' and `XFormatFontName'.
1781 (main): Remove `optind' and `optarg'.
1783 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1784 (to select programs which need X).
1785 Make XDEVIDIRS depend on `FORCE'.
1786 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1788 (MDEFINES): Updated.
1789 (LIBDIRS): Use XLIBDIRS.
1790 (CPROGDIRS): Use XPROGDIRS.
1791 (DEVDIRS): Remove font directories for gxditview.
1792 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1793 (EXTRADIRS): Remove src/xditview.
1795 * Makefile.sub (DISCLEANFILES): Updated.
1797 * Makefile.comm (LIBXUTIL): New variable.
1798 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1799 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1801 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1803 * aclocal.m4 (GROFF_X11): New function.
1805 * configure.ac: Call GROFF_X11.
1806 Don't create src/xditview/Imakefile.
1807 Don't emit notice how to build gxditview.
1809 * configure: Regenerated.
1811 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1813 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
1815 * Makefile.in (CPPFLAGS): Define.
1816 (MDEFINES): Add CPPFLAGS.
1818 2004-05-27 Werner LEMBERG <wl@gnu.org>
1820 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1822 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
1824 Fix problems with `friend name injections'.
1826 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1827 make_script_box), src/roff/troff/div.h (end_diversions),
1828 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1831 2004-05-25 Bernd Warken <bwarken@mayn.de>
1833 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1835 2004-05-25 Werner LEMBERG <wl@gnu.org>
1837 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1838 src/libs/libgroff/color.cpp: Include lib.h.
1840 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
1842 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1843 through Forte 6u1, and for how to get GNU make on Solaris.
1845 2004-05-24 Werner LEMBERG <wl@gnu.org>
1847 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
1850 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
1852 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1855 2005-05-14 Werner LEMBERG <wl@gnu.org>
1857 * REVISION: Set to 2.
1859 * aclocal.m4 (GROFF_STDINT_H): Removed.
1860 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1862 * configure.ac: Updated.
1863 * configure, src/include/config.hin: Regenerated.
1865 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1866 inttypes.h conditionally.
1868 2003-05-13 Werner LEMBERG <wl@gnu.org>
1870 Version 1.19.1 released
1871 =======================
1873 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
1875 * src/preproc/refer/label.y (same_author_last_name,
1876 same_author_name): Handle empty sort keys.
1878 2004-05-10 Werner LEMBERG <wl@gnu.org>
1880 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1883 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1884 doc-str-Lb-librt): Reset font.
1885 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1886 Provide `doc-str-Lb' to reset font.
1887 * tmac/groff_mdoc.man: Updated.
1889 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
1891 * src/preproc/html/pre-html.cpp (make_message): Make it work for
1892 snprintf versions which don't conform to ANSI C 99 (this is,
1893 counting the string's trailing null byte in the return value).
1895 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
1897 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1898 that all implementations of sprintf handle null pointers correctly.
1900 2004-05-04 Werner LEMBERG <wl@gnu.org>
1902 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1903 Document `.U' register.
1905 * src/roff/troff/env.cpp (environment::mark_last_line)
1906 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1908 2004-05-04 Larry Kollar <kollar@alltel.net>
1910 New read-only register `.U'; it returns 1 in safer mode and 0
1913 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1916 2004-05-03 Werner LEMBERG <wl@gnu.org>
1918 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1920 2004-04-17 Werner LEMBERG <wl@gnu.org>
1922 * src/include/font.h (font): Use `int' for ch_index.
1923 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1924 font::compact): Updated.
1926 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1929 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1930 (hyphen_word): Fix compiler warnings.
1931 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1934 (get_delim_number, get_line_arg): Change second argument type to
1936 (macro_header::copy, token::next, do_define_string,
1937 do_define_character, substring_request, asciify_macro,
1938 unformat_macro, read_size, non_interpreted_node::interpret,
1939 while_request, main: Fix compiler warnings.
1940 (read_color_draw_node): Initialize `col'.
1942 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1943 `start_col' and `end_col' of type `int'.
1944 (vertical_rule): Make `col' of type `int'.
1946 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1949 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1951 (format_serial): Use them to remove dependency on ASCII.
1953 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1955 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1958 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1960 (glyph): Change type of `hpos' to `int'.
1962 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
1963 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1965 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1967 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1969 2004-04-16 Werner LEMBERG <wl@gnu.org>
1971 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1972 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1973 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1974 `double' instead of `float' everywhere.
1975 * src/preproc/grn/main.cpp: Use `double' instead of `float'
1977 (main): Add return value.
1978 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1980 Update all user functions.
1982 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1983 src/preproc/eqn/box.h, src/preproc/pic/object.h,
1984 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1985 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1986 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1987 src/roff/troff/input.cpp, src/roff/troff/request.h,
1988 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1991 * src/utils/indxbib/signal.c: Include stdlib.h.
1993 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1995 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1996 before the first page.
1998 2004-04-14 Thomas Klausner <wiz@netbsd.org>
2000 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
2001 (doc-operating-system-*): Updated.
2002 * tmac/doc-syms (doc-str-St-*): Various small fixes.
2003 (doc-str-Lb-*): Add more library names.
2005 2004-04-10 Art Haas <ahaas@airmail.net>
2007 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
2010 2004-04-09 Art Haas <ahaas@airmail.net>
2012 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
2014 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
2016 * arch/misc/shdeps.sh: Generate better comment for sed script.
2018 2004-04-08 Art Haas <ahaas@airmail.net>
2020 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
2021 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
2022 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
2023 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
2024 (polyfill), src/preproc/grn/main.cpp (polyfill),
2025 src/preproc/refer/command.cpp (command_table),
2026 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
2027 gcc 3.5 doesn't like).
2029 2004-04-08 Werner LEMBERG <wl@gnu.org>
2031 Removing many compiler warnings. groff should now compile with
2032 a C++ compiler used for C files also. [Simple variable renamings
2033 to avoid shadowing aren't logged in detail.]
2035 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
2036 (draw_dvi_printer::draw) ['c']: Enclose in block.
2038 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
2039 (page::add_line): Fix typos.
2040 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
2042 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
2043 Some local variable renamings.
2044 * src/devices/grolbp/lbp.h: Some local variable renamings.
2046 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
2049 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
2050 Remove redundant local variable declaration.
2051 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
2052 Don't use `caddr_t' but `void *'.
2053 Enclose functions with `extern "C"' for C++.
2055 * src/libs/libdriver/input.cpp (remember_filename,
2056 remember_source_filename): Use cast for string constant.
2058 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
2059 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
2060 src/libs/libgroff/geometry.cpp: Some local variable renamings.
2061 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
2063 Enclose functions with `extern "C"' for C++.
2064 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
2065 (needs_quoting): Return `int'.
2066 (quote_arg): Add proper casts to malloc and realloc.
2067 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
2068 various MS Windows environments.
2069 (spawnvp_wrapper): Add proper cast to malloc.
2071 * src/preproc/eqn/box.h: Remove redundant declarations of
2072 `make_script_box', `make_mark_box' and `make_lineup_box'.
2073 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
2074 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
2077 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
2078 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
2079 (dx, dy): Renamed functions to...
2080 (deltax, deltay): This.
2081 * src/preproc/grn/main.cpp: Some local variable renamings.
2082 (deffont): Add `const'.
2083 (initpic, conv): Use cast for string constant.
2085 * src/preproc/html/pre-html.cpp: Some local variable renamings.
2086 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
2087 (char_buffer::run_output_filter): Second argument is unused.
2088 * src/preproc/html/pushback.cpp: Some local variable renamings.
2090 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
2091 * src/preproc/pic/object.cpp: Some local variable renamings.
2093 * src/preproc/refer/label.y (lookup_label): Remove redundant
2094 declaration of local variable.
2096 * src/preproc/soelim.cpp: Remove redundant declaration of
2097 `interpret_lf_args'.
2099 * src/preproc/tbl/main.cpp: Some local variable renamings.
2101 * src/roff/groff/groff.cpp (main): Use cast for string constant.
2102 * src/roff/groff/pipeline.c: Enclose declarations of `error',
2103 `c_fatal', and `i_to_a' with `extern "C"' for C++.
2104 Don't use C++-style comments.
2106 * src/roff/troff/env.h: Remove redundant declaration of `title'.
2107 * src/roff/troff/node.h, src/roff/troff/env.cpp,
2108 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
2110 * src/roff/troff/div.h: Remove redundant declaration of
2112 * src/roff/troff/troff.h: Remove redundant declaration of
2114 * src/roff/troff/input.cpp: Remove redundant declaration of
2115 `handle_first_page_transition' and `process_input_stack'.
2117 * src/utils/hpftodit.cpp: Some local variable renamings.
2119 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
2121 Don't define RETSIGTYPE.
2122 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
2124 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
2125 (error): Use `const' in argument.
2126 (main): Remove redundant declaration of `optind'.
2127 Move declaration of `Version_string' to top-level.
2129 * PROBLEMS: Document difficulties compiling signal.c if a C++
2130 compiler is used for C.
2132 2004-04-07 Werner LEMBERG <wl@gnu.org>
2134 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
2136 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
2138 Make scripts like nroff.sh and neqn.sh portable across various
2139 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
2140 non-POSIX path separators. The idea is to extend those scripts to
2141 decide at run-time (of the script) which path separator to use.
2143 * arch/misc/Makefile.sub: New file.
2144 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
2145 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
2146 a proper definition of the variable `GROFF_RUNTIME'.
2148 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
2149 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
2150 (PROGDEPDIRS): New variable.
2152 (PROGDIRS): Add PROGDEPDIRS.
2154 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
2155 Don't substitute @SEP@ and @BINDIR@.
2156 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
2157 (PATH): Use GROFF_RUNTIME.
2159 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
2160 Don't substitute @SEP@ and @BINDIR@.
2161 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
2162 (PATH): Use GROFF_RUNTIME.
2164 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2166 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
2167 Cygwin which doesn't handle stderr correctly.
2169 2004-03-08 Werner LEMBERG <wl@gnu.org>
2171 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
2172 against empty argument. Problem reported by <cgd@broadcom.com>.
2174 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2176 * Makefile.in (SEP): Replaced with...
2177 (RT_SEP, SH_SEP): Separators for the target platform's native path
2178 separator and the build environment, respectively.
2179 (fontpath, tmacpath): Use RT_SEP.
2180 (MDEFINES): Updated.
2182 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2183 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2184 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
2185 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
2187 2004-03-05 Werner LEMBERG <wl@gnu.org>
2189 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
2190 reduce alignment problems with newer printers which use built-in
2191 TrueType fonts (instead of the older Intellifonts). The ideal
2192 solution is to provide a second set of groff metric files, but this
2193 is extremely time-consuming to produce, given that HP's metric
2194 files are very rudimentary.
2196 2004-03-01 Werner LEMBERG <wl@gnu.org>
2198 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
2199 s/operand/argument/ in error message.
2201 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2203 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
2206 2004-03-01 Antti Kantee <pooka@netbsd.org>
2208 * tmac/s.tmac (XE): Fix error message.
2210 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
2212 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
2215 * src/roff/groff/pipeline.c: Declare strcasecmp.
2216 (run_pipeline) [_WIN32]: Use function name variants which don't
2218 Fix stream handling.
2220 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
2222 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
2223 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
2224 for platforms which use the native Win32 runtime libraries.
2225 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
2227 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
2228 QUOTE_ARG_REALLOC_ERROR): Fix string.
2230 * src/preproc/html/pre-html.cpp: Remove declaration of
2232 Don't use __MINGW32__.
2233 s/DEBUG_FILE/DEBUG_FILE_DIR/.
2234 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
2235 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
2236 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
2237 calls to `set_redirection' and `WAIT'.
2238 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
2239 Fix calls to `set_redirection' and `save_and_redirect'.
2240 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
2241 to `set_redirection' and `save_and_redirect'.
2242 (usage): Fix message.
2243 (makeTempFiles, main): Use `DEBUG_FILE'.
2245 2004-02-21 Werner LEMBERG <wl@gnu.org>
2247 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
2249 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
2251 * src/libs/libgroff/quotearg.c: New file, providing proper argument
2252 quoting for MSVC's spawn* and exec* functions.
2253 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
2254 spawnvp with proper quoting for MSVC.
2256 * src/libs/libgroff/assert.cpp (program_name),
2257 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
2258 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
2260 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
2262 * src/include/error.h (program_name): Declare as `extern "C"'.
2263 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
2265 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
2267 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
2269 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
2271 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
2273 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
2275 (sbasename) [__MSDOS__ || ...]: New function.
2276 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
2278 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
2279 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
2281 Use STDOUT_FILENO instead of hardcoded file handle.
2282 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
2284 2004-02-19 Werner LEMBERG <wl@gnu.org>
2286 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
2287 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
2289 2004-02-18 Werner LEMBERG <wl@gnu.org>
2291 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
2292 new font and mapping files.
2294 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
2295 Keith Marshall <keith.d.marshall@ntlworld.com>
2297 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
2298 an input pipe. This is needed for the MSVC compiler to make troff's
2301 * src/roff/troff/div.cpp: Include nonposix.h.
2302 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
2304 2004-02-17 Werner LEMBERG <wl@gnu.org>
2306 * font/devlj4/generate/special.awk: New script.
2307 * font/devlj4/generate/Makefile (S): Use special.awk.
2308 * font/devlj4/*: Regenerated, including the following new files:
2309 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
2310 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
2311 * NEWS: Document new lj4 fonts and revised hpftodit.
2313 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
2315 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
2317 2004-01-25 Werner LEMBERG <wl@gnu.org>
2319 * src/libs/libgroff/progname.cpp: Replaced with...
2320 * src/libs/libgroff/progname.c: New file.
2321 * src/libs/libgroff/Makefile.sub: Updated accordingly.
2323 2004-01-17 Werner LEMBERG <wl@gnu.org>
2325 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
2327 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
2329 * font/devlj4/generate/wingdings.map,
2330 font/devlj4/generate/symbol.map: Include unnamed glyphs.
2331 Use groff glyph names where possible.
2332 * src/devices/grolj4/lj4_font.man: Minor updates.
2334 2004-01-13 Werner LEMBERG <wl@gnu.org>
2336 * tmac/www.tmac (DC): Handle TTY devices.
2338 * doc/webpage.ms: Document viewCVS from ffii.org.
2339 * NEWS, README: Updated.
2341 * src/roff/groff/groff.man: Mention lj4_font man page.
2343 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2345 (FONTS): Add SYMBOL and WINGDINGS.
2346 (SYMBOL, WINGDINGS): New targets.
2348 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
2350 * src/devices/grolj4/lj4_font.man: New man page.
2351 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2352 * src/devices/grolj4.man: Mention lj4_font man page.
2354 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2355 * src/utils/hpftodit/hpftodit.man: Document it.
2357 Remove details about fonts (which are now in lj4_font.man).
2359 * font/devlj4/generate/symbol.map,
2360 font/devlj4/generate/wingdings.map: New files.
2362 2004-01-12 Werner LEMBERG <wl@gnu.org>
2364 * README: Mention ffii's viewcvs access.
2366 2004-01-09 Werner LEMBERG <wl@gnu.org>
2368 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2370 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
2372 Revert most of the change from 2004-01-03 to better control used
2375 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2376 (text_symbol_sets, special_symbol_sets): New arrays.
2377 (symbol_set_table): New global variable.
2378 (read_symbol_sets): Use search order given in the text_symbol_sets
2379 and special_symbol_sets arrays. If command line flag -a is not
2380 given, search both arrays.
2381 (output_charset): Require x_height_tag only for command line flag -i.
2383 2004-01-06 Werner LEMBERG <wl@gnu.org>
2385 Implement string-valued registers \n[.m] and \n[.M] to return the
2386 name of the current drawing and background color, respectively.
2388 * src/roff/troff/symbol.h: Moved to...
2389 * src/include/symbol.h: Here.
2390 Small fixes to make it work outside of the `troff' directory.
2391 * src/roff/troff/symbol.cpp: Moved to...
2392 * src/libs/libgroff/symbol.cpp: Here.
2393 Small fixes to make it work outside of the `troff' directory.
2395 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2396 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2399 * src/include/color.h: Include symbol.h.
2400 (color): Add new field `nm'.
2401 * src/libs/libgroff/color.cpp (color::color): Updated.
2403 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2404 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2405 src/roff/troff/reg.cpp: Don't include symbol.h.
2407 * src/roff/troff/env.cpp: Don't include symbol.h.
2408 (environment::get_glyph_color_string,
2409 environment_get_fill_color_string): New member functions.
2410 (init_env_requests): Handle `.m' and `.M' registers.
2411 * src/roff/troff/input.cpp: Don't include symbol.h.
2412 (default_symbol): Moved to symbol.cpp/symbol.h.
2413 (do_glyph_color, do_fill_color, define_color): Pass symbol name
2414 to color constructor.
2415 * src/roff/troff/env.h: Updated.
2417 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2418 Document new registers.
2420 2004-01-05 Werner LEMBERG <wl@gnu.org>
2422 * src/roff/troff/node.cpp (space_node::get_breakpoints,
2423 space_node::nbreaks): Protect against zero `next' field.
2425 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
2427 In hpftodit, use the symbol sets offered in the TFM.
2429 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2430 (symbol_set, text_symbol_sets, special_symbol_sets,
2431 symbol_set_table): Removed.
2432 (get_printcode): Removed.
2433 (read_symbol_sets): Initialize `symbol_set' field with
2435 Simplify code to just use the `kind' value.
2436 (output_charset): Improve output formatting.
2437 (dump_symbols): Simplified.
2439 2004-01-02 Werner LEMBERG <wl@gnu.org>
2441 * font/devlj4/generate/text.map: Add more MSL numbers.
2443 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
2445 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2446 (text_symbol_sets): Add more symbol sets.
2447 (debug_flag): New static variable (moved from `main').
2448 (get_printcode, show_symset): New functions.
2449 (main): Remove `debug_flag'.
2450 (output_charset): Use `show_symset'.
2451 (dump_symbols): Use `show_symset'.
2452 Print symsets for all glyphs.
2453 (read_map): Actually call `unicode_to_ucode_make' but this time
2456 2004-01-01 Werner LEMBERG <wl@gnu.org>
2458 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2459 Fix placement of comments.
2461 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
2463 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2464 option `-d' is given.
2465 (output_charset): Improve warning messages to give more information.
2466 (dump_symbols): Make information more precise.
2468 (read_map): Don't call unicode_to_ucode_name; the glyph names must
2469 appear as-is and shouldn't be decomposed.
2471 2003-12-31 Werner LEMBERG <wl@gnu.org>
2473 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2474 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2475 (FONTS): Add TrueType font families Arial and Times New Roman.
2476 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2477 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2480 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
2482 * test-groff.in (SEP): Quote value.
2483 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2484 `tem' to `char*' to avoid deallocation of a pointer to a constant
2485 object which some compilers don't like.
2487 2003-12-31 Werner LEMBERG <wl@gnu.org>
2489 * font/devlj4/generate (text.map, special.map): Rewritten to work
2490 with the new hpftodit version.
2492 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
2494 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2495 set and 8bit character code for all glyphs also.
2497 2003-12-30 Werner LEMBERG <wl@gnu.org>
2499 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2501 2003-12-29 Werner LEMBERG <wl@gnu.org>
2503 More fixes for MSVC compiler.
2505 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2508 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2509 STDERR_FILENO) [_MSC_VER]: Define conditionally.
2510 (getpid) [_MSC_VER]: Remove.
2511 Include direct.h and process.h conditionally.
2513 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2514 parentheses for a_delete.
2516 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2518 * test-groff: Replaced with...
2519 * test-groff.in: This new template to handle path separator
2522 * configure.ac: Check for direct.h and process.h.
2523 Generate test-groff script.
2524 * configure, src/include/config.hin: Regenerated.
2526 2003-12-28 Werner LEMBERG <wl@gnu.org>
2528 Add integral extension glyph.
2529 Add new option `-x' to afmtodit to suppress use of built-in AGL.
2531 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2533 * font/devps/generate/textmap: Provide entry for `integralex' to
2534 override (old) PUA value of the AGL.
2535 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2536 * font/devps/*: Regenerated.
2538 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2539 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2541 2003-12-27 Werner LEMBERG <wl@gnu.org>
2543 Add forgotten `coproduct' symbol (already available for DVI).
2545 * font/devhtml/R.proto, font/devps/generate/textmap,
2546 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2547 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2548 U+2210 (\[coproduct]).
2550 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
2552 hpftodit has been extended to handle TrueType metric files and
2553 more glyphs. See hpftodit.man for more details.
2555 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
2556 ctype.h, and unicode.h.
2557 s/msl/charcode/ everywhere since we now handle Unicode values also.
2558 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2559 Use it where appropriate.
2560 (MULTIPLIER): Replaced with...
2561 (multiplier): New global static variable.
2563 (tag_type): Add more TFM tags.
2564 (tag_name): New array.
2565 (ENUM_TYPE, FLOAT_TYPE): Removed.
2566 (BYTE_TYPE): New value assigned.
2567 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2568 (text_symbol_sets, special_symbol_sets): Extended to cover more
2570 (check_type): Add return value.
2571 (check_units): Add parameters to get ppi and upem values.
2572 Handle TrueType TFM data.
2573 (output_font_name): New function.
2574 (output_charset): Add parameter to handle TFM type.
2575 Handle TrueType TFMs also.
2576 (em_fract): New macro.
2577 (dump_tags): Be much more verbose and handle more tags.
2578 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2579 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2581 (read_map): Add parameter to handle TFM type.
2582 Handle both MSL and Unicode mappings.
2583 (main): Add two new command line options `-a' and `-q'.
2584 Updated to make use of new functions.
2587 * src/utils/hpftodit/hpuni.cpp: New file.
2589 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2592 2003-12-25 Werner LEMBERG <wl@gnu.org>
2594 * src/include/nonposix.h (read) [_MSC_VER]: Define.
2596 2003-12-24 Werner LEMBERG <wl@gnu.org>
2598 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2599 by Michail Vidiassov <master@iaas.msu.ru>.
2601 2003-12-20 Werner LEMBERG <wl@gnu.org>
2603 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2605 Add missing latin-2 glyphs.
2606 * font/devutf8/R.proto: Add missing latin-2 glyphs.
2608 * tmac/troffrc: Load `composite.tmac' earlier.
2610 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2611 u00{53,73}_0327, and u0049_0307.
2612 * tmac/X.tmac: Add u00{47,67}_0306.
2613 * tmac/tty-char.tmac: Use composite glyph names for readability.
2617 * src/include/unicode.h: Remove `extern' keywords.
2619 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
2621 * tmac/latin5.tmac: New file.
2623 2003-12-19 Werner LEMBERG <wl@gnu.org>
2625 Add some glyphs needed for Turkish.
2627 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2630 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
2631 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2632 u00{53,73}_0327, and u0049_0307.
2634 2003-12-18 Werner LEMBERG <wl@gnu.org>
2636 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2638 Remove trailing zeros.
2640 2003-12-17 Werner LEMBERG <wl@gnu.org>
2642 Make \? transparent to end-of-sentence recognition.
2644 * src/roff/troff/input.cc (non_interpreted_node): Add
2645 `ends_sentence' member function.
2647 2003-12-16 Werner LEMBERG <wl@gnu.org>
2649 * doc/groff.texinfo: Document `dt' request correctly.
2650 Other minor typographical improvements.
2652 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
2654 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2656 2003-12-10 Richard Stallman <rms@gnu.org>
2658 * LICENSE: Better wording.
2660 2003-12-09 Werner LEMBERG <wl@gnu.org>
2662 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2663 * configure, NEWS: Updated.
2665 2003-12-08 Werner LEMBERG <wl@gnu.org>
2667 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2669 2003-12-07 Bernd Warken <bwarken@mayn.de>
2673 2003-12-07 Werner LEMBERG <wl@gnu.org>
2675 * INSTALL: Improved.
2677 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2679 Use path separator character of target platform for compiled-in
2682 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2683 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2684 * configure: Regenerated.
2685 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2687 2003-12-05 Werner LEMBERG <wl@gnu.org>
2689 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2690 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2692 2003-12-04 Bernd Warken <bwarken@mayn.de>
2694 * LICENSE: New file.
2696 2003-12-03 Werner LEMBERG <wl@gnu.org>
2698 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2699 ligatures present in AFM files since groff currently only
2700 understands some standard ligatures and nothing else.
2702 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
2704 * src/roff/groff/groff.cpp (main): Don't run the spooler if
2707 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2710 Don't use Unix wait flags.
2712 2003-12-02 Werner LEMBERG <wl@gnu.org>
2714 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2715 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2716 src/roff/troff/uniuni.cpp: Moved to...
2717 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2718 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2719 src/libs/libgroff/uniuni.cpp: Here.
2721 * src/include/Makefile.sub.old (HDRS),
2722 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2723 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2725 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2727 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2731 2003-12-01 Werner LEMBERG <wl@gnu.org>
2733 * groff.texinfo: Document special behaviour of `.vs 0'.
2734 Improve documentation of `cflags' request.
2737 2003-11-29 Werner LEMBERG <wl@gnu.org>
2739 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2740 * font/devlj4/CORONET: Regenerated.
2742 2003-11-24 Werner LEMBERG <wl@gnu.org>
2744 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2745 if processing hyphenation patterns in traditional mode.
2746 Improve error messages.
2748 2003-11-20 Werner LEMBERG <wl@gnu.org>
2750 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2751 troff_output_file::put_char): Fix type of local variable `c'.
2753 2003-11-19 Werner LEMBERG <wl@gnu.org>
2755 * src/roff/groff/pipeline.c (P): Removed. Updated all function
2757 (i_to_a): Removed. libgroff already provides this function.
2758 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2760 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
2762 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2765 2003-11-17 Werner LEMBERG <wl@gnu.org>
2767 * COPYING: Use correct version.
2769 2003-11-11 Werner LEMBERG <wl@gnu.org>
2771 LynxOS 4.0.0 doesn't declare vfprintf.
2773 * configure.ac: Check for vfprintf.
2774 * configure: Regenerated.
2775 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2776 * src/include/config.hin: Regenerated.
2778 2003-11-10 Werner LEMBERG <wl@gnu.org>
2780 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2782 * configure.ac: Check for vsnprintf.
2783 * configure: Regenerated.
2784 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2786 * src/include/config.hin: Regenerated.
2788 2003-11-09 Werner LEMBERG <wl@gnu.org>
2790 * aclocal.m4: Updated syntax to autoconf 2.59.
2791 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2792 Don't check for gsos2.
2793 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
2794 working abs_top_srcdir and abs_top_builddir.
2796 * configure.ac: Updated syntax to autoconf 2.59.
2797 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2798 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2799 * configure: Regenerated.
2801 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2802 s/@groff_top_builddir@/@abs_top_builddir@/.
2804 * src/roff/groff/pipeline.c (xstrsignal):
2805 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2807 2003-11-07 Werner LEMBERG <wl@gnu.org>
2809 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2810 make start angle smaller than end angle to circumvent a bug in tpic
2811 handling of some versions of dvipdfm (and dvipdfmx).
2813 2003-10-30 Werner LEMBERG <wl@gnu.org>
2815 * src/devices/grops/grops.man: Improve section on creating EPS.
2817 2003-10-29 Werner LEMBERG <wl@gnu.org>
2819 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2822 2003-10-28 Werner LEMBERG <wl@gnu.org>
2824 * doc/groff.texinfo: Fix documentation of `.if'.
2826 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
2828 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2829 the form `uniXXXX' also.
2831 2003-10-27 Werner LEMBERG <wl@gnu.org>
2833 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2834 contrib/pic2graph/pic2graph.sh: Implement secure management of
2836 Pass `-P-pletter' to groff to avoid data outside of the converted
2837 area -- some versions of `convert' (for example 5.3.8) don't check
2838 the bounding box of the image but always use a fixed image size
2839 (letter paper format).
2840 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2841 contrib/pic2graph/pic2graph.man: Updated.
2843 * src/roff/groff/groff.man: Document $TMP and $TEMP.
2845 2003-10-26 Werner LEMBERG <wl@gnu.org>
2847 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2848 troff_output::simple_ellipse, troff_output::simple_arc,
2849 troff_output::simple_line, troff_output::simple_spline,
2850 troff_output::simple_polygon): Insert a space before arguments.
2851 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2852 latter doesn't produce a node, so the following `.sp -1' would do
2854 Don't emit `.sp -1' after \M. This also doesn't produce a token
2855 (and we don't have to care about compatibility mode).
2856 (troff_output::set_color, troff_output::reset_color): Don't emit
2857 `.sp -1' after \M and \m.
2859 * src/roff/troff/input.cpp (old_have_input): New global variable.
2860 (input_stack::get): Handle `old_have_input'.
2861 (process_input_stack) <token::TOKEN_NEWLINE>: Call
2862 `trapping_blank_line' depending on `old_have_input', not
2865 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
2867 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2868 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2869 default directory names for temporary files.
2870 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2872 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2873 [__MSDOS__] (run_pipeline): Honour environment variables.
2874 Don't use `tmpnam' but `tempnam' to work around messy
2877 * README.MinGW: New file.
2879 2003-10-16 Werner LEMBERG <wl@gnu.org>
2881 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2882 `(*t)->next' without testing validity of `*t'.
2883 (usage): Make it more readable.
2885 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2887 Make html device run under both MS-DOS and Win32.
2889 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2890 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2891 spawn or fork+exec has to be used, and whether parent must sleep
2892 until the child process terminates. Used in
2893 `char_buffer::run_output_filter'.
2894 (copyofstdoutfd): Removed.
2895 (char_buffer): Replace `write_file_html' and `write_file_troff'
2896 member functions with `emit_troff_output' and `run_output_filter'.
2897 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2899 (replaceFd): Replaced with...
2900 (set_redirection): New auxiliary function.
2901 (waitForChild): Replaced with...
2902 (save_and_redirect): New auxiliary function for.
2904 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2907 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2909 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2910 (GROFF_LIBC): New function.
2911 * configure.ac: Call GROFF_LIBC.
2913 * configure: Regenerated.
2915 * src/include/lib.h: Handle __MINGW32__.
2916 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2917 Add macro for `pipe'.
2920 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2923 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2926 2003-10-13 Werner LEMBERG <wl@gnu.org>
2928 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2931 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2934 2003-10-12 Werner LEMBERG <wl@gnu.org>
2936 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2937 src/roff/troff/input.cc (usage): Updated.
2939 * NEWS, doc/groff.texinfo: Updated.
2941 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
2943 * src/libs/libgroff/searchpath.cpp
2944 (search_path::open_file_cautious): New function which also handles
2945 `-' as stdin and stdout depending on the access mode.
2946 * src/include/searchpath.h (search_path): Updated.
2948 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2949 * src/devices/grops/ps.h: Include `searchpath.h'.
2950 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2951 Open resource file with `include_search_path.open_file_cautious'.
2952 * src/devices/grops/grops.man: Document new `-I' switch.
2954 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2955 (main), src/devices/grolj4/lj4.cpp (main),
2956 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2958 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2960 (include_search_path): New global variable.
2961 (include_path_append): Removed.
2962 (main): Use `include_search_path.command_line_dir' to handle `-I'.
2963 (do_file): Simplify, using new
2964 `include_search_path.open_file_cautious'.
2966 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2968 (main): Pass arguments to `-I' to both troff and devices.
2969 Improve handling of `-V'.
2970 * src/roff/groff/groff.man: Document changes to -I and -V.
2972 * src/roff/troff/input.cpp (include_search_path): New global
2974 (next_file, source, ps_bbox_request, transparent_file,
2975 process_input_file): Use new
2976 `include_search_path.open_file_cautious'.
2977 (main) Handle `-I' switch.
2978 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2979 Use new `include_search_path.open_file_cautious'.
2980 * src/roff/troff/node.h: New extern symbol `include_search_path'.
2981 * src/roff/troff/troff.man: Document new `-I' switch.
2983 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
2985 Support multiple calls of .Lb in LIBRARY section.
2987 * tmac/doc-common (doc-in-library-section): New register.
2988 (doc-section-library): New string.
2989 (Sh): Set `doc-in-library-section'.
2991 * tmac/doc-syms (Lb): Insert breaks before and after arguments
2992 if in LIBRARY section.
2993 * tmac/doc.tmac (doc-save-global-vars): Updated.
2994 * NEWS, tmac/groff_mdoc.man: Updated.
2996 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
2998 * tmac/doc-common (doc-default-operating-system): New variable.
3001 2003-09-08 Werner LEMBERG <wl@gnu.org>
3003 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
3005 2003-08-31 Werner LEMBERG <wl@gnu.org>
3007 * contrib/mom/Makefile.sub: Fix last change to make it really work.
3008 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
3009 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
3010 $(DEVFILES) are not empty.
3011 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
3013 2003-08-26 Chuck Silvers <chuq@chuq.com>
3015 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
3016 with parallel runs of `make'.
3018 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
3020 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
3021 insert SORT_SEP. With certain combinations of sort specifications,
3022 refer sorted entries in the wrong order. In particular, entries
3023 with a missing field should be be sorted before all entries that
3024 have that field, before refer looks to the next field.
3026 2003-08-23 Werner LEMBERG <wl@gnu.org>
3028 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
3029 g++ linker is used. Reported by Mark J. Reed
3030 <mark.reed@turner.com>.
3032 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
3034 Add key character `x' to tbl which makes tbl call a user-defined
3035 macro on a table cell.
3037 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
3038 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
3039 `set_modifier' after printing the compatibility request.
3040 (set_modifier): Print call to `m->macro' if not empty.
3041 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
3043 (process_format): Implement cases `x' and `X'.
3044 * src/preproc/tbl/tbl.man, NEWS: Updated.
3046 2003-08-15 Werner LEMBERG <wl@gnu.org>
3048 * doc/groff.texinfo: Minor fixes.
3050 2003-08-09 Werner LEMBERG <wl@gnu.org>
3052 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
3054 2003-08-07 Werner LEMBERG <wl@gnu.org>
3056 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
3057 argument list to nothing if there is no file to match. Use `ls' as
3058 a protection, similar to autoconf.
3060 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
3061 empty argument lists.
3063 * doc/groff.texinfo: Improve documentation how vertical spacing
3064 and line breaks interact.
3067 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
3069 2003-08-03 Werner LEMBERG <wl@gnu.org>
3071 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
3072 EPS (using eps2eps or similar programs to compute the bounding box).
3074 2003-07-24 Werner LEMBERG <wl@gnu.org>
3076 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
3077 * doc/texinfo.tex: Updated from texinfo 4.6.
3078 * README.CVS: From now on we need texinfo 4.6.
3080 2003-07-23 Werner LEMBERG <wl@gnu.org>
3082 Add requests `dei1' and `ami1' for completeness.
3084 * src/roff/troff/input.cc (calling_mode): Remove
3085 CALLING_DISABLE_COMP.
3086 (comp_mode): New enumeration.
3087 (do_define_string, define_string, define_nocomp_string,
3088 append_string, append_nocomp_string): Updated.
3089 (do_define_macro): Add third parameter.
3090 (define_macro, define_nocomp_macro, define_indirect_macro,
3091 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
3092 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
3095 (init_input_requests): Add `dei1' and `ami1'.
3097 * tmac/trace.tmac: Handle de1 and am1.
3098 (de): Improve tracing message.
3099 (am): Add missing `do'.
3102 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3103 Document new requests.
3105 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
3107 Add option -G to .MPIMG to insert a gap between text and the image.
3109 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
3110 www-finish-left-ll): Updated.
3111 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
3112 (MPIMG): Make option -L and -R optional.
3113 Implement option -G.
3115 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
3117 * src/devices/grohtml/post-html.cpp
3118 (html_printer::do_file_components): Don't use `stdout' as lvalue
3119 since it can be a macro.
3121 2003-07-22 Werner LEMBERG <wl@gnu.org>
3123 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
3124 the corresponding test in aclocal.m4.
3126 2003-07-21 Werner LEMBERG <wl@gnu.org>
3128 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
3129 names but RGB values directly. Otherwise pnmtopng depends on
3130 an external file `rgb.txt' which maps colour names to values.
3132 2003-07-20 Werner LEMBERG <wl@gnu.org>
3134 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
3135 * configure, src/include/config.hin: Regenerated.
3137 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
3139 2003-07-19 Werner LEMBERG <wl@gnu.org>
3141 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
3143 2003-07-18 Werner LEMBERG <wl@gnu.org>
3145 * *.man: Switch to non-compatibility mode temporarily if GNU
3146 syntax extensions are used in the particular man page.
3148 * PROBLEMS: Add solutions for SGR problems.
3150 2003-07-17 Werner LEMBERG <wl@gnu.org>
3152 Don't ignore grotty's command line options if \X'tty: sgr ...' is
3153 used to change the drawing scheme.
3155 * src/devives/grotty/tty.cpp (bold_flag_option,
3156 underline_flag_option, italic_flag_option, reverse_flag_option,
3157 bold_underline_mode_option): New global variables.
3158 (update_options): New function.
3159 (tty_printer::special): Call update_options.
3160 (main): Don't set xxx_flag but xxx_flag_option, then call
3163 2003-07-14 Werner LEMBERG <wl@gnu.org>
3165 Make grotty emit proper Unicode box drawing characters for -Tutf8.
3167 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
3169 (hline_char, vline_char): New global variables.
3170 (tty_printer::tty_printer): Initialize them.
3171 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
3172 horizontal and vertical lines.
3173 (crossings): New global array.
3174 (tty_printer::end_page): Use it to determine the proper crossing
3175 character for -Tutf8.
3177 2003-07-12 Werner LEMBERG <wl@gnu.org>
3179 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
3180 (HTMLDOCFILES): Revert to `pic.html'.
3181 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
3183 2003-07-11 Werner LEMBERG <wl@gnu.org>
3185 * doc/pic.ms: Improve documentation of absolute coordinates.
3186 Document absolute positioning of pictures.
3188 * NEWS: Add new pic capability.
3190 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
3192 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
3195 2003-07-07 Werner LEMBERG <wl@gnu.org>
3197 Implement support for dashed and dotted ellipses in pic. Based on
3198 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
3200 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
3201 common_output::dashed_ellipse, common_output::dotted_ellipse): New
3202 functions. Ellipse arcs are approximated with circle arcs.
3203 * src/preproc/pic/common.h (common_output): Updated.
3204 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
3206 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
3208 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
3210 2003-07-06 Werner LEMBERG <wl@gnu.org>
3212 Make grotty work on platforms which have unsigned char as the
3213 default for char. Based on a patch by Thomas Klausner
3216 * src/devices/grotty/tty.cpp (schar): New typedef.
3217 Updated calls to declare_ptable and implement_ptable.
3218 (glyph): Use schar for back_color_idx and fore_color_idx.
3219 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
3220 (tty_printer::tty_color, tty_printer::tty_printer,
3221 tty_printer::color_to_idx, tty_printer::put_color): Updated.
3223 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
3225 * src/roff/nroff/nroff.sh: Add option -d for completeness.
3226 * src/roff/nroff/nroff.man: Updated.
3228 2003-07-05 Werner LEMBERG <wl@gnu.org>
3230 * NEWS, tmac/groff_www.man: Updated.
3231 * doc/Makefile.sub: Updated.
3233 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
3235 Implement support for multiple HTML output files.
3237 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
3238 -j command line option.
3240 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
3242 (file): New fields `new_output_file', `require_links',
3244 (file::file): Updated.
3245 (files::set_file_name, files::set_links_required,
3246 files::are_links_required, files::is_new_output_file,
3247 files::file_name, files::next_file_name): New functions.
3248 (header_desc): New fields `no_of_level_one_headings',
3250 (header_desc::header_desc): Updated.
3251 (header_desc::write_headings): Handle multiple files.
3252 (html_printer::write_header): Save file name in which header occurs.
3253 (html_printer::determine_header_level): Possibly split files on
3255 (html_printer::do_links, html_printer::troff_tag): Updated.
3256 (html_printer::insert_split_file, html_printer::do_job_name,
3257 html_printer::emit_link, html_printer::write_navigation,
3258 html_printer::do_file_components): New functions.
3259 (html_printer::~html_printer): Handle multiple files.
3260 (main): Handle command line option `-j'.
3262 * src/devices/grohtml/grohtml.man: Updated.
3264 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
3267 * tmac/www.tmac (JOBNAME): New macro.
3268 * tmac/s.tmac (SH-NO-TAG): New macro.
3269 (@SH): Call SH-NO-TAG.
3272 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
3274 * tmac/groff_mdoc.man: Improve documentation of punctuation
3277 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
3279 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
3281 2003-07-03 Werner LEMBERG <wl@gnu.org>
3283 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
3285 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
3287 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
3288 after `/*' and `*/'.
3290 (Fn, Fo): Reduce indentation in synopsis.
3292 * tmac/doc-common (doc-check-depth): New macro.
3293 (doc-end-macro, Sh, Ss): Use it.
3294 (Cd): Fix behaviour in synopsis.
3295 (In): Make it parsed and callable.
3296 If not in the synopsis, represent the C header file enclosed in
3298 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
3299 Use minus, not hyphen.
3301 * tmc/groff_mdoc.man: Updated.
3303 2003-07-01 Werner LEMBERG <wl@gnu.org>
3305 Integrated grap2graph, contributed by Eric S. Raymond.
3307 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
3309 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
3310 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
3312 2003-07-01 Colin Watson <cjwatson@debian.org>
3314 * src/xditview/*.c: Add prototypes, fix return types, add includes.
3315 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
3317 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
3319 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
3321 2003-06-31 Werner LEMBERG <wl@gnu.org>
3323 * doc/Makefile.sub (CLEANADD): Remove all files created by
3324 running `make groff.{pdf,dvi}'.
3326 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
3329 2003-06-30 Werner LEMBERG <wl@gnu.org>
3331 * Makefile.in (SHELL): Define as @SHELL@.
3332 (mkinstalldirs): Use $(SHELL).
3333 (MDEFINES): Add $(SHELL).
3334 * Makefile.comm (SHELL): Removed.
3336 2003-06-29 Werner LEMBERG <wl@gnu.org>
3338 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3339 The X11 documentation files use them.
3340 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3342 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
3344 * tmac/e.tmac (@C): Handle .ad also.
3346 2003-06-12 Werner LEMBERG <wl@gnu.org>
3348 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3350 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3351 Assign `n' even here. It is possible to construct a node
3352 immediately following an escape character:
3360 2003-06-10 Werner LEMBERG <wl@gnu.org>
3362 * README.WIN32: Removed.
3363 * MANIFEST: Updated.
3365 2003-06-07 Werner LEMBERG <wl@gnu.org>
3367 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3369 2003-06-05 Werner LEMBERG <wl@gnu.org>
3371 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3372 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3374 2003-06-03 Werner LEMBERG <wl@gnu.org>
3376 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3377 is done by the calling function.
3379 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
3381 * tmac/X.tmac: Fix definition of `em'.
3383 2003-05-22 Werner LEMBERG <wl@gnu.org>
3385 * src/roff/troff/input.cc (return_macro_request): Fix detection of
3388 2003-05-18 Werner LEMBERG <wl@gnu.org>
3390 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3391 to make items work which consist only of a tag.
3393 2003-05-17 Werner LEMBERG <wl@gnu.org>
3395 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3396 aren't stretched in a tag (this can fail with unformatted boxes).
3397 Instead, insert a break and go back one line.
3399 2003-05-16 Werner LEMBERG <wl@gnu.org>
3401 * src/roff/troff/input.cc (return_macro_request): If called with
3402 argument pop macro twice. We need this to trace `return'.
3404 * tmac/trace.tmac: Handle `return'.
3407 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3410 2003-05-15 Larry Kollar <kollar@alltel.net>
3412 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3413 registers `FPS', `FVS', and `FPD'.
3415 2003-05-15 Werner LEMBERG <wl@gnu.org>
3417 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3420 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
3422 * tmac/groff_mdoc.man: Slight improvements.
3424 2003-05-03 Werner LEMBERG <wl@gnu.org>
3426 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3427 `doc-header-space' after header line if register `cR' is set.
3429 2003-05-02 Werner LEMBERG <wl@gnu.org>
3433 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
3435 * tmac/doc-common (Nd): Use \[em].
3437 2003-05-01 Werner LEMBERG <wl@gnu.org>
3439 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3440 doc-footer-space): Initialize to 0.5i.
3441 (doc-setup-page-layout): Don't set doc-header-space and
3444 2003-04-30 Werner LEMBERG <wl@gnu.org>
3446 * REVISION: Set to 1.
3448 * doc/pic.ms: Document possible problems with `figname'.
3450 2003-04-29 Werner LEMBERG <wl@gnu.org>
3452 Version 1.19 released
3453 =====================
3455 * VERSION: Set to 1.19.
3456 * REVISION: Set to 0.
3457 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3459 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3460 Define charset as `US-ASCII' in html output.
3462 * tmac/www.tmac (ULE): Add missing scaling indicator.
3464 * win32-diffs: Removed.
3466 2003-04-28 Werner LEMBERG <wl@gnu.org>
3468 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3470 Document how to insert discardable whitespace with `.ss'.
3472 2003-04-27 Werner LEMBERG <wl@gnu.org>
3474 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3475 work with plain TeX also.
3477 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3479 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
3481 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3484 2003-04-24 Werner LEMBERG <wl@gnu.org>
3486 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3487 vbox with positive height and zero depth if in TeX mode.
3489 * NEWS: Document glyph name changes for grodvi and grolj4.
3491 2003-04-23 Werner LEMBERG <wl@gnu.org>
3493 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3494 * doc/pic.ms: Fixed.
3496 2003-04-21 Werner LEMBERG <wl@gnu.org>
3498 HP-UX 10.20 has `snprintf' but it isn't declared.
3500 * configure.ac: Add declaration test for snprintf.
3501 * configure: Regenerated.
3502 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3503 * src/include/config.hin: Regenerated.
3505 2003-04-19 Werner LEMBERG <wl@gnu.org>
3507 Add keyword `figname' to pic, specifying the name of the picture
3508 box in TeX mode. Based on a patch from William J Poser
3509 <wjposer@unagi.cis.upenn.edu>.
3511 * src/preproc/pic/pic.y: New token `FIGNAME'.
3512 (macro_name): New rule of type <str>.
3513 (placeless_element): Handle `FIGNAME'.
3514 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3515 * src/preproc/pic/main.cpp (graphname): New global variable.
3516 (do_picture): Initialize `graphname'.
3517 * src/preproc/pic/pic.h: Updated.
3518 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3521 (tex_output::text): Beautify output.
3522 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3523 `shaded' and `outlined' unconditionally.
3524 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3527 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3528 greater is necessary.
3530 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
3532 Add option -r to soelim to avoid emission of `.lf' lines.
3533 Add option -t to produces TeX comment lines instead of `.lf' lines.
3535 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3538 (main): Handle `-r' and `-t'.
3539 (set_location): Handle `raw_flag' and `tex_flag'.
3540 * src/preproc/soelim/soelim.man, NEWS: Updated.
3542 2003-04-17 Werner LEMBERG <wl@gnu.org>
3544 * tmac/hyphenex.sh: Replaced with...
3545 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3548 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3549 if --quiet is used for the configure script.
3550 * configure: Regenerated.
3552 2003-04-16 Werner LEMBERG <wl@gnu.org>
3554 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3555 Add `const' to second argument.
3556 (html_printer::add_table_end): Add `const' to argument.
3557 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3558 `const' to arguments.
3559 * src/devices/grohtml/html-text.h: Updated.
3561 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3562 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3565 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3566 cast for integer constant.
3568 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3569 (writeNbytes): Add `const' to first argument.
3570 (writeString): Add `const' to argument.
3571 (char_buffer::can_see): Add `const' to third argument.
3572 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3573 `const' to argument.
3574 * src/preproc/html/pushback.h: Updated.
3576 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3577 (include_path_append): Add `const' to argument.
3580 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3582 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3583 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3585 (unicode_decompose_init::unicode_decompose_init): Updated.
3586 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3588 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3589 * src/roff/troff/input.cc (process_startup_file): Add `const' to
3592 * tmac/hyphenex.sh: Make script more portable by using a here
3595 2003-04-15 Werner LEMBERG <wl@gnu.org>
3597 Renamed all `*.cc' files to `*.cpp'.
3598 Updated all configuration files, makefiles, and documentation.
3600 2003-04-14 Werner LEMBERG <wl@gnu.org>
3602 * tmac/hyphenex.sh: Slight improvements.
3604 2003-04-13 Werner LEMBERG <wl@gnu.org>
3606 * font/devascii/R.proto, font/devcp1037/R.proto,
3607 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3608 character slots with unnamed glyphs.
3610 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3611 (an-first): New global variable.
3612 (an-header): Emit vertical space between multiple man pages.
3614 2003-04-11 Werner LEMBERG <wl@gnu.org>
3616 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3619 2003-04-10 Werner LEMBERG <wl@gnu.org>
3621 * PROBLEMS: Revised.
3623 2003-04-10 Bernd Warken <bwarken@mayn.de>
3625 * doc/webpage.ms: Improved.
3627 2003-04-09 Werner LEMBERG <wl@gnu.org>
3629 Add register \n[.height] which returns the value of \H.
3630 Add register \n[.slant] which returns the value of \S.
3632 * src/roff/troff/env.cc (init_env_requests): Implement.
3633 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3636 2003-04-08 Werner LEMBERG <wl@gnu.org>
3638 * tmac/html.tmac: Move some of the data into html-end.tmac.
3639 Remove most of the character translations for eqn since html fonts
3640 now cover those characters.
3642 * tmac/html-end.tmac: New file.
3643 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3644 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3645 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3647 2003-04-07 Werner LEMBERG <wl@gnu.org>
3649 * man/groff_out.man: Document negative values of `N' if -Thtml is
3652 2003-04-06 Werner LEMBERG <wl@gnu.org>
3654 * Makefile.comm (depend.temp): Check location of YTABC.
3656 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3658 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3660 (groff_bin_path): Rename to GROFF_BIN_PATH.
3661 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3662 * doc/Makefile.in (TROFFBIN): New variable for troff
3664 (GROFFBIN): New variable for groff binary path.
3665 (groff_bin_path): Rename to GROFF_BIN_PATH.
3666 (TROFF): Use TROFFBIN.
3667 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3668 * doc/Makefile.sub (GROFFBIN): New variable for groff
3670 (groff_bin_path): Rename to GROFF_BIN_PATH.
3671 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3673 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3674 with INSTALL_SCRIPT.
3675 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3676 * Makefile.dev (all): Depend on DEVSCRIPTS.
3677 (install_dev): Likewise.
3678 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3680 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3681 (DEVGENSCRIPTS): New variable to hold generated scripts.
3683 2003-04-05 Werner LEMBERG <wl@gnu.org>
3685 * src/libs/libdriver/input.cc (IntArray::operator[],
3686 IntArray::get_data): Remove meaningless `const' in return value.
3688 * README.CVS: New file.
3690 2003-04-04 Werner LEMBERG <wl@gnu.org>
3692 Check for stdint.h in C++, not in C.
3694 * aclocal.m4 (GROFF_STDINT_H): New function,
3695 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3697 * configure, src/include/config.hin: Regenerated.
3698 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3701 Fix handling of in grohtml. To do this, troff emits `N'
3702 with a negative value, representing the width of the unbreakable
3703 space (only for -Thtml). grohtml then converts this back to
3704 and uses the value of N as its width.
3706 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3707 unbreakable_space_node::tprint): Emit `N-<width>'.
3708 * src/include/printer.h (printer::set_numbered_char): Make it
3710 Make members `font_table' and `nfonts' protected instead of private.
3711 * src/devices/grohtml/post-html.cc
3712 (html_printer::set_numbered_char): New member function.
3715 * src/libs/libgroff/maxfilename.cc:
3716 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3718 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3721 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
3723 * man/roff.man: Small fixes.
3725 2003-04-03 Werner LEMBERG <wl@gnu.org>
3727 Make groff independent from locale's numeric settings.
3729 * configure.ac: Check for `setlocale'.
3730 * configure, src/include/config.hin: Regenerated.
3732 * src/include/lib.h: Handle HAVE_SETLOCALE.
3734 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3735 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3736 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3739 * doc/groff.texinfo: Change dir category to `Typesetting'.
3740 (Man font macros): Mention that there is no space between arguments
3743 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3744 (*printer::change_color, *printer::change_fill_color): Add missing
3747 2003-04-02 Werner LEMBERG <wl@gnu.org>
3749 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3750 html_table::is_gap): Compute table widths after converting border
3751 positions to avoid rounding errors.
3753 2003-04-01 Werner LEMBERG <wl@gnu.org>
3755 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3756 `space_emitted' properly.
3758 2003-03-31 Werner LEMBERG <wl@gnu.org>
3760 * src/devices/grohtml/html-table.cc: Fix column width calculation.
3761 (html_table::set_linelength): Don't add 1.
3762 (html_table::add_indent): Don't subtract 1.
3764 * tmac/html.tmac: Set default page offset to zero.
3766 2003-03-30 Werner LEMBERG <wl@gnu.org>
3768 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
3770 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3771 unbreakable_space_node::tprint): New functions.
3772 (troff_output_file): Make space_char_hmotion_mode::tprint and
3773 unbreakable_space_node::tprint to friends.
3774 * src/roff/troff/node.h: Updated.
3776 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
3777 in the HTML standard).
3779 2003-03-29 Werner LEMBERG <wl@gnu.org>
3781 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3782 Otherwise, the following code
3791 produces `x a' instead of `xa'. This is a temporary fix, disabling
3792 font changes in diversions for -Thtml.
3794 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3796 (an-do-tag-html): Merge with ...
3797 (an-do-tag): This macro.
3798 Change code slightly to circumvent grohtml bug.
3799 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3801 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3802 html_table::is_gap): Round `width' properly.
3804 * tmac/html.tmac: Provide some default layout parameters for
3807 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3810 2003-03-28 Werner LEMBERG <wl@gnu.org>
3812 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3814 2003-03-27 Werner LEMBERG <wl@gnu.org>
3816 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3819 2003-03-20 Werner LEMBERG <wl@gnu.org>
3821 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3823 * doc/groff.texinfo: Updated.
3825 2003-03-19 Werner LEMBERG <wl@gnu.org>
3827 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3828 TOKEN_END_TRAP>: Reset `have_input'.
3830 2003-03-18 Werner LEMBERG <wl@gnu.org>
3832 * src/roff/groff/groff.man: Mention groff_trace man page.
3834 2003-03-16 Werner LEMBERG <wl@gnu.org>
3836 * Makefile.in (LIBEXT): New variable to indicate the file extension
3837 of library files. Computed heuristically from $(OBJEXT).
3838 (MDEFINES): Add $(LIBEXT).
3839 * Makefile.lib, Makefile.comm: Use it.
3841 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
3842 overlong lines into smaller chunks.
3843 (get_binary): New function.
3845 * src/utils/pfbtops/pfbtops.man: Updated.
3847 2003-03-15 Colin Watson <cjwatson@debian.org>
3849 * src/roff/groff/groff.man: Minor syntax fix.
3851 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
3853 * src/devices/grops/ps.cc (ps_printer::media_set,
3854 ps_printer::~ps_printer): Handle zero paper width and length.
3856 2003-03-13 Werner LEMBERG <wl@gnu.org>
3858 Add options -p and -l to grodvi.
3860 * src/devices/grodvi/dvi.cc: Include paper.h.
3861 (landscape_flag, user_paper_length, user_paper_width): New global
3863 (dvi_printer::begin_page): Emit `papersize' special.
3864 Set color after initialization of `cur_h' and `cur_v'.
3865 (main): Add options `-l' and `-p'.
3866 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3867 * src/devices/grodvi/grodvi.man, NEWS: Updated.
3869 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3871 2003-03-12 Werner LEMBERG <wl@gnu.org>
3873 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3874 * man/groff_tmac.man: This man page.
3875 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3878 * tmac/X.tmac: Don't load pspic.tmac.
3880 2003-03-11 Werner LEMBERG <wl@gnu.org>
3882 Make variable `pr' local to libdriver/input.cc. Based on a patch
3883 by Bernd Warken <bwarken@mayn.de>.
3885 * src/include/driver.h (pr): Removed.
3887 * src/libs/libdriver/input.cc (pr): New global variable.
3888 (do_file): Deallocate `pr'.
3889 * src/libs/libdriver/printer.cc (pr): Removed.
3891 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3892 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3893 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3894 (main): Don't delete `pr'.
3896 2003-03-10 Werner LEMBERG <wl@gnu.org>
3898 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3899 * tmac/papersize.tmac: New file.
3900 * tmac/troffrc: Include `papersize.tmac'.
3901 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3902 * tmac/an-old.tmac: Set LT to LL by default.
3904 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3905 doc/groff.texinfo: Updated.
3907 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3908 bug which caused all odd iso papers to have wrong dimensions.
3910 * src/devices/grops/ps.cc (user_paper_width): New global variable.
3911 (main) <'p'>: Set `user_paper_width' also.
3912 (ps_printer::media_width, ps_printer::media_height): Use values
3913 given with option `-p'.
3915 2003-03-09 Werner LEMBERG <wl@gnu.org>
3917 * src/include/nonposix.h: Provide default for SET_BINARY.
3919 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3920 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3923 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3924 (main): Treat \r\n as \n.
3926 2003-03-08 Werner LEMBERG <wl@gnu.org>
3928 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3929 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3931 2003-03-07 Werner LEMBERG <wl@gnu.org>
3933 Added support to access more than 256 glyphs in Type 1 fonts.
3935 * src/devices/grops/ps.cc (subencoding): New structure.
3936 (style): Add `sub' field.
3938 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3939 Add `set_subencoding', `get_subfont' and `encode_subfont' member
3942 (ps_printer::set_char): Use `set_subencoding'.
3943 (make_subencoding_name): New function.
3944 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3945 (ps_printer::~ps_printer): Emit subencoding definitions.
3947 * src/devices/grops/psrm.cc (valid_input_table): New array to
3948 properly support EBCDIC.
3949 (white_space): Add `\f'.
3950 (ps_get_line): Change first argument to be of type `string &'.
3951 Updated all callers.
3952 This allows to get lines of arbitrary length.
3953 Use `valid_input_table'.
3954 Remove warning about non-conforming PS line length. This seems
3955 not to be of great importance -- for example, dvips don't emit
3957 (PS_LINE_MAX): Removed.
3958 (matches_comment): Change first argument to be of type `string &'.
3960 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3962 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3963 %AGL_to_unicode, %default_ligatures): New hash tables.
3964 Read all map entries.
3965 Add unencoded characters.
3966 Check for default ligatures if there are no `L' entries.
3967 Print all kern entries.
3968 Print all characters in charset.
3969 * src/utils/afmtodit/afmtodit.man: Updated.
3971 * font/devps/*: Regerated all fonts.
3973 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3974 of characters, just use `.trin'. Otherwise the mapping depends
3975 on the font encoding.
3976 * tmac/ps.tmac: Add `fi' and `fl'.
3977 Improve `Fi' and `Fl'.
3978 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3979 * tmac/Xps.tmac: Fix `em'.
3983 2003-03-04 Werner LEMBERG <wl@gnu.org>
3985 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3988 2003-03-03 Werner LEMBERG <wl@gnu.org>
3990 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3992 * font/devps/generate/textmap: Remove entry `similarequal'.
3993 * font/devps/symbolmap: Updated.
3995 2003-03-02 Werner LEMBERG <wl@gnu.org>
3997 * src/libs/libgroff/font.cc (font::load): Fix error message for
4000 * src/devices/grops/grops.man: Improve documentation of the -b
4003 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
4004 `ascii' and `cp1047'.
4006 2003-03-01 Werner LEMBERG <wl@gnu.org>
4008 Document composite glyphs and the `composite' request.
4010 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
4012 2003-02-28 Werner LEMBERG <wl@gnu.org>
4014 * font/devdvi/generate/ec.map: Add some more Unicode entities.
4015 * font/devdvi/*EC: Updated.
4017 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
4018 * tmac/latin1 (latin1-tr): Undo any previous mapping.
4019 * tmac/troffrc: Load `composite.tmac'.
4020 * tmac/Makefile.sub (NORMALFILES): Updated.
4022 * doc/groff.texinfo (Input Encodings): New section.
4025 2003-02-27 Werner LEMBERG <wl@gnu.org>
4027 * doc/texinfo.tex: New version 2003-02-11.06.
4029 * tmac/doc-common (Dt): Don't emit warning for unknown section.
4030 * tmac/groff_mdoc.man: Fix description of `Dt'.
4032 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
4034 * font/devps/prologue.ps: Fix for included Postscript that does
4035 a setpagedevice -- which is now safely ignored.
4039 * src/devices/grops/ps.cc: Now sets the page size in the generated
4040 document. This is done in two ways: Via a %%-comment for gv and
4041 the like, and via a PageSize and setpagedevice for programs that
4042 understands Postscript proper, like ps2pdf.
4044 * src/devices/grops/ps.h: New broken-flag to avoid page size
4045 definition, if required.
4047 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
4049 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
4050 Not really necessary due to the fix in prologue.ps, but cleaner:
4051 Such information does not belong in an .eps file.
4053 * doc/Makefile.sub: See doc/Makefile.in.
4055 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
4057 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
4058 instead of P1 since the latter is broken in some versions of netpbm.
4059 * configure: Updated.
4061 2003-02-26 Larry Kollar <kollar@alltel.net>
4063 Make man pages more customizable.
4065 * tmac/an-old.tmac (FT): New register holding footer distance from
4067 (HF): New string holding the default heading font.
4068 (TH): Handle registers `IN' and `SN' set on the command line.
4070 (PT, BT): New strings to customize header and footer lines.
4071 (an-header, an-footer): Use them.
4073 * tmac/groff_man.man: Document changes.
4075 * doc/groff.texinfo: Document man changes.
4076 Document Ultrix extensions of man.
4078 2003-02-26 Werner LEMBERG <wl@gnu.org>
4080 * src/roff/troff/input.cc (do_width, do_if_request): Reset
4081 `have_input' after changing back to old environment.
4083 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
4084 function up to be defined before first call. This is necessary to
4085 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
4087 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
4088 the default font directory also. Based on a patch from James
4089 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
4090 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
4091 * src/utils/afmtodit/afmtodit.man: Document it.
4095 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
4097 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
4099 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
4100 (GROFF_PNMTOPS_NOSETPAGE): New macro.
4101 * configure.ac: Use it.
4102 * configure: Regenerated.
4103 * Makefile.in: Updated.
4105 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
4106 (CLEANADD): Add www.tmac-sed.
4107 (pnmtops_nosetpage): Define default.
4108 (install_data): Handle www.tmac-sed and substitute
4109 @PNMTOPS_NOSETPAGE@.
4110 (stamp-sed): Add www.tmac.
4111 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
4112 It now breaks URLs at suitable places.
4113 (www:substring_ok): New register set by...
4114 (www:@test_substring): New macro.
4115 (www:error): New alias to www-error.
4116 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
4118 (URL): Use www:url_breaks.
4119 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
4120 (CDS, CDE): New macros.
4122 2003-02-25 Werner LEMBERG <wl@gnu.org>
4124 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
4127 2003-02-24 Werner LEMBERG <wl@gnu.org>
4129 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
4130 can be negative also.
4132 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
4134 (read_char_table): Avoid negative ascenders.
4135 (output_charset): Add cast.
4136 * font/devlj4/*: Regenerated.
4138 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
4141 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
4142 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
4144 * font/devdvi/*: Regenerated.
4146 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
4147 normal width, while the previously used characters (U+2329 and
4148 U+232A) are classified as wide due to canonical equivalence with the
4149 CJK punctuation characters U+3008 and U+3009.
4151 * font/devutf8/R.proto: Updated.
4152 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
4154 * man/groff_char.man: Simplify handling of table traps by
4155 introducing `start block' and `end block' macros.
4156 (Ns, Ne, 2s, 2e, Ds, De): New macros.
4157 (DL): Make it work with Unix troff also.
4158 Fix code values of `la' and `ra'.
4160 * tmac/dvi.tmac: Define `<>' for CW and CWI.
4162 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
4164 * src/devices/grohtml/post-html.cc (element_list::~element_list):
4165 New destructor, fixing a major memory leak.
4167 2003-02-22 Werner LEMBERG <wl@gnu.org>
4169 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
4170 to be in conformance with Unicode 3.0 and newer.
4172 * font/devlj4/generate/text.map: Add `Eu'.
4173 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
4174 * font/devlj4/S: Regenerated.
4176 * man/groff_char.man: Completely rewritten.
4178 * doc/groff.texinfo: Fix description of request and macro arguments.
4180 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
4184 * src/devices/grohtml/html-table.cc (html_table::~html_table):
4185 Deallocate `columns' list.
4186 * src/devices/grohtml/post-html.cc (char_block::~char_block):
4188 (text_glob::text_glob_html, text_glob::text_glob_special,
4189 text_glob::text_glob_line, text_glob::text_glob_auto_image,
4190 text_glob::text_glob_tag): Avoid memory leaks.
4191 (text_glob::remember_table): Free memory before reassigning.
4193 2003-02-19 Werner LEMBERG <wl@gnu.org>
4195 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
4196 alias `hbar'), the Planck constant over two pi.
4198 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
4199 `+e' for position 34.
4200 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
4201 `u2662' and `u2661'.
4202 * font/devdvi/{MI,S}: Regenerated.
4203 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
4204 * font/devlbp/*: Add `hbar' alias.
4205 * font/devlj4/generate/special.map: Ditto.
4206 * font/devlj4/S: Regenerated.
4207 * font/devps/generate/symbolchars: Add `+e'.
4208 * font/devps/generate/textmap: Fix PS name for `-h'.
4210 * font/devps/symbolmap: Regenerated.
4212 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
4214 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
4216 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
4219 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
4221 * tmac/tty-char.tmac: Add `+e'.
4223 2003-02-17 Werner LEMBERG <wl@gnu.org>
4225 Another round trying to really fix problems with `have_input'.
4227 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
4228 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
4230 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
4231 handling if both foreground and background colors are default.
4233 * doc/groff.texinfo (Debugging): Document .lf differences to
4236 2003-02-16 Werner LEMBERG <wl@gnu.org>
4238 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
4239 null-bytes in created string.
4241 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
4242 alias_macro, lookup_request): Improve warning messages.
4244 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
4246 Free `last_image_filename'.
4248 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
4250 (imageList::createPage, imageList::createImage): Use `free', not
4252 (imageItem::~imageItem): Free `imageName'.
4253 (addRegDef): Use `strsave', not `strdup'.
4254 (get_resolution): Free `pathp'.
4256 2003-02-15 Werner LEMBERG <wl@gnu.org>
4258 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
4261 2003-02-14 Werner LEMBERG <wl@gnu.org>
4263 Add memory management for colors to deallocate unnamed colors
4266 * src/include/color.h (color): New members `free_list' and `next'.
4267 New member functions `new' and `delete'.
4269 * src/libs/libgroff/color.cc: Implement it.
4271 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
4272 for array size of new operator.
4274 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
4275 redundant comparison.
4277 * src/roff/troff/input.cc (word_space_node::reread,
4278 hmotion_node::reread): Avoid warning about unused parameter.
4279 (reset_output_registers): Remove redundant parameter.
4280 (define_color): Undo change 2003-02-12.
4282 * src/roff/troff/reg.h: Updated.
4284 * src/roff/troff/node.cc (troff_output_file::really_print_line,
4285 output_file::put_filename, real_output_file::really_put_filename,
4286 ascii_output_file::really_print_line,
4287 break_char_node::get_hyphen_list): Avoid warning about unused
4289 (suppress_node::tprint): Updated.
4291 * configure.ac: Check declaration for rand() and srand().
4292 * configure: Regenerated.
4294 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
4296 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
4299 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
4300 to avoid compiler warnings.
4302 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
4305 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
4307 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
4309 Updated all callers.
4311 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
4313 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
4314 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
4316 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
4317 Parameter is unused.
4318 (html_printer::add_table_end): Define parameter conditionally.
4319 * src/devices/grohtml/output.cc (simple_output::special): Parameter
4322 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
4323 (lbp_printer::set_char): Last parameter is unused.
4325 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
4327 2003-02-13 Werner LEMBERG <wl@gnu.org>
4329 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
4330 Make \D'f ...' move horizontally again for backwards compatibility.
4331 Replace it with \D'Fg ...' where appropriate to avoid dependency
4332 on horizontal resolution.
4334 * src/roff/troff/input.cc (do_get_long_name): New function.
4335 (get_long_name): Call it.
4337 (read_draw_node): Handle `\D'Fx ...' by calling ...
4338 (read_color_draw_node): New function.
4340 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4342 Pass it to `do_get_long_name' which is used instead of
4345 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4346 unnecessary value guard.
4347 (parse_D_command) <'f'>: Add horizontal shift.
4349 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4350 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4351 (FILL_MAX): Removed.
4353 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4356 2003-02-12 Werner LEMBERG <wl@gnu.org>
4358 * src/roff/troff/input.cc (do_name_test, do_expr_test,
4359 do_zero_width): Push `\n' if closing delimiter is missing.
4361 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4362 <'F'>: Make \F non-transparent at the beginning of line.
4363 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4364 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4367 (define_color): Free color in case of reassignment.
4369 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4370 @DefescListEnd): Use @Var, not @var.
4373 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4375 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4376 `shaded' and `outlined' arrays.
4377 (object_spec::object_spec): Initialize `shaded' and `outlined'.
4378 (graphic_object::set_fill_color, graphic_object::set_outline_color):
4380 (closed_object::set_fill_color): Ditto.
4381 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4383 (troff_output::reset_color): Use a_delete instead of free.
4384 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4386 2003-02-11 Werner LEMBERG <wl@gnu.org>
4388 * doc/groff.texinfo: Improve documentation of `ad'.
4389 Document that \D'f...' is dependent on the horizontal resolution.
4390 * man/groff_diff.man: Improve documentation of \D'f...'.
4392 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4393 compensating \h'...' for \D'f ...' since the latter no longer moves
4395 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4397 2003-02-10 Werner LEMBERG <wl@gnu.org>
4399 Improve error messages for `x F' (and `F') commands.
4401 * src/include/error.h: Add declaration for
4402 `current_source_filename'.
4403 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4404 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4405 parameter for source file string.
4406 Updated all callers.
4408 * src/libs/libdriver/input.cc: Add `current_source_filename'.
4409 (remember_source_filename): New function.
4410 (parse_x_command <'F'>, do_file <'F'>): Use it.
4412 2003-02-09 Werner LEMBERG <wl@gnu.org>
4414 Make grotty not emit warnings about unknown colors more than
4417 * src/devices/grotty/tty.cc: Include `ptable.h'.
4418 (TTY_MAX_COLORS): Removed.
4419 (DEFAULT_COLOR_IDX): Defined to -1.
4420 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4421 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4422 Change `tty_colors' to be a ptable.
4423 First arg of `put_color' is now `char'.
4424 New functions `make_rgb_string' and `tty_color'.
4425 (tty_printer::tty_printer): Use `tty_color'.
4426 (tty_printer::color_to_idx): Return value is now `char'.
4429 * src/include/color.h (color): Add `print_color' member function.
4430 * src/libs/libgroff/color.cc (color::print_color): Implement it.
4432 2003-02-08 Werner LEMBERG <wl@gnu.org>
4436 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4439 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4440 assume that value has been allocated with `new[]', thus use
4441 `a_delete' for deallocation.
4443 * src/libs/libdriver/input.cc (get_integer_arg,
4444 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4447 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4448 * src/libs/libgroff/nametoindex.cc
4449 (character_indexer::named_char_index): Use `new <type>[1]'.
4451 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4453 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4454 (split_text): Use `a_delete'.
4456 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4459 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4460 harmless memory leak.
4461 (hyphen_trie::read_patterns_file): Initialize `buf'.
4462 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4463 Initialize `current_fill_color'and `current_glyph_color'.
4464 * src/roff/troff/glyphuni.cc
4465 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4466 * src/roff/troff/uniuni.cc
4467 (unicode_decompose_init::unicode_decompose_init): Ditto.
4468 * src/roff/troff/uniglyph.cc
4469 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4471 2003-01-26 Werner LEMBERG <wl@gnu.org>
4473 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4474 `access' before calling `unlink'.
4475 (do_file): Handle __EMX__.
4477 * src/include/nonposix.h: Handle __EMX__.
4479 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4480 (fontpath,tmacpath): Use it.
4482 Sorted alphabetically.
4484 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4486 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4489 2003-01-27 Werner LEMBERG <wl@gnu.org>
4491 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4492 New files, copied from gnulib.
4493 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4494 * configure.ac: Updated.
4495 * configure: Regenerated.
4497 * src/include/config.hin: Regenerated.
4498 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4499 Don't define `strcasecmp' as `strcmp'.
4500 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4501 Dont define `strncasecmp' as `strncmp'.
4503 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4506 2003-01-26 Werner LEMBERG <wl@gnu.org>
4508 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4511 2003-01-25 Werner LEMBERG <wl@gnu.org>
4513 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4515 2003-01-24 Werner LEMBERG <wl@gnu.org>
4517 Add US-english hyphenation exceptions (converted from Barbara
4518 Beeton's hyphenation exception log reports which appear irregularly
4521 * tmac/hyphen.us: Updated to latest version.
4522 * tmac/README: Updated.
4523 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4524 * tmac/troffrc: Load `hyphenex.us'.
4525 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4526 * doc/groff.texinfo: Updated.
4528 2003-01-23 Werner LEMBERG <wl@gnu.org>
4530 Improve hyphenation slightly. This is a first step in redesigning
4531 the hyphenation algorithm to make it more flexible (e.g. allowing
4532 kerns and ligatures between the hyphenation character and the
4533 following character -- while not used normally in English, other
4534 languages like German would benefit).
4536 * src/roff/troff/env.cc (environment::hyphenate_line): Use
4537 assertion instead of if-clause.
4538 Let `get_hyphen_list' return the number of involved characters in
4539 the hyphenation pattern instead of computing it directly (which
4540 often yields too small values).
4541 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4542 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4545 2003-01-22 Werner LEMBERG <wl@gnu.org>
4547 Fixing a bug which caused groff to hang if the hyphenation exception
4548 dictionary tried to grow.
4550 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4551 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4552 pointer to dictionary.
4554 2003-01-20 Werner LEMBERG <wl@gnu.org>
4556 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4557 negative left italic correction.
4558 * src/utils/afmtodit/afmtodit.man: Document it.
4560 * font/devps/generate/Makefile (RFLAG): Add `-m'.
4561 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4562 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4566 2003-01-16 Werner LEMBERG <wl@gnu.org>
4570 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
4572 * src/preproc/refer/refer.man: Mention REFER environment variable.
4574 2003-01-05 Werner LEMBERG <wl@gnu.org>
4576 Similar to \[is], the square root glyph (\[sr]) and the square root
4577 extension glyph (\[radicalex]) are now text symbols. The new
4578 mathematical versions are called \[sqrt] and \[sqrtex],
4581 * font/devX*/S: Regenerated.
4582 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4583 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4584 * font/devdvi/EX, font/devdvi/S: Regenerated.
4585 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4586 * font/devlj4/generate/special.map: Add `sqrt'.
4587 * font/devlj4/S: Regenerated.
4588 * font/devps/generate/textmap: Add `sqrt'.
4589 * font/devps/S, font/devps/symbolmap: Regenerated.
4591 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4592 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4593 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4594 overlap horizontally.
4596 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4597 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4600 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4601 and `sqrtex' are overlapping glyphs.
4603 2003-01-04 Werner LEMBERG <wl@gnu.org>
4605 * font/devdvi/generate/texsy.map: Add `is'.
4606 * font/devps/symbolmap: Regenerated.
4607 * font/devdvi/*TC, MI, S: Regenerated.
4609 * tmac/dvi.tmac: Remove `is'.
4611 2003-01-03 Werner LEMBERG <wl@gnu.org>
4613 `is' is now a text symbol (only relevant for dvi). The math variant
4614 can be accessed with `integral'.
4616 * font/devX*/S: Regenerated.
4617 * font/devdvi/generate/texex.map: Remove `is'.
4618 * font/devdvi/EX: Updated.
4619 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4620 * font/devlj4/generate/special.map: Ditto.
4621 * font/devlj4/S: Regenerated.
4622 * font/devps/generate/textmap: Add `integral'.
4623 * font/devps/S: Regenerated.
4625 * tmac/dvi.tmac: Define `is'.
4627 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4629 * src/preproc/tbl/main.cc (process_format): Fix error message.
4631 2003-01-02 Werner LEMBERG <wl@gnu.org>
4633 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4634 * font/devps/textmap: Fix entries for `ne' and `nc'.
4635 * font/devps/symbolmap: Regenerated.
4637 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4638 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4639 `38', `58', `78', `-+', `|=', `nc', `ne'.
4641 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4642 Use `schar' for `aq'.
4643 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4644 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4645 * tmac/tty.tmac: Add `ne'.
4647 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4648 for fallback glyphs.
4650 2002-12-29 Werner LEMBERG <wl@gnu.org>
4654 * font/devX*/*: Regenerated.
4655 * font/devdvi/generate/ec.map: Remove `eq'.
4656 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4657 Assign `|=' to position 39.
4658 * font/devdvi/*EC, S: Regenerated.
4659 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4660 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4661 Assign `|=' to position 549.
4662 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4664 Add `uni2243' for `|='.
4666 * tmac/ec.tmac: Add `eq'.
4667 * tmac/dvi.tmac: Add `=~'.
4668 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4671 2002-12-21 Werner LEMBERG <wl@gnu.org>
4673 * font/devdvi/generate/tc.map: Remove `**'.
4674 * font/devdvi/*TC: Regenerated.
4675 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4677 * font/devutf8/NOTES: Updated.
4679 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4680 Don't give default parameter to `set_macro'.
4681 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4682 instead of `set_macro'.
4683 (charinfo::setx_macro): Implement it.
4684 (charinfo::set_macro): Don't change `mode'.
4686 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4687 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4688 * tmac/dvi.tmac: Define `!=' with `.schar'.
4690 2002-12-20 Werner LEMBERG <wl@gnu.org>
4692 * font/devX*/S: Regenerated.
4693 * font/devdvi/generate/ec.map: Remove `pl'.
4694 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4695 * font/devdvi/*{TC,EC}: Regenerated.
4696 * font/devhtml/R.proto: Add `-+'.
4697 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4698 * font/devlbp/*: Remove `or'.
4699 * font/devlj4/generate/special.map: Remove `or'.
4700 * font/devlj4/S: Regenerated.
4701 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4702 `seveneighths', `threeeighths'.
4704 Replace `minusplus' with `uni2213'.
4705 * font/devps/symbolmap: Regenerated.
4706 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4709 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4711 * src/roff/troff/node.cc (troff_output_file::put_char_width):
4712 Call glyph_color and fill_color even if tcommand_flag isn't set.
4713 (make_node, node::add_char): Check not ci->is_fallback but
4716 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4717 * tmac/ec.tmac: Add .rchar entry for `f/'.
4718 Don't remove `12', `14', `34'.
4719 Define `pl' to be always roman.
4720 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4721 Define `18', `38', `58', `78'.
4722 * tmac/tty.tmac: Add `-+'.
4723 * tmac/dvi.tmac: Define `f/'.
4724 (dvi-frac): Use `f/'.
4725 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4726 Define `18', `38', `58', `78'.
4728 2002-12-15 Colin Watson <cjwatson@debian.org>
4730 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4732 2002-12-10 Werner LEMBERG <wl@gnu.org>
4734 Add glyph `tno', a textual variant of `no'.
4736 * font/devX*/*: Regenerated.
4737 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4738 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4739 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4740 * font/devdvi/*: Regenerated.
4741 * font/devlbp/*: Add `tno'.
4742 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4743 * font/devlj4/*: Regenerated.
4744 * font/devps/generate/textmap: Replace `no' with `tno'.
4745 * font/devps/generate/symbolchars: Add `no'.
4746 * font/devps/*: Regenerated.
4748 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4750 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4751 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4755 * tmac/dvi.tmac: Replace most `\\' with `\E'.
4756 Add definition for `sd'.
4757 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4759 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4761 2002-12-08 Werner LEMBERG <wl@gnu.org>
4763 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4764 mode to avoid rounding errors.
4765 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4767 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4768 src/roff/troff/troff.man: Improve documentation of -T.
4770 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
4772 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4773 (run_pipeline) [_WIN32]: Provide working function without `fork'.
4775 2002-12-06 Werner LEMBERG <wl@gnu.org>
4777 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4778 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4779 Scaling Euro.sansserif glyphs down to have the same height as
4781 Removed unnecessary points; added some extrema.
4783 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4786 2002-12-04 Werner LEMBERG <wl@gnu.org>
4788 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4789 and `Euro.symbol.bold.slanted'.
4790 Improve some glyph offsets and widths.
4791 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4793 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4795 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4798 * tmac/europs.tmac: Updated to new glyph indices.
4799 Use Euro.symbol for font familiy `A'.
4801 * doc/groff.texinfo: Minor improvements.
4803 2002-12-02 Werner LEMBERG <wl@gnu.org>
4805 * font/devdvi/generate.tc.map: s/%O/%0/.
4806 * font/devdvi/*TC: Regenerated.
4808 * src/roff/troff/div.cc (init_div_requests): Sorted.
4810 * tmac/dvi.tmac: Remove `Ye'.
4811 * tmac/ec.tmac: Remove `Ye'.
4812 Add .rchar entry for `de'.
4814 * man/groff.man, man/groff_diff.man: Document register `.pe'.
4815 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4818 2002-11-30 Werner LEMBERG <wl@gnu.org>
4820 Add PS font for various Euro glyphs.
4822 * font/devps/generate/freeeuro.sfd: New master font file for
4824 * font/devps/generate/sfdtopfa.pe: New conversion script for
4826 * font/devps/generate/Makefile (FONTS): Add `EURO'.
4827 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4828 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4830 * font/devps/EURO: Generated from `freeeuro.afm'.
4831 * font/devps/download: Add `freeuro.pfa'.
4832 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4835 * tmac/europs.tmac: New file.
4836 * tmac/ps.tmac: Include `europs.tmac'.
4837 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4839 2002-11-29 Werner LEMBERG <wl@gnu.org>
4841 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4842 * font/devdvi/S: Regenerated.
4843 * font/devhtml/R.proto: Fix `CR' and `ci'.
4845 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4847 * font/devps/symbolmap: Regenerated.
4848 * font/devutf8/R.proto: Fix `CR' and `ci'.
4850 * font/devutf8/NOTES: Updated.
4852 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4855 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4857 * tmac/dvi.tmac: Add `lh' and `rh'.
4858 * tmac/Xps.tmac: Fix `lh' and `rh'.
4859 * tmac/X.tmac: Add `OK'.
4860 * tmac/lj4.tmac: Ditto.
4862 2002-11-24 Werner LEMBERG <wl@gnu.org>
4864 * font/devX*/S: Regenerated.
4865 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4866 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4867 * font/devdvi/generate/texsy.map: Remove `or' glyph.
4868 * font/devdvi/S: Regenerated.
4869 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4870 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4871 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4872 `bracketleftbt', `bracketrighttp', `bracketrightex',
4873 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4874 `braceex', `braceleftex', `bracerightex', `bracerighttp',
4875 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4877 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4878 * font/devutf8/NOTES: Updated.
4879 * font/devlj4/generate/special.map: Add glyph `braceex'.
4880 * font/devlj4/S: Regenerated.
4882 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4884 2002-11-14 Werner LEMBERG <wl@gnu.org>
4886 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4889 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4891 * doc/texinfo.tex: New version from texinfo 4.3.
4892 * doc/groff.texinfo: Updated for texinfo 4.3.
4893 Use @tie{} where appropriate.
4894 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4895 * font/devdvi/generate/tc.map: Remove `rn'.
4896 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4897 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4899 * font/devX100/*, font/devX100-12/*, font/devX75/*,
4900 font/devX75-12/*: Regenerated.
4902 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4903 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4904 Improve definition of `an'.
4905 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4907 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4908 * tmac/X.tmac: Add definition for `or'.
4909 * tmac/Xps.tmac: Undo change 2002-11-05.
4910 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4912 2002-11-11 Werner LEMBERG <wl@gnu.org>
4914 * src/roff/troff/node.cc (troff_output_file::put_char): Always
4917 2002-11-10 Werner LEMBERG <wl@gnu.org>
4919 Added three new requests `schar', `fschar', and `rfschar'. `schar'
4920 defines a glyph which is searched after the check for fonts declared
4921 with `.special' (and before the check for all mounted special
4922 fonts). `fschar' defines a glyph for a particular font which is
4923 searched after the check for fonts declared with `.fspecial' (and
4924 before the check for fonts declared with `.special'). `rfschar'
4925 removes glyphs defined with `fschar'.
4927 * src/roff/troff/token.h (char_mode): New enum.
4928 Declare do_define_character.
4929 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4931 (charinfo::is_fallback): Updated.
4932 (charinfo::is_special): New method.
4933 * src/roff/troff/input.cc (do_define_character): Add and use
4934 optional second parameter used as a prefix for font-specific glyph
4936 (define_character, define_fallback_character): Updated.
4937 (define_special_character): New function.
4938 (init_input_requests): Add `schar'.
4939 (charinfo::charinfo, charinfo::set_macro): Updated.
4940 * src/roff/troff/node.cc: Include `stringclass.h'.
4941 (make_glyph_node): Handle special glyphs defined with `.schar' and
4943 (define_font_special_character, remove_font_special_character): New
4945 (init_node_requests): Sorted.
4946 Add `fschar' and `rfschar'.
4947 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4948 Document new requests.
4950 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4951 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4953 2002-11-08 Werner LEMBERG <wl@gnu.org>
4955 Added new font `SC' (cmtex10) to devdvi.
4957 * devdvi/generate/Makefile (FONTS): Add `SC'.
4959 * devdvi/generate/textex.map: New map file for cmtex.
4961 * devdvi/Makefile.sub (DEVFILES): Updated.
4962 * tmac/dvi.tmac: Add fspecial entries for SC.
4963 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
4964 found before `S' since the font position of `SC' is lower due to the
4965 gaps in DESC's `font' line.
4966 * tmac/ec.tmac: Add a `special' call.
4969 * font/devhtml/R.proto: Remove double entry for `ti'.
4970 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4971 * tmac/tty-char.tmac: Remove entry for `bq'.
4972 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4973 * tmac/ec.tmac: Don't remove `aq' glyph.
4974 * tmac/X.tmac: Fix entry for `em'.
4975 Add entries for `fo' and `fc'.
4976 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4978 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4979 documentation of `special' and `fspecial' requests.
4981 2002-11-05 Werner LEMBERG <wl@gnu.org>
4983 * font/devascii/R.proto, font/devcp1047/R.proto,
4984 font/devlatin1/R.proto: Remove entry for `.i'.
4985 * font/devdvi/generate/textt.map: Add entry for `ad'.
4986 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4987 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4988 We need this for getting kerning values to compose `/l' and `/L'.
4989 * font/devdvi: Regenerated font definition files for CM fonts.
4990 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4991 * font/devutf8/R.proto: Ditto.
4992 Remove double entry for `ti'.
4994 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4995 for (groff) ligatures, `la', and `ra'.
4996 Add "'C", "'c", `IJ', and `ij'.
4997 Remove double entry for `ti'.
4998 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
5000 Add "'C", "'c", `IJ', and `ij'.
5001 Fix entries for (groff) ligatures, `la', and `ra'.
5003 * tmac/ps.tmac (ps-achar): New macro.
5004 Define "'c" and "'C".
5005 * tmac/tty.tmac: Add entry for `.i'.
5006 * tmac/X.tmac (X-achar): New macro.
5007 Define "'c", "'C", and `:Y'.
5008 Add entries for `IJ' and `ij'.
5009 * tmac/Xps.tmac (Xps-achar): New macro.
5010 Define "'c" and "'C".
5011 Add entries for `IJ' and `ij'.
5012 * tmac/lbp.tmac (lbp-achar): New macro.
5013 Add fallback characters for all groff ligatures and many other
5015 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
5016 Add entries for `/l' and `/L'.
5017 Define "'c" and "'C".
5018 Add entries for `IJ' and `ij'.
5020 2002-11-02 Larry Kollar <kollar@alltel.net>
5022 * PROBLEMS: Document how to solve Mac OS X compilation problems.
5024 2002-11-02 Werner LEMBERG <wl@gnu.org>
5026 Adding support for composite glyphs: \[xxx yyy ...] and the
5027 `composite' request.
5029 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
5030 to Unicode-based glyph names.
5031 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
5032 glyph names to groff glyph names.
5033 * src/roff/troff/uniuni.cc: New file for canonically decomposing
5034 Unicode-based glyph names.
5035 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
5036 for handling Unicode glyph names.
5037 * src/roff/troff/input.cc: Include unicode.h.
5038 (composite_glyph_name): New function.
5039 (token::next) <'['>: Handle Unicode glyph names and composite
5041 (composite_dictionary): New dictionary for the `composite' request.
5042 (composite_request): Implement `composite' request.
5043 (init_input_requests): Add `composite'.
5044 Alphabetically sorted.
5045 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
5047 (init_env_requests): Alphabetically sorted.
5048 Removed `tas' and `tar' (already commented out).
5049 * src/roff/troff/Makefile.sub: Updated.
5051 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
5053 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
5056 2002-10-29 Werner LEMBERG <wl@gnu.org>
5058 Fix computation of .trunc register. Additionally, its value (and
5059 the value of the .ne register) is now always set before entering the
5062 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
5063 `needed_space' before calling `space'.
5064 (top_level_diversion::space): Remove special code for 'sp before the
5066 Call `begin_page' with the discarded space as a parameter.
5067 (top_level_diversion::begin_page): Add optional parameter to set
5069 * src/roff/troff/div.h: Updated.
5071 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
5074 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
5075 (LP): Remove superfluous call to `br'.
5076 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
5077 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5079 2002-10-26 Werner LEMBERG <wl@gnu.org>
5081 * tmac/doc-ditroff: Remove useless switch/variable -rC.
5082 (doc-setup-header): Don't set page register `%'.
5083 * tmac/doc-nroff: Remove variable `C'.
5084 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
5085 (doc-setup-header): Don't set page register `%'.
5087 * tmac/doc-common (doc-header): Call `ns'.
5088 (doc-paragraph): Protect .sp with .br so that it survives traps
5089 possibly set by the user.
5090 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5092 * tmac/doc*: Replace ' with . for consistency if no effect.
5094 2002-10-26 Werner LEMBERG <wl@gnu.org>
5096 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
5097 so that it survives traps possibly set by the user.
5099 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
5100 (troff_output_file::set_font): Call flush_tbuf if necessary.
5101 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
5102 flush_tbuf and do_motion only if necessary.
5103 (troff_output_file::start_special,
5104 troff_output_file::put_char_width, troff_output_file::put_char,
5105 troff_output_file::draw): Updated.
5106 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5107 vmotion_node::tprint): Undo change 2002-10-23.
5109 2002-10-25 Werner LEMBERG <wl@gnu.org>
5111 * tmac/www.tmac (DC): Fix case of overlapping images.
5113 2002-10-23 Werner LEMBERG <wl@gnu.org>
5115 * src/roff/troff/node.cc (troff_output_file::fill_color,
5116 troff_output_file::glyph_color): Set current color before testing
5118 (troff_output_file::put_char_width, troff_output_file::put_char,
5119 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
5121 (troff_output_file::file_color, troff_output_file::glyph_color):
5123 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5124 vmotion_node::tprint): Move first, then call fill_color.
5126 2002-10-20 Werner LEMBERG <wl@gnu.org>
5128 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
5129 possible to use multiple main macro packages.
5131 2002-10-19 Werner LEMBERG <wl@gnu.org>
5133 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
5134 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
5135 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
5137 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
5138 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
5140 2002-10-16 Werner LEMBERG <wl@gnu.org>
5142 * NEWS, doc/webpage.ms: Updated.
5144 2002-10-14 Werner LEMBERG <wl@gnu.org>
5146 * src/roff/troff/node.cc (troff_output_file::put_char_width,
5147 troff_output_file::put_char, troff_output_file::fill_color,
5148 troff_output_file::glyph_color): Handle case where color pointer
5151 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
5153 Add the new -r option to grotty. It is similar to the -i option
5154 except it tells grotty(1) to use the "reverse video" attribute to
5155 render italic fonts.
5157 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
5158 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
5159 (tty_printer::make_underline, tty_printer::put_color,
5160 tty_printer::end_page): Use it.
5161 (main): Add -r switch.
5163 * src/devices/grotty/grotty.man: Document it.
5165 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
5167 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5168 cast to `unsigned char' to properly read patterns with 8bit
5171 2002-10-08 Werner LEMBERG <wl@gnu.org>
5173 * REVISION: Increased to 2.
5175 Version 1.18.1 released
5176 =======================
5178 2002-10-08 Werner LEMBERG <wl@gnu.org>
5180 * doc/webpage.ms, NEWS: Updated.
5182 2002-10-07 Werner LEMBERG <wl@gnu.org>
5184 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
5185 suppress additional whitespace after the header.
5187 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
5190 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
5192 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
5194 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
5195 (Dt): Use it to improve language localization (especially Russian
5198 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
5200 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
5201 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
5203 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
5205 Call `picurve' for BSPLINE.
5206 (HGPrintElt): Handle BSPLINE.
5207 * src/preproc/grn/README: Document it.
5209 2002-10-03 Werner LEMBERG <wl@gnu.org>
5211 * src/roff/troff/node.cc (break_char_node::col): New variable.
5212 Updated constructor.
5213 (space_node::tprint, word_space_node::tprint): Call `fill_color'
5215 (space_node::space_node): Remove assertion.
5216 (break_char_node::add_self): Pass color argument to space node.
5217 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
5219 * src/roff/troff/env.cc (environment::do_break,
5220 environment::add_padding): Ditto.
5222 2002-10-02 Werner LEMBERG <wl@gnu.org>
5224 Redesigning color support in troff. Colors are no longer
5225 represented as separate nodes but are now part of glyph nodes and
5226 friends. This fixes the current formatting misbehaviour due to the
5227 changes introduced on 2002-09-20. Some extra code is necessary for
5228 proper grotty support: Without adding color variables to
5229 space-related nodes, the background color would be changed too late.
5231 * src/roff/troff/node.h, src/roff/troff/node.cc:
5232 s/current_pagecolor/current_fill_color/.
5233 s/current_glyphcolor/current_glyph_color/.
5234 (glyph_color_node, fill_color_node): Removed.
5235 (node::get_glyph_color, node::get_fill_color): New virtual member
5237 (space_node::col): New variable.
5238 Updated constructors of space_node and derived classes accordingly.
5239 (hmotion_node::col): New variable.
5240 Updated constructors of hmotion_node and space_char_hmotion_node
5242 (vmotion_node::col): New variable.
5243 Updated constructor accordingly.
5244 (draw_node::gcol, draw_node::fcol): New variables.
5245 Updated constructor accordingly.
5246 (special_node::gcol, special_node::fcol): New variables.
5247 Updated constructors accordingly.
5248 (troff_output_file::put_char, troff_output_file::put_charwidth,
5249 troff_output_file::draw): Set glyph and fill color.
5250 (troff_output_file::start_special): Set glyph and fill color.
5251 Always set current font.
5252 (troff_output_file::fill_color, troff_output_file::glyph_color):
5253 Don't call `do_motion'.
5254 (glyph_node::gcol, glyph_node::fcol): New variables.
5255 Updated constructors of glyph_node and ligature_node accordingly.
5256 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
5258 (glyph_node::merge_glyph_node,
5259 kern_pair_node::add_discretionary_hyphen,
5260 node::add_discretionary_hyphen): Updated.
5261 (break_char_node::merge_self): Updated.
5262 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5263 vmotion_node::tprint): Handle color.
5264 (make_glyph_node, make_node, node::add_char): Updated.
5266 * src/roff/troff/env.cc (environment::space_newline,
5267 environment::space, environment::output_line, environment::do_break,
5268 environment::make_tab_node, environment::add_padding, title):
5270 (environment_switch, environment_copy): Don't add color nodes.
5272 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
5274 (token::next): Updated.
5275 \m and \M now are as transparent as \s.
5276 (process_input_stack, token::add_to_node_list, token::process,
5277 read_draw_node): Updated.
5278 (charinfo_to_node_list): Don't add color nodes.
5280 * doc/groff.texinfo: Updated.
5282 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
5284 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
5287 2002-09-27 Colin Watson <cjwatson@debian.org>
5289 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
5291 2002-09-23 Werner LEMBERG <wl@gnu.org>
5293 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
5295 (DEFAULT_LINEWIDTH_FACTOR): New macro.
5296 (linewidth_factor): New global variable.
5297 (lbp_printer::set_line_thickness): Fix case for size < 0, using
5299 (long_options): Add -w/--linewidth option.
5301 (main): Handle -w option to set linewidth_factor.
5302 (lbp_printer::lbp_printer): Initialize req_linethickness, not
5305 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
5307 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
5309 Fixed a bug in the line thickness setting code.
5311 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
5313 (lbp_printer::set_line_thickness): Pass environment as second
5315 Implement it actually.
5316 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
5317 and `set_line_thickness, depending on the current font size.
5319 2002-09-21 Werner LEMBERG <wl@gnu.org>
5321 Some Debian patches.
5323 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
5324 * src/roff/troff/node.cc (bracket_node::copy): Initialize
5327 2002-09-20 Werner LEMBERG <wl@gnu.org>
5329 * configure: Regenerated with autoconf 2.54.
5331 2002-09-20 Werner LEMBERG <wl@gnu.org>
5333 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
5335 Rename cur_fill_color to fill_color.
5336 * src/roff/troff/env.cc: Updated.
5338 2002-09-20 Werner LEMBERG <wl@gnu.org>
5340 * src/roff/troff/env.cc (title): Copy color status after processing
5342 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
5343 fill color nodes to reset colors properly.
5345 * tmac/www.tmac (DC): Fix color handling.
5347 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
5348 * doc/groff.texinfo: Fixing documentation of `tl' request.
5349 * doc/webpage.ms: Updated.
5351 2002-09-19 Werner LEMBERG <wl@gnu.org>
5353 * src/roff/troff/env.cc (environent_switch, environment_copy):
5354 Emit glyph and fill color nodes to initialize colors properly.
5356 2002-09-17 Colin Watson <cjwatson@debian.org>
5358 * src/roff/troff/env.cc (environment::set_glyph_color,
5359 environment::set_fill_color): Fix typo which prevented \m[] work
5362 2002-09-17 Werner LEMBERG <wl@gnu.org>
5364 Add left and right italic correction to non-slanted PS fonts. This
5365 is an experimental feature to improve image rendering of grohtml.
5367 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
5368 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
5369 * font/devps/*: All non-slanted fonts regenerated.
5372 2002-09-16 Werner LEMBERG <wl@gnu.org>
5374 Add a site-specific font directory.
5376 * Makefile.in (localfontdir, legacyfontdir): New variables.
5377 (fontpath): Use them.
5378 (MDEFINES, uninstall_dirs): Updated.
5379 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
5380 Remove `FONTPATH' and `MACROPATH'.
5382 * src/roff/troff/troff.man, NEWS: Updated.
5383 * doc/groff.texinfo (Font Directories): New section.
5386 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
5387 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
5388 src/preproc/grn/grn.man: Minor fixes.
5390 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
5391 Remove unused variable.
5393 2002-09-11 Werner LEMBERG <wl@gnu.org>
5395 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
5396 * man/groff_out.man: Fix documentation of 'N'.
5398 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
5400 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
5401 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
5403 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
5404 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5405 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5406 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5407 PRE_TAG>: Call `begin' with `FALSE'.
5409 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5411 * src/libs/libgroff/string.cc (string::extract): Fix position of
5412 terminating null byte.
5414 2002-09-08 Werner LEMBERG <wl@gnu.org>
5416 Add global option `nospaces' to tbl so that leading and trailing
5417 spaces in data items are ignored.
5419 * src/libs/libgroff/string.cc (string::remove_spaces): New member
5420 function to remove leading and trailing spaces.
5421 * src/include/stringclass.h: Updated.
5423 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5425 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5427 Fix typo in error messages.
5428 (process_data): Implement `nospaces' option.
5429 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5431 2002-09-07 Werner LEMBERG <wl@gnu.org>
5433 * src/include/config.hin: Add `HAVE_ISATTY'.
5434 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5436 * src/libs/libgroff/tmpname.cc: Include `time.h'.
5437 * src/libs/libdriver/input.cc (Char): Add `operator==' and
5438 `operator!=' for `char'.
5439 * doc/groff.texinfo: Replace @ifnottex block for top node with
5442 2002-09-06 Werner LEMBERG <wl@gnu.org>
5444 * doc/Makefile.in (.texinfo.html): Add -I switch.
5445 * doc/groff.texinfo: Add @ifnottex block for top node to make
5446 translation to HTML work.
5448 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
5450 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5451 (get_papersize, determine_vertical_offset): Removed.
5452 (char_buffer::do_image): Always specify letter size.
5454 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5457 2002-09-05 Werner LEMBERG <wl@gnu.org>
5459 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5460 default indentation.
5462 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
5464 * src/preproc/html/pre-html.cc (imageList::createPage): Use
5466 (generateImages): Clean up push-back buffer.
5468 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5470 * doc/groff.texinfo: Minor fixes.
5472 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5474 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5475 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5477 (determine_vertical_offset): Use LETTER_LENGTH.
5478 (createPage): Moved to ...
5479 (imageList::createPage): This.
5480 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5481 (imageList::getMaxX): New function.
5482 (createImage): Moved to ...
5483 (imageList::createImage): This.
5484 (imageList::createImages): New function.
5485 (generateImages): Read `maxx' directly.
5487 (scanArguments): Don't specify `gsPaper' for `-o'.
5488 (makeTempFiles): Call `xtmpfile' with the last argument set to
5491 2002-08-24 Werner LEMBERG <wl@gnu.org>
5493 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5494 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5495 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5496 * src/preproc/html/pushback.cc: Include nonposix.h.
5497 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5500 2002-08-23 Werner LEMBERG <wl@gnu.org>
5502 Use $(OBJEXT) for the object file extension.
5504 * Makefile.comm (.SUFFIXES): Add .obj.
5505 (.cc.obj, .c.obj): New implicit rules.
5506 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5507 (MDEFINES): Add EXEEXT and OBJEXT.
5508 * */Makefile.sub: s/.o/.$(OBJEXT)/.
5510 2002-08-22 Werner LEMBERG <wl@gnu.org>
5512 * INSTALL: Mention texinfo 4.2 as a prerequisite.
5514 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5516 * src/devices/grohtml/post-html.cc (colType): Make enum global to
5518 (html_printer::update_min_max, html_printer::add_table_end): New
5520 (html_printer::lookahead_for_tables): Use them.
5521 Reset page offset correctly.
5522 (html_printer::~html_printer): Add creation of creator comment up.
5524 2002-08-20 Werner LEMBERG <wl@gnu.org>
5526 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5527 * man/groff_tmac.man: Fix typos.
5528 * man/groff_font.man: Minor reordering.
5529 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5531 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5533 Avoid endless loops while scanning for tables.
5535 * src/devices/grohtml/post-html.cc (list::insert): Set
5537 (html_printer::next_horiz_pos): Add `text_glob' argument; update
5539 Return immediately if that argument is NULL.
5540 (html_printer::calc_nf): Don't test if `g' is NULL.
5541 (html_printer::lookahead_for_tables): Use
5542 `glyphs.move_right_get_data'.
5543 Don't test if `g' is NULL.
5545 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5547 A better fix, replacing fix 2002-08-15, for increasing SIZE.
5549 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5551 (char_block::char_block): Allocate `buffer'.
5552 (char_buffer::add_string): Use it.
5554 2002-08-15 Werner LEMBERG <wl@gnu.org>
5556 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5557 src/devices/grodvi/grodvi.man: Document default line thickness.
5559 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
5561 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5564 2002-08-14 Werner LEMBERG <wl@gnu.org>
5566 * doc/webpage.ms: Updated.
5568 2002-08-09 Werner LEMBERG <wl@gnu.org>
5570 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5573 2002-08-08 Aaron Campbell <aaron@monkey.org>
5575 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5578 2002-08-08 Werner LEMBERG <wl@gnu.org>
5580 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5583 Don't push back a space but a newline onto the stack.
5585 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
5587 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5590 * src/devices/grohtml/post-html.cc (html_printer::end_font,
5591 html_printer::start_font): Handle them.
5592 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5594 (html_text::do_bold): Don't reset italic and tt.
5595 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5596 * font/devhtml/DESC.proto: Add those fonts.
5597 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5599 2002-08-07 Werner LEMBERG <wl@gnu.org>
5601 * MORE.STUFF: Added gpresent.
5603 * tmac/trace.tmac: Show nesting level by a corresponding amount of
5604 whitespace before printing the logging message.
5606 2002-07-31 Colin Watson <cjwatson@debian.org>
5608 * src/devices/grohtml/html-table.cc (html_table::finish_row):
5609 Initialize `n' to zero. This fixes a segfault on ARM.
5611 2002-07-30 Werner LEMBERG <wl@gnu.org>
5613 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5615 2002-07-29 Werner LEMBERG <wl@gnu.org>
5617 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5620 2002-07-28 Colin Watson <cjwatson@debian.org>
5622 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5624 (html_printer::html_printer): Initialize `pointsize'.
5626 2002-07-26 Werner LEMBERG <wl@gnu.org>
5628 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5630 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5631 (gnu.eps): Add -rle switch to pnmtops.
5632 (distfiles): Add gnu.eps and gnu.png.
5634 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
5636 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5639 2002-07-24 Werner LEMBERG <wl@gnu.org>
5641 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5642 ' \+' but ' *' for sed.
5643 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5645 2002-07-23 Werner LEMBERG <wl@gnu.org>
5647 * doc/groff.texinfo: Document `papersize' keyword.
5648 * NEWS, man/groff_font.man: Updated.
5650 2002-07-23 Colin Watson <cjwatson@debian.org>
5652 Extend papersize keyword to accept more than a single entry. The
5653 first valid will be used.
5655 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5656 (font::scan_papersize): Really skip final newline.
5657 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5659 2002-07-23 Werner LEMBERG <wl@gnu.org>
5661 * configure.ac: Test for isatty.
5662 * configure: Regenerated.
5663 * src/include/posix.h: Check HAVE_ISATTY.
5664 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5665 * src/utils/lookbib/lookbib.cc: Include posix.h.
5666 Don't declare isatty.
5668 2002-07-21 Werner LEMBERG <wl@gnu.org>
5670 * NEWS: Add `output' request.
5672 * REVISION: Increased to 1.
5674 Version 1.18.0 released
5675 =======================
5677 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
5679 Allow internal glyph indices > 0xFF in grohtml for input characters.
5681 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5683 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5684 Updated all callers.
5685 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5686 (html_printer): Updated.
5688 2002-07-19 Werner LEMBERG <wl@gnu.org>
5690 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5691 * font/devutf8/R.proto: Adding some missing glyphs.
5692 * font/devutf8/NOTES: Updated.
5694 * tmac/dvi.tmac: Add more composite glyphs.
5695 * tmac/html.tmac: Updated.
5697 * man/groff_char.man: Add `sum' and `product' entities.
5701 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
5703 Improved table, tab, and indenting support.
5705 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5706 string_iterator::suppress_newline_flag): Removed. Updated all
5707 function which have used it.
5709 * src/roff/troff/env.cc: Include `input.h'.
5710 (environment::add_node): Accept 0 as parameter.
5711 (environment::add_html_tag): Add `force' parameter.
5712 Updated all callers.
5713 (environment::add_html_tag_tabs): Ditto.
5714 For the moment, support left-aligned tabs only.
5715 (environment::make_html_tag): New function.
5716 (fill, no_fill): Set .br html tag additionally.
5717 (environment::newline): Emit `eol.ce' or `eol' tag for html.
5718 (environment::add_html_tag_eol): Removed.
5719 (tab_stops::distance_to_next_tab): Add variant for handling
5721 (environment::distance_to_next_tab): Ditto.
5722 Updated all callers.
5723 (environment::handle_tab): Handle tabs for html.
5725 * src/roff/troff/env.h: Updated.
5727 * src/roff/troff/div.cc: Updated all callers of
5728 `environment::add_html_tag'.
5730 * src/devices/grohtml/html-table.cc,
5731 src/devices/grohtml/html-table.h: New files.
5733 * src/devices/grohtml/html-text.cc (html_text): New members
5734 `blank_para' and `start_space'.
5735 (html_text::issue_tag): Don't emit TABLE_TAG.
5736 Handle indentation for PRE_TAG and P_TAG.
5737 (html_text::end_tag): Updated.
5738 (html_text::table_is_void, html_text::issue_table_begin,
5739 html_text::issue_table_end): Removed.
5740 (html_text::do_push): Simplified.
5741 [DEBUGGING]: Small fix.
5742 (html_text::push_para): Add new parameter for indentation; updated
5745 (html_text::do_indent, html_text::do_table, html_text::done_table,
5746 html_text::is_in_table): Removed.
5747 (html_text::do_pre): Handle P_TAG also.
5748 (html_text::shutdown): Handle p->indent.
5749 (html_text::check_emit_text): Simplified.
5750 (html_text::do_emittext): Reset `blank_para'.
5751 (html_text::do_para): Add new parameter for indentation; updated
5753 (html_text::remove_indent): New function.
5754 (html_text::do_space): Handle verbatim text properly.
5755 (html_text::ever_emitted_text, html_text::starts_with_space,
5756 html_text::remove_para_align): New functions.
5757 (html_text::dump_stack_element, html_text::dump_stack): Updated.
5759 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5762 * src/devices/grohtml/post-html.cc: Include html-table.h.
5763 (INDENTATION): Removed.
5764 (text_glob): Added many `is_<foo>' functions.
5765 Added table description `tab'.
5766 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5768 (list): Add `insert' and `move_to' member functions.
5769 (page): Add `insert_tag' member function.
5770 (page::dump_page) [DEBUG_TABLES]: Improved.
5771 (html_printer): Add `table' and `max_linelength' elements.
5772 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5773 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5774 `remove_tabs', `remove_courier_tabs'.
5775 (html_printer::emit_raw): Handle indentation.
5776 (html_printer::do_center, html_printer::write_header): Updated.
5777 (html_printer::is_courier_until_eol): Check for tag.
5778 (html_printer::do_linelength): Handle max_linelength.
5779 (html_printer::do_page_offset, html_printer::do_indentation): Handle
5781 (html_printer::do_tempindent): Updated.
5782 (html_printer::do_indentedparagraph): Removed.
5783 (html_printer::do_indent): Simplified.
5784 (html_printer::do_eol): Use `ever_emitted_text'.
5785 (html_printer::do_flush, html_printer::do_links): Don't call
5787 (html_printer::do_break): Handle end_tempindent.
5788 (html_printer::troff_tag): Get argument.
5790 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5791 (html_printer::flush_page): Call `lookahead_for_tables'.
5792 Don't call `done_table'.
5793 (html_printer::add_to_sbuf): Always call do_indent.
5795 * src/devices/grohtml/Makefile.sub: Updated.
5797 * tmac/an-old.tmac (TP): Don't handle html device specially.
5798 (an-do-tag-html): New function which will be used instead of
5799 `an-do-tag' if html device is used.
5801 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5803 * tmac/s.tmac (@IP): Don't handle html device specially.
5804 (@IP-html): New function which will be used instead of `@IP' if
5805 html device is used.
5807 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5808 is a hack which will eventually vanish again.
5809 (PIMG): Handle `-C' option correctly if not html.
5812 2002-07-17 Werner LEMBERG <wl@gnu.org>
5814 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5816 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
5818 * contrib/pic2graph/pic2graph.*: Use convert(1).
5819 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5821 2002-07-14 Bernd Warken <bwarken@mayn.de>
5823 * tmac/groff_trace.man: New file.
5824 * tmac/Makefile.sub: Updated.
5827 2002-07-13 Werner LEMBERG <wl@gnu.org>
5829 * src/roff/groff/groff.man: Add some cross references.
5831 2002-07-12 Werner LEMBERG <wl@gnu.org>
5833 * src/roff/troff/input.cc (substring_request): Add warnings for
5834 string indices out of range.
5836 2002-07-11 Werner LEMBERG <wl@gnu.org>
5838 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5839 * font/devdvi/*EC: Regenerated.
5841 2002-07-10 Bernd Warken <bwarken@mayn.de>
5843 * man/groff_char.man: Updated and extended.
5845 2002-07-10 Werner LEMBERG <wl@gnu.org>
5847 * src/roff/troff/input.cc (length_macro): Renamed to...
5848 (length_request): This.
5849 Move call of `tok.next()' to the very end, otherwise the register
5850 value hasn't been updated yet.
5851 (init_input_requests): Updated.
5853 2002-07-09 Werner LEMBERG <wl@gnu.org>
5855 * src/roff/troff/input.cc (substring_macro): Renamed to...
5856 (substring_request): This.
5857 (init_input_requests): Updated.
5858 * src/roff/troff/request.h: Updated.
5860 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
5862 * src/roff/grog/grog.sh: Fix typo.
5864 2002-07-08 Werner LEMBERG <wl@gnu.org>
5866 * win32-diffs: Updated.
5868 Handle `papersize' keyword properly in DESC.
5870 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5872 Updated all callers.
5873 * src/libs/libgroff/paper.cc: Add four more paper formats used by
5875 * src/include/paper.h: Updated.
5877 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5878 Other minor C syntax fixes.
5879 (papersize, paperlength, paperwidth): Renamed to `user_*'.
5880 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5882 (lbp_printer::lbp_printer): Pass three arguments.
5883 Set paper dimensions properly.
5884 (make_printer, main): Updated.
5885 (handle_unknown_desc_command): Fix error messages.
5886 (main): Handle papersize keyword in DESC properly.
5888 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5890 (lbp_printer::lbp_printer): Pass an argument.
5891 Set paper_size properly.
5892 (handle_unknown_desc_command): Removed.
5893 (make_printer, main): Updated.
5894 * src/devices/grolj4/grolj4.man: Minor documentation fix.
5896 * man/groff_font.man, NEWS: Updated.
5898 2002-07-07 Werner LEMBERG <wl@gnu.org>
5900 Integrated eqn2graph, contributed by Eric S. Raymond.
5902 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5904 * Makefile.in, NEWS: Updated.
5906 2002-06-04 Werner LEMBERG <wl@gnu.org>
5908 Changing the substring request to make it fit better with other
5909 string manipulation functions in other programming languages:
5910 Index 0 is now the first character in the string, and index -1
5911 indicates the last character. Since this request didn't work
5912 properly anyway in the last release, it doesn't harm too much to
5915 * src/roff/troff/input.cc (substring_macro): Use loops to get
5916 the real string length (ignoring COMPATIBLE_SAVE and
5917 COMPATIBLE_RESTORE) and offsets.
5918 Implement change described above.
5920 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5921 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5923 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5925 2002-06-03 Werner LEMBERG <wl@gnu.org>
5927 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
5928 COMPATIBLE_RESTORE are completely ignored.
5930 * src/roff/troff/input.cc (char_list::set, char_list::get): New
5932 (macro): `length' field renamed to `len'.
5933 Added new field `empty_macro' (1 if macro is empty), to be used
5934 instead of checking `len'.
5935 Updated all callers.
5936 (macro::empty): Updated.
5937 (macro::length, macro::set, macro::get): New functions.
5938 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5940 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5941 COMPATIBLE_RESTORE pairs.
5942 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5943 * src/roff/troff/request.h: Updated.
5945 * doc/groff.texinfo: Document .chop's behaviour better.
5947 2002-06-02 Werner LEMBERG <wl@gnu.org>
5949 * doc/pic.ms: Fix documentation for the addition of positions.
5951 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5953 2002-06-29 Werner LEMBERG <wl@gnu.org>
5955 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5957 * src/roff/troff/input.cc (have_string_arg): New global variable.
5958 (read_mode): New enumeration.
5959 (read_escape_name): Use it. Update all calls.
5960 (read_long_escape_name): Use it. Update all calls.
5961 Set have_string_arg if appropriate.
5962 (get_char_for_escape_name): Add parameter for handling space
5964 (interpolate_string_with_args, decode_string_args): New functions.
5965 (get_copy, token::next): Call it if necessary.
5966 (interpolate_string): Fix error message.
5968 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5971 2002-06-24 Bernd Warken <bwarken@mayn.de>
5973 * man/groff_tmac.man: Updated and extended.
5975 2002-06-24 Werner LEMBERG <wl@gnu.org>
5977 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5979 2002-06-23 Werner LEMBERG <wl@gnu.org>
5981 * doc/pic.ms: Improve documentation of composite block objects.
5983 2002-06-22 Werner LEMBERG <wl@gnu.org>
5985 * src/roff/troff/input.cc (init_registers): Add three registers
5986 `seconds', `minutes', and `hours' to hold the current time.
5988 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5991 2002-06-20 Werner LEMBERG <wl@gnu.org>
5993 Make \X accept both `\ ' and `\~', converting them to single space
5996 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5997 (token::unstretchable_space): New inline function.
5998 * src/roff/troff/input.cc (token::next, token::delimiter,
5999 token::description, token::add_to_node_list, token::process): Handle
6000 TOKEN_UNSTRETCHABLE_NODE.
6001 (encode_char): Handle tok.stretchable_space and
6002 tok.unstretchable_space.
6004 * NEWS, doc/groff.texinfo: Document it..
6006 2002-06-19 Werner LEMBERG <wl@gnu.org>
6008 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
6010 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
6011 keyword to enable/disable SGR output.
6012 (tty_printer::change_fill_color): New function.
6013 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
6015 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
6018 2002-06-18 Werner LEMBERG <wl@gnu.org>
6020 Add a `color' request and a `.color' register to control usage of
6023 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
6024 (color_flag): This (which is the inverse).
6025 (activate_color): New function.
6026 (main, init_input_requests): Updated.
6027 * src/roff/troff/troff.h, src/roff/troff/node.cc
6028 (troff_output_file::fill_color, troff_output_file::glyph_color):
6031 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6032 Document the changes.
6034 2002-06-17 Colin Watson <cjwatson@debian.org>
6036 Circumvent bug in autoconf 2.53 regarding top_builddir.
6038 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
6039 * Makefile.in, doc/Makefile.in:
6040 s/@top_builddir@/@groff_top_builddir@/.
6041 * configure: Regenerated (with autoconf 2.53).
6043 2002-06-17 Werner LEMBERG <wl@gnu.org>
6045 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
6046 `paperwidth' and `paperlength' for the `papersize' keyword.
6048 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
6050 * src/devices/grops/grops.man: Add info about Type 42 fonts.
6052 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
6054 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
6055 html_printer::do_linelength, html_printer::do_pageoffset,
6056 html_printer::do_indentation, html_printer::do_tempindent,
6057 html_printer::do_break, html_printer::begin_page): Clear indented
6059 * tmac/html.tmac: Disable hyphenation.
6061 2002-06-15 Werner LEMBERG <wl@gnu.org>
6063 Don't produce HTML files if utility programs are missing.
6065 * Makefile.in (make_html, make_install_html): New variables.
6066 (MDEFINES): Updated.
6068 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
6070 * configure.ac: Use it.
6071 * configure: Regenerated.
6073 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
6074 (HTMLEXAMPLESFILES): This new variable.
6075 (EXAMPLESIMAGEFILES): Renamed to...
6076 (HTMLEXAMPLEIMAGEFILES): This.
6077 (CLEANADD): Add HTMLEXAMPLEFILES.
6078 (all): Use `make_html'.
6080 (install_data): Use `make_install_html'.
6081 Move html stuff to...
6082 (install_html): This new target.
6083 (uninstall_sub): Updated.
6085 2002-06-14 Bernd Warken <bwarken@mayn.de>
6087 * src/roff/grog/Makefile.sub (grog): Renamed to...
6089 (grog): New rule to always install grog.sh as grog.
6091 2002-06-08 Bernd Warken <bwarken@mayn.de>
6093 * src/roff/grog/grog.pl: Fix typo.
6095 2002-06-07 Werner LEMBERG <wl@gnu.org>
6097 * doc/groff.texinfo: Add more info on .tr arguments.
6099 2002-06-05 Werner LEMBERG <wl@gnu.org>
6101 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
6103 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
6104 * configure: Regenerated.
6106 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6108 * src/roff/troff/symbol.cc (table_sizes): Add more values.
6110 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
6112 2002-06-04 Werner LEMBERG <wl@gnu.org>
6114 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
6115 is not initialized at the time we need it in case `--prefix' hasn't
6116 been set. Check for `ac_default_prefix' also.
6117 Test for `papersize' keyword also and generalize allowed whitespace.
6118 * configure: Regenerated.
6120 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
6123 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
6125 (src_version, src_revision): New variables to avoid overwriting
6126 from parent make process.
6127 (version.cc): Updated.
6129 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
6130 (linebuf, linebufsize): New global variables.
6131 (sys_fatal): Use `fatal' to abort properly.
6132 (get_line): New function.
6133 (get_resolution): Use it.
6134 Improve error messages.
6135 (get_papersize): Check `papersize' also.
6137 Improve error messages.
6139 2002-06-03 Werner LEMBERG <wl@gnu.org>
6141 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
6142 should be removed only if builddir is not srcdir.
6143 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
6144 (clean): Depend on `mostlyclean'.
6145 (distclean): Depend on `clean'.
6146 (realclean, extraclean): Depend on `distclean'.
6147 (.y.cc, .y.o): Simplified. The output files are no longer written
6148 to srcdir but to builddir.
6149 * Makefile.in (MDEFINES): Add `version' and `revision'.
6150 (uninstall_dirs): Fix order of directories.
6151 * doc/Makefile.sub (version, revision): Removed.
6152 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
6153 Added `HTMLDOCFILES'.
6154 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
6155 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
6156 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
6159 * doc/texinfo.tex (\authortt): New macro.
6160 (\shortcontt): Define.
6161 (\titlepage): Set \tt to \authortt while defining \authorfont.
6162 (\appendixbox): New macro.
6163 (\chapmacro, \appendixentry): Use \appendixbox to get even
6164 indentation for letters.
6165 (\summarycontents): Set \tt.
6166 (\internalpagesize): Add two arguments for real paper width and
6167 height as needed by pdfTeX.
6168 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
6170 (\tempdima, \tempdimb): New temporary dimensions.
6171 (\pagesizesyyy): Updated.
6173 2002-06-02 Werner LEMBERG <wl@gnu.org>
6175 Adding a new keyword `papersize' to the DESC file format (similar
6176 but not completely identical to grolbp's extension). grops now has
6177 a -p command line option to override `papersize'. Finally, grolbp
6178 has been adapted to the new syntax.
6180 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
6181 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
6183 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
6184 (CCSRCS): Add `paper.cc'.
6186 * src/include/font.h (font): Add `papersize' element.
6187 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
6188 (font::scan_papersize): New function.
6189 (font::load_desc): Use it for handling `papersize' keyword.
6190 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
6192 * src/devices/grops/ps.cc: Include paper.h.
6193 (user_paper_length): New global variable.
6194 (ps_printer): Use paper length as initializer.
6195 (make_printer): Updated.
6196 (main): Handle new `-p' option.
6197 * src/devices/grops/grops.man: Updated.
6199 * src/devices/grolbp/lbp.cc: Include paper.h.
6200 s/papersizes/lbp_papersizes/.
6201 (set_papersize): Use new `papersizes' array.
6202 (handle_unknown_desc_command): Don't handle `papersize'.
6203 (main): Use `font::scan_papersize' for handling `-p' option.
6204 * src/devices/grolbp/grolbp.man: Updated.
6206 * man/groff_font.man: Document `papersize'.
6209 2002-05-30 Werner LEMBERG <wl@gnu.org>
6211 * src/devices/grops/TODO: Updated.
6212 * src/devices/grops/grops.man: More info on paper formats.
6213 * man/groff_font.man: Document `paperheight' and `paperwidth'.
6215 2002-05-29 Werner LEMBERG <wl@gnu.org>
6217 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
6218 to list only if srcdir != currdir.
6219 (distfiles): New target.
6221 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
6222 (NOMAKEDIRS): New variable.
6225 2002-05-26 Werner LEMBERG <wl@gnu.org>
6227 Add .output request, similar to \! at top-level.
6229 * src/roff/troff/input.cc (transparent): Remove unused declaration.
6230 (output_request): New function.
6231 (init_input_requests): Add it.
6233 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6236 * Makefile.in (MDEFINES): Add INSTALL_INFO.
6237 (prepare_examples): Fix typo.
6238 * doc/groff.texinfo (@direntry): Fix it.
6240 2002-05-25 Werner LEMBERG <wl@gnu.org>
6242 Including the doc subdir into groff's Makefile system.
6244 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
6245 * configure.ac: Use it.
6246 Generate `doc/Makefile'.
6247 * configure: Regenerated.
6249 * Makefile.in (infodir, INSTALL_INFO): New variables.
6250 (MDEFINES, uninstall_dirs): Updated.
6251 (OTHERDIRS): Add `doc'.
6252 * Makefile.comm (CLEANDIRADD): New variable.
6253 (mostlyclean): Use it.
6255 * doc/Makefile.sub, doc/Makefile.in: New files.
6256 * doc/Makefile: Removed.
6258 * NEWS, INSTALL: Updated.
6260 2002-05-24 Werner LEMBERG <wl@gnu.org>
6262 * doc/homepage.ms: Renamed to ...
6263 * doc/webpage.ms: This.
6266 2002-05-23 Werner LEMBERG <wl@gnu.org>
6268 Integrating the `mom' macro package, contributed by Peter Schaffter
6271 * contrib/mom/*: New subdirectory tree.
6272 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
6273 be used for documentation files.
6274 (MDEFINES, uninstall_dirs): Use them.
6275 (OTHERDIRS): Add contrib/mom.
6276 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
6278 * MANIFEST, NEWS: Updated.
6280 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
6282 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
6283 if at outer level; at start-up we are at outer level.
6285 * src/roff/troff/input.cc (do_suppress): Implement it.
6288 Add option -p to show progress information.
6289 pre-grohtml will now render only one page at a time, reducing the
6290 size of needed disk resources enormously.
6292 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
6293 (imagePageName): New global variable.
6294 (psPageName, show_progress, currentPageNo): New global variables.
6295 (html_system): Close saved stderr and stdout handles.
6296 (write_end_image): Accept a parameter to control \O escape.
6297 (write_start_image): Adapted to new \O meaning.
6298 (char_buffer::write_upto_newline): Updated.
6299 (createAllPages): Replaced with...
6300 (createPage): This new function to create a single page for images.
6301 It uses `psselect' from the psutils package.
6302 (removeAllPages): Removed.
6303 (createImage): Updated.
6304 Handle progress display.
6305 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
6306 (scanArguments): Add option -p.
6307 (makeTempFiles): Updated to create temp files for psPageName and
6309 (removeTempFiles): Removed.
6312 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
6313 html_printer::write_header): Append `\0' to `buffer'.
6314 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
6316 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
6317 Handle `text_emitted'.
6318 (html_text::table_is_void): Slightly rewritten.
6319 (stop): New external symbol.
6320 (html_text::do_push) [DEBUGGING]: Use it and simplify.
6321 (html_text::shutdown): Call `dump_stack'.
6322 (html_text::do_space): Rewritten.
6323 * src/devices/grohtml/grohtml.man: Document -p and the need of
6326 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
6328 Call \O[0] if `ps4html' is active.
6329 * tmac/s.tmac (@EQ, @EN): Handle html better.
6331 * tmac/html.tmac: Don't use black for background colour.
6333 * src/roff/troff/node.cc: Include `div.h'.
6334 (troff_output_file::really_print_line): Don't use `is_on'.
6335 (troff_output_file::word_marker, troff_output_file::flush_tbuf
6336 troff_output_file::check_charinfo,
6337 troff_output_file::put_char_width, troff_output_file::put_char,
6338 troff_output_file::determine_line_limits, troff_output_file::draw,
6339 real_output_file::begin_page, glyph_color_node::tprintf,
6340 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
6342 (troff_output_file::really_on): Call `do_motion'.
6343 (suppress_node::tprint): Use `get_page_number' instead of `%'
6345 Call `reset_output_registers' conditionally on `is_on'.
6347 * doc/groff.texinfo: Document new syntax of \O.
6348 * NEWS, man/groff_diff.man: Updated.
6350 2002-05-22 Werner LEMBERG <wl@gnu.org>
6352 * MORE.STUFF: Add info about David Frey's deroff implementation.
6355 2002-05-16 Werner LEMBERG <wl@gnu.org>
6357 Pic's `with' attribute now accepts positions.
6359 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
6360 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
6362 (object_spec): Add rule for `WITH' and `position'.
6363 (relative_path): Give `corner' the precedence of `CHOP'.
6364 * src/preproc/pic/object.h (path): New members `pos' and
6366 * src/preproc/pic/object.cc: Updated initializers of `path'.
6367 (path::follow): Handle `is_position'.
6369 * doc/pic.ms: Completely updated grammar description.
6370 Many typographical improvements.
6372 2002-05-15 Werner LEMBERG <wl@gnu.org>
6374 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
6375 code of x in range 0-127) also.
6376 * doc/groff.texinfo, man/groff_diff.man: Updated.
6378 Added keywords `north', `south', `east', and `west' for corners
6381 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
6383 (yylex): Handle them.
6384 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
6385 (corner): Handle them.
6387 2002-05-14 Werner LEMBERG <wl@gnu.org>
6389 * src/devices/grops/grops.man: Clarify handling of `download' file.
6391 2002-05-11 Werner LEMBERG <wl@gnu.org>
6393 Adding `warnscale' and `spreadwarn' requests, based on a patch from
6394 Jeffrey Friedl <jfriedl@yahoo.com>.
6396 * src/roff/troff/input.cc (spread_limit, warn_scale,
6397 warn_scaling_indicator): New global variables.
6398 (warnscale_request, spreadwarn_requests): New functions.
6399 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
6400 (init_input_requests): Updated.
6401 (error_type): Add `OUTPUT_WARNING'.
6402 (do_error): Handle it.
6403 (output_warning): New warning function which shows output location.
6404 * src/roff/troff/env.h (spread_limit): New external variable.
6405 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6407 (distribute_space): Emit warning if added space is larger than
6409 (environment::possibly_break_line): Emit warning if a line can't
6410 be adjusted on both sides.
6412 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6414 2002-05-08 Werner LEMBERG <wl@gnu.org>
6416 * src/roff/troff/node.cc (special_node::special_node): Use
6417 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
6418 \X''\% crashes, for example.
6420 * doc/groff.texinfo: Document \! and \? used at top-level.
6422 2002-05-06 Werner LEMBERG <wl@gnu.org>
6424 * src/preproc/pic/pic.man: Fix some keyword syntax.
6425 Other minor typographical fixes.
6427 * src/roff/groff/groff.man: Fix typos.
6429 2002-05-04 Werner LEMBERG <wl@gnu.org>
6431 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6432 (ShortOpt[]): This to avoid problems with refer.
6434 * doc/pic.ms: Fix typo.
6435 Fix pic grammar description.
6437 * tmac/an-old.tmac (ne): Use de1, not de.
6439 2002-05-03 Werner LEMBERG <wl@gnu.org>
6441 * doc/groff.texinfo: Finished separation of glyphs and characters.
6442 Don't use the string `Appendix' for appendix headers (both in
6443 the text and the table of contents).
6444 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6447 Use registers LL and LT (similar to -ms) for controlling the
6448 length of title and line, respectively, in the -man and -mdoc
6451 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6452 (doc-setup-page-layout): Use \n[LL] and \n[LT].
6453 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6455 (an-header, an-p-footer): Use \n[LT].
6456 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6457 doc/groff.texinfo: Document it.
6459 2002-05-02 Werner LEMBERG <wl@gnu.org>
6461 * doc/fdl.texi: New file.
6462 * doc/groff.texinfo: Include it.
6463 Define and use @copying.
6464 Starting with separating glyph, symbol, and character.
6466 2002-04-27 Werner LEMBERG <wl@gnu.org>
6468 * Makefile.in (EXEEXT): Set it.
6469 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6472 * src/include/nonposix.h: Define GS_NAME.
6473 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6475 Some preliminary changes for EMX support under OS/2.
6477 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6478 __EMX__ similar to __MSDOS__.
6479 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6481 2002-04-25 Werner LEMBERG <wl@gnu.org>
6483 * doc/groff.texinfo: Integrated groff_out.man.
6486 2002-04-23 Werner LEMBERG <wl@gnu.org>
6488 * man/groff_out.man: Minor fixes.
6490 2002-04-23 Werner LEMBERG <wl@gnu.org>
6492 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6493 correct page references.
6494 Fixed many index entries.
6496 2002-04-23 Bernd Warken <bwarken@mayn.de>
6498 * man/roff.man: Enlarged.
6500 2002-04-22 Werner LEMBERG <wl@gnu.org>
6502 * doc/groff.texinfo: More examples, other fixes.
6504 2002-04-20 Werner LEMBERG <wl@gnu.org>
6506 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6507 will now form a chain, e.g.
6516 This is for compatibility with plan 9's troff.
6518 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6522 * doc/groff.texinfo: Add documentation of remaining requests and
6525 2002-04-19 Werner LEMBERG <wl@gnu.org>
6527 * doc/groff.texinfo: Add documentation of remaining escapes.
6529 * font/devdvi/generate/tc.map: Remove entry for `sr'.
6530 * font/devdvi/*TC: Regenerated.
6532 2002-04-18 Werner LEMBERG <wl@gnu.org>
6534 * src/roff/troff/input.cc (token::next): Make \H behave consistently
6535 if not in compatibility mode, i.e., increment relative to the
6537 * doc/groff.texinfo: Updated accordingly.
6539 2002-04-17 Werner LEMBERG <wl@gnu.org>
6541 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6543 2002-04-16 Bernd Warken <bwarken@mayn.de>
6545 * src/roff/groff/groff.man: Improve documentation of -P option.
6548 2002-04-15 Werner LEMBERG <wl@gnu.org>
6550 Add new escape \F to switch font family.
6552 * src/roff/troff/input.cc (token::next): Handle \F.
6553 * src/roff/troff/env.cc (environment::set_family): Handle
6555 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6558 2002-04-14 Werner LEMBERG <wl@gnu.org>
6560 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6563 2002-04-13 Werner LEMBERG <wl@gnu.org>
6565 Implement \f[] as an alternative to \fP. Change \mP and \MP to
6566 \m[] and \M[], respectively.
6568 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6569 (symbol::symbol): Handle NULL string and empty string differently.
6570 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6571 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6572 Add optional parameter.
6573 Updated calling functions.
6574 (get_copy, do_glyph_color, do_fill_color, token::next): Use
6576 * src/roff/troff/env.cc (environment::set_font): Ditto.
6578 * src/preproc/pic/troff.cc (troff_output::set_fill,
6579 troff_output::reset_color: Updated.
6581 * tmac/www.tmac: Updated.
6583 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6584 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6587 * tmac/Xps.tmac: Remove some redundant code.
6589 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6590 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6591 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6594 2002-04-13 Bernd Warken <bwarken@mayn.de>
6596 * src/include/printer.h, src/libs/libdriver/printer.cc
6597 (printer::change_fill_color): New member function.
6598 * src/libs/libdriver/input.cc (parse_D_command): Use it.
6600 2002-04-12 Werner LEMBERG <wl@gnu.org>
6602 * doc/groff.texinfo: Completed pass on gtroff reference.
6604 2002-04-11 Werner LEMBERG <wl@gnu.org>
6606 * doc/groff.texinfo: More fixes.
6608 2002-04-11 Bernd Warken <bwarken@mayn.de>
6610 * src/include/color.h: Decorate with `const'.
6613 * src/libs/libgroff.color.cc: Decorate with `const'.
6615 (color::color): Initialize members.
6616 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6617 command according to the documentation.
6619 * man/groff_out.man: Updated.
6622 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
6624 * src/preproc/html/pre-html.cc (write_start_image): Remove
6626 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6628 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6629 \C'hy' caused an assertion failure.
6631 * src/roff/troff/env.cc (environment::environment): Initialize
6633 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6635 2002-04-10 Werner LEMBERG <wl@gnu.org>
6637 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6638 Document pvs request and .pvs register.
6640 2002-04-09 Werner LEMBERG <wl@gnu.org>
6642 * doc/groff.texinfo: Improve and fix documentation of diversions
6645 2002-04-08 Werner LEMBERG <wl@gnu.org>
6647 * doc/groff.texinfo: Fix documentation of drawing functions.
6650 2002-04-07 Werner LEMBERG <wl@gnu.org>
6652 * doc/groff.texinfo: Better documentation of double quotes as
6656 2002-04-06 Werner LEMBERG <wl@gnu.org>
6658 * man/groff_font.man: Document names of special characters better.
6659 * doc/groff.texinfo: Minor improvements.
6661 * tmac/lbp.tmac: Load latin1.tmac.
6662 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6664 * font/devX*/*: Regenerated (all chars > 0x80 removed).
6666 2002-04-05 Werner LEMBERG <wl@gnu.org>
6668 * tmac/tty.tmac: Don't use shc request.
6669 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6672 * man/groff_diff.man: Minor fixes.
6674 * font/devlbp/*: Remove all `charXXX' entities.
6676 * src/libs/libgroff/font.cc (font::~font): Deallocate
6677 `special_device_coding'.
6678 (font::load): Use `new' for allocating `special_device_coding'.
6679 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6680 Removed unused member.
6682 2002-04-05 Werner LEMBERG <wl@gnu.org>
6684 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6685 (resource_manager::do_begin_binary,
6686 resource_manager::do_begin_data): Use it.
6688 * doc/texinfo.tex: Updated to version 4.2.
6690 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6691 (token::zero_width_break): New inline function.
6692 * src/roff/troff/input.cc (token::next): Use it.
6693 (token::description): Updated.
6694 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6695 (token::add_to_node_list, token::process): Use it.
6696 * NEWS, doc/groff.texinfo: Updated.
6698 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6699 * tmac/tty.tmac: Add missing backslash.
6701 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
6703 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6704 `.ps' register instead of `.s' to handle fractional point sizes.
6705 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6706 limit_box::output): Ditto.
6707 * src/preproc/eqn/other.cc (size_box::compute_metrics,
6708 size_box::output): Ditto.
6709 * src/preproc/eqn/over.cc (over_box::compute_metrics,
6710 over_box::output): Ditto.
6711 * src/preproc/eqn/script.cc (script_box::compute_metrics,
6712 script_box::output): Ditto.
6713 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6714 sqrt_box::output): Ditto.
6716 2002-04-03 Michael Selway <mas@ssl.co.uk>
6718 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6721 2002-04-03 Werner LEMBERG <wl@gnu.org>
6723 * doc/homepage.ms: Reduce title size.
6724 * doc/groff.texinfo: Fix documentation of .t register.
6725 Fix handling of colon.
6728 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6729 only if page length is positive to avoid a loop.
6731 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6734 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
6736 * src/include/nonposix.h, src/roff/groff/pipeline.c:
6737 s/__CYGWIN32__/__CYGWIN__/.
6739 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
6741 * doc/gnu.xpm: New image contributed by Emily Mulley.
6742 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6743 (homepage.html): Be dependent on gnu.eps.
6744 * doc/homepage.ms: Updated to new image.
6746 * src/devices/grohtml/post-html.cc (html_printer): New member
6748 (html_printer::flush_sbuf, html_printer::set_char): Set it.
6749 (html_printer::sbuf_continuation): Use it.
6751 2002-03-28 Werner LEMBERG <wl@gnu.org>
6753 * src/libs/libgroff/getopt.c: Updated to latest version.
6755 * tmac/README: More on hyphen.tex license.
6757 2002-03-26 Larry Kollar <kollar@alltel.net>
6759 * doc/groff.texinfo: Add documentation of most missing requests.
6761 2002-03-25 Werner LEMBERG <wl@gnu.org>
6763 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6764 of `+-', `mu', and `di', respectively.
6766 * font/devascii/R.proto, font/devutf8/R.proto,
6767 font/devlatin1/R.proto, font/devhtml/R.proto,
6768 font/devcp1047/R.proto, font/devlpb/*: Add them.
6769 * font/devps/generate/textmap: Ditto.
6770 * font/devps/*: Regenerated.
6771 * font/devlj4/generate/text.map: Add them.
6772 * font/devlj4/*: Regenerated.
6773 * font/devdvi/generate/tc.map: Use them.
6774 * font/devdvi/generate/texsy.map: Add them.
6775 * font/devdvi/*: Regenerated.
6776 * font/devX*/*: Regenerated.
6778 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6779 tmac/tty-char.tmac: Updated.
6781 * NEWS, man/groff_char.man: Updated.
6783 2002-03-24 Werner LEMBERG <wl@gnu.org>
6785 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6786 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6787 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6788 we use `.fchar' in dvi.tmac.
6789 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6790 * tmac/Xps.tmac: Simplify some char definitions.
6791 Add definition for \[f/].
6792 * man/groff_char.man: Updated for new X.tmac.
6794 * tmac/README: New file.
6796 2002-03-23 Phil Lobbes <phil@perkpartners.com>
6798 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6799 internal .y.o rule took precendence over the .y.cc rule, compiling
6800 the yacc files with gcc instead of g++.
6802 2002-03-23 Werner LEMBERG <wl@gnu.org>
6804 * tmac/dvi.tmac: Add replacement font for `CB'.
6806 * tmac/doc.tmac: s/request/macro/ in messages.
6807 (doc-generic-macro): Improve error message.
6808 * tmac/groff_mdoc.man: Minor improvements.
6810 2002-03-22 Werner LEMBERG <wl@gnu.org>
6812 * doc/groff.texinfo: Document possible conflict between `tr' and
6815 2002-03-21 Werner LEMBERG <wl@gnu.org>
6817 Improve handling of hyphenation patterns. It is now possible to
6818 use most of TeX's pattern files unmodified. To make the process
6819 more flexible, a new request `hpfcode' has been added which
6820 provides a character code mapping for the `hpf' request. See
6821 comment before hpf_getc() for more details.
6823 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6825 (read_patterns_file): Additional parameter for exception dictionary.
6826 Extended to recognize \pattern, \hyphenation, and \endinput.
6827 (do_hyphenation_patterns_file): Updated.
6828 * src/roff/troff/env.h (hpf_code_table): New extern.
6830 * src/roff/troff/input.cc (hpf_code_table): New array.
6831 (init_hpf_code_table, hyphenation_patterns_file_code): New
6833 (hyphenation_code): Handle translation from `trin' correctly.
6834 (main, init_input_requests): Updated.
6835 (charinfo::set_translation): Handle hyphenation code also.
6837 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6840 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6841 char' is used for offsets in hyphenation exceptions.
6843 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6845 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6847 2002-03-20 Larry Kollar <kollar@alltel.net>
6849 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6852 2002-03-18 Werner LEMBERG <wl@gnu.org>
6854 * tmac/html.tmac: Fix serious typo.
6856 2002-03-17 Larry Kollar <kollar@alltel.net>
6858 * doc/groff.texinfo: Add documentation for `writec' request.
6860 2002-03-17 Werner LEMBERG <wl@gnu.org>
6862 Added request `hpfa' to append hyphenation patterns.
6864 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6866 (hyphenation_patterns_file): Renamed to...
6867 (do_hyphenation_patterns_file): This.
6868 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6870 (init_hyphen_requests): Updated.
6871 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6873 2002-03-16 Werner LEMBERG <wl@gnu.org>
6875 Added request `writec' in analogy to `tmc'.
6877 * src/roff/troff/input.cc (write_request): Renamed to...
6878 (do_write_request): This.
6879 Added one parameter.
6880 (write_request, write_request_continue): New functions.
6881 (init_input_requests): Updated.
6882 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6884 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6886 * NEWS: Document it.
6888 2002-03-15 Werner LEMBERG <wl@gnu.org>
6890 * man/groff.man: Add writem request.
6892 Add request `trin' (translate input) to make `.asciify' work
6893 correctly. This is necessary since `charXXX' entity names are no
6894 longer hardcoded in font definition files.
6896 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6897 `translate_input' members.
6898 (charinfo::set_asciify_code, charinfo::get_asciify_code,
6899 charinfo::set_translation_input): New methods.
6900 (charinfo::set_translation): Add third argument.
6901 * src/roff/troff/input.cc (charinfo:set_translation): Set
6903 (do_translate): Add second argument.
6904 (translate_input): New function.
6905 (init_input_requests): Updated.
6906 * src/roff/troff/node.cc (glyph_node::asciify,
6907 composite_node::asciify): Use `get_asciify_code'.
6909 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6911 * NEWS, man/groff.man, man/groff_diff.man: Updated.
6913 2002-03-14 Larry Kollar <kollar@alltel.net>
6915 * doc/groff.texinfo: Improve documentation of .RS and .RE.
6917 2002-03-14 Werner LEMBERG <wl@gnu.org>
6919 Add a new request `sizes' similar to the `sizes' command in DESC
6922 * src/roff/troff/env.cc (override_sizes): New function.
6923 (init_env_requests): Use it.
6924 * src/roff/troff/token.h: Export `read_string'.
6925 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6927 2002-03-12 Werner LEMBERG <wl@gnu.org>
6929 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6931 2002-03-10 Werner LEMBERG <wl@gnu.org>
6933 * tmac/pspic.tmac: Add support for -Tdvi.
6934 * tmac/dvi.tmac: Include pspic.tmac.
6935 * src/devices/grodvi/grodvi.man: Document it.
6938 * font/devlj4/generate/Makefile: Fix URL of metric files.
6940 2002-03-09 Werner LEMBERG <wl@gnu.org>
6942 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6944 2002-03-09 Larry Kollar <kollar@alltel.net>
6946 * tmac/groff_ms.man: Add documentation for RS and RE macros.
6948 2002-03-08 Werner LEMBERG <wl@gnu.org>
6950 * doc/groff.texinfo: Fixes for texinfo 4.1.
6952 2002-03-07 Werner LEMBERG <wl@gnu.org>
6954 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6956 Handle CYGWIN properly.
6958 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
6960 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6961 * tmac/lbp.tmac: Add some font translations.
6963 2002-03-02 Werner LEMBERG <wl@gnu.org>
6965 * font/devcp1047/R.proto, font/devlatin1/R.proto,
6966 font/devhtml/R.proto: Remove `charXXX' entries.
6967 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6970 * font/devlj4/generate/text.map: Remove `charXXX' entries.
6971 * font/devlj4/*: Regenerated all font definition files.
6972 * tmac/lj4.tmac: Load latin1.tmac.
6974 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6975 from 2000-06-17: LJ4 metric files are *not* text files.
6977 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6978 register to test for EBCDIC.
6980 2002-03-01 Werner LEMBERG <wl@gnu.org>
6982 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6983 files (as grops already does).
6984 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6986 * src/devices/grops/grops.man: Document comment lines in encoding
6989 * tmac/cp1047.tmac: New file.
6990 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6991 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6992 * tmac/Makefile.sub (NORMALFILES): Updated.
6994 * tmac/ec.tmac: Don't load latin1.tmac again.
6996 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6997 font/devps/generate/dingbats.map,
6998 font/devps/generate/dingbats.rmap, font/devps/text.enc,
6999 font/devps/generate/Makefile (symbolmap): Add header comment.
7000 * font/devps/generate/textmap: Ditto.
7001 Remove `charXXX' entries.
7002 * font/devps/symbolmap: Regenerated.
7003 * font/devps/*: Regenerated all font definition files.
7005 2002-02-28 Werner LEMBERG <wl@gnu.org>
7007 Add color support to grodvi (for drawing colors are currently
7008 translated to gray values).
7010 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
7011 (dvi_printer): Add `cur_color' member.
7012 (dvi_printer::set_color): New function.
7013 (draw_dvi_printer): Remove `fill'.
7014 (draw_dvi_printer::fill_next): Pass environment as parameter.
7015 Update code for new color support translated to gray.
7016 (dvi_printer::set_char): Updated.
7017 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
7018 changes crossing the page border.
7019 (dvi_printer::draw): Updated.
7020 Remove cases `f' and `F'.
7021 * tmac/dvi.tmac: Add color definitions.
7022 * NEWS, src/devices/grodvi/grodvi.man: Updated.
7024 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
7027 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
7028 versions of autoconf.
7029 * configure: Updated.
7031 * doc/homepage.ms: Use `.blm'.
7032 * tmac/www.tmac (www-depth): New auxiliary variable.
7033 (www-pop-level): Don't issue HTML tag.
7034 (ULS, ULE, LI): Use absolute indentation.
7036 * src/devices/grops/ps.cc (ps_printer::begin_page,
7037 ps_printer::end_page): Switch forth and back to default color while
7038 starting a new page.
7040 2002-02-27 Werner LEMBERG <wl@gnu.org>
7042 Add EC and TC fonts to devdvi.
7044 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
7045 * font/devdvi/generate/cork.map: Renamed to...
7046 * font/devdvi/generate/ec.map: This.
7047 Remove entry for `aq'.
7048 * font/devdvi/generate/tc.map: New file.
7049 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
7052 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
7053 * font/devdvi/Makefile.sub (DEVFILES): Updated.
7054 * tmac/ec.tmac: New file.
7055 * tmac/Makefile.sub (NORMALFILES): Updated.
7056 * NEWS, src/devices/grodvi/grodvi.man: Updated.
7057 * man/groff_char.man: Check `ECFONTS' register.
7059 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
7061 2002-02-26 Werner LEMBERG <wl@gnu.org>
7063 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
7064 * font/devdvi/generate/cork.map: Add 'y and 'Y.
7065 * font/devdvi/*: Updated.
7066 * tmac/dvi.tmac: Formatting.
7068 Add font `HBI' for the dvi output.
7069 Add support for font families `T' and `H'.
7071 * font/devdvi/HBI: New file.
7072 * font/devdvi/B: Renamed to ...
7073 * font/devdvi/TB: This.
7074 * font/devdvi/BI: Renamed to ...
7075 * font/devdvi/TBI: This.
7076 * font/devdvi/I: Renamed to ...
7077 * font/devdvi/TI: This.
7078 * font/devdvi/R: Renamed to ...
7079 * font/devdvi/TR: This.
7080 * font/devdvi/H: Renamed to ...
7081 * font/devdvi/HR: This.
7082 * font/devdvi/Makefile.sub (DEVFILES): Updated.
7083 * font/devdvi/generate/Makefile (HBI): New rule.
7085 (R, I, B, BI, H): Renamed to ...
7086 (TR, TI, TB, TBI, HR): This, respectively.
7088 * NEWS, src/devices/grodvi/grodvi.man: Updated.
7089 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
7090 Add `styles' and `family' keywords.
7091 * tmac/dvi.tmac: Alias `H' to `HR'.
7092 Add some fspecial requests for italic fonts.
7093 Add TR and TI as special.
7094 Add support for `_' with font CWI.
7096 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
7097 operator `:'. Until now, the expression `0:1' would return 2
7100 2002-02-25 Werner LEMBERG <wl@gnu.org>
7102 * man/groff_char.man: Added some missing PS glyph names (from the
7104 * font/devps/generate/textmap, font/devps/symbolmap: Add
7107 * doc/groff.texinfo: Minor additions and fixes.
7108 * man/groff_diff.man: Remove documentation of fp request. This
7109 is already covered in the original troff manual.
7110 Updated to be consistent with other doc files.
7113 2002-02-24 Werner LEMBERG <wl@gnu.org>
7115 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
7117 Define new variable OTHERDEVDIRS (containing `font/devlj4
7118 font/devlbp' if not EBCDIC).
7119 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
7120 (OTHERDEVDIRS): New variable.
7121 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
7122 * configure: Regenerated.
7124 * NEWS, src/devices/grotty/grotty.man: Updated.
7126 2002-02-23 Werner LEMBERG <wl@gnu.org>
7128 * src/roff/troff/input.cc (do_overstrike, do_bracket,
7129 get_line_arg): Honour input level.
7131 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
7133 * font/*/*: Implement it in all font files.
7134 * font/devps/generate/textmap, font/devps/generate/symbolchars,
7135 * font/devps/symbolmap: Updated.
7136 * font/devlj4/generate/text.map: Updated.
7137 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
7138 * font/devdvi/generate/texmi.map: Updated.
7140 * font/devutf8/R.proto: Remove all `charXXX' entries.
7141 * font/devutf8/NOTES: Updated.
7143 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
7146 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
7148 * NEWS, man/groff_char.man: Updated.
7150 2002-02-21 Phil Lobbes <phil@perkpartners.com>
7152 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
7154 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7156 * src/roff/grog/grog.pl: Fix computation of $refer.
7158 2002-02-19 Werner LEMBERG <wl@gnu.org>
7160 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
7161 `snprintf' and `vsnprintf'.
7163 * src/include/htmlindicate.h: Renamed to...
7164 * src/include/htmlhint.h: This.
7165 * src/include/Makefile.sub: Updated.
7166 * src/preproc/eqn/main.cc: Updated.
7168 2002-02-18 Werner LEMBERG <wl@gnu.org>
7170 * man/roff.man, man/groff_out.man, man/groff.man,
7171 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
7172 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
7174 * win32-diffs: Updated.
7176 2002-02-17 Werner LEMBERG <wl@gnu.org>
7178 * doc/Makefile (clean): Add *.eps.
7179 (MEMACROS): Removed.
7180 (TFLAG): New variable.
7183 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
7185 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
7187 * tmac/www.tmac: Use dummy diversion while resetting and disabling
7189 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
7191 * src/roff/troff/troff.man: Fix order of parameter description.
7195 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
7197 Simplify image handling for grohtml.
7200 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
7202 (html_text::dump_stack): Don't emit newline while debugging.
7203 (html_text::do_push) [DEBUGGING]: Print more info.
7204 (html_text::check_emit_text): Fix handling of <p>.
7205 * src/devices/grohtml/html.h: Updated.
7206 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
7207 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
7208 send its data to stderr also.
7210 (simple_output::space_or_newline) [DEBUGGING]: Removed.
7211 * src/devices/grohtml/post-html.cc (html_printer::do_links,
7212 html_printer::html_printer): Remove `DEBUGGING' conditionals.
7214 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
7216 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
7217 is_inline_image): Removed.
7218 (html_begin_suppress, html_end_suppress): Don't take a parameter.
7219 (graphic_start, graphic_end): Removed.
7220 * src/include/htmlindicate.h: Updated.
7221 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
7222 (macroset_template): New global variable.
7223 (makeFileName): Use `macroset_template'.
7224 (write_end_image): Don't take a parameter.
7226 (write_start_image: Don't emit newline.
7227 (char_buffer::write_upto_newline): Updated.
7228 (char_buffer::skip_to_newline): Renamed to ...
7229 (char_buffer::skip_until_newline): This.
7231 (char_buffer::write_file_troff, char_buffer::write_file_html):
7233 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
7234 (removeAllPages): Remove `DEBUGGING' conditionals.
7235 (addRegDef, dump_args): New functions.
7236 (char_buffer::do_html, char_buffer::do_image): Handle
7237 `www-image-template' command line variable.
7238 Add more debugging code.
7239 (addps4html): Removed.
7240 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
7242 * src/preproc/eqn/main.cc: Include `ctype.h'.
7243 (suppress_html): Removed.
7245 (inline_equation): Use `html_begin_suppress' and
7246 `html_end_suppress'.
7247 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
7248 (troff_output::start_picture, troff_output::finish_picture):
7250 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
7251 (process_input_file): Updated.
7253 * src/roff/troff/div.cc (page_number): Set page number only if the
7254 `ps4html' register isn't defined.
7255 * src/roff/troff/input.cc (image_no): New external variable.
7256 (do_suppress): Use it.
7257 * src/roff/troff/node.h (suppress_node::image_id): New member.
7258 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
7259 (suppress_node::suppress_node): Initialize `image_id' member.
7260 (suppress_node::same): Handle `image_id' also.
7261 (suppress_node::copy): Updated.
7262 (last_image_id): New global variable.
7263 (suppress_node::tprint): Use it.
7265 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
7267 * tmac/pspic.mac (PSPIC): Fix html support.
7268 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
7269 * tmac/www.tmac (www-image-template): Set up.
7270 (HTMLINDEX): Renamed to...
7272 (BODYCOLOR): Renamed to...
7274 (BACKGROUND): Renamed to...
7276 (URL): Change order of parameters for consistency.
7277 (MAILTO): Renamed to...
7279 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
7280 (IMG, PIMG, MPIMG): This.
7281 (HTML-H-BEGIN, HTML-H-END): Renamed to...
7283 (LINKS): Renamed to...
7285 (LINE): Renamed to...
7287 (NO-AUTO-RULE): Renamed to...
7289 (HTML-TL): Renamed to...
7291 (UL-BEGIN, UL-END): Renamed to...
7293 (DROPCAP): Renamed to...
7295 (TS, TE, EQ, EN): Provide default definitions.
7296 (www-make-unique-name): Updated.
7297 (HTML-IMAGE-INLINE): Fix typo.
7298 * tmac/groff_www.man: Updated.
7300 * doc/Makefile (homepage.html): Add option -r to grohtml.
7301 Use shortened image name.
7302 * doc/groff.texinfo: Updated info on grohtml strings and macros.
7303 * doc/homepage.ms: Updated and extended.
7305 2002-02-14 Werner LEMBERG <wl@gnu.org>
7307 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
7309 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
7310 SGR_BACK_DEFAULT_COLOR): Replaced with ...
7311 (tty_printer::put_color): Use it.
7312 (ttr_printer::end_page): Simplify.
7314 2002-02-13 Werner LEMBERG <wl@gnu.org>
7316 * tmac/groff_tmac.man: Moved to...
7317 * man/groff_tmac.man: This place.
7318 * tmac/Makefile.sub, man/Makefile.sub: Updated.
7320 2002-02-12 Werner LEMBERG <wl@gnu.org>
7322 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
7323 $(COMPILE.c) to not include groff's assert.h.
7325 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
7327 * NEWS, src/drivers/grotty/grotty.man: Document it.
7329 2002-02-11 Werner LEMBERG <wl@gnu.org>
7331 * src/libs/snprintf/snprintf.c: Updated to latest version
7334 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
7335 test whether there is `.]' also.
7336 Don't check for spaces after `.['.
7337 * src/roff/grog/grog.sh: Do the same.
7339 2002-02-10 Werner LEMBERG <wl@gnu.org>
7343 * src/libs/libgroff/illegal.cc: Renamed to ...
7344 * src/libs/libgroff/invalid.cc: This.
7345 (illegal_char_table): Renamed to ...
7346 (invalid_char_table): This.
7347 * src/libs/libgroff/Makefile.sub: Updated.
7348 * win32-diffs: Updated.
7350 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
7351 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
7352 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
7353 font::load), src/preproc/eqn/main.cc (read_line, main),
7354 src/preproc/eqn/lex.cc (file_input::read_line),
7355 src/preproc/pic/lex.cc (file_input::read_line,
7356 simple_file_input::get, simple_file_input::peek),
7357 src/preproc/pic/main.cc (top_input::get, top_input::peek),
7358 src/preproc/pic/pic.man, src/preproc/refer/main.cc
7359 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
7360 do_bib), src/preproc/tbl/main.cc (table_input::get),
7361 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
7362 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
7363 do_zero_width, read_request, encode_char, ps_get_line,
7364 transparent_file, get_char_for_escape_name, transparent_translate,
7365 asciify, input_char_description, read_string, set_string),
7366 src/roff/troff/env.cc (environment::add_html_tag),
7367 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
7369 * src/include/lib.h: Updated.
7371 * src/preproc/eqn/eqn.cc: Removed.
7375 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
7377 2002-02-09 Werner LEMBERG <wl@gnu.org>
7379 * doc/gnu.xpm: New image.
7380 * doc/Makefile (DOCS): Add homepage.ps.
7381 Add rules for converting xpm->png and xpm->eps.
7382 Use `gnu.{xpm,eps}' as image names.
7383 * doc/homepage.ms: Updated.
7385 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
7387 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
7388 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
7389 Remove calls to `B1' and `B2'
7390 (PNG-IMAGE): New macro for inclusion of images in PNG format.
7391 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
7392 auxiliary variables for MARGIN-PNG-IMAGE.
7393 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
7394 auxiliary macros for MARGIN-PNG-IMAGE.
7395 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
7397 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
7398 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
7399 (DROPCAP): New macro to produce dropcap characters.
7400 (www-do-image): Renamed back to...
7401 (HTML-DO-IMAGE): This.
7402 Updated all callers.
7404 * doc/Makefile (gnubw.eps): Updated.
7405 * doc/homepage.ms: Updated.
7407 2002-02-08 Werner LEMBERG <wl@gnu.org>
7409 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7410 Added `linethick' to table in section `Style Variables'.
7412 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
7414 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7416 2002-02-07 Werner LEMBERG <wl@gnu.org>
7418 Adding options -C (compatibility mode) and -c (grotty's old output
7421 * src/roff/nroff/nroff.sh: Implement it.
7423 * NEWS, src/roff/nroff/nroff.man: Updated.
7425 * PROBLEMS: Document bison 1.32 bug.
7427 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7429 * src/roff/troff/node.cc (make_tfont): Define it earlier.
7430 * src/roff/troff/div.h: Add prototype for `end_diversions'.
7431 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7432 * src/roff/troff/env.h: Add prototype for `title'.
7434 Adding EBCDIC support to grotty.
7436 * src/devices/grotty/tty.cc (CSI): New macro.
7437 (SGR_*, tty_printer::put_color): Use it.
7439 2002-02-06 Werner LEMBERG <wl@gnu.org>
7441 Implementing color support in grotty. The new switch -c activates
7442 the old drawing scheme, disabling color at the same time. The new
7443 switch `-i' selects italic instead of underlining (SGR only).
7445 * src/devices/grotty/tty.cc (putstring): New define instead of
7446 `fputs'. Updated all callers.
7447 (old_drawing_scheme): New global variable.
7448 (COLOR_CHANGE): New enum value.
7449 (SGR_*): New defines containing color handling escape sequences.
7450 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7451 (glyph): New members `back_color_idx' and `fore_color_idx'.
7452 (glyph::order): Add COLOR_CHANGE.
7453 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7454 `is_underline', `is_bold', `cu_flag', `tty_colors'.
7455 New methods `make_underline', `make_bold', `color_to_idx',
7456 `change_color', `put_color'.
7457 (cu_flag): Moved into `tty_printer' class.
7458 (tty_printer::tty_printer): Initialize colors.
7459 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7460 tty_printer::draw, tty_printer::end_page): Handle colors also.
7461 (main): Add options `-c' and `-i'.
7463 * NEWS, src/devices/grotty/grotty.man: Updated.
7465 * src/include/errarg.h (errarg): Add support for `unsigned int'.
7466 * src/libs/libgroff/errarg.c: Implement it.
7468 * src/include/printer.h (printer): Add `change_color' method
7469 (currently used by grotty only).
7470 * src/libs/libdriver/printer.cc: Implement it.
7471 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7472 call to `pr->change_color'.
7474 * src/roff/troff/node.cc (troff_output_file::fill_color,
7475 troff_output_file::glyph_color): Call `do_motion'.
7477 * tmac/tty.tmac: Add color definitions.
7479 * src/roff/groff/groff.man: Minor fixes.
7481 2002-02-05 Bernd Warken <bwarken@mayn.de>
7483 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7484 it. This is a preparation for future changes.
7486 2002-02-05 Werner LEMBERG <wl@gnu.org>
7488 * src/roff/troff/input.cc (process_input_stack): Fix the case
7489 where leading spaces are followed by \f or \s; previously, an
7490 incorrect space width has been used.
7492 * doc/roff.man (quoted_char): Fix argument.
7493 (comment): Define string.
7495 2002-02-04 Larry Kollar <kollar@alltel.net>
7497 * doc/groff.texinfo: More fixes.
7499 2002-02-04 Werner LEMBERG <wl@gnu.org>
7501 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7502 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7503 `restore_compatibility' before `output_string' -- the LINE_STRING
7504 register now already contains proper switches from and to
7507 * man/groff_char.man: Add Euro symbol.
7508 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7509 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7510 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7513 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7515 (.texinfo.html): Add support for texinfo->html.
7517 2002-02-03 Werner LEMBERG <wl@gnu.org>
7519 Added three new requests `ds1', `as1', and `ami'. The former two
7520 are equivalent to `ds' and `as' with the difference that
7521 compatibility mode is saved on entry, switched off during string
7522 expansion, and restored on exit. The latter is the pendant to `dei'
7525 (do_define_string): Use `define_mode' and `calling mode'.
7526 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7527 end of string, respectively.
7528 (define_string, append_string): Use `calling_mode'.
7529 (define_nocomp_string, append_nocomp_string,
7530 define_string_indirect): New functions.
7531 (init_input_requests): Updated.
7532 * NEWS, man/groff_diff.man, man/groff.man: Document it.
7534 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7535 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
7536 mm macro package accesses this string register directly.
7537 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7539 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
7542 2002-02-02 Larry Kollar <kollar@alltel.net>
7544 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7546 2002-01-31 Werner LEMBERG <wl@gnu.org>
7548 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7550 2002-01-31 Bernd Warken <bwarken@mayn.de>
7552 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7553 * man/groff_out.man: Revised and updated.
7555 2002-01-30 Bernd Warken <bwarken@mayn.de>
7557 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7558 out the unused `{' and `}' commands. Undefined by default.
7559 (IntArray): Make `data' private.
7560 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7561 new methods instead.
7562 (skip_line_D, skip_to_end_of_line): New functions.
7563 (get_D_fixed_args): Use `skip_line_D'.
7564 Changed to handle dummy odd arguments by ...
7565 (get_D_fixed_args_odd_dummy): This new function.
7566 (get_D_variable_args): Split some code into ...
7567 (get_possibly_integer_args): This new function.
7568 (send_draw): Use more `const'.
7569 (delete_current_env): New function.
7570 (position_to_end_of_args): Use `size_t'.
7572 (send_draw): Updated.
7573 (parse_D_command): Handle `c', `C', and `t' better.
7577 2002-01-29 Werner LEMBERG <wl@gnu.org>
7580 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7581 @Def...ListEnd which replaces @Def...x. This is necessary to get
7582 proper HTML output -- see the comment in the file for more
7586 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
7588 Fixes to make color changes of 2002-01-21 work with grohtml.
7590 * src/devices/grohtml/post-html.cc (style): Updated.
7591 (html_printer): Remove unused methods.
7592 (html_printer::do_font, html_printer::draw, html_printer::set_char,
7593 html_printer::special): Updated.
7594 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7595 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7596 Added some debugging code.
7597 (html_text::start_tag): Updated.
7598 (html_text::do_push): New method.
7599 (html_text::push_para): Call it.
7600 Add method for handling color.
7601 (html_text::do_color): Updated.
7602 (html_text::shutdown): Handle color.
7603 * src/devices/grohtml/html-text.h (tag_definition): New member
7607 2002-01-28 Werner LEMBERG <wl@gnu.org>
7609 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7611 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
7613 Add two switches -a and -g to control the antialiasing bits for
7614 text and graphics, respectively.
7616 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7618 * src/devices/grohtml/grohtml.man: Document them.
7619 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7621 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7622 (setupAntiAlias): New function.
7623 (createAllPages): Updated.
7624 (scanArguments): Handle `-a' and `-g'.
7625 (main): Call `setupAntiAlias'.
7628 2002-01-27 Werner LEMBERG <wl@gnu.org>
7630 * doc/groff.texinfo (Def*): Call index function after deffn.
7632 * tmac/html.tmac: Call `nroff' request.
7634 2002-01-26 Larry Kollar <kollar@alltel.net>
7636 * tmac/groff_ms.man: Add some omissions.
7638 2002-01-25 Larry Kollar <kollar@alltel.net>
7640 * tmac/groff_ms.man: Typographical improvements.
7642 2002-01-25 Werner LEMBERG <wl@gnu.org>
7644 * doc/groff.texinfo: Updated version and copyright.
7645 * src/devices/grops/grops.man: Updated.
7647 * tmac/groff_tmac.man: Fix `ig' macro.
7649 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7651 Use `.ne' unconditionally everywhere.
7652 (TS): Only insert some vertical space. Doing a page break is no
7653 longer necessary due to the redefinition of the `ne' request.
7655 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7656 warning for unknown subcommands but parse and pass them to the
7659 2002-01-24 Werner LEMBERG <wl@gnu.org>
7661 * tmac/groff_www.man, NEWS: Fix typos.
7663 2002-01-21 Werner LEMBERG <wl@gnu.org>
7665 Complete revision of color support:
7667 Adapt programs to the new libdriver/input.cc.
7669 Color spaces are no longer converted to RGB but transferred as-is
7670 in the troff intermediate output format.
7672 Handle default color gracefully. troff now supports a `default'
7673 color (which can't be changed).
7675 grops will now use the proper color space functions if available.
7679 Note that currently grohtml doesn't handle colors properly. This
7682 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7683 (ui_to_a): New function.
7684 * src/include/lib.h: Updated.
7686 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7687 (color): Simplified; removed all `double' members and methods.
7688 A new array `components' now holds the color parameters.
7689 (color::is_default, color::get_components): New methods.
7690 (color::operator==, color:operator!=): New.
7691 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7692 to make access to the `components' array more comprehensible.
7693 * src/libs/libgroff/color.cc: Implement new color support.
7694 (atoh): Small fixes.
7695 (color::read_encoding): Simplified for new troff intermediate color
7697 (default_color): New global variable.
7699 * src/roff/troff/input.cc (default_symbol): New global variable.
7700 (lookup_color): Use it.
7701 (default_black): Removed.
7702 (do_glyph_color, do_fill_color): Simplified.
7703 (define_color): Handle default color.
7705 (do_if_request): Handle default color.
7706 * src/roff/troff/env.cc (environment::environment): Initialize
7707 colors with `default_color'.
7708 * src/roff/troff/node.cc (troff_output_file::put): Add method
7710 (troff_output_file::hex): Removed.
7711 (troff_output_file::fill_color, troff_output_file::glyph_color):
7712 Updated to include/color.h and libdriver/input.cc.
7714 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7715 fill color properly (identically to the outline color). \D'f...'
7716 doesn't work any more.
7717 All function calls to it updated.
7719 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7721 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7724 * src/devices/grops/ps.cc (ps_output::put_color): New method.
7725 (ps_printer::sbuf_color): Make a real member instead of pointer.
7726 (ps_printer::fill_color, ps_printer::output_color): Removed.
7727 (ps_printer::ps_printer): Updated.
7728 (ps_printer::set_char): Ditto.
7729 (ps_printer::set_color): Use various color schemes.
7730 Use `put_color' method.
7731 (ps_printer::flush_sbuf): Don't set color.
7732 (ps_printer::fill_path): Take `environment' as parameter.
7733 Simplify color handling.
7734 (ps_printer::set_line_thickness): Renamed to ...
7735 (ps_printer::set_line_thickness_and_color): This (and updated).
7736 (ps_printer::set_color): Change second parameter from `complete'
7737 to `fill' which better describes what it does.
7738 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7739 and text in the right order.
7741 Remove branches for `f' and `F'; this is handled by
7743 * src/devices/grops/ps.h: Updated.
7744 * font/devps/prologue (FL): Redefined.
7745 ({F,C}r,k,g: New color functions (with and without filling).
7747 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7748 * man/groff_diff.man, man/groff.man, man/groff_out.man,
7749 doc/groff.texinfo, NEWS: Updated.
7751 2002-01-20 Bernd Warken <bwarken@mayn.de>
7753 * src/libs/libdriver/input.cc: Completely rewritten. See comments
7754 in this file for what has been changed.
7756 2002-01-19 Werner LEMBERG <wl@gnu.org>
7758 * test-groff: Fix GROFF_FONT_PATH.
7759 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7760 is read before .TH or .Dd is parsed.
7762 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
7764 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7765 quadrant boundaries.
7767 2002-01-18 Werner LEMBERG <wl@gnu.org>
7769 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
7772 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
7774 * tmac/doc.common: Initialize %I register for the %I macro to
7775 avoid (harmless) warning.
7776 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7777 when in the SYNOPSIS section.
7779 2002-01-17 Bruno Haible <haible@clisp.cons.org>
7781 * src/preproc/pic/lex.cc (get_token): Fix typo.
7783 2002-01-17 Werner LEMBERG <wl@gnu.org>
7785 * devices/grops/ps.cc: Fix incorrectly applied last patch.
7787 2002-01-17 Larry Kollar <kollar@alltel.net>
7789 * tmac/groff_ms.man: Completely rewritten.
7791 2002-01-16 Werner LEMBERG <wl@gnu.org>
7793 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7795 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
7797 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7799 (ps_printer::draw): Ditto.
7801 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
7803 * tmac/groff_mdoc.man: Minor fixes.
7805 2002-01-13 Werner LEMBERG <wl@gnu.org>
7807 * man/groff_out.man: Some fixes.
7809 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
7811 * doc/pic.ms: Fix typos.
7813 2002-01-12 Werner LEMBERG <wl@gnu.org>
7815 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7817 2002-01-10 Werner LEMBERG <wl@gnu.org>
7819 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7823 2002-01-09 Bernd Warken <bwarken@mayn.de>
7825 * man/groff_out.man: Revised.
7826 * man/roff.man: Minor fixes.
7827 * src/roff/troff/troff.man: Some reordering.
7829 2002-01-09 Werner LEMBERG <wl@gnu.org>
7831 * tmac/an-old.tmac: Add dummy macros for equation support.
7833 2002-01-07 Werner LEMBERG <wl@gnu.org>
7835 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7837 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
7839 * tmac/groff_man.man: Small improvements.
7841 2002-01-07 Bernd Warken <bwarken@mayn.de>
7843 * man/groff_diff.man: Revised.
7845 2002-01-06 Werner LEMBERG <wl@gnu.org>
7847 * tmac/www.tmac: Remove extraneous backslash.
7849 2002-01-06 Bernd Warken <bwarken@mayn.de>
7851 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7853 2002-01-05 Werner LEMBERG <wl@gnu.org>
7855 Integrated groffer, contributed by Bernd Warken.
7857 * contrib/groffer/*: New.
7858 * Makefile.in, NEWS: Updated.
7860 2002-01-04 Werner LEMBERG <wl@gnu.org>
7862 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7863 registers defined in macro packages.
7864 Revising the ms part.
7866 2002-01-04 Larry Kollar <kollar@alltel.net>
7868 * doc/groff.texinfo: Add documentation for ms macros.
7870 2002-01-02 Werner LEMBERG <wl@gnu.org>
7872 First step in adding PS support for the Euro symbol. `eu' is the
7873 official Euro logo, `Eu' is a font-specific glyph variant.
7875 * font/devps/text.enc: Add `Euro' at position 9.
7876 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7877 * font/devps/symbolmap: Regenerated.
7881 2002-01-02 Bernd Warken <bwarken@mayn.de>
7883 * man/roff.man: Revised.
7885 2002-01-01 Bernd Warken <bwarken@mayn.de>
7887 * src/roff/groff/groff.man: Completely rewritten.
7889 2001-12-31 Werner LEMBERG <wl@gnu.org>
7891 * doc/Makefile: Updated.
7893 2001-12-30 Werner LEMBERG <wl@gnu.org>
7895 * tmac/www.tmac: Make all names of internal macros/registers/strings
7896 lowercase, and prepend `www-'.
7897 Other minor changes.
7898 * src/roff/troff/troff.man: Add preprocessor string at BOF.
7900 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
7902 Implement option `-b' in grohtml to set the HTML background colour.
7904 * src/devices/grohtml/post-html.cc (default_background): New global
7906 (html_printer::html_printer): Initialize `background' to
7907 `default_background'.
7908 (main): Implement option `-b'.
7910 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7912 * src/devices/grohtml/grohtml.man: Updated.
7913 * doc/Makefile (.ms.html): Use `-b'.
7914 * tmac/html.tmac: Don't set background color.
7916 Add new grohtml tag `.html-tl'.
7918 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7920 (title_desc::title_desc): Updated.
7921 (html_printer::troff_tag): Handle `.html-tl'.
7922 (html_printer::write_title): Use `with_h1'.
7923 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7924 (HTML-TL): New macro.
7926 Add support for unordered lists in HTML.
7928 * tmac/www.tmac (www-level): New auxiliary register.
7929 (www-level1, www-level2, www-level3): New auxiliary strings.
7930 (www-push-level, www-pop-level): New auxiliary macros
7931 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7935 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7936 (DEFAULT_VERTICAL_OFFSET): Removed.
7937 (IMAGE_BOARDER_PIXELS): Set to 0.
7938 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7939 (vertical_offset): Initialize with 0.
7940 (gsPaper): New global variable.
7941 (get_resolution): Scan for and return unsigned int.
7942 (get_papersize): New function to get paper length from devps/DESC.
7943 (determine_vertical_offset): New function.
7944 (createAllPages): Produce gray-level images and use proper page
7946 (createImage): Use `-quiet' option of pnmcrop.
7947 (addZ): Fix passing of `-Z'.
7948 (scanArguments): Fix handling of `-o'.
7949 (main): Call `determine_vertical_offset'.
7950 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7953 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7954 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7955 glyph descenders properly.
7957 * doc/homepage.ms: Include `gnubw.eps'.
7958 * doc/Makefile (gnubw.eps): New rule.
7959 (homepage.html): Depend on `gnubw.eps'.
7961 2001-12-25 Werner LEMBERG <wl@gnu.org>
7963 * src/roff/troff/input.cc (default_black): Fix return value.
7965 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
7967 * tmac/doc-common (Dt): Change output of architecture strings.
7968 Do some syntax cleanup.
7969 * tmac/groff_mdoc.man: Updated.
7971 2001-12-23 Werner LEMBERG <wl@gnu.org>
7973 Adding an `itc' request (input line trap accepting \c).
7975 * src/roff/troff/env.h (environment): New member
7976 `continued_input_trap'.
7977 Make `do_input_trap' a friend function instead of `input_trap'.
7978 * src/roff/troff/env.cc (environment::environment,
7979 environment::copy): Updated.
7980 (environment::newline): Implement it.
7981 (do_input_trap): New function.
7982 (input_trap): Call `do_input_trap'.
7983 (input_trap_continued): New function.
7984 (init_env_requests): Updated.
7985 * src/roff/troff/TODO: Updated.
7987 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7990 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7992 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
7994 * tmac/doc-common, tmac/doc-syms: Small updates.
7996 2001-12-22 Colin Watson <cjwatson@debian.org>
7998 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
8000 2001-12-22 Bernd Warken <bwarken@mayn.de>
8002 * MANIFEST: New file.
8004 2001-12-22 Werner LEMBERG <wl@gnu.org>
8006 * src/preproc/grn/grn.man: Updated.
8008 2001-12-22 Solar Designer <solar@openwall.com>
8010 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
8013 2001-12-19 Werner LEMBERG <wl@gnu.org>
8015 Implement a fallback character request `.fchar'.
8017 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
8018 (is_fallback): New inline function.
8019 * src/roff/troff/input.cc (do_define_character): New function.
8020 (define_character): Call `do_define_character'.
8021 (define_fallback_character): New function.
8022 (init_input_requests): Add `fchar'.
8023 (charinfo::charinfo): Updated.
8024 (charinfo::set_macro): New argument to set `fallback' flag.
8025 * src/roff/troff/node.cc (make_glyph_node, make_node,
8026 node::add_char): Check `fallback' flag.
8027 * NEWS, man/groff_diff.man, man/groff_man: Updated.
8029 2001-12-16 Werner LEMBERG <wl@gnu.org>
8031 * groff.texinfo: Document exact search algorithm for glyphs.
8033 2001-12-15 Werner LEMBERG <wl@gnu.org>
8035 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
8036 the left side of $(MANPAGES) rule to make it always non-empty.
8038 2001-12-14 Werner LEMBERG <wl@gnu.org>
8040 * src/roff/troff/input.cc (default_black): Define default color
8041 `black' if not yet defined.
8043 2001-12-13 Werner LEMBERG <wl@gnu.org>
8045 Implement new string-valued register `.fn' to return the current
8046 real (internal) font name.
8048 * env.cc (environment::get_font_name_string): New function.
8049 (init_env_requests): Add `.fn' register.
8050 * env.h (environment): Updated.
8051 * node.cc (font_info): Make `get_font_name' a friend.
8052 (get_font_name): New function.
8055 * man/groff_diff.man, man/groff.man, NEWS: Updated.
8057 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8059 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
8061 2001-12-12 Werner LEMBERG <wl@gnu.org>
8063 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
8065 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
8067 * man/groff_diff.man: Adding documentation for \O.
8069 2001-12-10 Werner LEMBERG <wl@gnu.org>
8071 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
8072 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
8074 2001-12-09 Werner LEMBERG <wl@gnu.org>
8076 * man/roff.man: Revised.
8077 * src/roff/groff/groff.man: Replace man page references with a
8078 pointer to roff.man.
8080 2001-12-09 Bernd Warken <bwarken@mayn.de>
8082 * man/roff.man: Completely rewritten.
8084 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8086 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
8088 2001-12-05 Werner LEMBERG <wl@gnu.org>
8090 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
8092 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
8093 order of initializers.
8096 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
8098 * doc/groff.texinfo: Fix documentation of \O.
8100 * src/devices/grohtml/html-text.cc (html_text::do_indent,
8101 html_text::do_table, html_text::do_emittext, html_text::do_para):
8102 Use `const' for first argument.
8103 (html_text::do_table): Use cast.
8104 * src/devices/grohtml/html-text.h: Updated.
8105 * src/devices/grohtml/output.cc (simple_output::put_string): Add
8106 method for `const string &s'.
8107 * src/devices/grohtml/html.h: Updated.
8108 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
8109 (ANCHOR_TEMPLATE): Modified.
8110 (manufacture_headings): New global variable to handle `-h' option.
8111 (is_subsection): Removed.
8112 (char_buffer::add_string): Add `const' to first argument.
8113 Protect against invalid string argument.
8114 Add method for `const string &s'.
8115 (text_glob): Completely redesigned.
8116 (page): Use `const' for strings and remove string length variable.
8117 (page::add_html): Removed.
8118 (page::add_end_encode): New member function.
8119 (to_unicode): Moved upwards.
8120 (title_desc, header_desc): Updated.
8121 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
8123 (html_printer::is_bold, html_printer::make_bold): New member
8125 (html_printer::end_of_line): Updated.
8126 (generate_img_src, html_printer::do_auto_image,
8127 html_printer::do_title, html_printer::write_header,
8128 html_printer::determine_header_level, html_printer::do_heading,
8129 html_printer::do_linelength, html_printer::do_pageoffset,
8130 html_printer::do_indentation, html_printer::do_tempindent,
8131 html_printer::do_indentedparagraph, html_printer::do_break,
8132 html_printer::flush_sbuf, get_html_translation,
8133 html_printer::begin_page, html_printer::special): Rewritten to get
8134 rid of static string length limit.
8135 (html_printer::troff_tag): Added `.no-auto-rule'.
8136 (html_printer::flush_globs): Small fix.
8137 (html_printer::determine_space): Don't compute `space_width'.
8138 (html_printer::translate_to_html): Renamed to ...
8139 (html_printer::emit_html): This (with updates).
8140 (html_printer::write_header): Implement `-h' option.
8141 (html_printer::draw): Remove commented-out code. Handle `F'
8143 (html_printer::add_char_to_sbuf): Removed.
8144 (html_printer::add_to_sbuf): Rewritten.
8145 (html_printer::sbuf_continuation): Fixed.
8146 (html_printer::seen_backwards_escape, reverse,
8147 html_printer::remove_last_char_from_sbuf): Removed.
8148 (char_translate_to_html, str_translate_to_html): Removed.
8149 (html_printer::overstrike): New function member.
8150 (html_printer::set_char): Use it.
8151 (html_printer::do_body): New function member.
8152 (html_printer::~html_printer): Use it.
8153 (main): Handle `-h' option.
8155 * src/devices/grohtml/grohtml.man: Document -h switch.
8157 * src/preproc/html/pre-html.cc: Include searchpath.h
8158 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
8159 (get_resolution): New function.
8160 (checkImageDir): Use `0777' permissions in mkdir()
8161 (write_start_image): Rewritten to use `\O[5...]'.
8162 (createImage, generateImages): Updated.
8163 (main): Handle `F' and `h' options.
8164 Use `get_resolution'.
8166 * src/roff/troff/input.cc (begin, end, image): Removed.
8167 (do_suppress): Take parameter.
8168 Handle modified syntax of `\O'.
8169 (token::next): Updated.
8170 (init_markup_requests): Removed.
8173 * src/roff/troff/div.h: Add declaration for begin_page().
8175 * tmac/color-html.tmac: Removed. Contents moved to...
8176 * tmac/html.tmac: Here. Set background color.
8177 * tmac/color.tmac: Removed. Contents moved to...
8178 * tmac/ps.tmac: Here.
8179 * tmac/www.tmac: Remove the title command when generating images
8181 (NO_AUTO_RULE): New macro.
8182 (HTML_DO_IMAGE): Use revised `\O' escapes.
8183 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
8185 2001-12-02 Werner LEMBERG <wl@gnu.org>
8187 * tmac/groff_mdoc.man: Fix typo.
8189 2001-12-01 Colin Watson <cjwatson@debian.org>
8191 * man/roff.man: Fix typo.
8193 2001-11-29 Werner LEMBERG <wl@gnu.org>
8195 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
8198 * src/roff/troff/input.cc (read_draw_node): Emit error message if
8199 more than one argument to \D'f ...'.
8201 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
8203 2001-11-28 Werner LEMBERG <wl@gnu.org>
8205 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
8208 * tmac/groff_man.man: Minor cosmetic fix.
8210 2001-11-27 Werner LEMBERG <wl@gnu.org>
8212 * src/roff/groff/groff.man, tmac/groff_tmac.man,
8213 tmac/groff_www.man: s/mwww/www/.
8215 2001-11-26 Werner LEMBERG <wl@gnu.org>
8217 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
8218 * configure: Regenerated.
8219 * win32-diffs: Updated.
8221 * tmac/groff_mwww.tmac: Renamed to ...
8222 * tmac/groff_www.tmac: This.
8223 * tmac/mwww.tmac: Removed.
8224 * NEWS, tmac/Makefile.sub: Updated.
8226 2001-11-21 Werner LEMBERG <wl@gnu.org>
8228 * doc/groff.texinfo: Improve documentation of the `\v' escape.
8229 Fix explanation of `\D' and `rt'.
8231 2001-11-20 Werner LEMBERG <wl@gnu.org>
8233 * tmac/an-old.tmac (an-header): Set header length equal to page
8235 * doc/groff.texinfo: Improve documentation of `ne' request. Other
8239 2001-11-19 Werner LEMBERG <wl@gnu.org>
8241 * NEWS, man/Makefile.sub: Updated.
8243 2001-11-19 Bernd Warken <bwarken@mayn.de>
8245 * man/ditroff.man: New file.
8247 2001-11-17 Werner LEMBERG <wl@gnu.org>
8249 * man/groff_differences.man: Renamed to ...
8250 * man/groff_diff.man: This. Updated.
8251 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
8253 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
8254 * src/preproc/html/pushback.cc: This. Updated.
8255 * src/preproc/html/pushbackbuffer.h: Renamed to ...
8256 * src/preproc/html/pushback.h: This.
8257 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
8260 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
8261 * src/libs/libgroff/htmlhint.cc: This.
8262 * src/libs/libgroff/Makefile.sub: Updated.
8264 * tmac/an-old.tmac (an-end): Fix page length.
8266 2001-11-16 Werner LEMBERG <wl@gnu.org>
8268 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
8269 * man/Makefile.sub: Include groff_differences.man.
8270 * VERSION: Set to 1.18.
8271 * REVISION: Set to 0.
8273 2001-11-16 Bernd Warken <bwarken@mayn.de>
8275 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
8276 the second dot (or ending macro name) to end a macro.
8277 * doc/groff.texinfo: Doc fix.
8279 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
8281 * tmac/doc-common (doc-header): Handle very long document titles
8284 2001-11-16 Werner LEMBERG <wl@gnu.org>
8286 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
8288 2001-11-15 Werner LEMBERG <wl@gnu.org>
8290 * src/roff/troff/troff.man: Revised and split into troff.man and...
8291 * man/groff_differences.man: New file.
8294 2001-11-13 Werner LEMBERG <wl@gnu.org>
8296 * tmac/an-old.tmac (TS, TE): New macros for table support.
8298 2001-11-12 Werner LEMBERG <wl@gnu.org>
8300 * src/include/lib.h: Provide a fix for emx to not include
8303 2001-10-27 Werner LEMBERG <wl@gnu.org>
8305 * src/roff/troff/input.cc (substring_macro): Fix computation of
8308 2001-10-20 Werner LEMBERG <wl@gnu.org>
8310 Undo change from 2001-08-28.
8312 * src/roff/troff/input.cc (have_input): New global variable.
8313 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
8314 in compatibility mode.
8315 (process_input_stack): Use it.
8317 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
8319 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
8320 being handled as end-of-sentence characters,
8322 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
8324 * src/roff/troff/input.cc (file_iterator): New members
8325 `suppress_newline_flag' and `seen_escape'.
8326 (file_iterator::next_file): Updated.
8327 (file_iterator::fill): Use it.
8328 (string_iterator): New member `suppress_newline_flag'.
8329 (string_iterator::fill): Set it.
8330 (get_color_element): Use MAX_COLOR_VAL.
8331 * src/roff/troff/env.cc (environment): Remove `need_eol'.
8332 (no_fill): Don't set `env->ignore_next_eol'.
8333 (environment::newline): Handle `eol' tag properly.
8335 (environment::add_html_tag): Set `env->ignore_next_eol'.
8337 * src/roff/troff/env.h (environment): Updated.
8339 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
8341 (html_printer::outstanding_eol): New member function.
8342 (html_printer::do_title): Use new functions.
8343 (html_printer::troff_tag): Test `id_eol_ce'.
8345 2001-10-10 Werner LEMBERG <wl@gnu.org>
8347 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
8348 files work with -C also.
8350 2001-10-05 Werner LEMBERG <wl@gnu.org>
8352 * doc/pic.ms: Minor fix.
8353 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
8354 as a valid command line switch.
8355 * src/devices/grohtml/post-html.cc (main): Ditto.
8357 * src/devices/grohtml/grohtml.man: Updated.
8358 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
8360 2001-10-04 Werner LEMBERG <wl@gnu.org>
8362 Implementing color support in troff, pic, grops, and grohtml. These
8363 changes are based on a major patch provided by Gaius Mulley
8366 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
8367 definitions with both hex values and fractions.
8369 New escapes: \m and \M for drawing and background color,
8370 respectively. This corresponds to the troff output commands `m'
8373 groff and troff accept command line switch `-c' to disable color
8374 output (which is automatically disabled in compatibility mode).
8376 New scaling indicator `f' for fractions (1f = 65536u).
8378 New conditional operator `m' to test for defined colors with `if'
8381 New keywords `color' (or `colour', `colored', `coloured'), `outline'
8382 (or `outlined'), and `shaded' added to pic.
8384 * src/include/color.h: New file.
8385 * src/include/driver.h: Include it.
8386 * src/include/printer.h: Include color.h.
8387 (environment): New members `col' and `fill'.
8388 (printer): Remove `adjust_arc_center' member function.
8389 * src/include/Makefile.sub: Updated.
8391 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
8393 Handle `m' and `DF' troff commands.
8394 * src/libs/libgroff/color.cc: New file.
8395 * src/libs/libgroff/Makefile.sub: Updated.
8397 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
8399 (createImage): Fix computation of `y2'.
8401 (buffer::write_file_html): Remove calls to `stop'.
8403 * src/preproc/pic/common.h (common_output): New abstract function
8404 members `set_color', `reset_color', `get_last_filled', and
8405 `get_outline_color'.
8406 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8407 (object_spec): Add members `shaded' and `outlined'.
8408 * src/preproc/pic/output.h (output): `command' is now abstract.
8409 New function members `set_color', `reset_color', `get_last_filled',
8410 and `get_outline_color'.
8411 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8412 `outline[d]', and `shaded'.
8413 * src/preproc/pic/object.cc (output::command): Removed.
8414 (output::set_location): Moved to output.h.
8415 (graphic_object): Add protected members `outline_color' and
8417 Add member functions `set_outline_color', `get_outline_color', and
8419 (closed_object): Add member function `set_fill_color'.
8420 Add member `color_fill'.
8421 (graphic_object::print_text): Use `out->set_color' and
8423 (box_object::print, ellipse_object::print, circle_object::print,
8424 line_object::print, spline_object::print, arc_object::print): Ditto.
8425 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8426 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8427 `SHADED', making them `%left'.
8428 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8429 * src/preproc/pic/tex.cc (tex_output): New dummy function members
8430 `set_color', `reset_color', `get_last_filled', and
8431 `get_outline_color'.
8432 * src/preproc/pic/troff.cc (simple_output): New abstract function
8433 members `set_color', `reset_color', and `get_last_filled'.
8434 (simple_output::polygon, simple_output::circle,
8435 simple_output::ellipse): Use `get_last_filled'.
8436 (troff_output): New members `last_filled' and `last_outlined'.
8437 New function members `set_color', `reset_color', `get_last_filled',
8438 and `get_outline_color'.
8439 (troff_output::finish_picture): Use `reset_color'.
8440 (troff_output::set_fill): Test `last_filled'.
8441 * src/preproc/pic/pic.man: Updated.
8443 * src/roff/groff/groff.cc (main): Implement `-c' option.
8444 (synopsis, help): Updated.
8445 src/roff/groff/groff.man: Updated.
8447 * src/roff/troff/troff.h: Include color.h.
8448 (warning_type): Add WARN_COLOR.
8449 * src/roff/troff/env.h (environment): New members
8450 `{cur,prev}_{glyph,fill}_color'.
8451 New member functions `get_{prev_,}{glyph,fill}_color'.
8452 * src/roff/troff/env.cc: Initialize and implement them.
8453 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8454 Replace `NULL' with `0' everywhere for consistency.
8455 (lookup_color, default_black, do_glyph_color, do_fill_color,
8456 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8457 define_color): New functions.
8458 (token::next): Implement \M and \m escapes.
8459 (do_if_request): Implement `m' operator.
8461 (main): Implement `-c' option.
8462 (init_markup_requests): Add `defcolor' request.
8463 (warning_table): Add `color' warning.
8464 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8466 * src/roff/troff/node.cc (troff_output_file): New members
8467 `current_{page,glyph}color'. New member functions `put_hex',
8468 `glyph_color', and `fill_color'.
8469 (glyph_color_node::*, fill_color_node::*): Implement it.
8470 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8471 (parse_term): Add support for `f'.
8472 * src/roff/troff/troff.man: Updated.
8474 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8476 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8477 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8479 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8480 (tag_definition): Use `void *' for arg1.
8481 (html_text): New member functions `do_color' and `done_color'.
8482 Use `void *' for second parameter of `push_para' member function.
8483 New `push_para' member function with a single parameter.
8484 Use `char *' for parameter of `issue_table_begin' member funtion.
8485 New `issue_color_begin' member function.
8486 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8488 (html_text::issue_color_begin): New function.
8489 (html_text::issue_table_begin): Use `char *' for parameter.
8490 (html_text::start_tag, html_text::shutdown,
8491 html_text::check_emit_text): Updated.
8492 (html_text::push_para): Use `void *' for second parameter.
8493 Add same function with only one parameter.
8494 (html_text::do_*): Updated.
8495 (html_text::do_color, html_text::done_color): New functions.
8496 * src/devices/grohtml/post-html.cc (style): New member `col'.
8497 Mew member `style' with 6 parameters.
8498 (style::style, style::operator==): Updated.
8499 (html_printer::do_font): Use it.
8500 (html_printer::draw): Add dummy entry for `F'.
8501 (html_printer::set_char): Updated.
8502 * src/devices/grohtml/grohtml.man: Updated.
8504 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8505 trailing zeroes removed.
8506 (ps_printer): New members `sbuf_color', `fill_color', and
8508 Removed member `fill'.
8509 New member function `set_color'.
8510 (ps_printer::ps_printer, ps_printer::set_char): Updated.
8511 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8512 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8514 * tmac/color-html.tmac, tmac/color.tmac: New files.
8515 * tmac/troffrc: Include them.
8516 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8517 * tmac/Makefile.sub: Updated.
8519 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8520 man/groff.man: Updated.
8521 * font/devps/prologue.ps: Define FC and CO functions.
8523 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
8525 Fix incorrect cropping of images and incorrect handling of special
8526 characters. Fix handling of file names in \O.
8528 * src/include/geometry.h: New file.
8529 * src/libs/libgroff/geometry.cc: New file.
8530 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8532 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8534 (do_suppress): Updated.
8535 * src/roff/troff/node.cc: Include geometry.h.
8536 (troff_output_file::flush_tbuf): Fixed parameters to
8537 `check_output_limits'.
8538 (troff_output_file::check_charinfo): Ditto.
8539 (troff_output_file::determine_line_limits): Add support for `Da'
8542 * src/devices/grohtml/post-html.cc (str_translate_to_html):
8543 Add new parameter `is_special' to decode special characters from
8545 (html_printer::do_title, html_printer::do_heading,
8546 html_printer::do_indentedparagraph,
8547 html_printer::translate_to_html, html_printer::special): Updated.
8549 2001-10-03 Werner LEMBERG <wl@gnu.org>
8551 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8552 Fix entry for config.h.
8553 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8554 * tmac/troffrc: Translate nonbreakable space character to `\~'.
8555 * src/preproc/eqn/eqn.man: Document -d command line option.
8557 2001-09-27 Werner LEMBERG <wl@gnu.org>
8559 * man/groff.man: Use
8567 instead of the old code (`.ad .hy' after the table) to suppress
8568 incorrect hyphenation for grohtml output.
8570 2001-09-22 Werner LEMBERG <wl@gnu.org>
8572 * man/groff_font.man, man/groff_out.man: Minor fixes.
8574 2001-09-20 Werner LEMBERG <wl@gnu.org>
8576 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
8577 Arnold Robbins <arnold@skeeve.com>).
8579 2001-09-09 Werner LEMBERG <wl@gnu.org>
8581 * configure: Regenerated with autoconf 2.52.
8583 * doc/groff.texinfo: Complete revision of indices.
8585 2001-09-07 Werner LEMBERG <wl@gnu.org>
8587 * doc/Makefile (clean): Updated to delete all indices.
8589 2001-09-05 Werner LEMBERG <wl@gnu.org>
8591 * src/roff/troff/troff.man: Remove superfluous line.
8593 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8594 given on the command line (or rather, if only the default warnings
8597 2001-09-03 Werner LEMBERG <wl@gnu.org>
8599 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8600 use .ne for TTY devices.
8602 2001-08-31 Werner LEMBERG <wl@gnu.org>
8604 * src/roff/troff/token.h, src/roff/troff/input.cc:
8605 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8607 2001-08-28 Werner LEMBERG <wl@gnu.org>
8609 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8610 * src/roff/troff/input.cc (token::next): Return
8611 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8613 (token::description): Updated.
8614 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8615 (token::add_to_node_list, token::process): Ignore
8616 TOKEN_TRANSPARENT_ESCAPE.
8618 2001-08-27 Werner LEMBERG <wl@gnu.org>
8620 * tmac/an-old.tmac: Fix `S' string.
8622 2001-08-26 Werner LEMBERG <wl@gnu.org>
8624 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8626 2001-08-25 Werner LEMBERG <wl@gnu.org>
8628 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8630 Many other minor fixes.
8632 * configure.ac: Add message at end to inform how to compile
8634 * configure: Regenerated.
8636 2001-08-24 Werner LEMBERG <wl@gnu.org>
8638 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8639 Updated to latest version of libc.
8641 2001-08-23 Werner LEMBERG <wl@gnu.org>
8643 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8644 Autoconf 2.50 and newer can handle this.
8645 * configure: Regenerated.
8647 2001-08-21 Werner LEMBERG <wl@gnu.org>
8649 * doc/pic.ms: Fix typo.
8650 * src/preproc/tbl/tbl.man: Document case of global options.
8652 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
8654 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8655 handling of `CR' font.
8657 2001-08-20 Werner LEMBERG <wl@gnu.org>
8659 Use a config.h file.
8661 * src/include/lib.h: Include config.h.
8662 * All C files: Ditto (if necessary).
8663 * All C++ source and header files: Include lib.h first (if
8666 * src/include/config.hin: New file (autogenerated by autoheader).
8667 * stamp-h.in: New file.
8668 * configure.ac: Updated.
8669 * aclocal.m4: Add third parameters to AC_DEFINE macros.
8670 (GROFF_ARRAY_DELETE): Simplified.
8671 * Makefile.sub (DISTCLEANFILES): Updated.
8672 Added targets for remaking config.status, config.hin, config.h,
8673 stamp-h.in, and stamp-h.
8674 * configure: Regenerated.
8676 2001-08-19 Werner LEMBERG <wl@gnu.org>
8680 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
8682 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8683 (do_sprintf): Use snprintf().
8685 2001-08-18 Werner LEMBERG <wl@gnu.org>
8687 * src/libs/snprintf/*: Added an snprintf module written by Mark
8689 * src/libs/libgroff/Makefile.sub: Updated.
8690 * configure.ac: Add test for snprintf().
8691 * Makefile.in: Updated.
8692 * configure: Regenerated.
8694 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8697 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
8699 * tmac/doc.tmac (Ex): New implementation.
8700 * tmac/doc-common, tmac/groff_tmac.man: Updated.
8702 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
8704 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8706 * tmac/groff_tmac.man: Updated.
8708 2001-08-13 Werner LEMBERG <wl@gnu.org>
8710 * src/preproc/tbl/tbl.man: Minor documentation update.
8712 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
8714 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8715 * configure.ac: Add declaration test for gettimeofday().
8716 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8717 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8718 * configure: Regenerated.
8720 2001-08-11 Werner LEMBERG <wl@gnu.org>
8722 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8723 * configure.ac: Add declaration test for strcasecmp().
8724 * Makefile.in: Updated.
8725 * configure: Regenerated.
8726 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8727 this is necessary because groff's mkstemp.cc is C++.
8728 Add declaration conditionally for strcasecmp().
8730 2001-08-10 Werner LEMBERG <wl@gnu.org>
8732 Integrated pic2graph, contributed by Eric S. Raymond.
8734 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8736 * Makefile.in, NEWS: Updated.
8738 * src/preproc/tbl/tbl.man: Revised.
8740 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
8742 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8744 2001-08-09 Werner LEMBERG <wl@gnu.org>
8746 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8749 2001-08-08 Paul Eggert <eggert@twinsun.com>
8751 * Makefile.sub (configure): Depend on configure.ac, not
8753 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8755 2001-08-07 Werner LEMBERG <wl@gnu.org>
8757 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8760 2001-08-06 Werner LEMBERG <wl@gnu.org>
8762 * src/roff/troff/troff.man: Improve documentation of -E option.
8764 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8766 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8769 2001-07-27 Werner LEMBERG <wl@gnu.org>
8771 * src/preproc/refer/refer.cc: Undo last change.
8772 * src/devices/grohtml/post-html.cc: Ditto.
8774 2001-07-26 Werner LEMBERG <wl@gnu.org>
8776 * src/preproc/refer/refer.cc: Include `lib.h'.
8777 * src/devices/grohtml/post-html.cc: Ditto.
8779 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
8781 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8782 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8783 * Makefile.in: Comment updated.
8784 * configure: Regenerated.
8786 2001-07-25 Werner LEMBERG <wl@gnu.org>
8788 * src/preproc/pic/pic.cc: Removed.
8789 * src/preproc/pic/pic_tab.h: Removed.
8790 * src/preproc/refer/label.cc: Removed.
8792 * doc/Makefile (.ms.html): Don't use a file name extension in
8793 argument to grohtml's -I option.
8794 * Makefile.in (dist): Remove CVS directories.
8795 Call `distfiles' target.
8797 * src/devices/grohtml/grohtml.man: Add information about valid
8798 versions of pnmtopng.
8799 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8800 name instead of number.
8802 2001-07-24 Werner LEMBERG <wl@gnu.org>
8804 * doc/groff.texinfo: Minor fixes.
8806 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
8808 * doc/Makefile (.ms.html): Put image files into a subdirectory.
8811 2001-07-20 Werner LEMBERG <wl@gnu.org>
8813 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8814 * src/libs/libgroff/mkstemp.cc: New file.
8815 * src/libs/libgroff/mksdir.cc: New file.
8816 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8817 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8818 * src/libs/libgroff/Makefile.sub: Updated.
8819 * src/include/lib.h: Add mksdir() prototype.
8820 * src/include/posix.h: Define S_IXUSR if not yet defined.
8822 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8823 (createAllPages): Use mksdir() instead of current code.
8824 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8825 (main): [!HAVE_MKSTEMP]: Removed.
8827 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8828 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8830 * configure.ac: Add tests for stdint.h, sys/time.h, and
8832 Call new GROFF_xxx macros.
8833 * configure: Regenerated.
8834 * Makefile.in: Comments updated.
8836 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
8838 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8839 instead of current code.
8840 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8841 * src/roff/groff/groff.cc (possible_command::insert_args): New
8843 (main): Use it for predriver handling instead of insert_arg().
8845 2001-07-19 Werner LEMBERG <wl@gnu.org>
8847 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8850 * src/include/posix.h: Define S_IWUSR if not yet defined.
8852 2001-07-18 Werner LEMBERG <wl@gnu.org>
8856 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
8858 * tmac/groff_mdoc.man: Document new -width and -column syntax.
8859 Some other minor fixes.
8860 * tmac/an-old.tmac: Add `AT' and `UC' macros.
8862 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
8864 Replace call to `troff' with `groff -Z' to make it aware of
8867 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8868 (troff_command, command_prefix): Removed.
8869 (alterDeviceTo): Use groff.
8870 (addZ): New function.
8871 (char_buffer::do_html): Use it.
8872 (scanArguments): Use TROFF_COMMAND.
8873 (findPrefix): Removed.
8875 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8877 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
8879 * doc/pic.ms: Documentation fixes.
8881 2001-07-17 Werner LEMBERG <wl@gnu.org>
8883 Replace atexit() with global destructor.
8885 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8886 (xtmpfile_list_init): New global structure to deallocate
8887 xtmpfile_list on exit. Its destructor inherits most code from
8889 (remove_tmp_files): Deleted.
8890 (add_tmp_file): Simplified.
8892 2001-07-16 Werner LEMBERG <wl@gnu.org>
8894 Replace strdup() with strsave().
8896 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8897 (set_papersize): Use strsave() and a_delete.
8898 (main): Use strsave().
8899 * src/preproc/html/pre-html.cc (make_message, createAllPages,
8900 removeAllPages): Use strsave() and a_delete.
8902 * configure.ac: Remove test for strdup.
8903 * Makefile.in: Comment updated.
8904 * configure: Regenerated.
8906 2001-07-15 Werner LEMBERG <wl@gnu.org>
8908 * win32-diffs: Updated.
8910 2001-07-14 Werner LEMBERG <wl@gnu.org>
8912 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8913 removing the old one.
8914 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8916 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8918 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8920 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
8922 Merge -xwidth into -width. Add -xwidth functionality to -column
8925 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8927 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
8928 string immediately following a leading dot starts with a valid mdoc
8930 Add similar code to the -column branch.
8931 (doc-Bl-usage): Updated.
8932 * groff_mdoc.man: s/-xwidth/-width/.
8934 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
8936 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8937 running into centered or non-formatted text.
8939 2001-07-11 Werner LEMBERG <wl@gnu.org>
8941 Introduce short and long prefixes to have the selection at run-time
8942 whether there is a 8+3 limit for names of temporary files.
8944 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8945 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8946 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8948 (temp_init): New global structure to initialize above three
8950 (xtmptemplate): Use two parameters for long and short prefix.
8951 Simplify code use above three variables.
8952 (xtmpfile): Use long and short prefixes as parameters.
8953 * src/include/lib.h: Updated.
8955 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8957 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8958 (createAllPages, makeTempFiles): Updated.
8960 2001-07-09 Werner LEMBERG <wl@gnu.org>
8962 * REVISION: Increased to 3.
8964 Version 1.17.2 released
8965 =======================
8967 2001-07-07 Werner LEMBERG <wl@gnu.org>
8969 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8972 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
8974 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8976 * tmac/groff_mdoc.man: Fix synopsis.
8978 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
8980 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8981 Restore `doc-Pa-font'.
8983 2001-07-04 Werner LEMBERG <wl@gnu.org>
8985 * src/utils/indxbib/dirnamemax.c: Moved to ...
8986 * src/libs/libgroff/maxfilename.cc: Here.
8987 s/dir_name_max/file_name_max/.
8989 * src/include/lib.h: Add file_name_max.
8990 * src/utils/indxbib/indxbib.cc: Updated.
8991 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8994 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8996 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8998 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8999 REGION_TEMPLATE): New macros.
9000 (createAllPages, makeTempFiles): Use them.
9001 Include `nonposix.h'.
9002 (html_system): New function.
9003 (createAllPages, createImage): Use it.
9006 * tmac/www.tmac: Fix typos.
9008 2001-07-03 Werner LEMBERG <wl@gnu.org>
9010 * tmac/www.tmac: Disable hyphenation in normal text only if output
9012 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
9013 * tmac/groff_mwww.man, NEWS: Updated.
9015 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
9017 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
9020 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
9022 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
9023 doc-display-ps-stack): Implement font and font size stack for
9026 2001-07-02 Werner LEMBERG <wl@gnu.org>
9028 * REVISION: Increased to 2.
9029 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
9031 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
9032 beginning of a line.
9033 * src/groff/grog/grog.sh: Ditto.
9035 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
9037 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
9040 2001-06-27 Werner LEMBERG <wl@gnu.org>
9042 Fix problems with preprocessor string for `man' program.
9044 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
9045 Updated/added copyright.
9046 Moved Emacs's local variable to identify nroff mode to the end of
9047 the file; add local variable if missing.
9049 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
9051 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
9052 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
9053 * configure: Regenerated.
9055 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
9057 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
9058 * configure: Regenerated.
9060 2001-06-24 Werner LEMBERG <wl@gnu.org>
9062 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
9064 * doc/pic.ms: Fix typos.
9066 Version 1.17.1 released
9067 =======================
9069 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
9071 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
9072 * configure: Updated.
9074 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
9076 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
9078 * src/roff/troff/dic.cc (blank_line): Add html tag.
9080 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
9082 * src/roff/troff/input.cc (do_suppress): Fix typo.
9084 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
9086 Added two new options (-D and -I) to specify image names and a
9087 subdirectory to place the images in.
9089 Change syntax from \\Ox to \\O[x].
9091 * src/devices/grohtml/post-html.cc (main): Add options.
9093 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
9094 Use `NULL' instead of `0' for null string pointers.
9095 (MAX_RETRIES): New macro.
9096 (lengthOfintToStr, intToStr, make_message): New functions.
9097 (makeFileName): Make function static.
9098 Implement -D and -I options.
9099 (checkImageDir): New function.
9100 (write_end_image, write_start_image): Use new syntax of \O.
9101 (createAllPages, removeAllPages): Implement -D and -I options. Use
9103 (createImage): Use make_message().
9104 (addps4html): Add guard for malloc().
9105 (usage, scanArguments): Updated.
9106 (makeTempFiles): Use mkstemp().
9107 (removeTempFiles): Use unlink().
9108 (findPrefix): Add guard for malloc().
9110 * src/roff/troff/input.cc (get_delim_file_name): New function to
9112 (do_suppress): Updated to parse new syntax.
9113 * src/devices/grohtml/grohtml.man: Updated.
9114 * tmac/www.tmac: Updated to new syntax.
9118 2001-06-15 Werner LEMBERG <wl@gnu.org>
9120 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
9122 * src/devices/grohtml/grohtml.man: Minor improvements.
9124 2001-06-14 Werner LEMBERG <wl@gnu.org>
9126 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
9128 2001-06-11 Werner LEMBERG <wl@gnu.org>
9130 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
9131 line to specify preprocessor options -- mandb 2.3.1 only recognizes
9133 * src/preproc/grn/grn.man: Add proper '\" string.
9135 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
9137 * test-groff: Don't use PATH but GROFF_BIN_PATH.
9139 2001-06-08 Werner LEMBERG <wl@gnu.org>
9141 Updated to autoconf 2.50.
9143 * configure.in: Renamed to...
9144 * configure.ac: This.
9145 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
9146 (GROFF_OS390): Updated.
9147 * configure: Regenerated.
9149 2001-05-18 Werner LEMBERG <wl@gnu.org>
9151 * src/roff/troff/env.c, src/roff/troff/env.h,
9152 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
9155 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
9157 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
9159 2001-05-16 Werner LEMBERG <wl@gnu.org>
9161 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
9162 less than or equal zero; set it to 1 then.
9163 * src/roff/troff/node.h (node::node): Initialize `last'.
9165 2001-05-08 Werner LEMBERG <wl@gnu.org>
9167 * tmac/an-old.tmac: Make predefined strings work in compatibility
9169 Add troff version guard.
9170 * tmac/doc.tmac: Simplify version guard.
9172 2001-05-07 Werner LEMBERG <wl@gnu.org>
9174 The .ns and .rs requests are now honoured not only in the top-level
9175 but in all diversions (similar to UNIX troff).
9177 This change is based on a patch from Tadziu Hoffmann
9178 <hoffmann@usm.uni-muenchen.de>.
9180 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
9181 (top_level_diversion): Remove `no_space_mode' member.
9182 * src/roff/troff/div.cc (diversion::diversion,
9183 top_level_diversion::top_level_diversion): Updated.
9184 (macro_diversion::output): Reset `no_space_mode'.
9185 (no_space, restore_spacing): Use `curdiv' unconditionally.
9186 (space_request, blank_line): Check `curdiv->no_space_mode'.
9187 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
9188 `curdiv' unconditionally.
9189 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9192 2001-05-06 Werner LEMBERG <wl@gnu.org>
9194 Added two new requests `de1' and `am1' which are similar to `de' and
9195 `am' with the difference that compatibility mode is saved on entry,
9196 switched off during macro execution, and restored on exit.
9198 * src/roff/troff/input.h: Added two new special characters
9199 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
9200 * src/roff/troff/input.cc (input_iterator): Added two member
9201 functions `save_compatible_flag' and `get_compatible_flag'.
9202 (input_stack): Ditto.
9203 (string_iterator): Ditto. Also add private member
9204 `saved_compatible_flag'.
9205 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
9206 (calling_mode): New enumeration.
9207 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
9208 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
9209 (define_macro, define_indirect_macro, append_macro, ignore): Use
9211 (define_nocomp_macro, append_nocomp_macro): New functions.
9212 (init_input_requests): Updated.
9213 (do_request): Rename local variable `saved_compatible_flag' to
9214 `old_compatible_flag'.
9215 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9217 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
9218 public and trap-invoked macros. As a consequence, the man macros
9219 work in compatibility mode also.
9221 2001-05-06 Solar Designer <solar@openwall.com>
9223 * Makefile.in: Use $(mandir).
9225 2001-05-06 Alexios Zavras <zvr@pobox.com>
9227 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
9229 2001-05-05 Werner LEMBERG <wl@gnu.org>
9231 Added `.ns' number register: Returns 1 in no-space mode (if in
9232 top-level diversion), 0 otherwise.
9234 * src/roff/troff/div.cc (no_space_mode_reg): New class.
9235 (init_div_requests): Updated.
9236 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9239 2001-05-04 Werner LEMBERG <wl@gnu.org>
9241 * src/roff/nroff/nroff.man: Improved documentation (especially
9244 2001-05-02 Werner LEMBERG <wl@gnu.org>
9246 Added `brp' request: This is \p as a request.
9248 * src/roff/troff/env.cc (environment::do_break): Add parameter
9250 (do_break_request): New function (was `break_request').
9251 (break_request): Calls `do_break_request'.
9252 (break_spread_request): New; calls `do_break_request'.
9253 (init_env_requests): Updated.
9254 * src/roff/troff/env.h: Updated.
9255 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9257 * REVISION: Increased to 1.
9258 * win32-diffs: Updated.
9260 2001-05-01 Werner LEMBERG <wl@gnu.org>
9262 * tmac/an-old.tmac: Fix minor compatibility mode issue.
9263 * tmac/troffrc-end: Make it really work in compatibility mode.
9265 2001-04-27 Werner LEMBERG <wl@gnu.org>
9267 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
9270 2001-04-22 Werner LEMBERG <wl@gnu.org>
9272 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
9273 latest versions from glibc CVS archive.
9275 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
9276 <c.zeelenberg@hccnet.nl>.
9278 2001-04-21 Werner LEMBERG <wl@gnu.org>
9280 * configure.in: Move check for mkstemp() to...
9281 * aclocal.m4 (GROFF_MKSTEMP): This new function.
9282 * configure: Regenerated.
9284 * src/include/groff-getopt.h: Don't use variable names in
9287 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
9288 * src/devices/grohtml/Makefile.sub,
9289 src/devices/grohtml/post-html.cc: Updated.
9291 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
9293 * configure.in: Add special check for mkstemp().
9294 * src/libs/libgroff/tmpfile.cc: Use it.
9295 * src/utils/indxbib/indxbib.cc: Ditto.
9296 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
9297 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
9300 2001-04-20 Bruce Lilly <blilly@erols.com>
9302 `Version_string' as C++ object was not visible to linker from C
9304 Add `const' to `Version_string'.
9306 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
9307 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
9308 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
9309 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
9310 (scanArguments), src/preproc/refer/refer.cc (main),
9311 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
9312 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
9313 (main), src/devices/grohtml/post-html.cc (main),
9314 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
9315 (main), src/utils/hpftodit/hpftodit.cc (main),
9316 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
9317 (main), src/utils/lkbib/lkbib.cc (main),
9318 src/utils/addftinfo/addftinfo.cc (main): Implement it.
9320 * src/roff/groff/pipeline.c: Add _UWIN.
9321 * src/include/nonposix.h: Ditto.
9323 2001-04-20 Werner LEMBERG <wl@gnu.org>
9325 * src/include/lib.h: Use HAVE_STRERROR.
9326 * src/roff/groff/pipeline.c: Ditto.
9327 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
9328 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
9329 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
9330 * win32-diffs: Updated.
9331 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
9333 2001-04-19 Werner LEMBERG <wl@gnu.org>
9335 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
9336 instead of hardwired `"troff"'.
9337 (char_buffer::read_file): Remove unused variables.
9338 (char_buffer::write_file_troff): Ditto.
9339 (char_buffer::write_file_html): Ditto.
9340 (generateImages): Ditto.
9342 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
9344 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
9346 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
9347 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
9348 index_search_item::search1): Ditto.
9349 * src/roff/troff/node.h (width_list): Reorder members.
9350 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
9351 (lookup_warning): Ditto.
9352 (prepend_string): Commented out.
9353 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
9354 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
9355 * src/preproc/tbl/main.cc (process_format): Ditto.
9356 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
9358 * src/preproc/pic/pic.cc: Updated.
9359 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
9360 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
9361 * src/preproc/refer/command.cc (execute_command): Ditto.
9362 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
9363 * src/preproc/refer/token.cc (lookup_token): Ditto.
9364 * src/preproc/soelim/soelim.cc: Ditto.
9365 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
9366 (isHexDigit): Commented out.
9367 (pushBackBuffer::isString): Remove unused variable.
9368 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
9370 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
9371 resource_manager::read_resource_arg, read_one_of, parse_extensions):
9373 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
9374 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
9375 lookup_paper_size): Ditto.
9376 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
9377 (text_glob, element_list): Reorder members.
9378 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
9380 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
9381 return value to `void'.
9382 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
9384 * src/devices/grohtml/html.h (simple_output::check_newline,
9385 simple_output::space_or_newline, simple_output::enable_newlines):
9387 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
9389 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
9390 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
9391 output_ligatures, output_charset, read_map): Ditto.
9392 * src/utils/lookbib/lookbib.cc (main): Ditto.
9393 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
9394 (do_file): Fix typo (`=' -> `==').
9395 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
9396 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
9398 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
9400 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
9401 Fix usage of GROFF_BIN_PATH.
9402 * src/roff/nroff/nroff.man: Updated.
9404 2001-04-18 Werner LEMBERG <wl@gnu.org>
9406 * NEWS: Fixing typos.
9409 Version 1.17 released
9410 =====================
9412 2001-04-17 Werner LEMBERG <wl@gnu.org>
9414 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9415 directory, not in $(srcdir).
9417 2001-04-16 Werner LEMBERG <wl@gnu.org>
9419 * doc/groff.texinfo: More info on conditionals.
9421 2001-04-15 Werner LEMBERG <wl@gnu.org>
9423 * doc/groff.texinfo: Added some info about groff internals.
9425 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9426 about missing special character only if the name is non-null.
9428 2001-04-14 Werner LEMBERG <wl@gnu.org>
9430 Removing the grohtml-old device driver which is now obsolete.
9432 * src/devices/grohtml-old/*: Removed.
9433 * font/devhtml-old/*: Removed.
9434 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9436 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9437 * test-groff (PATH): Updated.
9438 * tmac/Makefile.sub (NORMALFILES): Updated.
9439 * tmac/an-old.tmac: Remove special code for html-old device.
9440 Replace `html-or-html-old' register with `an-html'.
9441 * tmac/eqnrc: Updated.
9442 * tmac/html-old.tmac: Removed.
9443 * tmac/troffrc, tmac/troffrc-end: Updated.
9444 * tmac/www.tmac: Remove special code for html-old device.
9445 Replace `html-or-html-old' register with `www-html'.
9447 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9448 src/libs/libgroff/htmlindicate.cc (graphic_end),
9449 include/htmlindicate.h, src/preproc/grn/*.cc,
9450 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9451 single argument for consistency with rest of source code.
9453 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9455 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
9457 * src/roff/troff/troff.man: Fixing typos.
9459 2001-04-13 Werner LEMBERG <wl@gnu.org>
9461 * doc/pic.ms: Fixing many font switches.
9462 * doc/groff.texinfo: Fixes, additions.
9463 * MORE.STUFF: Updated.
9465 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
9467 * src/devices/grohtml/grohtml.man: Updated manual page regarding
9469 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9471 (removeTempFiles): New function to tidy up temporary files.
9472 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9473 Many fixes to do with the new inline suppress node and image regions
9475 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9476 (generate_img_src): New function.
9477 (html_printer::do_auto_image): Utilizes it.
9478 (do_heading, do_title): Include inline images within their contents.
9479 (html_printer::begin_page): Tidied up comments that are issued to
9480 the html output file.
9481 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9483 (text_glob::is_br): New method used by do_heading.
9484 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9485 equivalent diversion.
9486 * src/include/html-strings.h: Altered image tags to reflect the
9488 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9490 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9491 it is already inside a pic image. Only emit tags if the argument
9492 `-Tps:html' is present.
9493 * src/preproc/tbl/main.cc: Changes to reflect additional
9494 `html_end_suppress' parameter.
9495 * src/roff/troff/env.cc: Only emit eol tag if a node has been
9496 emitted since the last eol tag was written.
9497 * src/roff/troff/env.h: New boolean `emitted_node'.
9498 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9499 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
9500 * src/roff/troff/node.cc (check_charinfo): New method.
9501 (troff_output_file::determine_line_limits): Alterations to limit
9503 * tmac/www.tmac: Changes to reflect new suppress nodes.
9505 2001-04-12 Bruno Haible <haible@clisp.cons.org>
9507 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9508 Escape the html_glyph in the buffer.
9509 (str_translate_to_html): Output the unescaped escaped_char.
9510 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9511 `frame=void', not `frame=none'. Add `border=0'.
9513 2001-04-12 Werner LEMBERG <wl@gnu.org>
9515 * PROBLEMS: Add some words on how to avoid wrapper macros.
9517 2001-04-11 Blake McBride <blake@florida-software.com>
9519 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9521 2001-04-11 Werner LEMBERG <wl@gnu.org>
9523 * font/devlbp/Makefile.sub (CLEANADD): Set it.
9524 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9525 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9526 * Makefile.sub (DISTCLEANFILES): Here.
9528 * libs/libgroff/new.cc: Include `nonposix.h'.
9529 * win32-diffs: Updated.
9531 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
9533 Added skeleton macro for defunct macros.
9535 Updated documentation.
9537 When inside displays, an empty input line warning should be
9538 suppressed. If another macro call is put inside a display,
9539 all subsequent empty lines found in that display caused a
9540 warning to be emitted.
9542 * tmac/doc.tmac (doc-defunct-macro): New macro.
9543 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9544 (doc-restore-global-vars): Fixed typo.
9545 (doc-empty-line): Check the `doc-display-depth' register to
9546 determine whether we are inside display or not.
9548 * tmac/doc-common: Removed `Or' and `Sf' registers.
9549 Moved obsolete `Ds' macro to doc.tmac.
9551 * tmac/groff_mdoc.man: Bump document date.
9552 Document `.Vt' under ``Variable Types''.
9553 Removed documentation for obsolete `.Or' macro.
9555 2001-04-10 Werner LEMBERG <wl@gnu.org>
9558 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9560 2001-04-10 Bruno Haible <haible@clisp.cons.org>
9562 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9563 (usage): Add stream argument. Don't exit.
9564 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9565 Write --version output to stdout, not stderr.
9566 (usage): Add stream argument. Don't exit.
9567 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9568 (usage): Add stream argument. Don't exit.
9569 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9571 (usage): Add stream argument. Don't exit.
9572 (main): Write --help output to stdout, not stderr.
9573 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9574 (usage): Add stream argument. Don't exit.
9575 * src/devices/grops/ps.cc (main): Accept --help and --version.
9576 (usage): Add stream argument. Don't exit.
9577 * src/devices/grotty/tty.cc (main): Accept --help and --version.
9578 (usage): Add stream argument. Don't exit.
9579 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9580 (main): Accept --help and --version.
9581 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9582 (main): Accept --help and --version.
9583 * src/preproc/html/pre-html.cc (usage): Add stream argument.
9584 (scanArguments): Accept --help and --version.
9585 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9586 (main): Accept --help and --version.
9587 * src/preproc/refer/refer.cc (main): Accept --help and --version.
9588 (usage): Add stream argument. Don't exit.
9589 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9591 (main): Accept --help and --version.
9592 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9593 (main): Accept --help and --version.
9594 * src/roff/groff/groff.cc (main): Accept --help and --version.
9595 (synopsis): Add stream argument.
9596 (help): Write --help output to stdout, not stderr.
9597 (usage): Add stream argument. Don't exit.
9598 * src/roff/grog/grog.pl: Accept --help and --version.
9600 * src/roff/grog/grog.sh: Accept --help and --version.
9601 * src/roff/nroff/nroff.sh: Accept --help and --version.
9602 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9603 (usage): Add stream argument. Don't exit.
9604 (main): Accept --help and --version.
9605 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9606 (usage): New function with stream argument, doesn't exit.
9607 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9608 (usage): New function with stream argument, doesn't exit.
9609 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9610 (usage): Add stream argument. Don't exit.
9611 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9612 (main): Accept --help and --version.
9613 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9615 (main): Accept --help and --version.
9616 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9617 (main): Accept --help and --version.
9618 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9619 (usage): Add stream argument. Don't exit.
9621 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
9623 Fix indentation in SYNOPSIS.
9625 Updated to include changes of latest BSD mdoc version (basically,
9626 the only change is that `.Fn' and `.Fc' put a final semicolon after
9627 a function declaration in the SYNOPSIS section).
9629 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9630 (doc-in-synopsis-section): New variable. Updated all related
9632 (doc-indent-synopsis-active): New register.
9633 (Nd, Fn, Fo): Use it.
9634 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9635 `.Cd' with long argument line produces indented wrapped lines.
9636 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9637 undesirable line break to be output.
9638 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9640 (Fn, Fc): Add final `;' to output.
9641 (doc-save-global-vars, doc-restore-global-vars): Updated.
9642 * tmac/doc-common: Remove `Ex' register.
9644 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9647 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9649 * tmac/doc.tmac (Cd): Simplify code.
9650 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9652 2001-04-06 Werner LEMBERG <wl@gnu.org>
9654 Implement continuous underlining for nroff mode. To do that, a new
9655 request in the ditroff language has been added: `x u N' (N is 0
9658 \X and \Y are now transparent to end-of-sentence recognition.
9660 * src/include/printer.h (printer): Add `type' parameter to `special'
9662 * src/libs/libdriver/printer.cc (printer::special): Updated.
9663 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9665 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9666 specials of type `p'.
9667 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9668 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9669 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9670 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9671 (glyph::order): New method.
9672 (tty_printer::add_char): Use it.
9673 (tty_printer::special): New method.
9674 (tty_printer::end_page): Implement it.
9676 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9677 * src/roff/troff/node.cc (special_node::special_node): Add parameter
9678 to set `no_init_string'.
9679 (special_node::tprint_start): Use it.
9680 (special_node::same, special_node::copy): Updated.
9681 (special_node::ends_sentence): New method.
9682 (troff_output_file::start_special): Add parameter to include
9683 inititialization of special conditionally.
9685 * src/roff/troff/env.h (environment): New member `underline_spaces'.
9686 * src/roff/troff/env.cc (do_underline_special): New function.
9687 (environment::set_font): Use it.
9688 (do_underline): Use it. This was `underline()'.
9689 (underline): Call `do_underline()'.
9690 (continuous_underline): New function which calls `do_underline()'.
9691 (environment::newline): Use `do_underline_special()'.
9692 (init_env_requests): Updated.
9694 * NEWS, man/troff_out.man: Updated.
9696 2001-04-06 Bruno Haible <haible@clisp.cons.org>
9698 * font/devutf8/R.proto: Fix code of 'shc'.
9700 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9702 Many fixes. Diag lists can now be nested also; additionally,
9703 `-compact' and `-offset' are supported.
9705 * tmac/doc.tmac (doc-have-indent): Replaced with ...
9706 (doc-list-have-indent-stackXXX): A new register stack.
9707 (doc-have-diag-list): Removed.
9708 (Bl): Use `doc-list-have-indent-stackXXX'.
9710 (doc-diag-list): Use `doc-compact-list-stackXXX'.
9711 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9712 (doc-set-vertical-and-indent): Ditto.
9713 (doc-next-list-depth): Removed.
9714 (doc-increment-list-stack): Updated.
9715 (doc-decrement-list-stack): Use `doc-list-depth' instead of
9716 `doc-next-list-depth'.
9717 (doc-end-list, doc-end-column-list): Don't use
9718 `doc-increment-list-stack'.
9719 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9720 (doc-save-global-vars, doc-restore-global-vars): Updated.
9721 * tmac/doc-common: Updated.
9722 * tmac/groff_mdoc.man: Updated.
9725 2001-04-02 Werner LEMBERG <wl@gnu.org>
9727 * src/devices/grotty/grotty.man: Fix grammatical error.
9729 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
9731 Remove .Ld from mdoc package; replace it with special handling of
9734 * tmac/doc-common: Remove `Ld' register.
9735 Uncomment `doc-volume-ds-*' strings.
9736 Remove `doc-operating-system-default'.
9738 * tmac/doc-syms (Ld): Removed.
9739 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9743 * tmac/groff_mdoc.man: Many fixes and updates.
9745 2001-03-29 Werner LEMBERG <wl@gnu.org>
9747 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
9748 Bond <tkb@tkb.mpl.com>.
9749 * tmac/www.tmac: Save compatibility mode.
9751 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
9753 * tmac/groff_mdoc.man: Many fixes.
9755 2001-03-28 Werner LEMBERG <wl@gnu.org>
9757 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9760 2001-03-27 Werner LEMBERG <wl@gnu.org>
9762 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9763 diversion. This fixes overlong tags.
9765 2001-03-26 Werner LEMBERG <wl@gnu.org>
9767 * doc/groff.texinfo: Fixed and improved documentation of fonts.
9768 * tmac/doc-syms: Fix error messages.
9769 * tmac/an-old.tmac: Remove incorrect double backslashes.
9771 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
9773 * tmac/Makefile.sub: Strip mdoc.local also
9774 * tmac/strip.sed: Fixed.
9776 2001-03-24 Werner LEMBERG <wl@gnu.org>
9778 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9779 selecting the font size.
9780 * tmac/groff_mdoc.man, NEWS: Document it.
9782 2001-03-23 Werner LEMBERG <wl@gnu.org>
9784 * src/roff/troff/div.cc (save_vertical_space): Add default argument
9786 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9787 argument to restore previous font family.
9788 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9790 * doc/groff.texinfo: More fixes and additions (mainly for font
9791 manipulating commands).
9793 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9794 * tmac/groff_mdoc.man: This. The quick reference has been removed.
9795 * tmac/Makefile.sub, NEWS: Updated.
9797 2001-03-23 Werner LEMBERG <wl@gnu.org>
9799 Replaced mdoc implementation. The new version is `state of the
9800 art', using almost all new features of groff 1.17 -- it won't run
9801 with older versions.
9803 * tmac/doc.tmac: Completely rewritten.
9804 * tmac/doc-common: Ditto.
9805 * tmac/doc-nroff: Ditto.
9806 * tmac/doc-ditroff: Ditto.
9807 * tmac/doc-syms: Ditto.
9808 * tmac/mdoc.local: New file.
9809 * tmac/groff_mdoc.samples.man: Replaced with ...
9810 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9811 * tmac/strip.sed: Updated.
9812 * tmac/Makefile.sub: Updated.
9815 * tmac/groff_man.man: Add `man.local' to the FILES section.
9817 2001-03-22 Werner LEMBERG <wl@gnu.org>
9819 * doc/groff.texinfo: Added many @noindent.
9820 Replaced @end_Example -> @endExample.
9821 Added info whether registers are r/o.
9822 Many other additions and fixes.
9824 2001-03-21 Werner LEMBERG <wl@gnu.org>
9826 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9827 in makeinfo of texinfo 4.0) to be used in @Def* macros.
9828 Improved @Def* macros: Now the exact syntax of request, register,
9829 and escapes is shown.
9830 Added macros for parentheses and brackets to be used in @Def*.
9831 Many fixes and improvements of the documentation.
9833 2001-03-20 Werner LEMBERG <wl@gnu.org>
9835 * doc/groff.texinfo: Added new index: `st' (for strings).
9836 Added macros @Defstr(x).
9837 Added macro @Example (adding @group).
9838 Other minor improvements.
9840 2001-03-19 Werner LEMBERG <wl@gnu.org>
9842 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9843 `rq' for requests. `fn' is no longer used.
9844 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9847 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9848 number with name of man page.
9850 2001-03-19 Larry Kollar <kollar@alltel.net>
9852 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
9855 2001-03-19 Werner LEMBERG <wl@gnu.org>
9857 * man/groff_font.man: Document `prepro', `postpro', and `print'.
9858 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9859 * src/devices/grohtml/grohtml.man: Fixing typos.
9861 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
9863 * tmac/s.tmac (@IP): Pass `.ip' html tag.
9864 * tmac/groff_mwww.man: Remove .LINE macro
9865 * tmac/www.tmac (LINE): Add `.ti'.
9867 * src/devices/grohtml/post-html.cc (html_printer): New member
9869 (html_printer::emit_raw): Use it.
9870 (html_printer::do_linelength): Ditto.
9871 (html_printer::do_pageoffset): Ditto.
9872 (html_printer::do_indentation): Ditto.
9873 (html_printer::do_tempindent): Ditto.
9874 (html_printer::do_break): Ditto.
9875 (html_printer::begin_page): Ditto.
9876 (html_printer::do_indentedparagraph): New function.
9877 (html_printer::troff_tag): Handle `.ip'.
9878 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9879 Add `<td width=...>' handling.
9880 (html_text::do_table): Add parameter.
9881 (html_text::do_indent): Updated.
9882 * src/devices/groohtml/html-text.h: Updated.
9884 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
9886 Introduced simple html tables to implement indentation.
9888 * src/devices/grohtml/html.h (word, word_list): New structures.
9889 (simple_output): Use it.
9890 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9891 (html_printer): Improve indentation handling.
9892 (html_printer::emit_raw): Set `in_table' element. Handle
9894 (html_printer::write_header): Move conditional downwards.
9895 Don't allow whitespace in tags.
9896 (html_printer::do_linelength): Handle line length and indentation
9898 (html_printer::do_pageoffset): Handle indentation conditionally.
9899 (html_printer::do_indentation): Ditto.
9900 (html_printer::do_tempindent): New function member.
9901 (html_printer::do_fill): Take care of indentation.
9902 (html_printer::do_flush): Finish table.
9903 (html_printer::do_links): Ditto.
9904 (html_printer::do_break): New function for handling `.br' and `.ti'.
9905 (html_printer::troff_tag): Use it.
9907 (html_printer::flush_globs): Fix.
9908 (html_printer::flush_page): Finish table.
9909 (html_printer::html_printer): Fix error message. Set up
9911 (html_printer::add_to_sbuf): Remove special handling of character
9913 (to_unicode): Remove `stop()'.
9914 (html_printer::write_title): Cleanup.
9915 (html_printer::begin_page): Use `put_string()'. Handle indentation.
9916 (html_printer::~html_printer): Flush text and end the line.
9918 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9919 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9921 (html_text::start_tag): Disable newlines.
9922 (html_text::table_is_void): New function.
9923 (html_text::issue_table_begin): Ditto.
9924 (html_text::issue_table_end): Ditto.
9925 (html_text::push_para): Better table handling.
9926 (html_text::do_indent): New function.
9927 (html_text::do_table): Ditto.
9928 (html_text::done_table): Ditto.
9929 (html_text::do_tt): Handle PRE_TAG.
9930 (html_text::is_in_table): New function.
9931 (html_text::check_emit_text): Handle tables.
9932 (html_text::do_emittext): Use `nl()'.
9933 (html_text::do_para): Handle table.
9934 (html_text::remove_def): New function.
9935 * src/devices/grohtml/output.cc (word, word_list): Implement
9937 (simple_output::end_line): Flush last word.
9938 (simple_output::simple_comment): Ditto.
9939 (simple_output::begin_comment): Recoded.
9940 (simple_output::end_comment): Ditto.
9941 (simple_output::comment_arg): Removed.
9942 (simple_output::check_newline): Improve test and flush last word.
9943 (simple_output::space_or_newline): Improved.
9944 (simple_output::write_newline): Replaced with...
9945 (simple_output::nl): This.
9946 (simple_output::put_raw_char): Flush last word.
9947 (simple_output::check_space): Removed.
9948 (simple_output::put_translated_string): Ditto.
9949 (simple_output::put_string): Simplified.
9950 (simple_output::put_number): Updated.
9951 (simple_output::put_float): Ditto.
9952 (simple_output::put_symbol): Removed.
9953 (simple_output::enable_newlines): Add `check_newline()'.
9954 (simple_output::flush_last_word): New function.
9956 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9957 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9959 * tmac/s.tmac (@PP, @IP): Add html conditional code.
9960 * tmac/an-old.tmac (TP): Ditto.
9962 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
9964 * mdate.sh: Make it POSIX compliant.
9966 2001-03-09 Werner LEMBERG <wl@gnu.org>
9968 Added the `return' request to end a macro immediately. It simply
9969 pops iterators from the input stack until a macro iterator is found.
9971 * src/roff/troff/input.cc (input_iterator::is_macro,
9972 macro_iterator::is_macro): New member.
9973 (input_return_boundary): New class to signal an immediate return
9975 (input_stack::add_return_boundary, input_stack::is_return_boundary):
9977 (input_stack::clear): Use it.
9978 (input_stack::pop_macro): New function.
9979 (while_request): Use `is_return_boundary()'.
9980 (return_macro_request): New function.
9981 (init_input_requests): Use it.
9983 * src/roff/troff/TODO: Updated.
9984 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9986 2001-03-08 Werner LEMBERG <wl@gnu.org>
9988 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9991 2001-03-07 Werner LEMBERG <wl@gnu.org>
9993 Make `\B' more rigid.
9995 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9997 (get_number_rigidly): New function.
9998 * src/roff/troff/input.cc (do_expr_test): Use it.
9999 * src/roff/troff/token.h: Updated.
10001 * src/roff/troff/request.h: Fix typo (init_html_request ->
10002 init_markup_request).
10004 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
10006 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
10007 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
10008 are now `.begin', `.end', `.image'.
10010 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
10011 (html_printer::add_to_sbuf): Changing type of `code' parameter.
10012 Use add_char_to_sbuf().
10013 (to_unicode): New function.
10014 (char_translate_to_html): Changing type of `ch' parameter.
10015 Use `to_unicode()'.
10016 (html_printer::~html_printer): Comment out doctype string.
10017 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
10018 instead of `.html-end'.
10019 (write_start_image): Use `.begin' and `.image' instead of
10020 `.html-begin' and `.html-image'.
10021 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
10022 (html_begin): Renamed to ...
10024 (html_end): Renamed to ...
10026 (html_image): Renamed to ...
10028 (init_html_requests): Renamed to ...
10029 (init_markup_requests): This.
10030 * tmac/www.tmac: Updated.
10032 2001-02-28 Bram <bram@avontuur.org>
10034 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
10037 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
10039 * doc/meref.me: Fixing some typos.
10041 2001-02-16 Werner LEMBERG <wl@gnu.org>
10043 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
10044 method. Return `HYPHEN_MIDDLE' if it was `\:'.
10045 * src/roff/troff/node.h: Updated.
10047 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
10049 * tmac/groff_tmac.man: Fix typo.
10051 2001-02-16 Werner LEMBERG <wl@gnu.org>
10053 Fixing a bug which prevented proper end-of-sentence recognition
10054 between an `unformatted' box and the following text. As a
10055 consequence, vertical line distances are no longer preserved in
10056 boxes after a call to `.unformat' -- because boxes aren't
10057 line-oriented (contrary to diversions), this doesn't make sense
10060 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
10062 (vertical_size_node::set_unformat_flag): New method.
10063 * src/roff/troff/node.hh: Updated.
10064 * src/roff/troff/input.cc (word_space_node::reread,
10065 hmotion_node::reread): Reset `unformat' flag after usage.
10066 (unformat_macro): Append only if `set_unformat_flag()' returns
10068 * src/roff/troff/troff.man: Updated.
10070 2001-02-15 Werner LEMBERG <wl@gnu.org>
10072 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
10073 documentation of `asciify' and `unformat' requests.
10075 2001-02-13 Werner LEMBERG <wl@gnu.org>
10077 Redesigned the `unformat' request. It is no longer connected with
10078 `asciify' but rather uses new `reread()' methods if the `unformat'
10079 flag is set. Additionally, the handling of space characters after
10080 unformatting has been fixed so that they retain their width.
10082 * src/roff/troff/node.h (width_list): New structure to store
10083 original widths of spaces.
10084 (node): Added `unformat' member.
10085 Replaced `num_spaces' variable with `orig_width' list.
10086 * src/roff/troff/node.cc (*node::asciify,
10087 asciify_reverse_node_list): Removed `unformat_only' flag and related
10089 (word_space_node::asciify, word_space_node::word_space_node): Use
10091 (word_space_node::~word_space_node): New destructor.
10092 (word_space_node::copy): Updated to handle `orig_width'.
10093 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
10094 (*node::merge_space): Update `orig_width' list if necessary.
10095 (*node::set_unformat_flag): New methods to set the `unformat' flag.
10096 * src/roff/troff/enc.cc (environment::space_newline): Use
10098 (environment::space): Added method to handle space width and
10099 sentence space width as parameters. Use `width_list'.
10100 (environment::make_tab_node): Updated.
10101 * src/roff/troff/env.h: Updated.
10102 * src/roff/troff/input.cc (word_space_node::reread,
10103 unbreakable_space_node::reread, hmotion_node::reread): New methods
10104 to handle nodes specially if `unformat' flag is set.
10105 (do_asciify_macro): Renamed back to ...
10106 (asciify_macro): This.
10107 (unformat_macro): New implementation to simply set the `unformat'
10110 * MORE.STUFF: Added more info about deroff.
10112 2001-02-08 Werner LEMBERG <wl@gnu.org>
10114 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
10115 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
10116 and `add_self()' methods to avoid hyphenation. For example, the
10117 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
10118 soft hyphen after `foo'. Now the hyphen list is correctly
10119 `foo<ignore><ignore>bar'.
10121 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
10123 * tmac/groff_tmac.man: Fix `BIR' macro.
10125 2001-02-04 Werner LEMBERG <wl@gnu.org>
10127 A new escape sequence `\:', inserting a zero-width break point.
10129 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
10130 * src/roff/troff/input.cc (get_copy, token::next, asciify):
10132 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
10134 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
10135 and `asciify()' methods.
10136 * src/roff/troff/node.cc (space_node::space_node): Updated.
10137 (space_node::asciify): Handle `was_escape_colon'.
10138 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10140 Handle `\~' similar to other comparable requests.
10142 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
10144 (token::next): Move creation of an unbreakable_space_node to...
10145 (token::add_to_node_list): Here.
10147 Fix a bug which sometimes prevented hyphenation of words connected
10148 with `\~' or `\ ' (and other escape sequences handled as
10149 TOKEN_NODE). This also fixes a hyphenation problem with boxes
10150 (after a call to the `unformat' request).
10152 * src/roff/troff/env.h (environment::possibly_break_line,
10153 environment::hyphenate_line): Introducing `start_here' parameter.
10154 * src/roff/troff/env.cc (environment::space_newline,
10155 environment::space): Use it.
10156 (environment::possibly_break_line, environment::hyphenate_line):
10158 * src/roff/troff/input.cc (process_input_stack): Use it.
10159 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
10160 space_char_hmotion_node, overstrike_node): Add
10161 `get_hyphenation_type()' method.
10162 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
10163 if `unformat_only' is active.
10165 2001-01-30 Werner LEMBERG <wl@gnu.org>
10167 Implemented new read-only number register `.linetabs' which
10168 returns 1 if in line-tabs mode, 0 otherwise.
10170 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
10171 * src/roff/troff/env.cc (get_line_tabs): New function.
10172 (init_env_requests): Use it.
10173 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10175 * VERSION, REVISION: Changing to 1.17.0.
10177 2001-01-28 Werner LEMBERG <wl@gnu.org>
10179 Fixed a bug which prevented hyphenation of words which are finished
10182 * src/roff/troff/token.h (token): Add enum type
10183 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
10184 * src/roff/troff/input.cc (token::next, token::description,
10185 get_line_arg, token::add_to_node_list, token::process): Use it.
10187 2001-01-27 Werner LEMBERG <wl@gnu.org>
10189 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
10190 * src/roff/troff/div.cc (do_divert): Use it.
10192 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
10194 2001-01-25 Werner LEMBERG <wl@gnu.org>
10196 Adding the `linetabs' request. If set, tab distances are not
10197 computed relative to the input line but relative to the output line.
10199 * src/roff/troff/env.h (environment): New member `line_tabs'.
10200 * src/roff/troff/env.cc (line_tabs_request): Implement request.
10201 (environment::environment, environment::copy): Updated.
10202 (environment::distance_to_next_tab): Use `line_tabs'.
10203 (init_env_requests): Register request.
10204 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
10207 2001-01-24 Werner LEMBERG <wl@gnu.org>
10209 Introducing a new read-only register `.int' which is set to a
10210 positive value if the last output line is interrupted (i.e., if it
10213 * src/roff/troff/env.cc (init_env_requests): Add it.
10214 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10216 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
10218 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
10219 * src/preproc/html/pre-html.cc (findPrefix): New function which
10220 generates the troff executable name via the system prefix.
10221 * src/preproc/eqn/main.cc: Modified warning message.
10223 2001-01-23 Werner LEMBERG <wl@gnu.org>
10225 troff's `box' and `boxa' requests didn't preserve temporary
10228 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
10229 `saved_target_text_length' members.
10230 * src/roff/troff/div.cc (do_divert): Use them.
10232 Tabs (but not yet leaders and fields) are now handled correctly by
10235 * node.h (hmotion_node): Add field `was_tab'.
10236 * env.cc (environment::make_tab_node): Set it.
10237 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
10239 Added new request `unformat' which will, contrary to `asciify',
10240 preserve font information after unformatting (i.e., only nodes
10241 dealing with horizontal space are converted back to input
10244 * input.cc (asciify_macro): Renamed to ...
10245 (do_asciify_macro): this, having a new parameter `unformat_only'.
10246 (asciify_macro, unformat_macro): New; using do_asciify_macro.
10247 (init_input_requests): Added `unformat'.
10248 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
10249 parameter to control asciification process.
10250 * node.h (*_node::asciify): Ditto.
10251 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10253 2001-01-20 Werner LEMBERG <wl@gnu.org>
10255 * doc/groff.texinfo: Minor improvement of `.in' documentation.
10257 2001-01-18 Werner LEMBERG <wl@gnu.org>
10259 * tmac/ps.tmac: Remove call of psold.tmac.
10260 * tmac/psold.tmac: Comment updated.
10261 * tmac/psnew.tmac: Removed since no longer needed.
10262 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
10264 * font/devutf8/R.proto: Adding `shc' glyph.
10265 * font/devutf8/NOTES: Updated.
10267 * test-groff: Updated.
10269 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
10271 First cut of the new html device driver. Changes to pre-html and
10272 the new grohtml are too numerous to be documented here.
10274 Stuff related to `html' has been renamed to `html-old' and `html2'
10275 stuff has been renamed to `html' (including directories). The new
10276 html device driver is therefore invoked as `-Thtml'.
10278 Added new `\O' escape to suppress output (needed by html driver).
10280 Added functions and code to pass info about input-level commands
10281 (`.in', `.fl', etc.) to html driver.
10283 Three new functions (.html-begin, .html-end, and .html-image) for
10284 better html handling: `html-begin' will execute the remaining line
10285 if at the outermost nesting level, increasing an internal counter.
10286 `html-end' does the same but decreases the internal counter.
10287 `html_image' puts its arguments into a special node (suppress_node)
10288 to define an image region.
10290 The `output' request has been removed.
10292 * tmac/html-tags.tmac: Removed.
10293 * tmac/arkup.tmac: Updated and renamed to ...
10294 * tmac/www.tmac: New file.
10295 * tmac/markup.tmac Updated and renamed to ...
10296 * tmac/mwww.tmac: New file.
10297 * tmac/Makefile.sub: Updated.
10298 * tmac/an-old.tmac: Updated.
10299 * tmac/eqnrc: Updated.
10300 * tmac/groff_man.man
10301 * tmac/groff_markup.man: Updated and renamed to ...
10302 * tmac/groff_mwww.man: New file.
10303 * tmac/groff_tmac.man: Updated.
10304 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
10305 * tmac/html.tmac: Updated and renamed from html2.tmac.
10306 * tmac/pspic.tmac: Updated html support.
10307 * tmac/s.tmac: Added html output support.
10308 * tmac/troffrc, tmac/troffrc-end: Updated.
10310 * Makefile.in, doc/Makefile: Updated.
10311 * doc/groff.texinfo: Added info about new `\O' escape.
10312 * doc/homepage.ms: Use `MAILTO' macro.
10314 * font/devhtml/DESC.proto: Add `C' font.
10315 * font/devhtml/Makefile.sub: Updated.
10316 * font/devhtml/R.proto: Minor fixes.
10317 * font/devhtml-old/Makefile.sub: Updated.
10319 * src/devices/grohtml-old/Makefile.sub: Updated.
10321 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
10323 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
10324 graphic_start): Add `inline' parameter. Update.
10325 (html_end_suppress, graphic_end): Update.
10327 * src/include/html-strings.h: New file.
10328 * src/include/htmlindicate.h: Comments updated.
10329 * src/include/printer.h: Updated.
10331 * src/preproc/eqn/main.cc (do_file, main): Updated.
10332 * src/preproc/pic/troff.cc (troff_output::start_picture,
10333 troff_output::finish_picture): Updated.
10334 * src/preproc/tbl/main.cc (process_input_file): Updated.
10336 * src/roff/groff/groff.cc (main): Updated.
10337 Pass device arguments to predrivers also.
10338 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
10339 * src/roff/troff/env.h (environment): Updated.
10340 New elements `need_eol' and `ignore_next_eol' (for html output).
10341 * src/roff/troff/env.cc (environment::environment): Add initializers
10342 for `need_eol' and `ignore_next_eol'.
10343 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
10345 (point_size, fill, no_fill, center, right_justify, line_length,
10346 indent, temporary_indent, break_request, handle_tab): Use
10348 (set_tabs): Use `add_html_tag_tabs()'.
10349 (environment::add_html_tag): Updated.
10350 (environment::do_break): Updated.
10351 * src/roff/troff/div.cc (space_request, flush_output): Use
10352 `environment::add_html_tag()'.
10353 * src/roff/troff/input.cc: Updated.
10354 New variable `html_level' to indicate nested `html-begin' requests.
10355 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
10356 (non_interpreted_char_node, token_node, non_interpreted_node): Add
10357 `force_tprint()' method.
10358 (token::next): Handle `\O'.
10359 (do_suppress): Implement it.
10360 (html_begin, html_end, html_image): New functions.
10361 (init_output_requests): Renamed to ...
10362 (init_html_requests): this.
10364 (macro::append_str, macro::append_unsigned, macro::append_int): New
10366 New variable `output_low_mark_miny' to limit minimal value of y.
10367 (reset_output_registers): Use it.
10368 (output_request): Removed.
10369 (get_output_registers): New function.
10370 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
10371 (*_node): Added `force_tprint()' if necessary.
10372 (special_node): New elements `tf' and `get_tfont()'.
10373 (suppress_node): New class.
10374 * src/roff/troff/node.cc:
10375 New global variables `image_no' and `suppress_start_page'.
10376 (real_output_file): New method `is_on()'.
10377 (troff_output_file): New method `start_special(tfont)'.
10378 (troff_output_file::really_print_line): Use `tprint' conditionally.
10379 (real_output_file::print_line): Updated.
10380 (real_output_file::on): Updated.
10381 (*_node): Added `force_tprint()'.
10382 (special_node::special_node): Initializer updated.
10383 (special_node::same, special_node::copy, special_node::tprint_start):
10385 (get_reg_int, get_reg_str): New functions.
10386 (suppress_node::*): New methods.
10387 New global variables last_position, last_image_filename;
10388 (min): New inline function.
10389 * src/roff/troff/reg.h, src/roff/troff/request.h,
10390 src/roff/troff/troff.h: Updated.
10392 2001-01-13 Werner LEMBERG <wl@gnu.org>
10394 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
10395 documentation of `asciify' request.
10397 2001-01-12 Werner LEMBERG <wl@gnu.org>
10399 * src/roff/troff/input.cc: Move definition of special characters
10400 like `ESCAPE_TILDE' to ...
10401 * src/roff/troff/input.h: New file.
10402 * src/roff/troff/Makefile.sub (HDRS): Add it.
10404 Extending the .asciify request to `unformat' space characters also.
10406 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10407 to count input space characters.
10408 Update constructors to take care of it.
10409 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10410 `ESCAPE_SPACE' instead of normal space.
10411 (word_space_node::asciify): New method.
10412 (unbreakable_space_node::asciify): New method.
10413 (word_space_node::merge_space): New method.
10414 * src/roff/troff/env.cc (environment::space_newline,
10415 environment::space): Add code to initialize `num_spaces' (using the
10416 constructor of `word_space_node').
10417 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10420 2001-01-09 Werner LEMBERG <wl@gnu.org>
10422 * man/groff_char.man: Use table header traps only conditionally.
10424 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
10426 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10428 2001-01-08 Werner LEMBERG <wl@gnu.org>
10430 Introducing the `box' and `boxa' requests which are similar to
10431 `di' resp. `da' but omitting a partially filled line (which is
10432 restored after ending the diversion).
10434 * src/roff/troff/div.h (diversion): Add elements to save partially
10436 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10437 partially filled line.
10438 (divert, divert_append): Updated.
10439 (box, box_append): New functions.
10440 (init_div_requests): Use them.
10441 * src/roff/troff/env.h (environment): do_divert() is now a friend.
10442 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10444 * doc/groff.texinfo: Fix documentation of `lf' request.
10446 2000-12-25 Werner LEMBERG <wl@gnu.org>
10448 * src/roff/troff/troff.man, NEWS: Document `writem' request.
10450 2000-12-21 Werner LEMBERG <wl@gnu.org>
10452 Ignore `ss' request if in compatibility mode.
10454 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10455 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10456 * src/roff/troff/env.cc (space_size): Use it.
10458 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10459 `ss' request in nroff mode.
10461 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10464 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
10466 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10468 2000-12-13 Werner LEMBERG <wl@gnu.org>
10470 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10471 * src/preproc/eqn/neqn.man: Small fixes and additions.
10473 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
10475 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10478 * src/preproc/eqn/neqn.man: New file.
10480 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10483 * tmac/e.tmac: Add `T&' macro.
10484 Fix `indent cannot be negative' warning.
10485 * tmac/s.tmac: Fix `indent cannot be negative' warning.
10487 2000-12-07 Werner LEMBERG <wl@gnu.org>
10489 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10491 2000-12-06 Werner LEMBERG <wl@gnu.org>
10493 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10496 * MORE.STUFF: Added info about deroff for djgpp.
10498 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10499 documentation of -rcR switch.
10501 2000-12-03 Werner LEMBERG <wl@gnu.org>
10503 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10504 if -rcR=1 (which is now the default in nroff mode), a single, very
10505 long page is created instead of multiple pages: All `ne' and `wh'
10506 requests are put into conditionals; a new macro `an-end' is added to
10507 be called with `em'.
10509 Some other minor cleanups.
10511 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10513 2000-12-02 Werner LEMBERG <wl@gnu.org>
10515 Fixing a bug which prevented hyphenation in words followed
10516 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10518 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10519 Adding possibly_break_line().
10520 * src/roff/troff/env.h (environment): Make possibly_break_line()
10523 Make `\~' usable in .tr request.
10525 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10526 (token): Add stretchable_space().
10527 * src/roff/troff/input.cc (token::next, token::delimiter,
10528 token::description, process_input_stack, do_translate,
10529 add_to_node_list, token::process): Use it.
10530 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10531 for adjusting the space.
10532 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
10533 for stretchable space.
10534 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10535 (make_node): Add code for stretchable space.
10536 * src/roff/troff/env.cc (environment::add_char): Use it.
10537 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10538 (get_copy, token::next, transparent_translate, asciify): Use it.
10540 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10541 doc/groff.texinfo: Updated.
10542 * man/groff.man: Small reorderings.
10544 2000-11-23 Werner LEMBERG <wl@gnu.org>
10547 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10549 * src/roff/troff/input.cc (main): Add `config_macro_path' and
10550 `safer_macro_path' to -M option.
10551 * src/roff/troff/troff.man: Fixes.
10553 2000-11-22 Werner LEMBERG <wl@gnu.org>
10555 Use safer path (except for config files) if -U isn't specified. Add
10556 a special macro path (without home and current directory) for config
10557 files. Add home directory to unsafe path for consistency. Don't
10558 include the home directory in the font path.
10560 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10562 * src/include/macropath.h: Add `config_macrp_path'.
10563 * src/libs/libgroff/fontfile.cc: Fix font path.
10564 * src/roff/troff/input.cc (process_startup_file): Use
10565 `config_macro_path'.
10566 (main): Select unsafe path if -U is given.
10568 * src/preproc/eqn/main.cc (main): Fixing search path for
10569 configuration file.
10570 * src/preproc/eqn/eqn.man: Updated.
10572 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10575 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10576 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10577 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10578 src/devices/grotty/grotty.man: Updated.
10580 * Makefile.in: Fix comments.
10582 2000-11-17 Werner LEMBERG <wl@gnu.org>
10584 * tmac/safer.tmac: Empty file added (again) for compatibility
10586 * tmac/Makefile.sub: Updated.
10588 2000-11-16 Werner LEMBERG <wl@gnu.org>
10590 * src/devices/grodvi/dvi.cc (main),
10591 src/devices/grohtml2/post-html.cc (main),
10592 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10593 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10594 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10595 (main), src/preproc/html2/pre-html.cc (main),
10596 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10597 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10598 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10599 (main), src/utils/hpftodit/hpftodit.cc (main),
10600 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10601 (main), src/utils/lookbib/lookbib.cc (main),
10602 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10603 (main): Use stdout for -v.
10604 * src/roff/groff/groff.cc (run_commands),
10605 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10606 to make direct printing to stdout possible.
10607 * src/roff/groff/pipeline.h: Updated.
10609 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10610 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10611 * src/utils/afmtodit/afmtodit.man: Updated.
10613 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10614 (version): New function.
10616 * src/utils/addftinfo/addftinfo.man: Updated.
10618 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10619 Fixing copyright dates.
10621 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10624 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10627 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10629 2000-11-15 Werner LEMBERG <wl@gnu.org>
10631 In all programs, make -v return immediately with exit status 0 to
10632 be compliant with the GNU standard.
10634 * src/devices/grodvi/dvi.cc (main),
10635 src/devices/grohtml2/post-html.cc (main),
10636 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10637 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10638 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10639 (main), src/preproc/html2/pre-html.cc (main),
10640 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10641 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10642 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10643 (main): Implement it.
10646 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
10647 and postprocessors to the -v option.
10649 * src/roff/grog/grog.pl: Implement -v.
10650 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10651 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10653 * src/roff/nroff/nroff.sh: Implement -v.
10654 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10655 * src/roff/nroff/nroff.man: Updated.
10657 * src/preproc/eqn/main.cc (main): Fix comment typo.
10659 * MORE.STUFF: Added info about djgpp port of grap.
10661 2000-11-14 Werner LEMBERG <wl@gnu.org>
10663 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10664 mode (or rather, implemented non-compatibility mode).
10665 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10667 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10668 replacing it -- we don't find gxditview otherwise.
10669 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10671 * src/preproc/pic/depend: Removed. Unnecessary.
10673 Implemented dummy keyword `solid' in pic for compatibility with
10676 * lex.cc (lookup_keyword): Added `solid'.
10677 * pic.y: Added SOLID with dummy rule.
10678 * pic.cc, pic_tab.h: Regenerated.
10679 * doc/pic.ms: Updated.
10681 2000-11-13 Werner LEMBERG <wl@gnu.org>
10683 For security reasons, don't use the current directory but the home
10684 directory while searching and scanning troffrc and troffrc-end.
10685 Similarly, replace the current directory with the home directory
10688 * Makefile.in (fontpath, tmacpath): Remove current directory.
10690 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10691 two parameters `add_home' and `add_current'.
10692 (search_path::~search_path, search_path::command_line_dir,
10693 search_path::open_file): Remove tests for `dirs' being zero.
10694 * src/include/searchpath.h: Adjust.
10695 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10696 `safer_macro_path'.
10697 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10699 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10700 * src/roff/troff/input.cc: Use `mac_path', initialized with
10702 (process_startup_file): Set `mac_path' to `safer_macro_path'.
10703 * src/roff/troff/env.cc: Use `mac_path'.
10705 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10707 * NEWS, man/roff.man, src/roff/troff/troff.man,
10708 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10711 2000-11-12 Werner LEMBERG <wl@gnu.org>
10713 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10715 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10716 * configure.in: Fix typo in comment.
10717 * configure: Regenerated.
10719 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10722 2000-11-08 Werner LEMBERG <wl@gnu.org>
10724 Add system tmac directory (/usr/local/lib/groff/site-tmac).
10726 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10727 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10730 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10731 * tmac/Makefile.sub (install_data): Create
10732 $(systemtmacdir) and $(localtmacdir).
10733 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10734 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10735 NEWS, doc/groff.texinfo: Updated and minor fixes.
10737 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10738 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10739 $(systemtmacdir) since the wrapper files are platform-dependent.
10741 2000-11-01 Werner LEMBERG <wl@gnu.org>
10743 * doc/groff.texinfo: Fix typo.
10745 2000-10-26 Werner LEMBERG <wl@gnu.org>
10747 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
10748 tmac.doc.old -> doc-old.tmac
10749 tmac.an.old -> an-old.tmac
10751 * tmac/tmac.*: Moved to ...
10752 * tmac/*.tmac: this.
10753 * tmac/man.local: Fix comment.
10754 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10755 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
10756 Added some `FILES' sections. More use of @...@ directives. Other
10758 * arch/djgpp/README, font/devutf8/NOTES: Updated.
10759 * doc/homepage.ms, doc/groff.texinfo: Updated.
10760 * man/groff.man, man/roff.man: Updated.
10761 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10762 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10763 src/devices/grotty/grotty.man: Updated.
10764 * src/preproc/pic/pic.man: Updated.
10765 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10766 instead of -mdoc.old.
10767 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10768 * src/roff/nroff/nroff.man: Updated.
10771 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10773 * tmac/mm.diff: Removed -- it has no use now since the mm package
10776 * tmac/*: Removed trailing spaces.
10778 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10779 the tmac subdirectory also).
10781 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10782 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10783 stuff since it is no longer needed.
10785 * README, PROBLEMS: Updated.
10787 2000-10-25 Werner LEMBERG <wl@gnu.org>
10789 Invert current behaviour: Search first FOOBAR.tmac, then
10792 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10793 (open_mac_file, macro_source): Implement it.
10794 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10795 doc/groff.texinfo, NEWS: Document it.
10797 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10798 Small documentation improvements.
10800 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10801 subdirectory also).
10803 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10805 2000-10-24 Werner LEMBERG <wl@gnu.org>
10807 Add local tmac directory (groff/site-tmac).
10809 * Makefile.in: Add $(localtmacdir).
10810 (uninstall_dirs): Add $(localtmacdir).
10811 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10812 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10813 in $(localtmacdir). Create $(localtmacdir).
10814 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10815 Updated and minor fixes.
10817 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10819 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10821 2000-10-23 Werner LEMBERG <wl@gnu.org>
10823 Move hyphen.us to tmac directory.
10825 * src/roff/troff/hyphen.us: Removed.
10826 * src/tmac/hyphen.us: Added.
10827 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10829 Change installation structure for data files from .../groff/... to
10830 .../groff/<version><revision>/... to be conform with other GNU
10833 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10834 doc/Makefile: Implement it.
10835 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10836 * configure: Updated.
10837 * arch/djgpp/README, font/devutf8/NOTES: Use it.
10838 * NEWS: Document it.
10839 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10840 @MACRODIR@ instead of hard-coded directories.
10842 2000-10-22 Werner LEMBERG <wl@gnu.org>
10844 Implement $GROFF_BIN_PATH environment variable (which defaults to
10845 $bindir) used for child programs of groff and similar wrappers.
10847 * gendefs.sh: Improve documentation.
10848 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10849 src/preproc/eqn/Makefile.sub (neqn),
10850 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10851 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10853 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10854 $GROFF_PATH__ (the latter for communication with troff).
10855 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10857 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10858 doc/groff.texinfo: Document it.
10860 * doc/groff.texinfo: Improve documentation of troff's -a option.
10862 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
10864 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10865 non-intrusive eol marker.
10866 (troff_output_file::determine_line_limits): New function.
10867 (troff_output_file::draw): Use it.
10868 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10869 output_pending_lines() instead of output_line().
10870 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10871 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10872 createImage): Small fixes.
10874 2000-10-14 Werner LEMBERG <wl@gnu.org>
10876 Replace tmac.safer with a real secure solution.
10878 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10879 system_request, pipe_output): Disable requests if in safer mode.
10880 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10881 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10882 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10883 doc/groff.texinfo, src/roff/groff/groff.man,
10884 src/roff/troff/troff.man, arch/djgpp/README: Updated.
10886 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10887 (resource_manager::output_prolog): Replace setenv() with putenv().
10889 2000-10-09 Werner LEMBERG <wl@gnu.org>
10891 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10892 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10893 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10894 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10895 compilation errors with some compilers. It seems that this code
10896 is no longer necessary -- if yes, it is easy to add some #ifdef's
10897 for that particular old-fashioned compiler.
10899 * MORE.STUFF: Added info about Meta-tbl.
10901 * doc/groff.texinfo: Added more info about `.if "..."..."'.
10903 2000-10-07 Werner LEMBERG <wl@gnu.org>
10905 Adding a new escape sequence \B'...': If the string between
10906 the delimiters is a valid numeric expression, return the character
10907 `1', and `0' otherwise. This is an analogon to \A.
10909 * src/roff/troff/input.cc (do_expr_test): Implement it.
10910 (token::next): Use it.
10911 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10913 * tmac/tmac.trace: Made independent from escape character.
10915 2000-10-06 Werner LEMBERG <wl@gnu.org>
10917 Adding a new request .dei: define indirect. The first and second
10918 parameter of .dei are taken from string registers instead directly;
10919 this very special request is needed to make tmac.trace independent
10920 from the escape character (which might even be disabled).
10922 * src/roff/troff/input.cc (do_define_macro): Implement it.
10923 (define_macro_indirect): New function.
10924 (init_input_requests): Use it.
10926 Adding two requests .ecs and .ecr: Save and restore the escape
10927 character. These two requests are needed to make tmac.trace
10928 independent from the escape character (which might even be
10931 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10933 (init_input_requests): Use it.
10935 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10937 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
10939 Adding a new option -P and new environment variable GROPS_PROLOGUE
10940 to grops, selecting a different prologue file (minor modifications
10943 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10944 src/devices/grops/ps.cc (main): Implement it.
10945 * src/devices/grops/grops.man, NEWS: Document it.
10947 2000-09-22 Werner LEMBERG <wl@gnu.org>
10949 * INSTALL: Add info about selecting paper format.
10951 2000-09-21 Werner LEMBERG <wl@gnu.org>
10953 * src/roff/troff/input.cc (main): Fixing compiler warning.
10954 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10955 strings.h from the former to the latter.
10956 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10957 stuff from the former to the latter.
10959 2000-09-11 Werner LEMBERG <wl@gnu.org>
10961 Implementing two new requests .tm1 and .tmc: The former is similar
10962 to .tm but can output leading spaces; its syntax is similar to
10963 defining a string, i.e., a `"' can be used to mark the beginning of
10964 the string to be written to stderr: `.tm1 " test'. The latter is
10965 similar to .tm1 but doesn't write out a final newline character.
10967 * src/roff/troff/input.cc (terminal1, terminal_continue,
10968 do_terminal): New functions.
10969 (init_input_requests): Use them.
10970 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10972 2000-09-09 Werner LEMBERG <wl@gnu.org>
10974 * tmac/groff_mdoc.samples.man: Small fixes.
10976 2000-09-08 Werner LEMBERG <wl@gnu.org>
10978 * tmac/groff_mdoc.man: Fixing typo.
10980 2000-09-02 Werner LEMBERG <wl@gnu.org>
10982 Implementing a .nop request which does nothing.
10984 * src/roff/troff/input.cc (nop_request): New function.
10985 (init_input_requests): Use it.
10986 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10988 2000-09-01 Werner LEMBERG <wl@gnu.org>
10990 * doc/groff.texinfo: Added some comments.
10992 2000-08-30 Werner LEMBERG <wl@gnu.org>
10994 * src/roff/troff/TODO: Updated.
10996 2000-08-25 Werner LEMBERG <wl@gnu.org>
10998 * doc/groff.texinfo: Fix comment how to compile the DVI file.
11000 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
11002 * font/devps/generate/Makefile (SHELL): Define explicitly to
11003 "/bin/sh", for non-Unix platforms.
11004 (extraclean): Use a more portable "" quoting instead of a
11005 backslash (which doesn't work on DOS/Windows).
11007 * font/devlj4/generate/Makefile (extraclean): Ditto.
11009 * font/devdvi/generate/Makefile (extraclean): Ditto.
11011 2000-08-25 Werner LEMBERG <wl@gnu.org>
11013 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
11014 src/roff/troff/troff.man: Document Eli's latest changes.
11016 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
11018 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
11019 macro file names of the form NAME.tmac as well as tmac.NAME.
11021 2000-08-25 Werner LEMBERG <wl@gnu.org>
11023 * src/include/posix.h: Remove definition of FILENAME_MAX.
11025 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
11026 `sys_fatal' and `stop' function().
11028 * test-groff: Updated.
11030 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
11032 Added the new troff command .output <arg> to suppress output (while
11033 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
11034 registers (for passing the output dimensions to the output device).
11036 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
11038 * src/roff/troff/node.h, src/roff/troff/node.cc
11039 (troff_output_file::really_print_line,
11040 ascii_output_file::really_print_line,
11041 supress_output_file::really_print_line): Use `width' parameter.
11042 (troff_output_file::really_on, troff_output_file::really_off,
11043 output_file::on, output_file::off, real_output_file::on,
11044 real_output_file::off, real_output_file::really_on,
11045 real_output_file::really_off): New functions.
11046 (real_output_file:public output_file): New variable `output_on'.
11047 (real_output_file::begin_page, real_output_file::copy_file,
11048 real_output_file::transparent_char, real_output_file::print_line):
11050 (real_output_file::print_line): Use check_output_limits.
11051 * src/roff/troff/reg.h, src/roff/troff/request.h,
11052 src/roff/troff/input.cc (assign_registers): New function to remove
11054 (do_ps_file): Use it.
11055 (check_output_limits, reset_output_registers, output_request,
11056 init_output_requests): New functions.
11057 (init_input_requests): Updated.
11059 Added new grohtml2 device and html2 preprocessor (coding
11060 not yet finished) which will eventually replace grohtml.
11062 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
11064 * src/include/htmlindicate.h, src/include/htmlindicate
11065 (html_begin_suppress, html_end_suppress): New functions.
11066 * src/preproc/tbl/main.cc: Use it.
11067 * src/roff/groff/groff.cc: Add support for html2 device (which will
11068 automatically invoke the html2 preprocessor).
11069 * src/roff/troff/input.cc (is_html2): New variable.
11070 * src/roff/troff/troff.h, src/roff/troff/env.h,
11071 src/roff/troff/env.cc (environment::add_html_tag): New function
11073 (environment::do_break): Use it.
11074 * font/devhtml2/*: New files.
11075 * src/devices/grohtml2: New device.
11076 * src/preproc/html2: New preprocessor.
11077 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
11079 2000-08-23 Werner LEMBERG <wl@gnu.org>
11081 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
11083 2000-08-22 Werner LEMBERG <wl@gnu.org>
11085 * src/include/lib.h: Provide a fix for IRIX to not include
11088 2000-08-18 Werner LEMBERG <wl@gnu.org>
11090 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
11091 since some non-GNU sed programs can't handle null regexps.
11092 * configure, src/preproc/eqn/Makefile.sub,
11093 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
11095 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
11096 bug (string.h and strings.h are both needed according to latest
11099 * MORE.STUFF: Added info about unroff and troffcvt.
11101 2000-08-08 Werner LEMBERG <wl@gnu.org>
11103 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
11106 * tmac/tmac.man.old: Remove unused number register.
11108 * tmac.doc: Minor documentation fix.
11110 2000-08-07 Paul Eggert <eggert@twinsun.com>
11112 * src/roff/groff/pipeline.c (is_system_shell):
11113 Fix typo: "monocased_shell" no longer exists.
11115 2000-08-07 Paul Eggert <eggert@twinsun.com>
11117 Remove FILENAME_MAX limits.
11119 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
11120 that the argument length is less than FILENAME_MAX.
11121 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
11122 Use struct hack to allocate and free file name.
11123 (struct xtmpfile_list): fname is now part of the structure,
11124 not a pointer to another string.
11126 2000-08-07 Tom Schmidt <tschmidt@micron.com>
11128 * src/include/posix.h: Add a default value for FILENAME_MAX.
11130 2000-08-06 Paul Eggert <eggert@twinsun.com>
11132 Add support for new BSD-style man pages (with ".Dd" instead of
11133 ".TH"), so that "groff -man" understands both styles, even
11134 when running "groff -man" on a host whose system man page
11135 macros don't support ".Dd".
11137 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
11138 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
11139 in case the system man macros don't define Dd or TH.
11141 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
11142 * tmac/tmac.an: New one-line file.
11143 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
11145 2000-08-06 Werner LEMBERG <wl@gnu.org>
11147 * src/roff/troff/troff.man: Fixing typos.
11149 Version 1.16.1 released
11150 =======================
11152 2000-07-31 Werner LEMBERG <wl@gnu.org>
11154 Preparing release 1.16.1.
11156 * REVISION: Revision number set to 1.
11157 * MORE.STUFF: Added info about port to DOS.
11158 * NEWS, win32-diffs: Updated.
11160 * src/include/nonposix.h: Remove first line -- this file is used
11163 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
11166 2000-07-30 Werner LEMBERG <wl@gnu.org>
11168 * doc/texinfo.tex: Update to latest version.
11170 2000-06-28 Paul Eggert <eggert@twinsun.com>
11172 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
11173 commands that fail. Don't assume that "export a=b" is valid shell
11174 syntax. This is needed for Solaris 2.5.1.
11176 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
11177 comment about missing Solaris headers.
11179 * PROBLEMS: Add section about problems with Sun Make and VPATH.
11181 2000-06-25 Werner LEMBERG <wl@gnu.org>
11183 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
11186 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
11188 * win32-diffs: Updated.
11189 * README.WIN32: Added CRs to make all Windows editors happy.
11191 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
11192 src/roff/groff/pipeline.c).
11194 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
11196 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
11197 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
11199 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
11201 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
11202 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
11204 (main): Support non-Posix systems with several different styles of
11205 slash characters in file names.
11207 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
11208 (main) [SET_BINARY]: Switch stdin into binary mode.
11210 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
11211 (main): Support file names with several possible slash-type
11212 characters, as given by DIR_SEPS[] in nonposix.h.
11213 (main) [__MSDOS__]: If renaming the temporary index file fails
11214 because it has more than one dot in its trunk, replace the dot
11215 with an underscore and try again.
11216 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
11218 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
11220 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
11221 (File::File): Open the input file in binary mode. Strip CR
11222 characters from each CR-LF pair.
11223 (xbasename): Support file names with several possible slash-type
11224 characters, as given by DIR_SEPS[] in nonposix.h.
11226 * src/include/Makefile.sub (HDRS): Add nonposix.h.
11228 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
11229 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
11230 [!_POSIX_VERSION]: Define for traditional Unix systems.
11231 (real_output_file::real_output_file): Remove the MSVC-specific
11232 call to popen, use instead POPEN_WT, appropriately defined on
11233 nonposix.h. #include nonposix.h.
11234 (real_output_file::~real_output_file): Remove the MSVC-specific
11235 call to pclose, a suitable macro is now defined on nonposix.h.
11236 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
11237 and WEXITSTATUS instead of assuming traditional Unix
11238 interpretation of the status returned by pclose.
11240 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
11241 call to popen, use POPEN_RT instead (appropriately defined on
11242 nonposix.h). #include nonposix.h.
11243 (ps_bbox_request): Open the PostScript file in binary mode.
11244 Close the file after processing it.
11245 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
11248 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
11249 A version of run_pipeline that doesn't use `fork'.
11250 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
11251 (system_shell_name, system_shell_dash_c)
11252 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
11253 the ugliness of testing DOS/Windows file names for equality, and
11254 support both stock shells and ports of Unix shells.
11256 * src/roff/groff/groff.cc: #include nonposix.h.
11257 (BSHELL): Definition moved to nonposix.h.
11258 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
11259 instead of a literal "-c".
11260 (xbasename): Support file names with several possible slash-type
11261 characters, as given by DIR_SEPS[] in nonposix.h.
11262 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
11263 of literal strings.
11265 * src/preproc/soelim/soelim.cc: #include nonposix.h.
11266 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
11268 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
11271 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
11273 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
11276 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
11278 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
11279 P_tmpdir is defined, use it instead of the literal "/tmp".
11280 (remove_tmp_files, add_tmp_file): New functions.
11281 (xtmpfile): Record temporary files and register an atexit function
11282 to delete them explicitly, instead of relying on the OS to do
11283 that, which doesn't work on non-Unix systems.
11285 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
11286 (search_path::search_path): Use PATH_SEP instead of a literal
11288 (search_path::command_line_dir): Ditto.
11289 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
11290 to support non-Posix systems.
11292 * src/libs/libbib/search.cc: #include nonposix.h.
11293 (search_list::add_file): Open the file in binary mode.
11295 * src/libs/libbib/linear.cc: #include nonposix.h.
11296 (file_buffer::load): Remove \r characters preceding \n from the
11299 * src/libs/libbib/index.cc: #include nonposix.h.
11300 (make_index_search_item): Open index_filename in O_BINARY mode.
11301 (index_search_item_iterator::get_tag): Ditto. Remove \r
11302 characters before \n characters.
11303 (index_search_item::check_files): Open files in binary mode.
11304 (index_search_item::munge_filename): Support DOS-style file names
11305 with backslashes and drive letters, use IS_ABSOLUTE.
11307 * src/devices/grops/ps.cc: #include nonposix.h.
11308 (main) [SET_BINARY]: Switch stdout to binary mode.
11310 * src/devices/grolj4/lj4.cc: #include nonposix.h.
11311 (main) [SET_BINARY]: Switch stdout to binary mode.
11313 * src/devices/grolbp/lbp.cc: #include nonposix.h
11314 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
11316 * src/devices/grodvi/dvi.cc: #include nonposix.h.
11317 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
11319 (main) [SET_BINARY]: Switch stdout to binary mode.
11320 [_MSC_VER]: Remove an explicit call to _setmode.
11322 * src/include/nonposix.h: New file.
11324 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
11325 operation when building with DJGPP.
11326 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
11327 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
11330 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
11332 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
11333 etc. can include a semi-colon on DOS/Windows.
11334 (depend.temp): Use depend1.temp instead of depend.temp1, to
11335 prevent files from overerwiting each other on 8+3 filesystems.
11337 * gendef.sh (t): Change definition to work with DOS/Windows.
11339 doc/groff.texinfo: Apart of some typo corrections, I also changed
11340 some index entris, to make them more non-ambiguous, and also put
11341 @ignore around some parts that are not yet written, to allow the
11342 Info output be readable.
11344 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
11346 Replaced specific checks for function declarations with a generic
11347 routine taken from GNU bfd.
11349 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
11350 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
11351 * configure.in: Use it.
11352 * src/devices/grolbp/lbp.cc, src/include/lib.h,
11353 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
11354 src/roff/groff/groff.cc: Use it.
11355 * Makefile.in, configure: Updated.
11357 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
11359 * src/devides/grolbp/lbp.h: Removed unused variables.
11361 2000-05-31 Keith Thompson <kst@sdsc.edu>
11363 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
11366 2000-05-31 Werner LEMBERG <wl@gnu.org>
11368 * aclocal.m4 (GROFF_SRAND): New function to test the return value
11369 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
11370 * configure.in: Use it.
11371 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
11372 * configure, Makefile.in: Updated.
11374 * configure.in: Add test for strncasecmp().
11375 * src/include/lib.h: Use it.
11377 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
11379 * src/preproc/grn/Makefile.sub: Add MLIB.
11381 2000-05-29 Nix <nix@esperi.demon.co.uk>
11383 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
11385 2000-05-29 Werner LEMBERG <wl@gnu.org>
11387 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
11389 * PROBLEMS: Small update.
11391 * src/devices/grolbp/lbp.cc: Various small fixes.
11393 2000-05-28 Keith Thompson <kst@sdsc.edu>
11395 * src/roff/nroff/nroff.sh: Fix main loop syntax.
11397 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
11399 2000-05-25 Werner LEMBERG <wl@gnu.org>
11401 * man/roff.man: Removed unused macro.
11403 2000-05-24 Werner LEMBERG <wl@gnu.org>
11405 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
11406 This is needed e.g. if you do
11407 `make distclean; ./configure; make dist'.
11409 Version 1.16 released
11410 =====================
11412 2000-05-23 Werner LEMBERG <wl@gnu.org>
11414 Adding font CWI (constant width italic) to devdvi.
11416 * font/devdvi/CWI: New file.
11417 * font/devdvi/generate/Makefile: Add generating rule.
11418 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11419 tmac/tmac.dvi: Use it.
11420 * NEWS: Announce it.
11422 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11423 * font/devlj4/generate/Makefile: Cosmetic changes only.
11425 * man/groff.man: Removed most of the redundant description of
11426 special characters (which is in groff_char.man). Added font
11427 translation CB->CR for devdvi. Other minor fixes.
11429 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11430 (registered) symbols.
11432 2000-05-22 Werner LEMBERG <wl@gnu.org>
11434 * doc/Makefile: Added rule for creating info files.
11436 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
11438 * font/devdvi/generate/Makefile: Fixed dependencies.
11440 * font/devps/*: Regenerated. Heavy changes for Bookman and
11441 NewCentury Schoolbook!
11442 * font/devps/generate/afmname: Will now run with GNU awk.
11443 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11444 * font/devps/generate/Makefile: Cosmetic changes only.
11446 2000-05-21 Werner LEMBERG <wl@gnu.org>
11448 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11449 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
11450 `.SS' now produces a heading with a smaller size than `.SH'.
11451 Completely formatted.
11452 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11454 * man/groff.man: Improved table appearance. Use of `eo' request
11455 to reduce number of doubled backslashes in macro definitions.
11456 Replacing `\e' with `\(rs'. Other minor fixes.
11458 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11459 to have correct line number.
11461 * INSTALL: Small improvement.
11463 2000-05-20 Bernd Warken <bwarken@mayn.de>
11465 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11468 2000-05-19 Bernd Warken <bwarken@mayn.de>
11470 * man/groff.man: Complete update (with a lot of corrections by WL).
11472 2000-05-18 Werner LEMBERG <wl@gnu.org>
11474 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11476 * font/*/*: Implement it.
11477 * man/groff_char.man, NEWS: Document it.
11479 * src/include/unix.h: Removed. It isn't used.
11481 * doc/groff.texinfo: Slight improvements.
11483 2000-05-17 Werner LEMBERG <wl@gnu.org>
11485 * README, win32-diffs: Small fixes and improvements.
11487 2000-05-16 Werner LEMBERG <wl@gnu.org>
11489 * FDL: New file (the Free Documentation License version 1.1).
11491 * doc/groff.texinfo: Added many start-up values for gtroff.
11492 Some structural improvements of the source code.
11494 2000-05-15 Werner LEMBERG <wl@gnu.org>
11496 * src/roff/troff/input.cc: Added small comment about troffrc-end.
11497 * src/roff/troff/troff.man: Added info about troffrc-end.
11499 2000-05-14 Werner LEMBERG <wl@gnu.org>
11501 * Makefile.in (EXTRADIRS): Fix typos.
11502 (dist): Handle deletion of old .tar.gz file correctly.
11503 (DISTDIRS): Include all tty output devices.
11505 * doc/groff.texinfo: Adding more cross references; countless other
11508 2000-05-13 Werner LEMBERG <wl@gnu.org>
11510 * MORE.STUFF: Added Robert Marks's utilities.
11512 2000-05-12 Werner LEMBERG <wl@gnu.org>
11514 Added win32 port contributed by Blake McBride
11515 <blake@florida-software.com>.
11517 * README.WIN32, win32-diffs: New files.
11520 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11521 (tmove, tmove2): Added parentheses to avoid compiler warnings.
11522 (change): Removed unused variables.
11524 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11525 (savebounds): Changed return value from `int' to `void'.
11526 * src/preproc/grn/hdb.cc: Ditto.
11528 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11529 final backslash in comment to avoid compiler warning.
11531 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11533 * doc/groff.texinfo: More fixes.
11535 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
11537 * tmac/tmac.doc: Documentation fix.
11539 2000-05-11 Werner LEMBERG <wl@gnu.org>
11541 * doc/groff.texinfo: Reading the source code shows up a lot of
11542 omissions and incorrect data... More conversion to @Deffn macros.
11544 2000-05-10 Werner LEMBERG <wl@gnu.org>
11546 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11549 * src/roff/troff/request.h: Removing unused `no_break_flag'.
11551 2000-05-09 Werner LEMBERG <wl@gnu.org>
11553 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11556 * doc/groff.texinfo: Extended history section. More conversion to
11557 @Deffn macros. More .tr documentation.
11559 2000-05-07 Werner LEMBERG <wl@gnu.org>
11561 * doc/groff.texinfo: Completed tab section. Added info about
11564 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
11566 * PROBLEMS: Describe configure script fix for OS/390 Unix.
11568 2000-05-05 Werner LEMBERG <wl@gnu.org>
11570 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11572 * NEWS: Document it.
11574 * man/troff.man: Minor optical improvements.
11576 2000-05-03 Werner LEMBERG <wl@gnu.org>
11578 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11580 * font/*/*: Implement it.
11581 * man/groff_char.man, NEWS: Document it.
11583 2000-05-02 Werner LEMBERG <wl@gnu.org>
11585 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11587 * NEWS: Document the three new man pages.
11589 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11590 * configure: Updated.
11592 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11594 2000-05-01 Werner LEMBERG <wl@gnu.org>
11596 Added grap support to grog.
11598 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11599 * src/roff/grog/grog.man: Document it.
11601 * doc/groff.texinfo, NEWS: Add info about grap support.
11603 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11604 (with slight fixes by me).
11606 * tmac/groff_tmac.man: New file documenting tmac mechanism.
11607 * tmac/Makefile.sub: Add groff_tmac.man.
11608 * man/roff.man: New file giving overview of roff system.
11609 * man/troff.man: A short reference of troff.
11610 * man/Makefile.sub: Add roff.man and troff.man.
11612 2000-04-30 Werner LEMBERG <wl@gnu.org>
11614 Added grap support to groff.
11616 * src/roff/groff/groff.cc: Implement it.
11617 * src/roff/groff/groff.man: Document it.
11619 * src/devices/grotty/grotty.man: Add cp1047 device.
11620 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11622 * src/roff/groff/groff.man: Ditto.
11623 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11624 * doc/groff.texinfo: Ditto.
11626 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11629 2000-04-29 Werner LEMBERG <wl@gnu.org>
11631 * man/groff_char.man: Add `pc' glyph.
11632 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11633 * tmac/tmac.tty: Add `pc' glyph.
11634 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
11635 we use cp1047 output device.
11637 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11638 there are still hardcoded latin1->unicode values in utf8's font
11640 * configure: Updated.
11641 * NEWS: Minor clarification. Updated.
11643 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
11646 2000-04-28 Werner LEMBERG <wl@gnu.org>
11648 Adding EBCDIC code page 1047.
11650 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11651 font/devcp1047/DESC.proto: New files.
11653 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11654 either ascii/latin1 or cp1047.
11655 * Makefile.in: Use it.
11656 * configure: Updated.
11658 Replacing and/or adding `md' (mathdot) glyph with `pc'
11659 (periodcentered) in all text fonts.
11661 * font/*/*: Change it.
11663 2000-04-27 Werner LEMBERG <wl@gnu.org>
11665 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11667 * configure.in: Add check for strings.h.
11668 * src/include/driver.h: Use HAVE_STRINGS_H.
11669 * src/devices/grolbp/lpb.cc: Remove string.h.
11671 * src/include/groff-getopt.h: New file. It will be used instead of
11672 getopt.h (to be included in lib.h) to avoid endless problems with
11673 picky C++ compilers.
11674 * src/include/lib.h: Use groff-getopt.h.
11675 * src/include/Makefile.sub: Updated.
11677 * configure: Updated.
11678 * Makefile.in: Updated.
11680 * NEWS: Mention EBCDIC support.
11682 2000-04-26 Werner LEMBERG <wl@gnu.org>
11684 * TODO: Some additions.
11686 2000-04-25 Werner LEMBERG <wl@gnu.org>
11688 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11691 2000-04-23 Werner LEMBERG <wl@gnu.org>
11693 * src/roff/troff/troff.man: Minor fixes.
11695 2000-04-22 Werner LEMBERG <wl@gnu.org>
11697 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11698 `.T' string register and the incompatible definition of the `.T'
11699 number register (compared to Unix troff).
11701 * man/groff_char.man: Add some missing characters.
11702 * font/devutf8/NOTES: Update.
11704 2000-04-21 Werner LEMBERG <wl@gnu.org>
11706 * src/include/htmlindicate.h, src/include/lib.h,
11707 src/include/posix.h: Fix copyright.
11709 * src/include/Makefile.sub: Update.
11711 2000-04-20 Werner LEMBERG <wl@gnu.org>
11713 * src/roff/troff/input.cc (input_char_description): Removing
11714 superfluous space char.
11716 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11718 * doc/groff.texinfo: Document EBCDIC.
11720 2000-04-19 Werner LEMBERG <wl@gnu.org>
11722 Introducing `shc' as the glyph name for the soft hyphen character.
11724 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11725 font/devlatin1/R.proto: Use it.
11729 2000-04-18 Werner LEMBERG <wl@gnu.org>
11731 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11732 dependency on ASCII order.
11734 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
11736 * src/libs/libgroff/illegal.c: Added EBCDIC table.
11737 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11739 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11740 to increase portability.
11742 2000-04-15 Werner LEMBERG <wl@gnu.org>
11744 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11745 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11746 the generic `\n' if under OS/390 Unix.
11748 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11750 * configure: Regenerated.
11752 2000-04-14 Werner LEMBERG <wl@gnu.org>
11754 * doc/groff.texinfo: More conversions to @Deffn.
11756 2000-04-12 Werner LEMBERG <wl@gnu.org>
11758 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11761 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11763 2000-04-10 Werner LEMBERG <wl@gnu.org>
11765 * doc/groff.texinfo: More conversions to @Deffn.
11767 2000-04-08 Werner LEMBERG <wl@gnu.org>
11769 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11770 Updated to latest version (glibc 2.1.3).
11772 2000-04-07 Werner LEMBERG <wl@gnu.org>
11774 * doc/Makefile (clean): Include more index files.
11775 Add rule texinfo->dvi.
11777 2000-04-05 Werner LEMBERG <wl@gnu.org>
11779 * doc/groff.texinfo: Added new index `op' for operators. More
11780 info on end of sentence characters. More use of @Deffn.
11782 2000-03-30 Werner LEMBERG <wl@gnu.org>
11784 * */*.man: Adding a note that a whitespace can be inserted between
11785 a command line option and its parameter -- we are using GNU getopt.
11787 * src/roff/groff/groff.man: Add example of `-m mandoc'.
11789 2000-03-28 Werner LEMBERG <wl@gnu.org>
11791 Correct anachronism of calling the man macro file with `-man'
11792 instead of `-m man' etc.
11794 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11795 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11796 load tmac.<package>.
11798 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
11802 * doc/groff.texinfo: Updated.
11804 * tmac/groff_man.man: Copyright added.
11806 2000-03-27 Werner LEMBERG <wl@gnu.org>
11808 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11809 typeset the request resp. escape name with a tt font -- due to a
11810 bug in texinfo.tex it is necessary to use the `-e' switch with
11813 Improving info about usage of groff units.
11817 2000-03-20 Werner LEMBERG <wl@gnu.org>
11819 * doc/groff.texinfo: Added section about man macro package
11820 (I've basically taken groff_man.man). Introducing new indices `ma'
11821 for macros/strings and `gl' for glyph names. Other minor fixes.
11823 * tmac/groff_man.man: Fixed some typos.
11825 2000-03-19 Werner LEMBERG <wl@gnu.org>
11827 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11830 * doc/texinfo.tex: New file.
11832 2000-03-18 Werner LEMBERG <wl@gnu.org>
11834 * doc/groff.texinfo: Improved section on number registers. Other
11837 2000-03-16 Werner LEMBERG <wl@gnu.org>
11839 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
11842 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11843 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11844 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11845 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11847 * src/preproc/grn/grn.man: Better synopsis; added copyright.
11849 * src/roff/grog/grog.man: Updated copyright date.
11851 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
11853 * configure.in: Added test for strdup.
11855 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11858 Replaced dynamic allocation of arrays `[...]' with `new' operator.
11862 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
11864 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11866 2000-03-11 Werner LEMBERG <wl@gnu.org>
11868 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11870 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11871 * src/include/lib.h: Remove some spaces.
11873 2000-03-10 Werner LEMBERG <wl@gnu.org>
11875 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11876 initializers from arguments (some compilers don't like this).
11878 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
11880 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11881 used by pic and eqn to tell grohtml where the graphic regions start
11883 * src/libs/libgroff/Makefile.sub: Use it.
11884 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11885 graphic_start() and graphic_end() from htmlindicate.cc.
11887 2000-03-09 Werner LEMBERG <wl@gnu.org>
11889 * tmac/tmac.safer: Will now work correctly in compatibility mode.
11890 * tmac/groff_man.man: More fixes.
11892 2000-03-08 Werner LEMBERG <wl@gnu.org>
11894 * doc/Makefile: Added texput.log to the `clean' target.
11895 * doc/groff.texinfo: Added info about delimiters for escapes.
11897 2000-03-08 Bernd Warken <bwarken@mayn.de>
11899 * src/preproc/pic/pic.man: Add info on conversion of pic images to
11900 other graphic formats.
11902 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
11904 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11905 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11906 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11909 2000-03-07 Werner LEMBERG <wl@gnu.org>
11911 * doc/groff.texinfo: Spelling fixes.
11913 2000-03-06 Werner LEMBERG <wl@gnu.org>
11915 * tmac/groff_man.man: Completely revised to cover everything in
11918 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11919 Other minor fixings.
11920 * src/roff/troff/env.cc (environment_copy): Improve error message and
11922 * src/roff/troff/TODO: Updated.
11924 * doc/Makefile: Bug fixes -- this is still provisional, though...
11926 * tmac/eqnrc: Small fixes.
11928 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
11930 Adding a request `evc' to copy environments.
11932 * src/roff/troff/env.cc (environment::copy, environment_copy):
11934 * src/roff/troff/env.h: Add prototype.
11936 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
11938 Adding strsep() -- Solaris 8 doesn't have it.
11940 * configure.in: Test it.
11941 * src/devices/grolbp/lbp.cc: Add code.
11943 2000-03-05 Werner LEMBERG <wl@gnu.org>
11945 * src/roff/troff/div.cc (macro_diversion::output,
11946 top_level_diversion::output): Fixing an incompatibility with
11947 original troff: \x'0' updates the .a register also. Thanks to
11948 <Andries.Brouwer@cwi.nl> for pointing this out.
11949 * doc/groff.texinfo: Document it.
11951 * Makefile.in: Create Makefile.dep if necessary before calling the
11952 submake process to avoid warning about nonexistent file.
11954 * NEWS, PROJECTS: Updated.
11956 2000-03-04 Werner LEMBERG <wl@gnu.org>
11958 * tmac/troffrc: Add tmac.lbp.
11960 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
11962 * tmac/tmac.lbp: New file.
11963 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11966 2000-03-03 Werner LEMBERG <wl@gnu.org>
11968 * Makefile.in: Fixing $(subdir).
11970 * README, NEWS: Small fixes.
11972 * test-groff: Adding path to grolbp.
11974 * configure.in: The (new) file src/xditview/Imakefile.in will be
11975 also configured -- it is now possible to build gxditview in a
11976 directory different from $srcdir.
11978 2000-03-02 Blake McBride <blake@florida-software.com>
11980 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11982 * MORE.STUFF: Added website of bell labs and info about plot2dev.
11984 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
11986 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11989 2000-02-29 Werner LEMBERG <wl@gnu.org>
11991 Adding GNU getopt to the groff distribution.
11993 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11995 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11996 * aclocal.a4: Remove GROFF_GETOPT function.
11997 * configure.in, Makefile.in, PROBLEMS: Update.
11998 * src/include/lib.h: Replace getopt tests with getopt.h.
11999 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
12001 * doc/groff.texinfo: Further checking/updating. Adding more index
12004 * man/groff_out.man: Fix nroff mode activation (for emacs).
12005 * man/groff_font.man: Add missing ligature.
12007 2000-02-28 Werner LEMBERG <wl@gnu.org>
12009 * doc/groff.texinfo: Further checking/updating. Adding more index
12012 * src/devices/grolbp/grolbp.man: Added a comment line at the
12013 beginning of the file (similar to shell scripts) which indicates
12014 that `tbl' should be used as a preprocessor.
12016 2000-02-27 Blake McBride <blake@florida-software.com>
12018 Adapting groff to MS Visual C++ 6.0 compiler (tested with
12019 Windows NT 4.0). Uses _MSC_VER define where necessary.
12021 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
12022 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
12023 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
12024 src/include/lib.h, src/libs/libgroff/errarg.cc,
12025 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
12026 src/preproc/refer/label.y, src/preproc/refer/label.cc,
12027 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
12028 src/roff/troff/div.cc, src/roff/troff/env.cc,
12029 src/roff/troff/input.cc, src/roff/troff/node.cc,
12030 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
12031 if_to_a() to avoid name clashes.
12032 * src/include/posix.h: Don't use unistd.h.
12033 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
12034 clause for integrating non-Unix xtmpfile() code.
12035 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
12036 structure; use "rt" for popen() in pipe_source(); add getpid()
12038 * src/roff/troff/node.cc: Use special versions of popen() in
12039 real_output_file() and pclose() in ~real_output_file().
12041 2000-02-27 Werner LEMBERG <wl@gnu.org>
12043 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
12044 LBP-8 series laser printers). This code has been contributed by
12045 Francisco Andrés Verdú <pandres@dragonet.es>.
12047 * src/devices/grolbp/*: The grolbp output device.
12048 * font/devlpb/*: The font description files.
12049 * Makefile.in: Add grolpb and devlbp subdirectories.
12051 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
12052 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
12055 * doc/groff.texinfo: Further checking/updating. Adding more index
12060 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
12062 * man/groff_font.man: Adding info about obsolete DESC keywords.
12063 * src/devices/grolj4/grolj4.man: Documenting additional DESC
12066 2000-02-26 Werner LEMBERG <wl@gnu.org>
12068 * src/preproc/grn/grn.man: Added info about the gremlin file format
12069 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
12071 2000-02-25 Werner LEMBERG <wl@gnu.org>
12073 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
12074 friends to be non-integer.
12076 * src/preproc/grn/grn.man: Document it.
12078 * doc/groff.texinfo: Further checking/updating. Adding more index
12081 2000-02-24 Werner LEMBERG <wl@gnu.org>
12083 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
12084 line thicknesses to be integer multiples of this value.
12086 * src/preproc/grn/grn.man: Commenting out the -s option -- the
12087 corresponding code doesn't work (yet).
12089 * doc/groff.texinfo: Further checking/updating. Adding more index
12092 2000-02-23 Werner LEMBERG <wl@gnu.org>
12094 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
12095 specify line thickness instead of base units. The new default
12096 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
12097 thick lines respectively.
12099 Removed unused variable `prevval'.
12101 * src/preproc/grn/grn.man: Updated.
12103 2000-02-22 Werner LEMBERG <wl@gnu.org>
12105 * src/preproc/grn/main.cc: Slight formatting.
12107 * src/roff/groff/groff.man: Formatting fix.
12108 * src/preproc/grn/grn.man: Ditto.
12110 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
12112 * doc/groff.texinfo: Further checking/updating.
12114 2000-02-21 Werner LEMBERG <wl@gnu.org>
12116 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
12118 * test-groff: Added grn subdir to path.
12120 * doc/groff.texinfo: Some restructing and other small improvements.
12122 * src/roff/groff/groff.cc (help): Fixed info string.
12124 2000-02-20 Werner LEMBERG <wl@gnu.org>
12126 * doc/meref.me: Fix description of .GS request.
12128 * src/roff/troff/troff.man: Fixing typo.
12130 Adding the `grn' preprocessor for gremlin graphic files.
12132 * src/preproc/grn/*: This is the Berkeley distribution written by
12133 David Slattengren and Barry Roitblat, adapted to groff by Daniel
12134 Senderowicz and Werner Lemberg.
12136 * doc/grnexampl.{me,g}: A sample for grn.
12138 * Makefile.in: Added subdirectory entry for grn.
12140 * src/roff/groff/groff.cc: Added support for grn. It can be now
12141 called with the switch `-g'.
12143 * src/roff/groff/groff.man: Updated.
12145 * src/roff/grog/grog.{man,pl,sh}: Updated.
12149 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
12151 * src/include/lib.h: Added xtmptemplate and made xtmpfile
12152 parametrically polymorphic.
12154 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
12155 and the alterations to xtmpfile.
12156 xtmpfile can be requested to return the filename created
12157 and asked not to unlink the temp file. The default behaviour
12158 if parameters are absent is exactly the same as before.
12160 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
12162 A new request `length' is available which returns the length of a
12163 string in a number register:
12165 * src/roff/troff/input.cc (length_macro): Implement it.
12166 * src/roff/troff/input.cc (init_input_requests): Register it.
12168 2000-02-11 Werner LEMBERG <wl@gnu.org>
12170 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
12171 of the `substring' request.
12173 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
12176 * src/roff/troff/TODO, NEWS: Updated.
12178 2000-02-09 Werner LEMBERG <wl@gnu.org>
12180 * src/roff/groff/groff.man: Added an example.
12182 2000-02-06 Werner LEMBERG <wl@gnu.org>
12184 I've considerably modified the directory structure of the
12185 distribution to get a more vertical layout. For example, the number
12186 of top level directories has been reduced from 42 to 6.
12188 As a consequence, many changes, especially to the makefiles, were
12191 * The makefile variables `top_builddir' and `top_srcdir' have been
12192 introduced. Virtually all relative paths have been replaced with
12193 absolute ones using these two variables.
12195 * Dependencies (in the files `Makefile.dep') are no longer part of
12196 the distribution. Instead, they are created during a `make install'
12197 in the build directory.
12199 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
12200 make `top_srcdir' and `top_builddir' absolute.
12202 Some other changes:
12204 * Man pages now depend on the files `VERSION' and `REVISION'.
12206 * The added shell script `mkinstalldirs' will replace `mkdir' in
12209 * VERSION: Version number increased to 1.16.
12211 2000-02-04 Werner LEMBERG <wl@gnu.org>
12213 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
12215 * Makefile.in: Removed $(tmac_m) since it is no longer needed
12216 (after an update of the mm stuff).
12218 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
12220 2000-02-03 Werner LEMBERG <wl@gnu.org>
12222 The .psbb request will now also accept Mac PS images (i.e. using LF
12223 as the EOL character).
12225 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
12226 (with slight modifications).
12227 * troff/input.cc (do_ps_file): Use it.
12229 * test-groff: Add grohtml and grolj4 output devices to PATH.
12231 2000-01-30 Werner LEMBERG <wl@gnu.org>
12233 * NEWS, MORE.STUFF: Updated.
12235 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
12237 Add the `srand' command to pic.
12239 * pic/lex.cc, pic/pic.y: Implement it.
12240 * pic/pic.man: Document it.
12241 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
12243 2000-01-30 Werner LEMBERG <wl@gnu.org>
12245 Add a new request `.psbb'. This does exactly what the external
12246 program psbb did. It scans a PostScript image file for a
12247 %%BoundingBox comment and extracts the bounding box values (in
12248 PostScript units) which are then stored in the four new (read-only)
12249 number registers `llx', `lly', `urx', and `ury'.
12251 This will allow the usage of the .PSPIC macro without worrying
12252 about unsafe behaviour of groff, i.e., it will work without the
12253 `-U' switch of groff.
12255 * troff/input.cc: Implement it.
12256 * tmac/tmac.pspic: Use it.
12257 * troff/troff.man, grops/grops.man, NEWS: Document it.
12258 * psbb/*, Makefile.in: Remove it since it is no longer needed.
12260 This is bloody C code simply adapted from psbb.c! Any improvements
12263 2000-01-29 Werner LEMBERG <wl@gnu.org>
12265 * man/groff_font.man: Minor clarifications.
12269 2000-01-28 Werner LEMBERG <wl@gnu.org>
12271 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
12273 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
12275 * man/groff_font.man: Brought up to date regarding tcommand
12277 * libgroff/font.cc: Handle everything after `--' as a comment
12279 * devps/*: Added comment delimiter inside devps font files.
12281 2000-01-28 Werner LEMBERG <wl@gnu.org>
12283 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
12284 \fC...\fP (which now works as expected).
12286 * troff/troff.man: Fix typo.
12288 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
12290 Completed the pass_filenames implementation in troff.
12292 * libdriver/input.cc: Will read the new `F' tcommand.
12293 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
12294 * troff/input.cc: Use it.
12296 2000-01-26 Werner LEMBERG <wl@gnu.org>
12298 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
12299 font will now be updated even if an invalid font is selected.
12301 2000-01-24 Werner LEMBERG <wl@gnu.org>
12303 * doc/homepage.ms: Updated for new tmac.arkup.
12305 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
12307 * tmac/tmac.arkup: Cleanup.
12309 Added `\&' to .HTML macro to `leave vertical mode', so to say.
12311 Removed obsolete .LINK macro completely.
12313 The macros .URL, .FTP, and .MAILTO now accept a third argument which
12314 will be immediately appended to the second argument (to be used with
12315 punctuation, for example).
12317 Disabled .CDFTP macro temporarily for security reasons.
12319 * tmac/groff_markup.man: Complete revision for latest changes in
12320 tmac.arkup -- note that it does not yet format correctly with
12323 2000-01-23 Bruno Haible <haible@clisp.cons.org>
12325 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
12326 * devutf8/R.proto: Add mappings for wp, lh, rh.
12327 * devutf8/NOTES: Updated.
12329 2000-01-23 Werner LEMBERG <wl@gnu.org>
12331 * doc/groff.texinfo: Updated version/copyright info.
12333 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
12335 Added support for two new directives in device descriptions:
12336 `pass_filenames' (to pass the input file name to the output device)
12337 and `use_charnames_in_special' (to support e.g. accented characters
12338 in the `X' request).
12340 * include/font.h, troff/charinfo.h: Declare it.
12342 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
12344 * devhtml/DESC: Use it.
12346 * troff/input.cc: New function encoded_char.
12348 * troff/token.h: Add test for `specialness'.
12350 2000-01-21 Werner LEMBERG <wl@gnu.org>
12352 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
12353 mistake from the list of files to be installed.
12355 2000-01-18 Werner LEMBERG <wl@gnu.org>
12357 * README: Added info how to apply patches.
12359 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
12361 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
12363 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
12365 * troff/input.cc: Add support for troffrc-end.
12367 * tbl/main.cc: Altered to issue table-start and table-end special
12368 characters if using the html device.
12370 * devhtml/*: Modified font files to incorporate html encoding of
12373 * tmac/groff_markup.man: New file documenting tmac.arkup.
12375 * tmac/troffrc-end: New file. This is invoked after all user
12376 specified macros. Currently used by the html device to include
12377 tmac.html. Thus no need for users to specify -mhtml anymore.
12379 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
12380 (MAN7): Add groff_markup.man.
12382 * tmac/tmac.an, tmac/tmac.html: Small html updates.
12384 * tmac/troffrc: tmac.arkup will now be called for the html device.
12386 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
12387 extra device specific information about fonts.
12389 * doc/homepage.ms: New file. It is an example how an HTML home page
12390 could look like with grohtml.
12392 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
12394 2000-01-12 Bruno Haible <haible@clisp.cons.org>
12396 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
12399 * devutf8/NOTES: Updated.
12401 2000-01-08 Bruno Haible <haible@clisp.cons.org>
12403 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
12404 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12405 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12406 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12407 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12408 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12409 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12410 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12413 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12415 2000-01-12 Fabrizio Polacco <fab@prosa.it>
12417 grolj4: Paper size will be searched case-insensitively.
12419 * include/lib.h: Add check for strcasecmp().
12420 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12421 * configure.in: Check for strcasecmp().
12423 2000-01-11 Werner LEMBERG <wl@gnu.org>
12425 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12428 2000-01-10 Werner LEMBERG <wl@gnu.org>
12430 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12433 Add a new read-only register, `.Y', which contains the groff
12436 * troff/input.cc (init_input_requests): Define it.
12437 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12438 * doc/groff.texinfo, troff/troff.man: Document it.
12440 * libgroff/Makefile.sub (version.cc): Add definition of
12441 `Version_string[]', consisting of `<major>.<minor>.<revision>'
12442 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12443 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12444 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12445 troff/input.cc, pfbtops/pfbtops.c: Use it.
12447 2000-01-10 Fabrizio Polacco <fab@prosa.it>
12449 Add a revision scheme to the groff package.
12451 * REVISION: New file.
12452 * libgroff/Makefile.sub (version.cc): Use it to define
12453 `revision_string[]'.
12454 * grops/psrm.cc: Use revision_string (converted to an unsigned
12455 integer) in constructor of resource_manager.
12457 2000-01-10 Bruno Haible <haible@clisp.cons.org>
12459 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12461 * Makefile.in (DEVDIRS): Add devutf8.
12462 * grotty/tty.cc: Include device.h.
12463 (glyph): Change type of `code' to `unsigned int'.
12464 (tty_printer): New field is_utf8. Constructor takes device argument.
12465 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12466 (tty_printer::add_char): Change type of first arg to `unsigned int'.
12467 (tty_printer::put_char): New function.
12468 (tty_printer::end_page): Use put_char() instead of ::putchar().
12469 (make_printer): Pass device to tty_printer constructor.
12470 * nroff.sh: Determine default device by calling 'locale'. As a
12471 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12472 Recognize UTF-8 locales.
12473 * tmac/eqnrc: Recognize utf8 like latin1.
12474 * tmac/troffrc: Device utf8 needs tmac.tty.
12476 2000-01-07 Werner LEMBERG <wl@gnu.org>
12478 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12480 2000-01-07 Paul Eggert <eggert@twinsun.com>
12482 Add a new predefined writeable number register, `year',
12483 which contains the current year.
12485 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12486 * tmac/tmac.s: Use it.
12487 * troff/input.cc (init_registers): Initialize it.
12489 2000-01-06 Werner LEMBERG <wl@gnu.org>
12491 * PROBLEMS: Fixed typo.
12493 2000-01-04 Paul Eggert <eggert@twinsun.com>
12495 * PROBLEMS: Add Y2k advice for the yr number register.
12497 2000-01-03 Paul Eggert <eggert@twinsun.com>
12499 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12501 2000-01-02 Werner LEMBERG <wl@gnu.org>
12503 * tmac/tmac.arkup: Slight modification of macros to provide better
12504 appearance for non-HTML formats.
12506 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
12508 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12509 does not automatically translate to malloc(n) on all OSes
12510 (e.g., SunOS) so do it explicitly. Also, check the returned
12513 2000-01-01 Werner LEMBERG <wl@gnu.org>
12515 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
12517 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12518 expects this variable
12520 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
12522 * doc/Makefile: Added instructions to create HTML and text
12523 versions of some files.
12525 1999-12-31 Werner LEMBERG <wl@gnu.org>
12527 * Updated INSTALL.gen.
12529 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12530 better resp. correctly with non-HTML devices.
12532 Version 1.15 released
12533 =====================
12535 1999-12-28 Werner LEMBERG <wl@gnu.org>
12537 * NEWS, VERSION: Changed to 1.15
12539 1999-12-27 Paul Eggert <eggert@twinsun.com>
12541 * nroff/nroff.man: -S is safer, not safe.
12543 * groff/groff.cc (main): Use `safer', not `safe', in variable
12544 names. This does not change the behavior.
12546 * troff/input.cc (main): Likewise.
12548 * nroff/nroff.sh: Likewise.
12550 * troff/input.cc (prepend_string): New function.
12551 (main): Prepend -msafer, so that we check macro libraries for
12554 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12556 Version 1.14 released
12557 =====================
12559 1999-12-26 Werner LEMBERG <wl@gnu.org>
12561 * NEWS, VERSION: Changed to 1.14.
12563 1999-12-24 Werner LEMBERG <wl@gnu.org>
12565 * refer/refer.cc: Fixing the last fix.
12567 Version 1.13 released
12568 =====================
12570 1999-12-23 Werner LEMBERG <wl@gnu.org>
12572 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12577 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12579 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12580 document conventions, the version number must be a real.
12582 Version 1.12.1 released
12583 =======================
12585 1999-12-22 Werner LEMBERG <wl@gnu.org>
12587 * VERSION: Changed to 1.12.1.
12589 1999-12-22 Alan Rooks <arooks@istar.ca>
12591 * refer/refer.cc (do_file): Slight modification to satisfy the
12592 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12595 1999-12-20 Werner LEMBERG <wl@gnu.org>
12597 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12600 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12601 list of unsafe requests.
12603 * pic/pic.man: Fixed a typo.
12605 * man/groff_out.man: Fixed a typo.
12607 1999-12-18 Werner LEMBERG <wl@gnu.org>
12609 * Makefile.in: Doc fixes.
12611 1999-12-17 Fabrizio Polacco <fab@prosa.it>
12613 * groff/groff.cc: Missing `U' option added to getopt().
12615 * troff/troff.man: Missing `U' option added to synopsis.
12617 Version 1.12 released
12618 =====================
12620 1999-12-14 Werner LEMBERG <wl@gnu.org>
12622 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12625 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12626 with the more appropriate terms `safer' and `unsafe'.
12628 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12629 sys_nerr and sys_errlist[].
12631 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12633 * pic/pic.y, pic/pic.cc: Added check for fmod().
12635 1999-12-13 Werner LEMBERG <wl@gnu.org>
12637 * VERSION: Changed to 1.12.
12639 Here some patches from various sources; most of them taken from
12640 the Debian distribution.
12642 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12643 tmac/Makefile.sub: New files copied directly from the NetBSD
12644 distribution. Probably, some additional adaptation later on is
12647 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12648 of unsafe requests.
12650 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12651 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12652 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
12653 (`-S') is now the default.
12655 * README, NEWS: Updated.
12657 1999-12-09 Werner LEMBERG <wl@gnu.org>
12659 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12661 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12663 1999-12-06 Werner LEMBERG <wl@gnu.org>
12665 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12666 grief than relief today. Additionally, it is against the GNU
12669 * configure: Recreated.
12671 1999-12-05 Werner LEMBERG <wl@gnu.org>
12673 * configure.in: Added GROFF_LIBM.
12675 * configure: Recreated.
12677 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12680 * Makefile.in: Added definition of $(LIBM).
12682 * Makefile.comm (LIBM): Removed.
12684 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12686 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
12688 * doc/Makefile: Added rule for generation pic.html.
12690 (clean): Files produced by grohtml will be removed also.
12692 * doc/pic.ms: Small fix.
12694 * tmac/tmac.html: Fixed suppression of headers.
12696 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
12698 * tmac/tmac.html: Fixing horizontal arrows.
12700 Turning off hyphenation.
12702 * tmac/tmac.an: Improved support for grohtml; better indentation,
12703 no footers/headers.
12705 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
12707 * tmac/tmac.arkup: Added CDFTP macro
12709 * tmac/tmac.html: All headers are turned off for ms, me, and mm
12712 * tmac/troffrc: Some additions for HTML stuff.
12714 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
12716 * tmac/tmac.html: Small changes.
12718 1999-09-26 Werner LEMBERG <wl@gnu.org>
12720 * doc/groff.texinfo: Minor fixes.
12722 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
12724 * devhtml/TR: Changed spacewidth to 3.
12726 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12728 * tmac/tmac.html: Moved markup macros to tmap.arkup.
12730 * tmac/tmac.arkup: New file.
12732 * grohtml/ChangeLog: New file.
12734 1999-09-16 Werner LEMBERG <wl@gnu.org>
12736 * doc/groff.texinfo (Common Features): Added Copying chapter.
12737 Changed format to @smallbook.
12739 1999-09-15 Werner LEMBERG <wl@gnu.org>
12741 * NEWS: Added info about groff.texinfo.
12743 * doc/groff.texinfo: Will now compile (using texi2dvi) without
12746 1999-09-14 Werner LEMBERG <wl@gnu.org>
12748 * groff/groff.man: More updates.
12750 1999-09-13 Werner LEMBERG <wl@gnu.org>
12752 * doc/groff.texinfo: New file. This manual is still very
12753 rudimentary. It has been originally contributed by Trent
12754 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12757 * INSTALL: Added information about the `doc' subdir
12759 * troff/troff.man: Minor fixes.
12761 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12764 * troff/input.cc (usage): Added missing `-ffam' to usage message.
12766 * Makefile.in (dist): groff-$(version).tar.gz must be removed
12767 also, otherwise it is included itself in another call of `make
12770 * groff/groff.cc (synopsis): Removed superfluous space.
12772 * PROJECTS, PROBLEMS, NEWS: Updated.
12774 * VERSION: Updated to 1.12beta.
12776 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
12778 * README: Updated: Included documentation about CVS repository,
12779 mailing lists, and daily snapshots.
12781 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12783 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
12785 * tmac/tmac.an: If the tag didn't fit into the space that the
12786 macro `TP' specifies, the rest of the tag went into the space for
12789 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
12791 * grolj4/lj4.cc: Added duplex printing (option `-d').
12793 * grolj4/grolj4.man: Document duplex printing.
12795 1999-09-12 Werner LEMBERG <wl@gnu.org>
12797 * doc/Makefile (pic.ps): Fixed rule which caused problems with
12798 non-GNUish sed programs.
12800 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12803 * configure.in (LIBS): Added `-lc'
12805 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12807 * pic/tex.cc (solid_arc): Casting M_PI to double.
12809 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12811 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12812 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12813 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12815 * groff/groff_man.man: New file. This manual page was originally
12816 written for the Debian GNU/Linux system by Susan G. Kleinmann
12819 * eqn/list.cc (list_box::compute_metrics,
12820 list_box::compute_sublist_width): Removed variable declaration to
12821 avoid shadowing warnings.
12823 * grops/psrm.cc (resource_manager::process_file): Ditto.
12825 * tfmtodit/tfmtodit.cc (main): Ditto.
12827 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12828 to avoid shadowing warnings.
12830 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12831 shadowing loop variable.
12833 * groff/groff.man, troff/troff.man: Added doc about grohtml.
12835 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
12837 New grohtml frontend to convert groff input to html.
12839 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12841 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12843 * tmac/eqnrc: Added html device.
12845 * tmac/tmac.html: New file.
12847 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12848 (troff_output::start_picture, troff_output::finish_picture),
12849 tbl/main.cc (process_input_file):
12850 Surrounded output with `graphics_start' and `graphics_end' so that
12851 the html driver can identify non-text portions.
12853 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12854 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12855 grotty/tty.ps (tty_printer::set_char): Additional parameter
12858 * include/printer.h: Class printer: New function
12859 set_char_and_width; new variables (is_char_named, is_named_set,
12860 named_command, named_char_s, named_char_n) to hold information
12861 about named characters -- needed by the html driver.
12863 * libdriver/printer.cc (printer::set_ascii_char,
12864 printer::set_special_char): Use set_char_and_width.
12866 * devhtml/*: New device files for html driver.
12868 * grohtml/*: New driver grohtml.
12870 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
12872 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12875 1999-09-11 Luke Mewburn <lukem@netbsd.org>
12877 * libgroff/string.cc (search): Small fix to test against NULL
12880 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
12882 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12883 \b'abc') were stacked in reverse order when processed in a
12886 * troff/node.h: Added `*last' to struct `node' to make the above
12889 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12890 The default scale for the 'f' and 't' graphics functions were 'm'
12891 rather than 'u' (i.e., no scaling).
12893 1999-09-11 Peter Miller <peterm@jna.com.au>
12895 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12896 do_file), soelim/soelim.man: Added `-I file' option to soelim,
12897 defining include paths.
12899 * soelim/soelim.cc (include_path_append): New function.
12901 1999-09-11 Larry Jones <larry.jones@sdrc.com>
12903 * tbl/main.cc (process_options): Unix (at least Documenter's
12904 Workbench) tbl allows arbitrary non-alpha characters between
12907 1999-09-11 Paul Eggert <eggert@twinsun.com>
12909 Y2k fixes. Don't assume that the current year precedes 2000.
12911 * doc/meref.me: Add \n(y2, \n(y4.
12913 * tmac/doc-common (Yr): New number register.
12914 (Dd): Don't assume current year precedes 2000.
12916 * tmac/tmac.e (td): Likewise.
12917 (y2, y4): New number registers.
12919 * pic/pic.man: Update reference for pic paper to May, 1991
12922 1999-09-11 Werner LEMBERG <wl@gnu.org>
12924 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12925 Removed quotation marks which prevented correct expansion of
12928 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12930 1999-09-10 Werner LEMBERG <wl@gnu.org>
12932 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12935 * Removed configure.old.
12937 1999-08-31 Werner LEMBERG <wl@gnu.org>
12939 * VERSION: Updated to 1.11.1
12941 1999-05-27 Werner LEMBERG <wl@gnu.org>
12943 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12945 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12946 added quotations around $(tmac_wrap) to avoid syntax error if
12949 * configure: Newly generated using autoconf 2.13.
12951 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12953 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
12955 * README, PROJECTS, NEWS, INSTALL, VERSION,
12956 doc/Makefile. doc/pic.ms, groff/groff.man:
12957 Prepare for 1.11 release. No code changes.
12958 Documentation for pic added (doc/pic.ms).
12960 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
12962 * Version 1.10 released.
12964 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
12966 * afmtodit/afmtodit.pl: Avoid comment on first line.
12968 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
12970 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12971 * configure.in: Call it.
12973 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12974 (distfiles): Doesn't depend on config.log or config.cache.
12976 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
12978 * grog/grog.sh: Use print "" rather than print in END rule.
12980 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
12982 * tbl/main.cc (process_data): Don't give error for excess data
12983 entries that are comments.
12985 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
12987 * tbl/main.cc (process_data): Fix case where new for-scope rules
12988 silently change meaning of code.
12990 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
12992 * troff/env.cc (hyphenate): Loop over all consecutive sequences
12993 of non-zero hyphenation codes.
12995 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
12997 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12999 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
13001 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
13003 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
13005 * tmac/tmac.andoc: Make it work in compatibility mode.
13007 * refer/token.h (token_info::is_range_sep): New function.
13008 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
13009 * refer/ref.cc (reference::output): More sophisticated check for
13012 * devps/prologue.ps (MANUAL): New procedure.
13013 * grops/ps.cc (main): New -m option.
13014 (usage): Include -m.
13015 (ps_printer::~ps_printer): Implement -m.
13017 * aclocal.m4 (GROFF_G): New macro.
13018 * configure.in: Call it.
13019 * Makefile.in (g): Provided by configure.
13021 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
13023 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
13026 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
13027 (tmac_m, tmac_s): Deleted.
13028 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
13029 tmac_s_prefix): New variables.
13030 (MDEFINES): Change accordingly.
13031 * Makefile.comm (.man.n): Use new TMAC_* variables.
13032 * configure.in (GROFF_TMAC): Call.
13033 * aclocal.m4 (GROFF_TMAC): Define.
13034 * tmac/Makefile.sub (stamp_wrap): New target.
13035 (install_data, uninstall_sub): Handle macro wrapping.
13037 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
13039 * tbl/main.cc (main): Ignore -T option.
13041 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
13043 * devlj4/generate/special.map: Add definition of \(nb.
13045 * tmac/tmac.dvi: Add definition of \(nb.
13047 * troff/dictionary.c (dictionary::dictionary): association::v gets
13048 initialized by association::association.
13050 * tmac/Makefile.sub: Avoid using temporary files when installing.
13052 * troff/env.cc (environment::set_font): Make bad font number a
13055 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
13057 * Makefile.in (datadir): Use share rather than lib.
13059 * groff/groff.cc (basename): Rename to xbasename.
13061 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
13063 * Makefile (CCLIBS): Don't use.
13064 * Makefile.ccpg: Likewise.
13066 * acgroff.m4: Rename to...
13067 * aclocal.m4: Modify extensively for autoconf 2.
13068 * configure.in: Likewise.
13069 * Makefile.in: Likewise.
13071 * groff/pipeline.c (const): Declare as empty if __STDC__ not
13073 (xstrsignal): Check for definition of NSIG. Conditionalize
13074 on SYS_SIGLIST_DECLARED. Make return type const.
13076 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
13078 * troff/input.cc (interpolate_macro): Rephrase missing space
13081 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
13083 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
13084 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
13085 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
13086 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
13087 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
13088 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
13089 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
13090 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
13091 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
13092 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
13093 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
13096 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
13098 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
13100 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
13102 (macro_iterator::macro_iterator): Add additional argument.
13104 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
13106 * troff/div.cc (vertical_size::vertical_size): In place of integer
13107 specifying line spacing use cunits specifying post vertical
13109 (macro_diversion::output, top_level_diversion::output): Likewise.
13110 * troff/div.h: Change declarations accordingly.
13111 * troff/env.cc (pending_output_line): Replace ls field by post_vs
13113 (pending_output_line::pending_output_line,
13114 pending_output_line::output, environment::output,
13115 environment::output_line, environment::output_title,
13116 environment::hyphenate_line): In place of
13117 integer specifying line spacing use cunits specifying post vertical
13119 (environment::environment): Add post_vertical_spacing and
13120 prev_post_vertical_spacing arguments.
13121 (environment::get_post_vertical_spacing): New function.
13122 (environment::total_post_vertical_spacing): New function.
13123 (environment::post_vertical_spacing): New function.
13124 (init_env_requests): Initialize pvs request and .pvs register.
13125 * troff/env.h: Change declarations.
13127 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
13129 * tmac/tmac.pspic: Immediately remove the temporary file.
13131 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
13133 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
13134 height is specified.
13136 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
13138 * tbl/table.c (struct vertical rule, class table_entry): Use int
13139 not short for start_row and end_row.
13141 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
13143 * troff/input.cc (trapping_blank_line, blank_line_macro): New
13145 (diverted_space_node::reread, process_input_stack): Call
13146 trapping_blank_line() rather than blank_line().
13147 (init_input_requests): Bind "blm" to blank_line_macro().
13149 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
13151 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
13153 * troff/env.cc (environment::possibly_break_line): Require that
13154 width total excluding width of final space node be greater than
13155 the target text length.
13157 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
13159 * troff/node.cc (kern_pair_node::vertical_extent): New function.
13161 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
13163 * troff/node.cc (charinfo_node): New class.
13164 (glyph_node, composite_node): Derive from charinfo_node. Change
13165 member functions accordingly.
13167 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
13169 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
13171 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
13173 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
13175 * devps/generate/textmap (notsubset): Add.
13177 * tmac/tmac.a4: New file.
13179 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
13181 * pic/main.cc (had_parse_error): New variable.
13182 (do_picture, do_whole_file): Set had_parse_error if yyparse()
13184 (main): Return 1 if had_parse_error is true.
13186 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
13188 * grolj4/lj4.cc (main): Avoid use of strtoul.
13190 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
13192 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
13193 iso_8859_1 or $LESSCHARSET is latin1.
13195 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
13197 * hpftodit: New directory.
13198 * Makefile.in (CCPROGDIRS): Add hpftodit.
13199 * devlj4/generate: New directory.
13201 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
13203 * configure.in: Don't use AC_VFORK.
13204 * groff/pipeline.c (run_pipeline): Use fork() always.
13206 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
13208 * grops/ps.cc (main): Use %1 not %s in error message for -w.
13210 * Makefile.in (CCPROGDIRS): Add grolj4.
13211 (DEVDIRS): Add devlj4.
13212 * grolj4, devlj4: New directories.
13213 * tmac/troffrc: Handle lj4.
13214 * tmac/tmac.lj4: New file.
13216 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
13218 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
13220 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
13222 * troff/input.cc (do_if_request): At end of second string, switch
13223 environments before getting next token.
13225 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
13227 * devps/psstrip.sed: Split rule that strips whitespace on either
13228 side of delimiters.
13230 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
13232 * troff/node.h (font_family::make_definition): Add return value to
13233 declaration. * troff/symbol.h (symbol::operator==,
13234 symbol::operator!=): Likewise.
13236 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
13238 * groff/groff.cc (main, help, synopsis): Handle -S.
13239 (possible_command::insert_arg): New function.
13241 * tmac/tmac.safer: New file.
13242 * tmac/msafer.man: New file.
13243 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
13245 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
13247 * pic/pic.h, pic/main.cc (safer_flag): New variable.
13248 * pic/pic.y (placeless_element): Avoid unsafe operations if
13249 `safer_flag' is set.
13250 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
13252 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
13254 * eqn/lex.cc (get_token): Put call to add_context() in block to
13255 work around Sun C++ 4.0 bug.
13257 * include/stringclass.h (operator +): Use ?: instead of `if' to
13258 work around Sun C++ 4.0 bug.
13260 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
13262 * tbl/main.cc (process_format): Accept - as a synonym for the _
13265 * libbib/index.cc (minus_one): Don't declare as const.
13267 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
13269 * troff/input.cc (get_char_for_escape_name): Push back a newline.
13271 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
13273 * troff/input.cc (write_macro_request): New function.
13274 (init_input_requests): Bind write_macro_request to writem.
13276 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
13278 * tmac/tmac.s (@EN): Turn filling back on even if there was no
13281 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
13283 * tmac/tmac.s (@TS): Renamed from TS.
13284 (TS): Call LP then TS again.
13285 (cov*ab-init): Alias @TS to TS.
13287 * tmac/tmac.s: Allow QP or RS to initialize.
13289 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
13290 Move initializations of PS and LL here.
13291 (par@init): Don't initialize HY. Avoid changing environment 0.
13292 (par*env-init): Don't all par@reset.
13294 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
13296 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
13298 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
13300 * Makefile.in (MDEFINES): Add LDFLAGS.
13301 (LDFLAGS): Add definition line.
13303 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
13305 * troff/input.cc (get_optional_char): Split off error check into...
13306 (check_missing_character): New function.
13307 * troff/token.h: Declare it.
13308 * troff/env.cc (margin_character): Don't call get_optional_char.
13309 Only call tok.next() after making the node.
13311 * include/lib.h (getopt): Make 2nd argument char *const *.
13313 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
13315 * nroff/conftest.sh: Deleted.
13317 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
13319 * pic/make-dos-dist: Deleted.
13321 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
13323 * devps/psstrip.sed: Strip comments before stripping trailing
13326 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
13328 * Version 1.09 released.
13330 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
13332 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
13334 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
13336 * libgroff/font.cc (font::load_desc): Fix typo in error message.
13338 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
13340 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
13341 about returning without a value.
13343 * troff/charinfo.h (charinfo::get_special_translation): Cast
13344 TRANSLATE_NONE to int.
13346 * refer/token.cc (lookup_token, store_token): Remove bogus loop
13347 test. Fix test so that it works with n unsigned.
13349 * pic/pic.y (defaults_table): Fully bracket initializer.
13350 * pic/lex.cc (lookup_keyword): Likewise.
13351 * eqn/lex.cc (token_table, def_table): Likewise.
13352 * eqn/box.cc (param_table): Likewise.
13353 * troff/input.cc (warning_table): Likewise.
13354 * libgroff/font.cc (table): Likewise.
13355 * grops/ps.cc (ps_printer::special): Likewise.
13356 * grops/psrm.cc (resource_manager::process_file): Likewise.
13357 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
13358 * refer/command.cc (command_table): Likewise.
13359 * addftinfo/addftinfo.cc (param_table): Likewise.
13361 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
13362 about temp's being unused.
13363 (unused): New function.
13365 * groff/pipeline.cc: Declare c_fatal.
13367 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
13370 * libbib/index.cc (index_search_item::load): Prevent compiler
13371 warnings about fd_closer's being unused.
13372 (unused): New function.
13374 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
13376 * troff/input.cc (copy_mode_error): Make `prefix' static.
13379 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
13381 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
13382 HAVE_CC_OSFCN_H and modify accordingly.
13384 * troff/input.cc (init_charset_table): radicalex overlaps
13387 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
13388 udodo!hans@relay.NL.net).
13389 * groff/configure.in: Call it.
13391 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
13392 * groff/configure.in: Call it.
13393 * include/lib.h: Conditionalize declaration of pclose.
13395 * troff/div.cc (last_page_number): New global variable.
13396 (top_level_diversion::begin_page): Exit if we just printed the
13398 * troff/div.h (last_page_number): Declare it.
13399 * troff/input.cc (parse_output_page_list): Set last_page_number.
13401 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
13402 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
13403 tmac/tmac.X: Likewise.
13404 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13405 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13407 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
13409 * tmac/doc-ditroff (hK): Remove groff specific code which
13410 prevented page-breaks between separate manual entries. If this is
13411 the first page, don't set the page number to 1.
13413 * acgroff.m4 (GROFF_POSIX): New macro.
13414 * configure.in: Use it.
13416 * troff/node.cc (class real_output_file,
13417 real_output_file::real_output_file,
13418 real_output_file::~real_output_file): Conditionalize use of
13419 popen/pclose on POPEN_MISSING.
13420 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13421 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13422 (pipe_source): Similarily.
13424 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13426 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13427 presence of declarations by trying to compile example with
13428 conflicting declarations. (gcc only gives a warning for missing
13431 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
13433 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13434 (from Ulrich Lauther).
13436 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
13438 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13440 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
13442 * indxbib/indxbib.cc (write_hash_table): Add code for case where
13443 pointers and ints have different sizes.
13445 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
13447 * tmac/tmac.s (par*env-init): Call par@reset.
13449 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
13451 * tmac/tmac.s (@IP): Switch to a new environment when diverting
13453 (par*push-tag-env, par*pop-tag-env): New macros.
13455 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
13457 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13458 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
13460 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13461 comment. Include <time.h>.
13463 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
13465 * grops/ps.cc (is_small_h, is_small_v): Deleted.
13466 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13469 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
13471 * troff/input.cc (read_request): Only print a prompt if reading
13472 from the terminal. Also clearerr on EOF if reading from the
13473 terminal. Declare isatty.
13475 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
13477 * refer/label.y: Rename map_t to map_func and extractor_t to
13480 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
13482 * include/assert.h: Don't use volatile.
13483 * libgroff/assert.cc: Likewise.
13485 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
13487 * troff/input.cc (abort_request): Look at character in tok before
13488 calling get_copy().
13490 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
13492 * troff/troff.h (NO_RETURN): Deleted.
13493 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
13494 * troff/input.cc (exit_troff): Likewise
13496 * Makefile.in: Remove `Making ...' messages since GNU make now
13499 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13501 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
13503 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13504 to constant 1 inch.
13506 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
13508 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13510 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
13512 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13513 MARK_REG if there was no left delimiter.
13515 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
13517 * pic/troff.cc (troff_output::text): Set line thickness to
13518 relative before outputting text.
13520 * tmac/tmac.e (@k): Don't zero ?T.
13523 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
13525 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13527 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
13529 * troff/input.cc (decode_args): Warn about unquoted tabs (from
13532 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
13534 * troff/input.cc (ignoring): New variable.
13535 (ignore): Set ignoring during call to do_define_macro.
13536 (do_define_macro): Clear ignoring before interpolating terminating
13538 (copy_mode_error): New function.
13539 (get_char_for_escape_name, read_long_escape_name,
13540 interpolate_arg): Use copy_mode_error.
13541 (warning_table): Add WARN_IG.
13542 * troff/troff.h (WARN_IG): Declare.
13543 (WARN_TOTAL): Change accordingly.
13545 * groff/pipeline.c (strsignal): Rename to xstrsignal.
13546 * groff/groff.cc (strsignal): Delete declaration.
13548 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
13550 * troff/div.cc (page_offset): Use 'm' as default scaling.
13552 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
13554 * nroff/nroff.sh: Ignore -u.
13556 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
13558 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13560 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
13562 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13564 (B2): With -Tascii, leave additional vertical space before
13565 and after. Ensure that the left and right indent is restored to
13566 what it was even if the point size changes. Don't call
13567 par@finish. Change the indent, line length and title length
13568 directly. With -Tascii, make the width of the box 1n less.
13569 (B1): Remember 1n at the current point size. Don't call
13570 par@reset. Change the indent, line length and title length
13571 directly. Ensure that the temporary indent is preserved.
13572 (par*box-mark-top): Turn off no spacing mode.
13574 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
13576 * Makefile.in (dist): Use .gz suffix.
13578 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
13580 * troff/input.cc (main): Add return 0.
13581 * pic/main.cc (main): Use return instead of exit.
13582 * tbl/main.cc (main): Likewise.
13583 * eqn/main.cc (main): Likewise.
13584 * grops/ps.cc (main): Likewise.
13585 * grotty/tty.cc (main): Likewise.
13586 * groff/groff.cc (main): Likewise.
13587 * grodvi/dvi.cc (main): Likewise.
13588 * refer/refer.cc (main): Likewise.
13589 * indxbib/indxbib.cc (main): Likewise.
13590 * lkbib/lkbib.cc (main): Likewise.
13591 * soelim/soelim.cc (main): Likewise.
13592 * addftinfo/addftinfo.cc (main): Likewise.
13593 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13594 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13596 * troff/token.h (process_input_stack): Don't declare as static.
13597 * troff/input.cc: Likewise.
13599 * troff/node.c (invalidate_fontno): Make it a static member of
13600 class font_family. Change callers.
13601 * troff/node.c: Change declaration.
13603 * tbl/main.cc (struct input_entry_format): Add explicit public
13605 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13606 struct double_hline_stuff): Likewise.
13607 * tbl/table.h (struct entry_format): Likewise.
13608 * pic/object.h (struct saved_state): Likewise.
13610 * include/stringclass.h: Add forward declarations of friend
13611 functions that are later declared as inline. Don't include inline
13612 specifier in friend declaration.
13614 * libgroff/lib.h: Declare popen and pclose.
13615 * acgroff.m4 (GROFF_POPEN): New macro.
13616 * configure.in: Call it.
13618 * include/lib.h (PI): New constant. Undef first if necessary.
13619 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13620 * grops/ps.cc (degrees, radians): Likewise.
13621 * libgroff/font.cc (font::get_skew): Likewise.
13623 * grops/ps.cc (is_ascii): New function.
13624 (ps_output::put_string): Use is_ascii. Use csprint rather than
13626 (ps_printer::define_encoding): Use csspace.
13627 * libgroff/strtol.c (ISASCII): New macro.
13628 (strtol): Cast arguments to is*() and tolower() to unsigned char.
13629 Use ISASCII rather than isascii.
13630 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13631 * libgroff/cset.cc: Likewise.
13632 * libdriver/input.cc: Include cset.h.
13633 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13636 * refer/refer.cc (main): Use %ld rather than %d for longs.
13638 * libbib/index.cc (index_search_item_iterator::get_tag): Use
13641 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13643 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
13645 * troff/input.cc (hyphenation_code): Skip white space between
13648 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
13650 * tbl/table.h (table::entry_list_tailp): New member.
13651 (table::table): Initialize it.
13652 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13655 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
13657 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13658 with negative horizontal positions. Remove casts of glyph::hpos to
13660 (USHRT_MAX): Delete definition.
13661 (SHRT_MAX, SHRT_MIN): New definitions.
13662 (glyph::hpos): Change type to short.
13663 (tty_printer::end_page): Output multiple backspaces if necessary.
13664 Remove casts of glyph::hpos to int.
13666 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
13668 * tmac/tmac.s (@RT): New definition.
13670 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
13672 * refer/refer.cc (do_file): Make sure current_filename is set when
13675 * pic/common.cc (common_output::dot_line): Handle zero length
13678 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
13680 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13681 (par@init): Initialize \n[HY].
13683 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
13685 * troff/dictionary.cc (dictionary::remove): Continue when
13688 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
13690 * Makefile.com (.y.cc): Avoid ending up with two versions of
13693 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
13695 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13696 (\(,C): Likewise. Also fix typo.
13698 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
13700 * lib.h: Delete extraneous semi-colon.
13702 * Add pso request: `so' from a pipe.
13703 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13704 (file_iterator::close): New function.
13705 (file_iterator::~file_iterator, file_iterator::next_file): Use
13706 file_iterator::close.
13707 (file_iterator::backtrace): Say `process' rather than `file' when
13708 the stream is popened.
13709 (pipe_source): New function.
13710 (init_input_requests): Bind ".pso" to pipe_source.
13712 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
13714 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13716 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
13717 digits in lower case.
13719 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
13721 * Version 1.08 released.
13723 * Makefile.in (dist): Insert || true after ln -s commands that
13726 * mm: Update to mm 1.16.
13728 * acgroff.m4 (GROFF_CSH_HACK): New macro.
13729 * configure.in: Call GROFF_CSH_HACK. Substitute for
13731 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
13733 * nroff/Makefile.sub (nroff): New target.
13734 (install_data): Install nroff.
13735 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13736 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13738 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
13740 * eqn/Makefile.sub (neqn): Add chmod +x.
13742 * grog/Makefile.sub (grog): Remove spurious semi-colon.
13744 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
13746 * troff/input.cc (string_iterator::string_iterator()): Initialize
13749 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
13751 * troff/div.cc (macro_diversion::space,
13752 top_level_diversion::space): Don't set high_water_mark.
13753 (macro_diversion::output, top_level_diversion::output): Don't
13754 include post line space in high water mark.
13756 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
13758 * eqn/eqn.y: Don't define YYDEBUG.
13759 * pic/pic.y: Likewise.
13761 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
13763 * tmac/tmac.e ([3): Add space after comma following editors.
13764 Change double spaces to single spaces.
13765 ([4): Change double spaces to single spaces.
13767 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13768 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13769 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13770 after %!PS-Adobe- (for Newsprint).
13772 * troff/div.cc (top_level_diversion::begin_page): When
13773 before_first_page is 1, set page_number to 1.
13775 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
13777 * eqn/box.cc (box::top_level): Protect equation with \&.
13779 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
13781 * groff/groff.cc (possible_command::set_name): Delete old name.
13783 * groff/groff.cc (possible_command::~possible_command): Use
13786 * troff/node.cc (troff_output_file::begun_page): New member.
13787 (troff_output_file::troff_output_file): Initialize it.
13788 (troff_output_file::really_begin_page): Only output V command if a
13789 page has been begun.
13791 * pic/pic.y (placeless_element): Delete argument to PRINT after
13794 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
13796 * Make wrapman work.
13797 * troff/div.h (class top_level_diversion): Replace
13798 first_page_begun by before_first_page (with opposite sense).
13799 * Change first_page_begun to before_first_page inverting sense.
13800 * troff/div.cc (class nl_reg): New class.
13801 (init_div_requests): Use class nl_reg for \n(nl.
13802 (top_level_diversion::begin_page): Don't call
13803 output_file::begin_page if before_first_page is 2;
13804 reset before_first_page afterwards. If have_next_page_number is
13805 false, then always increment page_number.
13806 * tmac/tmac.an: Set traps within TH rather than at the top-level.
13807 Restore compatibility mode after loading, and then disable
13808 compatibility mode in TH.
13810 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
13812 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13814 * troff/node.h (output_file::trailer): Declare.
13815 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13816 * troff/node.cc (output_file::trailer): New function.
13817 (troff_output_file::~troff_output_file): Move most code into...
13818 (troff_output_file::trailer): New function.
13819 (class troff_output_file): Delete page_length member. Declare
13821 (troff_output_file::really_begin_page): Use current page length
13822 for final V command.
13824 * tbl/main.cc (struct options): New decimal_point_char member.
13825 (options::options): Initialize this.
13826 (process_options): Implement decimalpoint option.
13827 (process_data): Pass decimal_point_char option to table::table.
13828 * tbl/table.h (class table): New decimal_point_char member.
13829 (table::table): Add additional argument.
13830 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13831 second argument specifying decimal point character. Use this
13833 (table::table): Initialize decimal_point_char.
13834 (table::add_entry): Change call to find_dot.
13836 * troff/input.cc (get_copy, token::next): Implement \V.
13837 (interpolate_environment_variable): New function.
13839 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
13841 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13842 * pic/pic.y: Likewise.
13844 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13846 * refer/ref.cc (reference::insert_field, reference::delete_field):
13848 * troff/number.cc (parse_term): Likewise.
13850 * acgroff.m4 (GROFF_PROG_YACC): New macro.
13851 * configure.in: Use GROFF_PROG_YACC.
13853 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13855 * Makefile.in (OPTIMIZE): New define.
13856 (DEBUG): Empty by default.
13857 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13859 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13860 (GROFF_ARRAY_DELETE): Likewise.
13861 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13863 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13865 * devps/psstrip.sed: Use different delimiter on last line (so that
13866 it works with BSD 4.4 sed.)
13868 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
13870 * devps/psstrip.sed: Delete comments.
13872 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13873 optind, opterr, optarg.
13874 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13877 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
13879 * Makefile.in (check): Dummy target.
13881 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
13883 * Version 1.07 released.
13885 * Integrate mm 1.11.
13887 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13888 where start_col was meant.
13890 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
13892 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13894 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
13896 * troff/input.cc (token::next): Make \z\o'...' and similar things
13899 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13901 (environment): Add margin_character_flags member.
13902 * env.cc (environment::environment(symbol),
13903 environment::environment(const environment *): Initialize
13904 margin_character_flags.
13905 (margin_character): Rewrite.
13906 (environment::output_line): Add a margin character if
13907 margin_character_flags is non-zero. Turn off the
13908 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
13909 zero, use margin_character_node without copying and then set
13910 margin_character_node to 0.
13912 * devps/DESC.in: Change minimum size to 1000.
13914 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
13916 * troff/symbol.h (symbol::hash): Change return type to unsigned
13918 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13921 * test-groff: Use -r rather than -x.
13923 * grops/psfig.diff: Include in distribution again.
13925 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
13927 * Makefile.in (dist): Use gzip.
13929 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
13931 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13932 unistd.h as well as in stdlib.h.
13933 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13934 defined; otherwise include <sys/types.h> and <unistd.h> if
13935 UNISTD_H_DECLARES_GETOPT is defined.
13937 * configure.in: use builtin(include, ... rather than include(...
13938 * configure: Regenerate with autoconf 1.3.
13940 * libdriver/print.cc (printer::adjust_arc_center): Use new
13941 algorithm suggested by Andy Fyfe.
13943 * libdriver/printer.cc (printer::adjust_arc_center): New function.
13944 * include/printer.h: Declare this.
13945 * grops/ps.cc (ps_printer::draw): Use it.
13946 * grodvi/dvi.cc (dvi_printer::draw): Use it.
13948 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
13950 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13952 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
13954 * eqn/main.cc (main): Handle "eqn -".
13956 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
13958 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13960 * mm: Integrate version 1.08.
13962 * pic/troff.cc (troff_output::finish_picture): Set
13963 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13964 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13965 if it's not defined. Check whether the register is non-zero rather
13966 than whether it's not defined.
13967 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13969 * indxbib/indxbib.cc: Move all signal handling into...
13970 * indxbib/signal.c: New file.
13971 * configure.in: Call AC_RETSIGTYPE.
13973 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13974 * configure.in: Call GROFF_STRUCT_EXCEPTION.
13975 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13977 * troff/input.cc (token::token, token::operator=): Work round SGI
13979 * pic/object.cc (position::position): Likewise.
13981 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
13983 * pic/pic.h: Move declaration of hypot().
13985 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
13987 * pic/pic.h: Declare hypot().
13989 * pic/pic.h: Define M_PI if necessary.
13991 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
13993 * tmac/tmac.e (re): Add alternative version that doesn't use groff
13996 * devps/prologue.ps (RE): Handle the possibility that the old font
13997 doesn't have a FontName entry.
13999 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
14001 * tmac/tmac.e (fam): Redefine to set family in environment 2.
14002 (@C): Use @fam not fam.
14004 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
14006 * lookbib/lookbib.cc (main): Change type of start to const char *.
14007 * lkbib/lkbib.cc (main): Likewise.
14009 * eqn/lex.cc (definition::definition): Don't use member
14010 initializer syntax for members of anonymous unions.
14012 * troff/input.cc (input_stack::backtrace): Change type of to const
14015 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
14017 * include/stringclass.h (class string): Declare inline friend
14018 functions as inline in class declaration.
14019 * troff/hvunits.h (class hunits, class vunits): Likewise.
14020 * include/refid.h (class reference_id): Likewise
14021 * troff/troff.h (points_to_units(units), scale(units, double)):
14022 Delete declarations.
14023 * libdriver/input.cc (get_char): Delete declaration.
14024 * include/lib.h: Change 2nd argument of getopt from const char **
14026 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
14027 char **' before assigning to a `const char **'.
14028 * tbl/table.cc: Delete extra declarations of prints().
14030 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
14032 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
14033 char **' before assigning to a `const char **'.
14035 * libgroff/errarg.cc (errarg::errarg): Don't use member
14036 initializer syntax for members of anonymous unions.
14038 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
14040 * mm: Integrate version 1.07.
14042 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
14044 * troff/input.c (translate2): Rename to
14045 (translate_no_transparent).
14046 (init_input_requests): Rename tr2 to trnt.
14048 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
14050 * troff/charinfo.h (class charinfo): Add transparent_translate field.
14051 (charinfo::set_translation, charinfo::set_special_translation):
14052 Add second argument that specifies value for
14053 transparent_translate.
14054 (charinfo::get_translation, charinfo::get_special_translation):
14055 Add optional second argument that specifies whether translation is
14056 being used for transparent throughput.
14057 * troff/input.cc (charinfo::set_translation,
14058 charinfo::set_special_translation): Handle second argument.
14059 (charinfo::charinfo): Initialize transparent_translate.
14060 (translate): Split main part off into
14061 (do_translate): New function. Pass argument saying whether
14062 translation applies to transparent throughput.
14063 (translate2): New request.
14064 (init_input_requests): Bind translate2 to `tr2'.
14066 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
14068 * tbl/table.h (class table): Add `nokeep' flag.
14069 * tbl/main.cc (process_options): Handle `nokeep' option.
14070 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
14071 table::do_bottom): Don't output keep/release macro definitions or
14072 calls when `nokeep' option has been specified.
14074 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
14076 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
14078 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
14080 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
14081 block_entry::divert, alphabetic_block_entry::divert): Add extra
14082 argument giving column separation.
14083 (table::compute_widths): Pass column separation to
14084 table_entry::divert().
14085 (block_entry::do_divert): If an entry spans multiple columns and a
14086 minimumum width has been specified for each column, then set the
14087 line length to the sum of the widths (plus possibly the column
14090 * troff/input.cc (set_escape_char): Don't set the escape_char
14091 until after calling has_arg().
14093 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
14095 * tbl/table.cc (table::do_top): Add missing \s0 for double box
14098 * tbl/table.cc (table::print_double_hline): Avoid extra new line
14099 in case where r > nrows - 1.
14101 * tbl/table.cc (BODY_HEIGHT): Deleted.
14102 (LINE_SEP): New definition.
14103 (table::print_single_hline, table::print_double_hline,
14104 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
14105 table::do_row, table::do_top): Use LINE_SEP space before a line
14106 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
14108 * tbl/table.cc (text_entry::print_contents): New function.
14109 (text_string_name, right_text_string_name): Deleted.
14110 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
14111 (simple_text_entry::do_width, numeric_text_entry::do_width,
14112 alphabetic_text_entry::do_width): Don't store the contents of the
14114 (left_text_entry::simple_print, right_text_entry::simple_print,
14115 center_text_entry::simple_print,
14116 alphabetic_text_entry::simple_print,
14117 numeric_text_entry::simple_print): Print the entry directly
14118 instead of using the stored string.
14120 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
14122 * devps/Makefile: Strip PostScript files.
14123 * devps/prologue: Rename to...
14124 * devps/prologue.ps.
14125 * devps/psstrip.sed: New file.
14126 * devps/download: Use .pfa rather than .ps for installed versions
14129 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
14131 * troff/env.cc (input_trap): Give a warning if the argument is out
14134 * troff/env.cc (adjust): Treat negative argument as missing. Round
14135 argument > 5 down to 5.
14137 * troff/env.cc (center, right_justify): Make negative argument zero.
14139 * troff/div.cc (page_offset, vertical_position_traps): Treat
14140 invalid argument as missing.
14141 * troff/env.cc (line_spacing, line_length, title_length, indent,
14142 underline, hyphen_line_max_request, control_char,
14143 no_break_control_char, widow_control_request, adjust, input_trap,
14144 point_size): Likewise.
14145 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
14146 constant_space): Likewise.
14147 * troff/input.cc (compatible, shift, warn_request,
14148 set_escape_char): Likewise.
14150 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
14151 * tbl/table.cc (table::table): Likewise.
14153 * Makefile.dev (install_dev): depends on $(DEVFILES).
14155 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
14157 * devX75, devX75-12, devX100, devX100-12: New directories.
14158 * Makefile.in: Add these to DEVDIRS.
14160 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
14161 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
14162 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
14163 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
14165 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
14166 (uninstall): New target.
14167 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
14168 uninstall_prog, uninstall_dev): New targets.
14170 * troff/div.cc (return_request): Treat an invalid argument as
14173 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
14175 * tmac/tmac.e ((f): Set up the environment even when there's a
14176 current diversion. Transperently throughput a call to @N.
14179 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
14181 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
14182 up to vertical resolution.
14184 * tbl/table.cc (table::do_row): Change row number after printing
14187 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
14189 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
14191 * Rename CHANGES to NEWS.
14193 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
14195 * libgroff/new.cc (operator new): Avoid calling malloc(0).
14197 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
14199 * man.ultrix: Removed.
14201 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
14203 * Makefile.comm (extraclean): Delete files whose names begin with
14206 * pic/troff.cc (troff_output::text): Fix typo in implementation of
14209 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
14211 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
14212 * troff/div.cc (page_length, need_space, space_request): Treat
14213 invalid optional argument as missing.
14214 * troff/env.cc (number_lines): If the first argument is present
14215 but not a number, turn on line numbering, don't change the next
14216 line number and parse the remaining arguments.
14218 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
14220 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
14222 * eqn/box.h: Change declaration accordingly.
14223 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
14224 the specified size was bad but don't give an error. Check for
14226 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
14227 * eqn/lex (do_size): Likewise.
14229 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
14231 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
14232 compatible headers.
14234 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
14236 * tbl/table.cc (table::init_output): Improve error message when
14237 table won't fit on one page.
14239 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
14241 * pic/troff.cc (troff_output::start_picture): Generate line
14242 containing a horizontal motion equal to the width of the picture.
14244 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
14245 using GROFF_COMMAND_PREFIX environment variable.
14247 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
14249 * mdate.sh: Use $NF rather than $(NF).
14251 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
14253 * pic/main.cc (main): Use %1 not %c in argument to warning.
14255 * eqn/main.cc (main): Output code to check that geqn was given the
14258 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
14260 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
14261 `ln -s ../Makefile .; make; rm -f Makefile'.
14263 * troff/hyphen: Rename to...
14265 * troff/input.cc (main): Delete -H option. Don't call
14266 read_hyphen_file().
14267 * troff/env.cc: Include searchpath.h and macropath.h.
14268 (exception_dictionary): Deleted.
14270 (read_hyphen_file): Deleted.
14271 (hyphenation_language): New struct.
14272 (class trie, class hyphen_trie): Move declarations up.
14273 (trie_node::~trie_node): Deleted.
14274 (trie::delete_trie_node): New function.
14275 (trie::do_delete): New pure virtual function.
14276 (hyphen_trie::do_delete): New function.
14277 (trie::~trie): New function.
14278 (hyphen_trie::~hyphen_trie): New function.
14279 (trie::clear): No need to chcek that tp is not 0.
14280 (current_language, language_dictionary): New variables.
14281 (hyphen_word): Give an error if no current language. Use
14282 exceptions dictionary in current language.
14283 (hyphen_trie::read_patterns_file): Find file using macro_path.
14284 Allow comments (starting with %) in patterns file. Don't make it
14285 a fatal error if the file can't be found.
14286 (hyphenate): Return if no current language. Get the exceptions
14287 dictionary and the hyphenation patterns from the current language.
14288 (set_hyphenation_language): New variable.
14289 (hyphenation_patterns_file): New function.
14290 (hyphenation_language_reg): New class.
14291 (hyphenation_language_reg::get_string): New function.
14292 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
14293 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
14295 * groff/groff.cc (main, help, synopsis): Delete -H option.
14296 * include/Makefile.sub: Don't define HYPHENFILE.
14297 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
14298 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
14299 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
14300 hyphenation patterns.
14302 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
14304 * eqn/neqn.sh: New file.
14305 * eqn/Makefile.sub: Handle neqn.sh.
14307 * eqn/eqn.h: Declare `nroff' variable.
14308 * eqn/box.cc (param_table): Add `nroff' param.
14309 (nroff): Define it.
14310 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
14312 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
14314 * troff/troff.h (WARN_FONT): New warning.
14315 (WARN_TOTAL): Change accordingly.
14316 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
14317 (warning_table): Add WARN_FONT.
14318 * troff/node.cc (mount_font_no_translate): Pass argument to
14319 font::load_font. If this is non-zero, give a warning.
14320 Don't give an error message when accessing a font that has already
14321 been found to be invalid.
14322 * include/font.h (font::load, font::load_font): Add additional
14323 optional argument which suppresses error message if the font is
14325 * libgroff/font.cc (font::load_font): Handle additional argument.
14326 (font::load): Add additional argument. If this is non-null, set it
14327 to 1 and don't give error message.
14329 * include/printer.h (printer::end_page): Add argument giving
14331 * libdriver/input.cc (do_file): Pass this.
14332 * grops/ps.cc (ps_printer::end_page): Add argument.
14333 * grodvi/dvi.cc (dvi_printer::end_page,
14334 draw_dvi_printer::end_page): Add argument.
14335 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
14336 columns_per_page members. New member nlines.
14337 (DEFAULT_LINES_PER_PAGE): Deleted.
14338 (tty_printer::tty_printer): Don't compute lines_per_page from
14339 font::paperlength. Don't compute columns_per_page from
14341 (tty_printer::add_char): Don't check horizontal position against
14342 columns_per_page. Grow glyphs vector if neccessary.
14343 (tty_printer::end_page): Add argument giving page_length in units.
14344 Discard lines past end of page.
14346 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
14348 * tmac/tmac.tty-char: Fix definition of \(/l.
14350 * tmac/tmac.X: Define \(en.
14352 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
14354 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
14355 lpq, then use lp rather than lpr.
14357 * tmac/tmac.s (par@reset): Don't call `ad'.
14358 (par*env-init): Call `ad'.
14360 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
14362 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
14365 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
14366 * indxbib/indxbib.cc: Likewise.
14368 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
14370 * libgroff/putenv.c: New file.
14371 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
14372 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
14373 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
14374 stdlib.h with AC_HAVE_HEADERS.
14376 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
14378 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
14381 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
14383 * eqn/box.cc (gsize): Make it an int.
14384 (set_gsize): Parse argument handling increment or decrement.
14385 (box::top_level): Convert gsize to a string.
14387 * troff/input.cc (exit_troff): Make buf unsigned char [].
14388 Call to make_temp_iterator casts buf to char*.
14390 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
14392 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
14393 * Makefile.cpg (depend.temp): Likewise.
14395 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
14397 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
14399 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
14401 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
14403 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
14405 * Version 1.06 released.
14407 * Integrate mm 1.04.
14409 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
14411 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14413 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
14415 * afmtodit/afmtodit.pl: Add -n option that disables generation of
14417 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14418 afmtodit. Regenerate.
14420 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14421 @f back past the current position.
14423 * tmac/tmac.e: Change calls to @R so that comments are not part of
14426 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
14428 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14430 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14431 check that we can link a call to a function declared in <stdio.h>.
14432 (GROFF_UNISTD_H): New macro.
14433 * configure.in: Call it.
14434 * Makefile.in: Document it.
14435 * include/posix.h: New file.
14436 * troff/troff.h: Don't include <osfcn.h>
14437 * troff/input.cc: Include posix.h.
14438 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14440 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14441 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14443 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14444 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14445 * libbib/search.cc (O_RDONLY): Delete definition.
14446 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14447 Don't include <osfcn.h>.
14449 * acgroff.m4 (GROFF_TIME_T): New macro.
14450 * configure.in: Call it.
14451 * Makefile.in: Document it.
14453 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14454 * configure.in: Call it.
14455 * Makefile.in: Document -DTRADITIONAL_CPP.
14456 * include/ptable.h: Don't include generic.h.
14457 (name2): Define it.
14459 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14460 Afterwards remove [T1 and [T2.
14461 (ref*spec!0, ref*spec!2): Use T1 rather than T.
14462 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14463 (ref*add-T2): Renamed from ref*add-T.
14464 (ref*add-T1): New macro.
14466 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
14468 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14470 * libbib/index.cc: Include <fcntl.h>.
14471 (O_RDONLY): Define if necessary.
14472 (make_index_search_item, index_search_item_iterator::get_tag,
14473 index_search_item::check_files): Use O_RDONLY.
14474 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14475 (O_RDONLY): Define if necessary.
14476 (search_list::add_file): Use O_RDONLY.
14477 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14479 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14482 * libbib/index.cc (S_ISREG): Define it if necessary.
14483 (index_search_item::load): Use S_ISREG.
14485 * include/driver.h: Include <errno.h>.
14487 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
14489 * eqn/box.cc (body_height): Increase default value to 85.
14490 (body_depth): Increase default value to 35.
14492 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
14494 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14495 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14496 protected from expansion with \E.
14498 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14500 * Makefile (Makefile): New target.
14502 * Makefile.sub (configure, distfiles): New targets.
14504 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14507 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
14509 * eqn/box.cc (param_table): Add body_height and body_depth.
14511 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14513 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
14515 * psbb/Makefile.sub: Don't link with libgroff.a.
14517 * acgroff.m4 (GROFF_PUTENV): New macro.
14518 * configure.in: Call GROFF_PUTENV.
14519 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14520 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14523 * troff/env.cc (distribute_space): Rename force_forward argument
14524 to force_reverse. Reverse the list if force_reverse is true.
14526 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
14528 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14530 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14531 height or depth to be negative. Guard against SUP_RAISE quantity
14534 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
14536 * devps/generate/textmap: Add `an' (arrowhorizex).
14537 * tmac/tmac.ps: \(an overlaps horizontally.
14538 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14540 * devps/symbolchars: Add arrowverttp, arrowvertbt.
14541 * devps/textmap: Add arrowvertex.
14542 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14543 updownarrow delimiters.
14544 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14546 * tbl/table.cc (simple_entry::position_vertically,
14547 block_entry::position_vertically): For a centered entry, perform
14548 the motion in two stages.
14550 * refer/refer.cc (split_punct): Don't call lookup_token if there
14553 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
14555 * troff/input.cc (token::next): Delete token_node after copying
14558 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14561 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14563 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14565 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
14567 * grops/ps.cc (usage): -b option takes an argument.
14569 * devps/prologue (PLG): New procedure.
14570 * grops/ps.cc (main, usage): New -g option.
14571 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
14574 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
14576 * include/cset.h: Include <limits.h> if we have it.
14578 * libgroff/illegal.cc: New file.
14579 * include/lib.h (illegal_input_char): Use table.
14580 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14581 * pic/lex.cc (ARG1): Renumber to 14.
14582 * eqn/lex.cc (ARG1): Likewise.
14584 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14585 (eg 1.05.90) correctly.
14587 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
14589 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14590 Rename $r and $R registers to $v and $V.
14591 ($r, $R): Initialize to 0.
14592 (@v, @V): New macros.
14596 * troff/input.cc (main, usage): Add -R option that says not to
14598 * eqn/main.cc (main, usage): Rename -n to -R.
14600 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
14602 * devps/DESC.in: Leave font positions 5-9 blank.
14603 * devdvi/DESC.in: Likewise.
14605 * grog/grog.pl: Handle `.PS <file' correctly.
14607 * troff/input.cc (input_stack::push): Improve error message when
14608 input stack limit exceeded.
14610 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
14612 * refer/refer.cc (main): Fix typo in handling of `a' option.
14614 * refer/refer.cc (do_bib): In state START after a newline remain
14617 * groff/groff.sh: Deleted.
14618 * groff/Makefile.sub: Delete handling of groff.sh.
14620 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14621 to determine whether to use \X'ps:...'.
14622 * tmac/troffrc: Set 0p register to 0.
14623 * tmac/tmac.ps: Set 0p register to 1.
14625 * groff/groff.cc: Support -X option. Give warning for -TXps and
14626 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14627 * tmac/troffrc: Support -r.X=1.
14629 * pic/troff.cc (troff_output::dot): Don't test
14630 zero_length_line_flag.
14632 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
14634 * include/lib.h: Declare getopt() and friends unless
14635 STDLIB_H_DECLARES_GETOPT is defined.
14637 * doc/chars.tr: Delete.
14638 * man/groff_char.man: New file.
14640 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
14642 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14643 user has changed register format.
14645 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
14647 * groff/groff.cc: Get rid of device_table. Get postprocessor from
14648 `postpro' command in DESC file. Get spooler command from `print'
14649 command in DESC file. Execute spooler command with /bin/sh.
14651 * groff/groff.cc: Split Unix-specific parts into...
14652 * groff/pipeline.c: New file.
14655 * COPYING: New file.
14656 * all files: Update copyright notices.
14658 * Rearrange files. Redo Makefiles. Use autoconf.
14660 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
14662 * troff/input.c (charinfo_to_node_list): Interpret character
14663 definition with escape_char of `\'.
14665 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
14667 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14668 Define INT_DIGITS as big enough for 64-bit integer.
14669 * lib/strtol.c: Don't include lib.h.
14670 * lib/lib.h: Delete ifdef __cplusplus stuff.
14672 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
14674 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
14675 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
14676 get DESC from current directory.
14678 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
14680 * tbl/main.c (main): Always reset the line number when reading
14683 * tbl/table.c (table::print_single_hline, table::print_double_hline,
14684 table::define_bottom_macro, table::do_row, table::do_top): Round
14685 vertical spacing up to vertical resolution.
14687 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
14689 * ps/ps.h (enum resource_type): Avoid comma at end of
14691 * dvi/dvi.c (class dvi_printer): Likewise.
14692 * dvi/tfmtodit.c (gf::load): Likewise.
14693 * refer/label.y (struct expression): Likewise.
14694 * refer/refer.c (class label_processing_state): Likewise.
14695 * refer/indxbib.c (do_file): Likewise.
14696 * troff/troff.c (enum warning_type): Likewise.
14697 * tbl/main.c (process_data): Likewise.
14698 * troff/charinfo.h (class charinfo):
14700 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
14702 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
14704 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
14706 * groff.c: Move to new groff subdirectory.
14707 * groff/Makefile: New file.
14708 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14710 * man/mdate.sh: Use ls -L if supported.
14712 * Consolidate all header files produced by gendef into lib/defs.h.
14713 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14714 Don't include path.h.
14715 * lib/Makefile (path.h): Don't generate.
14716 * troff/input.c: Include defs.h. Don't include config.h.
14717 * troff/Makefile (config.h): Don't generate.
14718 * refer/index.h: Don't include suffix.h.
14719 * refer/index.c: Include defs.h.
14720 * refer/indxbib.c: Include defs.h.
14721 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14723 * refer/Makefile (suffix.h, path.h): Don't generate.
14724 * groff.c: Don't include config.h. Include defs.h.
14725 * Makefile (config.h): Don't generate.
14726 (lib/defs.h): Generate.
14727 (topclean): Remove lib/defs.h.
14729 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
14731 * lib/malloc.c, lib/getpagesize.h: Deleted.
14732 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
14734 * lib/Makefile: Delete malloc-related stuff.
14735 * lib/new.c: Workaround COOKIE_BUG if necessary.
14737 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
14738 needed header files directly.
14739 * refer/refer.h: Omit definition of DEFAULT_INDEX.
14740 * Makefile: Include definition of DEFAULT_INDEX in path.h.
14742 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
14744 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14746 * lib/font (font::load_desc, font::load): Don't split argument of
14748 (font::handle_unknown_font_command): Change type.
14749 * ps/ps.c (ps_font::handle_unknown_font_command,
14750 handle_unknown_desc_command): Change type.
14751 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14753 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
14755 * lib/font.h (font::handle_unknown_font_command): Add file and
14757 * lib/font.c (font::handle_unknown_font_command):
14758 * ps/ps.c (ps_font::handle_unknown_font_command):
14759 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14760 lineno arguments. Use _with_file_and_line functions for error
14763 * lib/fontfile.c (font::unknown_desc_command_handler): New static
14765 * lib/font.c (font::set_unknown_desc_command_handler): New
14767 (font::load_desc): For unknown commands, call
14768 unknown_desc_command_handler if not null.
14769 * lib/font.h (class font): Declare them.
14770 (FONT_COMMAND_HANDLER): New typedef.
14771 * ps/ps.c (handle_unknown_desc_command): New function.
14772 (main): Set bflag if we had a -b option. Call
14773 font::set_unknown_desc_command_handler.
14774 (broken.h): Don't include.
14775 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
14777 * ps/devps/Makefile: Add `broken' command to DESC file using
14778 BROKEN_SPOOLER_FLAGS.
14780 * macros/tmac.e ([, ]): Add as synonyms for { and }.
14782 * macros/tmac.e ($p): Only exdent if \$3 > 0.
14784 * macros/tmac.e (@R, @S): New macros.
14785 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14786 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14787 Declare $H, $[0-9], .. macros with @S.
14788 Declare |0, |1, |2, |3 strings with @S.
14790 * macros/tmac.e (@S): Rename to @U.
14792 * macros/tmac.e (@z): Define @b and bp as empty instead of
14795 * macros/tmac.e (@m): Deleted.
14796 (@h): Don't call @m.
14797 (@z): Don't set @m trap.
14799 * macros/tmac.e ($h, $f): Define |z as empty string.
14801 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14804 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14806 ()f): Likewise for * register.
14808 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14809 argument is missing, don't change $R. Call sr with three
14810 arguments when initializing.
14812 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
14814 * macros/tmac.e (sr): New macro.
14815 Initialize $r and $R using sr.
14817 * macros/tmac.e (,): Delete \*(#[.
14819 * troff/env.c (set_tabs): Read the tab type even if the position
14820 is bad. Allow the position of the first tab stop to be negative.
14822 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
14824 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14826 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14827 rather than -DPATHCONF_MISSING.
14828 * Makefile: Get rid of PATHCONF_MISSING.
14830 * refer/map.c: New file.
14831 * refer/index.c: Interface to mmap through map.c. Rename map_size
14833 * refer/Makefile: Handle map.c.
14834 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14836 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
14838 * Makefile: RANLIB should be `true' if there is no ranlib.
14839 * lib/Makefile (libgroff.a): Simplify.
14840 * driver/Makefile (libdriver.a): Simplify.
14842 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14843 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
14846 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
14848 * troff/env.c (compare_ranges): Declare as extern "C".
14850 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14852 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14854 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
14856 * pic/troff.c (troff_output::text): Merge in grops_output::text,
14857 but conditionalize use of \X based on \*(.T.
14858 (grops_output::*): Deleted.
14859 * pic/output.h: Delete declaration of make_grops_output.
14860 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
14861 by default. -n sets it to 0.
14862 (usage): Corresponding changes.
14863 * groff.c (main): Don't pass -x or -p to pic.
14864 * groff.sh: Likewise.
14866 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14869 * ps/devps/afmtodit: Change calculation of asc_boundary and
14870 desc_boundary. Make these bounds inclusive.
14871 * ps/devps: Regenerate font files.
14873 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
14875 * macros/tmac.latin1: New file.
14876 * macros/tmac.tty-char: Use tmac.latin1.
14877 (tmac.tty-tr): Deleted.
14878 * macros/Makefile: Install tmac.latin1.
14879 * macros/tmac.dvi: Use tmac.latin1.
14880 * macros/troffrc: Translate \[char160] onto no-break space here.
14881 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14883 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
14885 * macros/tmac.Xps: Use `do' request.
14887 * macros/tmac.ps: Use `do' request.
14889 * macros/tmac.e (@C): Use `do' request.
14891 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14892 * macros/Makefile: Install tmac.X*.
14894 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14895 * tty/Makefile: Don't install tmac.tty*.
14896 * macros/Makefile: Install tmac.tty*.
14898 * dvi/tmac.dvi: Move to macros.
14899 * dvi/Makefile: Don't install tmac.dvi.
14900 * macros/Makefile: Install tmac.dvi.
14902 * ps/tmac.ps*: Move to macros.
14903 * ps/Makefile: Don't install tmac.ps*.
14904 * macros/Makefile: Install tmac.ps*.
14906 * eqn/box.c: Provide draw_lines parameter corresponding to -D
14908 * macros/eqnrc: Set draw_lines parameter based on device.
14909 * groff.c: Don't pass -D flag to eqn.
14910 * groff.sh: Likewise.
14911 * eqn/main.c: Warn about use of -D.
14913 * troff/input.c (process_startup_file): New function.
14914 (main): Call process_startup_file().
14915 * macros/troffrc: New file.
14916 * macros/Makefile: Install troffrc.
14917 * groff.c (main): Don't pass extra -m option to troff. For a
14918 pseudo device pass the name of the pseudo device to troff using
14920 * groff.sh: Likewise.
14921 * groff.c (possible_command::prepend_arg): Deleted.
14923 * troff/input.c (do_request): New function.
14924 (init_input_requests): Bind "do" to do_request.
14926 * eqn/main.c (main): Instead of loading eqnchar from device directory,
14927 load eqnrc from macro directory.
14928 * macros/eqnrc: New file.
14929 * macros/Makefile: Install eqnrc.
14930 * ps/devps/eqnchar: Deleted.
14931 * ps/devps/Makefile: Don't install eqnchar.
14932 * dvi/devdvi/eqnchar: Deleted.
14933 * dvi/devdvi/Makefile: Don't install eqnchar.
14934 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14937 * lib/device.[ch]: New files.
14938 * lib/font.h (font::set_device_name, font::get_device_name):
14940 * lib/fontfile.c: Use device.h.
14941 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14942 * troff/input.c: Delete definition of `device'.
14943 (main): Don't initialize device.
14944 * troff/troff.h: Include device.h rather than declaring device.
14945 * troff/Makefile: No need to handle DEVICE.
14946 * driver/input.c: Include device.h. Don't use
14947 font::{set,get}_device_name.
14948 * groff.c, Makefile: Rename device.h to config.h.
14949 * groff.c: Use library device variable.
14950 * eqn/main.c: Use library device variable.
14951 * eqn/Makefile: No need to handle DEVICE.
14953 * lib/searchpath.[ch]: New files.
14954 * lib/Makefile: Handle searchpath.[ch].
14955 * troff/input.c (open_file, init_dirs): Deleted.
14956 (macro_dirs): Deleted.
14957 (open_mac_file, macro_source): Use class search_path.
14958 (add_string, struct string_list): Move definition.
14959 (main): Change -M option to use macro_path. Delete call to
14961 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14962 Rewrite to use class search_path.
14963 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14964 * lib/Makefile: fontfile.c depends on searchpath.h.
14965 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14967 * lib/macropath.[ch]: New files.
14968 * troff/Makefile: No need to handle MACROPATH.
14970 * troff/input.c: Delete DUMP code.
14971 * lib/fontfile.c, lib/font.h: Delete
14972 font::forget_command_line_font_dirs.
14974 * troff/input.c (push_token): New function.
14975 (handle_first_page_transition): Use push_token().
14976 (process_input_stack): Change handling of a space at the beginning
14979 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
14981 * troff/input.c (font_dirs): Delete unused variable.
14983 * eqn/lex.c (do_set): Correct error messages.
14985 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
14987 * troff/input.c (do_define_string): Allow the string name to be
14988 followed immediately by a tab.
14989 (define_character): Likewise.
14991 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
14993 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14996 * troff/input.c (input_iterator::is_file): New virtual function.
14997 (file_iterator::is_file): New function.
14998 (input_stack::end_file): New function.
14999 (input_stack::next_file): Handle the situation where there is no
15000 file on the input stack correctly. Avoid making two passes over
15002 (next_file): Make the filename optional; in this case call
15003 input_stack::end_file().
15005 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
15007 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
15008 produce a real _ charater when the current font is CW and _
15011 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
15012 expression to work around gcc 2.2 bug.
15014 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
15016 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
15018 * troff/env.c (environment::add_padding): New function.
15019 (environment::add_char): Use add_padding().
15020 (environment::space): Likewise.
15021 (environment::wrap_up_field): Add some padding if there is none
15022 and there's no current tab.
15023 * troff/env.h: Declare environment::add_padding.
15025 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
15027 * pic/pic.y: undef fmod and rand before declaring them.
15029 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
15031 * troff/input.c (main): If the DESC file specifies a font name of
15032 0, then leave the corresponding font position empty.
15034 * nroff.sh: New file.
15035 * Makefile (install.nobin): Install nroff.sh.
15037 * tty/devlatin1/R.proto: Add ao as synonym for de.
15038 * tty/tmac.tty-char: Define ao as o.
15040 * tty/dev{ascii,latin1}/R.proto: Add aq.
15041 * tty/tmac.tty-char: Delete definition of aq.
15043 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
15045 * troff/input.c (init_charset_table): Don't translate 0240.
15046 * ps/tmac.ps: Translate char160 to space.
15047 * dvi/tmac.dvi: Likewise.
15048 * tty/tmac.tty: Likewise.
15050 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
15052 * dvi/tmac.dvi: Add support for all Latin-1 characters.
15054 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
15055 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
15058 * tty/tmac.tty-char: Add \(ah.
15060 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
15061 No need to define \(FM and \(!/. Conditionalize all character
15064 * ps/devps/lgreekmap: Add +h, +f, +p.
15066 * ps/tmac.psnew: New file.
15067 * ps/Makefile: Install tmac.psnew.
15069 * troff/input.c (charinfo_to_node_list): Don't ever interpret
15070 character definitions in compatible mode.
15072 * troff/input.c (remove_character): New function.
15073 (init_input_requests): Bind remove_character to "rchar".
15075 * ps/tmac.psold: New file.
15076 * ps/Makefile: Install tmac.psold.
15077 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
15078 characters into tmac.psold. Make these definitions unconditional.
15080 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
15082 * ps/tmac.ps: Don't define \('c and \('C.
15084 * ps/devps/textmap: Move Greek characters to...
15085 * ps/devps/symbolchars:
15087 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
15089 * ps/devps/text.enc: Add quotesingle.
15090 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
15091 * tty/tmac.tty-char: Likewise.
15092 * dvi/devdvi/texmi.map: Add +h, +f, +p.
15093 * dvi/devdvi/texi.map: Add Fn.
15094 * dvi/devdvi/msam.map: Add lz.
15095 * dvi/tmac.dvi: Handle Bq, bq, aq.
15097 * pic/lex.c (get_token): Recognize 'th.
15098 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
15100 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
15102 * ps/devps/textmap: Move di, mu, +- to...
15103 * ps/devps/symbolchars:
15105 * macros/tmac.s (@XS): Don't call par@reset or fi.
15106 (XA): Call LP. Turn off adjustment. Reduce line length.
15108 * macros/tmac.s: Initially alias XS to LP.
15109 (XS): Rename to @XS.
15110 (cov*ab-init): Alias XS to @XS.
15112 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
15114 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
15115 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
15116 (token::is_size, token::changes_env): Deleted.
15117 * troff/number.c (parse_term): No need to process \s explicitly.
15118 Call tok.next() only after scale indicator has been processed.
15119 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
15121 (token::next): Handle \s, \f, \S, \H immediately rather than
15122 returning them as tokens.
15123 (token::operator==, token::description, token::add_to_node_list,
15124 token::process): Remove handling of deleted tokens.
15126 * troff/env.c (environment::add_char): When adding padding
15127 indicator character, call start_line() if necessary.
15129 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
15131 * ps/devps/afmtodit: Don't output 0 kerns.
15133 * ps/devps/afmtodit: Remove directory from name of encoding in
15134 font description file.
15136 * ps/devps/afmtodit: Improve error messages.
15138 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
15140 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
15141 * ps/devps/FontMakefile: Deleted.
15142 * ps/devps/afmname: New file.
15144 * ps/devps/symbol.sed: New file.
15145 * ps/devps/symbol.diff: Deleted.
15146 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
15147 Generate zapfdr.afm from zapfd.afm.
15149 * tty/tmac.tty (tty-char): Prefix definition with ".
15151 * macros/tmac.an (TP): Don't start a diversion if one has already
15154 * tty/tmac.tty-char: Add Latin-1 characters.
15156 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
15158 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
15160 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
15161 Move declaration of struct horizontal_span.
15163 * tbl/table.c (table::table): Initialize span_list.
15164 (table::~table): Delete span_list.
15166 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
15168 * ps/devps/Makefile: Avoid dependency on GNU make.
15170 * ps/tmac.ps: Check that character does not already exist before
15173 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
15174 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
15175 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
15178 * tty/tmac.tty-char: New file.
15179 * tty/Makefile: Install tmac.tty-char.
15180 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
15183 * tty/tmac.tty: Fix definition of \(34.
15185 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
15186 bracket-drawing characters onto |. Add *o.
15188 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
15189 only if current_field.
15191 * troff/dictionary.c (dictionary::lookup): Free old_table after
15194 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
15196 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
15197 whose glyphs are identical to glyphs of some Roman character.
15199 * tty/devlatin1/R.proto (bu): Deleted.
15200 * tty/devascii/R.proto (bu): Deleted.
15201 * tty/tmac.tty: Add definition of \(bu.
15203 * eqn/main.c (do_file): Pass FILE as argument.
15204 (main): Automatically load eqnchar. New options -F and -n.
15205 Pass do_file an opened FILE.
15206 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
15207 No need to include font.h.
15208 * groff.sh: Likewise. Don't need to use - for standard input.
15209 Prefix files with -- if first file starts with -.
15211 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
15213 * troff/env.c (environment::possibly_break_line): Don't set line
15214 to 0 across call to output_line(). Don't call output_line() until
15215 after discarding nodes after break.
15217 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
15219 * request.h (macro::empty): Declare it.
15220 * input.c (macro::empty): New method.
15221 (interpolate_macro): Don't give a WARN_SPACE if the two-character
15224 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
15226 * troff/env.c (environment::start_field): Decrement space_total
15227 when a space is frozen.
15229 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
15231 * macros/tmac.an (R): Delete macro.
15233 * troff/input.c (get_copy, token::next): Support \# (like \" but
15234 newline is ignored).
15236 * troff/input.c (token::next): Fix error message in 'Y' case.
15238 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
15240 * eqn/delim.c (define_extensible_string): Recognize any prefix of
15243 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
15245 * c++test.c: Include <osfcn.h>.
15247 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
15250 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
15252 * tbl/table.c (table::divide_span): Don't count column separation
15253 if expand was specified.
15255 * tbl/main.c (process_format): Don't ignore width specs in
15256 continued format. Give warning for changing equal widths or
15257 column separation in continued format.
15258 (process_data): Set column separation, minimum width, equal
15259 columns at end of table.
15261 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
15263 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
15264 node::add_discretionary_hyphen): Use soft_hyphen_char.
15265 (set_soft_hyphen_char): New function.
15266 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
15268 * Makefile (c++tested): Give more helpful message if test fails.
15270 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
15272 * troff/input.c (init_charset_table): Translate 0240 to
15273 an unbreakable space.
15275 * troff/token.h (token::hyphen_indicator): New function.
15276 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
15278 * troff/input.c (translate): Allow translation to \%.
15279 * troff/node.c (node::add_char): Handle
15280 TRANSLATE_HYPHEN_INDICATOR.
15281 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
15283 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
15286 * tty/devlatin1/R.proto: \(hy and - should print as 055.
15288 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
15290 * groff.c (run_commands): If the last command gets a SIGPIPE send
15291 a SIGPIPE to all children than haven't yet terminated. When
15292 command terminates, set pid field to -1.
15294 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
15296 * groff.c (main): Pass an appropriate -filename option to gxditview.
15298 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
15300 * Makefile.bd (install): Remove existing program before copying.
15302 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
15303 programs which have Unix counterparts to be installed with
15304 user-specified prefix.
15306 * troff/input.c (exit_troff): Don't check if exit_started.
15307 (exit_request): Don't call exit_troff if exit_started.
15309 * Makefile.bd (install.mm): Rename to install.dwbmm.
15311 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
15313 * driver/input.c (do_file): Add missing break for '#' case.
15315 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
15317 * troff/input.c (input_stack::clear): Clear past any boundaries and
15318 then add the boundaries back.
15320 * troff/input.c (exit_troff): Return immediately if already
15323 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
15325 (pg*end-page): If the text has ended and there are no more
15326 footnotes or keeps, exit.
15328 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
15330 * troff/input.c (init_charset_table): Make \(rq transparent by
15333 * macros/tmac.an: Define lq and rq strings.
15335 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
15337 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
15339 * troff/env.c (environment::final_break): New function.
15340 (environment::newline): Set prev_line_interrupted to 2 if
15342 * troff/env.h: Declare environment::final_break.
15343 * troff/input.c (exit_troff): Call environment::final_break()
15344 instead of environment::do_break().
15346 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
15347 doesn't already exist.
15348 * macros/man.local: New file.
15349 * macros/tmac.an: Load man.local.
15350 * macros/man.ultrix: New file.
15352 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
15354 * troff/input.c (exit_groff): Rename to...
15355 (exit_troff): New function.
15357 * troff/div.c (exit_started, done_end_macro,
15358 seen_last_page_ejector): New global variables.
15359 (began_page_in_end_macro): New static variable.
15360 (exit_flag): Deleted.
15361 (top_level_diversion::top_level_diversion): Initialize
15363 (top_level_diversion): More elaborate test for whether
15364 cleanup_and_exit() should be called.
15365 Set began_page_in_end_macro if the end macro isn't yet finished.
15366 * troff/div.h (top_level_diversion::last_page_count): New data
15368 (top_level_diversion::set_last_page): New function.
15369 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
15370 * troff/env.c (do_break): Zero prev_line_interrupted.
15371 * troff/input.c (exit_flag): Delete declaration.
15372 (LAST_PAGE_EJECTOR): New magic cookie.
15373 (token::next): Handle LAST_PAGE_EJECTOR.
15374 (exit_groff): Set exit_started and done_end_macro instead of
15375 exit_flag. Call top_level_diversion::set_last_page. Push a
15376 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
15377 another ejection after setting seen_last_page_ejector.
15379 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
15381 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
15383 * macros/tmac.e (TH): Make sure there's room for the initial
15386 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
15387 Set FVS in points rather than units.
15389 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
15391 * troff/div.c (top_level_diversion::add_trap): Don't consider the
15392 position of empty slots.
15394 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
15396 * ps/devps/S: Fix height and depth of parenrightex.
15397 * ps/devps/symbol.diff: Regenerate.
15399 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
15401 * tmac.e (u): Do underlining as in -mgs.
15403 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
15405 * tty/tty.c (tty_printer::end_page): If overstriking is
15406 suppressed, still turn overstruck horizontal and vertical lines
15409 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15412 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15414 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
15416 * Version 1.05 released.
15418 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
15420 * tty/tty.c: Instead of keeping an array of glyphs and then
15421 sorting it, keep a ordered linked list of glyphs for each line.
15423 * driver/driver.h: Include stddef.h.
15425 * tty/tty.c (compare_glyph):
15426 * refer/refer.c (rcompare):
15427 * troff/env.c (compare_ranges): Arguments of qsort comparison
15428 function should be const void *.
15430 * troff/number.c (parse_term):
15431 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15434 * refer/label.y (consider_authors): Don't access variables
15435 constructed under a condition outside that condition: put braces
15436 round for statement containing declaration; redeclare use of same
15439 * pic/pic.y (text_expr): Delete production that allows
15440 parenthesised text_expr.
15441 (expr): Allow a conditional_expr to appear in parentheses.
15442 (conditional_expr): Rename to any_expr.
15444 * mm: Install new version 1.01 from jh.
15446 * lib/font.c (font::get_width): Cache scaled widths.
15447 (font::font): Initialize widths_cache.
15448 (font::~font): Destroy widths_cache.
15449 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15451 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
15453 * c++test.c, c++test.ref: New files.
15454 * Makefile: Check that the C++ compiler works.
15456 * ps/tmac.pspic (PSPIC): Do a break.
15458 * ps/tmac.ps: Move definition of PSPIC into...
15459 * ps/tmac.pspic: New file.
15460 (PSPIC): Draw box around picture, but make it invisible to grops.
15461 * ps/tmac.ps: Load tmac.pspic.
15462 * ps/Makefile: Install tmac.pspic.
15464 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
15466 * lib/font.c (scale_round): If n is negative,
15467 subtract .5 before truncating floating point result.
15469 * lib/fontfile.c: Include <errno.h>.
15471 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
15473 * driver/input.c (get_char): Inline. Don't update current_lineno.
15474 Change callers to up date current_lineno if necessary.
15475 Use get_char() instead of getc(current_file).
15477 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
15479 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15481 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
15483 * tty/tty.c (tmac.tty): Define \(rg as (R).
15485 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
15487 * lib/lib.h: New define a_delete.
15488 * Use a_delete instead of delete when deleting an array of objects
15489 without destructors.
15491 * lib/lib.h: Rename adelete to ad_delete.
15492 * Change uses of adelete.
15494 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
15496 * eqn/eqn.y: Include lib.h.
15498 * troff/node.c (grow_font_table): Delete old_font_table.
15500 * mm: Install new version from jh.
15502 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
15504 * tbl/table.h (format_type): Make global instead of local to class
15505 entry_format. Prefix enumerators with FORMAT_.
15506 * tbl/table.c, tbl/main.c: Corresponding changes.
15507 * refer/token.h (token_type): Make global. Prefix enumerators
15509 * refer/token.[ch]: Corresponding changes.
15510 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15512 * troff/div.c (node::set_vertical_size): Don't name argument.
15514 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
15516 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15517 * lib/lib.h: Define adelete accordingly.
15518 * pic/object.c (graphic_object::graphic_object):
15519 * tbl/main.c (format::~format):
15520 * tbl/table.c (table::~table):
15521 * refer/ref.c (reference::~reference, reference::merge,
15522 reference::insert_field, reference::delete_field): Use adelete.
15524 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15526 * tbl/table.h: Corresponding changes.
15528 * common.c (common_output::dashed_arc, common_output::dotted_arc):
15529 Ensure total_angle is positive.
15531 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
15533 * refer/ref.c (reference::merge, reference::insert_field,
15534 reference::delete_field): Avoid delete[0].
15536 * refer/token.c (init_special_chars): Move calls to cmupper
15537 outside calls to init_two_char_letter to work around bug in gcc
15540 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
15542 * lib/new.c (operator new): Use __builtin_new for g++.
15544 * pic/object.c (graphic_object::~graphic_object): Don't use
15547 * pic/object.c (output::compute_scale): Initialize max_width and
15550 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
15552 * troff/input.c (write_request): Call fflush.
15554 * troff/node.h (class composite_node): Move declaration to node.c
15555 * troff/input.c (charinfo_to_node): Rename to ...
15556 (charinfo_to_node_list): Return node list rather than composite
15558 * troff/node.c (make_composite_node): New function.
15559 (make_node, add_char): Call make_composite_node instead of
15561 (class composite_node): Add a tfont * member. Delete font_size
15563 (composite_node::composite_node, composite_node::copy,
15564 composite_node::size): Corresponding changes.
15565 (composite_node::tprint): Provide constant spacing, emboldening
15566 and track kerning as specified in tfont.
15567 (composite_node::width): Change width calculation accordingly.
15568 * troff/env.h (environment::composite): New member.
15569 (environment::is_composite, environment::set_composite): New
15571 * troff/env.c (environment::environment): Initialize composite.
15572 * troff/input.c (charinfo_to_node): Call
15573 environment::set_composite.
15574 * troff/node.c (make_composite_node, make_glyph_node): Use the
15575 plain version of the tfont if the environment is composite.
15577 * troff/node.c (font_info::get_space_width): Additional argument
15578 giving space_size. Handle constant space correctly. Scale by
15579 space_size unless constant spaced.
15580 (env_sentence_space_width): New function.
15581 * troff/node.h: Declare it.
15582 * troff/env.h (environment::get_space_size,
15583 environment::get_sentence_space_size,
15584 environment::get_narrow_space_width,
15585 environment::get_half_narrow_space_width): Make inline.
15586 (environment::get_space_width): Make inline. Just call
15588 * troff/env.c: Delete definitions for funtions made inline.
15589 (environment::space_newline, environment::space): Use
15590 env_sentence_space_width(). Don't scale by space_size.
15591 * troff/node.h: Move declarations of env*space_width() functions
15594 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
15596 * macros/tmac.s (PS): Don't try to set negative indent.
15598 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
15600 * pic/pic.y: Fix min function.
15602 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
15604 * man/mdate.sh: Clear LANGUAGE.
15606 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
15608 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15609 * pic/lex.c: New COMMAND keyword.
15610 * pic/pic.y (print_args, print_arg): New rules.
15611 (placeless_element): Use print_args for PRINT.
15612 New COMMAND element.
15614 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
15616 * troff/input.c (terminal): Handle missing argument correctly.
15618 * pic/pic.y (text_expr): New rule.
15620 * pic/pic.y: Implement := operator.
15622 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
15624 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15627 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
15629 * ps/devps/dingbatsrmap: Include this in the distribution.
15631 * macros/tmac.doc: Replace with new version from 2nd Networking
15632 Release. Fix loading of doc-* files.
15633 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15634 * macros/tmac.doc.old: New file. Apply fixes that had been
15635 applied to old tmac.doc.
15636 * macros/tmac.andoc: Check that we're running under groff.
15637 * macros/Makefile: Rework.
15639 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
15641 * tbl/table.h (format_type):
15642 * refer/token.h (token_type): If NESTED_TYPES is defined, use
15643 typedef to make these types visible at file scope.
15644 * Makefile: Add NESTED_TYPES configuration option.
15646 * troff/div.c (mark): At the top level use the value of
15647 nl_reg_contents rather than the current vertical position.
15649 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
15651 * tty/tty.c: Implement \D for horizontal or vertical lines.
15652 (tty_printer::set_char): Use vec_used+2 as serial number.
15653 Don't allow size of vector to exceed USHRT_MAX-2.
15654 Split off part into...
15655 (tty_printer::add_char): New function.
15656 (tty_printer::draw): New function.
15657 (compare_glyph): Handle equal serial numbers.
15658 (tty_printer::end_page): Handle overstruck characters from \D.
15659 (main, usage): Implement -d option.
15661 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
15663 * tbl/main.c (process_format):
15664 * eqn/text.c (split_text):
15665 * troff/input.c (token::next): Use inner block for declarations
15666 with initializers in switch statement.
15668 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
15670 * pic/common.c (common_output::dash_line): Cope with zero-length
15673 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
15675 * Version 1.04 released.
15677 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
15679 * macros/tmac.an (TH): Define a macro an-init to define variables
15680 based on command line arguments.
15681 (an-header): Call it.
15683 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
15685 * Makefile (install.mm): Rename to install.dwbmm.
15687 * Makefile: Integrate mm.
15688 * mm: New directory.
15690 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
15692 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15695 * pic/troff.c (troff_output::simple_spline,
15696 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15697 shadowing parameter.
15699 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15701 * lib/ptable.h: Add explicit casts when converting from unsigned
15704 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15705 * dvi/devdvi/Makefile: Install SA, SB.
15707 * refer/indxbib.c: Add declaration of mktemp.
15709 * refer/lookbib.c: Add declaration of isatty.
15711 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
15713 * pic/lex.c (interpolate_macro_with_args): While collecting
15714 arguments, keep track of whether we're in a string.
15716 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
15718 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15719 down with \v, so as to avoid problems with top of page trap
15720 setting no space mode.
15722 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
15724 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15726 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
15728 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15729 Improve error message.
15731 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
15733 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15736 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
15738 * groff.c (possible_command::execp): Always use _exit() after a
15741 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15742 NO_SYS_WAIT_H configuration options.
15743 * groff.c: Use these options. Use POSIX-style macros to extract
15744 fields from the status returned by wait().
15746 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
15748 * tbl/table.c (table::compute_separation_factor): Allow the
15749 separation factor to drop to 0.
15751 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
15753 * refer/search.c: Include <errno.h>.
15755 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
15757 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15759 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15762 * pic/lex.c (input_stack::bol): Move definition out of class body.
15764 * pic/main.c: On MSDOS munge argv[0].
15766 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15768 * lib/ptable.c (hash_string): Use unsigned long rather than
15770 (next_ptable_size): Use unsigned rather than int. Give an error
15771 message if we've hit the largest table size.
15772 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
15775 * pic/object.h (object_spec): Make flags unsigned long. Declare
15776 flags as const unisgned long rather than as enums.
15778 * pic/output.c: Deleted.
15780 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15782 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15783 Add additional argument.
15784 (line_entry::note_double_vrule_on_{left,right}): Set value of
15785 douvle_vrule_on_{right,left} flag according to argument.
15786 (simple_line_entry::simple_print,
15787 simple_line_entry::double_line_print): If adjacent to double vrule
15788 on a corner extend rather than shorten the rule by half the double
15791 * troff/number.c (parse_term): In checking for overflow, handle the
15792 case where the current horizontal position is negative.
15794 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
15796 * pic/object.c (draw_arrow): Check for object having zero length.
15798 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
15800 * eqn/main.c (do_file): Split off inline equation handling into...
15801 (inline_equation): New function. Search for starting delimiter
15803 (delim_search): New function. Don't recognize a delimiter that
15804 occurs in the name of an escape sequence, number register, string
15807 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
15809 * eqn/delim.c (delim_box::compute_metrics): Don't call
15810 define_extensible_string if left is 0.
15811 (delim_box::output): Don't print the left delimiter if left is 0.
15812 (delim_box::debug_print): Check for left == 0 before calling printf.
15814 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
15816 * troff/Makefile (majorminor.c): Include only digits in
15819 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
15821 * refer/dirnamemax.c: new file.
15822 * refer/genlimits.c: Deleted.
15823 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15824 Don't check path length.
15825 * refer/Makefile: Add dir_name_max.o; delete genlimits.
15826 * Makefile: Add PATHCONF_MISSING option.
15828 * refer/indxbib.c (get_cwd): New function.
15829 (main): Use get_cwd().
15830 * lib/getcwd.c: New file.
15831 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15832 GETCWD in SUBFLAGS.
15833 * lib/Makefile: Compile getcwd.o.
15835 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15838 * refer/indxbib.c (main): Check success of mktemp.
15840 * lib/tmpfile.c: New file.
15841 * lib/Makefile: Add tmpfile.c.
15842 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15843 * ps/ps.h: Delete declaration of mktemp().
15844 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15845 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15846 * driver/driver.h: No need now to include errno.h.
15848 * everywhere: Set errno to 0 before calling fopen().
15850 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15851 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15852 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15854 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
15856 * troff/env.h (translate_space_to_dummy): Declare it.
15857 * troff/env.c (environment::space_newline, environment::space):
15858 If translate_space_to_dummy is set then make the width of spaces 0.
15859 * troff/input.c (translate): If the second character of a
15860 translation is a space, translate to unbreakable space. If the
15861 first character is a space, set or clear translate_space_to_dummy
15862 according to whether the second character is \&. Weird!
15864 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
15866 * groff.c (run_commands): Don't use non-zero exit code because a
15867 command gets SIGPIPE.
15869 * groff.c, groff.sh: Use -mXps with -TXps.
15871 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15872 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15873 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15874 (ps_printer::special): New specials invis and endinvis.
15875 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15876 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
15877 (ps_printer::end_page): Check that invis_count == 0.
15878 (ps_printer::invis_count): New member.
15879 (ps_printer::ps_printer): Initialize invis_count to 0.
15881 * troff/env.c (environment::hyphenate_line): Hyphenation
15882 indicator at beginning of word inhibits splitting after -, \(em
15885 * pic/pic.y (element): Allow another element to follow } without
15886 any intervening separator.
15888 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
15890 * pic/lex.c (get_delimited): Allow tabs before delimiter.
15892 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
15894 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
15895 declaration of wait() in header files.
15896 * Makefile: Get rid of -DHAVE_UNION_WAIT.
15898 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15900 * lib/lib.h: Declare return type of strerror as char *.
15902 * man/Makefile: Add g flag to sed substitutions.
15903 * Makefile (shgroff, bindist): Likewise.
15905 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
15907 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15908 * ps/devps/prologue (PBEGIN): Define showpage after pushing
15911 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
15913 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15916 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
15918 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15921 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
15923 * troff/input.c (define_number_reg): If currently undefined,
15924 don't define it if the argument is an invalid expression.
15926 * Makefile: Ignore return value of `if' commands without `else'
15929 * Makefile: Split up CPPDEFINES into a series of separate
15930 configuration options.
15932 * troff/input.c (init_registers): Use time_t instead of long
15933 unless LONG_FOR_TIME_T is defined. Use returned result rather
15934 than passing pointer.
15935 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15937 * lib/Makefile (fontpath.h): Use gendef.
15939 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
15941 * troff/input.c (input_iterator::shift): Delete argument name.
15942 * troff/node.c (suppress_output_file::really_begin_page,
15943 suppress_output_file::really_transparent_char, node::ascii_print,
15944 node::tprint): Delete names of unused arguments.
15946 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
15948 * refer/label.y (string): Pass $4 to command_error.
15950 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
15952 * Version 1.03 released.
15954 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
15956 * Makefile: Pass definition of SHELL in SUBFLAGS.
15958 * gendef: New file.
15959 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15960 ps/Makefile: Use gendef to construct header files that are
15961 constructed from the Makefile.
15963 * macros/Makefile: make all should build stripped version of tmac.e.
15965 * refer/Makefile (clean): Remove y.output.
15967 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
15969 * ps/pfbtops.c (main): Add -v option which prints out a version
15971 * ps/Makefile (pfbtops): Link with libgroff.a.
15973 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
15975 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15976 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15978 * refer/lkbib.c (main): Always terminate reference with blank
15980 * refer/lookbib.c (main): Likewise.
15982 * refer/linear.c (file_buffer::load): Check that the file is not a
15985 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15986 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15987 Delete second inclusion of <sys/param.h>.
15989 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
15991 * troff/token.h (token::special): Deleted.
15993 * tbl/main.c (process_format): Rework so that opt->tab_char is
15994 recognized only when appropriate.
15996 * ps/Makefile (clean): Remove pfbtops.
15998 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
16000 * lib/font.c (text_file::next): Don't return if we have got a
16003 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
16005 * refer/refer.c (store_reference): Get hash code from old_table[i]
16006 when rehashing the table.
16008 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
16010 * eqn/box.c (box::top_level): Save size and prev size using \R and
16011 restore it afterwards. Set the size to the size at the beginning
16013 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
16014 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
16016 * refer/Makefile (limits.h): Use ./genlimits.
16018 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
16020 * refer/index.c: Delete declarations of stat() and fstat().
16022 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
16024 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
16026 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
16028 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
16030 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
16032 * troff/input.c (token::get_char): Handle \e.
16034 * refer/linear.c: Delete declarations of fstat() and stat().
16036 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
16038 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
16039 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
16041 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
16043 * troff/input.c (do_define_macro): Improve error handling for end
16044 of file while defining macro.
16046 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
16048 * eqn/box.h: Fix declaration of set_gsize.
16049 * eqn/box.c (set_gsize): Make argument const char *.
16050 (gsize): Declare as char *.
16051 * eqn/main.c (main): Don't convert gsize to int.
16052 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
16054 * Version 1.02 released.
16056 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
16058 * macros/tmac.andoc: New file.
16059 * macros/Makefile: Install tmac.andoc.
16061 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
16062 operator new and delete on OP_DELETE_BROKEN not being defined.
16063 * Makefile: Mention OP_DELETE_BROKEN.
16065 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
16067 * Makefile (bindist): Pass SUBFLAGS.
16069 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
16071 * Makefile, groff.c: Pass definitions to groff.c via device.h.
16073 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
16076 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
16078 * ps/ps.h, ps/psrm.c: Make comment_table and
16079 header_comment_table local to resource_manager::process_file.
16081 * groff.sh: With -TXps pass -printCommand option to gxditview.
16083 * groff.c (possible_command::print): Implement using
16084 append_arg_to_string.
16086 * xditview: Merge in new implementation with own ChangeLog.
16088 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
16090 * groff.c (main): Implement PRINT_OPTION.
16091 (append_arg_to_string): New command.
16092 (device_table): Set PRINT_OPTION flag for Xps.
16094 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
16096 * troff/groff.h: Rename to troff.h.
16098 * pic/lex.c (lookup_keyword, docmp): New functions.
16099 (get_token): Use new lookup_keyword.
16100 Don't include key.h.
16101 * pic/key.[ch], pic/pic.gperf: Deleted.
16102 * pic/Makefile: Remove gperf stuff.
16104 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
16106 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
16108 * troff/Makefile, troff/node.c: Move definition of
16109 STORE_WIDTH into node.c.
16111 * etc/grog.pl, etc/grog.sh: Support -mdoc.
16113 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
16115 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
16116 dvi/devdvi/texb.map: Add lq and rq.
16117 dvi/devdvi: Regenerate fonts.
16118 * ps/devps/textmap: Add lq and rq.
16119 * ps/devps: Regenerate fonts.
16120 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
16121 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
16123 * pic/object.c (position_rectangle): When checking radius
16124 cope with possiblity that width or height is negative.
16125 (box_object::box_object): Have separate xrad and yrad with
16126 signs matching signs of dim components.
16127 (box_object::{north,south}_{east,west}): Use xrad and yrad.
16128 (box_object::print): With rounded boxes use absolute values
16129 for dim and rad arguments.
16131 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
16134 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
16136 * various files: Add explicit destructors to keep Saber CC +d
16139 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
16141 * eqn/box.c (box::top_level): Restore fonts correctly after
16142 font changes in line containing inline equation. Also
16143 restore previous font as well as current font.
16144 * eqn/pbox.h: Define necessary string and register names.
16146 * troff/input.c (token::next): Case 'R' calls do_register.
16147 (do_register): New function.
16149 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
16151 * groff.c, groff.sh: Support Xps device. Allow each device
16152 to have a pseudo_name and a real_name.
16154 * groff.c (run_commands): Don't print `Broken pipe' messages.
16156 * ps/pfbtops.c: New file.
16157 * ps/Makefile: Add pfbtops.
16159 * troff/number.c (parse_term): Improved error message.
16161 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
16163 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
16165 * Makefile: Integrate refer.
16166 * refer: New directory.
16167 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
16168 man/lkbib.man: New files.
16169 * man/Makefile: Support refer man pages.
16171 * lib/lib.h: Declare is_prime.
16172 * lib/prime.c: New file.
16174 * troff/input.c (macro_source): New function.
16175 (init_input_requests): Bind "mso" to macro_source.
16177 * troff/env.c (environment::possibly_break_line): Maintain
16178 pointer to pointer to node to be split in ndp so as to avoid
16179 using address of freed node.
16181 * troff/env.c (environment::hyphenate_line): Maintain pointer to
16182 pointer to first node to be hyphenated in startp so as to
16183 avoid using address of freed node.
16185 * troff/env.c (class trie, class hyphen_trie): Make the
16186 elements of the trie be of type char not unsigned char.
16187 Declare arguments to be const char* instead of unsigned char *.
16189 * troff/env.c (hyphenate): Initialize hbuf[0].
16191 * troff/input.c (set_string): Declare p to be char * and cast
16192 *p to unsigned char when necessary.
16194 * troff/input.c (do_define_macro): Declare s to be const
16195 char*. Cast element to unisgned char when necessary, Declare
16196 d to be an int. Handle EOF better.
16198 * troff/Makefile, troff/input.c: Different scheme for passing
16199 definitions of MACROPATH, HYPHENFILE and DEVICE.
16201 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
16203 * tty/devascii/R.proto: Delete entry for em.
16204 * tty/devlatin1/R.proto: Likewise.
16206 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
16208 * troff/input.c (translate): Stop when we get a space. Treat eof
16211 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
16213 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
16215 * tbl/main.c (process_format): A font name following a `f'
16216 modifier that starts with a digit can be only one character long.
16217 Also deal with EOF on the second character of the font name.
16219 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
16221 * troff/input.c (token::next): Turn \~ into an
16222 unbreakable_space_node.
16223 * troff/node.c (unbreakable_space_node): New class.
16224 * troff/node.h: Declare it.
16226 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
16228 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
16229 it's >= 0, before outputting it as a single byte.
16231 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
16233 * lib/font.c: Make font_char_metric::code an int.
16234 (font::get_code): Change return type to int.
16235 (font::load): Allow code to be arbitrary integer.
16236 * lib/font.h (font::get_code): Change return type to int.
16237 (font::number_to_index): Change argument type to int.
16238 * troff/input.c (token::next): In case 'N', allow any value.
16239 Store value in token::val.
16240 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
16241 (token::get_char, token::add_to_node_list, token::process): Get
16243 (charinfo::set_number): Change argument to int.
16244 (charinfo::get_number): Require that NUMBERED flag be set.
16245 (get_charinfo_by_number): Store numbered characters not between 0
16246 and 255 in a dictionary.
16247 * troff/charinfo.h (get_charinfo_by_number): Change argument type
16249 (charinfo::number): Change type to int.
16250 (charinfo::set_number): Change type of set_number to int.
16251 * troff/node.c (troff_output_file::put_char_width,
16252 troff_output_file::put_char): Test whether character is numbered
16253 using charinfo::numbered().
16254 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
16256 * lib/nametoindex.c: New implementation to cope with arbitrary
16259 * troff/input.c (token::operator==): Test val for
16260 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
16263 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
16264 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
16266 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
16268 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
16271 * all Makefiles: rm targets of cp and >.
16273 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
16276 * eqn/lex.c (def_table): Add dollar.
16278 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
16280 * troff/input.c (do_width): Push back newline before closing delim
16283 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
16285 * groff.c (possible_command::prepend_arg): New function.
16286 (main): Prepend device -m option.
16287 * groff.sh: Put device -m options before command-line options.
16289 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
16291 * macros/tmac.an (IP): Quote argument to TP.
16293 * ps/ps.c (main): New option -b, which sets...
16294 (broken_flags): New variable.
16295 (ps_printer::~ps_printer): Incorporate the setup section in the
16296 prolog if (broken_flags & NO_SETUP_SECTION).
16297 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
16298 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
16299 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
16300 ps_printer::print_needed_font_comment,
16301 ps_printer::print_supplied_font_comment,
16302 ps_printer::print_include_font_comments,
16303 ps_printer::lookup_doc_font, ps_printer::download_fonts,
16304 ps_printer::read_download_file, read_document_fonts, add_font,
16305 skip_line, parse_fonts_arg, document_font::document_font,
16306 document_font::~document_font, document_font::download,
16307 ps_output::include_file): Deleted.
16308 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
16309 rather than %!PS-Adobe-2.0. Make calls to
16310 resource_manager::need_font for each font that we used. Replace
16311 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
16312 print_supplied_font_comment, print_needed_font_comment by call to
16313 resource_manager::print_header_comments. Output %%Orientation
16314 comment. Output %%Requirements: numcopies comment if ncopies > 1.
16315 Don't output the prolog directly. Instead call
16316 resource_manager::output_prolog. Only define #copies when ncopies
16317 > 1. Delete calls to print_include_font_comments and
16318 download_fonts. Add call to resource_manager::document_setup.
16319 (ps_printer::do_file): Call resource_manager::import_file instead
16320 of including it ourselves.
16321 (ps_printer::do_import): Likewise. Also don't call
16322 merge_import_fonts. Push userdict on the dictionary stack before
16323 and pop it afterwards.
16324 Move declaration of ps_output into ps.h.
16325 * ps/psrm.c: New file implementing resource_manager class.
16326 * ps/ps.h: New file declaring ps_output and resource_manager
16328 * ps/devps/zapfdr.ps:
16329 * ps/devps/symbolsl.ps:
16330 * ps/devps/prologue: Use 3.0 conventions.
16331 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
16332 Add default definition of BROKEN_SPOOLER_FLAGS.
16333 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
16334 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
16336 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
16338 * etc/grog.pl: New file.
16339 * Makefile (GROG): New variable.
16340 Add GROG to SUBFLAGS.
16341 * etc/Makefile (GROG): New variable.
16342 (install.nobin): Install $(GROG) rather than grog.sh.
16344 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
16346 * eqn/special.c (special_box::compute_metrics): Make the input and
16347 output strings the same. Get the new height and depth from the
16348 predefined height and depth registers. Also make subscript kern
16349 and skew available.
16350 (special_box::compute_subscript_kern, special_box::compute_skew):
16353 * eqn/box.c (pointer_box::compute_skew,
16354 simple_box::compute_metrics, box::top_level)
16355 * eqn/text.c (prime_box::compute_metrics,
16356 prime_box::comput_subscript_kern)
16357 * eqn/limit.c (limit_box::compute_metrics):
16358 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
16359 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
16360 negative numbers in `nr' requests with a leading 0.
16362 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
16364 * eqn/special.c: New file.
16365 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
16366 Add new rule for simple.
16367 * eqn/lex.c (token_table): Add SPECIAL.
16368 * eqn/box.h: Declare make_special_box.
16369 * eqn/Makefile: Add special.[co].
16371 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
16373 * ps/devps/prologue: Possibly set packing to true while defining.
16374 Create grops dictionary here. Initialize local variables before
16375 defining procedures.
16376 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
16377 the dictionary stack. Set strokeadjust and overprint to false if
16378 the relevant operators are defined.
16379 (PEND): New procedure.
16380 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
16381 prologue. Do everything else in the setup section.
16382 (ps_printer::do_import): Just call PBEGIN and PEND around the
16383 picture. Also push userdict before, and pop it afterwards.
16385 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
16387 * troff/node.c (bracket_node::tprint): Brackets were being printed
16390 * macros/tmac.an (SH, SS): Set fill mode.
16392 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
16394 * troff/div.c (top_level_diversion::begin_page): Set
16395 high_water_mark to 0.
16397 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
16399 * man/mdate.sh: New file.
16400 * man/mdate.c: Deleted.
16401 * man/Makefile: Use mdate.sh instead of mdate.
16404 * eqn/lex.c (do_gsize): Supply missing argument to error message.
16406 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
16408 * man/mdate.c: New file.
16409 * man/*.man: Replace modification date by @MDATE@.
16410 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16411 (mdate): New target.
16413 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16414 Remove illegal input characters.
16416 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
16418 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16420 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
16422 * troff/div.c (begin_page): Change behaviour when
16423 !first_page_begun and !break_flag.
16425 * troff/input.c (do_name_test): Return 0 if argument is empty.
16427 * troff/input.c (read_long_escape_name): Require closing ] to be
16428 at same input level as opening [.
16430 * troff/input.c (read_increment_and_escape_name): New function.
16431 (get_copy, process_input_stack): Use this for \n.
16433 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
16435 * troff/div.c (top_level_diversion::begin_page): Ignore the
16436 current value of page_number if !first_page_begun.
16438 * groff.c (main): Fix declaration of buf.
16440 * troff/input.c (do_name_test): New function.
16441 (token::next): Implement \A.
16442 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16443 (token::description, token::add_to_node_list, token::process):
16444 Handle TOKEN_ESCAPE.
16445 * troff/token.h: New token TOKEN_ESCAPE.
16447 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
16449 * pic/main.c (do_picture): Allow space before and after filename
16450 following `<'. Check that the filename is not empty.
16452 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
16454 * Version 1.01 released.
16456 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16458 * dvi/tmac.dvi: ftr HR to H.
16460 * macros/tmac.e: Round up computation of $r.
16462 * xditview/tmac.X: Don't give up completely in compatibility mode.
16463 Use \n(.s instead of \n[.s].
16465 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16466 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16467 Add u to factors inside \s[...]. Rename frac to dvi-frac.
16468 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16469 short names in the char definitions.
16471 * ps/tmac.ps: Don't give up completely in compatibility mode.
16472 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16473 quote in front of \n(.s. Add u to factors inside \s[...].
16475 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
16477 * tty/tmac.tty: Call the nroff request.
16479 * macros/tmac.e ((x, )x): Better definitions that work properly
16481 (@0, @1): Helper macros for (x.
16483 * macros/tmac.e ($s, hl): Use \l rather than \D.
16485 * tty/tmac.tty: Make it work better in compatibility mode.
16486 (pchar): Rename to tty-char.
16488 * macros/tmac.e (@E): New macro.
16489 (r, i, b, rb, bi): Use @E.
16491 * macros/tmac.e (@F): Don't use (;...) syntax.
16493 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
16494 it was modified for groff.
16496 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16498 * macros/tmac.e (<., .>): Removed.
16499 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16501 * macros/tmac.e: Remove check that groff is being used.
16503 * macros/tmac.e (@C): Change families only if using groff; turn
16504 compatibility mode off while changing familes. Save compatibility
16505 mode before changing families and restore it afterwards.
16507 * macros/tmac.e (@h): Remove test for offset + line length.
16509 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
16510 (lo, th, ac): Define to call @S instead of using als.
16512 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16513 the ratio of the vertical spacing to the point size in units
16514 expressed as a percentage. Use these instead of $10r and $10R,
16515 Delete $10r and $10R.
16517 * lib/font.c (font::load): In default computation of space_width,
16518 divide by sizescale. Use scale_round.
16520 * macros/tmac.an (TP): Don't call `nf'.
16521 (an-do-tag): Don't call `fi'.
16523 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
16525 * troff/input.c (process_input_stack): Handle the case where
16526 spaces at the beginning of an input line are followed by a
16529 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
16531 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16532 * groff.sh: Use pic -x with the dvi device.
16534 * dvi/devdvi/FontMakefile (H): Don't use -s.
16536 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16537 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16538 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16541 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
16543 * ps/psfig.diff: New file.
16544 * ps/tmac.psfig: New file.
16546 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
16548 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16549 (]-): Don't call ref*do-tl.
16551 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16553 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16554 (fn@do-FS): Rename to fn*do-FS.
16556 * troff/input.c (transparent_translate): New function.
16557 (process_input_stack): Apply transparent_translate before calling
16558 diversion::transparent_output(unsigned char).
16560 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
16562 * troff/input.c (do_define_macro): Define the macro before calling
16565 * xditview/Makefile: Add DEVICES variable. Change install target
16568 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
16570 * groff.c (run_commands): Handle the possibility that there are
16571 child processes other than those forked by us.
16573 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
16575 * lib/string.c (string::append): New function.
16576 * lib/stringclass.h: Declare it.
16578 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
16580 * eqn/main.c (main): New option -N which sets
16581 no_newline_in_delim_flag.
16582 (do_file): If no_newline_in_delim_flag is set don't allow newlines
16584 * groff.c (main): Pass -N on to eqn.
16585 (help, synopsis): Mention -N.
16586 * groff.sh: Implement -N.
16588 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
16590 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16591 (]-): Call ref*do-tl if ref*need-tl is non-zero.
16592 (XP): Allow as initializer.
16594 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
16596 * troff/env.c (environment::wrap_up_field): If field_spaces are
16597 non-zero and we have a current_tab, subtract padding from
16598 tab_distance. If this makes tab_distance <= 0, use the next tab
16599 stop instead. If there isn't any next tab or it's a left tab,
16600 wrap up the current tab.
16601 (environment::start_field): Initialize tab_precedes_field.
16602 (environment::wrap_up_tab): If there's a current field, update
16603 pre_field_width, field_distance and tab_precedes_field.
16604 * troff/env.h (environment::tab_precedes_field): New member.
16606 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
16608 * ps/ps.c (ps_printer::do_file): New function.
16609 (ps_printer::special): Bind to `file' special.
16610 (ps_printer::do_exec): Set ndefined_styles to 0.
16612 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
16614 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16615 Avoid stripping first character from the start of unrecognized
16616 escapes. Use lex_error instead of error to report errors.
16617 * eqn/lex.c (get_token): Rework handling of escapes.
16618 (lex_error): Move declaration into...
16621 * xditview/xditview.c (main): Make -page option work.
16623 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16625 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
16627 * macros/tmac.s (B2): Correct size of box.
16629 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
16631 * macros/tmac.s (B2): Postpone drawing the box until in the
16632 top-level diversion.
16634 * tty/tmac.tty: Add font translations for C, CR, CW.
16636 * groff.c (synopsis, help): Document -i.
16637 * groff.sh: Implement -i.
16639 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16640 Simplify the construction of SN.
16642 * troff/number.c (parse_term): Give `|' a higher precedence.
16643 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16646 * macros/tmac.s (B2): Use par@finish instead of par@reset.
16648 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
16650 * lib/string.c (string::move): New function.
16651 * lib/stringclass.h: Declare it.
16653 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
16655 * troff/env.c (distribute_space): Add optional argument
16657 (environment::wrap_up_field): Call distribute_space with
16658 `force_forward' argument of 1.
16660 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
16662 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16663 Inline it. Move reallocation into...
16664 (string::grow1): New function.
16665 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16666 dependencies to include library header files.
16667 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16669 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
16671 * macros/tmac.s (@NH): Use the same number registers than -ms does
16672 for the heading level counters. Use the same string that -ms does
16673 for the number for this heading.
16675 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
16677 * lib/new.c (operator new): Cast result of malloc to char *.
16679 * troff/input.c (spring_trap, lookup_request): Add assert that nm
16682 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
16684 * groff.c (main): Support -i.
16686 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
16688 * pic/pic.h: Include <osfcn.h>.
16690 * ps/ps.c: Add declaration of mktemp.
16692 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16693 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16694 argument as union wait *.
16695 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16696 argument to union wait *.
16698 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
16700 * tty/tmac.tty: Add definition of \(co.
16702 * pic/object.c (make_arc): Only increase radius when radius
16703 strictly less than d.
16704 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16707 * troff/env.c (environment::environment(symbol),
16708 environment::environment(const environment *)): Initialize
16711 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
16713 * tbl/main.c (main): Add exit(0).
16715 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16717 * pic/main.c (main):
16718 * eqn/main.c (main):
16719 * tbl/main.c (main):
16720 * etc/soelim.c (main):
16721 * driver/printer.c (printer::~printer):
16722 * troff/node.c (real_output_file::~real_output_file,
16723 real_output_file::flush): Check for errors on stdout.
16725 * most files: Add 1991 to copyright notice.
16727 * macros/tmac.s: Don't test \n(.x and \n(.y.
16729 * troff/input.c (token::next): Rename `escape_char' label to
16730 `handle_escape_char' and `normal_char' label to
16731 `handle_normal_char'.
16733 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
16735 * groff.c (main, synopsis, help): Support -a option.
16736 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
16737 to trflags while parsing options.
16739 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
16741 * troff/number.c (parse_term): With `m', `M' and `n' scale
16742 indicators, convert scale factor to hunits before scaling.
16744 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
16746 * lib/font.c (scale_round): Better test for overflow when n is
16749 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
16751 * tbl/main.c (process_format): Add second argument of type
16752 options*. Change callers. Allow opt->tab_char as well as '\t'
16753 between format items.
16755 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
16757 * macros/tmac.an (PD): With no arguments, make sure register PD is
16759 (TH): Call PD with no argument, instead of setting register PD
16762 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
16764 * Version 1.00 released.
16766 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
16768 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16770 * dvi/devdvi/DESC: Mount CW instead of CR.
16772 * dvi/tmac.dvi: Add definition of \(tm.
16774 * dvi/devdvi/texsy.map: Add lh, and rh.
16775 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16776 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16778 * dvi/devdvi/FontMakefile: Generate H from cmss10.
16779 * dvi/devdvi/Makefile: Install H.
16780 * dvi/devdvi/H: New file.
16782 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
16784 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16787 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
16789 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16791 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16793 * macros/tmac.s (@EN): Handle the case where the equation is empty
16794 but the label is not.
16796 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
16798 * troff/groff.h: New warning category WARN_SPACE.
16799 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16800 WARN_SPACE to warning_table.
16801 (interpolate_macro): Give a warning of type WARN_SPACE if the name
16802 is longer than two characters and is not defined, but the first
16803 two characters do make a defined name.
16805 * PROBLEMS: New file.
16807 * CHANGES: New file.
16808 * README-0.6, README-1.00: Deleted.
16810 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16811 * xditview/devX75/Makefile: Make devX75-12.
16812 * xditview/devX100/Makefile: Make devX100-12.
16814 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16815 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16817 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
16819 * README-0.7: Rename to README-1.00.
16821 * macros/tmac.pic: New file.
16822 * macros/Makefile (install.nobin): Install tmac.pic.
16824 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
16826 * troff/env.c (hyphen_word): Correct the test for whether the
16827 token is a hyphen. Reset npos to 0.
16829 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16831 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
16833 * macros/tmac.s (ds*common-end): Call par*reset.
16835 (par@reset-indent): Deleted.
16837 * macros/tmac.s (@IP): Divert the label.
16839 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
16841 * xditview/draw.c (setGC): Use a line width of .1m rather than
16842 .04m by default; round rather than truncate value.
16844 * tbl/table.c (class empty_entry): New class.
16845 (empty_entry::empty_entry, empty_entry::line_type): New functions.
16846 (table::add_entry): Represent empty entries by objects of type
16848 (table_entry::line_type): Return -1.
16849 (table::determine_row_type): Ignore entries with line_type 0.
16850 Treat type -1 as non-lines.
16852 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
16854 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16855 macros/tmac.s: Rename \(-d to \(Sd.
16857 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
16859 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16860 * xditview/libXdvi/DviChar.c: Likewise.
16861 * dvi/devdvi/texsy.map: Add `<<', `>>'.
16863 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
16865 * troff/div.c (top_level_diversion::begin_page): Call
16866 init_output() if the_output is 0.
16868 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
16870 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16872 (get_copy): Turn \E into ESCAPE_E.
16873 (token::process, asciify): Handle ESCAPE_E.
16875 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16877 (DS): Implement `.DS R'.
16879 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
16881 * macros/tmac.s (FS): New macro.
16883 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16885 * macros/tmac.s (cov*tl-init): Remove after first execution
16886 instead of aliasing to @nop. Call top of page macro explicitly
16887 instead of setting trap; call @init first. Set pg@top as top of
16889 (cov*auto-init): Deleted. Set cov*tl-init instead of
16890 cov*auto-init as top of page trap.
16891 (TL, LP): Do a break instead of calling cov*tl-init.
16892 (cov*print): With RP format but no TL, alias FS and FE to @FS and
16893 @FE; in this case also give a warning and always start another
16894 page. No need to set pg@top here.
16895 (cov*tl-init): Rename to cov*first-page-init.
16897 * macros/tmac.s (RP): Do `.pn 0'.
16898 (cov*tl-init): With RP format don't do `.pn 0'.
16900 * macros/tmac.s (pg@cs-top): Set no space mode.
16902 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16903 (cov*ab-init): Alias TL, AU and AI to these.
16905 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
16907 * macros/tmac.s (@EQ): Move the space before the equation into @EN
16908 (@EN): Do nothing unless \n[dl] is > 0.
16910 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
16912 * pic/object.c (ellipse_object::radius): New function.
16914 * VERSION: Change version to 0.7.
16916 * tbl/table.c (block_entry::do_divert): Declare return type as
16918 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16920 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
16922 * troff/column.c: New file.
16923 * troff/Makefile: Corresponding changes.
16925 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
16928 * troff/div.c (top_level_diversion::space): If the space causes
16929 the first-page transition and springs a trap, truncate the space
16932 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
16934 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16937 * pic/troff.c (troff_output::line_thickness,
16938 troff_output::set_fill): Do a horizontal motion to compensate for
16939 the width of the \D escape sequence.
16941 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
16943 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16946 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
16949 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16950 Supply empty definition.
16951 (text_entry::simple_print, simple_text_entry::simple_print):
16952 Delete declarations.
16953 (table::add_entry): Represent empty entries by objects of type
16956 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
16958 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16960 * tbl/table.c (left_text_entry::add_tab): New function.
16962 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
16963 initialize like LP.
16965 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
16967 * troff/env.c (environment::start_field): Give an error message if
16968 there is no next tab.
16970 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
16972 * troff/env.c (hyphenate): Skip initial elements with zero
16975 * macros/tmac.s (par@init): Keep VS in points rather than units.
16977 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
16979 * pic/main.c (main): Implement `-c' option.
16980 * pic/output.h: Declare make_tpic_output().
16981 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16983 (tpic_output): New class.
16984 (tpic_output::tpic_output, tpic_output::set_pen_size,
16985 tpic_output::command, make_tpic_output): New functions.
16987 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
16989 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
16990 if they're not already defined.
16991 * tbl/table.c (init_output): Don't test \n(.g.
16993 * troff/input.c (do_if_request): Delete `g' condition. Recognize
16994 `d', `r' and `c' conditions even in compatibility mode.
16996 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
16998 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
17001 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
17003 * troff/env.h (environment::prev_line_interrupted): New member.
17004 (environment::get_prev_line_interrupted): New function.
17005 * troff/env.c (environment::newline): Set prev_line_interrupted.
17006 (environment::environment(const environment *),
17007 environment::environment(symbol)): Initialize
17008 prev_line_interrupted.
17009 * troff/input.c (process_input_stack): Don't give special
17010 treatment to space and newline at the beginning of the line if the
17011 previous line was interrupted.
17013 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
17015 * eqn/eqn.y: Disallow PRIME by itself.
17016 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
17018 (def_table): Remove definition of '. Define prime to be `.
17020 * eqn/eqn.y: Split off part of rule `script' into a new rule
17023 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
17025 * macros/tmac.s ({, }): New string aliases.
17027 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
17029 * README-0.7: New file.
17031 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
17033 * macros/tmac.s: New file.
17034 * man/groff_ms.man: New file.
17035 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
17036 * Makefile.bd: Similarily.
17037 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
17038 definition of TMAC_S.
17039 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
17040 * macros/TODO: New file.
17042 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
17044 * troff/env.c (right_justify): New function.
17045 (init_env_requests): Bind this to request "rj".
17046 (center_lines): Set right_justify_lines to 0. If we get a bad
17047 integer, center 1 line.
17048 (environment::environment(symbol), environment::environment(const
17049 environment *)): Initialize right_justify_lines.
17050 (environment::get_right_justify_lines): New function.
17051 (init_env_requests): Bind this to number_register ".rj".
17053 * troff/env.c (environment::choose_breakpoint): Implement
17054 hyphenation_margin and hyphenation_space.
17055 (environment::get_hyphenation_space,
17056 environment::get_hyphenation_margin): New functions.
17057 (init_env_requests): Bind these to .hys and .hym.
17058 (hyphenation_space_request, hyphenation_margin_request): New
17060 (init_env_requests): Bind these to hys and hym.
17061 (environment::environment(symbol), environment::environment(const
17062 environment *)): Initialize hyphenation_margin and
17064 * troff/env.h: Corresponding changes to class environment.
17066 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
17068 * troff/div.c (blank_line): Always do a break.
17070 * eqn/box.c (do_text): Turn off escapes while appending text to
17073 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
17075 * troff/input.c (while_break_request, while_continue_request): New
17077 (init_input_requests): Bind these to "break" and "continue".
17078 (while_depth, while_break_flag): New variables.
17079 (while_request): Update while_depth. Break out of loop if
17080 while_break_flag is set.
17082 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
17084 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
17087 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
17089 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
17091 * stringify: New file.
17092 * Makefile (groff.o): Use stringify.
17094 * xditview/tmac.X: Remove definition of \(rn.
17095 * xditview/libXdvi/DviChar.c: Remove radicalex from
17098 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
17100 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
17101 (alphabetic_block_entry::alphabetic_block_entry,
17102 alphabetic_block_entry::divert, alphabetic_block_entry::print):
17104 (block_entry::divert): Split off body into ...
17105 (block_entry::do_divert): If the block is alphabetic, subtract 2n
17106 from the line length; also update the span width to dl+2n, and the
17107 alphabetic span width to dl.
17109 * driver/input.c (do_file): While reading argument to D command,
17110 when expanding buffer, multiply szp by sizeof(int) rather than 2
17111 in the argument to memcpy.
17113 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
17114 width of alphabetic columns.
17116 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
17118 * troff/node.c (lookup_family): Supply second argument to lookup.
17120 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
17121 search, return immediately if v is 0.
17123 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
17124 (troff_output::start_picture): Set this reg.
17125 (troff_output::end_picture): Remove this reg
17126 * eqn/box.c (box::extra_space): Don't produce `\x's if
17127 EQN_NO_EXTRA_SPACE_REG is defined.
17129 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
17130 * eqn/text.c (split_text): Map ' to \(fm when it's the first
17133 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
17135 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
17138 * troff/div.c (top_level_diversion::top_level_diversion):
17139 Initialize page_number to 0.
17141 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
17143 * groff/troff (environment::environment(const environment *)):
17144 Initialize name to e->name, rather than "anonymous".
17146 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
17148 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
17149 requested_page. Split middle part into ...
17150 (FindPage): New function.
17151 (SetValues): If we don't yet know the last page, and the requested
17152 page is greater than the current page, call FindPage.
17153 Update the font_map_string before doing this.
17155 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
17156 Translate \(lh and \(rh into left and right double arrows.
17158 * troff/node.c (class hyphen_inhibitor_node): New class.
17159 (hyphen_inhibitor_node::hyphen_inhibitor_node,
17160 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
17161 hyphen_inhibitor_node::type,
17162 hyphen_inhibitor_node::get_hyphenation_type): New functions.
17163 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
17164 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
17167 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
17169 * troff/node.h (dummy_node::get_hyphenation_type,
17170 transparent_dummy_node::get_hyphenation_type): Declare them.
17171 * troff/node.c: (dummy_node::get_hyphenation_type,
17172 transparent_dummy_node::get_hyphenation_type): New functions.
17174 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
17176 * xditview/libXdvi/draw.c: If M_PI not defined after including
17177 math.h, then define it.
17179 * xditview/Makefile: Add definition of AR. Pass it to the submake
17181 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
17183 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
17185 * troff/dictionary.h (object_dictionary::alias): Declare return
17187 * troff/dictionary.c (object_dictionary::alias): Return non-zero
17188 if the old name was defined.
17189 * troff/input.c (alias_macro): Give a warning if the old name was
17191 * troff/reg.c (alias_reg): Likewise.
17193 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
17195 * troff/input.c (token::next): Delete implementation of \R.
17197 * macros/Makefile: Strip comments from tmac.e while installing it.
17199 * troff/input.c: New variable `nroff_mode'.
17200 (troff_request, nroff_request): New functions.
17201 (init_input_requests): Bind `troff' and `nroff' to troff_request
17203 (do_if_request): Compute results of t and n conditions from
17206 * text/text.c (split_text): Fix typo in >=.
17208 * eqn/lex.c: Add definition of `==' to def_table.
17210 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
17212 * pic/tex.c (tex_output::start_picture): Change the definitions of
17213 \graph and \graphtemp so that they work properly with Plain TeX.
17215 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
17216 argument to `ar' is not less than the first.
17218 * pic/pic.y: Allow a comma between elements of the variable list
17219 in the argument to `reset'.
17221 * pic/object.c (arc_object::arc_object): Fix computation of
17224 * eqn/main.c (main): Add exit(0).
17226 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
17228 * troff/div.c (begin_page): Test no_space_mode after doing the
17229 break, but still push the page ejector cookie before doing the
17230 break. Also set the next page number after doing the break.
17232 * xditview/xditview.c (NewFile): Don't set the title and icon name
17233 if this is the first file and its name is `-'.
17234 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
17235 the X75 and X100 devices.
17236 (main): If a device has the XT_OPTION flag set and there's exactly
17237 one file argument, pass the driver -xrm and -title options to set
17238 the icon name and window title to the name of the file.
17240 * troff/env.c (environment_switch): If there was an argument but
17241 it wasn't a valid number or name, then pop an environment but
17242 don't give an error message on underflow.
17244 * troff/number.c (start_number): Correct spelling in error message.
17246 * troff/input.c (token::delimiter): Don't print an error message
17249 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
17250 ParseDrawFunction if dw->display_enable is true.
17252 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
17254 * pic/pic.y: Parse text positioning like normal attributes, so as
17255 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
17256 positioning attribute.
17258 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
17260 * tbl/main.c (process_data): When in state START while reading a
17261 text block, don't change to state MIDDLE if c is a newline.
17263 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
17265 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
17266 so as to avoid shadowing parameter.
17268 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
17270 * tbl/table.c (trim_space): Deleted.
17271 (table::add_entry): Don't call trim_space.
17273 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
17275 * VERSION: Change version to 0.6.
17277 * troff/number.c (parse_expr): Make == work.
17279 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
17281 * man/grog.man: New file.
17282 * man/Makefile: Add grog.n to MAN1PAGES.
17283 * etc/grog.sh: New file.
17284 * etc/Makefile: Install grog.sh as grog.
17286 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
17288 * troff/input.c (token::next): Implement \E.
17290 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
17292 * xditview/tmac.X: Change font translations to match tmac.ps.
17294 * troff/input.c (non_empty_name_warning): Don't give a warning if
17295 `\{' terminates the name.
17297 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
17299 * ps/devps/symbol.diff: New file.
17300 * ps/devps/FontMakefile: Mention symbol.diff.
17302 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
17304 * troff/node.c (font_position): Use get_long_name to read the
17307 * troff/env.c (environment_switch): If we get a number that's < 0
17308 or >= NENVIRONMENTS, treat it like a name.
17309 Change NENVIRONMENTS to 10.
17311 * troff/groff.h: Remove definition of FONTS_MAX.
17312 * troff/node.h (class font_family): Make map a pointer instead of
17313 an array. Add a map_size member. Make it a class. Make nm const
17314 and public. Make invalidate_fontno a friend.
17315 * troff/node.c: Define font_table_size. Make font_info a pointer
17316 rather than an array.
17317 (class troff_output_file): Allocate font_position dynamically. Add
17318 nfont_positions member.
17319 (troff_output_file::set_font): Grow font_position if necessary.
17320 (troff_output_file::~troff_output_file): Delete font_position.
17321 (troff_output_file::troff_output_file): Allocate font_position.
17322 (grow_font_table): New function.
17323 (troff_output_file::really_begin_page,
17324 troff_output_file:really_copy_page): Use nfont_positions rather
17326 (mount_font_no_translate, mount_style): Call grow_font_table if
17328 (font_family::font_family): Allocate map.
17329 (font_family::make_definite): Grow map if necessary. Use
17330 font_table_size instead of FONTS_MAX.
17331 (font_family::~font_family): New function.
17332 (invalidate_fontno): Use font_family::map_size.
17333 (get_fontno, env_space_width, env_half_narrow_space_width,
17334 env_narrow_space_width, symbol_fotno, is_good_fontno,
17335 get_bold_fontno, make_glyph_node): Use font_table_size rather than
17337 (next_available_font_position): Never return 0.
17339 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
17341 * ps/tmac.ps: Add font translations for compatibility with dpost.
17343 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
17345 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
17346 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
17347 Move definitions baseline_sep, shift_down, column_sep,
17348 matrix_side_sep into...
17349 * eqn/box.c: Add them to param_table.
17350 * eqn/pbox.h: Add declarations to pbox.h.
17352 * troff/input.c (set_string): Cast value to unsigned char *.
17354 * troff/token.h (process_input_stack): Declare it static before
17355 declaring it a friend.
17357 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
17359 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
17361 * dvi/devdvi/EX: Regenerate.
17363 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
17366 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
17368 * eqn/lex.c: In defaults_table, make definition of `dot' call
17369 `dot_def'. Don't explicitly make it roman. Similarily for other
17372 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
17374 (for_input::get, for_input::peek): Use this.
17375 (do_for): Add by_is_multiplicative argument.
17376 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
17377 Change semantic value of optional_by to be a double plus a flag
17378 saying whethet the by clause is multiplicative.
17380 * eqn/lex.c (get_delimited_text): Remember location of start of
17381 definition. Improve error handling when EOF is encountered.
17383 * lib/font.h: Rename handle_x_command to
17384 handle_unknown_font_command.
17385 * lib/font.c (font::load): Call handle_unknown_font_command for
17386 any unknown command in the font description file. Don't call
17387 handle_x_command. Include the name of the command in the argv.
17388 Improve message for unknown command after kernpairs or charset
17390 * ps/ps.c (ps_font::handle_x_command): Rename to
17391 handle_unknown_font_command. Remove message about `x download'
17392 command. Give error message for wrong number of arguments.
17393 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
17394 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
17395 handle_unknown_font_command. Give an error message for wrong
17396 number of arguments. Rename design_size to designsize.
17397 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
17398 checksum', `designsize' instead of `design_size'.
17400 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
17402 * eqn/*.[chy]: Change underaccent to uaccent.
17404 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
17405 give it the same precedence as ACCENT.
17406 * eqn/other.c (make_underaccent_box): New function.
17407 * eqn/box.h: Declare it.
17408 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17411 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
17413 * pic/pic.y (reset_all): New function. Called in rule for RESET.
17414 (parse_init): Call reset_all.
17415 (define_variable): When defining scale reset only those
17416 pre-defined variables that are scaled.
17417 (defaults_table): Add `scale' as non-scaled value.
17419 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17420 together with the text; allow any number of positioning words;
17421 allow center as a positioning word.
17423 * pic/object.c (output::compute_scale): Get picture maximum height
17424 and width from variables called maxpswid and maxpsht.
17425 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17427 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
17429 * pic/object.c (object_spec::make_text): Multiply textht by number
17432 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17434 (do_sprintf): New function.
17435 (pic.gperf): Add sprintf token.
17436 (text, sprintf): New rules.
17438 * pic/pic.y: `rand()' with no arguments returns a random number
17439 in the range [0,1).
17441 * pic/pic.y: Allow a bare expression to be an attribute: change
17442 precedences to support this. Change optional_ordinal rule to
17443 optional_ordinal_last to avoid reduce/reduce conflict.
17444 * pic/object.c (object_spec::object_spec): Initialize direction.
17446 * pic/pic.y: Implement ^ operator meaning exponentiation.
17448 * troff/node.h: Add default argument to mount_font.
17449 * troff/node.c (font_position): Read an optional third argument
17450 giving the external_name.
17451 (mount_font): Add optional argument giving the external_name.
17452 (mount_font_not_translate): Have additional argument giving
17453 external name. Use this name to load the font. Pass both names
17454 to font_info::font_info.
17455 (font_info::font_info): Have additional argument giving
17457 (class tfont): New member external_name.
17458 (font_info::get_tfont): Use external name to construct tfont_spec.
17460 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
17462 * eqn/lex.c (init_table): Add argument giving device. Define
17463 name of device to be "1".
17464 (do_ifdef): Counts as true if the argument has been defined with
17466 * eqn/main.c (main): Call init_table with device argument. Make
17467 device local to main.
17468 * eqn/eqn.h: Change declaration of init_table. Remove declaration
17471 * pic/lex.c (get_delimited): Allow text to be delimited by
17472 matching {}s. Don't recognize ending delimiter within a string.
17474 * troff/input.c (get_delim_name): New function.
17475 (token::next): Implement \C.
17477 * lib/font.c (font::load): Grok ---. Add an alias for each
17478 character based on its code.
17479 (font::get_code_width): Deleted.
17480 * lib/font.h (class font): Declare font::number_to_index().
17481 Remove declaration of font::get_code_width.
17482 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17483 to indices of named characters.
17484 (font::number_to_index): New function.
17485 * troff/input.c (font::number_to_index): New function.
17486 (get_charinfo_by_number, charinfo::get_number,
17487 charinfo::set_number): New functions.
17488 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17489 (token::process, token::description, token::get_char,
17490 token::add_to_node_list, token::operator==): Handle
17491 TOKEN_NUMBERED_CHAR.
17492 * troff/charinfo.h: Declare get_charinfo_by_number,
17493 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
17495 (charinfo::numbered): New function.
17496 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17497 * troff/env.h (class environment): Remove declaration of ...
17498 * troff/env.c (environment::make_numbered_char_node): Deleted.
17499 * troff/node.c (make_numbered_node): Deleted.
17500 (class numbered_glyph_node): Remove.
17501 (troff_output_file::put_char_width, troff_output_file::put_char):
17502 Handle numbered chars.
17503 (troff_output_file::numbered_char): Removed.
17504 (tfont::get_code_width): Removed.
17505 (make_glyph_node): Don't search special fonts for numbered
17507 * troff/node.h: Remove declaration of make_numbered_node.
17508 * driver/input.c (do_file): Handle N command.
17509 * driver/printer.h: Add declaration of ...
17510 * driver/printer.c (printer::set_numbered_char): New function.
17511 * dvi/tfmtodit.c (main): Generate unnamed entries.
17512 * ps/devps/afmtodit: Likewise.
17513 * xditview/xtotroff.c (MapFont): Likewise.
17514 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17516 * tbl/main.c (process_format): If multiple widths are specified
17517 for a column but all the widths are the same, don't give an error
17520 * tbl/table.c (table::do_row): If the current row is all lines and
17521 the stuff doesn't contains a line, mark the top of the row after
17522 printing stuff before the row. If the current row is not all
17523 lines and the stuff doesn't contain a line, don't unnecessarily
17524 mark the top of the row before printing the stuff.
17526 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
17528 * troff/groff.h: Remove MAX_PATH.
17529 * troff/input.c (open_file): Dynamically allocate space for the
17531 (open_mac_file, process_macro_file): Corresponding changes.
17533 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
17535 * troff/node.h (class output_file): Make copy_file pure. Add
17536 vspace method ifdef COLUMN. Add is_printing method.
17537 * troff/node.c: Add class printing_reg. Add class
17538 real_output_file. Derive other output_file classes from
17539 real_output_file; in these classes rename begin_page to
17540 really_begin_page, print_line to really_print_line, copy_file to
17541 really_copy_file, transparent_char to really_transparent_char.
17542 Move output_file::flush to real_output_file. Add printing member
17543 to class output_file.
17544 * troff/div.h: Remove printing member from top_level_diversion.
17545 Add vspace member function to class diversion ifdef COLUMN. Add
17546 some declarations ifdef COLUMN.
17547 * troff/div.c (top_level_diversion::copy_file,
17548 top_level_diversion::transparent_output,
17549 top_level_diversion::output): Don't test printing member before
17551 * troff/input.c: Handle initial variable_space_request ifdef
17553 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17554 but comment it out.
17556 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
17558 * troff/div.c (diversion::need): Make any space forced. If we
17559 sprung a trap, set truncated_space to minus the distance to the
17560 trap and set needed_space to the amount that was needed.
17561 (top_level_diversion::space): A forced space turns no_space_mode
17563 (class constant_vunits_reg): New class.
17564 (init_div_requests): Implement number registers .trunc and .ne
17565 using constant_vunits_reg.
17566 (class truncated_space_reg): Deleted.
17568 * troff/div.h: Don't have a no_space_mode member in diversion.
17569 Instead have it in top_level_diversion.
17570 * troff/div.c (diversion::diversion): Don't initialize
17572 (top_level_diversion::top_level_diversion): Initialize
17574 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17575 (macro_diversion::output): Don't clear no_space_mode.
17577 * troff/input.c (diverted_space_node::reread): Don't call
17578 environment::do_break. In fill mode, act like a blank line.
17579 (diverted_copy_file_node::reread): Don't call
17580 environment::do_break.
17582 * troff/div.c (blank_line): New function.
17583 * troff/div.h: Declare it.
17584 * troff/input.c (process_input_stack): Call it.
17586 * troff/div.c (truncated_space_reg::get_string): New function.
17587 (init_div_requests): Bind to .trunc.
17588 (space_request, top_level_diversion::space,
17589 top_level_diversion::output, macro_diversion::space,
17590 macro_diversion::output): Update truncated_space.
17591 (macro_diversion::output): Redo calculations when trap sprung.
17592 (macro_diversion::output, macro_diversion::space): No need for
17595 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17596 after truncating post line spacing.
17598 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
17600 * ps/devps/prologue (MF, SF): Make them work even if setfont is
17601 defined as a procedure rather than as an operator.
17603 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
17605 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17607 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
17609 * troff/div.c (top_level_diversion::output): Merge
17610 output_file::print_line and output_file::end_of_line member
17612 * troff/div.h (class output_file):
17613 * troff/node.c (troff_output_file::print_line,
17614 troff_output_file::end_of_line, output_file::end_of_line,
17615 ascii_output_file::print_line, suppress_output_file::print_line):
17616 Corresponding changes.
17618 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
17620 * troff/input.c (token::next): Don't give a warning for `\.'.
17622 * troff/env.c (environment::get_center_lines): New function.
17623 (init_env_requests): Bind number register .ce to it.
17624 * troff/env.h: Declare it.
17625 * tbl/table.c (table::init_output): Define reset macro to restore
17626 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
17628 (table::print): If center option not given, then imply center
17629 option if SAVED_CENTER_REG > 0.
17631 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
17633 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17634 Troff.ps from DOWNLOAD.
17636 * troff/Makefile: Change comment in DEFINES to avoid confusing
17639 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17640 code. Don't try to catch errors with stopped.
17641 (check_line_lengths): New function.
17642 * ps/devps/prologue (EXEC): Deleted.
17643 (EBEGIN, EEND): New procedures.
17645 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
17647 * troff/input.c: Include request.h before node.h.
17648 * troff/node.c: Likewise.
17649 * troff/env.c: Likewise.
17650 * troff/div.c: Likewise.
17651 * troff/node.h (class special_node): Store argument as a macro
17652 rather than a char *.
17653 * troff/node.c (special_node::special_node, special_node::copy):
17655 (special_node::~special_node): Deleted.
17656 (special_node::tprint): Deleted.
17657 (special_node::tprint_start, special_node::tprint_end,
17658 special_node::tprint_char): New functions.
17659 (troff_output_file::special): Deleted.
17660 (troff_output_file::start_special, troff_output_file::end_special,
17661 troff_output_file::special_char): New functions.
17662 * troff/input.c (special_node::tprint): New function.
17663 (do_special): Use macro not char *.
17664 (do_transparent_macro): Deleted.
17665 (token::next): Don't call do_transparent_macro.
17667 * troff/input.c (token::next): Add 'Y' case.
17668 (do_transparent_macro): New function.
17669 * troff/node.c (troff_output_file::special): Handle newlines with
17670 argument using new continuation convention.
17671 * driver/input.c (get_string): Cope with continuation convention.
17672 (do_file): Don't call skip_line after calling get_string(1).
17673 * ps/ps.c (ps_printer::special, ps_printer::do_import,
17674 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17676 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17679 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
17681 * troff/input.c (asciify): By default, illegal input characters
17682 should return empty string.
17684 * troff/input.c (copy_file): Handle first page transition like title.
17685 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17687 * troff/input.c (token::next): Improve error message for EOF after
17689 (input_char_description): New function.
17690 (get_char_for_escape_name): Use input_char_description.
17691 (token::next): Warn about unrecognized escape sequences.
17692 (warning_table): Add WARN_ESCAPE.
17693 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17696 * troff/token.h: Remove declaration of process_input_stack.
17698 * troff/input.c: Remove declaration of init_hyphen_requests.
17699 * troff/request.h: Correct spelling in declaration of same.
17701 * troff/input.c (token::next): Check whether escape_char is 0.
17703 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
17705 * groff.c (main, usage, help): Implement -P and -L options.
17706 * groff.sh: Likewise.
17708 * troff/input.c (token::next): Use some gotos to avoid code
17711 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17712 Avoid calling symbol::symbol if name empty.
17714 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
17716 * troff/input.c (init_input_requests): Make \n(.x return the major
17717 version number and \n(.y return the minor version number.
17718 * troff/Makefile: Construct file majorminor.c defining
17719 major_version and minor_version automatically from ../VERSION.
17721 * troff/node.c (class glyph_node): Make operator new and operator
17723 (class ligature_node): Similarily.
17725 * troff/input.c (operator==(const macro &, const macro &)): New
17727 (non_interpreted_node::same): Use this.
17728 (string_iterator::string_iterator): Make macro& argument const.
17730 * troff/input.c (input_iterator::get): New function. Don't make
17731 asciify_macro or class non_interpreted_node friends of class
17733 (non_interpreted_node::interpret): Use input_iterator::get.
17734 (asciify_macro): Likewise.
17736 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17737 ~non_interpreted_node): Deleted.
17738 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17741 * troff/symbol.h: Make all symbol member functions const.
17743 * lib/strtol.c: New file.
17744 * lib/Makefile: Add strtol.c.
17745 * Makefile: Define STRTOL as strtol.o to include strtol in
17748 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
17750 * pic/troff.c (troff_output::simple_circle): Divide by scale.
17752 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
17754 * troff/input.c (do_special): Use input_level.
17756 * troff/token.h (TOKEN_BACKSPACE): New token.
17757 (token::backspace): New function.
17758 * troff/input.c (token::description, token::next, token::process):
17759 Grok TOKEN_BACKSPACE.
17760 (do_special): Turn TOKEN_BACKSPACE back into \b.
17762 * troff/token.h (token::leader): New function.
17763 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17765 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17767 * troff/input.c (do_special): Use token::description in error
17770 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
17772 * troff/input.c (decode_args): Combine quoted and
17773 quote_input_level variables. Make it a for (;;) loop.
17775 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17777 * troff/input.c (read_long_escape_name): The test for whether to
17778 expand buffer was off by 1.
17779 (read_string): Similarily.
17781 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
17783 * troff/input.c: Use `const int' rather than `static const int'.
17785 * troff/div.h (diversion::copy_file): Declare as pure virtual.
17786 (macro_diversion::copy_file): New function.
17787 * troff/node.h: New class diverted_copy_file_node.
17788 * troff/node.c: Implement it.
17789 * troff/input.c (copy_file): Use diversion::copy_file. Handle
17790 first page transition by pushing a diverted_copy_file_node.
17791 * troff/input.c (token::next, process_input_stack): Don't handle
17794 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
17796 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17797 whether space widths need adjusting.
17799 * troff/charinfo.h: Generalize translated_to_space to
17800 special_translation so as to allow translation to \&.
17801 * troff/input.c (translate): Allow translation to \&.
17802 (charinfo::*): Corresponding changes.
17803 * troff/node.c (make_node, node::add_char): Corresponding changes.
17804 * troff/node.h (dummy_node::dummy_node): Allow optional first
17807 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17808 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17810 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17811 TOKEN_REQUEST with an argument of TITLE_REQUEST.
17812 (token::process): Grok that.
17813 * troff/input.c (copy_file): Handle first page transition like
17814 title by pushing a COPY_FILE_REQUEST cookie.
17815 (token::next, process_input_stack): Grok that.
17816 * troff/node.h (output_file::copy_file): Add x and y arguments.
17818 * troff/div.c (top_level_diversion::copy_file): Supply them.
17819 * troff/node.c (troff_output_file::copy_file): Add x and y
17820 arguments; moveto specified position. Invalidate font_position
17821 array after copying file.
17822 (output_file::copy_file): New function.
17823 (suppressed_output_file::copy_file, ascii_output::copy_file):
17825 * troff/input.c (transparent_file): New function.
17826 (init_input_requests): Bind to "trf".
17827 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17828 (process_input_stack): Likewise.
17830 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17832 * troff/node.c (init_node_requests): New number registers .kern
17833 pointing to global_kern_mode, and .lg pointing to
17834 global_ligature_mode.
17836 * troff/node.c (ligature): Don't change it if we get a bad
17839 * troff/input.c (do_define_string): Don't strip tabs.
17841 * troff/input.c (asciify_macro): Make the string_iterator auto.
17843 * troff/node.c (init_font_requests): Rename to...
17844 (init_node_requests):
17845 * troff/node.h: Change declaration.
17846 * troff/input.c (main): Change call.
17848 * troff/input.c (node::reread, diverted_space_node::reread): New
17850 (process_input_stack): Call reread rather than
17851 get_diverted_space_node.
17852 * troff/node.c (node::get_diverted_space_node,
17853 diverted_space_node::get_diverted_space_node): Removed.
17854 * troff/node.h: Declare reread methods instead of
17855 get_diverted_space_node methods. Make `n' member private.
17856 * troff/input.c: (token::diverted_space): Removed.
17857 * troff/token.h: Removed declaration.
17860 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
17862 * eqn/script.c (script_box::compute_metrics): Don't let
17863 SUP_RAISE_FORMAT become negative.
17865 * tbl/table.c (table::do_row): Entries that don't end in the
17866 this row shouldn't make the row non-blank.
17868 * tbl/table.c (table::make_columns_equal): Only set the width of
17869 columns which are marked as equal.
17871 * tbl/main.c (process_data): Before issuing excess data error,
17872 if last character was a newline unget it; then get it again after
17873 the error. Also include the contents of the entry in the message.
17875 * groff.c: New file.
17876 * Makefile: Build groff from groff.c. Make it possible to use
17877 either groff.sh or groff.c as groff.
17878 * Makefile.bd: Similarily.
17880 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
17882 * groff.sh: Don't delay expansion of $@ in assignment to files.
17883 Remove occurrences of \".
17885 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
17887 * all Makefiles: Simplify and rearrange.
17889 * Makefile: Handle fmod like malloc.
17890 * lib/Makefile: Similarily.
17891 * lib/fmod.c: Remove #ifdef NEED_FMOD.
17893 * Makefile: Rename OPTIMISE to OPTIMIZE.
17895 * groff.sh: Remove assignment to PATH.
17896 * Makefile: Remove SHPATH variable.
17897 * Makefile.bd: Similarily.
17899 * groff.sh: Add -V option to print the pipeline instead of
17902 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
17904 * lib/font.c: Split off file searching into ...
17905 * lib/fontfile.c: New file.
17907 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17909 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
17911 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17912 Also change misleading comment.
17913 (table::do_vspan): Change similarily misleading comment.
17914 * tbl/main.c (process_data): A format row with an explicit `s'
17915 uses up a data line, even if all the other columns are `_' or `='.
17917 * troff/input.c (token::description): Fix description of
17918 TOKEN_DUMMY and TOKEN_EMPTY.
17920 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
17922 * groff.sh: Fix description of -Z in help message.
17924 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
17926 * pic/object.c (object_spec::make_object): Allow negative and zero
17928 * pic/pic.y: Give linethick default value of -1.0.
17929 * pic/troff.c (troff_output::troff_output): Initialize
17930 last_line_thickness to BAD_THICKNESS.
17931 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17932 (troff_output::line_thickness): Canonicalize negative thicknesses
17933 to RELATIVE_THICKNESS.
17934 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17935 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17937 (tex_output::start_picture): Set pen_size to -2.0.
17939 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17940 0, then use 0 linewidth.
17941 (ps_printer::ps_printer): Initialize line_thickness to -1.
17943 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17945 * ps/devps/symbolchars: Remove `or'.
17946 * ps/tmac.ps: Implement \(or with .char.
17948 * ps/devps/symbolchars: Move most characters into textmap.
17949 * ps/devps/textmap: Add names for troff bracket characters. Remove
17952 * ps/devps/TSymbol.ps: Removed.
17953 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17954 * ps/tmac.ps: Do with .char what TSymbol did.
17955 * ps/devps/download: Remove TSymbol.
17957 * ps/devps/T: Removed.
17958 * ps/devps/Troff.ps: Removed.
17959 * ps/devps/Troff.afm: Removed.
17960 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17961 * ps/devps/download: Remove Troff.
17962 * ps/devps/FontMakefile: Remove T target.
17963 * ps/devps/DESC-A4: Remove T from font list.
17964 * ps/devps/DESC-letter: Likewise.
17966 * troff/input.c (macro_to_node): Rename to ...
17967 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
17968 character's definition while processing it.
17969 * troff/node.c (node::add_char, make_node): Change calls to
17970 macro_to_node accordingly.
17972 * troff/input.c (token::next): Translate \_ to \(ul.
17974 * tty/devascii/R.proto: Add `|'.
17975 * tty/devlatin1/R.proto: Likewise.
17977 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
17979 * man: Put the version number in all the man pages.
17981 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
17983 * Makefile.bd: New file.
17984 * README.bd: New file.
17986 * VERSION: New file.
17987 * lib/version.c: Removed.
17988 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17991 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17992 environment variable.
17994 * all Makefiles: Split install target into install.bin for
17995 binaries, and install.nobin for everything else.
17996 * Makefile: Add bindist target.
17998 * man/afmtodit.man: New file.
17999 * man/Makefile: Add afmtodit.n to MAN1PAGES.
18000 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
18002 * ps/Makefile: Pass BINDIR to make install in devps.
18004 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
18005 the space character.
18007 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
18009 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
18011 * ps/ps.c: Redo font downloading.
18012 * ps/devps/download: New file.
18013 * ps/devps/Makefile: Add download to DEVICEFILES.
18014 * ps/devps/afmtodit: Remove -d option.
18015 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
18016 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
18017 * ps/devps/zapfdr.ps: Likewise.
18018 * ps/devps/TSymbol.ps: Likewise.
18020 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
18022 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
18024 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
18026 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
18027 then strip the first line if it starts with %.
18028 * Makefile: Add a comment about this.
18030 * man/tfmtodit.man: New file.
18031 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
18032 * dvi/Makefile: Install tfmtodit in BINDIR.
18034 * dvi/tfmtodit.c (usage): Mention -v option.
18036 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
18038 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
18039 * troff/node.c (troff_output_file::transparent_char): Don't call
18042 * eqn: Add check_tabs method to most box classes.
18043 * eqn/box.c (box::top_level): Call check_tabs.
18045 * eqn/script.c (script_box::output): Use \Z.
18046 * eqn/limit.c (limit_box::output): Use \Z.
18048 * eqn/box.c (box::top_level): Use itoa.
18050 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
18052 * dvi/tmac.dvi: Add font translations for CR, C, TT.
18053 * dvi/devdvi/Makefile: Don't make links to CW.
18055 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
18057 * xditview/tmac.X: Likewise.
18059 * troff/node.c: Add font translation feature.
18060 (get_font_translation): New function.
18061 (symbol_fontno): Translate the font name.
18062 (mount_font_no_translate): Rename to mount_font to this.
18063 (mount_font): New function.
18064 (font_family::make_definite): Call mount_font_no_translate instead
18066 (mount_style): Translate the font name.
18067 (font_translate): New function.
18068 (init_font_requests): Bind "ftr" to font_translate.
18070 * ps/devps/prologue (SN): New procedure that rounds a position to
18071 the nearest (pixel + (.25,.25)).
18072 (DL): Use SN to round endpoints.
18074 * lib/version.c: Changed version to 0.5.
18076 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
18078 * Makefile: Move definition of PAGE to the very beginning, so that
18079 people are less likely to miss it.
18081 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
18083 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
18085 * troff/env.c (environment::choose_breakpoint): Make `can't find
18086 breakpoint' error a warning of type WARN_BREAK. Change message to
18087 `can't break line'.
18088 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
18090 * troff/input.c: Add WARN_BREAK to warning_table. Include
18091 WARN_BREAK in DEFAULT_WARNING_MASK.
18093 * tty/tmac.tty: Add definition of \(+-.
18095 * groff.sh: Remove `--' option to set command.
18097 * dvi/devdvi/texsy.map: Remove duplicate md entry.
18099 * ps/devps/eqnchar: Better definition of cdot using md.
18100 * dvi/devdvi/eqnchar: Likewise.
18101 * xditview/devX100/eqnchar: Likewise.
18102 * xditview/devX75/eqnchar: Likewise.
18103 * eqn/lex.c: Add definition of cdot.
18105 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
18107 * troff/input.c (get_optional_char): New function.
18108 * troff/input.c (set_page_character): Use get_optional_char(),
18109 rather than has_arg() and tok.get_char(1).
18110 * troff/env.c (tab_character, leader_character, hyphen_char,
18111 field_characters): Likewise.
18112 (margin_character): Likewise. Also always delete the
18113 margin_character_node.
18115 * troff/input.c (token::get_char): Use token::description.
18117 * troff/input.c (has_arg): Don't skip over tab and \}.
18118 * troff/number.c (start_number): Give a warning if the number
18119 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
18121 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
18123 * troff/input.c (empty_name_warning, non_empty_name_warning): New
18125 (get_name, get_long_name): Use these. Rename `warn' argument to
18128 * troff/node.c (get_fontno): Test that the symbol is not null.
18130 * troff/input.c (token::description): New function.
18131 * troff/number.c (parse_term): Use token::description in `numeric
18132 expression expected' message.
18133 * troff/groff.h: Add WARN_MISSING.
18134 * troff/number.c (start_number): New function.
18135 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
18136 get_incr_number): Use start_number().
18137 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
18139 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
18140 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
18142 * troff/input.c (token::get_char): Use WARN_MISSING.
18143 * troff/input.c (token::delimiter): Use token::description.
18144 * troff/env.c (environment_switch): Back out Aug 3 change.
18145 * troff/input.c (has_arg): Skip over \}s and tabs but give a
18147 * troff/token.h (token::tab): New function.
18148 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
18149 * troff/reg.c (alter_format): Likewise.
18150 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
18152 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
18154 * troff (most files): Redo warnings. Divide warnings into various
18155 categories; warning() has an additional first argument indicating
18156 the category it falls into.
18157 * troff/input.c (main): -w now takes an argument. New option -W.
18158 (enable_warning, disable_warning): New functions.
18160 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
18161 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
18163 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
18165 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
18166 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
18167 * xditview/devX75/eqnchar: Likewise.
18168 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
18170 * eqn/other.c: When bar or over applies to a single character
18171 don't produce an overline_box or an underline_box. Instead produce
18172 an accent_box or an underaccent_box, with the accent a line
18173 whose width is accent_width. New classes underaccent_box,
18174 overline_char_box and underline_char_box.
18175 * eqn/box.h: Move overline_box, underline_box, accent_box class
18176 declarations into eqn/other.c. Add declarations of
18177 make_underline_box, make_overline_box, make_accent_box.
18178 * eqn/eqn.y: Call make_overline_box, make_underline_box
18179 make_accent_box instead of constructors.
18180 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
18182 * eqn/other.c: Add accent_box::~accent_box.
18183 * eqn/box.h: Declare it.
18185 * groff.sh: With -Tps, use eqn -D.
18187 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
18189 (underline_box::output): Similarily.
18190 (accent_box::output): Use \Z.
18192 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
18195 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
18197 * troff/div.c (top_level_diversion::transparent_output(unsigned
18198 char)): Use asciify.
18199 * troff/input.c (asciify): Don't make it static.
18200 * troff/token.h (asciify): Declare it.
18202 * troff/input.c (get_name, get_long_name, token::get_char,
18203 token::delimiter): Add an extra default argument which says
18204 whether a warning should be printed.
18205 * troff: Pass a non-zero argument to one of these rather than
18206 printing a warning directly.
18208 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
18210 * troff: Consistently use symbol::is_null.
18212 * troff/dictionary.h: Move some inline functions into
18215 * troff/request.h: Move inline functions into input.c.
18216 (request_or_macro::invoke): Make it pure.
18218 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
18219 * troff/input.c (init_input_requests): Use class constant_int_reg.
18220 (class compatible_reg): Deleted.
18221 * troff/div.c (init_div_requests): Use class constant_int_reg.
18222 (class last_post_line_extra_space_reg): Deleted.
18224 * troff/env.c (tab_character): Don't change the tab character if
18225 we get an invalid argument.
18226 (hyphen_char): Similarily.
18228 * troff/reg.c (alter_format): Check that nm is not null.
18230 * Makefile, groff.sh: Make it possible to customize the commands
18231 used for printing PostScript and dvi files. Also make it possible
18232 to customize the path used by groff.sh.
18234 * eqn/eqn.y: Make `left' right associative.
18236 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
18238 * pic/pic.h: Added definition of M_SQRT2 for those systems that
18241 * pic/pic.h: Removed definition of INT_MAX.
18243 * troff/node.c (italic_corrected_node::vertical_extent): Omit
18246 * troff/input.c (token::next): Handle \R like \n.
18248 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
18250 * ps/tmac.pc (PSPIC): Simplify.
18252 * troff/env.c (tab_stops::to_string):
18253 * pic/pic.y (object_type_name):
18254 * pic/troff.c (simple_output::line):
18255 * pic/tex.c (tex_output::spline):
18256 * pic/object.c (object_spec::make_object):
18257 * tbl/main.c (process_data): Add cases to switch statements to
18258 avoid cfront warnings. (Some of these are spurious, since the
18259 switch already has a default case.)
18261 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
18262 `ps-'. Don't test systat; instead check number of arguments to
18265 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
18267 * macros/tmac.e: Do not decrease the page offset by 0.5i.
18269 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
18270 Unlink the file as soon as we have opened it, so that we don't
18271 have to bother with signal handlers.
18272 (handler): Deleted.
18273 (fatal_error_exit): Deleted.
18274 (main): Don't call signal.
18276 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
18278 * dvi/devdvi/Makefile: Use the -k option with S and MI.
18280 * pic/pic.y: If there is a label, or an nth construction before
18281 the first `.' in the argument to `with', ignore it and generate a
18283 * pic/lex.c (lex_warning): New function.
18285 * tbl/table.c (table::init_output): In section keep and release
18286 macro, use 0 indent when diverting and the correct indent when
18289 * troff/input.c (interpolate_number_format): Do not interpolate
18290 anything if the number register is not defined.
18292 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
18294 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
18296 * ps/devps/prologue (PICTURE): Set components of graphics state to
18297 their default values.
18299 * ps/devps/text.enc: Add trademark
18300 * ps/devps/textmap: Add names for club, spade, heart, diamond,
18301 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
18302 * ps/devps/symbolchars: Add names for summation and product.
18304 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
18305 suchthat. Add pp. Add upper-case letters.
18307 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
18308 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
18311 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
18312 rA (right angle bracket) to ra. Introduce names for double-headed
18313 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
18314 * ps/devps/textmap: Likewise for ps device.
18315 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
18316 * tty/devascii/R.proto: Rename lA to la and rA to ra.
18317 * tty/devascii/R.proto: Likewise.
18318 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
18320 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
18322 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
18324 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
18327 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
18329 * troff/div.c (when_request): Use symbol::is_null rather than
18330 has_arg to determine whether we have an argument.
18331 (change_trap): Remove the trap if we get an invalid number. Give
18332 an error if we don't get at least the macro name.
18333 (diversion_trap): Remove trap if we get an invalid name or number.
18335 * troff/env.c (environment_switch): Pop if we get an invalid
18336 symbol or numeric expression.
18338 * troff/input.c (do_define_macro): If EOF is encoutered while
18339 defining the macro, do tok.next() before returning.
18341 * troff/token.h (has_arg): Move definition from here, to ...
18342 * troff/input.c (has_arg): ... here
18344 * troff/env.c (space_size): Do nothing if we get an invalid argument.
18345 * troff/input.c (shift): Likewise.
18347 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
18350 * pic/troff.c (troff_output::start_picture): Comment out calls to
18353 * eqn/main.c (do_file): Subtract 1 from current_lineno if
18354 interpret_lf_args succeeds.
18356 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
18357 \\. This avoids problems with \$N.
18359 * groff.sh: Pass -C to preprocessors.
18361 * lib/lf.c (interpret_lf_args): Be more flexible.
18363 * tbl/main.c (main): Add -C option.
18364 (table_input::get): Do not recognize TE if followed by character
18365 other than a space or newline unless -C option given.
18366 (process_input_file): Likewise for lf, TS.
18367 (process_data): Likewise for lf in text blocks.
18369 * eqn/main.c (main): Add -C option.
18370 (do_file): Don't recognize EQ, EN or lf if followed by character
18371 other than space or newline unless -C option given.
18372 * eqn/lex.c (file_input::read_line): Similarily.
18373 * eqn/eqn.h: Declare compatible_flag.
18375 * etc/soelim.c (main): Add -C option.
18376 (interpret_lf_args): Use version in libgroff.
18379 * pic/main.c (main): Add -C option, which sets compatible_flag.
18380 (top_input::get), (top_input::peek): If -C option not given,
18381 do not recognize .PS/.PE/.PF/.lf if followed by a character
18382 other than space or newline.
18383 * pic/lex.c (file_input::read_line): Similarily.
18384 * pic/pic.h: Add declaration of compatible_flag.
18386 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
18388 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
18390 * troff/node.c, troff/node.h: Add `asciify' methods to classes
18391 derived from node. New class space_char_hmotion_node.
18392 * troff/input.c (asciify_macro): New function.
18393 * troff/input.c (init_input_requests): New request `asciify' bound
18395 * macros/mm.diff: New file.
18396 * Makefile: In install.mm target use `patch' to apply
18399 * troff/input.c (macro::print_size): Just print the size in bytes.
18401 * troff/div.c (return_request): Correct the argument
18404 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
18406 * troff/node.h (class composite_node): Add sz member.
18407 * troff/node.c (composite_node::size): Return sz.
18408 * troff/input.c (macro_to_node): Use the initial size in the
18409 environment as the size of the composite_node.
18411 * troff/node.c (node::zero_width_tprint): Provide a reasonable
18414 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
18416 * troff/div.c (change_trap): If we get a bad number expression,
18419 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
18421 * lib/matherr.c (matherr): Define this only if math.h defines
18424 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
18426 * troff/div.c (macro_diversion::distance_to_next_trap): If there
18427 no diversion trap return vunits(INT_MAX - vresolution).
18429 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
18431 * troff/input.c (do_zero_width): New implementation that doesn't
18432 use a temporary environment. Use instead:
18433 (token::add_to_node_list): New function.
18434 * troff/env.c (environment::get_prev_char_height),
18435 (environment::get_prev_char_height),
18436 (environment::get_prev_char_skew): New functions.
18437 (environment::get_prev_char): New function.
18438 (environment::get_prev_char_width): Change to use get_prev_char.
18439 (init_env_request): Implement new registers .cht, .cdp, .csk.
18440 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18441 \Z being processed in a separate environment.
18443 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
18445 * tbl/table.c: Removed TABLE_BOTTOM_REG.
18447 * tbl/table.c (table::init_output): In the section release macro,
18448 give a warning message if the section won't fit on one page.
18450 * tbl/table.c (table::do_top): Emit table keep only if table is
18452 (table::do_bottom): Likewise for table release.
18453 (table::table), (table::add_vertical_rule): Remove reference to
18455 * tbl/table.h: Remove keep member.
18457 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18458 SECTION_RELEASE_MACRO, if there's not enough space before the next
18459 trap to output the diversion, call T# ourselves, set
18460 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18461 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
18462 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
18463 vertical position and return to it before turning traps on again.
18465 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
18467 * troff/node.c, troff/node.h: In classes derived from node,
18468 replace prev_char_width method by last_char_node method.
18469 * troff/env.c (environment::get_prev_char_width): Use
18470 node::last_char_node rather than node::get_prev_char_width.
18472 * Makefile: Added comment about -fno-inline on 68030-based
18475 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18476 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18477 expressions using sizeof to int.
18478 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18480 * macros/tmac.e (TS): Don't move @f back past the current
18483 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
18485 * ps/ps.c (main): Buffer stderr.
18486 * dvi/dvi.c (main): Likewise.
18487 * tty/tty.c (main): Likewise.
18489 * ps/ps.c (ps_printer::do_import): Improve error handling.
18491 * troff/input.c (abort_request): Use asciify.
18493 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18494 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18495 type of first argument int rather than char. This works around a
18496 bug on the 68030 based Apollo using g++ 1.37.1.
18498 * tbl/table.h (class table): Add `keep' member.
18499 * tbl/table.c (table::table): Initialize `keep'.
18500 (table::add_vertical_rule): Set `keep' to 1.
18501 (table::do_top): Only emit table keep macro is `keep' is non-zero.
18502 (table::do_bottom): Likewise for table release macro.
18503 (table::do_row): Emit section keep macro even if the row is 0.
18505 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
18507 * macros/tmac.e (@C): Preserve the font family across the change
18510 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
18512 * lib/font.c: Initialize font::hor and font::vert to 1.
18513 (font::load_desc): Check the values of font::hor and font::vert.
18515 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18516 be included in a C compilation.
18517 (iftoa): Use INT_DIGITS. Include lib.h.
18519 (as_string): Likewise.
18520 * tbl/table.c: Removed definition of INT_DIGITS.
18521 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18522 * troff/input.c (input_input_requests): Likewise.
18523 * ps/ps.c (make_encoding_name): Likewise.
18524 (ps_printer::set_style): Likewise.
18525 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18527 * tty/devascii/R.proto: Map fm onto '.
18528 * tty/devlatin1/R.proto: Likewise.
18530 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
18532 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18533 argument to \w is at a different input level.
18535 * tbl/table.c (table::init_output): Define a new macro
18536 REPEATED_VPT_MACRO, like vpt but if in a diversion also
18537 transparently outputs itself.
18538 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18540 (table::do_row): Likewise.
18542 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18543 TRANSPARENT_STRING_NAME.
18545 * tbl/table.c (table::init_output): In the table release macro
18546 print an error message and don't produce any output if after
18547 issuing the need request the table still will not fit. Also
18548 remove the diversion after bringing it back.
18550 * tbl/table.c (table::init_output): Define a new macro
18551 REPEATED_MARK_MACRO, like mk but if in a diversion also
18552 transparently outputs itself.
18553 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18554 is necessary because .TH might not call .T#.
18555 (table::do_top): Likewise TOP_REG.
18556 (table::define_bottom_macro): If TOP_REG is no longer valid, use
18557 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18558 table header might contain just the two top rules.
18560 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
18562 * troff/div.c: Implement new request `ptr' to print all traps.
18564 * troff/env.c (init_env_requests): Implement `.tabs' reg with
18565 init_string_env_reg.
18566 * troff/env.c (class tab_reg): Deleted.
18568 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
18570 * troff/div.c: New number register .pn returns the number of the
18571 next page as set by the pn request.
18573 * macros/tmac.an: Redid headers and footers. Number each manual
18574 entry starting from 1 unless \nC is > 0, like Sun. Added an
18575 optional 5th argument to .TH which specifies the manual name and
18576 appears in the center of the header. Understand the X, P and D
18577 registers like Sun.
18579 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
18581 * troff/env.c (init_env_requests): New number register `.lt' to
18582 return the title length.
18584 * troff/node.h (class transparent_dummy_node): New class.
18585 * troff/node.c (class transparent_dummy_node): Provide member
18587 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18590 * troff/input.c (token::next): New escape sequence \).
18591 * troff/input.c (get_copy): Recognize \) in copy mode.
18593 * troff/input.c (input_stack::clear): New function.
18594 * troff/input.c (exit_request): Use input_stack::clear.
18596 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18597 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18599 * troff/env.c: Move set_page_character to input.c. Move
18600 page_character to input.c also.
18601 * troff/env.c (title): Split off the reading of the parts of the
18602 title into read_title_parts.
18603 * troff/input.c (read_title_parts): New function. Check the
18604 input_level when testing whether a token matches the delimiter.
18606 * troff/input.c (exit_request): New function.
18607 * troff/input.c (init_input_requests): Bind ex request to
18608 exit_request rather than exit_groff.
18610 * troff/input.c (exit_groff): Call tok.next() before
18611 process_input_stack().
18613 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
18615 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18616 * troff/env.h: ditto.
18617 * troff/input.c: ditto.
18619 * troff/env.c (environment::is_empty): Test pending_lines.
18621 * troff/env.c (environment::have_pending_lines): Removed.
18623 * troff/input.c: Add request to flush pending lines from the
18626 * troff/env.c, troff/env.h: Add automatic widow control feature.
18628 * troff/input.c (exit_groff): Do process_input_stack() after
18629 do_break() but before setting exit_flag to 2.
18631 * troff/input.c: Remove FLUSH_PENDING_LINES and
18632 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18633 environment after END_TRAP token seen, but only if there aren't
18634 any more traps still unfinished.
18635 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18637 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
18639 * troff/env.c: Rename the `retain_size' member of class
18640 pending_output_line to `no_fill'.
18642 * troff/env.c (title): When the line is output, make the
18643 retain_size argument !fill.
18645 * troff/node.h: Add `hyphenated' member to struct breakpoint.
18646 * troff/node.c (space_node::get_breakpoints),
18647 (dbreak_node::get_breakpoints): Fill this in.
18648 * troff/env.c: Allow specification of maximum number of
18649 consecutive hyphenated lines.
18651 * troff/env.c (environment::is_empty): Add test for !current_tab.
18653 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
18655 * troff/env.c (environment::hyphenate_line): Don't completely give
18656 up if the word is not to be hyphenated; continue so that breaks
18657 can be made at break_char_node's.
18659 * lib/lib.h: Only define INT_MAX if it's not already defined;
18660 undef INT_MIN if it's already defined.
18662 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18664 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18665 This works around a bug in AT&T C++ 2.0 used with an ANSI C
18668 * macros/tmac.an (an-header): Set no-space mode.
18670 * macros/tmac.an (TH): Start a new page if necessary.
18672 * Started using ChangeLog at version 0.4.
18675 version-control: never