1 2005-06-22 Werner LEMBERG <wl@gnu.org>
3 Another round in fixing getopt problems. Hopefully the last one!
4 This time we use the getopt stuff from gnulib and define a prefix
5 unconditionally so that there are no collisions with any other
6 getopt implementations. This is a slight waste of space in case
7 we already use a GNU getopt implementation, but on
8 the other hand it really simplifies life.
10 * src/include/getopt.h: Use gnulib version.
12 * src/include/getopt_int.h: Use gnulib version.
14 * src/include/groff-getopt.h: Removed. Obsolete now.
16 * src/include/lib.h: Regarding getopt, don't handle any platform
17 specially; just include getopt.h.
18 (__GETOPT_PREFIX): Define (before getopt.h).
20 * src/include/Makefile.sub (HDRS): Updated.
22 * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
25 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
28 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
29 (__GETOPT_PREFIX): Define (before getopt.h).
31 2005-06-21 Werner LEMBERG <wl@gnu.org>
33 * src/include/lib.h: Provide a fix for Mac OS X to not include
36 2005-06-20 Denis M. Wilson <dmw@oxytropis.plus.com>
38 * font/devps/prologue.ps (EP): Dont' use `bind'. Reason: Using
39 `bind' to define a procedure which contains `showpage' means that an
40 invocation of `showpage' may execute wrongly (the exact effect
41 depending on the interpreter). Not usually a problem except under
42 transformations, such as combining pages.
43 (PEND): Don't call `clear'. Reason: Using `clear' in the definition
44 of /PEND means that stack underflow will occur if the stack is
45 deliberately non-empty before document inclusion. If included
46 files are found to be generally badly behaved, we could replace the
47 `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
48 never found this necessary).
50 2005-06-20 Jörgen Grahn <jgrahn@algonet.se>
52 * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
53 earlier to get correct error message.
55 2005-06-16 Bernd Warken
57 * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
59 2005-06-15 Werner LEMBERG <wl@gnu.org>
61 Another try to update getopt files. This time we add a dummy
62 gettext.h file to satisfy the dependency.
64 * src/include/getopt.h, src/libs/libgroff/getopt.c,
65 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
67 * src/include/getopt_int.h: New file (from GNU libc CVS).
69 * src/include/gettext.h: Dummy file which just defines a gettext()
72 * src/include/groff-getopt.h: Updated.
74 * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
77 * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
78 `const' keywords in return value.
80 * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
81 Remove redundant variable `old'.
82 (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
84 * src/preproc/tbl/main.cpp (process_table): Remove redundant
88 Fix more friend name injection problems since modern C++ compilers
89 fail otherwise. We simply provide (global) declarations for all
90 functions declared as friends. This is not really necessary but
93 * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
94 peek_char, and get_location.
96 * src/preproc/refer/ref.h: Provide declarations for
97 compare_reference, same_reference, same_year, same_date,
98 same_author_last_name, and same_author_name.
100 * src/roff/troff/div.h: Provide declarations for do_divert and
103 * src/roff/troff/env.h: Provide declarations for title_length,
104 space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
105 vertical_spacing, post_vertical_spacing, line_spacing, line_length,
106 indent, temporary_indent, do_underline, do_input_trap, set_tabs,
107 margin_character, no_number, number_lines, leader_character,
108 tab_character, hyphenate_request, no_hyphenate,
109 hyphen_line_max_request, hyphenation_space_request,
110 hyphenation_margin_request, line_width, tabs_save, tabs_restore,
111 line_tabs_request, widow_control_request, and do_divert.
113 * src/roff/troff/input.cpp: Provide declaration for chop_macro.
115 * src/roff/troff/node.cpp: Provide declarations for class
117 Provide declaration for make_tfont.
119 2005-05-29 Werner LEMBERG <wl@gnu.org>
121 * doc/fdl.texi: Updated to version 1.2. Reported by Bernd Warken.
123 2005-05-28 Werner LEMBERG <wl@gnu.org>
125 * contrib/pdfmark/Makefile.sub (.ms.pdf): Use `--stylesheet', not
128 * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
129 redundant semicolons.
131 * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
132 src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
133 Define `MLIB'. Some compilers need this for linking with libgroff.
135 2005-05-27 Werner LEMBERG <wl@gnu.org>
137 * MANIFEST, README, doc/webpage.ms: Updated.
139 2005-05-26 Werner LEMBERG <wl@gnu.org>
141 * All affected files: Update postal address of FSF.
143 2005-05-25 Keith Marshall <keith.d.marshall@ntlworld.com>
146 * README: More fixes.
148 * README.CVS: Removed. Its contents is now part of the README file.
150 2005-05-21 Werner LEMBERG <wl@gnu.org>
152 * README: Updated. Based on a patch from Bernd Warken.
154 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
156 Miscellaneous script portability enhancements.
158 * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
159 generated conftest.sh script, conforming to portability
160 recommendation in autoconf docs.
161 * configure: Likewise, for code generated by GROFF_CSH_HACK.
162 * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
163 to portability recommendation in autoconf docs.
164 * contrib/gdiffmk/gdiffmk.sh: Likewise.
165 * contrib/gdiffmk/tests/runtests.in: Likewise.
166 * contrib/grap2graph/grap2graph.sh: Likewise.
167 * contrib/groffer/groffer.sh: Likewise.
168 * contrib/mm/mmroff.pl: Likewise.
169 * contrib/mom/momdoc/appendices.html: Likewise.
170 * contrib/pic2graph/pic2graph.sh: Likewise.
171 * font/devps/generate/afmname: Likewise.
172 * src/devices/xditview/ad2c: Likewise.
173 * src/preproc/eqn/neqn.sh: Likewise.
174 * src/roff/grog/grog.pl: Likewise.
175 * src/roff/grog/grog.sh: Likewise.
176 * src/roff/nroff/nroff.sh: Likewise.
177 * PROBLEMS: Likewise, in embedded script examples.
179 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
181 Improve portability of `pdfroff' shell script.
183 * arch/misc/shdeps.sh: Add space in shebang, conforming to
184 portability guidelines in `autoconf' docs.
185 (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
186 initialization code. Used by contrib/pdfmark/pdfroff.sh's
187 `searchpath' function.
189 2005-05-14 Werner LEMBERG <wl@gnu.org>
191 * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
192 contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
193 needed for newer ImageMagick versions.
195 2005-05-07 Werner LEMBERG <wl@gnu.org>
197 * src/preproc/refer/refer.man: Many small typographic fixes.
199 2005-05-06 Jeff Conrad <jeff_conrad@msn.com>
201 * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
202 Use `char *' cast for a_delete.
204 2005-05-03 Werner LEMBERG <wl@gnu.org>
206 * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
207 src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
209 2005-05-03 Jeff Conrad <jeff_conrad@msn.com>
211 * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
212 `a_delete' for `const char *'.
214 2005-05-03 Werner LEMBERG <wl@gnu.org>
216 * src/devices/grohtml/post-html.cpp,
217 src/devices/grohtml/html-table.cpp,
218 src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
219 Replace malloc/free with new/delete/a_delete.
221 * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
222 are prohibited with ANSI C++.
223 (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
224 function has a variable number of arguments).
226 * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
227 Simplify function and update all callers.
229 2005-05-02 Werner LEMBERG <wl@gnu.org>
231 Undo getopt changes from 2005-04-30. We don't want a dependency
234 * src/include/getopt_int.h: Removed.
236 * src/include/getopt.h, src/include/groff-getopt.h,
237 src/include/Makefile.sub, src/libs/libgroff/getopt.c,
238 src/libs/libgroff/getopt1.c: Revert to previous version.
241 * src/include/nonposix.h (access) [_MSC_VER]: New macro.
243 * src/include/posix.h (F_OK): Define conditionally.
245 * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
246 different variable name in second `for' loop to avoid MSVC compiler
249 2005-04-30 Werner LEMBERG <wl@gnu.org>
251 AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
253 * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
254 * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
255 * configure, src/include/config.hin: Regenerated.
262 * src/include/getopt.h, src/libs/libgroff/getopt.c,
263 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
265 * src/include/getopt_int.h: New file (from GNU libc CVS).
267 * src/include/groff-getopt.h: Updated.
269 * src/include/Makefile.sub (HDRS): Add getopt_int.h.
272 * font/devutf8/NOTES: Updated.
274 2005-04-28 Werner LEMBERG <wl@gnu.org>
276 Bug fix for Win32 relocatable code. Based on a patch from Keith
279 * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
282 * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
283 (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
285 2005-04-28 Keith Marshall <keith.d.marshall@ntlworld.com>
287 Correct `gnu.eps' handling for build from distribution tarball, with
288 separate source and build directories.
290 * doc/Makefile.sub: (examples.stamp): New target; forces copy of
291 grnexmpl.g, groff.css and gnu.eps from source to build directory;
292 generate gnu.eps from gnu.xpm if required; touch examples.stamp.
293 (prepare_examples): Make it depend on examples.stamp.
294 (CLEANADD): Add examples.stamp.
296 2005-04-27 Werner LEMBERG <wl@gnu.org>
300 position: '(' position ')'
304 * src/preproc/pic/pic.y (position, position_not_place): Handle
305 additional parentheses.
307 * doc/pic.ms: Updated.
309 2005-04-23 Larry Jones <lawrence.jones@ugs.com>
311 * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
313 2005-04-18 Werner LEMBERG <wl@gnu.org>
315 * src/roff/groff/pipeline.c: Don't include ctype.h.
317 2005-04-13 Werner LEMBERG <wl@gnu.org>
319 * src/roff/nroff/nroff.man: Document option `-M'.
321 2005-04-13 Bruce Lilly <blilly@erols.com>
323 * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
325 2005-04-01 Kees Zeelenberg <kzlg@users.sourceforge.net>
326 Werner LEMBERG <wl@gnu.org>
328 Add binary relocation support for Windows platforms.
330 * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
332 * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
334 * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
335 (search_path::search_path, search_path::open_file_cautious): Use
338 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
339 src/include/Makefile.sub (HDRS): Updated.
341 2005-04-01 Werner LEMBERG <wl@gnu.org>
343 * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
346 * src/libs/libgroff/font.cpp: Replace strdup with strsave.
348 * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
349 lib.h already does it.
351 * src/libs/libgroff/maxpathname.cpp: New file, defining
354 * src/include/lib.h: Add prototype for path_name_max.
356 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
358 * src/include/nonposix.h (PATH_EXT): New macro.
360 2005-03-28 Werner LEMBERG <wl@gnu.org>
362 Add support for double- and zero-width characters in grotty.
364 * src/devices/grotty/tty.cpp (glyph): Add width.
365 (tty_printer::make_underline, tty_printer::make_bold,
366 tty_printer::add_character): Add parameter to pass character width.
368 (tty_printer::end_page): Increase hpos by actual character width.
370 * font/devutf8/R.proto: Specify zero width for non-spacing
373 * tmac/unicode.tmac: Remove definitions for non-spacing entities.
375 * Makefile.comm (extraclean): Remove more junk files.
377 2005-03-25 Werner LEMBERG <wl@gnu.org>
379 * configure.ac: Undo change from 2005-03-24.
380 * configure: Regenerated.
382 2005-03-24 Werner LEMBERG <wl@gnu.org>
384 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
385 (dist): Search Makefile while descending into $(EXTRADIRS).
387 * doc/Makefile.in (.PHONY): Add.
388 (clean): Don't remove *.png and *.eps.
390 (realclean): Remove *.png and *.eps.
391 (extraclean): Depend on distclean.
393 * configure.ac: Add copyright.
394 Handle contrib/pdfmark/Makefile.
396 * configure: Regenerated.
398 2005-03-18 Larry Kollar <kollar@alltel.net>
400 Add numbered and definition lists to www.tmac.
402 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
403 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
404 auxiliary string registers.
405 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
406 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
407 (www-level): Removed.
408 (www-level1, www-level2, www-level3): Initialize to empty.
409 (www-level0, www-level4, www-level5, www-level6, www-level7,
410 www-level8, www-level9): New string registers.
411 (www-push-li, www-pop-li): New macros.
412 (www-push-level, www-pop-level): Renamed to...
413 (www-push-ul-level, www-pop-ul-level): This.
415 (www-push-ol-level, www-pop-ol-level): New macros.
417 (OLS, OLE, DLS, DLE): New user macros.
418 (LI): Removed. It is aliased to one of...
419 (www-li-ul, www-li-ol, www-li-dl): New macros.
421 * tmac/groff_www.man: Document new macros.
425 2005-03-18 Werner LEMBERG <wl@gnu.org>
427 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
428 doc-operating-system-NetBSD-2.0.2): New strings.
430 * tmac/groff_mdoc.man: Updated.
432 2005-03-17 Werner LEMBERG <wl@gnu.org>
434 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
436 2005-03-17 Werner LEMBERG <wl@gnu.org>
438 * src/libs/libgroff/hypot.c: Renamed to...
439 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
441 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
443 * src/include/lib.h: Updated.
445 2005-03-16 Werner LEMBERG <wl@gnu.org>
447 Add workaround for broken hypot() on Interix.
449 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
451 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
452 (CSRCS): Add `hypot.c'.
454 * src/include/lib.h: Declare `groff_hypot'.
456 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
459 * src/preproc/pic/pic.h: Don't declare `hypot'.
461 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
463 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
465 * src/devices/grohtml/post-html.cpp
466 (html_printer::lookahead_for_tables): End .ce properly to avoid a
469 2005-03-15 Werner LEMBERG <wl@gnu.org>
471 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
473 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
475 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
477 2005-03-14 Werner LEMBERG <wl@gnu.org>
479 Add Cyrillic support to devutf8 and devhtml.
481 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
483 * tmac/unicode.tmac: New file.
485 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
487 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
491 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
493 * src/libs/libdriver/printer.cpp (check_for_output_error): New
494 function. It has been introduced to catch peculiar error contexts
495 on MS-Windows platforms.
497 2005-02-28 Werner LEMBERG <wl@gnu.org>
499 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
502 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
504 * configure: Regenerated.
508 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
510 Integrate `pdfmark' into normal groff build system;
511 install macro `pdfmark' packages, build and install `pdfroff',
512 and PDF format documentation.
514 * Makefile.comm: Add PDFDOCDIR.
516 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
517 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
518 (unstall_dirs): Add pdfdocdir.
520 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
521 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
522 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
523 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
524 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
525 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
527 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
528 use of GROFF_AWK_PREFS.
529 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
530 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
532 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
533 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
534 also by modified GROFF_HTML_PROGRAMS).
536 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
538 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
540 (html_text::done_para): Unset `start_space'.
541 (html_text::remove_para_align): Call `retrieve_para_space' for the
544 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
546 (html_printer::do_check_center): Emit vertical space if necessary.
548 * src/roff/troff/env.cpp (environment_switch): Preserve
549 `seen_space', `seen_eol', and `suppress_next_eol' while switching
552 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
555 2005-02-20 Werner LEMBERG <wl@gnu.org>
557 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
560 2005-02-17 Werner LEMBERG <wl@gnu.org>
562 * doc/pic.ms, man/groff.man: Fix typos.
564 * doc/groff.texinfo: Fix typos.
565 (\LEmacro): Get proper mathematical spacing.
567 2005-02-16 Werner LEMBERG <wl@gnu.org>
569 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
570 * configure: Regenerated with autoconf 2.59b.
572 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
574 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
575 html_printer::start_font): Fix handling of preformatted text.
577 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
579 These patches modify the indentation implementation to use `<p
580 style=margin-left: n%>'. Many thanks to Peter and Larry for
581 suggesting this solution. Grohtml only uses tables for `.IP' and
582 related tags when the first operand has a short width.
584 Similarly, they modify all vertical space code. By default, grohtml
585 sets up a style sheet which uses no vertical space between `table',
586 `pre', and `p' tags. It forces spaces when it needs them using
587 `style="margin-top: 1em"'.
589 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
590 (html_table::emit_table_header, html_table::emit_new_row):
592 (html_table::set_space): New function.
593 (html_indent::html_indent): Don't set `is_used'.
594 (html_indent::begin): Rewritten.
595 (html_indent::end): Remove code in function.
597 * src/devices/grohtml/html-table.h: Updated.
598 (html_table): Make `out' public.
600 * src/devices/grohtml/html-text.cpp (html_text::html_text):
601 Initialize `start_space' with FALSE.
602 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
603 (html_text::issue_tag): Add argument to handle space style.
604 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
605 (html_text::flush_text): Don't set `start_space'.
606 (html_text::push_para): Don't set `p->really_issued'.
607 (html_text::do_emittext): Updated.
608 (html_text::do_para): Add paremeter to handle space.
610 (html_text::retrieve_para_space): New function.
612 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
613 (tag_definition): Remove `really_issued'.
614 (html_text): Updated.
616 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
617 `current_column' and `row_space'.
619 (html_printer::emit_raw, html_printer::write_header,
620 html_printer::do_indent, html_printer::do_check_center,
621 html_printer::do_tab_ts): Handle vertical space.
622 (html_printer:do_tab_te, html_printer::do_end_para): Call
624 (html_printer::do_col): Rewritten.
625 (html_printer::flush_globs): Remove debugging code.
626 (html_printer::is_line_start): New function.
627 (html_printer::start_font): Use `is_line_start'.
628 (html_printer::writeHeadMetaStyle): New function.
629 (html_printer::do_file_components, html_printer::~html_printer):
630 Call `writeHeadMetaStyle'.
632 * tmac/www.tmac (www-handle-percent): New macro.
633 (MPIMG): Handle percent values for width and height parameters.
636 * tmac/groff_www.man: Updated.
638 2005-02-14 Werner LEMBERG <wl@gnu.org>
640 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
641 $psname and $italic_angle.
642 Immediately restart file input loops if `split' returns an empty
645 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
646 Werner LEMBERG <wl@gnu.org>
648 Update afmtodit to better support Unicode (Michail).
649 Update afmtodit to use Perl 5 syntax (Werner).
651 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
653 Decorate variables with `my' where necessary.
654 Use `defined' where necessary to avoid warnings.
655 Don't use `do' for subroutine calls.
656 Other minor syntax updates.
657 Check for both `uXXXX[X[X]]' and `uniXXXX'.
658 Handle glyph variants properly.
659 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
662 * src/utils/afmtodit/afmtodit.man: Updated.
664 2005-02-13 Werner LEMBERG <wl@gnu.org>
666 Make groff.texinfo work with texinfo 4.8.
668 * doc/groff.texinfo (@Var): Use @r and @slanted.
669 (@defdummy, @Def*): Use @c to avoid empty lines.
670 (\angles): Replaced with...
671 (\Langlemacro, \Ranglemacro): New TeX macros.
672 (@Langlemacro, @Ranglemacro): New variables defined with @set.
673 (@angles): Use @Langlemacro and @Ranglemacro.
674 (\LE): Replaced with...
675 (\LEmacro): New TeX macro.
676 (@LEmacro): New variable defined with @set.
678 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
679 variables defined with @set.
680 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
681 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
686 * doc/texinfo.tex: Update to texinfo version 4.8.
688 * README.CVS: Updated.
690 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
692 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
695 2005-02-05 Werner LEMBERG <wl@gnu.org>
697 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
698 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
701 2005-02-01 Werner LEMBERG <wl@gnu.org>
703 * src/roff/groff/groff.man: Add information about paper size.
705 2005-01-25 Werner LEMBERG <wl@gnu.org>
707 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
710 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
712 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
714 (Re): Emit a warning if called without `.Rs'.
715 (doc-finish-reference): Use parameter for decreasing
716 `doc-reference-count'.
717 (doc-print-reference): Pass specific count parameters to
718 `doc-finish-reference'.
720 2005-01-21 Werner LEMBERG <wl@gnu.org>
722 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
723 Reset pointers to zero after deallocation. This fixes a crash
724 if a driver is called with multiple input files. Reported by
725 Ken Chilton <ken@chiltonfamily.org>.
727 * src/devices/grops/grops.man: Add more info on DSC.
729 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
731 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
734 2005-01-17 Werner LEMBERG <wl@gnu.org>
736 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
737 against division by zero.
739 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
741 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
743 2004-12-19 Werner LEMBERG <wl@gnu.org>
745 * install-sh: New version; taken from texinfo CVS.
747 2004-12-17 Werner LEMBERG <wl@gnu.org>
749 * tmac/devtag.tmac: Protect against loading twice.
750 Protect agains compatibility mode.
751 * tmac/www.tmac: Protect against loading twice.
752 Load `devtag.tmac' before switching off compatibility mode.
753 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
755 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
757 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
758 * configure: Updated.
760 2004-12-15 Thomas Klausner <wiz@netbsd.org>
762 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
764 2004-12-15 Werner LEMBERG <wl@gnu.org>
766 Make `test-groff' work again -- previously, wrong paths have been
767 used. Additionally, it can now be called from anywhere.
769 * test-groff.in: Don't test for groff binary. This is no longer
770 necessary since the proper paths are determined by `configure'.
771 (EXEEXT): Removed. No longer used.
772 (srcdir, builddir): Use values provided by the configure script.
773 (XENVIRONMENT): Updated.
777 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
779 Make .tag and .taga work for all devices (but only grohtml actually
782 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
783 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
784 html_printer::handle_assertion): Don't use hard-coded string
786 (html_printer::lookahead_for_table): Reset `tbl' properly if
788 (html_printer::devtag): New function, handling `devtag'.
789 (html_printer::special): Don't handle `html-tag'.
791 * src/include/printer.h, src/libs/libdriver/printer.cpp
792 (printer::devtag): New virtual function.
794 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
797 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
798 src/roff/troff/node.cpp: s/html-tag/devtag/.
800 * src/roff/troff/input.cpp (tag, taga): Always call
803 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
804 macros instead of HTML-TAG*.
806 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
808 * tmac/www.tmac: Load devtag.tmac.
809 Replace HTML-TAG* macros with DEVTAG* macros.
810 (HTML, HTML-NS): Changed definitions.
812 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
814 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
816 2004-12-10 Werner LEMBERG <wl@gnu.org>
818 Import Mike's `gdiffmk' package.
820 * contrib/gdiffmk/*: New files.
821 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
824 2004-12-08 Werner LEMBERG <wl@gnu.org>
826 Import Keith's `pdfmark' package. Integration is very preliminary.
828 * contrib/pdfmark/*: New files.
829 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
832 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
834 Fix a bug with title handling in HTML.
836 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
837 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
839 (html_printer::handle_tag_within_title): New function.
840 (html_printer::do_title): Use it.
842 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
843 (cov*tl-au-print): Emit `.eo.tl' tag.
845 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
847 * man/groff_char.man: Minor imrovements.
849 2004-12-04 Werner LEMBERG <wl@gnu.org>
851 * src/preproc/eqn/eqn.man: Revised.
853 2004-11-25 Werner LEMBERG <wl@gnu.org>
855 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
859 Remove X_NOT_STDC_ENV conditional.
860 (Version_string, program_name): New global variables.
861 (groff_flag): Removed.
863 (usage): Take a stream as argument.
866 (main): Add `long_options' array for `--help' and `--version'.
867 Make `-g' a dummy option.
868 Handle `-v' and unknown options.
869 Remove unused `position' variable.
871 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
872 (XLIBS): Add LIBGROFF.
874 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
877 * src/devices/xditview/Dvi.c (default_font_map): Split into three
878 parts to avoid compiler warning.
879 (resources): Don't initialize with `default_font_map'.
880 (ClassInitialize): Initialize first element of `resources'.
882 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
885 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
886 src/utils/pfbtops/pfbtops.man: Revised, updated.
888 * configure.ac: Generate src/utils/xtotroff/Makefile.
889 * configure: Regenerated.
891 2004-11-24 Werner LEMBERG <wl@gnu.org>
893 First fixes to get produce HTML.
895 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
898 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
899 (HR, LI): Use `HTML</p>', not `HTML'.
901 * doc/webpage.ms: Minor updates.
903 2004-11-23 Larry Kollar <kollar@alltel.net>
905 Add option -S grohtml to determine the file split level.
907 * src/devices/grohtml/post-html.cpp (split_level): New global
909 (html_header::determine_header_level): Use split_level.
910 (main): Handle `-S' command line option.
913 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
915 * src/devices/grohtml/grohtml.man: Document it.
920 2004-11-23 Y T <doarhop@hotmail.com>
922 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
923 the volume and number refer entries.
925 2004-11-22 Werner LEMBERG <wl@gnu.org>
927 * src/devices/grohtml/html-table.cpp
928 (html_table::emit_table_header): Don't emit `cols' attribute which
929 doesn't exist in HTML 4.0 and is thus invalid.
931 * NEWS: More minor fixes and updates.
933 2004-11-18 Werner LEMBERG <wl@gnu.org>
935 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
936 (HTML</p>): Minor clean-up.
938 * tmac/groff_www.man: Updated.
940 * src/devices/grohtml/grohtml.man: Revised and updated.
944 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
946 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
948 (html_printer::do_links): Fix rules generation around automatic
951 * tmac/www.tmac (LK): Use HTML-TAG-NS.
953 No longer emit empty line for non-HTML devices.
955 2004-11-17 Werner LEMBERG <wl@gnu.org>
957 * doc/Makefile.in (prepare_examples, webpage.html): Handle
960 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
961 prepare_examples, webpage.html): Handle `groff.css'.
963 2004-11-15 Werner LEMBERG <wl@gnu.org>
965 * NEWS, README, doc/webpage.ms: Updated.
967 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
969 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
971 * src/include/printer.h (printer): Remove virtual function
973 Update all source files.
975 * src/devices/grohtml/post-html.cpp (html_printer): New member
976 function `round_width'.
978 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
980 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
981 column key letter suffix.
983 2004-10-14 Werner LEMBERG <wl@gnu.org>
985 * Makefile.in (check): Depend on `site.exp' and `docheck'.
986 (docheck): Run dejagnu's `runtest' if it exists.
987 (site.exp): Create dejagnu configuration file.
989 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
991 2004-10-13 Werner LEMBERG <wl@gnu.org>
993 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
994 src/devices/grohtml/post-html.cpp (make_val,
995 html_printer::handle_state_assertion): Fix compiler warnings.
997 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
998 (diversion::diversion): Fix order of initializers.
1000 * src/roff/troff/div.h: Don't include `mtsm.h'.
1002 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
1003 (environment::environment): Fix order of initializers.
1004 (environment::make_tag, environment::construct_format_state): Fix
1007 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
1008 (input_iterator::input_iterator, macro::macro): Fix order of
1011 * src/roff/troff/mtsm.cpp: Include only necessary header files.
1012 (state_set::add, state_set::val): Fix compiler warnings.
1014 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
1015 (bool_value_state, int_value_state, units_value_state,
1016 string_value_state): Remove comma after last element which causes
1017 an error with g++ 3.3.3.
1019 * src/roff/troff/node.cpp: Include `stringclass.h'.
1020 (hline_node::hline_node, vline_node::vline_node,
1021 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
1023 (zero_width_node::zero_width_node): Fix order of initializers.
1025 * src/roff/troff/node.h: Don't include `mtsm.h'.
1026 (hmotion_node): Fix compiler warnings.
1028 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
1030 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
1032 * doc/groff.css: New file.
1034 * doc/webpage.ms: Use `groff.css'.
1037 * tmac/an-old.tmac (need_eo_h): New number register.
1038 (TH): Emit `.eo.tl' tag after title.
1039 (SH): Set `need_eo_h'.
1040 (an-trap): Handle `need_eo_h'.
1041 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
1043 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
1044 (TL): Always start diversion.
1046 (@AI): Always call `par@reset'.
1047 (@AB): Update code for -Thtml.
1048 (cov*tl-au-print): Handle -Thtml.
1049 (par@reset): Handle `need_eo_tl', `need_eo_h'.
1051 (@IT-html): Removed.
1052 (@SH): Set `need_eo_h' for -Thtml.
1053 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
1055 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
1056 Set `need_eo_h' for -Thtml.
1057 (@EQ, @EN): Don't handle -Thtml specially.
1058 (par@load-init): Don't handle -Thtml specially.
1060 * tmac/www.tmac (www:paraspace): New macro.
1061 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
1062 (HTML</p>, HTML-TAG-NEXT): New macros.
1063 (HnE): Emit tag `.eo.h' instead of break.
1064 (HR): s/HTML-NS/HTML/.
1065 (www-end-nowhere): End diversion only if `www-html' not set.
1067 (ULS, ULE): s|HTML|HTML</p>|.
1068 (LI): Call `www:paraspace'.
1071 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
1073 * src/roff/troff/request.h (macro): Make `p' public.
1074 New variable `is_a_diversion'.
1075 New member function `is_diversion'.
1078 * src/devices/grohtml/html.h (simple_output): New member function
1081 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
1082 computation of `total'.
1083 (tabs::check_init): New function.
1084 (html_table::emit_table_header): Emit style data.
1085 (html_table::insert_column): Improved.
1087 * src/devices/grohtml/html-table.h: Updated.
1089 * src/devices/grohtml/html-text.cpp (html_text::html_text):
1090 Initialize `start_space' with TRUE.
1091 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
1093 (html_text::flush_text): Set `start_space' flag.
1094 (html_text::uses_indent, html_text::remove_para_space,
1095 html_text::get_alignment): New functions.
1096 (html_text::push_para): Updated.
1097 (html_text::do_para): Check for empty argument.
1098 Don't set `space_emitted'.
1099 (html_text::do_space, html_text::emit_space): Updated.
1101 * src/devices/grohtml/html-text.h (tag_definition): New variable
1103 (html_text): New member function `uses_indent', `remove_para_space',
1106 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
1108 (simple_output:nl): Always emit `\n'.
1110 * src/devices/grohtml/post-html.cpp: Include `string.h'.
1111 (BASE_POINT_SIZE): Removed.
1112 (base_point_size, head_info): New global variables.
1113 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
1115 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
1117 (page::add_and_encode): Pass additional parameter for tag flag.
1118 (assert_pos): New structure.
1119 (assert_state): New class.
1120 (html_printer): Remove `indentation', `prev_indent'.
1121 Add variables `troff_indent', `device_indent', `temp_indent'.
1122 Add variables `seen_indent', `next_indent', `seen_pageoffset',
1123 `next_pageoffset', `seen_linelenght', `next_linelength',
1124 `seen_center', `next_center', `seen_space', `seen_break', `as'.
1125 Add member functions `do_check_center', `do_space', `do_head',
1126 `get_troff_indent', `restore_troff_indent', `handle_assertion',
1127 `handle_state_assertion', `do_end_para', `set_char_and_width'.
1128 Change argument to `do_fill' to `char *'.
1130 (html_printer::emit_raw): Call `shutdown_table'.
1132 (html_printer::do_center): Simplified.
1133 (html_printer::do_title): Improved.
1134 (html_printer::write_header): Emit one more newline.
1136 (html_printer::do_heading, html_printer::do_indent,
1137 html_printer::do_eol, html_printer::do_tab_ts,
1138 html_printer::do_tab, html_printer::do_tab0,
1139 html_printer::calc_po_in, html_printer::next_horiz_pos,
1140 html_printer::remove_courier_tabs,
1141 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
1143 (html_printer::do_linelength, html_printer::do_pageoffset,
1144 html_printer::do_indentation, html_printer::do_tempindent,
1145 html_printer::do_tab_te): Simplified.
1146 (html_printer::do_pointsize): Check whether point size is really
1147 associated a `.tl' tag.
1148 (html_printer::do_break): Rewritten.
1149 (html_printer::troff_tag): Improved.
1150 (html_printer::flush_globs): Updated.
1151 (html_printer::lookahead_for_tables): Handle `is_br'.
1153 (html_printer::set_char): Check `sbuf_style.f'.
1154 (html_printer::write_navigation): Use string comparison.
1155 (html_printer::~html_printer): Emit `head_info'.
1156 (html_printer::special): Rewritten.
1157 (get_str, make_val): New functions.
1158 (main): New option `s' to set the base point size.
1160 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
1162 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
1164 * src/roff/troff/node.cpp: New extern `debug_state'.
1165 Include `stringclass.h' and `mtsm.h'.
1166 Implement new classes and class members from `node.h'.
1167 (real_output_file): Make `fp' public.
1168 (troff_output_file): New variables `cur_div_level' and `tag_list'.
1169 Update constructors.
1170 (troff_output_file::really_print_line): Check whether we should push
1171 the current troff state and use the state at the start of the
1172 invocation of this diversion.
1173 (troff_output_file::add_to_tag_list): New member function.
1174 (node::add_char): Handle `glyph_comp_np'.
1176 * src/roff/troff/node.h: Include `mtsm.h'.
1177 (node): New variables `state', `push_state', `div_nest_level',
1178 `is_special'. Update constructors, all descendants.
1179 Pass additional argument to `add_char' member function.
1180 New virtual member functions `is_tag', `debug_node',
1181 `debug_node_list'. Update all descendants.
1182 (tag_node): New class for handling tags.
1183 (output_file): Add variable `state'.
1185 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
1187 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
1188 providing a minimal troff state machine to emit meta tags for the
1189 post-grohtml device driver.
1191 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
1194 2004-10-09 Werner LEMBERG <wl@gnu.org>
1196 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
1198 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
1200 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
1202 * src/roff/troff/div.h: Include `mtsm.h'.
1203 (diversion): New variables `any_chars_added', `needs_push',
1204 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
1205 `saved_suppress_next_eol', `modified_tag'.
1206 New virtual member function `is_diversion'. Update all descendants.
1208 * src/roff/troff/div.cpp (diversion::diversion,
1209 macro_diversion::macro_diversion): Updated.
1210 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
1211 `suppress_next_eol'.
1212 (top_level_diversion::space): Handle `curenv->seen_space'.
1213 (page_offset): Update tag handling.
1214 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
1216 * src/roff/troff/env.h (environment): Make `tabs' public.
1217 Remove `ignore_next_eol', `emitted_node'.
1218 Update `output_line', `output'.
1219 New variables `seen_space', `seen_eol', `suppress_next_eol',
1221 New member functions `construct_state', `make_tag',
1222 `construct_format_state, `construct_new_line_state,
1224 Remove `add_html_tag', `make_html_tag'.
1226 * src/roff/troff/env.cpp: New externs `suppress_push',
1227 `get_diversion_state', `global_diverted_space'.
1228 (pending_output_line): New variable `was_centered'.
1229 Update constructor and all callers.
1230 (pending_output_line::output): Call `curenv->construct_format_state'.
1231 (environment::environment, environment::copy): Updated.
1232 (environment::output): Handle `was_centered'.
1233 (environment::add_char): Handle construct and diversion state.
1234 (environment::add_node): Handle construct state.
1235 (environment::newline): Handle `was_centered'.
1236 (environment::output_line): Updated.
1237 (environment::possibly_break_line): Updated.
1238 Update tag handling.
1239 (environment::add_html_tag): Replaced with...
1240 (environment::make_tag): New function.
1241 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
1242 (environment::dump_troff_state): New debugging function.
1243 (environment::construct_state, environment::construct_format_state,
1244 environment::construct_new_line_state): New functions.
1245 (environment::do_break): Updated.
1246 Handle `global_diverted_space'.
1247 (environment::handle_tag): Update tag handling.
1248 (point_size, fill, do_break_request): Don't call `add_html_tag'.
1249 (no_fill): Don't call `add_html_tag'.
1250 Set `suppress_next_eol'.
1251 (center, right_justify, line_length, indent, temporary_indent,
1253 Update tag handling.
1255 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
1256 (input_iterator): New variables `is_diversion', `diversion_state'.
1257 Update constructors.
1258 (input_stack): New member functions `get_div_level',
1259 `get_diversion_state', `check_end_diversion'.
1260 New variables `div_level', `diversion_state'. Initialize them.
1261 (suppress_push, global_diverted_space): New global variables.
1262 (input_stack::finish_get, input_stack::finish_peek,
1263 input_stack::remove_boundary, input_stack::end_file,
1264 input_stack::clear, input_stack::pop_macro): Call
1265 `check_end_diversion'.
1266 (input_stack::push): Handle `div_level' and `diversion_state'.
1267 (get_diversion_state): New function.
1268 (diverted_space_node::reread): Handle `global_diverted_space'.
1269 (macro::macro): Update constructors.
1270 (macro::is_diversion): New function.
1271 (macro::operator=): Set `is_a_diversion'.
1272 (string_iterator): New member function `is_diversion'.
1273 (string_iterator::string_iterator): Update constructors.
1274 (string_iterator::fill): Set `div_nest_level'.
1275 (macro_iterator): New member function `is_diversion'.
1276 (do_if_request): Handle `suppress_push'.
1277 (tag, taga): New functions.
1278 (init_input_requests): Add `tag' and `taga' requests.
1280 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
1282 * src/include/font.h (font): New member function
1283 `get_image_generator'.
1284 New variables `unscaled_charwidths' and `image_generator'.
1286 * src/libs/libgroff/font.cpp (font::get_width): Always return the
1287 character's unscaled width if `font::unscaled_charwidths' is set.
1288 (font::get_image_generator): New function.
1289 (font::load_desc): Check the `unscaled_charwidths' and
1290 `image_generator' keywords.
1292 * src/libs/libgroff/fontfile.cpp: Initialize
1293 `font::unscaled_charwidths' and `font::image_generator'.
1295 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
1297 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
1299 * man/groff_font.man: Document `unscaled_charwidths' and
1302 * src/preproc/html/pre-html.cpp: Include `device.h'.
1303 (image_gen): New global variable.
1304 (imageList::createPage): Use `image_gen'.
1305 (main): Use `image_generator' keyword.
1307 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
1309 * tmac/html.tmac: Handle \[sqrtex].
1311 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
1313 * src/include/printer.h (printer): New virtual method `round_width'.
1315 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1316 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1317 src/devices/grotty/tty.cpp (printer::round_width): New function
1320 * src/devices/grohtml/post-html.cpp (printer::round_width): New
1322 (html_printer::set_numbered_char): Use it.
1324 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
1326 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1328 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1330 * configure: Regenerated.
1332 * Makefile.in (GHOSTSCRIPT): New variable.
1333 (MDEFINES): Add GHOSTSCRIPT.
1335 2004-10-03 Werner LEMBERG <wl@gnu.org>
1337 * INSTALL.gen: Updated (taken from texinfo CVS).
1339 2004-09-28 Werner LEMBERG <wl@gnu.org>
1343 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1345 * tmac/groff_www.man: Revised and updated.
1347 2004-09-26 Werner LEMBERG <wl@gnu.org>
1349 Fix \$@ and \$* to handle any number of arguments.
1351 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1354 * src/roff/troff/input.cpp (input_iterator::internal_level):
1356 (input_stack): New member functions `increase_level' and
1358 (input_stack::get_level): Don't use `internal_level'.
1359 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1360 (end_quote_iterator): Completely removed.
1361 (interpolate_arg): Build string for \$@ and \$* which is then
1362 pushed onto the input stack.
1364 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
1366 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1369 2004-09-23 Werner LEMBERG <wl@gnu.org>
1371 * tmac/an-old.tmac (ne): Using default scaling operator.
1373 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1375 This change implements the following features:
1378 New numeric register: Defines number of lines following LP, PP,
1379 QP, IP or XP, which must be kept together, before any automatic
1380 page break. If insufficient space remains on the current page, a
1381 page break is forced before the new paragraph begins.
1384 New numeric register: Sets number of lines of following paragraph
1385 which must be kept with a heading, defined by NH or SH, before any
1386 automatic page break. If insufficient space remains on the
1387 current page, a page break is forced before the heading.
1390 (Thanks to Joerg van den Hoff, for this idea).
1392 New numeric register: Sets the first level of heading (set with
1393 NH), which will keep the same point size as body text; e.g. if
1394 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1395 point size specified by \n[PS], but .NH 2 and .NH 1 will have
1396 progressively larger point sizes, determined by \n[PSINCR] (see
1400 New numeric register: Sets the point size increment for each level
1401 of heading, (set with NH), below the threshold level set by
1402 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1403 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1404 and all other levels will remain at 10pt, (because \n[PS] = 10).
1407 Existing macro now accepts a numeric argument, to make heading
1408 size match that of NH with same argument value, when the
1409 GROWPS/PSINCR feature is enabled.
1412 New string, set by NH macro, replaces the existing (undocumented)
1413 use of SN, to represent the assigned section number.
1416 New string, set by NH macro, represents the assigned section
1417 number, but omits the terminal period (periods at intermediate
1418 levels are retained).
1421 String set by NH macro, originally undocumented, now implemented
1422 as an alias for SN-DOT (which reproduces original behaviour).
1424 * tmac/s.tmac (PORPHANS): New register.
1425 (par*start): Use it.
1426 (HORPHANS, GROWPS, PSINCR): New registers.
1427 (SH-NO-TAG, @SH): Use them.
1430 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1432 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1433 of `Ds' and `De' macros.
1435 2004-09-10 Werner LEMBERG <wl@gnu.org>
1437 In tbl, handle \a as an interpreted leader character if in
1440 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1441 LEADER_CHAR): New macros.
1442 (compatible_flag): New declaration.
1444 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1445 LEADER_3, and LEADER_4 to `state'.
1446 (table_input::get): Handle `\a'.
1448 * src/preproc/tbl/table.cpp (PREFIX): Removed.
1449 (LEADER_REG): New macro.
1450 (table::init_output): Define LEADER_REG string register if in
1453 * src/preproc/tbl/tbl.man: Document it.
1455 2004-08-18 Werner LEMBERG <wl@gnu.org>
1457 * tmac/doc.tmac (An): Fix error message.
1459 2004-08-06 Werner LEMBERG <wl@gnu.org>
1461 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1462 file can't be opened. UNIX tbl has the same behaviour.
1464 2004-08-05 Y T <doarhop@hotmail.com>
1466 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1467 (DBRead): If in compatibility mode, take into account the text
1468 when computing figure boundaries.
1470 2004-08-05 Werner LEMBERG <wl@gnu.org>
1472 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
1473 from Tadziu Hoffmann.
1475 2004-08-03 Werner LEMBERG <wl@gnu.org>
1477 * doc/meref.me: Document `_M' register.
1479 2004-08-03 Martin Husemann <martin@duskware.de>
1481 Make hpftodit work correctly on big-endian systems.
1483 * src/utils/hpftodit/hpftodit.cpp (File): New method
1484 `get_uint32(char *)'.
1485 (entry): New member `orig_value'.
1486 (read_tags): Use new method.
1487 (output_font_name, read_and_output_pcltypeface, dump_ascii):
1490 2004-08-01 Werner LEMBERG <wl@gnu.org>
1492 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
1493 are already in X11's `macros.t' file.
1495 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
1497 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1499 (read_and_output_pcltypeface): Handle strings with length <= 4.
1501 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
1503 * tmac/s.tmac (pg@top): Don't save `PO' register.
1504 (pg*end-col, pg*end-page): Directly use `PO' register.
1506 2004-07-27 Werner LEMBERG <wl@gnu.org>
1508 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1510 * src/preproc/refer/refer.cpp (output_references): Check for
1512 * src/preproc/refer/refer.man: Improve documentation of
1513 `bibliography' command.
1515 2004-07-26 Werner LEMBERG <wl@gnu.org>
1517 Add requests `fcolor' and `gcolor'.
1519 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1521 (init_env_requests): Add `fcolor' and `gcolor'.
1523 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1525 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1526 Document new requests.
1528 2004-07-24 Werner LEMBERG <wl@gnu.org>
1530 Add support for fractional point sizes in ms macros. A value for
1531 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1532 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
1534 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1535 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1537 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1539 2004-07-19 Werner LEMBERG <wl@gnu.org>
1541 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1543 (do_for, for_input::get, for_input::peek): Handle negative `by'.
1544 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1546 2004-07-08 Thomas Klausner <wiz@netbsd.org>
1548 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1549 * tmac/groff_mdoc.man: Updated.
1551 2004-07-05 Werner LEMBERG <wl@gnu.org>
1553 * doc/groff.texinfo: Further improve documentation of `hcode'.
1555 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
1557 Improve appearance of arrows in pic.
1559 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1561 Use two line segments for drawing non-filled arrow head.
1562 (line_object::print, spline_object::print): Shorten line length to
1563 avoid arrow sticking.
1564 (arc_object::print): Take arrow direction into account.
1566 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1568 * tmac/groff_www.man: Update documentation of .MPIMG.
1570 2004-07-03 Werner LEMBERG <wl@gnu.org>
1572 * tmac/an-old.tmac (RI): Always start with font `R'.
1573 (RI, IR): Properly end with font `R'.
1575 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
1577 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1578 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1579 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1580 Don't pass more than six arguments to .R, .I, .B, etc., for
1581 compatibility with traditional troff macros.
1583 2004-07-02 Werner LEMBERG <wl@gnu.org>
1585 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1586 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1588 (PUSH_COMP_MODE): New internal character constant.
1591 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1592 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1593 (token::next, macro::append): Handle PUSH_COMP_MODE.
1594 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1595 POP_GROFFCOMP after each of the decoded arguments to make them
1596 independent from the compatibility mode status.
1597 (comp_mode): Add `COMP_ENABLE'.
1598 (do_define_string, do_define_macro): Handle COMP_ENABLE.
1599 (define_string, append_string, define_macro, define_indirect_macro,
1600 append_macro, append_indirect_macro): Handle `compatible_flag'.
1601 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1603 * man/groff_diff.man, doc/groff.texinfo: Updated.
1605 2004-07-01 Werner LEMBERG <wl@gnu.org>
1607 * doc/groff.texinfo: Improve documentation of `hcode'.
1608 Use @documentencoding and convert document to latin-1; to do that
1609 make latin characters active and assign proper macros (within a
1610 @tex...@end tex environment).
1611 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1612 * doc/Makefile.sub (groff): Ditto.
1614 2004-06-29 Werner LEMBERG <wl@gnu.org>
1616 Implement two new conditional operators `F <name>' and `S <name>'
1617 which check whether <name> is a valid font or style, respectively.
1619 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1620 (text_file::text_file): Updated.
1621 (text_file::error): Don't emit message if `silent' is set.
1622 (font::load_font): Add optional third argument (which is directly
1624 (font::load): Add optional second argument to check the header of
1625 a font only, without emitting warning or error messages.
1626 * src/include/font.h (font): Updated.
1628 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1630 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1631 fourth argument to check a font without mounting.
1632 (check_font, check_style): New functions.
1633 * src/roff/troff/node.h: Updated.
1635 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1638 2004-06-27 Werner LEMBERG <wl@gnu.org>
1640 Implement new string-valued register `.sty' to return the current
1643 * env.cpp (environment::get_style_name_string): New function.
1644 (init_env_requests): Add `.sty' register.
1645 * env.h (environment): Updated.
1646 * node.cpp (font_info): Make `get_style_name' a friend.
1647 (get_style_name): New function.
1650 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1653 2004-06-15 Werner LEMBERG <wl@gnu.org>
1655 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1658 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
1660 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1661 and \n[mo] to avoid dependency on current date.
1663 2004-06-08 Werner LEMBERG <wl@gnu.org>
1665 * Makefile.sub (install_data): New target.
1667 2004-06-04 Werner LEMBERG <wl@gnu.org>
1669 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1671 2004-06-03 Werner LEMBERG <wl@gnu.org>
1673 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1675 (install_data): Add $(srcdir).
1677 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1680 2004-06-02 Werner LEMBERG <wl@gnu.org>
1682 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1683 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1684 Add test for Xmu library.
1685 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1686 GROFF_APPRESDIR_DEFAULT): New macros.
1688 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1689 and GROFF_APPRESDIR_DEFAULT.
1691 * configure: Regenerated.
1693 * Makefile.in (appresdir): New variable.
1694 (MDEFINES): Add appresdir.
1696 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1698 (install_data, uninstall_sub): New targets to handle GXditview.ad.
1700 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1701 `$(srcdir)/eign', not `eign'.
1703 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1705 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1706 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1707 Protect (g)xditview with `\%' to avoid hyphenation.
1708 Other minor formatting.
1710 2004-06-01 Werner LEMBERG <wl@gnu.org>
1712 Integrate gxditview into groff's standard directory hierarchy.
1714 * src/xditview/*: Moved to ...
1715 * src/devices/xditview/*: Here.
1716 Moved DviChar.h and XFontName.h to src/include.
1717 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1718 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1719 Moved xtotroff.c to new directory src/utils/xtotroff.
1720 Provide proper Makefile.sub files (reusing the stuff from
1722 DESC renamed to DESC.in.
1723 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1724 Converted everything from K&R to ANSI C.
1725 Decorated with const where appropriate.
1726 Cast string constants with `String' and `char *' where appropriate.
1727 Made it compile with C++ (used as a C compiler).
1728 Removed other minor compiler warnings.
1730 * src/devices/xditview/device.c: Include config.h, string.h, and
1732 Don't declare `exit', `strtok', `strchr', and `getenv'.
1735 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1738 * src/devices/xditview/xditview.c: Include config.h.
1739 Include stdio.h earlier.
1740 Protect declaration of `popen' and `pclose' with
1741 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1742 Replace `caddr_t' with `XtPointer'.
1743 (MakePromptFunc): New typedef.
1744 (DoPrint): Use RETSIGTYPE.
1745 (promptfunction): Change type to MakePromptFunc.
1746 (MakePrompt): Use MakePromptFunc for third argument.
1749 * src/devices/xditview/ad2c: Add casts to `String'.
1751 * src/include/XFontName.h (XFontNameString): Don't use array
1753 Add prototypes for `XParseFontName', `XFormatFontName',
1754 `XCompareFontName', and `XCopyFontName'.
1756 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1759 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1760 Don't declare `XParseFontName' and `XFormatFontName'.
1762 (main): Remove `optind' and `optarg'.
1764 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1765 (to select programs which need X).
1766 Make XDEVIDIRS depend on `FORCE'.
1767 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1769 (MDEFINES): Updated.
1770 (LIBDIRS): Use XLIBDIRS.
1771 (CPROGDIRS): Use XPROGDIRS.
1772 (DEVDIRS): Remove font directories for gxditview.
1773 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1774 (EXTRADIRS): Remove src/xditview.
1776 * Makefile.sub (DISCLEANFILES): Updated.
1778 * Makefile.comm (LIBXUTIL): New variable.
1779 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1780 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1782 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1784 * aclocal.m4 (GROFF_X11): New function.
1786 * configure.ac: Call GROFF_X11.
1787 Don't create src/xditview/Imakefile.
1788 Don't emit notice how to build gxditview.
1790 * configure: Regenerated.
1792 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1794 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
1796 * Makefile.in (CPPFLAGS): Define.
1797 (MDEFINES): Add CPPFLAGS.
1799 2004-05-27 Werner LEMBERG <wl@gnu.org>
1801 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1803 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
1805 Fix problems with `friend name injections'.
1807 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1808 make_script_box), src/roff/troff/div.h (end_diversions),
1809 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1812 2004-05-25 Bernd Warken <bwarken@mayn.de>
1814 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1816 2004-05-25 Werner LEMBERG <wl@gnu.org>
1818 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1819 src/libs/libgroff/color.cpp: Include lib.h.
1821 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
1823 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1824 through Forte 6u1, and for how to get GNU make on Solaris.
1826 2004-05-24 Werner LEMBERG <wl@gnu.org>
1828 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
1831 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
1833 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1836 2005-05-14 Werner LEMBERG <wl@gnu.org>
1838 * REVISION: Set to 2.
1840 * aclocal.m4 (GROFF_STDINT_H): Removed.
1841 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1843 * configure.ac: Updated.
1844 * configure, src/include/config.hin: Regenerated.
1846 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1847 inttypes.h conditionally.
1849 2003-05-13 Werner LEMBERG <wl@gnu.org>
1851 Version 1.19.1 released
1852 =======================
1854 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
1856 * src/preproc/refer/label.y (same_author_last_name,
1857 same_author_name): Handle empty sort keys.
1859 2004-05-10 Werner LEMBERG <wl@gnu.org>
1861 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1864 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1865 doc-str-Lb-librt): Reset font.
1866 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1867 Provide `doc-str-Lb' to reset font.
1868 * tmac/groff_mdoc.man: Updated.
1870 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
1872 * src/preproc/html/pre-html.cpp (make_message): Make it work for
1873 snprintf versions which don't conform to ANSI C 99 (this is,
1874 counting the string's trailing null byte in the return value).
1876 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
1878 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1879 that all implementations of sprintf handle null pointers correctly.
1881 2004-05-04 Werner LEMBERG <wl@gnu.org>
1883 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1884 Document `.U' register.
1886 * src/roff/troff/env.cpp (environment::mark_last_line)
1887 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1889 2004-05-04 Larry Kollar <kollar@alltel.net>
1891 New read-only register `.U'; it returns 1 in safer mode and 0
1894 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1897 2004-05-03 Werner LEMBERG <wl@gnu.org>
1899 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1901 2004-04-17 Werner LEMBERG <wl@gnu.org>
1903 * src/include/font.h (font): Use `int' for ch_index.
1904 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1905 font::compact): Updated.
1907 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1910 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1911 (hyphen_word): Fix compiler warnings.
1912 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1915 (get_delim_number, get_line_arg): Change second argument type to
1917 (macro_header::copy, token::next, do_define_string,
1918 do_define_character, substring_request, asciify_macro,
1919 unformat_macro, read_size, non_interpreted_node::interpret,
1920 while_request, main: Fix compiler warnings.
1921 (read_color_draw_node): Initialize `col'.
1923 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1924 `start_col' and `end_col' of type `int'.
1925 (vertical_rule): Make `col' of type `int'.
1927 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1930 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1932 (format_serial): Use them to remove dependency on ASCII.
1934 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1936 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1939 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1941 (glyph): Change type of `hpos' to `int'.
1943 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
1944 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1946 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1948 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1950 2004-04-16 Werner LEMBERG <wl@gnu.org>
1952 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1953 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1954 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1955 `double' instead of `float' everywhere.
1956 * src/preproc/grn/main.cpp: Use `double' instead of `float'
1958 (main): Add return value.
1959 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1961 Update all user functions.
1963 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1964 src/preproc/eqn/box.h, src/preproc/pic/object.h,
1965 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1966 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1967 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1968 src/roff/troff/input.cpp, src/roff/troff/request.h,
1969 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1972 * src/utils/indxbib/signal.c: Include stdlib.h.
1974 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1976 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1977 before the first page.
1979 2004-04-14 Thomas Klausner <wiz@netbsd.org>
1981 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1982 (doc-operating-system-*): Updated.
1983 * tmac/doc-syms (doc-str-St-*): Various small fixes.
1984 (doc-str-Lb-*): Add more library names.
1986 2004-04-10 Art Haas <ahaas@airmail.net>
1988 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1991 2004-04-09 Art Haas <ahaas@airmail.net>
1993 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1995 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
1997 * arch/misc/shdeps.sh: Generate better comment for sed script.
1999 2004-04-08 Art Haas <ahaas@airmail.net>
2001 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
2002 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
2003 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
2004 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
2005 (polyfill), src/preproc/grn/main.cpp (polyfill),
2006 src/preproc/refer/command.cpp (command_table),
2007 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
2008 gcc 3.5 doesn't like).
2010 2004-04-08 Werner LEMBERG <wl@gnu.org>
2012 Removing many compiler warnings. groff should now compile with
2013 a C++ compiler used for C files also. [Simple variable renamings
2014 to avoid shadowing aren't logged in detail.]
2016 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
2017 (draw_dvi_printer::draw) ['c']: Enclose in block.
2019 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
2020 (page::add_line): Fix typos.
2021 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
2023 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
2024 Some local variable renamings.
2025 * src/devices/grolbp/lbp.h: Some local variable renamings.
2027 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
2030 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
2031 Remove redundant local variable declaration.
2032 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
2033 Don't use `caddr_t' but `void *'.
2034 Enclose functions with `extern "C"' for C++.
2036 * src/libs/libdriver/input.cpp (remember_filename,
2037 remember_source_filename): Use cast for string constant.
2039 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
2040 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
2041 src/libs/libgroff/geometry.cpp: Some local variable renamings.
2042 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
2044 Enclose functions with `extern "C"' for C++.
2045 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
2046 (needs_quoting): Return `int'.
2047 (quote_arg): Add proper casts to malloc and realloc.
2048 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
2049 various MS Windows environments.
2050 (spawnvp_wrapper): Add proper cast to malloc.
2052 * src/preproc/eqn/box.h: Remove redundant declarations of
2053 `make_script_box', `make_mark_box' and `make_lineup_box'.
2054 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
2055 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
2058 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
2059 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
2060 (dx, dy): Renamed functions to...
2061 (deltax, deltay): This.
2062 * src/preproc/grn/main.cpp: Some local variable renamings.
2063 (deffont): Add `const'.
2064 (initpic, conv): Use cast for string constant.
2066 * src/preproc/html/pre-html.cpp: Some local variable renamings.
2067 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
2068 (char_buffer::run_output_filter): Second argument is unused.
2069 * src/preproc/html/pushback.cpp: Some local variable renamings.
2071 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
2072 * src/preproc/pic/object.cpp: Some local variable renamings.
2074 * src/preproc/refer/label.y (lookup_label): Remove redundant
2075 declaration of local variable.
2077 * src/preproc/soelim.cpp: Remove redundant declaration of
2078 `interpret_lf_args'.
2080 * src/preproc/tbl/main.cpp: Some local variable renamings.
2082 * src/roff/groff/groff.cpp (main): Use cast for string constant.
2083 * src/roff/groff/pipeline.c: Enclose declarations of `error',
2084 `c_fatal', and `i_to_a' with `extern "C"' for C++.
2085 Don't use C++-style comments.
2087 * src/roff/troff/env.h: Remove redundant declaration of `title'.
2088 * src/roff/troff/node.h, src/roff/troff/env.cpp,
2089 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
2091 * src/roff/troff/div.h: Remove redundant declaration of
2093 * src/roff/troff/troff.h: Remove redundant declaration of
2095 * src/roff/troff/input.cpp: Remove redundant declaration of
2096 `handle_first_page_transition' and `process_input_stack'.
2098 * src/utils/hpftodit.cpp: Some local variable renamings.
2100 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
2102 Don't define RETSIGTYPE.
2103 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
2105 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
2106 (error): Use `const' in argument.
2107 (main): Remove redundant declaration of `optind'.
2108 Move declaration of `Version_string' to top-level.
2110 * PROBLEMS: Document difficulties compiling signal.c if a C++
2111 compiler is used for C.
2113 2004-04-07 Werner LEMBERG <wl@gnu.org>
2115 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
2117 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
2119 Make scripts like nroff.sh and neqn.sh portable across various
2120 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
2121 non-POSIX path separators. The idea is to extend those scripts to
2122 decide at run-time (of the script) which path separator to use.
2124 * arch/misc/Makefile.sub: New file.
2125 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
2126 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
2127 a proper definition of the variable `GROFF_RUNTIME'.
2129 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
2130 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
2131 (PROGDEPDIRS): New variable.
2133 (PROGDIRS): Add PROGDEPDIRS.
2135 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
2136 Don't substitute @SEP@ and @BINDIR@.
2137 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
2138 (PATH): Use GROFF_RUNTIME.
2140 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
2141 Don't substitute @SEP@ and @BINDIR@.
2142 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
2143 (PATH): Use GROFF_RUNTIME.
2145 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2147 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
2148 Cygwin which doesn't handle stderr correctly.
2150 2004-03-08 Werner LEMBERG <wl@gnu.org>
2152 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
2153 against empty argument. Problem reported by <cgd@broadcom.com>.
2155 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2157 * Makefile.in (SEP): Replaced with...
2158 (RT_SEP, SH_SEP): Separators for the target platform's native path
2159 separator and the build environment, respectively.
2160 (fontpath, tmacpath): Use RT_SEP.
2161 (MDEFINES): Updated.
2163 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2164 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2165 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
2166 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
2168 2004-03-05 Werner LEMBERG <wl@gnu.org>
2170 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
2171 reduce alignment problems with newer printers which use built-in
2172 TrueType fonts (instead of the older Intellifonts). The ideal
2173 solution is to provide a second set of groff metric files, but this
2174 is extremely time-consuming to produce, given that HP's metric
2175 files are very rudimentary.
2177 2004-03-01 Werner LEMBERG <wl@gnu.org>
2179 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
2180 s/operand/argument/ in error message.
2182 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2184 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
2187 2004-03-01 Antti Kantee <pooka@netbsd.org>
2189 * tmac/s.tmac (XE): Fix error message.
2191 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
2193 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
2196 * src/roff/groff/pipeline.c: Declare strcasecmp.
2197 (run_pipeline) [_WIN32]: Use function name variants which don't
2199 Fix stream handling.
2201 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
2203 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
2204 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
2205 for platforms which use the native Win32 runtime libraries.
2206 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
2208 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
2209 QUOTE_ARG_REALLOC_ERROR): Fix string.
2211 * src/preproc/html/pre-html.cpp: Remove declaration of
2213 Don't use __MINGW32__.
2214 s/DEBUG_FILE/DEBUG_FILE_DIR/.
2215 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
2216 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
2217 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
2218 calls to `set_redirection' and `WAIT'.
2219 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
2220 Fix calls to `set_redirection' and `save_and_redirect'.
2221 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
2222 to `set_redirection' and `save_and_redirect'.
2223 (usage): Fix message.
2224 (makeTempFiles, main): Use `DEBUG_FILE'.
2226 2004-02-21 Werner LEMBERG <wl@gnu.org>
2228 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
2230 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
2232 * src/libs/libgroff/quotearg.c: New file, providing proper argument
2233 quoting for MSVC's spawn* and exec* functions.
2234 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
2235 spawnvp with proper quoting for MSVC.
2237 * src/libs/libgroff/assert.cpp (program_name),
2238 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
2239 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
2241 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
2243 * src/include/error.h (program_name): Declare as `extern "C"'.
2244 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
2246 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
2248 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
2250 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
2252 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
2254 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
2256 (sbasename) [__MSDOS__ || ...]: New function.
2257 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
2259 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
2260 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
2262 Use STDOUT_FILENO instead of hardcoded file handle.
2263 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
2265 2004-02-19 Werner LEMBERG <wl@gnu.org>
2267 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
2268 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
2270 2004-02-18 Werner LEMBERG <wl@gnu.org>
2272 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
2273 new font and mapping files.
2275 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
2276 Keith Marshall <keith.d.marshall@ntlworld.com>
2278 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
2279 an input pipe. This is needed for the MSVC compiler to make troff's
2282 * src/roff/troff/div.cpp: Include nonposix.h.
2283 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
2285 2004-02-17 Werner LEMBERG <wl@gnu.org>
2287 * font/devlj4/generate/special.awk: New script.
2288 * font/devlj4/generate/Makefile (S): Use special.awk.
2289 * font/devlj4/*: Regenerated, including the following new files:
2290 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
2291 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
2292 * NEWS: Document new lj4 fonts and revised hpftodit.
2294 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
2296 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
2298 2004-01-25 Werner LEMBERG <wl@gnu.org>
2300 * src/libs/libgroff/progname.cpp: Replaced with...
2301 * src/libs/libgroff/progname.c: New file.
2302 * src/libs/libgroff/Makefile.sub: Updated accordingly.
2304 2004-01-17 Werner LEMBERG <wl@gnu.org>
2306 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
2308 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
2310 * font/devlj4/generate/wingdings.map,
2311 font/devlj4/generate/symbol.map: Include unnamed glyphs.
2312 Use groff glyph names where possible.
2313 * src/devices/grolj4/lj4_font.man: Minor updates.
2315 2004-01-13 Werner LEMBERG <wl@gnu.org>
2317 * tmac/www.tmac (DC): Handle TTY devices.
2319 * doc/webpage.ms: Document viewCVS from ffii.org.
2320 * NEWS, README: Updated.
2322 * src/roff/groff/groff.man: Mention lj4_font man page.
2324 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2326 (FONTS): Add SYMBOL and WINGDINGS.
2327 (SYMBOL, WINGDINGS): New targets.
2329 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
2331 * src/devices/grolj4/lj4_font.man: New man page.
2332 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2333 * src/devices/grolj4.man: Mention lj4_font man page.
2335 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2336 * src/utils/hpftodit/hpftodit.man: Document it.
2338 Remove details about fonts (which are now in lj4_font.man).
2340 * font/devlj4/generate/symbol.map,
2341 font/devlj4/generate/wingdings.map: New files.
2343 2004-01-12 Werner LEMBERG <wl@gnu.org>
2345 * README: Mention ffii's viewcvs access.
2347 2004-01-09 Werner LEMBERG <wl@gnu.org>
2349 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2351 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
2353 Revert most of the change from 2004-01-03 to better control used
2356 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2357 (text_symbol_sets, special_symbol_sets): New arrays.
2358 (symbol_set_table): New global variable.
2359 (read_symbol_sets): Use search order given in the text_symbol_sets
2360 and special_symbol_sets arrays. If command line flag -a is not
2361 given, search both arrays.
2362 (output_charset): Require x_height_tag only for command line flag -i.
2364 2004-01-06 Werner LEMBERG <wl@gnu.org>
2366 Implement string-valued registers \n[.m] and \n[.M] to return the
2367 name of the current drawing and background color, respectively.
2369 * src/roff/troff/symbol.h: Moved to...
2370 * src/include/symbol.h: Here.
2371 Small fixes to make it work outside of the `troff' directory.
2372 * src/roff/troff/symbol.cpp: Moved to...
2373 * src/libs/libgroff/symbol.cpp: Here.
2374 Small fixes to make it work outside of the `troff' directory.
2376 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2377 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2380 * src/include/color.h: Include symbol.h.
2381 (color): Add new field `nm'.
2382 * src/libs/libgroff/color.cpp (color::color): Updated.
2384 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2385 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2386 src/roff/troff/reg.cpp: Don't include symbol.h.
2388 * src/roff/troff/env.cpp: Don't include symbol.h.
2389 (environment::get_glyph_color_string,
2390 environment_get_fill_color_string): New member functions.
2391 (init_env_requests): Handle `.m' and `.M' registers.
2392 * src/roff/troff/input.cpp: Don't include symbol.h.
2393 (default_symbol): Moved to symbol.cpp/symbol.h.
2394 (do_glyph_color, do_fill_color, define_color): Pass symbol name
2395 to color constructor.
2396 * src/roff/troff/env.h: Updated.
2398 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2399 Document new registers.
2401 2004-01-05 Werner LEMBERG <wl@gnu.org>
2403 * src/roff/troff/node.cpp (space_node::get_breakpoints,
2404 space_node::nbreaks): Protect against zero `next' field.
2406 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
2408 In hpftodit, use the symbol sets offered in the TFM.
2410 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2411 (symbol_set, text_symbol_sets, special_symbol_sets,
2412 symbol_set_table): Removed.
2413 (get_printcode): Removed.
2414 (read_symbol_sets): Initialize `symbol_set' field with
2416 Simplify code to just use the `kind' value.
2417 (output_charset): Improve output formatting.
2418 (dump_symbols): Simplified.
2420 2004-01-02 Werner LEMBERG <wl@gnu.org>
2422 * font/devlj4/generate/text.map: Add more MSL numbers.
2424 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
2426 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2427 (text_symbol_sets): Add more symbol sets.
2428 (debug_flag): New static variable (moved from `main').
2429 (get_printcode, show_symset): New functions.
2430 (main): Remove `debug_flag'.
2431 (output_charset): Use `show_symset'.
2432 (dump_symbols): Use `show_symset'.
2433 Print symsets for all glyphs.
2434 (read_map): Actually call `unicode_to_ucode_make' but this time
2437 2004-01-01 Werner LEMBERG <wl@gnu.org>
2439 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2440 Fix placement of comments.
2442 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
2444 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2445 option `-d' is given.
2446 (output_charset): Improve warning messages to give more information.
2447 (dump_symbols): Make information more precise.
2449 (read_map): Don't call unicode_to_ucode_name; the glyph names must
2450 appear as-is and shouldn't be decomposed.
2452 2003-12-31 Werner LEMBERG <wl@gnu.org>
2454 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2455 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2456 (FONTS): Add TrueType font families Arial and Times New Roman.
2457 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2458 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2461 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
2463 * test-groff.in (SEP): Quote value.
2464 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2465 `tem' to `char*' to avoid deallocation of a pointer to a constant
2466 object which some compilers don't like.
2468 2003-12-31 Werner LEMBERG <wl@gnu.org>
2470 * font/devlj4/generate (text.map, special.map): Rewritten to work
2471 with the new hpftodit version.
2473 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
2475 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2476 set and 8bit character code for all glyphs also.
2478 2003-12-30 Werner LEMBERG <wl@gnu.org>
2480 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2482 2003-12-29 Werner LEMBERG <wl@gnu.org>
2484 More fixes for MSVC compiler.
2486 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2489 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2490 STDERR_FILENO) [_MSC_VER]: Define conditionally.
2491 (getpid) [_MSC_VER]: Remove.
2492 Include direct.h and process.h conditionally.
2494 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2495 parentheses for a_delete.
2497 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2499 * test-groff: Replaced with...
2500 * test-groff.in: This new template to handle path separator
2503 * configure.ac: Check for direct.h and process.h.
2504 Generate test-groff script.
2505 * configure, src/include/config.hin: Regenerated.
2507 2003-12-28 Werner LEMBERG <wl@gnu.org>
2509 Add integral extension glyph.
2510 Add new option `-x' to afmtodit to suppress use of built-in AGL.
2512 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2514 * font/devps/generate/textmap: Provide entry for `integralex' to
2515 override (old) PUA value of the AGL.
2516 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2517 * font/devps/*: Regenerated.
2519 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2520 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2522 2003-12-27 Werner LEMBERG <wl@gnu.org>
2524 Add forgotten `coproduct' symbol (already available for DVI).
2526 * font/devhtml/R.proto, font/devps/generate/textmap,
2527 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2528 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2529 U+2210 (\[coproduct]).
2531 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
2533 hpftodit has been extended to handle TrueType metric files and
2534 more glyphs. See hpftodit.man for more details.
2536 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
2537 ctype.h, and unicode.h.
2538 s/msl/charcode/ everywhere since we now handle Unicode values also.
2539 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2540 Use it where appropriate.
2541 (MULTIPLIER): Replaced with...
2542 (multiplier): New global static variable.
2544 (tag_type): Add more TFM tags.
2545 (tag_name): New array.
2546 (ENUM_TYPE, FLOAT_TYPE): Removed.
2547 (BYTE_TYPE): New value assigned.
2548 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2549 (text_symbol_sets, special_symbol_sets): Extended to cover more
2551 (check_type): Add return value.
2552 (check_units): Add parameters to get ppi and upem values.
2553 Handle TrueType TFM data.
2554 (output_font_name): New function.
2555 (output_charset): Add parameter to handle TFM type.
2556 Handle TrueType TFMs also.
2557 (em_fract): New macro.
2558 (dump_tags): Be much more verbose and handle more tags.
2559 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2560 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2562 (read_map): Add parameter to handle TFM type.
2563 Handle both MSL and Unicode mappings.
2564 (main): Add two new command line options `-a' and `-q'.
2565 Updated to make use of new functions.
2568 * src/utils/hpftodit/hpuni.cpp: New file.
2570 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2573 2003-12-25 Werner LEMBERG <wl@gnu.org>
2575 * src/include/nonposix.h (read) [_MSC_VER]: Define.
2577 2003-12-24 Werner LEMBERG <wl@gnu.org>
2579 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2580 by Michail Vidiassov <master@iaas.msu.ru>.
2582 2003-12-20 Werner LEMBERG <wl@gnu.org>
2584 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2586 Add missing latin-2 glyphs.
2587 * font/devutf8/R.proto: Add missing latin-2 glyphs.
2589 * tmac/troffrc: Load `composite.tmac' earlier.
2591 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2592 u00{53,73}_0327, and u0049_0307.
2593 * tmac/X.tmac: Add u00{47,67}_0306.
2594 * tmac/tty-char.tmac: Use composite glyph names for readability.
2598 * src/include/unicode.h: Remove `extern' keywords.
2600 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
2602 * tmac/latin5.tmac: New file.
2604 2003-12-19 Werner LEMBERG <wl@gnu.org>
2606 Add some glyphs needed for Turkish.
2608 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2611 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
2612 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2613 u00{53,73}_0327, and u0049_0307.
2615 2003-12-18 Werner LEMBERG <wl@gnu.org>
2617 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2619 Remove trailing zeros.
2621 2003-12-17 Werner LEMBERG <wl@gnu.org>
2623 Make \? transparent to end-of-sentence recognition.
2625 * src/roff/troff/input.cc (non_interpreted_node): Add
2626 `ends_sentence' member function.
2628 2003-12-16 Werner LEMBERG <wl@gnu.org>
2630 * doc/groff.texinfo: Document `dt' request correctly.
2631 Other minor typographical improvements.
2633 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
2635 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2637 2003-12-10 Richard Stallman <rms@gnu.org>
2639 * LICENSE: Better wording.
2641 2003-12-09 Werner LEMBERG <wl@gnu.org>
2643 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2644 * configure, NEWS: Updated.
2646 2003-12-08 Werner LEMBERG <wl@gnu.org>
2648 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2650 2003-12-07 Bernd Warken <bwarken@mayn.de>
2654 2003-12-07 Werner LEMBERG <wl@gnu.org>
2656 * INSTALL: Improved.
2658 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2660 Use path separator character of target platform for compiled-in
2663 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2664 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2665 * configure: Regenerated.
2666 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2668 2003-12-05 Werner LEMBERG <wl@gnu.org>
2670 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2671 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2673 2003-12-04 Bernd Warken <bwarken@mayn.de>
2675 * LICENSE: New file.
2677 2003-12-03 Werner LEMBERG <wl@gnu.org>
2679 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2680 ligatures present in AFM files since groff currently only
2681 understands some standard ligatures and nothing else.
2683 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
2685 * src/roff/groff/groff.cpp (main): Don't run the spooler if
2688 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2691 Don't use Unix wait flags.
2693 2003-12-02 Werner LEMBERG <wl@gnu.org>
2695 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2696 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2697 src/roff/troff/uniuni.cpp: Moved to...
2698 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2699 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2700 src/libs/libgroff/uniuni.cpp: Here.
2702 * src/include/Makefile.sub.old (HDRS),
2703 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2704 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2706 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2708 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2712 2003-12-01 Werner LEMBERG <wl@gnu.org>
2714 * groff.texinfo: Document special behaviour of `.vs 0'.
2715 Improve documentation of `cflags' request.
2718 2003-11-29 Werner LEMBERG <wl@gnu.org>
2720 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2721 * font/devlj4/CORONET: Regenerated.
2723 2003-11-24 Werner LEMBERG <wl@gnu.org>
2725 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2726 if processing hyphenation patterns in traditional mode.
2727 Improve error messages.
2729 2003-11-20 Werner LEMBERG <wl@gnu.org>
2731 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2732 troff_output_file::put_char): Fix type of local variable `c'.
2734 2003-11-19 Werner LEMBERG <wl@gnu.org>
2736 * src/roff/groff/pipeline.c (P): Removed. Updated all function
2738 (i_to_a): Removed. libgroff already provides this function.
2739 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2741 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
2743 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2746 2003-11-17 Werner LEMBERG <wl@gnu.org>
2748 * COPYING: Use correct version.
2750 2003-11-11 Werner LEMBERG <wl@gnu.org>
2752 LynxOS 4.0.0 doesn't declare vfprintf.
2754 * configure.ac: Check for vfprintf.
2755 * configure: Regenerated.
2756 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2757 * src/include/config.hin: Regenerated.
2759 2003-11-10 Werner LEMBERG <wl@gnu.org>
2761 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2763 * configure.ac: Check for vsnprintf.
2764 * configure: Regenerated.
2765 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2767 * src/include/config.hin: Regenerated.
2769 2003-11-09 Werner LEMBERG <wl@gnu.org>
2771 * aclocal.m4: Updated syntax to autoconf 2.59.
2772 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2773 Don't check for gsos2.
2774 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
2775 working abs_top_srcdir and abs_top_builddir.
2777 * configure.ac: Updated syntax to autoconf 2.59.
2778 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2779 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2780 * configure: Regenerated.
2782 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2783 s/@groff_top_builddir@/@abs_top_builddir@/.
2785 * src/roff/groff/pipeline.c (xstrsignal):
2786 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2788 2003-11-07 Werner LEMBERG <wl@gnu.org>
2790 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2791 make start angle smaller than end angle to circumvent a bug in tpic
2792 handling of some versions of dvipdfm (and dvipdfmx).
2794 2003-10-30 Werner LEMBERG <wl@gnu.org>
2796 * src/devices/grops/grops.man: Improve section on creating EPS.
2798 2003-10-29 Werner LEMBERG <wl@gnu.org>
2800 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2803 2003-10-28 Werner LEMBERG <wl@gnu.org>
2805 * doc/groff.texinfo: Fix documentation of `.if'.
2807 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
2809 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2810 the form `uniXXXX' also.
2812 2003-10-27 Werner LEMBERG <wl@gnu.org>
2814 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2815 contrib/pic2graph/pic2graph.sh: Implement secure management of
2817 Pass `-P-pletter' to groff to avoid data outside of the converted
2818 area -- some versions of `convert' (for example 5.3.8) don't check
2819 the bounding box of the image but always use a fixed image size
2820 (letter paper format).
2821 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2822 contrib/pic2graph/pic2graph.man: Updated.
2824 * src/roff/groff/groff.man: Document $TMP and $TEMP.
2826 2003-10-26 Werner LEMBERG <wl@gnu.org>
2828 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2829 troff_output::simple_ellipse, troff_output::simple_arc,
2830 troff_output::simple_line, troff_output::simple_spline,
2831 troff_output::simple_polygon): Insert a space before arguments.
2832 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2833 latter doesn't produce a node, so the following `.sp -1' would do
2835 Don't emit `.sp -1' after \M. This also doesn't produce a token
2836 (and we don't have to care about compatibility mode).
2837 (troff_output::set_color, troff_output::reset_color): Don't emit
2838 `.sp -1' after \M and \m.
2840 * src/roff/troff/input.cpp (old_have_input): New global variable.
2841 (input_stack::get): Handle `old_have_input'.
2842 (process_input_stack) <token::TOKEN_NEWLINE>: Call
2843 `trapping_blank_line' depending on `old_have_input', not
2846 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
2848 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2849 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2850 default directory names for temporary files.
2851 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2853 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2854 [__MSDOS__] (run_pipeline): Honour environment variables.
2855 Don't use `tmpnam' but `tempnam' to work around messy
2858 * README.MinGW: New file.
2860 2003-10-16 Werner LEMBERG <wl@gnu.org>
2862 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2863 `(*t)->next' without testing validity of `*t'.
2864 (usage): Make it more readable.
2866 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2868 Make html device run under both MS-DOS and Win32.
2870 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2871 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2872 spawn or fork+exec has to be used, and whether parent must sleep
2873 until the child process terminates. Used in
2874 `char_buffer::run_output_filter'.
2875 (copyofstdoutfd): Removed.
2876 (char_buffer): Replace `write_file_html' and `write_file_troff'
2877 member functions with `emit_troff_output' and `run_output_filter'.
2878 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2880 (replaceFd): Replaced with...
2881 (set_redirection): New auxiliary function.
2882 (waitForChild): Replaced with...
2883 (save_and_redirect): New auxiliary function for.
2885 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2888 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2890 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2891 (GROFF_LIBC): New function.
2892 * configure.ac: Call GROFF_LIBC.
2894 * configure: Regenerated.
2896 * src/include/lib.h: Handle __MINGW32__.
2897 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2898 Add macro for `pipe'.
2901 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2904 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2907 2003-10-13 Werner LEMBERG <wl@gnu.org>
2909 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2912 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2915 2003-10-12 Werner LEMBERG <wl@gnu.org>
2917 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2918 src/roff/troff/input.cc (usage): Updated.
2920 * NEWS, doc/groff.texinfo: Updated.
2922 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
2924 * src/libs/libgroff/searchpath.cpp
2925 (search_path::open_file_cautious): New function which also handles
2926 `-' as stdin and stdout depending on the access mode.
2927 * src/include/searchpath.h (search_path): Updated.
2929 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2930 * src/devices/grops/ps.h: Include `searchpath.h'.
2931 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2932 Open resource file with `include_search_path.open_file_cautious'.
2933 * src/devices/grops/grops.man: Document new `-I' switch.
2935 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2936 (main), src/devices/grolj4/lj4.cpp (main),
2937 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2939 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2941 (include_search_path): New global variable.
2942 (include_path_append): Removed.
2943 (main): Use `include_search_path.command_line_dir' to handle `-I'.
2944 (do_file): Simplify, using new
2945 `include_search_path.open_file_cautious'.
2947 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2949 (main): Pass arguments to `-I' to both troff and devices.
2950 Improve handling of `-V'.
2951 * src/roff/groff/groff.man: Document changes to -I and -V.
2953 * src/roff/troff/input.cpp (include_search_path): New global
2955 (next_file, source, ps_bbox_request, transparent_file,
2956 process_input_file): Use new
2957 `include_search_path.open_file_cautious'.
2958 (main) Handle `-I' switch.
2959 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2960 Use new `include_search_path.open_file_cautious'.
2961 * src/roff/troff/node.h: New extern symbol `include_search_path'.
2962 * src/roff/troff/troff.man: Document new `-I' switch.
2964 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
2966 Support multiple calls of .Lb in LIBRARY section.
2968 * tmac/doc-common (doc-in-library-section): New register.
2969 (doc-section-library): New string.
2970 (Sh): Set `doc-in-library-section'.
2972 * tmac/doc-syms (Lb): Insert breaks before and after arguments
2973 if in LIBRARY section.
2974 * tmac/doc.tmac (doc-save-global-vars): Updated.
2975 * NEWS, tmac/groff_mdoc.man: Updated.
2977 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
2979 * tmac/doc-common (doc-default-operating-system): New variable.
2982 2003-09-08 Werner LEMBERG <wl@gnu.org>
2984 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2986 2003-08-31 Werner LEMBERG <wl@gnu.org>
2988 * contrib/mom/Makefile.sub: Fix last change to make it really work.
2989 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2990 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2991 $(DEVFILES) are not empty.
2992 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2994 2003-08-26 Chuck Silvers <chuq@chuq.com>
2996 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2997 with parallel runs of `make'.
2999 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
3001 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
3002 insert SORT_SEP. With certain combinations of sort specifications,
3003 refer sorted entries in the wrong order. In particular, entries
3004 with a missing field should be be sorted before all entries that
3005 have that field, before refer looks to the next field.
3007 2003-08-23 Werner LEMBERG <wl@gnu.org>
3009 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
3010 g++ linker is used. Reported by Mark J. Reed
3011 <mark.reed@turner.com>.
3013 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
3015 Add key character `x' to tbl which makes tbl call a user-defined
3016 macro on a table cell.
3018 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
3019 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
3020 `set_modifier' after printing the compatibility request.
3021 (set_modifier): Print call to `m->macro' if not empty.
3022 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
3024 (process_format): Implement cases `x' and `X'.
3025 * src/preproc/tbl/tbl.man, NEWS: Updated.
3027 2003-08-15 Werner LEMBERG <wl@gnu.org>
3029 * doc/groff.texinfo: Minor fixes.
3031 2003-08-09 Werner LEMBERG <wl@gnu.org>
3033 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
3035 2003-08-07 Werner LEMBERG <wl@gnu.org>
3037 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
3038 argument list to nothing if there is no file to match. Use `ls' as
3039 a protection, similar to autoconf.
3041 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
3042 empty argument lists.
3044 * doc/groff.texinfo: Improve documentation how vertical spacing
3045 and line breaks interact.
3048 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
3050 2003-08-03 Werner LEMBERG <wl@gnu.org>
3052 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
3053 EPS (using eps2eps or similar programs to compute the bounding box).
3055 2003-07-24 Werner LEMBERG <wl@gnu.org>
3057 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
3058 * doc/texinfo.tex: Updated from texinfo 4.6.
3059 * README.CVS: From now on we need texinfo 4.6.
3061 2003-07-23 Werner LEMBERG <wl@gnu.org>
3063 Add requests `dei1' and `ami1' for completeness.
3065 * src/roff/troff/input.cc (calling_mode): Remove
3066 CALLING_DISABLE_COMP.
3067 (comp_mode): New enumeration.
3068 (do_define_string, define_string, define_nocomp_string,
3069 append_string, append_nocomp_string): Updated.
3070 (do_define_macro): Add third parameter.
3071 (define_macro, define_nocomp_macro, define_indirect_macro,
3072 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
3073 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
3076 (init_input_requests): Add `dei1' and `ami1'.
3078 * tmac/trace.tmac: Handle de1 and am1.
3079 (de): Improve tracing message.
3080 (am): Add missing `do'.
3083 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3084 Document new requests.
3086 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
3088 Add option -G to .MPIMG to insert a gap between text and the image.
3090 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
3091 www-finish-left-ll): Updated.
3092 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
3093 (MPIMG): Make option -L and -R optional.
3094 Implement option -G.
3096 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
3098 * src/devices/grohtml/post-html.cpp
3099 (html_printer::do_file_components): Don't use `stdout' as lvalue
3100 since it can be a macro.
3102 2003-07-22 Werner LEMBERG <wl@gnu.org>
3104 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
3105 the corresponding test in aclocal.m4.
3107 2003-07-21 Werner LEMBERG <wl@gnu.org>
3109 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
3110 names but RGB values directly. Otherwise pnmtopng depends on
3111 an external file `rgb.txt' which maps colour names to values.
3113 2003-07-20 Werner LEMBERG <wl@gnu.org>
3115 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
3116 * configure, src/include/config.hin: Regenerated.
3118 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
3120 2003-07-19 Werner LEMBERG <wl@gnu.org>
3122 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
3124 2003-07-18 Werner LEMBERG <wl@gnu.org>
3126 * *.man: Switch to non-compatibility mode temporarily if GNU
3127 syntax extensions are used in the particular man page.
3129 * PROBLEMS: Add solutions for SGR problems.
3131 2003-07-17 Werner LEMBERG <wl@gnu.org>
3133 Don't ignore grotty's command line options if \X'tty: sgr ...' is
3134 used to change the drawing scheme.
3136 * src/devives/grotty/tty.cpp (bold_flag_option,
3137 underline_flag_option, italic_flag_option, reverse_flag_option,
3138 bold_underline_mode_option): New global variables.
3139 (update_options): New function.
3140 (tty_printer::special): Call update_options.
3141 (main): Don't set xxx_flag but xxx_flag_option, then call
3144 2003-07-14 Werner LEMBERG <wl@gnu.org>
3146 Make grotty emit proper Unicode box drawing characters for -Tutf8.
3148 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
3150 (hline_char, vline_char): New global variables.
3151 (tty_printer::tty_printer): Initialize them.
3152 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
3153 horizontal and vertical lines.
3154 (crossings): New global array.
3155 (tty_printer::end_page): Use it to determine the proper crossing
3156 character for -Tutf8.
3158 2003-07-12 Werner LEMBERG <wl@gnu.org>
3160 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
3161 (HTMLDOCFILES): Revert to `pic.html'.
3162 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
3164 2003-07-11 Werner LEMBERG <wl@gnu.org>
3166 * doc/pic.ms: Improve documentation of absolute coordinates.
3167 Document absolute positioning of pictures.
3169 * NEWS: Add new pic capability.
3171 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
3173 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
3176 2003-07-07 Werner LEMBERG <wl@gnu.org>
3178 Implement support for dashed and dotted ellipses in pic. Based on
3179 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
3181 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
3182 common_output::dashed_ellipse, common_output::dotted_ellipse): New
3183 functions. Ellipse arcs are approximated with circle arcs.
3184 * src/preproc/pic/common.h (common_output): Updated.
3185 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
3187 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
3189 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
3191 2003-07-06 Werner LEMBERG <wl@gnu.org>
3193 Make grotty work on platforms which have unsigned char as the
3194 default for char. Based on a patch by Thomas Klausner
3197 * src/devices/grotty/tty.cpp (schar): New typedef.
3198 Updated calls to declare_ptable and implement_ptable.
3199 (glyph): Use schar for back_color_idx and fore_color_idx.
3200 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
3201 (tty_printer::tty_color, tty_printer::tty_printer,
3202 tty_printer::color_to_idx, tty_printer::put_color): Updated.
3204 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
3206 * src/roff/nroff/nroff.sh: Add option -d for completeness.
3207 * src/roff/nroff/nroff.man: Updated.
3209 2003-07-05 Werner LEMBERG <wl@gnu.org>
3211 * NEWS, tmac/groff_www.man: Updated.
3212 * doc/Makefile.sub: Updated.
3214 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
3216 Implement support for multiple HTML output files.
3218 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
3219 -j command line option.
3221 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
3223 (file): New fields `new_output_file', `require_links',
3225 (file::file): Updated.
3226 (files::set_file_name, files::set_links_required,
3227 files::are_links_required, files::is_new_output_file,
3228 files::file_name, files::next_file_name): New functions.
3229 (header_desc): New fields `no_of_level_one_headings',
3231 (header_desc::header_desc): Updated.
3232 (header_desc::write_headings): Handle multiple files.
3233 (html_printer::write_header): Save file name in which header occurs.
3234 (html_printer::determine_header_level): Possibly split files on
3236 (html_printer::do_links, html_printer::troff_tag): Updated.
3237 (html_printer::insert_split_file, html_printer::do_job_name,
3238 html_printer::emit_link, html_printer::write_navigation,
3239 html_printer::do_file_components): New functions.
3240 (html_printer::~html_printer): Handle multiple files.
3241 (main): Handle command line option `-j'.
3243 * src/devices/grohtml/grohtml.man: Updated.
3245 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
3248 * tmac/www.tmac (JOBNAME): New macro.
3249 * tmac/s.tmac (SH-NO-TAG): New macro.
3250 (@SH): Call SH-NO-TAG.
3253 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
3255 * tmac/groff_mdoc.man: Improve documentation of punctuation
3258 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
3260 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
3262 2003-07-03 Werner LEMBERG <wl@gnu.org>
3264 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
3266 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
3268 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
3269 after `/*' and `*/'.
3271 (Fn, Fo): Reduce indentation in synopsis.
3273 * tmac/doc-common (doc-check-depth): New macro.
3274 (doc-end-macro, Sh, Ss): Use it.
3275 (Cd): Fix behaviour in synopsis.
3276 (In): Make it parsed and callable.
3277 If not in the synopsis, represent the C header file enclosed in
3279 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
3280 Use minus, not hyphen.
3282 * tmc/groff_mdoc.man: Updated.
3284 2003-07-01 Werner LEMBERG <wl@gnu.org>
3286 Integrated grap2graph, contributed by Eric S. Raymond.
3288 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
3290 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
3291 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
3293 2003-07-01 Colin Watson <cjwatson@debian.org>
3295 * src/xditview/*.c: Add prototypes, fix return types, add includes.
3296 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
3298 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
3300 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
3302 2003-06-31 Werner LEMBERG <wl@gnu.org>
3304 * doc/Makefile.sub (CLEANADD): Remove all files created by
3305 running `make groff.{pdf,dvi}'.
3307 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
3310 2003-06-30 Werner LEMBERG <wl@gnu.org>
3312 * Makefile.in (SHELL): Define as @SHELL@.
3313 (mkinstalldirs): Use $(SHELL).
3314 (MDEFINES): Add $(SHELL).
3315 * Makefile.comm (SHELL): Removed.
3317 2003-06-29 Werner LEMBERG <wl@gnu.org>
3319 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3320 The X11 documentation files use them.
3321 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3323 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
3325 * tmac/e.tmac (@C): Handle .ad also.
3327 2003-06-12 Werner LEMBERG <wl@gnu.org>
3329 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3331 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3332 Assign `n' even here. It is possible to construct a node
3333 immediately following an escape character:
3341 2003-06-10 Werner LEMBERG <wl@gnu.org>
3343 * README.WIN32: Removed.
3344 * MANIFEST: Updated.
3346 2003-06-07 Werner LEMBERG <wl@gnu.org>
3348 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3350 2003-06-05 Werner LEMBERG <wl@gnu.org>
3352 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3353 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3355 2003-06-03 Werner LEMBERG <wl@gnu.org>
3357 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3358 is done by the calling function.
3360 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
3362 * tmac/X.tmac: Fix definition of `em'.
3364 2003-05-22 Werner LEMBERG <wl@gnu.org>
3366 * src/roff/troff/input.cc (return_macro_request): Fix detection of
3369 2003-05-18 Werner LEMBERG <wl@gnu.org>
3371 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3372 to make items work which consist only of a tag.
3374 2003-05-17 Werner LEMBERG <wl@gnu.org>
3376 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3377 aren't stretched in a tag (this can fail with unformatted boxes).
3378 Instead, insert a break and go back one line.
3380 2003-05-16 Werner LEMBERG <wl@gnu.org>
3382 * src/roff/troff/input.cc (return_macro_request): If called with
3383 argument pop macro twice. We need this to trace `return'.
3385 * tmac/trace.tmac: Handle `return'.
3388 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3391 2003-05-15 Larry Kollar <kollar@alltel.net>
3393 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3394 registers `FPS', `FVS', and `FPD'.
3396 2003-05-15 Werner LEMBERG <wl@gnu.org>
3398 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3401 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
3403 * tmac/groff_mdoc.man: Slight improvements.
3405 2003-05-03 Werner LEMBERG <wl@gnu.org>
3407 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3408 `doc-header-space' after header line if register `cR' is set.
3410 2003-05-02 Werner LEMBERG <wl@gnu.org>
3414 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
3416 * tmac/doc-common (Nd): Use \[em].
3418 2003-05-01 Werner LEMBERG <wl@gnu.org>
3420 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3421 doc-footer-space): Initialize to 0.5i.
3422 (doc-setup-page-layout): Don't set doc-header-space and
3425 2003-04-30 Werner LEMBERG <wl@gnu.org>
3427 * REVISION: Set to 1.
3429 * doc/pic.ms: Document possible problems with `figname'.
3431 2003-04-29 Werner LEMBERG <wl@gnu.org>
3433 Version 1.19 released
3434 =====================
3436 * VERSION: Set to 1.19.
3437 * REVISION: Set to 0.
3438 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3440 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3441 Define charset as `US-ASCII' in html output.
3443 * tmac/www.tmac (ULE): Add missing scaling indicator.
3445 * win32-diffs: Removed.
3447 2003-04-28 Werner LEMBERG <wl@gnu.org>
3449 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3451 Document how to insert discardable whitespace with `.ss'.
3453 2003-04-27 Werner LEMBERG <wl@gnu.org>
3455 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3456 work with plain TeX also.
3458 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3460 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
3462 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3465 2003-04-24 Werner LEMBERG <wl@gnu.org>
3467 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3468 vbox with positive height and zero depth if in TeX mode.
3470 * NEWS: Document glyph name changes for grodvi and grolj4.
3472 2003-04-23 Werner LEMBERG <wl@gnu.org>
3474 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3475 * doc/pic.ms: Fixed.
3477 2003-04-21 Werner LEMBERG <wl@gnu.org>
3479 HP-UX 10.20 has `snprintf' but it isn't declared.
3481 * configure.ac: Add declaration test for snprintf.
3482 * configure: Regenerated.
3483 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3484 * src/include/config.hin: Regenerated.
3486 2003-04-19 Werner LEMBERG <wl@gnu.org>
3488 Add keyword `figname' to pic, specifying the name of the picture
3489 box in TeX mode. Based on a patch from William J Poser
3490 <wjposer@unagi.cis.upenn.edu>.
3492 * src/preproc/pic/pic.y: New token `FIGNAME'.
3493 (macro_name): New rule of type <str>.
3494 (placeless_element): Handle `FIGNAME'.
3495 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3496 * src/preproc/pic/main.cpp (graphname): New global variable.
3497 (do_picture): Initialize `graphname'.
3498 * src/preproc/pic/pic.h: Updated.
3499 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3502 (tex_output::text): Beautify output.
3503 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3504 `shaded' and `outlined' unconditionally.
3505 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3508 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3509 greater is necessary.
3511 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
3513 Add option -r to soelim to avoid emission of `.lf' lines.
3514 Add option -t to produces TeX comment lines instead of `.lf' lines.
3516 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3519 (main): Handle `-r' and `-t'.
3520 (set_location): Handle `raw_flag' and `tex_flag'.
3521 * src/preproc/soelim/soelim.man, NEWS: Updated.
3523 2003-04-17 Werner LEMBERG <wl@gnu.org>
3525 * tmac/hyphenex.sh: Replaced with...
3526 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3529 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3530 if --quiet is used for the configure script.
3531 * configure: Regenerated.
3533 2003-04-16 Werner LEMBERG <wl@gnu.org>
3535 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3536 Add `const' to second argument.
3537 (html_printer::add_table_end): Add `const' to argument.
3538 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3539 `const' to arguments.
3540 * src/devices/grohtml/html-text.h: Updated.
3542 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3543 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3546 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3547 cast for integer constant.
3549 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3550 (writeNbytes): Add `const' to first argument.
3551 (writeString): Add `const' to argument.
3552 (char_buffer::can_see): Add `const' to third argument.
3553 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3554 `const' to argument.
3555 * src/preproc/html/pushback.h: Updated.
3557 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3558 (include_path_append): Add `const' to argument.
3561 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3563 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3564 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3566 (unicode_decompose_init::unicode_decompose_init): Updated.
3567 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3569 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3570 * src/roff/troff/input.cc (process_startup_file): Add `const' to
3573 * tmac/hyphenex.sh: Make script more portable by using a here
3576 2003-04-15 Werner LEMBERG <wl@gnu.org>
3578 Renamed all `*.cc' files to `*.cpp'.
3579 Updated all configuration files, makefiles, and documentation.
3581 2003-04-14 Werner LEMBERG <wl@gnu.org>
3583 * tmac/hyphenex.sh: Slight improvements.
3585 2003-04-13 Werner LEMBERG <wl@gnu.org>
3587 * font/devascii/R.proto, font/devcp1037/R.proto,
3588 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3589 character slots with unnamed glyphs.
3591 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3592 (an-first): New global variable.
3593 (an-header): Emit vertical space between multiple man pages.
3595 2003-04-11 Werner LEMBERG <wl@gnu.org>
3597 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3600 2003-04-10 Werner LEMBERG <wl@gnu.org>
3602 * PROBLEMS: Revised.
3604 2003-04-10 Bernd Warken <bwarken@mayn.de>
3606 * doc/webpage.ms: Improved.
3608 2003-04-09 Werner LEMBERG <wl@gnu.org>
3610 Add register \n[.height] which returns the value of \H.
3611 Add register \n[.slant] which returns the value of \S.
3613 * src/roff/troff/env.cc (init_env_requests): Implement.
3614 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3617 2003-04-08 Werner LEMBERG <wl@gnu.org>
3619 * tmac/html.tmac: Move some of the data into html-end.tmac.
3620 Remove most of the character translations for eqn since html fonts
3621 now cover those characters.
3623 * tmac/html-end.tmac: New file.
3624 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3625 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3626 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3628 2003-04-07 Werner LEMBERG <wl@gnu.org>
3630 * man/groff_out.man: Document negative values of `N' if -Thtml is
3633 2003-04-06 Werner LEMBERG <wl@gnu.org>
3635 * Makefile.comm (depend.temp): Check location of YTABC.
3637 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3639 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3641 (groff_bin_path): Rename to GROFF_BIN_PATH.
3642 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3643 * doc/Makefile.in (TROFFBIN): New variable for troff
3645 (GROFFBIN): New variable for groff binary path.
3646 (groff_bin_path): Rename to GROFF_BIN_PATH.
3647 (TROFF): Use TROFFBIN.
3648 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3649 * doc/Makefile.sub (GROFFBIN): New variable for groff
3651 (groff_bin_path): Rename to GROFF_BIN_PATH.
3652 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3654 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3655 with INSTALL_SCRIPT.
3656 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3657 * Makefile.dev (all): Depend on DEVSCRIPTS.
3658 (install_dev): Likewise.
3659 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3661 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3662 (DEVGENSCRIPTS): New variable to hold generated scripts.
3664 2003-04-05 Werner LEMBERG <wl@gnu.org>
3666 * src/libs/libdriver/input.cc (IntArray::operator[],
3667 IntArray::get_data): Remove meaningless `const' in return value.
3669 * README.CVS: New file.
3671 2003-04-04 Werner LEMBERG <wl@gnu.org>
3673 Check for stdint.h in C++, not in C.
3675 * aclocal.m4 (GROFF_STDINT_H): New function,
3676 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3678 * configure, src/include/config.hin: Regenerated.
3679 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3682 Fix handling of in grohtml. To do this, troff emits `N'
3683 with a negative value, representing the width of the unbreakable
3684 space (only for -Thtml). grohtml then converts this back to
3685 and uses the value of N as its width.
3687 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3688 unbreakable_space_node::tprint): Emit `N-<width>'.
3689 * src/include/printer.h (printer::set_numbered_char): Make it
3691 Make members `font_table' and `nfonts' protected instead of private.
3692 * src/devices/grohtml/post-html.cc
3693 (html_printer::set_numbered_char): New member function.
3696 * src/libs/libgroff/maxfilename.cc:
3697 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3699 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3702 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
3704 * man/roff.man: Small fixes.
3706 2003-04-03 Werner LEMBERG <wl@gnu.org>
3708 Make groff independent from locale's numeric settings.
3710 * configure.ac: Check for `setlocale'.
3711 * configure, src/include/config.hin: Regenerated.
3713 * src/include/lib.h: Handle HAVE_SETLOCALE.
3715 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3716 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3717 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3720 * doc/groff.texinfo: Change dir category to `Typesetting'.
3721 (Man font macros): Mention that there is no space between arguments
3724 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3725 (*printer::change_color, *printer::change_fill_color): Add missing
3728 2003-04-02 Werner LEMBERG <wl@gnu.org>
3730 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3731 html_table::is_gap): Compute table widths after converting border
3732 positions to avoid rounding errors.
3734 2003-04-01 Werner LEMBERG <wl@gnu.org>
3736 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3737 `space_emitted' properly.
3739 2003-03-31 Werner LEMBERG <wl@gnu.org>
3741 * src/devices/grohtml/html-table.cc: Fix column width calculation.
3742 (html_table::set_linelength): Don't add 1.
3743 (html_table::add_indent): Don't subtract 1.
3745 * tmac/html.tmac: Set default page offset to zero.
3747 2003-03-30 Werner LEMBERG <wl@gnu.org>
3749 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
3751 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3752 unbreakable_space_node::tprint): New functions.
3753 (troff_output_file): Make space_char_hmotion_mode::tprint and
3754 unbreakable_space_node::tprint to friends.
3755 * src/roff/troff/node.h: Updated.
3757 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
3758 in the HTML standard).
3760 2003-03-29 Werner LEMBERG <wl@gnu.org>
3762 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3763 Otherwise, the following code
3772 produces `x a' instead of `xa'. This is a temporary fix, disabling
3773 font changes in diversions for -Thtml.
3775 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3777 (an-do-tag-html): Merge with ...
3778 (an-do-tag): This macro.
3779 Change code slightly to circumvent grohtml bug.
3780 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3782 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3783 html_table::is_gap): Round `width' properly.
3785 * tmac/html.tmac: Provide some default layout parameters for
3788 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3791 2003-03-28 Werner LEMBERG <wl@gnu.org>
3793 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3795 2003-03-27 Werner LEMBERG <wl@gnu.org>
3797 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3800 2003-03-20 Werner LEMBERG <wl@gnu.org>
3802 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3804 * doc/groff.texinfo: Updated.
3806 2003-03-19 Werner LEMBERG <wl@gnu.org>
3808 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3809 TOKEN_END_TRAP>: Reset `have_input'.
3811 2003-03-18 Werner LEMBERG <wl@gnu.org>
3813 * src/roff/groff/groff.man: Mention groff_trace man page.
3815 2003-03-16 Werner LEMBERG <wl@gnu.org>
3817 * Makefile.in (LIBEXT): New variable to indicate the file extension
3818 of library files. Computed heuristically from $(OBJEXT).
3819 (MDEFINES): Add $(LIBEXT).
3820 * Makefile.lib, Makefile.comm: Use it.
3822 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
3823 overlong lines into smaller chunks.
3824 (get_binary): New function.
3826 * src/utils/pfbtops/pfbtops.man: Updated.
3828 2003-03-15 Colin Watson <cjwatson@debian.org>
3830 * src/roff/groff/groff.man: Minor syntax fix.
3832 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
3834 * src/devices/grops/ps.cc (ps_printer::media_set,
3835 ps_printer::~ps_printer): Handle zero paper width and length.
3837 2003-03-13 Werner LEMBERG <wl@gnu.org>
3839 Add options -p and -l to grodvi.
3841 * src/devices/grodvi/dvi.cc: Include paper.h.
3842 (landscape_flag, user_paper_length, user_paper_width): New global
3844 (dvi_printer::begin_page): Emit `papersize' special.
3845 Set color after initialization of `cur_h' and `cur_v'.
3846 (main): Add options `-l' and `-p'.
3847 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3848 * src/devices/grodvi/grodvi.man, NEWS: Updated.
3850 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3852 2003-03-12 Werner LEMBERG <wl@gnu.org>
3854 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3855 * man/groff_tmac.man: This man page.
3856 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3859 * tmac/X.tmac: Don't load pspic.tmac.
3861 2003-03-11 Werner LEMBERG <wl@gnu.org>
3863 Make variable `pr' local to libdriver/input.cc. Based on a patch
3864 by Bernd Warken <bwarken@mayn.de>.
3866 * src/include/driver.h (pr): Removed.
3868 * src/libs/libdriver/input.cc (pr): New global variable.
3869 (do_file): Deallocate `pr'.
3870 * src/libs/libdriver/printer.cc (pr): Removed.
3872 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3873 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3874 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3875 (main): Don't delete `pr'.
3877 2003-03-10 Werner LEMBERG <wl@gnu.org>
3879 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3880 * tmac/papersize.tmac: New file.
3881 * tmac/troffrc: Include `papersize.tmac'.
3882 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3883 * tmac/an-old.tmac: Set LT to LL by default.
3885 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3886 doc/groff.texinfo: Updated.
3888 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3889 bug which caused all odd iso papers to have wrong dimensions.
3891 * src/devices/grops/ps.cc (user_paper_width): New global variable.
3892 (main) <'p'>: Set `user_paper_width' also.
3893 (ps_printer::media_width, ps_printer::media_height): Use values
3894 given with option `-p'.
3896 2003-03-09 Werner LEMBERG <wl@gnu.org>
3898 * src/include/nonposix.h: Provide default for SET_BINARY.
3900 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3901 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3904 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3905 (main): Treat \r\n as \n.
3907 2003-03-08 Werner LEMBERG <wl@gnu.org>
3909 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3910 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3912 2003-03-07 Werner LEMBERG <wl@gnu.org>
3914 Added support to access more than 256 glyphs in Type 1 fonts.
3916 * src/devices/grops/ps.cc (subencoding): New structure.
3917 (style): Add `sub' field.
3919 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3920 Add `set_subencoding', `get_subfont' and `encode_subfont' member
3923 (ps_printer::set_char): Use `set_subencoding'.
3924 (make_subencoding_name): New function.
3925 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3926 (ps_printer::~ps_printer): Emit subencoding definitions.
3928 * src/devices/grops/psrm.cc (valid_input_table): New array to
3929 properly support EBCDIC.
3930 (white_space): Add `\f'.
3931 (ps_get_line): Change first argument to be of type `string &'.
3932 Updated all callers.
3933 This allows to get lines of arbitrary length.
3934 Use `valid_input_table'.
3935 Remove warning about non-conforming PS line length. This seems
3936 not to be of great importance -- for example, dvips don't emit
3938 (PS_LINE_MAX): Removed.
3939 (matches_comment): Change first argument to be of type `string &'.
3941 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3943 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3944 %AGL_to_unicode, %default_ligatures): New hash tables.
3945 Read all map entries.
3946 Add unencoded characters.
3947 Check for default ligatures if there are no `L' entries.
3948 Print all kern entries.
3949 Print all characters in charset.
3950 * src/utils/afmtodit/afmtodit.man: Updated.
3952 * font/devps/*: Regerated all fonts.
3954 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3955 of characters, just use `.trin'. Otherwise the mapping depends
3956 on the font encoding.
3957 * tmac/ps.tmac: Add `fi' and `fl'.
3958 Improve `Fi' and `Fl'.
3959 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3960 * tmac/Xps.tmac: Fix `em'.
3964 2003-03-04 Werner LEMBERG <wl@gnu.org>
3966 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3969 2003-03-03 Werner LEMBERG <wl@gnu.org>
3971 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3973 * font/devps/generate/textmap: Remove entry `similarequal'.
3974 * font/devps/symbolmap: Updated.
3976 2003-03-02 Werner LEMBERG <wl@gnu.org>
3978 * src/libs/libgroff/font.cc (font::load): Fix error message for
3981 * src/devices/grops/grops.man: Improve documentation of the -b
3984 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3985 `ascii' and `cp1047'.
3987 2003-03-01 Werner LEMBERG <wl@gnu.org>
3989 Document composite glyphs and the `composite' request.
3991 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3993 2003-02-28 Werner LEMBERG <wl@gnu.org>
3995 * font/devdvi/generate/ec.map: Add some more Unicode entities.
3996 * font/devdvi/*EC: Updated.
3998 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3999 * tmac/latin1 (latin1-tr): Undo any previous mapping.
4000 * tmac/troffrc: Load `composite.tmac'.
4001 * tmac/Makefile.sub (NORMALFILES): Updated.
4003 * doc/groff.texinfo (Input Encodings): New section.
4006 2003-02-27 Werner LEMBERG <wl@gnu.org>
4008 * doc/texinfo.tex: New version 2003-02-11.06.
4010 * tmac/doc-common (Dt): Don't emit warning for unknown section.
4011 * tmac/groff_mdoc.man: Fix description of `Dt'.
4013 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
4015 * font/devps/prologue.ps: Fix for included Postscript that does
4016 a setpagedevice -- which is now safely ignored.
4020 * src/devices/grops/ps.cc: Now sets the page size in the generated
4021 document. This is done in two ways: Via a %%-comment for gv and
4022 the like, and via a PageSize and setpagedevice for programs that
4023 understands Postscript proper, like ps2pdf.
4025 * src/devices/grops/ps.h: New broken-flag to avoid page size
4026 definition, if required.
4028 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
4030 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
4031 Not really necessary due to the fix in prologue.ps, but cleaner:
4032 Such information does not belong in an .eps file.
4034 * doc/Makefile.sub: See doc/Makefile.in.
4036 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
4038 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
4039 instead of P1 since the latter is broken in some versions of netpbm.
4040 * configure: Updated.
4042 2003-02-26 Larry Kollar <kollar@alltel.net>
4044 Make man pages more customizable.
4046 * tmac/an-old.tmac (FT): New register holding footer distance from
4048 (HF): New string holding the default heading font.
4049 (TH): Handle registers `IN' and `SN' set on the command line.
4051 (PT, BT): New strings to customize header and footer lines.
4052 (an-header, an-footer): Use them.
4054 * tmac/groff_man.man: Document changes.
4056 * doc/groff.texinfo: Document man changes.
4057 Document Ultrix extensions of man.
4059 2003-02-26 Werner LEMBERG <wl@gnu.org>
4061 * src/roff/troff/input.cc (do_width, do_if_request): Reset
4062 `have_input' after changing back to old environment.
4064 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
4065 function up to be defined before first call. This is necessary to
4066 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
4068 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
4069 the default font directory also. Based on a patch from James
4070 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
4071 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
4072 * src/utils/afmtodit/afmtodit.man: Document it.
4076 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
4078 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
4080 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
4081 (GROFF_PNMTOPS_NOSETPAGE): New macro.
4082 * configure.ac: Use it.
4083 * configure: Regenerated.
4084 * Makefile.in: Updated.
4086 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
4087 (CLEANADD): Add www.tmac-sed.
4088 (pnmtops_nosetpage): Define default.
4089 (install_data): Handle www.tmac-sed and substitute
4090 @PNMTOPS_NOSETPAGE@.
4091 (stamp-sed): Add www.tmac.
4092 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
4093 It now breaks URLs at suitable places.
4094 (www:substring_ok): New register set by...
4095 (www:@test_substring): New macro.
4096 (www:error): New alias to www-error.
4097 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
4099 (URL): Use www:url_breaks.
4100 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
4101 (CDS, CDE): New macros.
4103 2003-02-25 Werner LEMBERG <wl@gnu.org>
4105 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
4108 2003-02-24 Werner LEMBERG <wl@gnu.org>
4110 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
4111 can be negative also.
4113 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
4115 (read_char_table): Avoid negative ascenders.
4116 (output_charset): Add cast.
4117 * font/devlj4/*: Regenerated.
4119 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
4122 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
4123 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
4125 * font/devdvi/*: Regenerated.
4127 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
4128 normal width, while the previously used characters (U+2329 and
4129 U+232A) are classified as wide due to canonical equivalence with the
4130 CJK punctuation characters U+3008 and U+3009.
4132 * font/devutf8/R.proto: Updated.
4133 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
4135 * man/groff_char.man: Simplify handling of table traps by
4136 introducing `start block' and `end block' macros.
4137 (Ns, Ne, 2s, 2e, Ds, De): New macros.
4138 (DL): Make it work with Unix troff also.
4139 Fix code values of `la' and `ra'.
4141 * tmac/dvi.tmac: Define `<>' for CW and CWI.
4143 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
4145 * src/devices/grohtml/post-html.cc (element_list::~element_list):
4146 New destructor, fixing a major memory leak.
4148 2003-02-22 Werner LEMBERG <wl@gnu.org>
4150 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
4151 to be in conformance with Unicode 3.0 and newer.
4153 * font/devlj4/generate/text.map: Add `Eu'.
4154 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
4155 * font/devlj4/S: Regenerated.
4157 * man/groff_char.man: Completely rewritten.
4159 * doc/groff.texinfo: Fix description of request and macro arguments.
4161 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
4165 * src/devices/grohtml/html-table.cc (html_table::~html_table):
4166 Deallocate `columns' list.
4167 * src/devices/grohtml/post-html.cc (char_block::~char_block):
4169 (text_glob::text_glob_html, text_glob::text_glob_special,
4170 text_glob::text_glob_line, text_glob::text_glob_auto_image,
4171 text_glob::text_glob_tag): Avoid memory leaks.
4172 (text_glob::remember_table): Free memory before reassigning.
4174 2003-02-19 Werner LEMBERG <wl@gnu.org>
4176 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
4177 alias `hbar'), the Planck constant over two pi.
4179 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
4180 `+e' for position 34.
4181 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
4182 `u2662' and `u2661'.
4183 * font/devdvi/{MI,S}: Regenerated.
4184 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
4185 * font/devlbp/*: Add `hbar' alias.
4186 * font/devlj4/generate/special.map: Ditto.
4187 * font/devlj4/S: Regenerated.
4188 * font/devps/generate/symbolchars: Add `+e'.
4189 * font/devps/generate/textmap: Fix PS name for `-h'.
4191 * font/devps/symbolmap: Regenerated.
4193 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
4195 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
4197 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
4200 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
4202 * tmac/tty-char.tmac: Add `+e'.
4204 2003-02-17 Werner LEMBERG <wl@gnu.org>
4206 Another round trying to really fix problems with `have_input'.
4208 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
4209 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
4211 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
4212 handling if both foreground and background colors are default.
4214 * doc/groff.texinfo (Debugging): Document .lf differences to
4217 2003-02-16 Werner LEMBERG <wl@gnu.org>
4219 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
4220 null-bytes in created string.
4222 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
4223 alias_macro, lookup_request): Improve warning messages.
4225 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
4227 Free `last_image_filename'.
4229 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
4231 (imageList::createPage, imageList::createImage): Use `free', not
4233 (imageItem::~imageItem): Free `imageName'.
4234 (addRegDef): Use `strsave', not `strdup'.
4235 (get_resolution): Free `pathp'.
4237 2003-02-15 Werner LEMBERG <wl@gnu.org>
4239 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
4242 2003-02-14 Werner LEMBERG <wl@gnu.org>
4244 Add memory management for colors to deallocate unnamed colors
4247 * src/include/color.h (color): New members `free_list' and `next'.
4248 New member functions `new' and `delete'.
4250 * src/libs/libgroff/color.cc: Implement it.
4252 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
4253 for array size of new operator.
4255 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
4256 redundant comparison.
4258 * src/roff/troff/input.cc (word_space_node::reread,
4259 hmotion_node::reread): Avoid warning about unused parameter.
4260 (reset_output_registers): Remove redundant parameter.
4261 (define_color): Undo change 2003-02-12.
4263 * src/roff/troff/reg.h: Updated.
4265 * src/roff/troff/node.cc (troff_output_file::really_print_line,
4266 output_file::put_filename, real_output_file::really_put_filename,
4267 ascii_output_file::really_print_line,
4268 break_char_node::get_hyphen_list): Avoid warning about unused
4270 (suppress_node::tprint): Updated.
4272 * configure.ac: Check declaration for rand() and srand().
4273 * configure: Regenerated.
4275 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
4277 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
4280 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
4281 to avoid compiler warnings.
4283 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
4286 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
4288 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
4290 Updated all callers.
4292 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
4294 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
4295 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
4297 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
4298 Parameter is unused.
4299 (html_printer::add_table_end): Define parameter conditionally.
4300 * src/devices/grohtml/output.cc (simple_output::special): Parameter
4303 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
4304 (lbp_printer::set_char): Last parameter is unused.
4306 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
4308 2003-02-13 Werner LEMBERG <wl@gnu.org>
4310 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
4311 Make \D'f ...' move horizontally again for backwards compatibility.
4312 Replace it with \D'Fg ...' where appropriate to avoid dependency
4313 on horizontal resolution.
4315 * src/roff/troff/input.cc (do_get_long_name): New function.
4316 (get_long_name): Call it.
4318 (read_draw_node): Handle `\D'Fx ...' by calling ...
4319 (read_color_draw_node): New function.
4321 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4323 Pass it to `do_get_long_name' which is used instead of
4326 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4327 unnecessary value guard.
4328 (parse_D_command) <'f'>: Add horizontal shift.
4330 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4331 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4332 (FILL_MAX): Removed.
4334 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4337 2003-02-12 Werner LEMBERG <wl@gnu.org>
4339 * src/roff/troff/input.cc (do_name_test, do_expr_test,
4340 do_zero_width): Push `\n' if closing delimiter is missing.
4342 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4343 <'F'>: Make \F non-transparent at the beginning of line.
4344 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4345 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4348 (define_color): Free color in case of reassignment.
4350 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4351 @DefescListEnd): Use @Var, not @var.
4354 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4356 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4357 `shaded' and `outlined' arrays.
4358 (object_spec::object_spec): Initialize `shaded' and `outlined'.
4359 (graphic_object::set_fill_color, graphic_object::set_outline_color):
4361 (closed_object::set_fill_color): Ditto.
4362 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4364 (troff_output::reset_color): Use a_delete instead of free.
4365 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4367 2003-02-11 Werner LEMBERG <wl@gnu.org>
4369 * doc/groff.texinfo: Improve documentation of `ad'.
4370 Document that \D'f...' is dependent on the horizontal resolution.
4371 * man/groff_diff.man: Improve documentation of \D'f...'.
4373 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4374 compensating \h'...' for \D'f ...' since the latter no longer moves
4376 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4378 2003-02-10 Werner LEMBERG <wl@gnu.org>
4380 Improve error messages for `x F' (and `F') commands.
4382 * src/include/error.h: Add declaration for
4383 `current_source_filename'.
4384 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4385 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4386 parameter for source file string.
4387 Updated all callers.
4389 * src/libs/libdriver/input.cc: Add `current_source_filename'.
4390 (remember_source_filename): New function.
4391 (parse_x_command <'F'>, do_file <'F'>): Use it.
4393 2003-02-09 Werner LEMBERG <wl@gnu.org>
4395 Make grotty not emit warnings about unknown colors more than
4398 * src/devices/grotty/tty.cc: Include `ptable.h'.
4399 (TTY_MAX_COLORS): Removed.
4400 (DEFAULT_COLOR_IDX): Defined to -1.
4401 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4402 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4403 Change `tty_colors' to be a ptable.
4404 First arg of `put_color' is now `char'.
4405 New functions `make_rgb_string' and `tty_color'.
4406 (tty_printer::tty_printer): Use `tty_color'.
4407 (tty_printer::color_to_idx): Return value is now `char'.
4410 * src/include/color.h (color): Add `print_color' member function.
4411 * src/libs/libgroff/color.cc (color::print_color): Implement it.
4413 2003-02-08 Werner LEMBERG <wl@gnu.org>
4417 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4420 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4421 assume that value has been allocated with `new[]', thus use
4422 `a_delete' for deallocation.
4424 * src/libs/libdriver/input.cc (get_integer_arg,
4425 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4428 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4429 * src/libs/libgroff/nametoindex.cc
4430 (character_indexer::named_char_index): Use `new <type>[1]'.
4432 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4434 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4435 (split_text): Use `a_delete'.
4437 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4440 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4441 harmless memory leak.
4442 (hyphen_trie::read_patterns_file): Initialize `buf'.
4443 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4444 Initialize `current_fill_color'and `current_glyph_color'.
4445 * src/roff/troff/glyphuni.cc
4446 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4447 * src/roff/troff/uniuni.cc
4448 (unicode_decompose_init::unicode_decompose_init): Ditto.
4449 * src/roff/troff/uniglyph.cc
4450 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4452 2003-01-26 Werner LEMBERG <wl@gnu.org>
4454 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4455 `access' before calling `unlink'.
4456 (do_file): Handle __EMX__.
4458 * src/include/nonposix.h: Handle __EMX__.
4460 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4461 (fontpath,tmacpath): Use it.
4463 Sorted alphabetically.
4465 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4467 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4470 2003-01-27 Werner LEMBERG <wl@gnu.org>
4472 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4473 New files, copied from gnulib.
4474 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4475 * configure.ac: Updated.
4476 * configure: Regenerated.
4478 * src/include/config.hin: Regenerated.
4479 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4480 Don't define `strcasecmp' as `strcmp'.
4481 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4482 Dont define `strncasecmp' as `strncmp'.
4484 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4487 2003-01-26 Werner LEMBERG <wl@gnu.org>
4489 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4492 2003-01-25 Werner LEMBERG <wl@gnu.org>
4494 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4496 2003-01-24 Werner LEMBERG <wl@gnu.org>
4498 Add US-english hyphenation exceptions (converted from Barbara
4499 Beeton's hyphenation exception log reports which appear irregularly
4502 * tmac/hyphen.us: Updated to latest version.
4503 * tmac/README: Updated.
4504 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4505 * tmac/troffrc: Load `hyphenex.us'.
4506 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4507 * doc/groff.texinfo: Updated.
4509 2003-01-23 Werner LEMBERG <wl@gnu.org>
4511 Improve hyphenation slightly. This is a first step in redesigning
4512 the hyphenation algorithm to make it more flexible (e.g. allowing
4513 kerns and ligatures between the hyphenation character and the
4514 following character -- while not used normally in English, other
4515 languages like German would benefit).
4517 * src/roff/troff/env.cc (environment::hyphenate_line): Use
4518 assertion instead of if-clause.
4519 Let `get_hyphen_list' return the number of involved characters in
4520 the hyphenation pattern instead of computing it directly (which
4521 often yields too small values).
4522 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4523 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4526 2003-01-22 Werner LEMBERG <wl@gnu.org>
4528 Fixing a bug which caused groff to hang if the hyphenation exception
4529 dictionary tried to grow.
4531 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4532 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4533 pointer to dictionary.
4535 2003-01-20 Werner LEMBERG <wl@gnu.org>
4537 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4538 negative left italic correction.
4539 * src/utils/afmtodit/afmtodit.man: Document it.
4541 * font/devps/generate/Makefile (RFLAG): Add `-m'.
4542 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4543 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4547 2003-01-16 Werner LEMBERG <wl@gnu.org>
4551 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
4553 * src/preproc/refer/refer.man: Mention REFER environment variable.
4555 2003-01-05 Werner LEMBERG <wl@gnu.org>
4557 Similar to \[is], the square root glyph (\[sr]) and the square root
4558 extension glyph (\[radicalex]) are now text symbols. The new
4559 mathematical versions are called \[sqrt] and \[sqrtex],
4562 * font/devX*/S: Regenerated.
4563 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4564 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4565 * font/devdvi/EX, font/devdvi/S: Regenerated.
4566 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4567 * font/devlj4/generate/special.map: Add `sqrt'.
4568 * font/devlj4/S: Regenerated.
4569 * font/devps/generate/textmap: Add `sqrt'.
4570 * font/devps/S, font/devps/symbolmap: Regenerated.
4572 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4573 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4574 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4575 overlap horizontally.
4577 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4578 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4581 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4582 and `sqrtex' are overlapping glyphs.
4584 2003-01-04 Werner LEMBERG <wl@gnu.org>
4586 * font/devdvi/generate/texsy.map: Add `is'.
4587 * font/devps/symbolmap: Regenerated.
4588 * font/devdvi/*TC, MI, S: Regenerated.
4590 * tmac/dvi.tmac: Remove `is'.
4592 2003-01-03 Werner LEMBERG <wl@gnu.org>
4594 `is' is now a text symbol (only relevant for dvi). The math variant
4595 can be accessed with `integral'.
4597 * font/devX*/S: Regenerated.
4598 * font/devdvi/generate/texex.map: Remove `is'.
4599 * font/devdvi/EX: Updated.
4600 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4601 * font/devlj4/generate/special.map: Ditto.
4602 * font/devlj4/S: Regenerated.
4603 * font/devps/generate/textmap: Add `integral'.
4604 * font/devps/S: Regenerated.
4606 * tmac/dvi.tmac: Define `is'.
4608 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4610 * src/preproc/tbl/main.cc (process_format): Fix error message.
4612 2003-01-02 Werner LEMBERG <wl@gnu.org>
4614 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4615 * font/devps/textmap: Fix entries for `ne' and `nc'.
4616 * font/devps/symbolmap: Regenerated.
4618 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4619 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4620 `38', `58', `78', `-+', `|=', `nc', `ne'.
4622 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4623 Use `schar' for `aq'.
4624 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4625 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4626 * tmac/tty.tmac: Add `ne'.
4628 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4629 for fallback glyphs.
4631 2002-12-29 Werner LEMBERG <wl@gnu.org>
4635 * font/devX*/*: Regenerated.
4636 * font/devdvi/generate/ec.map: Remove `eq'.
4637 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4638 Assign `|=' to position 39.
4639 * font/devdvi/*EC, S: Regenerated.
4640 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4641 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4642 Assign `|=' to position 549.
4643 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4645 Add `uni2243' for `|='.
4647 * tmac/ec.tmac: Add `eq'.
4648 * tmac/dvi.tmac: Add `=~'.
4649 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4652 2002-12-21 Werner LEMBERG <wl@gnu.org>
4654 * font/devdvi/generate/tc.map: Remove `**'.
4655 * font/devdvi/*TC: Regenerated.
4656 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4658 * font/devutf8/NOTES: Updated.
4660 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4661 Don't give default parameter to `set_macro'.
4662 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4663 instead of `set_macro'.
4664 (charinfo::setx_macro): Implement it.
4665 (charinfo::set_macro): Don't change `mode'.
4667 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4668 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4669 * tmac/dvi.tmac: Define `!=' with `.schar'.
4671 2002-12-20 Werner LEMBERG <wl@gnu.org>
4673 * font/devX*/S: Regenerated.
4674 * font/devdvi/generate/ec.map: Remove `pl'.
4675 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4676 * font/devdvi/*{TC,EC}: Regenerated.
4677 * font/devhtml/R.proto: Add `-+'.
4678 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4679 * font/devlbp/*: Remove `or'.
4680 * font/devlj4/generate/special.map: Remove `or'.
4681 * font/devlj4/S: Regenerated.
4682 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4683 `seveneighths', `threeeighths'.
4685 Replace `minusplus' with `uni2213'.
4686 * font/devps/symbolmap: Regenerated.
4687 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4690 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4692 * src/roff/troff/node.cc (troff_output_file::put_char_width):
4693 Call glyph_color and fill_color even if tcommand_flag isn't set.
4694 (make_node, node::add_char): Check not ci->is_fallback but
4697 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4698 * tmac/ec.tmac: Add .rchar entry for `f/'.
4699 Don't remove `12', `14', `34'.
4700 Define `pl' to be always roman.
4701 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4702 Define `18', `38', `58', `78'.
4703 * tmac/tty.tmac: Add `-+'.
4704 * tmac/dvi.tmac: Define `f/'.
4705 (dvi-frac): Use `f/'.
4706 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4707 Define `18', `38', `58', `78'.
4709 2002-12-15 Colin Watson <cjwatson@debian.org>
4711 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4713 2002-12-10 Werner LEMBERG <wl@gnu.org>
4715 Add glyph `tno', a textual variant of `no'.
4717 * font/devX*/*: Regenerated.
4718 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4719 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4720 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4721 * font/devdvi/*: Regenerated.
4722 * font/devlbp/*: Add `tno'.
4723 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4724 * font/devlj4/*: Regenerated.
4725 * font/devps/generate/textmap: Replace `no' with `tno'.
4726 * font/devps/generate/symbolchars: Add `no'.
4727 * font/devps/*: Regenerated.
4729 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4731 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4732 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4736 * tmac/dvi.tmac: Replace most `\\' with `\E'.
4737 Add definition for `sd'.
4738 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4740 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4742 2002-12-08 Werner LEMBERG <wl@gnu.org>
4744 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4745 mode to avoid rounding errors.
4746 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4748 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4749 src/roff/troff/troff.man: Improve documentation of -T.
4751 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
4753 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4754 (run_pipeline) [_WIN32]: Provide working function without `fork'.
4756 2002-12-06 Werner LEMBERG <wl@gnu.org>
4758 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4759 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4760 Scaling Euro.sansserif glyphs down to have the same height as
4762 Removed unnecessary points; added some extrema.
4764 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4767 2002-12-04 Werner LEMBERG <wl@gnu.org>
4769 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4770 and `Euro.symbol.bold.slanted'.
4771 Improve some glyph offsets and widths.
4772 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4774 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4776 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4779 * tmac/europs.tmac: Updated to new glyph indices.
4780 Use Euro.symbol for font familiy `A'.
4782 * doc/groff.texinfo: Minor improvements.
4784 2002-12-02 Werner LEMBERG <wl@gnu.org>
4786 * font/devdvi/generate.tc.map: s/%O/%0/.
4787 * font/devdvi/*TC: Regenerated.
4789 * src/roff/troff/div.cc (init_div_requests): Sorted.
4791 * tmac/dvi.tmac: Remove `Ye'.
4792 * tmac/ec.tmac: Remove `Ye'.
4793 Add .rchar entry for `de'.
4795 * man/groff.man, man/groff_diff.man: Document register `.pe'.
4796 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4799 2002-11-30 Werner LEMBERG <wl@gnu.org>
4801 Add PS font for various Euro glyphs.
4803 * font/devps/generate/freeeuro.sfd: New master font file for
4805 * font/devps/generate/sfdtopfa.pe: New conversion script for
4807 * font/devps/generate/Makefile (FONTS): Add `EURO'.
4808 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4809 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4811 * font/devps/EURO: Generated from `freeeuro.afm'.
4812 * font/devps/download: Add `freeuro.pfa'.
4813 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4816 * tmac/europs.tmac: New file.
4817 * tmac/ps.tmac: Include `europs.tmac'.
4818 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4820 2002-11-29 Werner LEMBERG <wl@gnu.org>
4822 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4823 * font/devdvi/S: Regenerated.
4824 * font/devhtml/R.proto: Fix `CR' and `ci'.
4826 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4828 * font/devps/symbolmap: Regenerated.
4829 * font/devutf8/R.proto: Fix `CR' and `ci'.
4831 * font/devutf8/NOTES: Updated.
4833 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4836 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4838 * tmac/dvi.tmac: Add `lh' and `rh'.
4839 * tmac/Xps.tmac: Fix `lh' and `rh'.
4840 * tmac/X.tmac: Add `OK'.
4841 * tmac/lj4.tmac: Ditto.
4843 2002-11-24 Werner LEMBERG <wl@gnu.org>
4845 * font/devX*/S: Regenerated.
4846 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4847 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4848 * font/devdvi/generate/texsy.map: Remove `or' glyph.
4849 * font/devdvi/S: Regenerated.
4850 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4851 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4852 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4853 `bracketleftbt', `bracketrighttp', `bracketrightex',
4854 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4855 `braceex', `braceleftex', `bracerightex', `bracerighttp',
4856 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4858 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4859 * font/devutf8/NOTES: Updated.
4860 * font/devlj4/generate/special.map: Add glyph `braceex'.
4861 * font/devlj4/S: Regenerated.
4863 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4865 2002-11-14 Werner LEMBERG <wl@gnu.org>
4867 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4870 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4872 * doc/texinfo.tex: New version from texinfo 4.3.
4873 * doc/groff.texinfo: Updated for texinfo 4.3.
4874 Use @tie{} where appropriate.
4875 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4876 * font/devdvi/generate/tc.map: Remove `rn'.
4877 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4878 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4880 * font/devX100/*, font/devX100-12/*, font/devX75/*,
4881 font/devX75-12/*: Regenerated.
4883 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4884 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4885 Improve definition of `an'.
4886 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4888 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4889 * tmac/X.tmac: Add definition for `or'.
4890 * tmac/Xps.tmac: Undo change 2002-11-05.
4891 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4893 2002-11-11 Werner LEMBERG <wl@gnu.org>
4895 * src/roff/troff/node.cc (troff_output_file::put_char): Always
4898 2002-11-10 Werner LEMBERG <wl@gnu.org>
4900 Added three new requests `schar', `fschar', and `rfschar'. `schar'
4901 defines a glyph which is searched after the check for fonts declared
4902 with `.special' (and before the check for all mounted special
4903 fonts). `fschar' defines a glyph for a particular font which is
4904 searched after the check for fonts declared with `.fspecial' (and
4905 before the check for fonts declared with `.special'). `rfschar'
4906 removes glyphs defined with `fschar'.
4908 * src/roff/troff/token.h (char_mode): New enum.
4909 Declare do_define_character.
4910 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4912 (charinfo::is_fallback): Updated.
4913 (charinfo::is_special): New method.
4914 * src/roff/troff/input.cc (do_define_character): Add and use
4915 optional second parameter used as a prefix for font-specific glyph
4917 (define_character, define_fallback_character): Updated.
4918 (define_special_character): New function.
4919 (init_input_requests): Add `schar'.
4920 (charinfo::charinfo, charinfo::set_macro): Updated.
4921 * src/roff/troff/node.cc: Include `stringclass.h'.
4922 (make_glyph_node): Handle special glyphs defined with `.schar' and
4924 (define_font_special_character, remove_font_special_character): New
4926 (init_node_requests): Sorted.
4927 Add `fschar' and `rfschar'.
4928 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4929 Document new requests.
4931 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4932 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4934 2002-11-08 Werner LEMBERG <wl@gnu.org>
4936 Added new font `SC' (cmtex10) to devdvi.
4938 * devdvi/generate/Makefile (FONTS): Add `SC'.
4940 * devdvi/generate/textex.map: New map file for cmtex.
4942 * devdvi/Makefile.sub (DEVFILES): Updated.
4943 * tmac/dvi.tmac: Add fspecial entries for SC.
4944 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
4945 found before `S' since the font position of `SC' is lower due to the
4946 gaps in DESC's `font' line.
4947 * tmac/ec.tmac: Add a `special' call.
4950 * font/devhtml/R.proto: Remove double entry for `ti'.
4951 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4952 * tmac/tty-char.tmac: Remove entry for `bq'.
4953 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4954 * tmac/ec.tmac: Don't remove `aq' glyph.
4955 * tmac/X.tmac: Fix entry for `em'.
4956 Add entries for `fo' and `fc'.
4957 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4959 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4960 documentation of `special' and `fspecial' requests.
4962 2002-11-05 Werner LEMBERG <wl@gnu.org>
4964 * font/devascii/R.proto, font/devcp1047/R.proto,
4965 font/devlatin1/R.proto: Remove entry for `.i'.
4966 * font/devdvi/generate/textt.map: Add entry for `ad'.
4967 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4968 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4969 We need this for getting kerning values to compose `/l' and `/L'.
4970 * font/devdvi: Regenerated font definition files for CM fonts.
4971 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4972 * font/devutf8/R.proto: Ditto.
4973 Remove double entry for `ti'.
4975 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4976 for (groff) ligatures, `la', and `ra'.
4977 Add "'C", "'c", `IJ', and `ij'.
4978 Remove double entry for `ti'.
4979 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4981 Add "'C", "'c", `IJ', and `ij'.
4982 Fix entries for (groff) ligatures, `la', and `ra'.
4984 * tmac/ps.tmac (ps-achar): New macro.
4985 Define "'c" and "'C".
4986 * tmac/tty.tmac: Add entry for `.i'.
4987 * tmac/X.tmac (X-achar): New macro.
4988 Define "'c", "'C", and `:Y'.
4989 Add entries for `IJ' and `ij'.
4990 * tmac/Xps.tmac (Xps-achar): New macro.
4991 Define "'c" and "'C".
4992 Add entries for `IJ' and `ij'.
4993 * tmac/lbp.tmac (lbp-achar): New macro.
4994 Add fallback characters for all groff ligatures and many other
4996 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4997 Add entries for `/l' and `/L'.
4998 Define "'c" and "'C".
4999 Add entries for `IJ' and `ij'.
5001 2002-11-02 Larry Kollar <kollar@alltel.net>
5003 * PROBLEMS: Document how to solve Mac OS X compilation problems.
5005 2002-11-02 Werner LEMBERG <wl@gnu.org>
5007 Adding support for composite glyphs: \[xxx yyy ...] and the
5008 `composite' request.
5010 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
5011 to Unicode-based glyph names.
5012 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
5013 glyph names to groff glyph names.
5014 * src/roff/troff/uniuni.cc: New file for canonically decomposing
5015 Unicode-based glyph names.
5016 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
5017 for handling Unicode glyph names.
5018 * src/roff/troff/input.cc: Include unicode.h.
5019 (composite_glyph_name): New function.
5020 (token::next) <'['>: Handle Unicode glyph names and composite
5022 (composite_dictionary): New dictionary for the `composite' request.
5023 (composite_request): Implement `composite' request.
5024 (init_input_requests): Add `composite'.
5025 Alphabetically sorted.
5026 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
5028 (init_env_requests): Alphabetically sorted.
5029 Removed `tas' and `tar' (already commented out).
5030 * src/roff/troff/Makefile.sub: Updated.
5032 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
5034 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
5037 2002-10-29 Werner LEMBERG <wl@gnu.org>
5039 Fix computation of .trunc register. Additionally, its value (and
5040 the value of the .ne register) is now always set before entering the
5043 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
5044 `needed_space' before calling `space'.
5045 (top_level_diversion::space): Remove special code for 'sp before the
5047 Call `begin_page' with the discarded space as a parameter.
5048 (top_level_diversion::begin_page): Add optional parameter to set
5050 * src/roff/troff/div.h: Updated.
5052 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
5055 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
5056 (LP): Remove superfluous call to `br'.
5057 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
5058 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5060 2002-10-26 Werner LEMBERG <wl@gnu.org>
5062 * tmac/doc-ditroff: Remove useless switch/variable -rC.
5063 (doc-setup-header): Don't set page register `%'.
5064 * tmac/doc-nroff: Remove variable `C'.
5065 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
5066 (doc-setup-header): Don't set page register `%'.
5068 * tmac/doc-common (doc-header): Call `ns'.
5069 (doc-paragraph): Protect .sp with .br so that it survives traps
5070 possibly set by the user.
5071 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5073 * tmac/doc*: Replace ' with . for consistency if no effect.
5075 2002-10-26 Werner LEMBERG <wl@gnu.org>
5077 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
5078 so that it survives traps possibly set by the user.
5080 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
5081 (troff_output_file::set_font): Call flush_tbuf if necessary.
5082 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
5083 flush_tbuf and do_motion only if necessary.
5084 (troff_output_file::start_special,
5085 troff_output_file::put_char_width, troff_output_file::put_char,
5086 troff_output_file::draw): Updated.
5087 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5088 vmotion_node::tprint): Undo change 2002-10-23.
5090 2002-10-25 Werner LEMBERG <wl@gnu.org>
5092 * tmac/www.tmac (DC): Fix case of overlapping images.
5094 2002-10-23 Werner LEMBERG <wl@gnu.org>
5096 * src/roff/troff/node.cc (troff_output_file::fill_color,
5097 troff_output_file::glyph_color): Set current color before testing
5099 (troff_output_file::put_char_width, troff_output_file::put_char,
5100 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
5102 (troff_output_file::file_color, troff_output_file::glyph_color):
5104 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5105 vmotion_node::tprint): Move first, then call fill_color.
5107 2002-10-20 Werner LEMBERG <wl@gnu.org>
5109 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
5110 possible to use multiple main macro packages.
5112 2002-10-19 Werner LEMBERG <wl@gnu.org>
5114 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
5115 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
5116 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
5118 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
5119 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
5121 2002-10-16 Werner LEMBERG <wl@gnu.org>
5123 * NEWS, doc/webpage.ms: Updated.
5125 2002-10-14 Werner LEMBERG <wl@gnu.org>
5127 * src/roff/troff/node.cc (troff_output_file::put_char_width,
5128 troff_output_file::put_char, troff_output_file::fill_color,
5129 troff_output_file::glyph_color): Handle case where color pointer
5132 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
5134 Add the new -r option to grotty. It is similar to the -i option
5135 except it tells grotty(1) to use the "reverse video" attribute to
5136 render italic fonts.
5138 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
5139 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
5140 (tty_printer::make_underline, tty_printer::put_color,
5141 tty_printer::end_page): Use it.
5142 (main): Add -r switch.
5144 * src/devices/grotty/grotty.man: Document it.
5146 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
5148 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5149 cast to `unsigned char' to properly read patterns with 8bit
5152 2002-10-08 Werner LEMBERG <wl@gnu.org>
5154 * REVISION: Increased to 2.
5156 Version 1.18.1 released
5157 =======================
5159 2002-10-08 Werner LEMBERG <wl@gnu.org>
5161 * doc/webpage.ms, NEWS: Updated.
5163 2002-10-07 Werner LEMBERG <wl@gnu.org>
5165 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
5166 suppress additional whitespace after the header.
5168 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
5171 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
5173 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
5175 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
5176 (Dt): Use it to improve language localization (especially Russian
5179 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
5181 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
5182 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
5184 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
5186 Call `picurve' for BSPLINE.
5187 (HGPrintElt): Handle BSPLINE.
5188 * src/preproc/grn/README: Document it.
5190 2002-10-03 Werner LEMBERG <wl@gnu.org>
5192 * src/roff/troff/node.cc (break_char_node::col): New variable.
5193 Updated constructor.
5194 (space_node::tprint, word_space_node::tprint): Call `fill_color'
5196 (space_node::space_node): Remove assertion.
5197 (break_char_node::add_self): Pass color argument to space node.
5198 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
5200 * src/roff/troff/env.cc (environment::do_break,
5201 environment::add_padding): Ditto.
5203 2002-10-02 Werner LEMBERG <wl@gnu.org>
5205 Redesigning color support in troff. Colors are no longer
5206 represented as separate nodes but are now part of glyph nodes and
5207 friends. This fixes the current formatting misbehaviour due to the
5208 changes introduced on 2002-09-20. Some extra code is necessary for
5209 proper grotty support: Without adding color variables to
5210 space-related nodes, the background color would be changed too late.
5212 * src/roff/troff/node.h, src/roff/troff/node.cc:
5213 s/current_pagecolor/current_fill_color/.
5214 s/current_glyphcolor/current_glyph_color/.
5215 (glyph_color_node, fill_color_node): Removed.
5216 (node::get_glyph_color, node::get_fill_color): New virtual member
5218 (space_node::col): New variable.
5219 Updated constructors of space_node and derived classes accordingly.
5220 (hmotion_node::col): New variable.
5221 Updated constructors of hmotion_node and space_char_hmotion_node
5223 (vmotion_node::col): New variable.
5224 Updated constructor accordingly.
5225 (draw_node::gcol, draw_node::fcol): New variables.
5226 Updated constructor accordingly.
5227 (special_node::gcol, special_node::fcol): New variables.
5228 Updated constructors accordingly.
5229 (troff_output_file::put_char, troff_output_file::put_charwidth,
5230 troff_output_file::draw): Set glyph and fill color.
5231 (troff_output_file::start_special): Set glyph and fill color.
5232 Always set current font.
5233 (troff_output_file::fill_color, troff_output_file::glyph_color):
5234 Don't call `do_motion'.
5235 (glyph_node::gcol, glyph_node::fcol): New variables.
5236 Updated constructors of glyph_node and ligature_node accordingly.
5237 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
5239 (glyph_node::merge_glyph_node,
5240 kern_pair_node::add_discretionary_hyphen,
5241 node::add_discretionary_hyphen): Updated.
5242 (break_char_node::merge_self): Updated.
5243 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5244 vmotion_node::tprint): Handle color.
5245 (make_glyph_node, make_node, node::add_char): Updated.
5247 * src/roff/troff/env.cc (environment::space_newline,
5248 environment::space, environment::output_line, environment::do_break,
5249 environment::make_tab_node, environment::add_padding, title):
5251 (environment_switch, environment_copy): Don't add color nodes.
5253 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
5255 (token::next): Updated.
5256 \m and \M now are as transparent as \s.
5257 (process_input_stack, token::add_to_node_list, token::process,
5258 read_draw_node): Updated.
5259 (charinfo_to_node_list): Don't add color nodes.
5261 * doc/groff.texinfo: Updated.
5263 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
5265 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
5268 2002-09-27 Colin Watson <cjwatson@debian.org>
5270 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
5272 2002-09-23 Werner LEMBERG <wl@gnu.org>
5274 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
5276 (DEFAULT_LINEWIDTH_FACTOR): New macro.
5277 (linewidth_factor): New global variable.
5278 (lbp_printer::set_line_thickness): Fix case for size < 0, using
5280 (long_options): Add -w/--linewidth option.
5282 (main): Handle -w option to set linewidth_factor.
5283 (lbp_printer::lbp_printer): Initialize req_linethickness, not
5286 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
5288 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
5290 Fixed a bug in the line thickness setting code.
5292 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
5294 (lbp_printer::set_line_thickness): Pass environment as second
5296 Implement it actually.
5297 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
5298 and `set_line_thickness, depending on the current font size.
5300 2002-09-21 Werner LEMBERG <wl@gnu.org>
5302 Some Debian patches.
5304 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
5305 * src/roff/troff/node.cc (bracket_node::copy): Initialize
5308 2002-09-20 Werner LEMBERG <wl@gnu.org>
5310 * configure: Regenerated with autoconf 2.54.
5312 2002-09-20 Werner LEMBERG <wl@gnu.org>
5314 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
5316 Rename cur_fill_color to fill_color.
5317 * src/roff/troff/env.cc: Updated.
5319 2002-09-20 Werner LEMBERG <wl@gnu.org>
5321 * src/roff/troff/env.cc (title): Copy color status after processing
5323 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
5324 fill color nodes to reset colors properly.
5326 * tmac/www.tmac (DC): Fix color handling.
5328 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
5329 * doc/groff.texinfo: Fixing documentation of `tl' request.
5330 * doc/webpage.ms: Updated.
5332 2002-09-19 Werner LEMBERG <wl@gnu.org>
5334 * src/roff/troff/env.cc (environent_switch, environment_copy):
5335 Emit glyph and fill color nodes to initialize colors properly.
5337 2002-09-17 Colin Watson <cjwatson@debian.org>
5339 * src/roff/troff/env.cc (environment::set_glyph_color,
5340 environment::set_fill_color): Fix typo which prevented \m[] work
5343 2002-09-17 Werner LEMBERG <wl@gnu.org>
5345 Add left and right italic correction to non-slanted PS fonts. This
5346 is an experimental feature to improve image rendering of grohtml.
5348 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
5349 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
5350 * font/devps/*: All non-slanted fonts regenerated.
5353 2002-09-16 Werner LEMBERG <wl@gnu.org>
5355 Add a site-specific font directory.
5357 * Makefile.in (localfontdir, legacyfontdir): New variables.
5358 (fontpath): Use them.
5359 (MDEFINES, uninstall_dirs): Updated.
5360 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
5361 Remove `FONTPATH' and `MACROPATH'.
5363 * src/roff/troff/troff.man, NEWS: Updated.
5364 * doc/groff.texinfo (Font Directories): New section.
5367 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
5368 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
5369 src/preproc/grn/grn.man: Minor fixes.
5371 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
5372 Remove unused variable.
5374 2002-09-11 Werner LEMBERG <wl@gnu.org>
5376 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
5377 * man/groff_out.man: Fix documentation of 'N'.
5379 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
5381 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
5382 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
5384 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
5385 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5386 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5387 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5388 PRE_TAG>: Call `begin' with `FALSE'.
5390 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5392 * src/libs/libgroff/string.cc (string::extract): Fix position of
5393 terminating null byte.
5395 2002-09-08 Werner LEMBERG <wl@gnu.org>
5397 Add global option `nospaces' to tbl so that leading and trailing
5398 spaces in data items are ignored.
5400 * src/libs/libgroff/string.cc (string::remove_spaces): New member
5401 function to remove leading and trailing spaces.
5402 * src/include/stringclass.h: Updated.
5404 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5406 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5408 Fix typo in error messages.
5409 (process_data): Implement `nospaces' option.
5410 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5412 2002-09-07 Werner LEMBERG <wl@gnu.org>
5414 * src/include/config.hin: Add `HAVE_ISATTY'.
5415 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5417 * src/libs/libgroff/tmpname.cc: Include `time.h'.
5418 * src/libs/libdriver/input.cc (Char): Add `operator==' and
5419 `operator!=' for `char'.
5420 * doc/groff.texinfo: Replace @ifnottex block for top node with
5423 2002-09-06 Werner LEMBERG <wl@gnu.org>
5425 * doc/Makefile.in (.texinfo.html): Add -I switch.
5426 * doc/groff.texinfo: Add @ifnottex block for top node to make
5427 translation to HTML work.
5429 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
5431 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5432 (get_papersize, determine_vertical_offset): Removed.
5433 (char_buffer::do_image): Always specify letter size.
5435 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5438 2002-09-05 Werner LEMBERG <wl@gnu.org>
5440 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5441 default indentation.
5443 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
5445 * src/preproc/html/pre-html.cc (imageList::createPage): Use
5447 (generateImages): Clean up push-back buffer.
5449 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5451 * doc/groff.texinfo: Minor fixes.
5453 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5455 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5456 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5458 (determine_vertical_offset): Use LETTER_LENGTH.
5459 (createPage): Moved to ...
5460 (imageList::createPage): This.
5461 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5462 (imageList::getMaxX): New function.
5463 (createImage): Moved to ...
5464 (imageList::createImage): This.
5465 (imageList::createImages): New function.
5466 (generateImages): Read `maxx' directly.
5468 (scanArguments): Don't specify `gsPaper' for `-o'.
5469 (makeTempFiles): Call `xtmpfile' with the last argument set to
5472 2002-08-24 Werner LEMBERG <wl@gnu.org>
5474 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5475 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5476 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5477 * src/preproc/html/pushback.cc: Include nonposix.h.
5478 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5481 2002-08-23 Werner LEMBERG <wl@gnu.org>
5483 Use $(OBJEXT) for the object file extension.
5485 * Makefile.comm (.SUFFIXES): Add .obj.
5486 (.cc.obj, .c.obj): New implicit rules.
5487 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5488 (MDEFINES): Add EXEEXT and OBJEXT.
5489 * */Makefile.sub: s/.o/.$(OBJEXT)/.
5491 2002-08-22 Werner LEMBERG <wl@gnu.org>
5493 * INSTALL: Mention texinfo 4.2 as a prerequisite.
5495 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5497 * src/devices/grohtml/post-html.cc (colType): Make enum global to
5499 (html_printer::update_min_max, html_printer::add_table_end): New
5501 (html_printer::lookahead_for_tables): Use them.
5502 Reset page offset correctly.
5503 (html_printer::~html_printer): Add creation of creator comment up.
5505 2002-08-20 Werner LEMBERG <wl@gnu.org>
5507 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5508 * man/groff_tmac.man: Fix typos.
5509 * man/groff_font.man: Minor reordering.
5510 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5512 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5514 Avoid endless loops while scanning for tables.
5516 * src/devices/grohtml/post-html.cc (list::insert): Set
5518 (html_printer::next_horiz_pos): Add `text_glob' argument; update
5520 Return immediately if that argument is NULL.
5521 (html_printer::calc_nf): Don't test if `g' is NULL.
5522 (html_printer::lookahead_for_tables): Use
5523 `glyphs.move_right_get_data'.
5524 Don't test if `g' is NULL.
5526 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5528 A better fix, replacing fix 2002-08-15, for increasing SIZE.
5530 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5532 (char_block::char_block): Allocate `buffer'.
5533 (char_buffer::add_string): Use it.
5535 2002-08-15 Werner LEMBERG <wl@gnu.org>
5537 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5538 src/devices/grodvi/grodvi.man: Document default line thickness.
5540 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
5542 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5545 2002-08-14 Werner LEMBERG <wl@gnu.org>
5547 * doc/webpage.ms: Updated.
5549 2002-08-09 Werner LEMBERG <wl@gnu.org>
5551 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5554 2002-08-08 Aaron Campbell <aaron@monkey.org>
5556 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5559 2002-08-08 Werner LEMBERG <wl@gnu.org>
5561 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5564 Don't push back a space but a newline onto the stack.
5566 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
5568 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5571 * src/devices/grohtml/post-html.cc (html_printer::end_font,
5572 html_printer::start_font): Handle them.
5573 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5575 (html_text::do_bold): Don't reset italic and tt.
5576 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5577 * font/devhtml/DESC.proto: Add those fonts.
5578 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5580 2002-08-07 Werner LEMBERG <wl@gnu.org>
5582 * MORE.STUFF: Added gpresent.
5584 * tmac/trace.tmac: Show nesting level by a corresponding amount of
5585 whitespace before printing the logging message.
5587 2002-07-31 Colin Watson <cjwatson@debian.org>
5589 * src/devices/grohtml/html-table.cc (html_table::finish_row):
5590 Initialize `n' to zero. This fixes a segfault on ARM.
5592 2002-07-30 Werner LEMBERG <wl@gnu.org>
5594 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5596 2002-07-29 Werner LEMBERG <wl@gnu.org>
5598 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5601 2002-07-28 Colin Watson <cjwatson@debian.org>
5603 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5605 (html_printer::html_printer): Initialize `pointsize'.
5607 2002-07-26 Werner LEMBERG <wl@gnu.org>
5609 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5611 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5612 (gnu.eps): Add -rle switch to pnmtops.
5613 (distfiles): Add gnu.eps and gnu.png.
5615 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
5617 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5620 2002-07-24 Werner LEMBERG <wl@gnu.org>
5622 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5623 ' \+' but ' *' for sed.
5624 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5626 2002-07-23 Werner LEMBERG <wl@gnu.org>
5628 * doc/groff.texinfo: Document `papersize' keyword.
5629 * NEWS, man/groff_font.man: Updated.
5631 2002-07-23 Colin Watson <cjwatson@debian.org>
5633 Extend papersize keyword to accept more than a single entry. The
5634 first valid will be used.
5636 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5637 (font::scan_papersize): Really skip final newline.
5638 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5640 2002-07-23 Werner LEMBERG <wl@gnu.org>
5642 * configure.ac: Test for isatty.
5643 * configure: Regenerated.
5644 * src/include/posix.h: Check HAVE_ISATTY.
5645 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5646 * src/utils/lookbib/lookbib.cc: Include posix.h.
5647 Don't declare isatty.
5649 2002-07-21 Werner LEMBERG <wl@gnu.org>
5651 * NEWS: Add `output' request.
5653 * REVISION: Increased to 1.
5655 Version 1.18.0 released
5656 =======================
5658 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
5660 Allow internal glyph indices > 0xFF in grohtml for input characters.
5662 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5664 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5665 Updated all callers.
5666 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5667 (html_printer): Updated.
5669 2002-07-19 Werner LEMBERG <wl@gnu.org>
5671 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5672 * font/devutf8/R.proto: Adding some missing glyphs.
5673 * font/devutf8/NOTES: Updated.
5675 * tmac/dvi.tmac: Add more composite glyphs.
5676 * tmac/html.tmac: Updated.
5678 * man/groff_char.man: Add `sum' and `product' entities.
5682 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
5684 Improved table, tab, and indenting support.
5686 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5687 string_iterator::suppress_newline_flag): Removed. Updated all
5688 function which have used it.
5690 * src/roff/troff/env.cc: Include `input.h'.
5691 (environment::add_node): Accept 0 as parameter.
5692 (environment::add_html_tag): Add `force' parameter.
5693 Updated all callers.
5694 (environment::add_html_tag_tabs): Ditto.
5695 For the moment, support left-aligned tabs only.
5696 (environment::make_html_tag): New function.
5697 (fill, no_fill): Set .br html tag additionally.
5698 (environment::newline): Emit `eol.ce' or `eol' tag for html.
5699 (environment::add_html_tag_eol): Removed.
5700 (tab_stops::distance_to_next_tab): Add variant for handling
5702 (environment::distance_to_next_tab): Ditto.
5703 Updated all callers.
5704 (environment::handle_tab): Handle tabs for html.
5706 * src/roff/troff/env.h: Updated.
5708 * src/roff/troff/div.cc: Updated all callers of
5709 `environment::add_html_tag'.
5711 * src/devices/grohtml/html-table.cc,
5712 src/devices/grohtml/html-table.h: New files.
5714 * src/devices/grohtml/html-text.cc (html_text): New members
5715 `blank_para' and `start_space'.
5716 (html_text::issue_tag): Don't emit TABLE_TAG.
5717 Handle indentation for PRE_TAG and P_TAG.
5718 (html_text::end_tag): Updated.
5719 (html_text::table_is_void, html_text::issue_table_begin,
5720 html_text::issue_table_end): Removed.
5721 (html_text::do_push): Simplified.
5722 [DEBUGGING]: Small fix.
5723 (html_text::push_para): Add new parameter for indentation; updated
5726 (html_text::do_indent, html_text::do_table, html_text::done_table,
5727 html_text::is_in_table): Removed.
5728 (html_text::do_pre): Handle P_TAG also.
5729 (html_text::shutdown): Handle p->indent.
5730 (html_text::check_emit_text): Simplified.
5731 (html_text::do_emittext): Reset `blank_para'.
5732 (html_text::do_para): Add new parameter for indentation; updated
5734 (html_text::remove_indent): New function.
5735 (html_text::do_space): Handle verbatim text properly.
5736 (html_text::ever_emitted_text, html_text::starts_with_space,
5737 html_text::remove_para_align): New functions.
5738 (html_text::dump_stack_element, html_text::dump_stack): Updated.
5740 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5743 * src/devices/grohtml/post-html.cc: Include html-table.h.
5744 (INDENTATION): Removed.
5745 (text_glob): Added many `is_<foo>' functions.
5746 Added table description `tab'.
5747 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5749 (list): Add `insert' and `move_to' member functions.
5750 (page): Add `insert_tag' member function.
5751 (page::dump_page) [DEBUG_TABLES]: Improved.
5752 (html_printer): Add `table' and `max_linelength' elements.
5753 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5754 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5755 `remove_tabs', `remove_courier_tabs'.
5756 (html_printer::emit_raw): Handle indentation.
5757 (html_printer::do_center, html_printer::write_header): Updated.
5758 (html_printer::is_courier_until_eol): Check for tag.
5759 (html_printer::do_linelength): Handle max_linelength.
5760 (html_printer::do_page_offset, html_printer::do_indentation): Handle
5762 (html_printer::do_tempindent): Updated.
5763 (html_printer::do_indentedparagraph): Removed.
5764 (html_printer::do_indent): Simplified.
5765 (html_printer::do_eol): Use `ever_emitted_text'.
5766 (html_printer::do_flush, html_printer::do_links): Don't call
5768 (html_printer::do_break): Handle end_tempindent.
5769 (html_printer::troff_tag): Get argument.
5771 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5772 (html_printer::flush_page): Call `lookahead_for_tables'.
5773 Don't call `done_table'.
5774 (html_printer::add_to_sbuf): Always call do_indent.
5776 * src/devices/grohtml/Makefile.sub: Updated.
5778 * tmac/an-old.tmac (TP): Don't handle html device specially.
5779 (an-do-tag-html): New function which will be used instead of
5780 `an-do-tag' if html device is used.
5782 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5784 * tmac/s.tmac (@IP): Don't handle html device specially.
5785 (@IP-html): New function which will be used instead of `@IP' if
5786 html device is used.
5788 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5789 is a hack which will eventually vanish again.
5790 (PIMG): Handle `-C' option correctly if not html.
5793 2002-07-17 Werner LEMBERG <wl@gnu.org>
5795 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5797 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
5799 * contrib/pic2graph/pic2graph.*: Use convert(1).
5800 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5802 2002-07-14 Bernd Warken <bwarken@mayn.de>
5804 * tmac/groff_trace.man: New file.
5805 * tmac/Makefile.sub: Updated.
5808 2002-07-13 Werner LEMBERG <wl@gnu.org>
5810 * src/roff/groff/groff.man: Add some cross references.
5812 2002-07-12 Werner LEMBERG <wl@gnu.org>
5814 * src/roff/troff/input.cc (substring_request): Add warnings for
5815 string indices out of range.
5817 2002-07-11 Werner LEMBERG <wl@gnu.org>
5819 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5820 * font/devdvi/*EC: Regenerated.
5822 2002-07-10 Bernd Warken <bwarken@mayn.de>
5824 * man/groff_char.man: Updated and extended.
5826 2002-07-10 Werner LEMBERG <wl@gnu.org>
5828 * src/roff/troff/input.cc (length_macro): Renamed to...
5829 (length_request): This.
5830 Move call of `tok.next()' to the very end, otherwise the register
5831 value hasn't been updated yet.
5832 (init_input_requests): Updated.
5834 2002-07-09 Werner LEMBERG <wl@gnu.org>
5836 * src/roff/troff/input.cc (substring_macro): Renamed to...
5837 (substring_request): This.
5838 (init_input_requests): Updated.
5839 * src/roff/troff/request.h: Updated.
5841 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
5843 * src/roff/grog/grog.sh: Fix typo.
5845 2002-07-08 Werner LEMBERG <wl@gnu.org>
5847 * win32-diffs: Updated.
5849 Handle `papersize' keyword properly in DESC.
5851 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5853 Updated all callers.
5854 * src/libs/libgroff/paper.cc: Add four more paper formats used by
5856 * src/include/paper.h: Updated.
5858 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5859 Other minor C syntax fixes.
5860 (papersize, paperlength, paperwidth): Renamed to `user_*'.
5861 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5863 (lbp_printer::lbp_printer): Pass three arguments.
5864 Set paper dimensions properly.
5865 (make_printer, main): Updated.
5866 (handle_unknown_desc_command): Fix error messages.
5867 (main): Handle papersize keyword in DESC properly.
5869 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5871 (lbp_printer::lbp_printer): Pass an argument.
5872 Set paper_size properly.
5873 (handle_unknown_desc_command): Removed.
5874 (make_printer, main): Updated.
5875 * src/devices/grolj4/grolj4.man: Minor documentation fix.
5877 * man/groff_font.man, NEWS: Updated.
5879 2002-07-07 Werner LEMBERG <wl@gnu.org>
5881 Integrated eqn2graph, contributed by Eric S. Raymond.
5883 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5885 * Makefile.in, NEWS: Updated.
5887 2002-06-04 Werner LEMBERG <wl@gnu.org>
5889 Changing the substring request to make it fit better with other
5890 string manipulation functions in other programming languages:
5891 Index 0 is now the first character in the string, and index -1
5892 indicates the last character. Since this request didn't work
5893 properly anyway in the last release, it doesn't harm too much to
5896 * src/roff/troff/input.cc (substring_macro): Use loops to get
5897 the real string length (ignoring COMPATIBLE_SAVE and
5898 COMPATIBLE_RESTORE) and offsets.
5899 Implement change described above.
5901 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5902 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5904 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5906 2002-06-03 Werner LEMBERG <wl@gnu.org>
5908 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
5909 COMPATIBLE_RESTORE are completely ignored.
5911 * src/roff/troff/input.cc (char_list::set, char_list::get): New
5913 (macro): `length' field renamed to `len'.
5914 Added new field `empty_macro' (1 if macro is empty), to be used
5915 instead of checking `len'.
5916 Updated all callers.
5917 (macro::empty): Updated.
5918 (macro::length, macro::set, macro::get): New functions.
5919 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5921 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5922 COMPATIBLE_RESTORE pairs.
5923 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5924 * src/roff/troff/request.h: Updated.
5926 * doc/groff.texinfo: Document .chop's behaviour better.
5928 2002-06-02 Werner LEMBERG <wl@gnu.org>
5930 * doc/pic.ms: Fix documentation for the addition of positions.
5932 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5934 2002-06-29 Werner LEMBERG <wl@gnu.org>
5936 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5938 * src/roff/troff/input.cc (have_string_arg): New global variable.
5939 (read_mode): New enumeration.
5940 (read_escape_name): Use it. Update all calls.
5941 (read_long_escape_name): Use it. Update all calls.
5942 Set have_string_arg if appropriate.
5943 (get_char_for_escape_name): Add parameter for handling space
5945 (interpolate_string_with_args, decode_string_args): New functions.
5946 (get_copy, token::next): Call it if necessary.
5947 (interpolate_string): Fix error message.
5949 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5952 2002-06-24 Bernd Warken <bwarken@mayn.de>
5954 * man/groff_tmac.man: Updated and extended.
5956 2002-06-24 Werner LEMBERG <wl@gnu.org>
5958 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5960 2002-06-23 Werner LEMBERG <wl@gnu.org>
5962 * doc/pic.ms: Improve documentation of composite block objects.
5964 2002-06-22 Werner LEMBERG <wl@gnu.org>
5966 * src/roff/troff/input.cc (init_registers): Add three registers
5967 `seconds', `minutes', and `hours' to hold the current time.
5969 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5972 2002-06-20 Werner LEMBERG <wl@gnu.org>
5974 Make \X accept both `\ ' and `\~', converting them to single space
5977 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5978 (token::unstretchable_space): New inline function.
5979 * src/roff/troff/input.cc (token::next, token::delimiter,
5980 token::description, token::add_to_node_list, token::process): Handle
5981 TOKEN_UNSTRETCHABLE_NODE.
5982 (encode_char): Handle tok.stretchable_space and
5983 tok.unstretchable_space.
5985 * NEWS, doc/groff.texinfo: Document it..
5987 2002-06-19 Werner LEMBERG <wl@gnu.org>
5989 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5991 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5992 keyword to enable/disable SGR output.
5993 (tty_printer::change_fill_color): New function.
5994 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5996 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5999 2002-06-18 Werner LEMBERG <wl@gnu.org>
6001 Add a `color' request and a `.color' register to control usage of
6004 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
6005 (color_flag): This (which is the inverse).
6006 (activate_color): New function.
6007 (main, init_input_requests): Updated.
6008 * src/roff/troff/troff.h, src/roff/troff/node.cc
6009 (troff_output_file::fill_color, troff_output_file::glyph_color):
6012 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6013 Document the changes.
6015 2002-06-17 Colin Watson <cjwatson@debian.org>
6017 Circumvent bug in autoconf 2.53 regarding top_builddir.
6019 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
6020 * Makefile.in, doc/Makefile.in:
6021 s/@top_builddir@/@groff_top_builddir@/.
6022 * configure: Regenerated (with autoconf 2.53).
6024 2002-06-17 Werner LEMBERG <wl@gnu.org>
6026 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
6027 `paperwidth' and `paperlength' for the `papersize' keyword.
6029 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
6031 * src/devices/grops/grops.man: Add info about Type 42 fonts.
6033 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
6035 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
6036 html_printer::do_linelength, html_printer::do_pageoffset,
6037 html_printer::do_indentation, html_printer::do_tempindent,
6038 html_printer::do_break, html_printer::begin_page): Clear indented
6040 * tmac/html.tmac: Disable hyphenation.
6042 2002-06-15 Werner LEMBERG <wl@gnu.org>
6044 Don't produce HTML files if utility programs are missing.
6046 * Makefile.in (make_html, make_install_html): New variables.
6047 (MDEFINES): Updated.
6049 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
6051 * configure.ac: Use it.
6052 * configure: Regenerated.
6054 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
6055 (HTMLEXAMPLESFILES): This new variable.
6056 (EXAMPLESIMAGEFILES): Renamed to...
6057 (HTMLEXAMPLEIMAGEFILES): This.
6058 (CLEANADD): Add HTMLEXAMPLEFILES.
6059 (all): Use `make_html'.
6061 (install_data): Use `make_install_html'.
6062 Move html stuff to...
6063 (install_html): This new target.
6064 (uninstall_sub): Updated.
6066 2002-06-14 Bernd Warken <bwarken@mayn.de>
6068 * src/roff/grog/Makefile.sub (grog): Renamed to...
6070 (grog): New rule to always install grog.sh as grog.
6072 2002-06-08 Bernd Warken <bwarken@mayn.de>
6074 * src/roff/grog/grog.pl: Fix typo.
6076 2002-06-07 Werner LEMBERG <wl@gnu.org>
6078 * doc/groff.texinfo: Add more info on .tr arguments.
6080 2002-06-05 Werner LEMBERG <wl@gnu.org>
6082 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
6084 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
6085 * configure: Regenerated.
6087 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6089 * src/roff/troff/symbol.cc (table_sizes): Add more values.
6091 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
6093 2002-06-04 Werner LEMBERG <wl@gnu.org>
6095 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
6096 is not initialized at the time we need it in case `--prefix' hasn't
6097 been set. Check for `ac_default_prefix' also.
6098 Test for `papersize' keyword also and generalize allowed whitespace.
6099 * configure: Regenerated.
6101 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
6104 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
6106 (src_version, src_revision): New variables to avoid overwriting
6107 from parent make process.
6108 (version.cc): Updated.
6110 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
6111 (linebuf, linebufsize): New global variables.
6112 (sys_fatal): Use `fatal' to abort properly.
6113 (get_line): New function.
6114 (get_resolution): Use it.
6115 Improve error messages.
6116 (get_papersize): Check `papersize' also.
6118 Improve error messages.
6120 2002-06-03 Werner LEMBERG <wl@gnu.org>
6122 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
6123 should be removed only if builddir is not srcdir.
6124 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
6125 (clean): Depend on `mostlyclean'.
6126 (distclean): Depend on `clean'.
6127 (realclean, extraclean): Depend on `distclean'.
6128 (.y.cc, .y.o): Simplified. The output files are no longer written
6129 to srcdir but to builddir.
6130 * Makefile.in (MDEFINES): Add `version' and `revision'.
6131 (uninstall_dirs): Fix order of directories.
6132 * doc/Makefile.sub (version, revision): Removed.
6133 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
6134 Added `HTMLDOCFILES'.
6135 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
6136 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
6137 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
6140 * doc/texinfo.tex (\authortt): New macro.
6141 (\shortcontt): Define.
6142 (\titlepage): Set \tt to \authortt while defining \authorfont.
6143 (\appendixbox): New macro.
6144 (\chapmacro, \appendixentry): Use \appendixbox to get even
6145 indentation for letters.
6146 (\summarycontents): Set \tt.
6147 (\internalpagesize): Add two arguments for real paper width and
6148 height as needed by pdfTeX.
6149 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
6151 (\tempdima, \tempdimb): New temporary dimensions.
6152 (\pagesizesyyy): Updated.
6154 2002-06-02 Werner LEMBERG <wl@gnu.org>
6156 Adding a new keyword `papersize' to the DESC file format (similar
6157 but not completely identical to grolbp's extension). grops now has
6158 a -p command line option to override `papersize'. Finally, grolbp
6159 has been adapted to the new syntax.
6161 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
6162 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
6164 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
6165 (CCSRCS): Add `paper.cc'.
6167 * src/include/font.h (font): Add `papersize' element.
6168 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
6169 (font::scan_papersize): New function.
6170 (font::load_desc): Use it for handling `papersize' keyword.
6171 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
6173 * src/devices/grops/ps.cc: Include paper.h.
6174 (user_paper_length): New global variable.
6175 (ps_printer): Use paper length as initializer.
6176 (make_printer): Updated.
6177 (main): Handle new `-p' option.
6178 * src/devices/grops/grops.man: Updated.
6180 * src/devices/grolbp/lbp.cc: Include paper.h.
6181 s/papersizes/lbp_papersizes/.
6182 (set_papersize): Use new `papersizes' array.
6183 (handle_unknown_desc_command): Don't handle `papersize'.
6184 (main): Use `font::scan_papersize' for handling `-p' option.
6185 * src/devices/grolbp/grolbp.man: Updated.
6187 * man/groff_font.man: Document `papersize'.
6190 2002-05-30 Werner LEMBERG <wl@gnu.org>
6192 * src/devices/grops/TODO: Updated.
6193 * src/devices/grops/grops.man: More info on paper formats.
6194 * man/groff_font.man: Document `paperheight' and `paperwidth'.
6196 2002-05-29 Werner LEMBERG <wl@gnu.org>
6198 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
6199 to list only if srcdir != currdir.
6200 (distfiles): New target.
6202 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
6203 (NOMAKEDIRS): New variable.
6206 2002-05-26 Werner LEMBERG <wl@gnu.org>
6208 Add .output request, similar to \! at top-level.
6210 * src/roff/troff/input.cc (transparent): Remove unused declaration.
6211 (output_request): New function.
6212 (init_input_requests): Add it.
6214 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6217 * Makefile.in (MDEFINES): Add INSTALL_INFO.
6218 (prepare_examples): Fix typo.
6219 * doc/groff.texinfo (@direntry): Fix it.
6221 2002-05-25 Werner LEMBERG <wl@gnu.org>
6223 Including the doc subdir into groff's Makefile system.
6225 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
6226 * configure.ac: Use it.
6227 Generate `doc/Makefile'.
6228 * configure: Regenerated.
6230 * Makefile.in (infodir, INSTALL_INFO): New variables.
6231 (MDEFINES, uninstall_dirs): Updated.
6232 (OTHERDIRS): Add `doc'.
6233 * Makefile.comm (CLEANDIRADD): New variable.
6234 (mostlyclean): Use it.
6236 * doc/Makefile.sub, doc/Makefile.in: New files.
6237 * doc/Makefile: Removed.
6239 * NEWS, INSTALL: Updated.
6241 2002-05-24 Werner LEMBERG <wl@gnu.org>
6243 * doc/homepage.ms: Renamed to ...
6244 * doc/webpage.ms: This.
6247 2002-05-23 Werner LEMBERG <wl@gnu.org>
6249 Integrating the `mom' macro package, contributed by Peter Schaffter
6252 * contrib/mom/*: New subdirectory tree.
6253 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
6254 be used for documentation files.
6255 (MDEFINES, uninstall_dirs): Use them.
6256 (OTHERDIRS): Add contrib/mom.
6257 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
6259 * MANIFEST, NEWS: Updated.
6261 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
6263 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
6264 if at outer level; at start-up we are at outer level.
6266 * src/roff/troff/input.cc (do_suppress): Implement it.
6269 Add option -p to show progress information.
6270 pre-grohtml will now render only one page at a time, reducing the
6271 size of needed disk resources enormously.
6273 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
6274 (imagePageName): New global variable.
6275 (psPageName, show_progress, currentPageNo): New global variables.
6276 (html_system): Close saved stderr and stdout handles.
6277 (write_end_image): Accept a parameter to control \O escape.
6278 (write_start_image): Adapted to new \O meaning.
6279 (char_buffer::write_upto_newline): Updated.
6280 (createAllPages): Replaced with...
6281 (createPage): This new function to create a single page for images.
6282 It uses `psselect' from the psutils package.
6283 (removeAllPages): Removed.
6284 (createImage): Updated.
6285 Handle progress display.
6286 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
6287 (scanArguments): Add option -p.
6288 (makeTempFiles): Updated to create temp files for psPageName and
6290 (removeTempFiles): Removed.
6293 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
6294 html_printer::write_header): Append `\0' to `buffer'.
6295 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
6297 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
6298 Handle `text_emitted'.
6299 (html_text::table_is_void): Slightly rewritten.
6300 (stop): New external symbol.
6301 (html_text::do_push) [DEBUGGING]: Use it and simplify.
6302 (html_text::shutdown): Call `dump_stack'.
6303 (html_text::do_space): Rewritten.
6304 * src/devices/grohtml/grohtml.man: Document -p and the need of
6307 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
6309 Call \O[0] if `ps4html' is active.
6310 * tmac/s.tmac (@EQ, @EN): Handle html better.
6312 * tmac/html.tmac: Don't use black for background colour.
6314 * src/roff/troff/node.cc: Include `div.h'.
6315 (troff_output_file::really_print_line): Don't use `is_on'.
6316 (troff_output_file::word_marker, troff_output_file::flush_tbuf
6317 troff_output_file::check_charinfo,
6318 troff_output_file::put_char_width, troff_output_file::put_char,
6319 troff_output_file::determine_line_limits, troff_output_file::draw,
6320 real_output_file::begin_page, glyph_color_node::tprintf,
6321 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
6323 (troff_output_file::really_on): Call `do_motion'.
6324 (suppress_node::tprint): Use `get_page_number' instead of `%'
6326 Call `reset_output_registers' conditionally on `is_on'.
6328 * doc/groff.texinfo: Document new syntax of \O.
6329 * NEWS, man/groff_diff.man: Updated.
6331 2002-05-22 Werner LEMBERG <wl@gnu.org>
6333 * MORE.STUFF: Add info about David Frey's deroff implementation.
6336 2002-05-16 Werner LEMBERG <wl@gnu.org>
6338 Pic's `with' attribute now accepts positions.
6340 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
6341 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
6343 (object_spec): Add rule for `WITH' and `position'.
6344 (relative_path): Give `corner' the precedence of `CHOP'.
6345 * src/preproc/pic/object.h (path): New members `pos' and
6347 * src/preproc/pic/object.cc: Updated initializers of `path'.
6348 (path::follow): Handle `is_position'.
6350 * doc/pic.ms: Completely updated grammar description.
6351 Many typographical improvements.
6353 2002-05-15 Werner LEMBERG <wl@gnu.org>
6355 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
6356 code of x in range 0-127) also.
6357 * doc/groff.texinfo, man/groff_diff.man: Updated.
6359 Added keywords `north', `south', `east', and `west' for corners
6362 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
6364 (yylex): Handle them.
6365 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
6366 (corner): Handle them.
6368 2002-05-14 Werner LEMBERG <wl@gnu.org>
6370 * src/devices/grops/grops.man: Clarify handling of `download' file.
6372 2002-05-11 Werner LEMBERG <wl@gnu.org>
6374 Adding `warnscale' and `spreadwarn' requests, based on a patch from
6375 Jeffrey Friedl <jfriedl@yahoo.com>.
6377 * src/roff/troff/input.cc (spread_limit, warn_scale,
6378 warn_scaling_indicator): New global variables.
6379 (warnscale_request, spreadwarn_requests): New functions.
6380 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
6381 (init_input_requests): Updated.
6382 (error_type): Add `OUTPUT_WARNING'.
6383 (do_error): Handle it.
6384 (output_warning): New warning function which shows output location.
6385 * src/roff/troff/env.h (spread_limit): New external variable.
6386 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6388 (distribute_space): Emit warning if added space is larger than
6390 (environment::possibly_break_line): Emit warning if a line can't
6391 be adjusted on both sides.
6393 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6395 2002-05-08 Werner LEMBERG <wl@gnu.org>
6397 * src/roff/troff/node.cc (special_node::special_node): Use
6398 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
6399 \X''\% crashes, for example.
6401 * doc/groff.texinfo: Document \! and \? used at top-level.
6403 2002-05-06 Werner LEMBERG <wl@gnu.org>
6405 * src/preproc/pic/pic.man: Fix some keyword syntax.
6406 Other minor typographical fixes.
6408 * src/roff/groff/groff.man: Fix typos.
6410 2002-05-04 Werner LEMBERG <wl@gnu.org>
6412 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6413 (ShortOpt[]): This to avoid problems with refer.
6415 * doc/pic.ms: Fix typo.
6416 Fix pic grammar description.
6418 * tmac/an-old.tmac (ne): Use de1, not de.
6420 2002-05-03 Werner LEMBERG <wl@gnu.org>
6422 * doc/groff.texinfo: Finished separation of glyphs and characters.
6423 Don't use the string `Appendix' for appendix headers (both in
6424 the text and the table of contents).
6425 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6428 Use registers LL and LT (similar to -ms) for controlling the
6429 length of title and line, respectively, in the -man and -mdoc
6432 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6433 (doc-setup-page-layout): Use \n[LL] and \n[LT].
6434 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6436 (an-header, an-p-footer): Use \n[LT].
6437 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6438 doc/groff.texinfo: Document it.
6440 2002-05-02 Werner LEMBERG <wl@gnu.org>
6442 * doc/fdl.texi: New file.
6443 * doc/groff.texinfo: Include it.
6444 Define and use @copying.
6445 Starting with separating glyph, symbol, and character.
6447 2002-04-27 Werner LEMBERG <wl@gnu.org>
6449 * Makefile.in (EXEEXT): Set it.
6450 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6453 * src/include/nonposix.h: Define GS_NAME.
6454 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6456 Some preliminary changes for EMX support under OS/2.
6458 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6459 __EMX__ similar to __MSDOS__.
6460 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6462 2002-04-25 Werner LEMBERG <wl@gnu.org>
6464 * doc/groff.texinfo: Integrated groff_out.man.
6467 2002-04-23 Werner LEMBERG <wl@gnu.org>
6469 * man/groff_out.man: Minor fixes.
6471 2002-04-23 Werner LEMBERG <wl@gnu.org>
6473 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6474 correct page references.
6475 Fixed many index entries.
6477 2002-04-23 Bernd Warken <bwarken@mayn.de>
6479 * man/roff.man: Enlarged.
6481 2002-04-22 Werner LEMBERG <wl@gnu.org>
6483 * doc/groff.texinfo: More examples, other fixes.
6485 2002-04-20 Werner LEMBERG <wl@gnu.org>
6487 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6488 will now form a chain, e.g.
6497 This is for compatibility with plan 9's troff.
6499 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6503 * doc/groff.texinfo: Add documentation of remaining requests and
6506 2002-04-19 Werner LEMBERG <wl@gnu.org>
6508 * doc/groff.texinfo: Add documentation of remaining escapes.
6510 * font/devdvi/generate/tc.map: Remove entry for `sr'.
6511 * font/devdvi/*TC: Regenerated.
6513 2002-04-18 Werner LEMBERG <wl@gnu.org>
6515 * src/roff/troff/input.cc (token::next): Make \H behave consistently
6516 if not in compatibility mode, i.e., increment relative to the
6518 * doc/groff.texinfo: Updated accordingly.
6520 2002-04-17 Werner LEMBERG <wl@gnu.org>
6522 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6524 2002-04-16 Bernd Warken <bwarken@mayn.de>
6526 * src/roff/groff/groff.man: Improve documentation of -P option.
6529 2002-04-15 Werner LEMBERG <wl@gnu.org>
6531 Add new escape \F to switch font family.
6533 * src/roff/troff/input.cc (token::next): Handle \F.
6534 * src/roff/troff/env.cc (environment::set_family): Handle
6536 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6539 2002-04-14 Werner LEMBERG <wl@gnu.org>
6541 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6544 2002-04-13 Werner LEMBERG <wl@gnu.org>
6546 Implement \f[] as an alternative to \fP. Change \mP and \MP to
6547 \m[] and \M[], respectively.
6549 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6550 (symbol::symbol): Handle NULL string and empty string differently.
6551 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6552 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6553 Add optional parameter.
6554 Updated calling functions.
6555 (get_copy, do_glyph_color, do_fill_color, token::next): Use
6557 * src/roff/troff/env.cc (environment::set_font): Ditto.
6559 * src/preproc/pic/troff.cc (troff_output::set_fill,
6560 troff_output::reset_color: Updated.
6562 * tmac/www.tmac: Updated.
6564 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6565 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6568 * tmac/Xps.tmac: Remove some redundant code.
6570 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6571 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6572 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6575 2002-04-13 Bernd Warken <bwarken@mayn.de>
6577 * src/include/printer.h, src/libs/libdriver/printer.cc
6578 (printer::change_fill_color): New member function.
6579 * src/libs/libdriver/input.cc (parse_D_command): Use it.
6581 2002-04-12 Werner LEMBERG <wl@gnu.org>
6583 * doc/groff.texinfo: Completed pass on gtroff reference.
6585 2002-04-11 Werner LEMBERG <wl@gnu.org>
6587 * doc/groff.texinfo: More fixes.
6589 2002-04-11 Bernd Warken <bwarken@mayn.de>
6591 * src/include/color.h: Decorate with `const'.
6594 * src/libs/libgroff.color.cc: Decorate with `const'.
6596 (color::color): Initialize members.
6597 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6598 command according to the documentation.
6600 * man/groff_out.man: Updated.
6603 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
6605 * src/preproc/html/pre-html.cc (write_start_image): Remove
6607 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6609 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6610 \C'hy' caused an assertion failure.
6612 * src/roff/troff/env.cc (environment::environment): Initialize
6614 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6616 2002-04-10 Werner LEMBERG <wl@gnu.org>
6618 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6619 Document pvs request and .pvs register.
6621 2002-04-09 Werner LEMBERG <wl@gnu.org>
6623 * doc/groff.texinfo: Improve and fix documentation of diversions
6626 2002-04-08 Werner LEMBERG <wl@gnu.org>
6628 * doc/groff.texinfo: Fix documentation of drawing functions.
6631 2002-04-07 Werner LEMBERG <wl@gnu.org>
6633 * doc/groff.texinfo: Better documentation of double quotes as
6637 2002-04-06 Werner LEMBERG <wl@gnu.org>
6639 * man/groff_font.man: Document names of special characters better.
6640 * doc/groff.texinfo: Minor improvements.
6642 * tmac/lbp.tmac: Load latin1.tmac.
6643 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6645 * font/devX*/*: Regenerated (all chars > 0x80 removed).
6647 2002-04-05 Werner LEMBERG <wl@gnu.org>
6649 * tmac/tty.tmac: Don't use shc request.
6650 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6653 * man/groff_diff.man: Minor fixes.
6655 * font/devlbp/*: Remove all `charXXX' entities.
6657 * src/libs/libgroff/font.cc (font::~font): Deallocate
6658 `special_device_coding'.
6659 (font::load): Use `new' for allocating `special_device_coding'.
6660 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6661 Removed unused member.
6663 2002-04-05 Werner LEMBERG <wl@gnu.org>
6665 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6666 (resource_manager::do_begin_binary,
6667 resource_manager::do_begin_data): Use it.
6669 * doc/texinfo.tex: Updated to version 4.2.
6671 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6672 (token::zero_width_break): New inline function.
6673 * src/roff/troff/input.cc (token::next): Use it.
6674 (token::description): Updated.
6675 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6676 (token::add_to_node_list, token::process): Use it.
6677 * NEWS, doc/groff.texinfo: Updated.
6679 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6680 * tmac/tty.tmac: Add missing backslash.
6682 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
6684 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6685 `.ps' register instead of `.s' to handle fractional point sizes.
6686 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6687 limit_box::output): Ditto.
6688 * src/preproc/eqn/other.cc (size_box::compute_metrics,
6689 size_box::output): Ditto.
6690 * src/preproc/eqn/over.cc (over_box::compute_metrics,
6691 over_box::output): Ditto.
6692 * src/preproc/eqn/script.cc (script_box::compute_metrics,
6693 script_box::output): Ditto.
6694 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6695 sqrt_box::output): Ditto.
6697 2002-04-03 Michael Selway <mas@ssl.co.uk>
6699 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6702 2002-04-03 Werner LEMBERG <wl@gnu.org>
6704 * doc/homepage.ms: Reduce title size.
6705 * doc/groff.texinfo: Fix documentation of .t register.
6706 Fix handling of colon.
6709 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6710 only if page length is positive to avoid a loop.
6712 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6715 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
6717 * src/include/nonposix.h, src/roff/groff/pipeline.c:
6718 s/__CYGWIN32__/__CYGWIN__/.
6720 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
6722 * doc/gnu.xpm: New image contributed by Emily Mulley.
6723 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6724 (homepage.html): Be dependent on gnu.eps.
6725 * doc/homepage.ms: Updated to new image.
6727 * src/devices/grohtml/post-html.cc (html_printer): New member
6729 (html_printer::flush_sbuf, html_printer::set_char): Set it.
6730 (html_printer::sbuf_continuation): Use it.
6732 2002-03-28 Werner LEMBERG <wl@gnu.org>
6734 * src/libs/libgroff/getopt.c: Updated to latest version.
6736 * tmac/README: More on hyphen.tex license.
6738 2002-03-26 Larry Kollar <kollar@alltel.net>
6740 * doc/groff.texinfo: Add documentation of most missing requests.
6742 2002-03-25 Werner LEMBERG <wl@gnu.org>
6744 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6745 of `+-', `mu', and `di', respectively.
6747 * font/devascii/R.proto, font/devutf8/R.proto,
6748 font/devlatin1/R.proto, font/devhtml/R.proto,
6749 font/devcp1047/R.proto, font/devlpb/*: Add them.
6750 * font/devps/generate/textmap: Ditto.
6751 * font/devps/*: Regenerated.
6752 * font/devlj4/generate/text.map: Add them.
6753 * font/devlj4/*: Regenerated.
6754 * font/devdvi/generate/tc.map: Use them.
6755 * font/devdvi/generate/texsy.map: Add them.
6756 * font/devdvi/*: Regenerated.
6757 * font/devX*/*: Regenerated.
6759 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6760 tmac/tty-char.tmac: Updated.
6762 * NEWS, man/groff_char.man: Updated.
6764 2002-03-24 Werner LEMBERG <wl@gnu.org>
6766 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6767 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6768 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6769 we use `.fchar' in dvi.tmac.
6770 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6771 * tmac/Xps.tmac: Simplify some char definitions.
6772 Add definition for \[f/].
6773 * man/groff_char.man: Updated for new X.tmac.
6775 * tmac/README: New file.
6777 2002-03-23 Phil Lobbes <phil@perkpartners.com>
6779 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6780 internal .y.o rule took precendence over the .y.cc rule, compiling
6781 the yacc files with gcc instead of g++.
6783 2002-03-23 Werner LEMBERG <wl@gnu.org>
6785 * tmac/dvi.tmac: Add replacement font for `CB'.
6787 * tmac/doc.tmac: s/request/macro/ in messages.
6788 (doc-generic-macro): Improve error message.
6789 * tmac/groff_mdoc.man: Minor improvements.
6791 2002-03-22 Werner LEMBERG <wl@gnu.org>
6793 * doc/groff.texinfo: Document possible conflict between `tr' and
6796 2002-03-21 Werner LEMBERG <wl@gnu.org>
6798 Improve handling of hyphenation patterns. It is now possible to
6799 use most of TeX's pattern files unmodified. To make the process
6800 more flexible, a new request `hpfcode' has been added which
6801 provides a character code mapping for the `hpf' request. See
6802 comment before hpf_getc() for more details.
6804 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6806 (read_patterns_file): Additional parameter for exception dictionary.
6807 Extended to recognize \pattern, \hyphenation, and \endinput.
6808 (do_hyphenation_patterns_file): Updated.
6809 * src/roff/troff/env.h (hpf_code_table): New extern.
6811 * src/roff/troff/input.cc (hpf_code_table): New array.
6812 (init_hpf_code_table, hyphenation_patterns_file_code): New
6814 (hyphenation_code): Handle translation from `trin' correctly.
6815 (main, init_input_requests): Updated.
6816 (charinfo::set_translation): Handle hyphenation code also.
6818 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6821 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6822 char' is used for offsets in hyphenation exceptions.
6824 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6826 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6828 2002-03-20 Larry Kollar <kollar@alltel.net>
6830 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6833 2002-03-18 Werner LEMBERG <wl@gnu.org>
6835 * tmac/html.tmac: Fix serious typo.
6837 2002-03-17 Larry Kollar <kollar@alltel.net>
6839 * doc/groff.texinfo: Add documentation for `writec' request.
6841 2002-03-17 Werner LEMBERG <wl@gnu.org>
6843 Added request `hpfa' to append hyphenation patterns.
6845 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6847 (hyphenation_patterns_file): Renamed to...
6848 (do_hyphenation_patterns_file): This.
6849 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6851 (init_hyphen_requests): Updated.
6852 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6854 2002-03-16 Werner LEMBERG <wl@gnu.org>
6856 Added request `writec' in analogy to `tmc'.
6858 * src/roff/troff/input.cc (write_request): Renamed to...
6859 (do_write_request): This.
6860 Added one parameter.
6861 (write_request, write_request_continue): New functions.
6862 (init_input_requests): Updated.
6863 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6865 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6867 * NEWS: Document it.
6869 2002-03-15 Werner LEMBERG <wl@gnu.org>
6871 * man/groff.man: Add writem request.
6873 Add request `trin' (translate input) to make `.asciify' work
6874 correctly. This is necessary since `charXXX' entity names are no
6875 longer hardcoded in font definition files.
6877 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6878 `translate_input' members.
6879 (charinfo::set_asciify_code, charinfo::get_asciify_code,
6880 charinfo::set_translation_input): New methods.
6881 (charinfo::set_translation): Add third argument.
6882 * src/roff/troff/input.cc (charinfo:set_translation): Set
6884 (do_translate): Add second argument.
6885 (translate_input): New function.
6886 (init_input_requests): Updated.
6887 * src/roff/troff/node.cc (glyph_node::asciify,
6888 composite_node::asciify): Use `get_asciify_code'.
6890 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6892 * NEWS, man/groff.man, man/groff_diff.man: Updated.
6894 2002-03-14 Larry Kollar <kollar@alltel.net>
6896 * doc/groff.texinfo: Improve documentation of .RS and .RE.
6898 2002-03-14 Werner LEMBERG <wl@gnu.org>
6900 Add a new request `sizes' similar to the `sizes' command in DESC
6903 * src/roff/troff/env.cc (override_sizes): New function.
6904 (init_env_requests): Use it.
6905 * src/roff/troff/token.h: Export `read_string'.
6906 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6908 2002-03-12 Werner LEMBERG <wl@gnu.org>
6910 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6912 2002-03-10 Werner LEMBERG <wl@gnu.org>
6914 * tmac/pspic.tmac: Add support for -Tdvi.
6915 * tmac/dvi.tmac: Include pspic.tmac.
6916 * src/devices/grodvi/grodvi.man: Document it.
6919 * font/devlj4/generate/Makefile: Fix URL of metric files.
6921 2002-03-09 Werner LEMBERG <wl@gnu.org>
6923 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6925 2002-03-09 Larry Kollar <kollar@alltel.net>
6927 * tmac/groff_ms.man: Add documentation for RS and RE macros.
6929 2002-03-08 Werner LEMBERG <wl@gnu.org>
6931 * doc/groff.texinfo: Fixes for texinfo 4.1.
6933 2002-03-07 Werner LEMBERG <wl@gnu.org>
6935 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6937 Handle CYGWIN properly.
6939 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
6941 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6942 * tmac/lbp.tmac: Add some font translations.
6944 2002-03-02 Werner LEMBERG <wl@gnu.org>
6946 * font/devcp1047/R.proto, font/devlatin1/R.proto,
6947 font/devhtml/R.proto: Remove `charXXX' entries.
6948 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6951 * font/devlj4/generate/text.map: Remove `charXXX' entries.
6952 * font/devlj4/*: Regenerated all font definition files.
6953 * tmac/lj4.tmac: Load latin1.tmac.
6955 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6956 from 2000-06-17: LJ4 metric files are *not* text files.
6958 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6959 register to test for EBCDIC.
6961 2002-03-01 Werner LEMBERG <wl@gnu.org>
6963 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6964 files (as grops already does).
6965 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6967 * src/devices/grops/grops.man: Document comment lines in encoding
6970 * tmac/cp1047.tmac: New file.
6971 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6972 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6973 * tmac/Makefile.sub (NORMALFILES): Updated.
6975 * tmac/ec.tmac: Don't load latin1.tmac again.
6977 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6978 font/devps/generate/dingbats.map,
6979 font/devps/generate/dingbats.rmap, font/devps/text.enc,
6980 font/devps/generate/Makefile (symbolmap): Add header comment.
6981 * font/devps/generate/textmap: Ditto.
6982 Remove `charXXX' entries.
6983 * font/devps/symbolmap: Regenerated.
6984 * font/devps/*: Regenerated all font definition files.
6986 2002-02-28 Werner LEMBERG <wl@gnu.org>
6988 Add color support to grodvi (for drawing colors are currently
6989 translated to gray values).
6991 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6992 (dvi_printer): Add `cur_color' member.
6993 (dvi_printer::set_color): New function.
6994 (draw_dvi_printer): Remove `fill'.
6995 (draw_dvi_printer::fill_next): Pass environment as parameter.
6996 Update code for new color support translated to gray.
6997 (dvi_printer::set_char): Updated.
6998 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6999 changes crossing the page border.
7000 (dvi_printer::draw): Updated.
7001 Remove cases `f' and `F'.
7002 * tmac/dvi.tmac: Add color definitions.
7003 * NEWS, src/devices/grodvi/grodvi.man: Updated.
7005 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
7008 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
7009 versions of autoconf.
7010 * configure: Updated.
7012 * doc/homepage.ms: Use `.blm'.
7013 * tmac/www.tmac (www-depth): New auxiliary variable.
7014 (www-pop-level): Don't issue HTML tag.
7015 (ULS, ULE, LI): Use absolute indentation.
7017 * src/devices/grops/ps.cc (ps_printer::begin_page,
7018 ps_printer::end_page): Switch forth and back to default color while
7019 starting a new page.
7021 2002-02-27 Werner LEMBERG <wl@gnu.org>
7023 Add EC and TC fonts to devdvi.
7025 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
7026 * font/devdvi/generate/cork.map: Renamed to...
7027 * font/devdvi/generate/ec.map: This.
7028 Remove entry for `aq'.
7029 * font/devdvi/generate/tc.map: New file.
7030 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
7033 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
7034 * font/devdvi/Makefile.sub (DEVFILES): Updated.
7035 * tmac/ec.tmac: New file.
7036 * tmac/Makefile.sub (NORMALFILES): Updated.
7037 * NEWS, src/devices/grodvi/grodvi.man: Updated.
7038 * man/groff_char.man: Check `ECFONTS' register.
7040 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
7042 2002-02-26 Werner LEMBERG <wl@gnu.org>
7044 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
7045 * font/devdvi/generate/cork.map: Add 'y and 'Y.
7046 * font/devdvi/*: Updated.
7047 * tmac/dvi.tmac: Formatting.
7049 Add font `HBI' for the dvi output.
7050 Add support for font families `T' and `H'.
7052 * font/devdvi/HBI: New file.
7053 * font/devdvi/B: Renamed to ...
7054 * font/devdvi/TB: This.
7055 * font/devdvi/BI: Renamed to ...
7056 * font/devdvi/TBI: This.
7057 * font/devdvi/I: Renamed to ...
7058 * font/devdvi/TI: This.
7059 * font/devdvi/R: Renamed to ...
7060 * font/devdvi/TR: This.
7061 * font/devdvi/H: Renamed to ...
7062 * font/devdvi/HR: This.
7063 * font/devdvi/Makefile.sub (DEVFILES): Updated.
7064 * font/devdvi/generate/Makefile (HBI): New rule.
7066 (R, I, B, BI, H): Renamed to ...
7067 (TR, TI, TB, TBI, HR): This, respectively.
7069 * NEWS, src/devices/grodvi/grodvi.man: Updated.
7070 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
7071 Add `styles' and `family' keywords.
7072 * tmac/dvi.tmac: Alias `H' to `HR'.
7073 Add some fspecial requests for italic fonts.
7074 Add TR and TI as special.
7075 Add support for `_' with font CWI.
7077 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
7078 operator `:'. Until now, the expression `0:1' would return 2
7081 2002-02-25 Werner LEMBERG <wl@gnu.org>
7083 * man/groff_char.man: Added some missing PS glyph names (from the
7085 * font/devps/generate/textmap, font/devps/symbolmap: Add
7088 * doc/groff.texinfo: Minor additions and fixes.
7089 * man/groff_diff.man: Remove documentation of fp request. This
7090 is already covered in the original troff manual.
7091 Updated to be consistent with other doc files.
7094 2002-02-24 Werner LEMBERG <wl@gnu.org>
7096 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
7098 Define new variable OTHERDEVDIRS (containing `font/devlj4
7099 font/devlbp' if not EBCDIC).
7100 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
7101 (OTHERDEVDIRS): New variable.
7102 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
7103 * configure: Regenerated.
7105 * NEWS, src/devices/grotty/grotty.man: Updated.
7107 2002-02-23 Werner LEMBERG <wl@gnu.org>
7109 * src/roff/troff/input.cc (do_overstrike, do_bracket,
7110 get_line_arg): Honour input level.
7112 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
7114 * font/*/*: Implement it in all font files.
7115 * font/devps/generate/textmap, font/devps/generate/symbolchars,
7116 * font/devps/symbolmap: Updated.
7117 * font/devlj4/generate/text.map: Updated.
7118 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
7119 * font/devdvi/generate/texmi.map: Updated.
7121 * font/devutf8/R.proto: Remove all `charXXX' entries.
7122 * font/devutf8/NOTES: Updated.
7124 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
7127 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
7129 * NEWS, man/groff_char.man: Updated.
7131 2002-02-21 Phil Lobbes <phil@perkpartners.com>
7133 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
7135 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7137 * src/roff/grog/grog.pl: Fix computation of $refer.
7139 2002-02-19 Werner LEMBERG <wl@gnu.org>
7141 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
7142 `snprintf' and `vsnprintf'.
7144 * src/include/htmlindicate.h: Renamed to...
7145 * src/include/htmlhint.h: This.
7146 * src/include/Makefile.sub: Updated.
7147 * src/preproc/eqn/main.cc: Updated.
7149 2002-02-18 Werner LEMBERG <wl@gnu.org>
7151 * man/roff.man, man/groff_out.man, man/groff.man,
7152 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
7153 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
7155 * win32-diffs: Updated.
7157 2002-02-17 Werner LEMBERG <wl@gnu.org>
7159 * doc/Makefile (clean): Add *.eps.
7160 (MEMACROS): Removed.
7161 (TFLAG): New variable.
7164 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
7166 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
7168 * tmac/www.tmac: Use dummy diversion while resetting and disabling
7170 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
7172 * src/roff/troff/troff.man: Fix order of parameter description.
7176 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
7178 Simplify image handling for grohtml.
7181 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
7183 (html_text::dump_stack): Don't emit newline while debugging.
7184 (html_text::do_push) [DEBUGGING]: Print more info.
7185 (html_text::check_emit_text): Fix handling of <p>.
7186 * src/devices/grohtml/html.h: Updated.
7187 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
7188 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
7189 send its data to stderr also.
7191 (simple_output::space_or_newline) [DEBUGGING]: Removed.
7192 * src/devices/grohtml/post-html.cc (html_printer::do_links,
7193 html_printer::html_printer): Remove `DEBUGGING' conditionals.
7195 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
7197 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
7198 is_inline_image): Removed.
7199 (html_begin_suppress, html_end_suppress): Don't take a parameter.
7200 (graphic_start, graphic_end): Removed.
7201 * src/include/htmlindicate.h: Updated.
7202 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
7203 (macroset_template): New global variable.
7204 (makeFileName): Use `macroset_template'.
7205 (write_end_image): Don't take a parameter.
7207 (write_start_image: Don't emit newline.
7208 (char_buffer::write_upto_newline): Updated.
7209 (char_buffer::skip_to_newline): Renamed to ...
7210 (char_buffer::skip_until_newline): This.
7212 (char_buffer::write_file_troff, char_buffer::write_file_html):
7214 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
7215 (removeAllPages): Remove `DEBUGGING' conditionals.
7216 (addRegDef, dump_args): New functions.
7217 (char_buffer::do_html, char_buffer::do_image): Handle
7218 `www-image-template' command line variable.
7219 Add more debugging code.
7220 (addps4html): Removed.
7221 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
7223 * src/preproc/eqn/main.cc: Include `ctype.h'.
7224 (suppress_html): Removed.
7226 (inline_equation): Use `html_begin_suppress' and
7227 `html_end_suppress'.
7228 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
7229 (troff_output::start_picture, troff_output::finish_picture):
7231 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
7232 (process_input_file): Updated.
7234 * src/roff/troff/div.cc (page_number): Set page number only if the
7235 `ps4html' register isn't defined.
7236 * src/roff/troff/input.cc (image_no): New external variable.
7237 (do_suppress): Use it.
7238 * src/roff/troff/node.h (suppress_node::image_id): New member.
7239 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
7240 (suppress_node::suppress_node): Initialize `image_id' member.
7241 (suppress_node::same): Handle `image_id' also.
7242 (suppress_node::copy): Updated.
7243 (last_image_id): New global variable.
7244 (suppress_node::tprint): Use it.
7246 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
7248 * tmac/pspic.mac (PSPIC): Fix html support.
7249 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
7250 * tmac/www.tmac (www-image-template): Set up.
7251 (HTMLINDEX): Renamed to...
7253 (BODYCOLOR): Renamed to...
7255 (BACKGROUND): Renamed to...
7257 (URL): Change order of parameters for consistency.
7258 (MAILTO): Renamed to...
7260 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
7261 (IMG, PIMG, MPIMG): This.
7262 (HTML-H-BEGIN, HTML-H-END): Renamed to...
7264 (LINKS): Renamed to...
7266 (LINE): Renamed to...
7268 (NO-AUTO-RULE): Renamed to...
7270 (HTML-TL): Renamed to...
7272 (UL-BEGIN, UL-END): Renamed to...
7274 (DROPCAP): Renamed to...
7276 (TS, TE, EQ, EN): Provide default definitions.
7277 (www-make-unique-name): Updated.
7278 (HTML-IMAGE-INLINE): Fix typo.
7279 * tmac/groff_www.man: Updated.
7281 * doc/Makefile (homepage.html): Add option -r to grohtml.
7282 Use shortened image name.
7283 * doc/groff.texinfo: Updated info on grohtml strings and macros.
7284 * doc/homepage.ms: Updated and extended.
7286 2002-02-14 Werner LEMBERG <wl@gnu.org>
7288 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
7290 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
7291 SGR_BACK_DEFAULT_COLOR): Replaced with ...
7292 (tty_printer::put_color): Use it.
7293 (ttr_printer::end_page): Simplify.
7295 2002-02-13 Werner LEMBERG <wl@gnu.org>
7297 * tmac/groff_tmac.man: Moved to...
7298 * man/groff_tmac.man: This place.
7299 * tmac/Makefile.sub, man/Makefile.sub: Updated.
7301 2002-02-12 Werner LEMBERG <wl@gnu.org>
7303 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
7304 $(COMPILE.c) to not include groff's assert.h.
7306 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
7308 * NEWS, src/drivers/grotty/grotty.man: Document it.
7310 2002-02-11 Werner LEMBERG <wl@gnu.org>
7312 * src/libs/snprintf/snprintf.c: Updated to latest version
7315 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
7316 test whether there is `.]' also.
7317 Don't check for spaces after `.['.
7318 * src/roff/grog/grog.sh: Do the same.
7320 2002-02-10 Werner LEMBERG <wl@gnu.org>
7324 * src/libs/libgroff/illegal.cc: Renamed to ...
7325 * src/libs/libgroff/invalid.cc: This.
7326 (illegal_char_table): Renamed to ...
7327 (invalid_char_table): This.
7328 * src/libs/libgroff/Makefile.sub: Updated.
7329 * win32-diffs: Updated.
7331 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
7332 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
7333 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
7334 font::load), src/preproc/eqn/main.cc (read_line, main),
7335 src/preproc/eqn/lex.cc (file_input::read_line),
7336 src/preproc/pic/lex.cc (file_input::read_line,
7337 simple_file_input::get, simple_file_input::peek),
7338 src/preproc/pic/main.cc (top_input::get, top_input::peek),
7339 src/preproc/pic/pic.man, src/preproc/refer/main.cc
7340 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
7341 do_bib), src/preproc/tbl/main.cc (table_input::get),
7342 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
7343 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
7344 do_zero_width, read_request, encode_char, ps_get_line,
7345 transparent_file, get_char_for_escape_name, transparent_translate,
7346 asciify, input_char_description, read_string, set_string),
7347 src/roff/troff/env.cc (environment::add_html_tag),
7348 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
7350 * src/include/lib.h: Updated.
7352 * src/preproc/eqn/eqn.cc: Removed.
7356 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
7358 2002-02-09 Werner LEMBERG <wl@gnu.org>
7360 * doc/gnu.xpm: New image.
7361 * doc/Makefile (DOCS): Add homepage.ps.
7362 Add rules for converting xpm->png and xpm->eps.
7363 Use `gnu.{xpm,eps}' as image names.
7364 * doc/homepage.ms: Updated.
7366 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
7368 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
7369 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
7370 Remove calls to `B1' and `B2'
7371 (PNG-IMAGE): New macro for inclusion of images in PNG format.
7372 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
7373 auxiliary variables for MARGIN-PNG-IMAGE.
7374 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
7375 auxiliary macros for MARGIN-PNG-IMAGE.
7376 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
7378 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
7379 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
7380 (DROPCAP): New macro to produce dropcap characters.
7381 (www-do-image): Renamed back to...
7382 (HTML-DO-IMAGE): This.
7383 Updated all callers.
7385 * doc/Makefile (gnubw.eps): Updated.
7386 * doc/homepage.ms: Updated.
7388 2002-02-08 Werner LEMBERG <wl@gnu.org>
7390 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7391 Added `linethick' to table in section `Style Variables'.
7393 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
7395 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7397 2002-02-07 Werner LEMBERG <wl@gnu.org>
7399 Adding options -C (compatibility mode) and -c (grotty's old output
7402 * src/roff/nroff/nroff.sh: Implement it.
7404 * NEWS, src/roff/nroff/nroff.man: Updated.
7406 * PROBLEMS: Document bison 1.32 bug.
7408 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7410 * src/roff/troff/node.cc (make_tfont): Define it earlier.
7411 * src/roff/troff/div.h: Add prototype for `end_diversions'.
7412 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7413 * src/roff/troff/env.h: Add prototype for `title'.
7415 Adding EBCDIC support to grotty.
7417 * src/devices/grotty/tty.cc (CSI): New macro.
7418 (SGR_*, tty_printer::put_color): Use it.
7420 2002-02-06 Werner LEMBERG <wl@gnu.org>
7422 Implementing color support in grotty. The new switch -c activates
7423 the old drawing scheme, disabling color at the same time. The new
7424 switch `-i' selects italic instead of underlining (SGR only).
7426 * src/devices/grotty/tty.cc (putstring): New define instead of
7427 `fputs'. Updated all callers.
7428 (old_drawing_scheme): New global variable.
7429 (COLOR_CHANGE): New enum value.
7430 (SGR_*): New defines containing color handling escape sequences.
7431 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7432 (glyph): New members `back_color_idx' and `fore_color_idx'.
7433 (glyph::order): Add COLOR_CHANGE.
7434 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7435 `is_underline', `is_bold', `cu_flag', `tty_colors'.
7436 New methods `make_underline', `make_bold', `color_to_idx',
7437 `change_color', `put_color'.
7438 (cu_flag): Moved into `tty_printer' class.
7439 (tty_printer::tty_printer): Initialize colors.
7440 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7441 tty_printer::draw, tty_printer::end_page): Handle colors also.
7442 (main): Add options `-c' and `-i'.
7444 * NEWS, src/devices/grotty/grotty.man: Updated.
7446 * src/include/errarg.h (errarg): Add support for `unsigned int'.
7447 * src/libs/libgroff/errarg.c: Implement it.
7449 * src/include/printer.h (printer): Add `change_color' method
7450 (currently used by grotty only).
7451 * src/libs/libdriver/printer.cc: Implement it.
7452 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7453 call to `pr->change_color'.
7455 * src/roff/troff/node.cc (troff_output_file::fill_color,
7456 troff_output_file::glyph_color): Call `do_motion'.
7458 * tmac/tty.tmac: Add color definitions.
7460 * src/roff/groff/groff.man: Minor fixes.
7462 2002-02-05 Bernd Warken <bwarken@mayn.de>
7464 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7465 it. This is a preparation for future changes.
7467 2002-02-05 Werner LEMBERG <wl@gnu.org>
7469 * src/roff/troff/input.cc (process_input_stack): Fix the case
7470 where leading spaces are followed by \f or \s; previously, an
7471 incorrect space width has been used.
7473 * doc/roff.man (quoted_char): Fix argument.
7474 (comment): Define string.
7476 2002-02-04 Larry Kollar <kollar@alltel.net>
7478 * doc/groff.texinfo: More fixes.
7480 2002-02-04 Werner LEMBERG <wl@gnu.org>
7482 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7483 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7484 `restore_compatibility' before `output_string' -- the LINE_STRING
7485 register now already contains proper switches from and to
7488 * man/groff_char.man: Add Euro symbol.
7489 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7490 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7491 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7494 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7496 (.texinfo.html): Add support for texinfo->html.
7498 2002-02-03 Werner LEMBERG <wl@gnu.org>
7500 Added three new requests `ds1', `as1', and `ami'. The former two
7501 are equivalent to `ds' and `as' with the difference that
7502 compatibility mode is saved on entry, switched off during string
7503 expansion, and restored on exit. The latter is the pendant to `dei'
7506 (do_define_string): Use `define_mode' and `calling mode'.
7507 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7508 end of string, respectively.
7509 (define_string, append_string): Use `calling_mode'.
7510 (define_nocomp_string, append_nocomp_string,
7511 define_string_indirect): New functions.
7512 (init_input_requests): Updated.
7513 * NEWS, man/groff_diff.man, man/groff.man: Document it.
7515 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7516 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
7517 mm macro package accesses this string register directly.
7518 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7520 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
7523 2002-02-02 Larry Kollar <kollar@alltel.net>
7525 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7527 2002-01-31 Werner LEMBERG <wl@gnu.org>
7529 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7531 2002-01-31 Bernd Warken <bwarken@mayn.de>
7533 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7534 * man/groff_out.man: Revised and updated.
7536 2002-01-30 Bernd Warken <bwarken@mayn.de>
7538 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7539 out the unused `{' and `}' commands. Undefined by default.
7540 (IntArray): Make `data' private.
7541 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7542 new methods instead.
7543 (skip_line_D, skip_to_end_of_line): New functions.
7544 (get_D_fixed_args): Use `skip_line_D'.
7545 Changed to handle dummy odd arguments by ...
7546 (get_D_fixed_args_odd_dummy): This new function.
7547 (get_D_variable_args): Split some code into ...
7548 (get_possibly_integer_args): This new function.
7549 (send_draw): Use more `const'.
7550 (delete_current_env): New function.
7551 (position_to_end_of_args): Use `size_t'.
7553 (send_draw): Updated.
7554 (parse_D_command): Handle `c', `C', and `t' better.
7558 2002-01-29 Werner LEMBERG <wl@gnu.org>
7561 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7562 @Def...ListEnd which replaces @Def...x. This is necessary to get
7563 proper HTML output -- see the comment in the file for more
7567 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
7569 Fixes to make color changes of 2002-01-21 work with grohtml.
7571 * src/devices/grohtml/post-html.cc (style): Updated.
7572 (html_printer): Remove unused methods.
7573 (html_printer::do_font, html_printer::draw, html_printer::set_char,
7574 html_printer::special): Updated.
7575 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7576 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7577 Added some debugging code.
7578 (html_text::start_tag): Updated.
7579 (html_text::do_push): New method.
7580 (html_text::push_para): Call it.
7581 Add method for handling color.
7582 (html_text::do_color): Updated.
7583 (html_text::shutdown): Handle color.
7584 * src/devices/grohtml/html-text.h (tag_definition): New member
7588 2002-01-28 Werner LEMBERG <wl@gnu.org>
7590 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7592 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
7594 Add two switches -a and -g to control the antialiasing bits for
7595 text and graphics, respectively.
7597 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7599 * src/devices/grohtml/grohtml.man: Document them.
7600 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7602 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7603 (setupAntiAlias): New function.
7604 (createAllPages): Updated.
7605 (scanArguments): Handle `-a' and `-g'.
7606 (main): Call `setupAntiAlias'.
7609 2002-01-27 Werner LEMBERG <wl@gnu.org>
7611 * doc/groff.texinfo (Def*): Call index function after deffn.
7613 * tmac/html.tmac: Call `nroff' request.
7615 2002-01-26 Larry Kollar <kollar@alltel.net>
7617 * tmac/groff_ms.man: Add some omissions.
7619 2002-01-25 Larry Kollar <kollar@alltel.net>
7621 * tmac/groff_ms.man: Typographical improvements.
7623 2002-01-25 Werner LEMBERG <wl@gnu.org>
7625 * doc/groff.texinfo: Updated version and copyright.
7626 * src/devices/grops/grops.man: Updated.
7628 * tmac/groff_tmac.man: Fix `ig' macro.
7630 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7632 Use `.ne' unconditionally everywhere.
7633 (TS): Only insert some vertical space. Doing a page break is no
7634 longer necessary due to the redefinition of the `ne' request.
7636 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7637 warning for unknown subcommands but parse and pass them to the
7640 2002-01-24 Werner LEMBERG <wl@gnu.org>
7642 * tmac/groff_www.man, NEWS: Fix typos.
7644 2002-01-21 Werner LEMBERG <wl@gnu.org>
7646 Complete revision of color support:
7648 Adapt programs to the new libdriver/input.cc.
7650 Color spaces are no longer converted to RGB but transferred as-is
7651 in the troff intermediate output format.
7653 Handle default color gracefully. troff now supports a `default'
7654 color (which can't be changed).
7656 grops will now use the proper color space functions if available.
7660 Note that currently grohtml doesn't handle colors properly. This
7663 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7664 (ui_to_a): New function.
7665 * src/include/lib.h: Updated.
7667 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7668 (color): Simplified; removed all `double' members and methods.
7669 A new array `components' now holds the color parameters.
7670 (color::is_default, color::get_components): New methods.
7671 (color::operator==, color:operator!=): New.
7672 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7673 to make access to the `components' array more comprehensible.
7674 * src/libs/libgroff/color.cc: Implement new color support.
7675 (atoh): Small fixes.
7676 (color::read_encoding): Simplified for new troff intermediate color
7678 (default_color): New global variable.
7680 * src/roff/troff/input.cc (default_symbol): New global variable.
7681 (lookup_color): Use it.
7682 (default_black): Removed.
7683 (do_glyph_color, do_fill_color): Simplified.
7684 (define_color): Handle default color.
7686 (do_if_request): Handle default color.
7687 * src/roff/troff/env.cc (environment::environment): Initialize
7688 colors with `default_color'.
7689 * src/roff/troff/node.cc (troff_output_file::put): Add method
7691 (troff_output_file::hex): Removed.
7692 (troff_output_file::fill_color, troff_output_file::glyph_color):
7693 Updated to include/color.h and libdriver/input.cc.
7695 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7696 fill color properly (identically to the outline color). \D'f...'
7697 doesn't work any more.
7698 All function calls to it updated.
7700 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7702 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7705 * src/devices/grops/ps.cc (ps_output::put_color): New method.
7706 (ps_printer::sbuf_color): Make a real member instead of pointer.
7707 (ps_printer::fill_color, ps_printer::output_color): Removed.
7708 (ps_printer::ps_printer): Updated.
7709 (ps_printer::set_char): Ditto.
7710 (ps_printer::set_color): Use various color schemes.
7711 Use `put_color' method.
7712 (ps_printer::flush_sbuf): Don't set color.
7713 (ps_printer::fill_path): Take `environment' as parameter.
7714 Simplify color handling.
7715 (ps_printer::set_line_thickness): Renamed to ...
7716 (ps_printer::set_line_thickness_and_color): This (and updated).
7717 (ps_printer::set_color): Change second parameter from `complete'
7718 to `fill' which better describes what it does.
7719 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7720 and text in the right order.
7722 Remove branches for `f' and `F'; this is handled by
7724 * src/devices/grops/ps.h: Updated.
7725 * font/devps/prologue (FL): Redefined.
7726 ({F,C}r,k,g: New color functions (with and without filling).
7728 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7729 * man/groff_diff.man, man/groff.man, man/groff_out.man,
7730 doc/groff.texinfo, NEWS: Updated.
7732 2002-01-20 Bernd Warken <bwarken@mayn.de>
7734 * src/libs/libdriver/input.cc: Completely rewritten. See comments
7735 in this file for what has been changed.
7737 2002-01-19 Werner LEMBERG <wl@gnu.org>
7739 * test-groff: Fix GROFF_FONT_PATH.
7740 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7741 is read before .TH or .Dd is parsed.
7743 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
7745 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7746 quadrant boundaries.
7748 2002-01-18 Werner LEMBERG <wl@gnu.org>
7750 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
7753 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
7755 * tmac/doc.common: Initialize %I register for the %I macro to
7756 avoid (harmless) warning.
7757 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7758 when in the SYNOPSIS section.
7760 2002-01-17 Bruno Haible <haible@clisp.cons.org>
7762 * src/preproc/pic/lex.cc (get_token): Fix typo.
7764 2002-01-17 Werner LEMBERG <wl@gnu.org>
7766 * devices/grops/ps.cc: Fix incorrectly applied last patch.
7768 2002-01-17 Larry Kollar <kollar@alltel.net>
7770 * tmac/groff_ms.man: Completely rewritten.
7772 2002-01-16 Werner LEMBERG <wl@gnu.org>
7774 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7776 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
7778 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7780 (ps_printer::draw): Ditto.
7782 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
7784 * tmac/groff_mdoc.man: Minor fixes.
7786 2002-01-13 Werner LEMBERG <wl@gnu.org>
7788 * man/groff_out.man: Some fixes.
7790 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
7792 * doc/pic.ms: Fix typos.
7794 2002-01-12 Werner LEMBERG <wl@gnu.org>
7796 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7798 2002-01-10 Werner LEMBERG <wl@gnu.org>
7800 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7804 2002-01-09 Bernd Warken <bwarken@mayn.de>
7806 * man/groff_out.man: Revised.
7807 * man/roff.man: Minor fixes.
7808 * src/roff/troff/troff.man: Some reordering.
7810 2002-01-09 Werner LEMBERG <wl@gnu.org>
7812 * tmac/an-old.tmac: Add dummy macros for equation support.
7814 2002-01-07 Werner LEMBERG <wl@gnu.org>
7816 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7818 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
7820 * tmac/groff_man.man: Small improvements.
7822 2002-01-07 Bernd Warken <bwarken@mayn.de>
7824 * man/groff_diff.man: Revised.
7826 2002-01-06 Werner LEMBERG <wl@gnu.org>
7828 * tmac/www.tmac: Remove extraneous backslash.
7830 2002-01-06 Bernd Warken <bwarken@mayn.de>
7832 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7834 2002-01-05 Werner LEMBERG <wl@gnu.org>
7836 Integrated groffer, contributed by Bernd Warken.
7838 * contrib/groffer/*: New.
7839 * Makefile.in, NEWS: Updated.
7841 2002-01-04 Werner LEMBERG <wl@gnu.org>
7843 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7844 registers defined in macro packages.
7845 Revising the ms part.
7847 2002-01-04 Larry Kollar <kollar@alltel.net>
7849 * doc/groff.texinfo: Add documentation for ms macros.
7851 2002-01-02 Werner LEMBERG <wl@gnu.org>
7853 First step in adding PS support for the Euro symbol. `eu' is the
7854 official Euro logo, `Eu' is a font-specific glyph variant.
7856 * font/devps/text.enc: Add `Euro' at position 9.
7857 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7858 * font/devps/symbolmap: Regenerated.
7862 2002-01-02 Bernd Warken <bwarken@mayn.de>
7864 * man/roff.man: Revised.
7866 2002-01-01 Bernd Warken <bwarken@mayn.de>
7868 * src/roff/groff/groff.man: Completely rewritten.
7870 2001-12-31 Werner LEMBERG <wl@gnu.org>
7872 * doc/Makefile: Updated.
7874 2001-12-30 Werner LEMBERG <wl@gnu.org>
7876 * tmac/www.tmac: Make all names of internal macros/registers/strings
7877 lowercase, and prepend `www-'.
7878 Other minor changes.
7879 * src/roff/troff/troff.man: Add preprocessor string at BOF.
7881 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
7883 Implement option `-b' in grohtml to set the HTML background colour.
7885 * src/devices/grohtml/post-html.cc (default_background): New global
7887 (html_printer::html_printer): Initialize `background' to
7888 `default_background'.
7889 (main): Implement option `-b'.
7891 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7893 * src/devices/grohtml/grohtml.man: Updated.
7894 * doc/Makefile (.ms.html): Use `-b'.
7895 * tmac/html.tmac: Don't set background color.
7897 Add new grohtml tag `.html-tl'.
7899 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7901 (title_desc::title_desc): Updated.
7902 (html_printer::troff_tag): Handle `.html-tl'.
7903 (html_printer::write_title): Use `with_h1'.
7904 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7905 (HTML-TL): New macro.
7907 Add support for unordered lists in HTML.
7909 * tmac/www.tmac (www-level): New auxiliary register.
7910 (www-level1, www-level2, www-level3): New auxiliary strings.
7911 (www-push-level, www-pop-level): New auxiliary macros
7912 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7916 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7917 (DEFAULT_VERTICAL_OFFSET): Removed.
7918 (IMAGE_BOARDER_PIXELS): Set to 0.
7919 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7920 (vertical_offset): Initialize with 0.
7921 (gsPaper): New global variable.
7922 (get_resolution): Scan for and return unsigned int.
7923 (get_papersize): New function to get paper length from devps/DESC.
7924 (determine_vertical_offset): New function.
7925 (createAllPages): Produce gray-level images and use proper page
7927 (createImage): Use `-quiet' option of pnmcrop.
7928 (addZ): Fix passing of `-Z'.
7929 (scanArguments): Fix handling of `-o'.
7930 (main): Call `determine_vertical_offset'.
7931 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7934 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7935 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7936 glyph descenders properly.
7938 * doc/homepage.ms: Include `gnubw.eps'.
7939 * doc/Makefile (gnubw.eps): New rule.
7940 (homepage.html): Depend on `gnubw.eps'.
7942 2001-12-25 Werner LEMBERG <wl@gnu.org>
7944 * src/roff/troff/input.cc (default_black): Fix return value.
7946 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
7948 * tmac/doc-common (Dt): Change output of architecture strings.
7949 Do some syntax cleanup.
7950 * tmac/groff_mdoc.man: Updated.
7952 2001-12-23 Werner LEMBERG <wl@gnu.org>
7954 Adding an `itc' request (input line trap accepting \c).
7956 * src/roff/troff/env.h (environment): New member
7957 `continued_input_trap'.
7958 Make `do_input_trap' a friend function instead of `input_trap'.
7959 * src/roff/troff/env.cc (environment::environment,
7960 environment::copy): Updated.
7961 (environment::newline): Implement it.
7962 (do_input_trap): New function.
7963 (input_trap): Call `do_input_trap'.
7964 (input_trap_continued): New function.
7965 (init_env_requests): Updated.
7966 * src/roff/troff/TODO: Updated.
7968 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7971 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7973 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
7975 * tmac/doc-common, tmac/doc-syms: Small updates.
7977 2001-12-22 Colin Watson <cjwatson@debian.org>
7979 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7981 2001-12-22 Bernd Warken <bwarken@mayn.de>
7983 * MANIFEST: New file.
7985 2001-12-22 Werner LEMBERG <wl@gnu.org>
7987 * src/preproc/grn/grn.man: Updated.
7989 2001-12-22 Solar Designer <solar@openwall.com>
7991 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7994 2001-12-19 Werner LEMBERG <wl@gnu.org>
7996 Implement a fallback character request `.fchar'.
7998 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7999 (is_fallback): New inline function.
8000 * src/roff/troff/input.cc (do_define_character): New function.
8001 (define_character): Call `do_define_character'.
8002 (define_fallback_character): New function.
8003 (init_input_requests): Add `fchar'.
8004 (charinfo::charinfo): Updated.
8005 (charinfo::set_macro): New argument to set `fallback' flag.
8006 * src/roff/troff/node.cc (make_glyph_node, make_node,
8007 node::add_char): Check `fallback' flag.
8008 * NEWS, man/groff_diff.man, man/groff_man: Updated.
8010 2001-12-16 Werner LEMBERG <wl@gnu.org>
8012 * groff.texinfo: Document exact search algorithm for glyphs.
8014 2001-12-15 Werner LEMBERG <wl@gnu.org>
8016 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
8017 the left side of $(MANPAGES) rule to make it always non-empty.
8019 2001-12-14 Werner LEMBERG <wl@gnu.org>
8021 * src/roff/troff/input.cc (default_black): Define default color
8022 `black' if not yet defined.
8024 2001-12-13 Werner LEMBERG <wl@gnu.org>
8026 Implement new string-valued register `.fn' to return the current
8027 real (internal) font name.
8029 * env.cc (environment::get_font_name_string): New function.
8030 (init_env_requests): Add `.fn' register.
8031 * env.h (environment): Updated.
8032 * node.cc (font_info): Make `get_font_name' a friend.
8033 (get_font_name): New function.
8036 * man/groff_diff.man, man/groff.man, NEWS: Updated.
8038 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8040 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
8042 2001-12-12 Werner LEMBERG <wl@gnu.org>
8044 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
8046 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
8048 * man/groff_diff.man: Adding documentation for \O.
8050 2001-12-10 Werner LEMBERG <wl@gnu.org>
8052 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
8053 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
8055 2001-12-09 Werner LEMBERG <wl@gnu.org>
8057 * man/roff.man: Revised.
8058 * src/roff/groff/groff.man: Replace man page references with a
8059 pointer to roff.man.
8061 2001-12-09 Bernd Warken <bwarken@mayn.de>
8063 * man/roff.man: Completely rewritten.
8065 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8067 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
8069 2001-12-05 Werner LEMBERG <wl@gnu.org>
8071 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
8073 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
8074 order of initializers.
8077 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
8079 * doc/groff.texinfo: Fix documentation of \O.
8081 * src/devices/grohtml/html-text.cc (html_text::do_indent,
8082 html_text::do_table, html_text::do_emittext, html_text::do_para):
8083 Use `const' for first argument.
8084 (html_text::do_table): Use cast.
8085 * src/devices/grohtml/html-text.h: Updated.
8086 * src/devices/grohtml/output.cc (simple_output::put_string): Add
8087 method for `const string &s'.
8088 * src/devices/grohtml/html.h: Updated.
8089 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
8090 (ANCHOR_TEMPLATE): Modified.
8091 (manufacture_headings): New global variable to handle `-h' option.
8092 (is_subsection): Removed.
8093 (char_buffer::add_string): Add `const' to first argument.
8094 Protect against invalid string argument.
8095 Add method for `const string &s'.
8096 (text_glob): Completely redesigned.
8097 (page): Use `const' for strings and remove string length variable.
8098 (page::add_html): Removed.
8099 (page::add_end_encode): New member function.
8100 (to_unicode): Moved upwards.
8101 (title_desc, header_desc): Updated.
8102 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
8104 (html_printer::is_bold, html_printer::make_bold): New member
8106 (html_printer::end_of_line): Updated.
8107 (generate_img_src, html_printer::do_auto_image,
8108 html_printer::do_title, html_printer::write_header,
8109 html_printer::determine_header_level, html_printer::do_heading,
8110 html_printer::do_linelength, html_printer::do_pageoffset,
8111 html_printer::do_indentation, html_printer::do_tempindent,
8112 html_printer::do_indentedparagraph, html_printer::do_break,
8113 html_printer::flush_sbuf, get_html_translation,
8114 html_printer::begin_page, html_printer::special): Rewritten to get
8115 rid of static string length limit.
8116 (html_printer::troff_tag): Added `.no-auto-rule'.
8117 (html_printer::flush_globs): Small fix.
8118 (html_printer::determine_space): Don't compute `space_width'.
8119 (html_printer::translate_to_html): Renamed to ...
8120 (html_printer::emit_html): This (with updates).
8121 (html_printer::write_header): Implement `-h' option.
8122 (html_printer::draw): Remove commented-out code. Handle `F'
8124 (html_printer::add_char_to_sbuf): Removed.
8125 (html_printer::add_to_sbuf): Rewritten.
8126 (html_printer::sbuf_continuation): Fixed.
8127 (html_printer::seen_backwards_escape, reverse,
8128 html_printer::remove_last_char_from_sbuf): Removed.
8129 (char_translate_to_html, str_translate_to_html): Removed.
8130 (html_printer::overstrike): New function member.
8131 (html_printer::set_char): Use it.
8132 (html_printer::do_body): New function member.
8133 (html_printer::~html_printer): Use it.
8134 (main): Handle `-h' option.
8136 * src/devices/grohtml/grohtml.man: Document -h switch.
8138 * src/preproc/html/pre-html.cc: Include searchpath.h
8139 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
8140 (get_resolution): New function.
8141 (checkImageDir): Use `0777' permissions in mkdir()
8142 (write_start_image): Rewritten to use `\O[5...]'.
8143 (createImage, generateImages): Updated.
8144 (main): Handle `F' and `h' options.
8145 Use `get_resolution'.
8147 * src/roff/troff/input.cc (begin, end, image): Removed.
8148 (do_suppress): Take parameter.
8149 Handle modified syntax of `\O'.
8150 (token::next): Updated.
8151 (init_markup_requests): Removed.
8154 * src/roff/troff/div.h: Add declaration for begin_page().
8156 * tmac/color-html.tmac: Removed. Contents moved to...
8157 * tmac/html.tmac: Here. Set background color.
8158 * tmac/color.tmac: Removed. Contents moved to...
8159 * tmac/ps.tmac: Here.
8160 * tmac/www.tmac: Remove the title command when generating images
8162 (NO_AUTO_RULE): New macro.
8163 (HTML_DO_IMAGE): Use revised `\O' escapes.
8164 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
8166 2001-12-02 Werner LEMBERG <wl@gnu.org>
8168 * tmac/groff_mdoc.man: Fix typo.
8170 2001-12-01 Colin Watson <cjwatson@debian.org>
8172 * man/roff.man: Fix typo.
8174 2001-11-29 Werner LEMBERG <wl@gnu.org>
8176 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
8179 * src/roff/troff/input.cc (read_draw_node): Emit error message if
8180 more than one argument to \D'f ...'.
8182 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
8184 2001-11-28 Werner LEMBERG <wl@gnu.org>
8186 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
8189 * tmac/groff_man.man: Minor cosmetic fix.
8191 2001-11-27 Werner LEMBERG <wl@gnu.org>
8193 * src/roff/groff/groff.man, tmac/groff_tmac.man,
8194 tmac/groff_www.man: s/mwww/www/.
8196 2001-11-26 Werner LEMBERG <wl@gnu.org>
8198 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
8199 * configure: Regenerated.
8200 * win32-diffs: Updated.
8202 * tmac/groff_mwww.tmac: Renamed to ...
8203 * tmac/groff_www.tmac: This.
8204 * tmac/mwww.tmac: Removed.
8205 * NEWS, tmac/Makefile.sub: Updated.
8207 2001-11-21 Werner LEMBERG <wl@gnu.org>
8209 * doc/groff.texinfo: Improve documentation of the `\v' escape.
8210 Fix explanation of `\D' and `rt'.
8212 2001-11-20 Werner LEMBERG <wl@gnu.org>
8214 * tmac/an-old.tmac (an-header): Set header length equal to page
8216 * doc/groff.texinfo: Improve documentation of `ne' request. Other
8220 2001-11-19 Werner LEMBERG <wl@gnu.org>
8222 * NEWS, man/Makefile.sub: Updated.
8224 2001-11-19 Bernd Warken <bwarken@mayn.de>
8226 * man/ditroff.man: New file.
8228 2001-11-17 Werner LEMBERG <wl@gnu.org>
8230 * man/groff_differences.man: Renamed to ...
8231 * man/groff_diff.man: This. Updated.
8232 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
8234 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
8235 * src/preproc/html/pushback.cc: This. Updated.
8236 * src/preproc/html/pushbackbuffer.h: Renamed to ...
8237 * src/preproc/html/pushback.h: This.
8238 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
8241 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
8242 * src/libs/libgroff/htmlhint.cc: This.
8243 * src/libs/libgroff/Makefile.sub: Updated.
8245 * tmac/an-old.tmac (an-end): Fix page length.
8247 2001-11-16 Werner LEMBERG <wl@gnu.org>
8249 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
8250 * man/Makefile.sub: Include groff_differences.man.
8251 * VERSION: Set to 1.18.
8252 * REVISION: Set to 0.
8254 2001-11-16 Bernd Warken <bwarken@mayn.de>
8256 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
8257 the second dot (or ending macro name) to end a macro.
8258 * doc/groff.texinfo: Doc fix.
8260 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
8262 * tmac/doc-common (doc-header): Handle very long document titles
8265 2001-11-16 Werner LEMBERG <wl@gnu.org>
8267 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
8269 2001-11-15 Werner LEMBERG <wl@gnu.org>
8271 * src/roff/troff/troff.man: Revised and split into troff.man and...
8272 * man/groff_differences.man: New file.
8275 2001-11-13 Werner LEMBERG <wl@gnu.org>
8277 * tmac/an-old.tmac (TS, TE): New macros for table support.
8279 2001-11-12 Werner LEMBERG <wl@gnu.org>
8281 * src/include/lib.h: Provide a fix for emx to not include
8284 2001-10-27 Werner LEMBERG <wl@gnu.org>
8286 * src/roff/troff/input.cc (substring_macro): Fix computation of
8289 2001-10-20 Werner LEMBERG <wl@gnu.org>
8291 Undo change from 2001-08-28.
8293 * src/roff/troff/input.cc (have_input): New global variable.
8294 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
8295 in compatibility mode.
8296 (process_input_stack): Use it.
8298 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
8300 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
8301 being handled as end-of-sentence characters,
8303 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
8305 * src/roff/troff/input.cc (file_iterator): New members
8306 `suppress_newline_flag' and `seen_escape'.
8307 (file_iterator::next_file): Updated.
8308 (file_iterator::fill): Use it.
8309 (string_iterator): New member `suppress_newline_flag'.
8310 (string_iterator::fill): Set it.
8311 (get_color_element): Use MAX_COLOR_VAL.
8312 * src/roff/troff/env.cc (environment): Remove `need_eol'.
8313 (no_fill): Don't set `env->ignore_next_eol'.
8314 (environment::newline): Handle `eol' tag properly.
8316 (environment::add_html_tag): Set `env->ignore_next_eol'.
8318 * src/roff/troff/env.h (environment): Updated.
8320 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
8322 (html_printer::outstanding_eol): New member function.
8323 (html_printer::do_title): Use new functions.
8324 (html_printer::troff_tag): Test `id_eol_ce'.
8326 2001-10-10 Werner LEMBERG <wl@gnu.org>
8328 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
8329 files work with -C also.
8331 2001-10-05 Werner LEMBERG <wl@gnu.org>
8333 * doc/pic.ms: Minor fix.
8334 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
8335 as a valid command line switch.
8336 * src/devices/grohtml/post-html.cc (main): Ditto.
8338 * src/devices/grohtml/grohtml.man: Updated.
8339 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
8341 2001-10-04 Werner LEMBERG <wl@gnu.org>
8343 Implementing color support in troff, pic, grops, and grohtml. These
8344 changes are based on a major patch provided by Gaius Mulley
8347 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
8348 definitions with both hex values and fractions.
8350 New escapes: \m and \M for drawing and background color,
8351 respectively. This corresponds to the troff output commands `m'
8354 groff and troff accept command line switch `-c' to disable color
8355 output (which is automatically disabled in compatibility mode).
8357 New scaling indicator `f' for fractions (1f = 65536u).
8359 New conditional operator `m' to test for defined colors with `if'
8362 New keywords `color' (or `colour', `colored', `coloured'), `outline'
8363 (or `outlined'), and `shaded' added to pic.
8365 * src/include/color.h: New file.
8366 * src/include/driver.h: Include it.
8367 * src/include/printer.h: Include color.h.
8368 (environment): New members `col' and `fill'.
8369 (printer): Remove `adjust_arc_center' member function.
8370 * src/include/Makefile.sub: Updated.
8372 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
8374 Handle `m' and `DF' troff commands.
8375 * src/libs/libgroff/color.cc: New file.
8376 * src/libs/libgroff/Makefile.sub: Updated.
8378 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
8380 (createImage): Fix computation of `y2'.
8382 (buffer::write_file_html): Remove calls to `stop'.
8384 * src/preproc/pic/common.h (common_output): New abstract function
8385 members `set_color', `reset_color', `get_last_filled', and
8386 `get_outline_color'.
8387 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8388 (object_spec): Add members `shaded' and `outlined'.
8389 * src/preproc/pic/output.h (output): `command' is now abstract.
8390 New function members `set_color', `reset_color', `get_last_filled',
8391 and `get_outline_color'.
8392 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8393 `outline[d]', and `shaded'.
8394 * src/preproc/pic/object.cc (output::command): Removed.
8395 (output::set_location): Moved to output.h.
8396 (graphic_object): Add protected members `outline_color' and
8398 Add member functions `set_outline_color', `get_outline_color', and
8400 (closed_object): Add member function `set_fill_color'.
8401 Add member `color_fill'.
8402 (graphic_object::print_text): Use `out->set_color' and
8404 (box_object::print, ellipse_object::print, circle_object::print,
8405 line_object::print, spline_object::print, arc_object::print): Ditto.
8406 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8407 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8408 `SHADED', making them `%left'.
8409 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8410 * src/preproc/pic/tex.cc (tex_output): New dummy function members
8411 `set_color', `reset_color', `get_last_filled', and
8412 `get_outline_color'.
8413 * src/preproc/pic/troff.cc (simple_output): New abstract function
8414 members `set_color', `reset_color', and `get_last_filled'.
8415 (simple_output::polygon, simple_output::circle,
8416 simple_output::ellipse): Use `get_last_filled'.
8417 (troff_output): New members `last_filled' and `last_outlined'.
8418 New function members `set_color', `reset_color', `get_last_filled',
8419 and `get_outline_color'.
8420 (troff_output::finish_picture): Use `reset_color'.
8421 (troff_output::set_fill): Test `last_filled'.
8422 * src/preproc/pic/pic.man: Updated.
8424 * src/roff/groff/groff.cc (main): Implement `-c' option.
8425 (synopsis, help): Updated.
8426 src/roff/groff/groff.man: Updated.
8428 * src/roff/troff/troff.h: Include color.h.
8429 (warning_type): Add WARN_COLOR.
8430 * src/roff/troff/env.h (environment): New members
8431 `{cur,prev}_{glyph,fill}_color'.
8432 New member functions `get_{prev_,}{glyph,fill}_color'.
8433 * src/roff/troff/env.cc: Initialize and implement them.
8434 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8435 Replace `NULL' with `0' everywhere for consistency.
8436 (lookup_color, default_black, do_glyph_color, do_fill_color,
8437 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8438 define_color): New functions.
8439 (token::next): Implement \M and \m escapes.
8440 (do_if_request): Implement `m' operator.
8442 (main): Implement `-c' option.
8443 (init_markup_requests): Add `defcolor' request.
8444 (warning_table): Add `color' warning.
8445 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8447 * src/roff/troff/node.cc (troff_output_file): New members
8448 `current_{page,glyph}color'. New member functions `put_hex',
8449 `glyph_color', and `fill_color'.
8450 (glyph_color_node::*, fill_color_node::*): Implement it.
8451 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8452 (parse_term): Add support for `f'.
8453 * src/roff/troff/troff.man: Updated.
8455 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8457 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8458 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8460 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8461 (tag_definition): Use `void *' for arg1.
8462 (html_text): New member functions `do_color' and `done_color'.
8463 Use `void *' for second parameter of `push_para' member function.
8464 New `push_para' member function with a single parameter.
8465 Use `char *' for parameter of `issue_table_begin' member funtion.
8466 New `issue_color_begin' member function.
8467 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8469 (html_text::issue_color_begin): New function.
8470 (html_text::issue_table_begin): Use `char *' for parameter.
8471 (html_text::start_tag, html_text::shutdown,
8472 html_text::check_emit_text): Updated.
8473 (html_text::push_para): Use `void *' for second parameter.
8474 Add same function with only one parameter.
8475 (html_text::do_*): Updated.
8476 (html_text::do_color, html_text::done_color): New functions.
8477 * src/devices/grohtml/post-html.cc (style): New member `col'.
8478 Mew member `style' with 6 parameters.
8479 (style::style, style::operator==): Updated.
8480 (html_printer::do_font): Use it.
8481 (html_printer::draw): Add dummy entry for `F'.
8482 (html_printer::set_char): Updated.
8483 * src/devices/grohtml/grohtml.man: Updated.
8485 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8486 trailing zeroes removed.
8487 (ps_printer): New members `sbuf_color', `fill_color', and
8489 Removed member `fill'.
8490 New member function `set_color'.
8491 (ps_printer::ps_printer, ps_printer::set_char): Updated.
8492 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8493 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8495 * tmac/color-html.tmac, tmac/color.tmac: New files.
8496 * tmac/troffrc: Include them.
8497 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8498 * tmac/Makefile.sub: Updated.
8500 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8501 man/groff.man: Updated.
8502 * font/devps/prologue.ps: Define FC and CO functions.
8504 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
8506 Fix incorrect cropping of images and incorrect handling of special
8507 characters. Fix handling of file names in \O.
8509 * src/include/geometry.h: New file.
8510 * src/libs/libgroff/geometry.cc: New file.
8511 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8513 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8515 (do_suppress): Updated.
8516 * src/roff/troff/node.cc: Include geometry.h.
8517 (troff_output_file::flush_tbuf): Fixed parameters to
8518 `check_output_limits'.
8519 (troff_output_file::check_charinfo): Ditto.
8520 (troff_output_file::determine_line_limits): Add support for `Da'
8523 * src/devices/grohtml/post-html.cc (str_translate_to_html):
8524 Add new parameter `is_special' to decode special characters from
8526 (html_printer::do_title, html_printer::do_heading,
8527 html_printer::do_indentedparagraph,
8528 html_printer::translate_to_html, html_printer::special): Updated.
8530 2001-10-03 Werner LEMBERG <wl@gnu.org>
8532 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8533 Fix entry for config.h.
8534 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8535 * tmac/troffrc: Translate nonbreakable space character to `\~'.
8536 * src/preproc/eqn/eqn.man: Document -d command line option.
8538 2001-09-27 Werner LEMBERG <wl@gnu.org>
8540 * man/groff.man: Use
8548 instead of the old code (`.ad .hy' after the table) to suppress
8549 incorrect hyphenation for grohtml output.
8551 2001-09-22 Werner LEMBERG <wl@gnu.org>
8553 * man/groff_font.man, man/groff_out.man: Minor fixes.
8555 2001-09-20 Werner LEMBERG <wl@gnu.org>
8557 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
8558 Arnold Robbins <arnold@skeeve.com>).
8560 2001-09-09 Werner LEMBERG <wl@gnu.org>
8562 * configure: Regenerated with autoconf 2.52.
8564 * doc/groff.texinfo: Complete revision of indices.
8566 2001-09-07 Werner LEMBERG <wl@gnu.org>
8568 * doc/Makefile (clean): Updated to delete all indices.
8570 2001-09-05 Werner LEMBERG <wl@gnu.org>
8572 * src/roff/troff/troff.man: Remove superfluous line.
8574 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8575 given on the command line (or rather, if only the default warnings
8578 2001-09-03 Werner LEMBERG <wl@gnu.org>
8580 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8581 use .ne for TTY devices.
8583 2001-08-31 Werner LEMBERG <wl@gnu.org>
8585 * src/roff/troff/token.h, src/roff/troff/input.cc:
8586 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8588 2001-08-28 Werner LEMBERG <wl@gnu.org>
8590 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8591 * src/roff/troff/input.cc (token::next): Return
8592 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8594 (token::description): Updated.
8595 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8596 (token::add_to_node_list, token::process): Ignore
8597 TOKEN_TRANSPARENT_ESCAPE.
8599 2001-08-27 Werner LEMBERG <wl@gnu.org>
8601 * tmac/an-old.tmac: Fix `S' string.
8603 2001-08-26 Werner LEMBERG <wl@gnu.org>
8605 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8607 2001-08-25 Werner LEMBERG <wl@gnu.org>
8609 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8611 Many other minor fixes.
8613 * configure.ac: Add message at end to inform how to compile
8615 * configure: Regenerated.
8617 2001-08-24 Werner LEMBERG <wl@gnu.org>
8619 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8620 Updated to latest version of libc.
8622 2001-08-23 Werner LEMBERG <wl@gnu.org>
8624 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8625 Autoconf 2.50 and newer can handle this.
8626 * configure: Regenerated.
8628 2001-08-21 Werner LEMBERG <wl@gnu.org>
8630 * doc/pic.ms: Fix typo.
8631 * src/preproc/tbl/tbl.man: Document case of global options.
8633 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
8635 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8636 handling of `CR' font.
8638 2001-08-20 Werner LEMBERG <wl@gnu.org>
8640 Use a config.h file.
8642 * src/include/lib.h: Include config.h.
8643 * All C files: Ditto (if necessary).
8644 * All C++ source and header files: Include lib.h first (if
8647 * src/include/config.hin: New file (autogenerated by autoheader).
8648 * stamp-h.in: New file.
8649 * configure.ac: Updated.
8650 * aclocal.m4: Add third parameters to AC_DEFINE macros.
8651 (GROFF_ARRAY_DELETE): Simplified.
8652 * Makefile.sub (DISTCLEANFILES): Updated.
8653 Added targets for remaking config.status, config.hin, config.h,
8654 stamp-h.in, and stamp-h.
8655 * configure: Regenerated.
8657 2001-08-19 Werner LEMBERG <wl@gnu.org>
8661 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
8663 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8664 (do_sprintf): Use snprintf().
8666 2001-08-18 Werner LEMBERG <wl@gnu.org>
8668 * src/libs/snprintf/*: Added an snprintf module written by Mark
8670 * src/libs/libgroff/Makefile.sub: Updated.
8671 * configure.ac: Add test for snprintf().
8672 * Makefile.in: Updated.
8673 * configure: Regenerated.
8675 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8678 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
8680 * tmac/doc.tmac (Ex): New implementation.
8681 * tmac/doc-common, tmac/groff_tmac.man: Updated.
8683 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
8685 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8687 * tmac/groff_tmac.man: Updated.
8689 2001-08-13 Werner LEMBERG <wl@gnu.org>
8691 * src/preproc/tbl/tbl.man: Minor documentation update.
8693 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
8695 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8696 * configure.ac: Add declaration test for gettimeofday().
8697 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8698 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8699 * configure: Regenerated.
8701 2001-08-11 Werner LEMBERG <wl@gnu.org>
8703 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8704 * configure.ac: Add declaration test for strcasecmp().
8705 * Makefile.in: Updated.
8706 * configure: Regenerated.
8707 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8708 this is necessary because groff's mkstemp.cc is C++.
8709 Add declaration conditionally for strcasecmp().
8711 2001-08-10 Werner LEMBERG <wl@gnu.org>
8713 Integrated pic2graph, contributed by Eric S. Raymond.
8715 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8717 * Makefile.in, NEWS: Updated.
8719 * src/preproc/tbl/tbl.man: Revised.
8721 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
8723 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8725 2001-08-09 Werner LEMBERG <wl@gnu.org>
8727 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8730 2001-08-08 Paul Eggert <eggert@twinsun.com>
8732 * Makefile.sub (configure): Depend on configure.ac, not
8734 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8736 2001-08-07 Werner LEMBERG <wl@gnu.org>
8738 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8741 2001-08-06 Werner LEMBERG <wl@gnu.org>
8743 * src/roff/troff/troff.man: Improve documentation of -E option.
8745 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8747 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8750 2001-07-27 Werner LEMBERG <wl@gnu.org>
8752 * src/preproc/refer/refer.cc: Undo last change.
8753 * src/devices/grohtml/post-html.cc: Ditto.
8755 2001-07-26 Werner LEMBERG <wl@gnu.org>
8757 * src/preproc/refer/refer.cc: Include `lib.h'.
8758 * src/devices/grohtml/post-html.cc: Ditto.
8760 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
8762 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8763 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8764 * Makefile.in: Comment updated.
8765 * configure: Regenerated.
8767 2001-07-25 Werner LEMBERG <wl@gnu.org>
8769 * src/preproc/pic/pic.cc: Removed.
8770 * src/preproc/pic/pic_tab.h: Removed.
8771 * src/preproc/refer/label.cc: Removed.
8773 * doc/Makefile (.ms.html): Don't use a file name extension in
8774 argument to grohtml's -I option.
8775 * Makefile.in (dist): Remove CVS directories.
8776 Call `distfiles' target.
8778 * src/devices/grohtml/grohtml.man: Add information about valid
8779 versions of pnmtopng.
8780 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8781 name instead of number.
8783 2001-07-24 Werner LEMBERG <wl@gnu.org>
8785 * doc/groff.texinfo: Minor fixes.
8787 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
8789 * doc/Makefile (.ms.html): Put image files into a subdirectory.
8792 2001-07-20 Werner LEMBERG <wl@gnu.org>
8794 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8795 * src/libs/libgroff/mkstemp.cc: New file.
8796 * src/libs/libgroff/mksdir.cc: New file.
8797 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8798 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8799 * src/libs/libgroff/Makefile.sub: Updated.
8800 * src/include/lib.h: Add mksdir() prototype.
8801 * src/include/posix.h: Define S_IXUSR if not yet defined.
8803 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8804 (createAllPages): Use mksdir() instead of current code.
8805 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8806 (main): [!HAVE_MKSTEMP]: Removed.
8808 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8809 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8811 * configure.ac: Add tests for stdint.h, sys/time.h, and
8813 Call new GROFF_xxx macros.
8814 * configure: Regenerated.
8815 * Makefile.in: Comments updated.
8817 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
8819 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8820 instead of current code.
8821 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8822 * src/roff/groff/groff.cc (possible_command::insert_args): New
8824 (main): Use it for predriver handling instead of insert_arg().
8826 2001-07-19 Werner LEMBERG <wl@gnu.org>
8828 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8831 * src/include/posix.h: Define S_IWUSR if not yet defined.
8833 2001-07-18 Werner LEMBERG <wl@gnu.org>
8837 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
8839 * tmac/groff_mdoc.man: Document new -width and -column syntax.
8840 Some other minor fixes.
8841 * tmac/an-old.tmac: Add `AT' and `UC' macros.
8843 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
8845 Replace call to `troff' with `groff -Z' to make it aware of
8848 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8849 (troff_command, command_prefix): Removed.
8850 (alterDeviceTo): Use groff.
8851 (addZ): New function.
8852 (char_buffer::do_html): Use it.
8853 (scanArguments): Use TROFF_COMMAND.
8854 (findPrefix): Removed.
8856 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8858 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
8860 * doc/pic.ms: Documentation fixes.
8862 2001-07-17 Werner LEMBERG <wl@gnu.org>
8864 Replace atexit() with global destructor.
8866 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8867 (xtmpfile_list_init): New global structure to deallocate
8868 xtmpfile_list on exit. Its destructor inherits most code from
8870 (remove_tmp_files): Deleted.
8871 (add_tmp_file): Simplified.
8873 2001-07-16 Werner LEMBERG <wl@gnu.org>
8875 Replace strdup() with strsave().
8877 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8878 (set_papersize): Use strsave() and a_delete.
8879 (main): Use strsave().
8880 * src/preproc/html/pre-html.cc (make_message, createAllPages,
8881 removeAllPages): Use strsave() and a_delete.
8883 * configure.ac: Remove test for strdup.
8884 * Makefile.in: Comment updated.
8885 * configure: Regenerated.
8887 2001-07-15 Werner LEMBERG <wl@gnu.org>
8889 * win32-diffs: Updated.
8891 2001-07-14 Werner LEMBERG <wl@gnu.org>
8893 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8894 removing the old one.
8895 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8897 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8899 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8901 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
8903 Merge -xwidth into -width. Add -xwidth functionality to -column
8906 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8908 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
8909 string immediately following a leading dot starts with a valid mdoc
8911 Add similar code to the -column branch.
8912 (doc-Bl-usage): Updated.
8913 * groff_mdoc.man: s/-xwidth/-width/.
8915 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
8917 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8918 running into centered or non-formatted text.
8920 2001-07-11 Werner LEMBERG <wl@gnu.org>
8922 Introduce short and long prefixes to have the selection at run-time
8923 whether there is a 8+3 limit for names of temporary files.
8925 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8926 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8927 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8929 (temp_init): New global structure to initialize above three
8931 (xtmptemplate): Use two parameters for long and short prefix.
8932 Simplify code use above three variables.
8933 (xtmpfile): Use long and short prefixes as parameters.
8934 * src/include/lib.h: Updated.
8936 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8938 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8939 (createAllPages, makeTempFiles): Updated.
8941 2001-07-09 Werner LEMBERG <wl@gnu.org>
8943 * REVISION: Increased to 3.
8945 Version 1.17.2 released
8946 =======================
8948 2001-07-07 Werner LEMBERG <wl@gnu.org>
8950 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8953 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
8955 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8957 * tmac/groff_mdoc.man: Fix synopsis.
8959 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
8961 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8962 Restore `doc-Pa-font'.
8964 2001-07-04 Werner LEMBERG <wl@gnu.org>
8966 * src/utils/indxbib/dirnamemax.c: Moved to ...
8967 * src/libs/libgroff/maxfilename.cc: Here.
8968 s/dir_name_max/file_name_max/.
8970 * src/include/lib.h: Add file_name_max.
8971 * src/utils/indxbib/indxbib.cc: Updated.
8972 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8975 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8977 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8979 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8980 REGION_TEMPLATE): New macros.
8981 (createAllPages, makeTempFiles): Use them.
8982 Include `nonposix.h'.
8983 (html_system): New function.
8984 (createAllPages, createImage): Use it.
8987 * tmac/www.tmac: Fix typos.
8989 2001-07-03 Werner LEMBERG <wl@gnu.org>
8991 * tmac/www.tmac: Disable hyphenation in normal text only if output
8993 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8994 * tmac/groff_mwww.man, NEWS: Updated.
8996 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
8998 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
9001 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
9003 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
9004 doc-display-ps-stack): Implement font and font size stack for
9007 2001-07-02 Werner LEMBERG <wl@gnu.org>
9009 * REVISION: Increased to 2.
9010 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
9012 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
9013 beginning of a line.
9014 * src/groff/grog/grog.sh: Ditto.
9016 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
9018 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
9021 2001-06-27 Werner LEMBERG <wl@gnu.org>
9023 Fix problems with preprocessor string for `man' program.
9025 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
9026 Updated/added copyright.
9027 Moved Emacs's local variable to identify nroff mode to the end of
9028 the file; add local variable if missing.
9030 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
9032 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
9033 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
9034 * configure: Regenerated.
9036 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
9038 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
9039 * configure: Regenerated.
9041 2001-06-24 Werner LEMBERG <wl@gnu.org>
9043 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
9045 * doc/pic.ms: Fix typos.
9047 Version 1.17.1 released
9048 =======================
9050 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
9052 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
9053 * configure: Updated.
9055 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
9057 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
9059 * src/roff/troff/dic.cc (blank_line): Add html tag.
9061 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
9063 * src/roff/troff/input.cc (do_suppress): Fix typo.
9065 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
9067 Added two new options (-D and -I) to specify image names and a
9068 subdirectory to place the images in.
9070 Change syntax from \\Ox to \\O[x].
9072 * src/devices/grohtml/post-html.cc (main): Add options.
9074 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
9075 Use `NULL' instead of `0' for null string pointers.
9076 (MAX_RETRIES): New macro.
9077 (lengthOfintToStr, intToStr, make_message): New functions.
9078 (makeFileName): Make function static.
9079 Implement -D and -I options.
9080 (checkImageDir): New function.
9081 (write_end_image, write_start_image): Use new syntax of \O.
9082 (createAllPages, removeAllPages): Implement -D and -I options. Use
9084 (createImage): Use make_message().
9085 (addps4html): Add guard for malloc().
9086 (usage, scanArguments): Updated.
9087 (makeTempFiles): Use mkstemp().
9088 (removeTempFiles): Use unlink().
9089 (findPrefix): Add guard for malloc().
9091 * src/roff/troff/input.cc (get_delim_file_name): New function to
9093 (do_suppress): Updated to parse new syntax.
9094 * src/devices/grohtml/grohtml.man: Updated.
9095 * tmac/www.tmac: Updated to new syntax.
9099 2001-06-15 Werner LEMBERG <wl@gnu.org>
9101 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
9103 * src/devices/grohtml/grohtml.man: Minor improvements.
9105 2001-06-14 Werner LEMBERG <wl@gnu.org>
9107 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
9109 2001-06-11 Werner LEMBERG <wl@gnu.org>
9111 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
9112 line to specify preprocessor options -- mandb 2.3.1 only recognizes
9114 * src/preproc/grn/grn.man: Add proper '\" string.
9116 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
9118 * test-groff: Don't use PATH but GROFF_BIN_PATH.
9120 2001-06-08 Werner LEMBERG <wl@gnu.org>
9122 Updated to autoconf 2.50.
9124 * configure.in: Renamed to...
9125 * configure.ac: This.
9126 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
9127 (GROFF_OS390): Updated.
9128 * configure: Regenerated.
9130 2001-05-18 Werner LEMBERG <wl@gnu.org>
9132 * src/roff/troff/env.c, src/roff/troff/env.h,
9133 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
9136 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
9138 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
9140 2001-05-16 Werner LEMBERG <wl@gnu.org>
9142 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
9143 less than or equal zero; set it to 1 then.
9144 * src/roff/troff/node.h (node::node): Initialize `last'.
9146 2001-05-08 Werner LEMBERG <wl@gnu.org>
9148 * tmac/an-old.tmac: Make predefined strings work in compatibility
9150 Add troff version guard.
9151 * tmac/doc.tmac: Simplify version guard.
9153 2001-05-07 Werner LEMBERG <wl@gnu.org>
9155 The .ns and .rs requests are now honoured not only in the top-level
9156 but in all diversions (similar to UNIX troff).
9158 This change is based on a patch from Tadziu Hoffmann
9159 <hoffmann@usm.uni-muenchen.de>.
9161 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
9162 (top_level_diversion): Remove `no_space_mode' member.
9163 * src/roff/troff/div.cc (diversion::diversion,
9164 top_level_diversion::top_level_diversion): Updated.
9165 (macro_diversion::output): Reset `no_space_mode'.
9166 (no_space, restore_spacing): Use `curdiv' unconditionally.
9167 (space_request, blank_line): Check `curdiv->no_space_mode'.
9168 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
9169 `curdiv' unconditionally.
9170 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9173 2001-05-06 Werner LEMBERG <wl@gnu.org>
9175 Added two new requests `de1' and `am1' which are similar to `de' and
9176 `am' with the difference that compatibility mode is saved on entry,
9177 switched off during macro execution, and restored on exit.
9179 * src/roff/troff/input.h: Added two new special characters
9180 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
9181 * src/roff/troff/input.cc (input_iterator): Added two member
9182 functions `save_compatible_flag' and `get_compatible_flag'.
9183 (input_stack): Ditto.
9184 (string_iterator): Ditto. Also add private member
9185 `saved_compatible_flag'.
9186 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
9187 (calling_mode): New enumeration.
9188 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
9189 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
9190 (define_macro, define_indirect_macro, append_macro, ignore): Use
9192 (define_nocomp_macro, append_nocomp_macro): New functions.
9193 (init_input_requests): Updated.
9194 (do_request): Rename local variable `saved_compatible_flag' to
9195 `old_compatible_flag'.
9196 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9198 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
9199 public and trap-invoked macros. As a consequence, the man macros
9200 work in compatibility mode also.
9202 2001-05-06 Solar Designer <solar@openwall.com>
9204 * Makefile.in: Use $(mandir).
9206 2001-05-06 Alexios Zavras <zvr@pobox.com>
9208 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
9210 2001-05-05 Werner LEMBERG <wl@gnu.org>
9212 Added `.ns' number register: Returns 1 in no-space mode (if in
9213 top-level diversion), 0 otherwise.
9215 * src/roff/troff/div.cc (no_space_mode_reg): New class.
9216 (init_div_requests): Updated.
9217 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9220 2001-05-04 Werner LEMBERG <wl@gnu.org>
9222 * src/roff/nroff/nroff.man: Improved documentation (especially
9225 2001-05-02 Werner LEMBERG <wl@gnu.org>
9227 Added `brp' request: This is \p as a request.
9229 * src/roff/troff/env.cc (environment::do_break): Add parameter
9231 (do_break_request): New function (was `break_request').
9232 (break_request): Calls `do_break_request'.
9233 (break_spread_request): New; calls `do_break_request'.
9234 (init_env_requests): Updated.
9235 * src/roff/troff/env.h: Updated.
9236 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9238 * REVISION: Increased to 1.
9239 * win32-diffs: Updated.
9241 2001-05-01 Werner LEMBERG <wl@gnu.org>
9243 * tmac/an-old.tmac: Fix minor compatibility mode issue.
9244 * tmac/troffrc-end: Make it really work in compatibility mode.
9246 2001-04-27 Werner LEMBERG <wl@gnu.org>
9248 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
9251 2001-04-22 Werner LEMBERG <wl@gnu.org>
9253 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
9254 latest versions from glibc CVS archive.
9256 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
9257 <c.zeelenberg@hccnet.nl>.
9259 2001-04-21 Werner LEMBERG <wl@gnu.org>
9261 * configure.in: Move check for mkstemp() to...
9262 * aclocal.m4 (GROFF_MKSTEMP): This new function.
9263 * configure: Regenerated.
9265 * src/include/groff-getopt.h: Don't use variable names in
9268 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
9269 * src/devices/grohtml/Makefile.sub,
9270 src/devices/grohtml/post-html.cc: Updated.
9272 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
9274 * configure.in: Add special check for mkstemp().
9275 * src/libs/libgroff/tmpfile.cc: Use it.
9276 * src/utils/indxbib/indxbib.cc: Ditto.
9277 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
9278 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
9281 2001-04-20 Bruce Lilly <blilly@erols.com>
9283 `Version_string' as C++ object was not visible to linker from C
9285 Add `const' to `Version_string'.
9287 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
9288 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
9289 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
9290 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
9291 (scanArguments), src/preproc/refer/refer.cc (main),
9292 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
9293 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
9294 (main), src/devices/grohtml/post-html.cc (main),
9295 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
9296 (main), src/utils/hpftodit/hpftodit.cc (main),
9297 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
9298 (main), src/utils/lkbib/lkbib.cc (main),
9299 src/utils/addftinfo/addftinfo.cc (main): Implement it.
9301 * src/roff/groff/pipeline.c: Add _UWIN.
9302 * src/include/nonposix.h: Ditto.
9304 2001-04-20 Werner LEMBERG <wl@gnu.org>
9306 * src/include/lib.h: Use HAVE_STRERROR.
9307 * src/roff/groff/pipeline.c: Ditto.
9308 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
9309 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
9310 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
9311 * win32-diffs: Updated.
9312 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
9314 2001-04-19 Werner LEMBERG <wl@gnu.org>
9316 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
9317 instead of hardwired `"troff"'.
9318 (char_buffer::read_file): Remove unused variables.
9319 (char_buffer::write_file_troff): Ditto.
9320 (char_buffer::write_file_html): Ditto.
9321 (generateImages): Ditto.
9323 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
9325 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
9327 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
9328 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
9329 index_search_item::search1): Ditto.
9330 * src/roff/troff/node.h (width_list): Reorder members.
9331 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
9332 (lookup_warning): Ditto.
9333 (prepend_string): Commented out.
9334 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
9335 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
9336 * src/preproc/tbl/main.cc (process_format): Ditto.
9337 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
9339 * src/preproc/pic/pic.cc: Updated.
9340 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
9341 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
9342 * src/preproc/refer/command.cc (execute_command): Ditto.
9343 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
9344 * src/preproc/refer/token.cc (lookup_token): Ditto.
9345 * src/preproc/soelim/soelim.cc: Ditto.
9346 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
9347 (isHexDigit): Commented out.
9348 (pushBackBuffer::isString): Remove unused variable.
9349 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
9351 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
9352 resource_manager::read_resource_arg, read_one_of, parse_extensions):
9354 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
9355 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
9356 lookup_paper_size): Ditto.
9357 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
9358 (text_glob, element_list): Reorder members.
9359 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
9361 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
9362 return value to `void'.
9363 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
9365 * src/devices/grohtml/html.h (simple_output::check_newline,
9366 simple_output::space_or_newline, simple_output::enable_newlines):
9368 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
9370 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
9371 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
9372 output_ligatures, output_charset, read_map): Ditto.
9373 * src/utils/lookbib/lookbib.cc (main): Ditto.
9374 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
9375 (do_file): Fix typo (`=' -> `==').
9376 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
9377 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
9379 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
9381 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
9382 Fix usage of GROFF_BIN_PATH.
9383 * src/roff/nroff/nroff.man: Updated.
9385 2001-04-18 Werner LEMBERG <wl@gnu.org>
9387 * NEWS: Fixing typos.
9390 Version 1.17 released
9391 =====================
9393 2001-04-17 Werner LEMBERG <wl@gnu.org>
9395 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9396 directory, not in $(srcdir).
9398 2001-04-16 Werner LEMBERG <wl@gnu.org>
9400 * doc/groff.texinfo: More info on conditionals.
9402 2001-04-15 Werner LEMBERG <wl@gnu.org>
9404 * doc/groff.texinfo: Added some info about groff internals.
9406 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9407 about missing special character only if the name is non-null.
9409 2001-04-14 Werner LEMBERG <wl@gnu.org>
9411 Removing the grohtml-old device driver which is now obsolete.
9413 * src/devices/grohtml-old/*: Removed.
9414 * font/devhtml-old/*: Removed.
9415 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9417 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9418 * test-groff (PATH): Updated.
9419 * tmac/Makefile.sub (NORMALFILES): Updated.
9420 * tmac/an-old.tmac: Remove special code for html-old device.
9421 Replace `html-or-html-old' register with `an-html'.
9422 * tmac/eqnrc: Updated.
9423 * tmac/html-old.tmac: Removed.
9424 * tmac/troffrc, tmac/troffrc-end: Updated.
9425 * tmac/www.tmac: Remove special code for html-old device.
9426 Replace `html-or-html-old' register with `www-html'.
9428 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9429 src/libs/libgroff/htmlindicate.cc (graphic_end),
9430 include/htmlindicate.h, src/preproc/grn/*.cc,
9431 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9432 single argument for consistency with rest of source code.
9434 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9436 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
9438 * src/roff/troff/troff.man: Fixing typos.
9440 2001-04-13 Werner LEMBERG <wl@gnu.org>
9442 * doc/pic.ms: Fixing many font switches.
9443 * doc/groff.texinfo: Fixes, additions.
9444 * MORE.STUFF: Updated.
9446 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
9448 * src/devices/grohtml/grohtml.man: Updated manual page regarding
9450 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9452 (removeTempFiles): New function to tidy up temporary files.
9453 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9454 Many fixes to do with the new inline suppress node and image regions
9456 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9457 (generate_img_src): New function.
9458 (html_printer::do_auto_image): Utilizes it.
9459 (do_heading, do_title): Include inline images within their contents.
9460 (html_printer::begin_page): Tidied up comments that are issued to
9461 the html output file.
9462 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9464 (text_glob::is_br): New method used by do_heading.
9465 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9466 equivalent diversion.
9467 * src/include/html-strings.h: Altered image tags to reflect the
9469 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9471 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9472 it is already inside a pic image. Only emit tags if the argument
9473 `-Tps:html' is present.
9474 * src/preproc/tbl/main.cc: Changes to reflect additional
9475 `html_end_suppress' parameter.
9476 * src/roff/troff/env.cc: Only emit eol tag if a node has been
9477 emitted since the last eol tag was written.
9478 * src/roff/troff/env.h: New boolean `emitted_node'.
9479 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9480 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
9481 * src/roff/troff/node.cc (check_charinfo): New method.
9482 (troff_output_file::determine_line_limits): Alterations to limit
9484 * tmac/www.tmac: Changes to reflect new suppress nodes.
9486 2001-04-12 Bruno Haible <haible@clisp.cons.org>
9488 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9489 Escape the html_glyph in the buffer.
9490 (str_translate_to_html): Output the unescaped escaped_char.
9491 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9492 `frame=void', not `frame=none'. Add `border=0'.
9494 2001-04-12 Werner LEMBERG <wl@gnu.org>
9496 * PROBLEMS: Add some words on how to avoid wrapper macros.
9498 2001-04-11 Blake McBride <blake@florida-software.com>
9500 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9502 2001-04-11 Werner LEMBERG <wl@gnu.org>
9504 * font/devlbp/Makefile.sub (CLEANADD): Set it.
9505 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9506 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9507 * Makefile.sub (DISTCLEANFILES): Here.
9509 * libs/libgroff/new.cc: Include `nonposix.h'.
9510 * win32-diffs: Updated.
9512 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
9514 Added skeleton macro for defunct macros.
9516 Updated documentation.
9518 When inside displays, an empty input line warning should be
9519 suppressed. If another macro call is put inside a display,
9520 all subsequent empty lines found in that display caused a
9521 warning to be emitted.
9523 * tmac/doc.tmac (doc-defunct-macro): New macro.
9524 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9525 (doc-restore-global-vars): Fixed typo.
9526 (doc-empty-line): Check the `doc-display-depth' register to
9527 determine whether we are inside display or not.
9529 * tmac/doc-common: Removed `Or' and `Sf' registers.
9530 Moved obsolete `Ds' macro to doc.tmac.
9532 * tmac/groff_mdoc.man: Bump document date.
9533 Document `.Vt' under ``Variable Types''.
9534 Removed documentation for obsolete `.Or' macro.
9536 2001-04-10 Werner LEMBERG <wl@gnu.org>
9539 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9541 2001-04-10 Bruno Haible <haible@clisp.cons.org>
9543 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9544 (usage): Add stream argument. Don't exit.
9545 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9546 Write --version output to stdout, not stderr.
9547 (usage): Add stream argument. Don't exit.
9548 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9549 (usage): Add stream argument. Don't exit.
9550 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9552 (usage): Add stream argument. Don't exit.
9553 (main): Write --help output to stdout, not stderr.
9554 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9555 (usage): Add stream argument. Don't exit.
9556 * src/devices/grops/ps.cc (main): Accept --help and --version.
9557 (usage): Add stream argument. Don't exit.
9558 * src/devices/grotty/tty.cc (main): Accept --help and --version.
9559 (usage): Add stream argument. Don't exit.
9560 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9561 (main): Accept --help and --version.
9562 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9563 (main): Accept --help and --version.
9564 * src/preproc/html/pre-html.cc (usage): Add stream argument.
9565 (scanArguments): Accept --help and --version.
9566 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9567 (main): Accept --help and --version.
9568 * src/preproc/refer/refer.cc (main): Accept --help and --version.
9569 (usage): Add stream argument. Don't exit.
9570 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9572 (main): Accept --help and --version.
9573 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9574 (main): Accept --help and --version.
9575 * src/roff/groff/groff.cc (main): Accept --help and --version.
9576 (synopsis): Add stream argument.
9577 (help): Write --help output to stdout, not stderr.
9578 (usage): Add stream argument. Don't exit.
9579 * src/roff/grog/grog.pl: Accept --help and --version.
9581 * src/roff/grog/grog.sh: Accept --help and --version.
9582 * src/roff/nroff/nroff.sh: Accept --help and --version.
9583 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9584 (usage): Add stream argument. Don't exit.
9585 (main): Accept --help and --version.
9586 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9587 (usage): New function with stream argument, doesn't exit.
9588 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9589 (usage): New function with stream argument, doesn't exit.
9590 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9591 (usage): Add stream argument. Don't exit.
9592 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9593 (main): Accept --help and --version.
9594 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9596 (main): Accept --help and --version.
9597 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9598 (main): Accept --help and --version.
9599 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9600 (usage): Add stream argument. Don't exit.
9602 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
9604 Fix indentation in SYNOPSIS.
9606 Updated to include changes of latest BSD mdoc version (basically,
9607 the only change is that `.Fn' and `.Fc' put a final semicolon after
9608 a function declaration in the SYNOPSIS section).
9610 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9611 (doc-in-synopsis-section): New variable. Updated all related
9613 (doc-indent-synopsis-active): New register.
9614 (Nd, Fn, Fo): Use it.
9615 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9616 `.Cd' with long argument line produces indented wrapped lines.
9617 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9618 undesirable line break to be output.
9619 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9621 (Fn, Fc): Add final `;' to output.
9622 (doc-save-global-vars, doc-restore-global-vars): Updated.
9623 * tmac/doc-common: Remove `Ex' register.
9625 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9628 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9630 * tmac/doc.tmac (Cd): Simplify code.
9631 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9633 2001-04-06 Werner LEMBERG <wl@gnu.org>
9635 Implement continuous underlining for nroff mode. To do that, a new
9636 request in the ditroff language has been added: `x u N' (N is 0
9639 \X and \Y are now transparent to end-of-sentence recognition.
9641 * src/include/printer.h (printer): Add `type' parameter to `special'
9643 * src/libs/libdriver/printer.cc (printer::special): Updated.
9644 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9646 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9647 specials of type `p'.
9648 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9649 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9650 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9651 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9652 (glyph::order): New method.
9653 (tty_printer::add_char): Use it.
9654 (tty_printer::special): New method.
9655 (tty_printer::end_page): Implement it.
9657 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9658 * src/roff/troff/node.cc (special_node::special_node): Add parameter
9659 to set `no_init_string'.
9660 (special_node::tprint_start): Use it.
9661 (special_node::same, special_node::copy): Updated.
9662 (special_node::ends_sentence): New method.
9663 (troff_output_file::start_special): Add parameter to include
9664 inititialization of special conditionally.
9666 * src/roff/troff/env.h (environment): New member `underline_spaces'.
9667 * src/roff/troff/env.cc (do_underline_special): New function.
9668 (environment::set_font): Use it.
9669 (do_underline): Use it. This was `underline()'.
9670 (underline): Call `do_underline()'.
9671 (continuous_underline): New function which calls `do_underline()'.
9672 (environment::newline): Use `do_underline_special()'.
9673 (init_env_requests): Updated.
9675 * NEWS, man/troff_out.man: Updated.
9677 2001-04-06 Bruno Haible <haible@clisp.cons.org>
9679 * font/devutf8/R.proto: Fix code of 'shc'.
9681 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9683 Many fixes. Diag lists can now be nested also; additionally,
9684 `-compact' and `-offset' are supported.
9686 * tmac/doc.tmac (doc-have-indent): Replaced with ...
9687 (doc-list-have-indent-stackXXX): A new register stack.
9688 (doc-have-diag-list): Removed.
9689 (Bl): Use `doc-list-have-indent-stackXXX'.
9691 (doc-diag-list): Use `doc-compact-list-stackXXX'.
9692 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9693 (doc-set-vertical-and-indent): Ditto.
9694 (doc-next-list-depth): Removed.
9695 (doc-increment-list-stack): Updated.
9696 (doc-decrement-list-stack): Use `doc-list-depth' instead of
9697 `doc-next-list-depth'.
9698 (doc-end-list, doc-end-column-list): Don't use
9699 `doc-increment-list-stack'.
9700 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9701 (doc-save-global-vars, doc-restore-global-vars): Updated.
9702 * tmac/doc-common: Updated.
9703 * tmac/groff_mdoc.man: Updated.
9706 2001-04-02 Werner LEMBERG <wl@gnu.org>
9708 * src/devices/grotty/grotty.man: Fix grammatical error.
9710 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
9712 Remove .Ld from mdoc package; replace it with special handling of
9715 * tmac/doc-common: Remove `Ld' register.
9716 Uncomment `doc-volume-ds-*' strings.
9717 Remove `doc-operating-system-default'.
9719 * tmac/doc-syms (Ld): Removed.
9720 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9724 * tmac/groff_mdoc.man: Many fixes and updates.
9726 2001-03-29 Werner LEMBERG <wl@gnu.org>
9728 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
9729 Bond <tkb@tkb.mpl.com>.
9730 * tmac/www.tmac: Save compatibility mode.
9732 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
9734 * tmac/groff_mdoc.man: Many fixes.
9736 2001-03-28 Werner LEMBERG <wl@gnu.org>
9738 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9741 2001-03-27 Werner LEMBERG <wl@gnu.org>
9743 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9744 diversion. This fixes overlong tags.
9746 2001-03-26 Werner LEMBERG <wl@gnu.org>
9748 * doc/groff.texinfo: Fixed and improved documentation of fonts.
9749 * tmac/doc-syms: Fix error messages.
9750 * tmac/an-old.tmac: Remove incorrect double backslashes.
9752 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
9754 * tmac/Makefile.sub: Strip mdoc.local also
9755 * tmac/strip.sed: Fixed.
9757 2001-03-24 Werner LEMBERG <wl@gnu.org>
9759 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9760 selecting the font size.
9761 * tmac/groff_mdoc.man, NEWS: Document it.
9763 2001-03-23 Werner LEMBERG <wl@gnu.org>
9765 * src/roff/troff/div.cc (save_vertical_space): Add default argument
9767 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9768 argument to restore previous font family.
9769 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9771 * doc/groff.texinfo: More fixes and additions (mainly for font
9772 manipulating commands).
9774 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9775 * tmac/groff_mdoc.man: This. The quick reference has been removed.
9776 * tmac/Makefile.sub, NEWS: Updated.
9778 2001-03-23 Werner LEMBERG <wl@gnu.org>
9780 Replaced mdoc implementation. The new version is `state of the
9781 art', using almost all new features of groff 1.17 -- it won't run
9782 with older versions.
9784 * tmac/doc.tmac: Completely rewritten.
9785 * tmac/doc-common: Ditto.
9786 * tmac/doc-nroff: Ditto.
9787 * tmac/doc-ditroff: Ditto.
9788 * tmac/doc-syms: Ditto.
9789 * tmac/mdoc.local: New file.
9790 * tmac/groff_mdoc.samples.man: Replaced with ...
9791 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9792 * tmac/strip.sed: Updated.
9793 * tmac/Makefile.sub: Updated.
9796 * tmac/groff_man.man: Add `man.local' to the FILES section.
9798 2001-03-22 Werner LEMBERG <wl@gnu.org>
9800 * doc/groff.texinfo: Added many @noindent.
9801 Replaced @end_Example -> @endExample.
9802 Added info whether registers are r/o.
9803 Many other additions and fixes.
9805 2001-03-21 Werner LEMBERG <wl@gnu.org>
9807 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9808 in makeinfo of texinfo 4.0) to be used in @Def* macros.
9809 Improved @Def* macros: Now the exact syntax of request, register,
9810 and escapes is shown.
9811 Added macros for parentheses and brackets to be used in @Def*.
9812 Many fixes and improvements of the documentation.
9814 2001-03-20 Werner LEMBERG <wl@gnu.org>
9816 * doc/groff.texinfo: Added new index: `st' (for strings).
9817 Added macros @Defstr(x).
9818 Added macro @Example (adding @group).
9819 Other minor improvements.
9821 2001-03-19 Werner LEMBERG <wl@gnu.org>
9823 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9824 `rq' for requests. `fn' is no longer used.
9825 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9828 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9829 number with name of man page.
9831 2001-03-19 Larry Kollar <kollar@alltel.net>
9833 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
9836 2001-03-19 Werner LEMBERG <wl@gnu.org>
9838 * man/groff_font.man: Document `prepro', `postpro', and `print'.
9839 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9840 * src/devices/grohtml/grohtml.man: Fixing typos.
9842 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
9844 * tmac/s.tmac (@IP): Pass `.ip' html tag.
9845 * tmac/groff_mwww.man: Remove .LINE macro
9846 * tmac/www.tmac (LINE): Add `.ti'.
9848 * src/devices/grohtml/post-html.cc (html_printer): New member
9850 (html_printer::emit_raw): Use it.
9851 (html_printer::do_linelength): Ditto.
9852 (html_printer::do_pageoffset): Ditto.
9853 (html_printer::do_indentation): Ditto.
9854 (html_printer::do_tempindent): Ditto.
9855 (html_printer::do_break): Ditto.
9856 (html_printer::begin_page): Ditto.
9857 (html_printer::do_indentedparagraph): New function.
9858 (html_printer::troff_tag): Handle `.ip'.
9859 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9860 Add `<td width=...>' handling.
9861 (html_text::do_table): Add parameter.
9862 (html_text::do_indent): Updated.
9863 * src/devices/groohtml/html-text.h: Updated.
9865 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
9867 Introduced simple html tables to implement indentation.
9869 * src/devices/grohtml/html.h (word, word_list): New structures.
9870 (simple_output): Use it.
9871 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9872 (html_printer): Improve indentation handling.
9873 (html_printer::emit_raw): Set `in_table' element. Handle
9875 (html_printer::write_header): Move conditional downwards.
9876 Don't allow whitespace in tags.
9877 (html_printer::do_linelength): Handle line length and indentation
9879 (html_printer::do_pageoffset): Handle indentation conditionally.
9880 (html_printer::do_indentation): Ditto.
9881 (html_printer::do_tempindent): New function member.
9882 (html_printer::do_fill): Take care of indentation.
9883 (html_printer::do_flush): Finish table.
9884 (html_printer::do_links): Ditto.
9885 (html_printer::do_break): New function for handling `.br' and `.ti'.
9886 (html_printer::troff_tag): Use it.
9888 (html_printer::flush_globs): Fix.
9889 (html_printer::flush_page): Finish table.
9890 (html_printer::html_printer): Fix error message. Set up
9892 (html_printer::add_to_sbuf): Remove special handling of character
9894 (to_unicode): Remove `stop()'.
9895 (html_printer::write_title): Cleanup.
9896 (html_printer::begin_page): Use `put_string()'. Handle indentation.
9897 (html_printer::~html_printer): Flush text and end the line.
9899 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9900 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9902 (html_text::start_tag): Disable newlines.
9903 (html_text::table_is_void): New function.
9904 (html_text::issue_table_begin): Ditto.
9905 (html_text::issue_table_end): Ditto.
9906 (html_text::push_para): Better table handling.
9907 (html_text::do_indent): New function.
9908 (html_text::do_table): Ditto.
9909 (html_text::done_table): Ditto.
9910 (html_text::do_tt): Handle PRE_TAG.
9911 (html_text::is_in_table): New function.
9912 (html_text::check_emit_text): Handle tables.
9913 (html_text::do_emittext): Use `nl()'.
9914 (html_text::do_para): Handle table.
9915 (html_text::remove_def): New function.
9916 * src/devices/grohtml/output.cc (word, word_list): Implement
9918 (simple_output::end_line): Flush last word.
9919 (simple_output::simple_comment): Ditto.
9920 (simple_output::begin_comment): Recoded.
9921 (simple_output::end_comment): Ditto.
9922 (simple_output::comment_arg): Removed.
9923 (simple_output::check_newline): Improve test and flush last word.
9924 (simple_output::space_or_newline): Improved.
9925 (simple_output::write_newline): Replaced with...
9926 (simple_output::nl): This.
9927 (simple_output::put_raw_char): Flush last word.
9928 (simple_output::check_space): Removed.
9929 (simple_output::put_translated_string): Ditto.
9930 (simple_output::put_string): Simplified.
9931 (simple_output::put_number): Updated.
9932 (simple_output::put_float): Ditto.
9933 (simple_output::put_symbol): Removed.
9934 (simple_output::enable_newlines): Add `check_newline()'.
9935 (simple_output::flush_last_word): New function.
9937 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9938 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9940 * tmac/s.tmac (@PP, @IP): Add html conditional code.
9941 * tmac/an-old.tmac (TP): Ditto.
9943 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
9945 * mdate.sh: Make it POSIX compliant.
9947 2001-03-09 Werner LEMBERG <wl@gnu.org>
9949 Added the `return' request to end a macro immediately. It simply
9950 pops iterators from the input stack until a macro iterator is found.
9952 * src/roff/troff/input.cc (input_iterator::is_macro,
9953 macro_iterator::is_macro): New member.
9954 (input_return_boundary): New class to signal an immediate return
9956 (input_stack::add_return_boundary, input_stack::is_return_boundary):
9958 (input_stack::clear): Use it.
9959 (input_stack::pop_macro): New function.
9960 (while_request): Use `is_return_boundary()'.
9961 (return_macro_request): New function.
9962 (init_input_requests): Use it.
9964 * src/roff/troff/TODO: Updated.
9965 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9967 2001-03-08 Werner LEMBERG <wl@gnu.org>
9969 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9972 2001-03-07 Werner LEMBERG <wl@gnu.org>
9974 Make `\B' more rigid.
9976 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9978 (get_number_rigidly): New function.
9979 * src/roff/troff/input.cc (do_expr_test): Use it.
9980 * src/roff/troff/token.h: Updated.
9982 * src/roff/troff/request.h: Fix typo (init_html_request ->
9983 init_markup_request).
9985 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
9987 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
9988 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9989 are now `.begin', `.end', `.image'.
9991 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9992 (html_printer::add_to_sbuf): Changing type of `code' parameter.
9993 Use add_char_to_sbuf().
9994 (to_unicode): New function.
9995 (char_translate_to_html): Changing type of `ch' parameter.
9997 (html_printer::~html_printer): Comment out doctype string.
9998 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9999 instead of `.html-end'.
10000 (write_start_image): Use `.begin' and `.image' instead of
10001 `.html-begin' and `.html-image'.
10002 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
10003 (html_begin): Renamed to ...
10005 (html_end): Renamed to ...
10007 (html_image): Renamed to ...
10009 (init_html_requests): Renamed to ...
10010 (init_markup_requests): This.
10011 * tmac/www.tmac: Updated.
10013 2001-02-28 Bram <bram@avontuur.org>
10015 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
10018 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
10020 * doc/meref.me: Fixing some typos.
10022 2001-02-16 Werner LEMBERG <wl@gnu.org>
10024 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
10025 method. Return `HYPHEN_MIDDLE' if it was `\:'.
10026 * src/roff/troff/node.h: Updated.
10028 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
10030 * tmac/groff_tmac.man: Fix typo.
10032 2001-02-16 Werner LEMBERG <wl@gnu.org>
10034 Fixing a bug which prevented proper end-of-sentence recognition
10035 between an `unformatted' box and the following text. As a
10036 consequence, vertical line distances are no longer preserved in
10037 boxes after a call to `.unformat' -- because boxes aren't
10038 line-oriented (contrary to diversions), this doesn't make sense
10041 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
10043 (vertical_size_node::set_unformat_flag): New method.
10044 * src/roff/troff/node.hh: Updated.
10045 * src/roff/troff/input.cc (word_space_node::reread,
10046 hmotion_node::reread): Reset `unformat' flag after usage.
10047 (unformat_macro): Append only if `set_unformat_flag()' returns
10049 * src/roff/troff/troff.man: Updated.
10051 2001-02-15 Werner LEMBERG <wl@gnu.org>
10053 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
10054 documentation of `asciify' and `unformat' requests.
10056 2001-02-13 Werner LEMBERG <wl@gnu.org>
10058 Redesigned the `unformat' request. It is no longer connected with
10059 `asciify' but rather uses new `reread()' methods if the `unformat'
10060 flag is set. Additionally, the handling of space characters after
10061 unformatting has been fixed so that they retain their width.
10063 * src/roff/troff/node.h (width_list): New structure to store
10064 original widths of spaces.
10065 (node): Added `unformat' member.
10066 Replaced `num_spaces' variable with `orig_width' list.
10067 * src/roff/troff/node.cc (*node::asciify,
10068 asciify_reverse_node_list): Removed `unformat_only' flag and related
10070 (word_space_node::asciify, word_space_node::word_space_node): Use
10072 (word_space_node::~word_space_node): New destructor.
10073 (word_space_node::copy): Updated to handle `orig_width'.
10074 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
10075 (*node::merge_space): Update `orig_width' list if necessary.
10076 (*node::set_unformat_flag): New methods to set the `unformat' flag.
10077 * src/roff/troff/enc.cc (environment::space_newline): Use
10079 (environment::space): Added method to handle space width and
10080 sentence space width as parameters. Use `width_list'.
10081 (environment::make_tab_node): Updated.
10082 * src/roff/troff/env.h: Updated.
10083 * src/roff/troff/input.cc (word_space_node::reread,
10084 unbreakable_space_node::reread, hmotion_node::reread): New methods
10085 to handle nodes specially if `unformat' flag is set.
10086 (do_asciify_macro): Renamed back to ...
10087 (asciify_macro): This.
10088 (unformat_macro): New implementation to simply set the `unformat'
10091 * MORE.STUFF: Added more info about deroff.
10093 2001-02-08 Werner LEMBERG <wl@gnu.org>
10095 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
10096 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
10097 and `add_self()' methods to avoid hyphenation. For example, the
10098 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
10099 soft hyphen after `foo'. Now the hyphen list is correctly
10100 `foo<ignore><ignore>bar'.
10102 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
10104 * tmac/groff_tmac.man: Fix `BIR' macro.
10106 2001-02-04 Werner LEMBERG <wl@gnu.org>
10108 A new escape sequence `\:', inserting a zero-width break point.
10110 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
10111 * src/roff/troff/input.cc (get_copy, token::next, asciify):
10113 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
10115 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
10116 and `asciify()' methods.
10117 * src/roff/troff/node.cc (space_node::space_node): Updated.
10118 (space_node::asciify): Handle `was_escape_colon'.
10119 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10121 Handle `\~' similar to other comparable requests.
10123 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
10125 (token::next): Move creation of an unbreakable_space_node to...
10126 (token::add_to_node_list): Here.
10128 Fix a bug which sometimes prevented hyphenation of words connected
10129 with `\~' or `\ ' (and other escape sequences handled as
10130 TOKEN_NODE). This also fixes a hyphenation problem with boxes
10131 (after a call to the `unformat' request).
10133 * src/roff/troff/env.h (environment::possibly_break_line,
10134 environment::hyphenate_line): Introducing `start_here' parameter.
10135 * src/roff/troff/env.cc (environment::space_newline,
10136 environment::space): Use it.
10137 (environment::possibly_break_line, environment::hyphenate_line):
10139 * src/roff/troff/input.cc (process_input_stack): Use it.
10140 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
10141 space_char_hmotion_node, overstrike_node): Add
10142 `get_hyphenation_type()' method.
10143 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
10144 if `unformat_only' is active.
10146 2001-01-30 Werner LEMBERG <wl@gnu.org>
10148 Implemented new read-only number register `.linetabs' which
10149 returns 1 if in line-tabs mode, 0 otherwise.
10151 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
10152 * src/roff/troff/env.cc (get_line_tabs): New function.
10153 (init_env_requests): Use it.
10154 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10156 * VERSION, REVISION: Changing to 1.17.0.
10158 2001-01-28 Werner LEMBERG <wl@gnu.org>
10160 Fixed a bug which prevented hyphenation of words which are finished
10163 * src/roff/troff/token.h (token): Add enum type
10164 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
10165 * src/roff/troff/input.cc (token::next, token::description,
10166 get_line_arg, token::add_to_node_list, token::process): Use it.
10168 2001-01-27 Werner LEMBERG <wl@gnu.org>
10170 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
10171 * src/roff/troff/div.cc (do_divert): Use it.
10173 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
10175 2001-01-25 Werner LEMBERG <wl@gnu.org>
10177 Adding the `linetabs' request. If set, tab distances are not
10178 computed relative to the input line but relative to the output line.
10180 * src/roff/troff/env.h (environment): New member `line_tabs'.
10181 * src/roff/troff/env.cc (line_tabs_request): Implement request.
10182 (environment::environment, environment::copy): Updated.
10183 (environment::distance_to_next_tab): Use `line_tabs'.
10184 (init_env_requests): Register request.
10185 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
10188 2001-01-24 Werner LEMBERG <wl@gnu.org>
10190 Introducing a new read-only register `.int' which is set to a
10191 positive value if the last output line is interrupted (i.e., if it
10194 * src/roff/troff/env.cc (init_env_requests): Add it.
10195 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10197 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
10199 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
10200 * src/preproc/html/pre-html.cc (findPrefix): New function which
10201 generates the troff executable name via the system prefix.
10202 * src/preproc/eqn/main.cc: Modified warning message.
10204 2001-01-23 Werner LEMBERG <wl@gnu.org>
10206 troff's `box' and `boxa' requests didn't preserve temporary
10209 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
10210 `saved_target_text_length' members.
10211 * src/roff/troff/div.cc (do_divert): Use them.
10213 Tabs (but not yet leaders and fields) are now handled correctly by
10216 * node.h (hmotion_node): Add field `was_tab'.
10217 * env.cc (environment::make_tab_node): Set it.
10218 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
10220 Added new request `unformat' which will, contrary to `asciify',
10221 preserve font information after unformatting (i.e., only nodes
10222 dealing with horizontal space are converted back to input
10225 * input.cc (asciify_macro): Renamed to ...
10226 (do_asciify_macro): this, having a new parameter `unformat_only'.
10227 (asciify_macro, unformat_macro): New; using do_asciify_macro.
10228 (init_input_requests): Added `unformat'.
10229 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
10230 parameter to control asciification process.
10231 * node.h (*_node::asciify): Ditto.
10232 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10234 2001-01-20 Werner LEMBERG <wl@gnu.org>
10236 * doc/groff.texinfo: Minor improvement of `.in' documentation.
10238 2001-01-18 Werner LEMBERG <wl@gnu.org>
10240 * tmac/ps.tmac: Remove call of psold.tmac.
10241 * tmac/psold.tmac: Comment updated.
10242 * tmac/psnew.tmac: Removed since no longer needed.
10243 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
10245 * font/devutf8/R.proto: Adding `shc' glyph.
10246 * font/devutf8/NOTES: Updated.
10248 * test-groff: Updated.
10250 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
10252 First cut of the new html device driver. Changes to pre-html and
10253 the new grohtml are too numerous to be documented here.
10255 Stuff related to `html' has been renamed to `html-old' and `html2'
10256 stuff has been renamed to `html' (including directories). The new
10257 html device driver is therefore invoked as `-Thtml'.
10259 Added new `\O' escape to suppress output (needed by html driver).
10261 Added functions and code to pass info about input-level commands
10262 (`.in', `.fl', etc.) to html driver.
10264 Three new functions (.html-begin, .html-end, and .html-image) for
10265 better html handling: `html-begin' will execute the remaining line
10266 if at the outermost nesting level, increasing an internal counter.
10267 `html-end' does the same but decreases the internal counter.
10268 `html_image' puts its arguments into a special node (suppress_node)
10269 to define an image region.
10271 The `output' request has been removed.
10273 * tmac/html-tags.tmac: Removed.
10274 * tmac/arkup.tmac: Updated and renamed to ...
10275 * tmac/www.tmac: New file.
10276 * tmac/markup.tmac Updated and renamed to ...
10277 * tmac/mwww.tmac: New file.
10278 * tmac/Makefile.sub: Updated.
10279 * tmac/an-old.tmac: Updated.
10280 * tmac/eqnrc: Updated.
10281 * tmac/groff_man.man
10282 * tmac/groff_markup.man: Updated and renamed to ...
10283 * tmac/groff_mwww.man: New file.
10284 * tmac/groff_tmac.man: Updated.
10285 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
10286 * tmac/html.tmac: Updated and renamed from html2.tmac.
10287 * tmac/pspic.tmac: Updated html support.
10288 * tmac/s.tmac: Added html output support.
10289 * tmac/troffrc, tmac/troffrc-end: Updated.
10291 * Makefile.in, doc/Makefile: Updated.
10292 * doc/groff.texinfo: Added info about new `\O' escape.
10293 * doc/homepage.ms: Use `MAILTO' macro.
10295 * font/devhtml/DESC.proto: Add `C' font.
10296 * font/devhtml/Makefile.sub: Updated.
10297 * font/devhtml/R.proto: Minor fixes.
10298 * font/devhtml-old/Makefile.sub: Updated.
10300 * src/devices/grohtml-old/Makefile.sub: Updated.
10302 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
10304 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
10305 graphic_start): Add `inline' parameter. Update.
10306 (html_end_suppress, graphic_end): Update.
10308 * src/include/html-strings.h: New file.
10309 * src/include/htmlindicate.h: Comments updated.
10310 * src/include/printer.h: Updated.
10312 * src/preproc/eqn/main.cc (do_file, main): Updated.
10313 * src/preproc/pic/troff.cc (troff_output::start_picture,
10314 troff_output::finish_picture): Updated.
10315 * src/preproc/tbl/main.cc (process_input_file): Updated.
10317 * src/roff/groff/groff.cc (main): Updated.
10318 Pass device arguments to predrivers also.
10319 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
10320 * src/roff/troff/env.h (environment): Updated.
10321 New elements `need_eol' and `ignore_next_eol' (for html output).
10322 * src/roff/troff/env.cc (environment::environment): Add initializers
10323 for `need_eol' and `ignore_next_eol'.
10324 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
10326 (point_size, fill, no_fill, center, right_justify, line_length,
10327 indent, temporary_indent, break_request, handle_tab): Use
10329 (set_tabs): Use `add_html_tag_tabs()'.
10330 (environment::add_html_tag): Updated.
10331 (environment::do_break): Updated.
10332 * src/roff/troff/div.cc (space_request, flush_output): Use
10333 `environment::add_html_tag()'.
10334 * src/roff/troff/input.cc: Updated.
10335 New variable `html_level' to indicate nested `html-begin' requests.
10336 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
10337 (non_interpreted_char_node, token_node, non_interpreted_node): Add
10338 `force_tprint()' method.
10339 (token::next): Handle `\O'.
10340 (do_suppress): Implement it.
10341 (html_begin, html_end, html_image): New functions.
10342 (init_output_requests): Renamed to ...
10343 (init_html_requests): this.
10345 (macro::append_str, macro::append_unsigned, macro::append_int): New
10347 New variable `output_low_mark_miny' to limit minimal value of y.
10348 (reset_output_registers): Use it.
10349 (output_request): Removed.
10350 (get_output_registers): New function.
10351 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
10352 (*_node): Added `force_tprint()' if necessary.
10353 (special_node): New elements `tf' and `get_tfont()'.
10354 (suppress_node): New class.
10355 * src/roff/troff/node.cc:
10356 New global variables `image_no' and `suppress_start_page'.
10357 (real_output_file): New method `is_on()'.
10358 (troff_output_file): New method `start_special(tfont)'.
10359 (troff_output_file::really_print_line): Use `tprint' conditionally.
10360 (real_output_file::print_line): Updated.
10361 (real_output_file::on): Updated.
10362 (*_node): Added `force_tprint()'.
10363 (special_node::special_node): Initializer updated.
10364 (special_node::same, special_node::copy, special_node::tprint_start):
10366 (get_reg_int, get_reg_str): New functions.
10367 (suppress_node::*): New methods.
10368 New global variables last_position, last_image_filename;
10369 (min): New inline function.
10370 * src/roff/troff/reg.h, src/roff/troff/request.h,
10371 src/roff/troff/troff.h: Updated.
10373 2001-01-13 Werner LEMBERG <wl@gnu.org>
10375 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
10376 documentation of `asciify' request.
10378 2001-01-12 Werner LEMBERG <wl@gnu.org>
10380 * src/roff/troff/input.cc: Move definition of special characters
10381 like `ESCAPE_TILDE' to ...
10382 * src/roff/troff/input.h: New file.
10383 * src/roff/troff/Makefile.sub (HDRS): Add it.
10385 Extending the .asciify request to `unformat' space characters also.
10387 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10388 to count input space characters.
10389 Update constructors to take care of it.
10390 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10391 `ESCAPE_SPACE' instead of normal space.
10392 (word_space_node::asciify): New method.
10393 (unbreakable_space_node::asciify): New method.
10394 (word_space_node::merge_space): New method.
10395 * src/roff/troff/env.cc (environment::space_newline,
10396 environment::space): Add code to initialize `num_spaces' (using the
10397 constructor of `word_space_node').
10398 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10401 2001-01-09 Werner LEMBERG <wl@gnu.org>
10403 * man/groff_char.man: Use table header traps only conditionally.
10405 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
10407 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10409 2001-01-08 Werner LEMBERG <wl@gnu.org>
10411 Introducing the `box' and `boxa' requests which are similar to
10412 `di' resp. `da' but omitting a partially filled line (which is
10413 restored after ending the diversion).
10415 * src/roff/troff/div.h (diversion): Add elements to save partially
10417 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10418 partially filled line.
10419 (divert, divert_append): Updated.
10420 (box, box_append): New functions.
10421 (init_div_requests): Use them.
10422 * src/roff/troff/env.h (environment): do_divert() is now a friend.
10423 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10425 * doc/groff.texinfo: Fix documentation of `lf' request.
10427 2000-12-25 Werner LEMBERG <wl@gnu.org>
10429 * src/roff/troff/troff.man, NEWS: Document `writem' request.
10431 2000-12-21 Werner LEMBERG <wl@gnu.org>
10433 Ignore `ss' request if in compatibility mode.
10435 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10436 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10437 * src/roff/troff/env.cc (space_size): Use it.
10439 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10440 `ss' request in nroff mode.
10442 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10445 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
10447 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10449 2000-12-13 Werner LEMBERG <wl@gnu.org>
10451 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10452 * src/preproc/eqn/neqn.man: Small fixes and additions.
10454 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
10456 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10459 * src/preproc/eqn/neqn.man: New file.
10461 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10464 * tmac/e.tmac: Add `T&' macro.
10465 Fix `indent cannot be negative' warning.
10466 * tmac/s.tmac: Fix `indent cannot be negative' warning.
10468 2000-12-07 Werner LEMBERG <wl@gnu.org>
10470 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10472 2000-12-06 Werner LEMBERG <wl@gnu.org>
10474 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10477 * MORE.STUFF: Added info about deroff for djgpp.
10479 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10480 documentation of -rcR switch.
10482 2000-12-03 Werner LEMBERG <wl@gnu.org>
10484 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10485 if -rcR=1 (which is now the default in nroff mode), a single, very
10486 long page is created instead of multiple pages: All `ne' and `wh'
10487 requests are put into conditionals; a new macro `an-end' is added to
10488 be called with `em'.
10490 Some other minor cleanups.
10492 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10494 2000-12-02 Werner LEMBERG <wl@gnu.org>
10496 Fixing a bug which prevented hyphenation in words followed
10497 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10499 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10500 Adding possibly_break_line().
10501 * src/roff/troff/env.h (environment): Make possibly_break_line()
10504 Make `\~' usable in .tr request.
10506 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10507 (token): Add stretchable_space().
10508 * src/roff/troff/input.cc (token::next, token::delimiter,
10509 token::description, process_input_stack, do_translate,
10510 add_to_node_list, token::process): Use it.
10511 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10512 for adjusting the space.
10513 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
10514 for stretchable space.
10515 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10516 (make_node): Add code for stretchable space.
10517 * src/roff/troff/env.cc (environment::add_char): Use it.
10518 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10519 (get_copy, token::next, transparent_translate, asciify): Use it.
10521 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10522 doc/groff.texinfo: Updated.
10523 * man/groff.man: Small reorderings.
10525 2000-11-23 Werner LEMBERG <wl@gnu.org>
10528 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10530 * src/roff/troff/input.cc (main): Add `config_macro_path' and
10531 `safer_macro_path' to -M option.
10532 * src/roff/troff/troff.man: Fixes.
10534 2000-11-22 Werner LEMBERG <wl@gnu.org>
10536 Use safer path (except for config files) if -U isn't specified. Add
10537 a special macro path (without home and current directory) for config
10538 files. Add home directory to unsafe path for consistency. Don't
10539 include the home directory in the font path.
10541 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10543 * src/include/macropath.h: Add `config_macrp_path'.
10544 * src/libs/libgroff/fontfile.cc: Fix font path.
10545 * src/roff/troff/input.cc (process_startup_file): Use
10546 `config_macro_path'.
10547 (main): Select unsafe path if -U is given.
10549 * src/preproc/eqn/main.cc (main): Fixing search path for
10550 configuration file.
10551 * src/preproc/eqn/eqn.man: Updated.
10553 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10556 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10557 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10558 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10559 src/devices/grotty/grotty.man: Updated.
10561 * Makefile.in: Fix comments.
10563 2000-11-17 Werner LEMBERG <wl@gnu.org>
10565 * tmac/safer.tmac: Empty file added (again) for compatibility
10567 * tmac/Makefile.sub: Updated.
10569 2000-11-16 Werner LEMBERG <wl@gnu.org>
10571 * src/devices/grodvi/dvi.cc (main),
10572 src/devices/grohtml2/post-html.cc (main),
10573 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10574 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10575 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10576 (main), src/preproc/html2/pre-html.cc (main),
10577 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10578 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10579 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10580 (main), src/utils/hpftodit/hpftodit.cc (main),
10581 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10582 (main), src/utils/lookbib/lookbib.cc (main),
10583 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10584 (main): Use stdout for -v.
10585 * src/roff/groff/groff.cc (run_commands),
10586 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10587 to make direct printing to stdout possible.
10588 * src/roff/groff/pipeline.h: Updated.
10590 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10591 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10592 * src/utils/afmtodit/afmtodit.man: Updated.
10594 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10595 (version): New function.
10597 * src/utils/addftinfo/addftinfo.man: Updated.
10599 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10600 Fixing copyright dates.
10602 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10605 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10608 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10610 2000-11-15 Werner LEMBERG <wl@gnu.org>
10612 In all programs, make -v return immediately with exit status 0 to
10613 be compliant with the GNU standard.
10615 * src/devices/grodvi/dvi.cc (main),
10616 src/devices/grohtml2/post-html.cc (main),
10617 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10618 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10619 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10620 (main), src/preproc/html2/pre-html.cc (main),
10621 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10622 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10623 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10624 (main): Implement it.
10627 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
10628 and postprocessors to the -v option.
10630 * src/roff/grog/grog.pl: Implement -v.
10631 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10632 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10634 * src/roff/nroff/nroff.sh: Implement -v.
10635 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10636 * src/roff/nroff/nroff.man: Updated.
10638 * src/preproc/eqn/main.cc (main): Fix comment typo.
10640 * MORE.STUFF: Added info about djgpp port of grap.
10642 2000-11-14 Werner LEMBERG <wl@gnu.org>
10644 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10645 mode (or rather, implemented non-compatibility mode).
10646 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10648 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10649 replacing it -- we don't find gxditview otherwise.
10650 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10652 * src/preproc/pic/depend: Removed. Unnecessary.
10654 Implemented dummy keyword `solid' in pic for compatibility with
10657 * lex.cc (lookup_keyword): Added `solid'.
10658 * pic.y: Added SOLID with dummy rule.
10659 * pic.cc, pic_tab.h: Regenerated.
10660 * doc/pic.ms: Updated.
10662 2000-11-13 Werner LEMBERG <wl@gnu.org>
10664 For security reasons, don't use the current directory but the home
10665 directory while searching and scanning troffrc and troffrc-end.
10666 Similarly, replace the current directory with the home directory
10669 * Makefile.in (fontpath, tmacpath): Remove current directory.
10671 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10672 two parameters `add_home' and `add_current'.
10673 (search_path::~search_path, search_path::command_line_dir,
10674 search_path::open_file): Remove tests for `dirs' being zero.
10675 * src/include/searchpath.h: Adjust.
10676 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10677 `safer_macro_path'.
10678 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10680 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10681 * src/roff/troff/input.cc: Use `mac_path', initialized with
10683 (process_startup_file): Set `mac_path' to `safer_macro_path'.
10684 * src/roff/troff/env.cc: Use `mac_path'.
10686 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10688 * NEWS, man/roff.man, src/roff/troff/troff.man,
10689 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10692 2000-11-12 Werner LEMBERG <wl@gnu.org>
10694 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10696 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10697 * configure.in: Fix typo in comment.
10698 * configure: Regenerated.
10700 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10703 2000-11-08 Werner LEMBERG <wl@gnu.org>
10705 Add system tmac directory (/usr/local/lib/groff/site-tmac).
10707 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10708 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10711 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10712 * tmac/Makefile.sub (install_data): Create
10713 $(systemtmacdir) and $(localtmacdir).
10714 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10715 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10716 NEWS, doc/groff.texinfo: Updated and minor fixes.
10718 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10719 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10720 $(systemtmacdir) since the wrapper files are platform-dependent.
10722 2000-11-01 Werner LEMBERG <wl@gnu.org>
10724 * doc/groff.texinfo: Fix typo.
10726 2000-10-26 Werner LEMBERG <wl@gnu.org>
10728 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
10729 tmac.doc.old -> doc-old.tmac
10730 tmac.an.old -> an-old.tmac
10732 * tmac/tmac.*: Moved to ...
10733 * tmac/*.tmac: this.
10734 * tmac/man.local: Fix comment.
10735 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10736 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
10737 Added some `FILES' sections. More use of @...@ directives. Other
10739 * arch/djgpp/README, font/devutf8/NOTES: Updated.
10740 * doc/homepage.ms, doc/groff.texinfo: Updated.
10741 * man/groff.man, man/roff.man: Updated.
10742 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10743 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10744 src/devices/grotty/grotty.man: Updated.
10745 * src/preproc/pic/pic.man: Updated.
10746 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10747 instead of -mdoc.old.
10748 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10749 * src/roff/nroff/nroff.man: Updated.
10752 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10754 * tmac/mm.diff: Removed -- it has no use now since the mm package
10757 * tmac/*: Removed trailing spaces.
10759 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10760 the tmac subdirectory also).
10762 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10763 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10764 stuff since it is no longer needed.
10766 * README, PROBLEMS: Updated.
10768 2000-10-25 Werner LEMBERG <wl@gnu.org>
10770 Invert current behaviour: Search first FOOBAR.tmac, then
10773 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10774 (open_mac_file, macro_source): Implement it.
10775 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10776 doc/groff.texinfo, NEWS: Document it.
10778 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10779 Small documentation improvements.
10781 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10782 subdirectory also).
10784 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10786 2000-10-24 Werner LEMBERG <wl@gnu.org>
10788 Add local tmac directory (groff/site-tmac).
10790 * Makefile.in: Add $(localtmacdir).
10791 (uninstall_dirs): Add $(localtmacdir).
10792 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10793 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10794 in $(localtmacdir). Create $(localtmacdir).
10795 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10796 Updated and minor fixes.
10798 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10800 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10802 2000-10-23 Werner LEMBERG <wl@gnu.org>
10804 Move hyphen.us to tmac directory.
10806 * src/roff/troff/hyphen.us: Removed.
10807 * src/tmac/hyphen.us: Added.
10808 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10810 Change installation structure for data files from .../groff/... to
10811 .../groff/<version><revision>/... to be conform with other GNU
10814 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10815 doc/Makefile: Implement it.
10816 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10817 * configure: Updated.
10818 * arch/djgpp/README, font/devutf8/NOTES: Use it.
10819 * NEWS: Document it.
10820 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10821 @MACRODIR@ instead of hard-coded directories.
10823 2000-10-22 Werner LEMBERG <wl@gnu.org>
10825 Implement $GROFF_BIN_PATH environment variable (which defaults to
10826 $bindir) used for child programs of groff and similar wrappers.
10828 * gendefs.sh: Improve documentation.
10829 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10830 src/preproc/eqn/Makefile.sub (neqn),
10831 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10832 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10834 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10835 $GROFF_PATH__ (the latter for communication with troff).
10836 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10838 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10839 doc/groff.texinfo: Document it.
10841 * doc/groff.texinfo: Improve documentation of troff's -a option.
10843 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
10845 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10846 non-intrusive eol marker.
10847 (troff_output_file::determine_line_limits): New function.
10848 (troff_output_file::draw): Use it.
10849 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10850 output_pending_lines() instead of output_line().
10851 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10852 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10853 createImage): Small fixes.
10855 2000-10-14 Werner LEMBERG <wl@gnu.org>
10857 Replace tmac.safer with a real secure solution.
10859 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10860 system_request, pipe_output): Disable requests if in safer mode.
10861 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10862 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10863 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10864 doc/groff.texinfo, src/roff/groff/groff.man,
10865 src/roff/troff/troff.man, arch/djgpp/README: Updated.
10867 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10868 (resource_manager::output_prolog): Replace setenv() with putenv().
10870 2000-10-09 Werner LEMBERG <wl@gnu.org>
10872 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10873 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10874 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10875 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10876 compilation errors with some compilers. It seems that this code
10877 is no longer necessary -- if yes, it is easy to add some #ifdef's
10878 for that particular old-fashioned compiler.
10880 * MORE.STUFF: Added info about Meta-tbl.
10882 * doc/groff.texinfo: Added more info about `.if "..."..."'.
10884 2000-10-07 Werner LEMBERG <wl@gnu.org>
10886 Adding a new escape sequence \B'...': If the string between
10887 the delimiters is a valid numeric expression, return the character
10888 `1', and `0' otherwise. This is an analogon to \A.
10890 * src/roff/troff/input.cc (do_expr_test): Implement it.
10891 (token::next): Use it.
10892 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10894 * tmac/tmac.trace: Made independent from escape character.
10896 2000-10-06 Werner LEMBERG <wl@gnu.org>
10898 Adding a new request .dei: define indirect. The first and second
10899 parameter of .dei are taken from string registers instead directly;
10900 this very special request is needed to make tmac.trace independent
10901 from the escape character (which might even be disabled).
10903 * src/roff/troff/input.cc (do_define_macro): Implement it.
10904 (define_macro_indirect): New function.
10905 (init_input_requests): Use it.
10907 Adding two requests .ecs and .ecr: Save and restore the escape
10908 character. These two requests are needed to make tmac.trace
10909 independent from the escape character (which might even be
10912 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10914 (init_input_requests): Use it.
10916 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10918 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
10920 Adding a new option -P and new environment variable GROPS_PROLOGUE
10921 to grops, selecting a different prologue file (minor modifications
10924 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10925 src/devices/grops/ps.cc (main): Implement it.
10926 * src/devices/grops/grops.man, NEWS: Document it.
10928 2000-09-22 Werner LEMBERG <wl@gnu.org>
10930 * INSTALL: Add info about selecting paper format.
10932 2000-09-21 Werner LEMBERG <wl@gnu.org>
10934 * src/roff/troff/input.cc (main): Fixing compiler warning.
10935 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10936 strings.h from the former to the latter.
10937 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10938 stuff from the former to the latter.
10940 2000-09-11 Werner LEMBERG <wl@gnu.org>
10942 Implementing two new requests .tm1 and .tmc: The former is similar
10943 to .tm but can output leading spaces; its syntax is similar to
10944 defining a string, i.e., a `"' can be used to mark the beginning of
10945 the string to be written to stderr: `.tm1 " test'. The latter is
10946 similar to .tm1 but doesn't write out a final newline character.
10948 * src/roff/troff/input.cc (terminal1, terminal_continue,
10949 do_terminal): New functions.
10950 (init_input_requests): Use them.
10951 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10953 2000-09-09 Werner LEMBERG <wl@gnu.org>
10955 * tmac/groff_mdoc.samples.man: Small fixes.
10957 2000-09-08 Werner LEMBERG <wl@gnu.org>
10959 * tmac/groff_mdoc.man: Fixing typo.
10961 2000-09-02 Werner LEMBERG <wl@gnu.org>
10963 Implementing a .nop request which does nothing.
10965 * src/roff/troff/input.cc (nop_request): New function.
10966 (init_input_requests): Use it.
10967 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10969 2000-09-01 Werner LEMBERG <wl@gnu.org>
10971 * doc/groff.texinfo: Added some comments.
10973 2000-08-30 Werner LEMBERG <wl@gnu.org>
10975 * src/roff/troff/TODO: Updated.
10977 2000-08-25 Werner LEMBERG <wl@gnu.org>
10979 * doc/groff.texinfo: Fix comment how to compile the DVI file.
10981 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10983 * font/devps/generate/Makefile (SHELL): Define explicitly to
10984 "/bin/sh", for non-Unix platforms.
10985 (extraclean): Use a more portable "" quoting instead of a
10986 backslash (which doesn't work on DOS/Windows).
10988 * font/devlj4/generate/Makefile (extraclean): Ditto.
10990 * font/devdvi/generate/Makefile (extraclean): Ditto.
10992 2000-08-25 Werner LEMBERG <wl@gnu.org>
10994 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10995 src/roff/troff/troff.man: Document Eli's latest changes.
10997 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10999 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
11000 macro file names of the form NAME.tmac as well as tmac.NAME.
11002 2000-08-25 Werner LEMBERG <wl@gnu.org>
11004 * src/include/posix.h: Remove definition of FILENAME_MAX.
11006 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
11007 `sys_fatal' and `stop' function().
11009 * test-groff: Updated.
11011 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
11013 Added the new troff command .output <arg> to suppress output (while
11014 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
11015 registers (for passing the output dimensions to the output device).
11017 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
11019 * src/roff/troff/node.h, src/roff/troff/node.cc
11020 (troff_output_file::really_print_line,
11021 ascii_output_file::really_print_line,
11022 supress_output_file::really_print_line): Use `width' parameter.
11023 (troff_output_file::really_on, troff_output_file::really_off,
11024 output_file::on, output_file::off, real_output_file::on,
11025 real_output_file::off, real_output_file::really_on,
11026 real_output_file::really_off): New functions.
11027 (real_output_file:public output_file): New variable `output_on'.
11028 (real_output_file::begin_page, real_output_file::copy_file,
11029 real_output_file::transparent_char, real_output_file::print_line):
11031 (real_output_file::print_line): Use check_output_limits.
11032 * src/roff/troff/reg.h, src/roff/troff/request.h,
11033 src/roff/troff/input.cc (assign_registers): New function to remove
11035 (do_ps_file): Use it.
11036 (check_output_limits, reset_output_registers, output_request,
11037 init_output_requests): New functions.
11038 (init_input_requests): Updated.
11040 Added new grohtml2 device and html2 preprocessor (coding
11041 not yet finished) which will eventually replace grohtml.
11043 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
11045 * src/include/htmlindicate.h, src/include/htmlindicate
11046 (html_begin_suppress, html_end_suppress): New functions.
11047 * src/preproc/tbl/main.cc: Use it.
11048 * src/roff/groff/groff.cc: Add support for html2 device (which will
11049 automatically invoke the html2 preprocessor).
11050 * src/roff/troff/input.cc (is_html2): New variable.
11051 * src/roff/troff/troff.h, src/roff/troff/env.h,
11052 src/roff/troff/env.cc (environment::add_html_tag): New function
11054 (environment::do_break): Use it.
11055 * font/devhtml2/*: New files.
11056 * src/devices/grohtml2: New device.
11057 * src/preproc/html2: New preprocessor.
11058 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
11060 2000-08-23 Werner LEMBERG <wl@gnu.org>
11062 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
11064 2000-08-22 Werner LEMBERG <wl@gnu.org>
11066 * src/include/lib.h: Provide a fix for IRIX to not include
11069 2000-08-18 Werner LEMBERG <wl@gnu.org>
11071 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
11072 since some non-GNU sed programs can't handle null regexps.
11073 * configure, src/preproc/eqn/Makefile.sub,
11074 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
11076 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
11077 bug (string.h and strings.h are both needed according to latest
11080 * MORE.STUFF: Added info about unroff and troffcvt.
11082 2000-08-08 Werner LEMBERG <wl@gnu.org>
11084 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
11087 * tmac/tmac.man.old: Remove unused number register.
11089 * tmac.doc: Minor documentation fix.
11091 2000-08-07 Paul Eggert <eggert@twinsun.com>
11093 * src/roff/groff/pipeline.c (is_system_shell):
11094 Fix typo: "monocased_shell" no longer exists.
11096 2000-08-07 Paul Eggert <eggert@twinsun.com>
11098 Remove FILENAME_MAX limits.
11100 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
11101 that the argument length is less than FILENAME_MAX.
11102 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
11103 Use struct hack to allocate and free file name.
11104 (struct xtmpfile_list): fname is now part of the structure,
11105 not a pointer to another string.
11107 2000-08-07 Tom Schmidt <tschmidt@micron.com>
11109 * src/include/posix.h: Add a default value for FILENAME_MAX.
11111 2000-08-06 Paul Eggert <eggert@twinsun.com>
11113 Add support for new BSD-style man pages (with ".Dd" instead of
11114 ".TH"), so that "groff -man" understands both styles, even
11115 when running "groff -man" on a host whose system man page
11116 macros don't support ".Dd".
11118 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
11119 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
11120 in case the system man macros don't define Dd or TH.
11122 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
11123 * tmac/tmac.an: New one-line file.
11124 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
11126 2000-08-06 Werner LEMBERG <wl@gnu.org>
11128 * src/roff/troff/troff.man: Fixing typos.
11130 Version 1.16.1 released
11131 =======================
11133 2000-07-31 Werner LEMBERG <wl@gnu.org>
11135 Preparing release 1.16.1.
11137 * REVISION: Revision number set to 1.
11138 * MORE.STUFF: Added info about port to DOS.
11139 * NEWS, win32-diffs: Updated.
11141 * src/include/nonposix.h: Remove first line -- this file is used
11144 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
11147 2000-07-30 Werner LEMBERG <wl@gnu.org>
11149 * doc/texinfo.tex: Update to latest version.
11151 2000-06-28 Paul Eggert <eggert@twinsun.com>
11153 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
11154 commands that fail. Don't assume that "export a=b" is valid shell
11155 syntax. This is needed for Solaris 2.5.1.
11157 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
11158 comment about missing Solaris headers.
11160 * PROBLEMS: Add section about problems with Sun Make and VPATH.
11162 2000-06-25 Werner LEMBERG <wl@gnu.org>
11164 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
11167 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
11169 * win32-diffs: Updated.
11170 * README.WIN32: Added CRs to make all Windows editors happy.
11172 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
11173 src/roff/groff/pipeline.c).
11175 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
11177 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
11178 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
11180 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
11182 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
11183 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
11185 (main): Support non-Posix systems with several different styles of
11186 slash characters in file names.
11188 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
11189 (main) [SET_BINARY]: Switch stdin into binary mode.
11191 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
11192 (main): Support file names with several possible slash-type
11193 characters, as given by DIR_SEPS[] in nonposix.h.
11194 (main) [__MSDOS__]: If renaming the temporary index file fails
11195 because it has more than one dot in its trunk, replace the dot
11196 with an underscore and try again.
11197 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
11199 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
11201 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
11202 (File::File): Open the input file in binary mode. Strip CR
11203 characters from each CR-LF pair.
11204 (xbasename): Support file names with several possible slash-type
11205 characters, as given by DIR_SEPS[] in nonposix.h.
11207 * src/include/Makefile.sub (HDRS): Add nonposix.h.
11209 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
11210 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
11211 [!_POSIX_VERSION]: Define for traditional Unix systems.
11212 (real_output_file::real_output_file): Remove the MSVC-specific
11213 call to popen, use instead POPEN_WT, appropriately defined on
11214 nonposix.h. #include nonposix.h.
11215 (real_output_file::~real_output_file): Remove the MSVC-specific
11216 call to pclose, a suitable macro is now defined on nonposix.h.
11217 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
11218 and WEXITSTATUS instead of assuming traditional Unix
11219 interpretation of the status returned by pclose.
11221 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
11222 call to popen, use POPEN_RT instead (appropriately defined on
11223 nonposix.h). #include nonposix.h.
11224 (ps_bbox_request): Open the PostScript file in binary mode.
11225 Close the file after processing it.
11226 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
11229 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
11230 A version of run_pipeline that doesn't use `fork'.
11231 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
11232 (system_shell_name, system_shell_dash_c)
11233 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
11234 the ugliness of testing DOS/Windows file names for equality, and
11235 support both stock shells and ports of Unix shells.
11237 * src/roff/groff/groff.cc: #include nonposix.h.
11238 (BSHELL): Definition moved to nonposix.h.
11239 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
11240 instead of a literal "-c".
11241 (xbasename): Support file names with several possible slash-type
11242 characters, as given by DIR_SEPS[] in nonposix.h.
11243 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
11244 of literal strings.
11246 * src/preproc/soelim/soelim.cc: #include nonposix.h.
11247 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
11249 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
11252 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
11254 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
11257 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
11259 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
11260 P_tmpdir is defined, use it instead of the literal "/tmp".
11261 (remove_tmp_files, add_tmp_file): New functions.
11262 (xtmpfile): Record temporary files and register an atexit function
11263 to delete them explicitly, instead of relying on the OS to do
11264 that, which doesn't work on non-Unix systems.
11266 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
11267 (search_path::search_path): Use PATH_SEP instead of a literal
11269 (search_path::command_line_dir): Ditto.
11270 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
11271 to support non-Posix systems.
11273 * src/libs/libbib/search.cc: #include nonposix.h.
11274 (search_list::add_file): Open the file in binary mode.
11276 * src/libs/libbib/linear.cc: #include nonposix.h.
11277 (file_buffer::load): Remove \r characters preceding \n from the
11280 * src/libs/libbib/index.cc: #include nonposix.h.
11281 (make_index_search_item): Open index_filename in O_BINARY mode.
11282 (index_search_item_iterator::get_tag): Ditto. Remove \r
11283 characters before \n characters.
11284 (index_search_item::check_files): Open files in binary mode.
11285 (index_search_item::munge_filename): Support DOS-style file names
11286 with backslashes and drive letters, use IS_ABSOLUTE.
11288 * src/devices/grops/ps.cc: #include nonposix.h.
11289 (main) [SET_BINARY]: Switch stdout to binary mode.
11291 * src/devices/grolj4/lj4.cc: #include nonposix.h.
11292 (main) [SET_BINARY]: Switch stdout to binary mode.
11294 * src/devices/grolbp/lbp.cc: #include nonposix.h
11295 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
11297 * src/devices/grodvi/dvi.cc: #include nonposix.h.
11298 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
11300 (main) [SET_BINARY]: Switch stdout to binary mode.
11301 [_MSC_VER]: Remove an explicit call to _setmode.
11303 * src/include/nonposix.h: New file.
11305 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
11306 operation when building with DJGPP.
11307 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
11308 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
11311 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
11313 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
11314 etc. can include a semi-colon on DOS/Windows.
11315 (depend.temp): Use depend1.temp instead of depend.temp1, to
11316 prevent files from overerwiting each other on 8+3 filesystems.
11318 * gendef.sh (t): Change definition to work with DOS/Windows.
11320 doc/groff.texinfo: Apart of some typo corrections, I also changed
11321 some index entris, to make them more non-ambiguous, and also put
11322 @ignore around some parts that are not yet written, to allow the
11323 Info output be readable.
11325 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
11327 Replaced specific checks for function declarations with a generic
11328 routine taken from GNU bfd.
11330 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
11331 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
11332 * configure.in: Use it.
11333 * src/devices/grolbp/lbp.cc, src/include/lib.h,
11334 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
11335 src/roff/groff/groff.cc: Use it.
11336 * Makefile.in, configure: Updated.
11338 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
11340 * src/devides/grolbp/lbp.h: Removed unused variables.
11342 2000-05-31 Keith Thompson <kst@sdsc.edu>
11344 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
11347 2000-05-31 Werner LEMBERG <wl@gnu.org>
11349 * aclocal.m4 (GROFF_SRAND): New function to test the return value
11350 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
11351 * configure.in: Use it.
11352 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
11353 * configure, Makefile.in: Updated.
11355 * configure.in: Add test for strncasecmp().
11356 * src/include/lib.h: Use it.
11358 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
11360 * src/preproc/grn/Makefile.sub: Add MLIB.
11362 2000-05-29 Nix <nix@esperi.demon.co.uk>
11364 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
11366 2000-05-29 Werner LEMBERG <wl@gnu.org>
11368 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
11370 * PROBLEMS: Small update.
11372 * src/devices/grolbp/lbp.cc: Various small fixes.
11374 2000-05-28 Keith Thompson <kst@sdsc.edu>
11376 * src/roff/nroff/nroff.sh: Fix main loop syntax.
11378 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
11380 2000-05-25 Werner LEMBERG <wl@gnu.org>
11382 * man/roff.man: Removed unused macro.
11384 2000-05-24 Werner LEMBERG <wl@gnu.org>
11386 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
11387 This is needed e.g. if you do
11388 `make distclean; ./configure; make dist'.
11390 Version 1.16 released
11391 =====================
11393 2000-05-23 Werner LEMBERG <wl@gnu.org>
11395 Adding font CWI (constant width italic) to devdvi.
11397 * font/devdvi/CWI: New file.
11398 * font/devdvi/generate/Makefile: Add generating rule.
11399 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11400 tmac/tmac.dvi: Use it.
11401 * NEWS: Announce it.
11403 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11404 * font/devlj4/generate/Makefile: Cosmetic changes only.
11406 * man/groff.man: Removed most of the redundant description of
11407 special characters (which is in groff_char.man). Added font
11408 translation CB->CR for devdvi. Other minor fixes.
11410 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11411 (registered) symbols.
11413 2000-05-22 Werner LEMBERG <wl@gnu.org>
11415 * doc/Makefile: Added rule for creating info files.
11417 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
11419 * font/devdvi/generate/Makefile: Fixed dependencies.
11421 * font/devps/*: Regenerated. Heavy changes for Bookman and
11422 NewCentury Schoolbook!
11423 * font/devps/generate/afmname: Will now run with GNU awk.
11424 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11425 * font/devps/generate/Makefile: Cosmetic changes only.
11427 2000-05-21 Werner LEMBERG <wl@gnu.org>
11429 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11430 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
11431 `.SS' now produces a heading with a smaller size than `.SH'.
11432 Completely formatted.
11433 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11435 * man/groff.man: Improved table appearance. Use of `eo' request
11436 to reduce number of doubled backslashes in macro definitions.
11437 Replacing `\e' with `\(rs'. Other minor fixes.
11439 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11440 to have correct line number.
11442 * INSTALL: Small improvement.
11444 2000-05-20 Bernd Warken <bwarken@mayn.de>
11446 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11449 2000-05-19 Bernd Warken <bwarken@mayn.de>
11451 * man/groff.man: Complete update (with a lot of corrections by WL).
11453 2000-05-18 Werner LEMBERG <wl@gnu.org>
11455 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11457 * font/*/*: Implement it.
11458 * man/groff_char.man, NEWS: Document it.
11460 * src/include/unix.h: Removed. It isn't used.
11462 * doc/groff.texinfo: Slight improvements.
11464 2000-05-17 Werner LEMBERG <wl@gnu.org>
11466 * README, win32-diffs: Small fixes and improvements.
11468 2000-05-16 Werner LEMBERG <wl@gnu.org>
11470 * FDL: New file (the Free Documentation License version 1.1).
11472 * doc/groff.texinfo: Added many start-up values for gtroff.
11473 Some structural improvements of the source code.
11475 2000-05-15 Werner LEMBERG <wl@gnu.org>
11477 * src/roff/troff/input.cc: Added small comment about troffrc-end.
11478 * src/roff/troff/troff.man: Added info about troffrc-end.
11480 2000-05-14 Werner LEMBERG <wl@gnu.org>
11482 * Makefile.in (EXTRADIRS): Fix typos.
11483 (dist): Handle deletion of old .tar.gz file correctly.
11484 (DISTDIRS): Include all tty output devices.
11486 * doc/groff.texinfo: Adding more cross references; countless other
11489 2000-05-13 Werner LEMBERG <wl@gnu.org>
11491 * MORE.STUFF: Added Robert Marks's utilities.
11493 2000-05-12 Werner LEMBERG <wl@gnu.org>
11495 Added win32 port contributed by Blake McBride
11496 <blake@florida-software.com>.
11498 * README.WIN32, win32-diffs: New files.
11501 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11502 (tmove, tmove2): Added parentheses to avoid compiler warnings.
11503 (change): Removed unused variables.
11505 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11506 (savebounds): Changed return value from `int' to `void'.
11507 * src/preproc/grn/hdb.cc: Ditto.
11509 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11510 final backslash in comment to avoid compiler warning.
11512 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11514 * doc/groff.texinfo: More fixes.
11516 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
11518 * tmac/tmac.doc: Documentation fix.
11520 2000-05-11 Werner LEMBERG <wl@gnu.org>
11522 * doc/groff.texinfo: Reading the source code shows up a lot of
11523 omissions and incorrect data... More conversion to @Deffn macros.
11525 2000-05-10 Werner LEMBERG <wl@gnu.org>
11527 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11530 * src/roff/troff/request.h: Removing unused `no_break_flag'.
11532 2000-05-09 Werner LEMBERG <wl@gnu.org>
11534 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11537 * doc/groff.texinfo: Extended history section. More conversion to
11538 @Deffn macros. More .tr documentation.
11540 2000-05-07 Werner LEMBERG <wl@gnu.org>
11542 * doc/groff.texinfo: Completed tab section. Added info about
11545 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
11547 * PROBLEMS: Describe configure script fix for OS/390 Unix.
11549 2000-05-05 Werner LEMBERG <wl@gnu.org>
11551 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11553 * NEWS: Document it.
11555 * man/troff.man: Minor optical improvements.
11557 2000-05-03 Werner LEMBERG <wl@gnu.org>
11559 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11561 * font/*/*: Implement it.
11562 * man/groff_char.man, NEWS: Document it.
11564 2000-05-02 Werner LEMBERG <wl@gnu.org>
11566 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11568 * NEWS: Document the three new man pages.
11570 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11571 * configure: Updated.
11573 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11575 2000-05-01 Werner LEMBERG <wl@gnu.org>
11577 Added grap support to grog.
11579 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11580 * src/roff/grog/grog.man: Document it.
11582 * doc/groff.texinfo, NEWS: Add info about grap support.
11584 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11585 (with slight fixes by me).
11587 * tmac/groff_tmac.man: New file documenting tmac mechanism.
11588 * tmac/Makefile.sub: Add groff_tmac.man.
11589 * man/roff.man: New file giving overview of roff system.
11590 * man/troff.man: A short reference of troff.
11591 * man/Makefile.sub: Add roff.man and troff.man.
11593 2000-04-30 Werner LEMBERG <wl@gnu.org>
11595 Added grap support to groff.
11597 * src/roff/groff/groff.cc: Implement it.
11598 * src/roff/groff/groff.man: Document it.
11600 * src/devices/grotty/grotty.man: Add cp1047 device.
11601 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11603 * src/roff/groff/groff.man: Ditto.
11604 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11605 * doc/groff.texinfo: Ditto.
11607 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11610 2000-04-29 Werner LEMBERG <wl@gnu.org>
11612 * man/groff_char.man: Add `pc' glyph.
11613 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11614 * tmac/tmac.tty: Add `pc' glyph.
11615 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
11616 we use cp1047 output device.
11618 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11619 there are still hardcoded latin1->unicode values in utf8's font
11621 * configure: Updated.
11622 * NEWS: Minor clarification. Updated.
11624 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
11627 2000-04-28 Werner LEMBERG <wl@gnu.org>
11629 Adding EBCDIC code page 1047.
11631 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11632 font/devcp1047/DESC.proto: New files.
11634 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11635 either ascii/latin1 or cp1047.
11636 * Makefile.in: Use it.
11637 * configure: Updated.
11639 Replacing and/or adding `md' (mathdot) glyph with `pc'
11640 (periodcentered) in all text fonts.
11642 * font/*/*: Change it.
11644 2000-04-27 Werner LEMBERG <wl@gnu.org>
11646 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11648 * configure.in: Add check for strings.h.
11649 * src/include/driver.h: Use HAVE_STRINGS_H.
11650 * src/devices/grolbp/lpb.cc: Remove string.h.
11652 * src/include/groff-getopt.h: New file. It will be used instead of
11653 getopt.h (to be included in lib.h) to avoid endless problems with
11654 picky C++ compilers.
11655 * src/include/lib.h: Use groff-getopt.h.
11656 * src/include/Makefile.sub: Updated.
11658 * configure: Updated.
11659 * Makefile.in: Updated.
11661 * NEWS: Mention EBCDIC support.
11663 2000-04-26 Werner LEMBERG <wl@gnu.org>
11665 * TODO: Some additions.
11667 2000-04-25 Werner LEMBERG <wl@gnu.org>
11669 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11672 2000-04-23 Werner LEMBERG <wl@gnu.org>
11674 * src/roff/troff/troff.man: Minor fixes.
11676 2000-04-22 Werner LEMBERG <wl@gnu.org>
11678 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11679 `.T' string register and the incompatible definition of the `.T'
11680 number register (compared to Unix troff).
11682 * man/groff_char.man: Add some missing characters.
11683 * font/devutf8/NOTES: Update.
11685 2000-04-21 Werner LEMBERG <wl@gnu.org>
11687 * src/include/htmlindicate.h, src/include/lib.h,
11688 src/include/posix.h: Fix copyright.
11690 * src/include/Makefile.sub: Update.
11692 2000-04-20 Werner LEMBERG <wl@gnu.org>
11694 * src/roff/troff/input.cc (input_char_description): Removing
11695 superfluous space char.
11697 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11699 * doc/groff.texinfo: Document EBCDIC.
11701 2000-04-19 Werner LEMBERG <wl@gnu.org>
11703 Introducing `shc' as the glyph name for the soft hyphen character.
11705 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11706 font/devlatin1/R.proto: Use it.
11710 2000-04-18 Werner LEMBERG <wl@gnu.org>
11712 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11713 dependency on ASCII order.
11715 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
11717 * src/libs/libgroff/illegal.c: Added EBCDIC table.
11718 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11720 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11721 to increase portability.
11723 2000-04-15 Werner LEMBERG <wl@gnu.org>
11725 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11726 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11727 the generic `\n' if under OS/390 Unix.
11729 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11731 * configure: Regenerated.
11733 2000-04-14 Werner LEMBERG <wl@gnu.org>
11735 * doc/groff.texinfo: More conversions to @Deffn.
11737 2000-04-12 Werner LEMBERG <wl@gnu.org>
11739 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11742 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11744 2000-04-10 Werner LEMBERG <wl@gnu.org>
11746 * doc/groff.texinfo: More conversions to @Deffn.
11748 2000-04-08 Werner LEMBERG <wl@gnu.org>
11750 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11751 Updated to latest version (glibc 2.1.3).
11753 2000-04-07 Werner LEMBERG <wl@gnu.org>
11755 * doc/Makefile (clean): Include more index files.
11756 Add rule texinfo->dvi.
11758 2000-04-05 Werner LEMBERG <wl@gnu.org>
11760 * doc/groff.texinfo: Added new index `op' for operators. More
11761 info on end of sentence characters. More use of @Deffn.
11763 2000-03-30 Werner LEMBERG <wl@gnu.org>
11765 * */*.man: Adding a note that a whitespace can be inserted between
11766 a command line option and its parameter -- we are using GNU getopt.
11768 * src/roff/groff/groff.man: Add example of `-m mandoc'.
11770 2000-03-28 Werner LEMBERG <wl@gnu.org>
11772 Correct anachronism of calling the man macro file with `-man'
11773 instead of `-m man' etc.
11775 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11776 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11777 load tmac.<package>.
11779 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
11783 * doc/groff.texinfo: Updated.
11785 * tmac/groff_man.man: Copyright added.
11787 2000-03-27 Werner LEMBERG <wl@gnu.org>
11789 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11790 typeset the request resp. escape name with a tt font -- due to a
11791 bug in texinfo.tex it is necessary to use the `-e' switch with
11794 Improving info about usage of groff units.
11798 2000-03-20 Werner LEMBERG <wl@gnu.org>
11800 * doc/groff.texinfo: Added section about man macro package
11801 (I've basically taken groff_man.man). Introducing new indices `ma'
11802 for macros/strings and `gl' for glyph names. Other minor fixes.
11804 * tmac/groff_man.man: Fixed some typos.
11806 2000-03-19 Werner LEMBERG <wl@gnu.org>
11808 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11811 * doc/texinfo.tex: New file.
11813 2000-03-18 Werner LEMBERG <wl@gnu.org>
11815 * doc/groff.texinfo: Improved section on number registers. Other
11818 2000-03-16 Werner LEMBERG <wl@gnu.org>
11820 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
11823 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11824 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11825 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11826 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11828 * src/preproc/grn/grn.man: Better synopsis; added copyright.
11830 * src/roff/grog/grog.man: Updated copyright date.
11832 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
11834 * configure.in: Added test for strdup.
11836 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11839 Replaced dynamic allocation of arrays `[...]' with `new' operator.
11843 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
11845 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11847 2000-03-11 Werner LEMBERG <wl@gnu.org>
11849 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11851 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11852 * src/include/lib.h: Remove some spaces.
11854 2000-03-10 Werner LEMBERG <wl@gnu.org>
11856 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11857 initializers from arguments (some compilers don't like this).
11859 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
11861 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11862 used by pic and eqn to tell grohtml where the graphic regions start
11864 * src/libs/libgroff/Makefile.sub: Use it.
11865 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11866 graphic_start() and graphic_end() from htmlindicate.cc.
11868 2000-03-09 Werner LEMBERG <wl@gnu.org>
11870 * tmac/tmac.safer: Will now work correctly in compatibility mode.
11871 * tmac/groff_man.man: More fixes.
11873 2000-03-08 Werner LEMBERG <wl@gnu.org>
11875 * doc/Makefile: Added texput.log to the `clean' target.
11876 * doc/groff.texinfo: Added info about delimiters for escapes.
11878 2000-03-08 Bernd Warken <bwarken@mayn.de>
11880 * src/preproc/pic/pic.man: Add info on conversion of pic images to
11881 other graphic formats.
11883 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
11885 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11886 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11887 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11890 2000-03-07 Werner LEMBERG <wl@gnu.org>
11892 * doc/groff.texinfo: Spelling fixes.
11894 2000-03-06 Werner LEMBERG <wl@gnu.org>
11896 * tmac/groff_man.man: Completely revised to cover everything in
11899 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11900 Other minor fixings.
11901 * src/roff/troff/env.cc (environment_copy): Improve error message and
11903 * src/roff/troff/TODO: Updated.
11905 * doc/Makefile: Bug fixes -- this is still provisional, though...
11907 * tmac/eqnrc: Small fixes.
11909 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
11911 Adding a request `evc' to copy environments.
11913 * src/roff/troff/env.cc (environment::copy, environment_copy):
11915 * src/roff/troff/env.h: Add prototype.
11917 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
11919 Adding strsep() -- Solaris 8 doesn't have it.
11921 * configure.in: Test it.
11922 * src/devices/grolbp/lbp.cc: Add code.
11924 2000-03-05 Werner LEMBERG <wl@gnu.org>
11926 * src/roff/troff/div.cc (macro_diversion::output,
11927 top_level_diversion::output): Fixing an incompatibility with
11928 original troff: \x'0' updates the .a register also. Thanks to
11929 <Andries.Brouwer@cwi.nl> for pointing this out.
11930 * doc/groff.texinfo: Document it.
11932 * Makefile.in: Create Makefile.dep if necessary before calling the
11933 submake process to avoid warning about nonexistent file.
11935 * NEWS, PROJECTS: Updated.
11937 2000-03-04 Werner LEMBERG <wl@gnu.org>
11939 * tmac/troffrc: Add tmac.lbp.
11941 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
11943 * tmac/tmac.lbp: New file.
11944 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11947 2000-03-03 Werner LEMBERG <wl@gnu.org>
11949 * Makefile.in: Fixing $(subdir).
11951 * README, NEWS: Small fixes.
11953 * test-groff: Adding path to grolbp.
11955 * configure.in: The (new) file src/xditview/Imakefile.in will be
11956 also configured -- it is now possible to build gxditview in a
11957 directory different from $srcdir.
11959 2000-03-02 Blake McBride <blake@florida-software.com>
11961 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11963 * MORE.STUFF: Added website of bell labs and info about plot2dev.
11965 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
11967 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11970 2000-02-29 Werner LEMBERG <wl@gnu.org>
11972 Adding GNU getopt to the groff distribution.
11974 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11976 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11977 * aclocal.a4: Remove GROFF_GETOPT function.
11978 * configure.in, Makefile.in, PROBLEMS: Update.
11979 * src/include/lib.h: Replace getopt tests with getopt.h.
11980 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11982 * doc/groff.texinfo: Further checking/updating. Adding more index
11985 * man/groff_out.man: Fix nroff mode activation (for emacs).
11986 * man/groff_font.man: Add missing ligature.
11988 2000-02-28 Werner LEMBERG <wl@gnu.org>
11990 * doc/groff.texinfo: Further checking/updating. Adding more index
11993 * src/devices/grolbp/grolbp.man: Added a comment line at the
11994 beginning of the file (similar to shell scripts) which indicates
11995 that `tbl' should be used as a preprocessor.
11997 2000-02-27 Blake McBride <blake@florida-software.com>
11999 Adapting groff to MS Visual C++ 6.0 compiler (tested with
12000 Windows NT 4.0). Uses _MSC_VER define where necessary.
12002 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
12003 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
12004 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
12005 src/include/lib.h, src/libs/libgroff/errarg.cc,
12006 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
12007 src/preproc/refer/label.y, src/preproc/refer/label.cc,
12008 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
12009 src/roff/troff/div.cc, src/roff/troff/env.cc,
12010 src/roff/troff/input.cc, src/roff/troff/node.cc,
12011 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
12012 if_to_a() to avoid name clashes.
12013 * src/include/posix.h: Don't use unistd.h.
12014 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
12015 clause for integrating non-Unix xtmpfile() code.
12016 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
12017 structure; use "rt" for popen() in pipe_source(); add getpid()
12019 * src/roff/troff/node.cc: Use special versions of popen() in
12020 real_output_file() and pclose() in ~real_output_file().
12022 2000-02-27 Werner LEMBERG <wl@gnu.org>
12024 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
12025 LBP-8 series laser printers). This code has been contributed by
12026 Francisco Andrés Verdú <pandres@dragonet.es>.
12028 * src/devices/grolbp/*: The grolbp output device.
12029 * font/devlpb/*: The font description files.
12030 * Makefile.in: Add grolpb and devlbp subdirectories.
12032 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
12033 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
12036 * doc/groff.texinfo: Further checking/updating. Adding more index
12041 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
12043 * man/groff_font.man: Adding info about obsolete DESC keywords.
12044 * src/devices/grolj4/grolj4.man: Documenting additional DESC
12047 2000-02-26 Werner LEMBERG <wl@gnu.org>
12049 * src/preproc/grn/grn.man: Added info about the gremlin file format
12050 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
12052 2000-02-25 Werner LEMBERG <wl@gnu.org>
12054 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
12055 friends to be non-integer.
12057 * src/preproc/grn/grn.man: Document it.
12059 * doc/groff.texinfo: Further checking/updating. Adding more index
12062 2000-02-24 Werner LEMBERG <wl@gnu.org>
12064 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
12065 line thicknesses to be integer multiples of this value.
12067 * src/preproc/grn/grn.man: Commenting out the -s option -- the
12068 corresponding code doesn't work (yet).
12070 * doc/groff.texinfo: Further checking/updating. Adding more index
12073 2000-02-23 Werner LEMBERG <wl@gnu.org>
12075 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
12076 specify line thickness instead of base units. The new default
12077 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
12078 thick lines respectively.
12080 Removed unused variable `prevval'.
12082 * src/preproc/grn/grn.man: Updated.
12084 2000-02-22 Werner LEMBERG <wl@gnu.org>
12086 * src/preproc/grn/main.cc: Slight formatting.
12088 * src/roff/groff/groff.man: Formatting fix.
12089 * src/preproc/grn/grn.man: Ditto.
12091 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
12093 * doc/groff.texinfo: Further checking/updating.
12095 2000-02-21 Werner LEMBERG <wl@gnu.org>
12097 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
12099 * test-groff: Added grn subdir to path.
12101 * doc/groff.texinfo: Some restructing and other small improvements.
12103 * src/roff/groff/groff.cc (help): Fixed info string.
12105 2000-02-20 Werner LEMBERG <wl@gnu.org>
12107 * doc/meref.me: Fix description of .GS request.
12109 * src/roff/troff/troff.man: Fixing typo.
12111 Adding the `grn' preprocessor for gremlin graphic files.
12113 * src/preproc/grn/*: This is the Berkeley distribution written by
12114 David Slattengren and Barry Roitblat, adapted to groff by Daniel
12115 Senderowicz and Werner Lemberg.
12117 * doc/grnexampl.{me,g}: A sample for grn.
12119 * Makefile.in: Added subdirectory entry for grn.
12121 * src/roff/groff/groff.cc: Added support for grn. It can be now
12122 called with the switch `-g'.
12124 * src/roff/groff/groff.man: Updated.
12126 * src/roff/grog/grog.{man,pl,sh}: Updated.
12130 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
12132 * src/include/lib.h: Added xtmptemplate and made xtmpfile
12133 parametrically polymorphic.
12135 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
12136 and the alterations to xtmpfile.
12137 xtmpfile can be requested to return the filename created
12138 and asked not to unlink the temp file. The default behaviour
12139 if parameters are absent is exactly the same as before.
12141 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
12143 A new request `length' is available which returns the length of a
12144 string in a number register:
12146 * src/roff/troff/input.cc (length_macro): Implement it.
12147 * src/roff/troff/input.cc (init_input_requests): Register it.
12149 2000-02-11 Werner LEMBERG <wl@gnu.org>
12151 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
12152 of the `substring' request.
12154 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
12157 * src/roff/troff/TODO, NEWS: Updated.
12159 2000-02-09 Werner LEMBERG <wl@gnu.org>
12161 * src/roff/groff/groff.man: Added an example.
12163 2000-02-06 Werner LEMBERG <wl@gnu.org>
12165 I've considerably modified the directory structure of the
12166 distribution to get a more vertical layout. For example, the number
12167 of top level directories has been reduced from 42 to 6.
12169 As a consequence, many changes, especially to the makefiles, were
12172 * The makefile variables `top_builddir' and `top_srcdir' have been
12173 introduced. Virtually all relative paths have been replaced with
12174 absolute ones using these two variables.
12176 * Dependencies (in the files `Makefile.dep') are no longer part of
12177 the distribution. Instead, they are created during a `make install'
12178 in the build directory.
12180 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
12181 make `top_srcdir' and `top_builddir' absolute.
12183 Some other changes:
12185 * Man pages now depend on the files `VERSION' and `REVISION'.
12187 * The added shell script `mkinstalldirs' will replace `mkdir' in
12190 * VERSION: Version number increased to 1.16.
12192 2000-02-04 Werner LEMBERG <wl@gnu.org>
12194 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
12196 * Makefile.in: Removed $(tmac_m) since it is no longer needed
12197 (after an update of the mm stuff).
12199 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
12201 2000-02-03 Werner LEMBERG <wl@gnu.org>
12203 The .psbb request will now also accept Mac PS images (i.e. using LF
12204 as the EOL character).
12206 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
12207 (with slight modifications).
12208 * troff/input.cc (do_ps_file): Use it.
12210 * test-groff: Add grohtml and grolj4 output devices to PATH.
12212 2000-01-30 Werner LEMBERG <wl@gnu.org>
12214 * NEWS, MORE.STUFF: Updated.
12216 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
12218 Add the `srand' command to pic.
12220 * pic/lex.cc, pic/pic.y: Implement it.
12221 * pic/pic.man: Document it.
12222 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
12224 2000-01-30 Werner LEMBERG <wl@gnu.org>
12226 Add a new request `.psbb'. This does exactly what the external
12227 program psbb did. It scans a PostScript image file for a
12228 %%BoundingBox comment and extracts the bounding box values (in
12229 PostScript units) which are then stored in the four new (read-only)
12230 number registers `llx', `lly', `urx', and `ury'.
12232 This will allow the usage of the .PSPIC macro without worrying
12233 about unsafe behaviour of groff, i.e., it will work without the
12234 `-U' switch of groff.
12236 * troff/input.cc: Implement it.
12237 * tmac/tmac.pspic: Use it.
12238 * troff/troff.man, grops/grops.man, NEWS: Document it.
12239 * psbb/*, Makefile.in: Remove it since it is no longer needed.
12241 This is bloody C code simply adapted from psbb.c! Any improvements
12244 2000-01-29 Werner LEMBERG <wl@gnu.org>
12246 * man/groff_font.man: Minor clarifications.
12250 2000-01-28 Werner LEMBERG <wl@gnu.org>
12252 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
12254 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
12256 * man/groff_font.man: Brought up to date regarding tcommand
12258 * libgroff/font.cc: Handle everything after `--' as a comment
12260 * devps/*: Added comment delimiter inside devps font files.
12262 2000-01-28 Werner LEMBERG <wl@gnu.org>
12264 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
12265 \fC...\fP (which now works as expected).
12267 * troff/troff.man: Fix typo.
12269 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
12271 Completed the pass_filenames implementation in troff.
12273 * libdriver/input.cc: Will read the new `F' tcommand.
12274 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
12275 * troff/input.cc: Use it.
12277 2000-01-26 Werner LEMBERG <wl@gnu.org>
12279 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
12280 font will now be updated even if an invalid font is selected.
12282 2000-01-24 Werner LEMBERG <wl@gnu.org>
12284 * doc/homepage.ms: Updated for new tmac.arkup.
12286 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
12288 * tmac/tmac.arkup: Cleanup.
12290 Added `\&' to .HTML macro to `leave vertical mode', so to say.
12292 Removed obsolete .LINK macro completely.
12294 The macros .URL, .FTP, and .MAILTO now accept a third argument which
12295 will be immediately appended to the second argument (to be used with
12296 punctuation, for example).
12298 Disabled .CDFTP macro temporarily for security reasons.
12300 * tmac/groff_markup.man: Complete revision for latest changes in
12301 tmac.arkup -- note that it does not yet format correctly with
12304 2000-01-23 Bruno Haible <haible@clisp.cons.org>
12306 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
12307 * devutf8/R.proto: Add mappings for wp, lh, rh.
12308 * devutf8/NOTES: Updated.
12310 2000-01-23 Werner LEMBERG <wl@gnu.org>
12312 * doc/groff.texinfo: Updated version/copyright info.
12314 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
12316 Added support for two new directives in device descriptions:
12317 `pass_filenames' (to pass the input file name to the output device)
12318 and `use_charnames_in_special' (to support e.g. accented characters
12319 in the `X' request).
12321 * include/font.h, troff/charinfo.h: Declare it.
12323 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
12325 * devhtml/DESC: Use it.
12327 * troff/input.cc: New function encoded_char.
12329 * troff/token.h: Add test for `specialness'.
12331 2000-01-21 Werner LEMBERG <wl@gnu.org>
12333 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
12334 mistake from the list of files to be installed.
12336 2000-01-18 Werner LEMBERG <wl@gnu.org>
12338 * README: Added info how to apply patches.
12340 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
12342 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
12344 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
12346 * troff/input.cc: Add support for troffrc-end.
12348 * tbl/main.cc: Altered to issue table-start and table-end special
12349 characters if using the html device.
12351 * devhtml/*: Modified font files to incorporate html encoding of
12354 * tmac/groff_markup.man: New file documenting tmac.arkup.
12356 * tmac/troffrc-end: New file. This is invoked after all user
12357 specified macros. Currently used by the html device to include
12358 tmac.html. Thus no need for users to specify -mhtml anymore.
12360 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
12361 (MAN7): Add groff_markup.man.
12363 * tmac/tmac.an, tmac/tmac.html: Small html updates.
12365 * tmac/troffrc: tmac.arkup will now be called for the html device.
12367 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
12368 extra device specific information about fonts.
12370 * doc/homepage.ms: New file. It is an example how an HTML home page
12371 could look like with grohtml.
12373 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
12375 2000-01-12 Bruno Haible <haible@clisp.cons.org>
12377 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
12380 * devutf8/NOTES: Updated.
12382 2000-01-08 Bruno Haible <haible@clisp.cons.org>
12384 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
12385 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12386 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12387 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12388 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12389 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12390 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12391 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12394 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12396 2000-01-12 Fabrizio Polacco <fab@prosa.it>
12398 grolj4: Paper size will be searched case-insensitively.
12400 * include/lib.h: Add check for strcasecmp().
12401 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12402 * configure.in: Check for strcasecmp().
12404 2000-01-11 Werner LEMBERG <wl@gnu.org>
12406 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12409 2000-01-10 Werner LEMBERG <wl@gnu.org>
12411 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12414 Add a new read-only register, `.Y', which contains the groff
12417 * troff/input.cc (init_input_requests): Define it.
12418 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12419 * doc/groff.texinfo, troff/troff.man: Document it.
12421 * libgroff/Makefile.sub (version.cc): Add definition of
12422 `Version_string[]', consisting of `<major>.<minor>.<revision>'
12423 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12424 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12425 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12426 troff/input.cc, pfbtops/pfbtops.c: Use it.
12428 2000-01-10 Fabrizio Polacco <fab@prosa.it>
12430 Add a revision scheme to the groff package.
12432 * REVISION: New file.
12433 * libgroff/Makefile.sub (version.cc): Use it to define
12434 `revision_string[]'.
12435 * grops/psrm.cc: Use revision_string (converted to an unsigned
12436 integer) in constructor of resource_manager.
12438 2000-01-10 Bruno Haible <haible@clisp.cons.org>
12440 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12442 * Makefile.in (DEVDIRS): Add devutf8.
12443 * grotty/tty.cc: Include device.h.
12444 (glyph): Change type of `code' to `unsigned int'.
12445 (tty_printer): New field is_utf8. Constructor takes device argument.
12446 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12447 (tty_printer::add_char): Change type of first arg to `unsigned int'.
12448 (tty_printer::put_char): New function.
12449 (tty_printer::end_page): Use put_char() instead of ::putchar().
12450 (make_printer): Pass device to tty_printer constructor.
12451 * nroff.sh: Determine default device by calling 'locale'. As a
12452 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12453 Recognize UTF-8 locales.
12454 * tmac/eqnrc: Recognize utf8 like latin1.
12455 * tmac/troffrc: Device utf8 needs tmac.tty.
12457 2000-01-07 Werner LEMBERG <wl@gnu.org>
12459 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12461 2000-01-07 Paul Eggert <eggert@twinsun.com>
12463 Add a new predefined writeable number register, `year',
12464 which contains the current year.
12466 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12467 * tmac/tmac.s: Use it.
12468 * troff/input.cc (init_registers): Initialize it.
12470 2000-01-06 Werner LEMBERG <wl@gnu.org>
12472 * PROBLEMS: Fixed typo.
12474 2000-01-04 Paul Eggert <eggert@twinsun.com>
12476 * PROBLEMS: Add Y2k advice for the yr number register.
12478 2000-01-03 Paul Eggert <eggert@twinsun.com>
12480 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12482 2000-01-02 Werner LEMBERG <wl@gnu.org>
12484 * tmac/tmac.arkup: Slight modification of macros to provide better
12485 appearance for non-HTML formats.
12487 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
12489 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12490 does not automatically translate to malloc(n) on all OSes
12491 (e.g., SunOS) so do it explicitly. Also, check the returned
12494 2000-01-01 Werner LEMBERG <wl@gnu.org>
12496 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
12498 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12499 expects this variable
12501 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
12503 * doc/Makefile: Added instructions to create HTML and text
12504 versions of some files.
12506 1999-12-31 Werner LEMBERG <wl@gnu.org>
12508 * Updated INSTALL.gen.
12510 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12511 better resp. correctly with non-HTML devices.
12513 Version 1.15 released
12514 =====================
12516 1999-12-28 Werner LEMBERG <wl@gnu.org>
12518 * NEWS, VERSION: Changed to 1.15
12520 1999-12-27 Paul Eggert <eggert@twinsun.com>
12522 * nroff/nroff.man: -S is safer, not safe.
12524 * groff/groff.cc (main): Use `safer', not `safe', in variable
12525 names. This does not change the behavior.
12527 * troff/input.cc (main): Likewise.
12529 * nroff/nroff.sh: Likewise.
12531 * troff/input.cc (prepend_string): New function.
12532 (main): Prepend -msafer, so that we check macro libraries for
12535 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12537 Version 1.14 released
12538 =====================
12540 1999-12-26 Werner LEMBERG <wl@gnu.org>
12542 * NEWS, VERSION: Changed to 1.14.
12544 1999-12-24 Werner LEMBERG <wl@gnu.org>
12546 * refer/refer.cc: Fixing the last fix.
12548 Version 1.13 released
12549 =====================
12551 1999-12-23 Werner LEMBERG <wl@gnu.org>
12553 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12558 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12560 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12561 document conventions, the version number must be a real.
12563 Version 1.12.1 released
12564 =======================
12566 1999-12-22 Werner LEMBERG <wl@gnu.org>
12568 * VERSION: Changed to 1.12.1.
12570 1999-12-22 Alan Rooks <arooks@istar.ca>
12572 * refer/refer.cc (do_file): Slight modification to satisfy the
12573 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12576 1999-12-20 Werner LEMBERG <wl@gnu.org>
12578 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12581 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12582 list of unsafe requests.
12584 * pic/pic.man: Fixed a typo.
12586 * man/groff_out.man: Fixed a typo.
12588 1999-12-18 Werner LEMBERG <wl@gnu.org>
12590 * Makefile.in: Doc fixes.
12592 1999-12-17 Fabrizio Polacco <fab@prosa.it>
12594 * groff/groff.cc: Missing `U' option added to getopt().
12596 * troff/troff.man: Missing `U' option added to synopsis.
12598 Version 1.12 released
12599 =====================
12601 1999-12-14 Werner LEMBERG <wl@gnu.org>
12603 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12606 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12607 with the more appropriate terms `safer' and `unsafe'.
12609 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12610 sys_nerr and sys_errlist[].
12612 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12614 * pic/pic.y, pic/pic.cc: Added check for fmod().
12616 1999-12-13 Werner LEMBERG <wl@gnu.org>
12618 * VERSION: Changed to 1.12.
12620 Here some patches from various sources; most of them taken from
12621 the Debian distribution.
12623 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12624 tmac/Makefile.sub: New files copied directly from the NetBSD
12625 distribution. Probably, some additional adaptation later on is
12628 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12629 of unsafe requests.
12631 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12632 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12633 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
12634 (`-S') is now the default.
12636 * README, NEWS: Updated.
12638 1999-12-09 Werner LEMBERG <wl@gnu.org>
12640 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12642 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12644 1999-12-06 Werner LEMBERG <wl@gnu.org>
12646 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12647 grief than relief today. Additionally, it is against the GNU
12650 * configure: Recreated.
12652 1999-12-05 Werner LEMBERG <wl@gnu.org>
12654 * configure.in: Added GROFF_LIBM.
12656 * configure: Recreated.
12658 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12661 * Makefile.in: Added definition of $(LIBM).
12663 * Makefile.comm (LIBM): Removed.
12665 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12667 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
12669 * doc/Makefile: Added rule for generation pic.html.
12671 (clean): Files produced by grohtml will be removed also.
12673 * doc/pic.ms: Small fix.
12675 * tmac/tmac.html: Fixed suppression of headers.
12677 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
12679 * tmac/tmac.html: Fixing horizontal arrows.
12681 Turning off hyphenation.
12683 * tmac/tmac.an: Improved support for grohtml; better indentation,
12684 no footers/headers.
12686 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
12688 * tmac/tmac.arkup: Added CDFTP macro
12690 * tmac/tmac.html: All headers are turned off for ms, me, and mm
12693 * tmac/troffrc: Some additions for HTML stuff.
12695 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
12697 * tmac/tmac.html: Small changes.
12699 1999-09-26 Werner LEMBERG <wl@gnu.org>
12701 * doc/groff.texinfo: Minor fixes.
12703 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
12705 * devhtml/TR: Changed spacewidth to 3.
12707 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12709 * tmac/tmac.html: Moved markup macros to tmap.arkup.
12711 * tmac/tmac.arkup: New file.
12713 * grohtml/ChangeLog: New file.
12715 1999-09-16 Werner LEMBERG <wl@gnu.org>
12717 * doc/groff.texinfo (Common Features): Added Copying chapter.
12718 Changed format to @smallbook.
12720 1999-09-15 Werner LEMBERG <wl@gnu.org>
12722 * NEWS: Added info about groff.texinfo.
12724 * doc/groff.texinfo: Will now compile (using texi2dvi) without
12727 1999-09-14 Werner LEMBERG <wl@gnu.org>
12729 * groff/groff.man: More updates.
12731 1999-09-13 Werner LEMBERG <wl@gnu.org>
12733 * doc/groff.texinfo: New file. This manual is still very
12734 rudimentary. It has been originally contributed by Trent
12735 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12738 * INSTALL: Added information about the `doc' subdir
12740 * troff/troff.man: Minor fixes.
12742 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12745 * troff/input.cc (usage): Added missing `-ffam' to usage message.
12747 * Makefile.in (dist): groff-$(version).tar.gz must be removed
12748 also, otherwise it is included itself in another call of `make
12751 * groff/groff.cc (synopsis): Removed superfluous space.
12753 * PROJECTS, PROBLEMS, NEWS: Updated.
12755 * VERSION: Updated to 1.12beta.
12757 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
12759 * README: Updated: Included documentation about CVS repository,
12760 mailing lists, and daily snapshots.
12762 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12764 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
12766 * tmac/tmac.an: If the tag didn't fit into the space that the
12767 macro `TP' specifies, the rest of the tag went into the space for
12770 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
12772 * grolj4/lj4.cc: Added duplex printing (option `-d').
12774 * grolj4/grolj4.man: Document duplex printing.
12776 1999-09-12 Werner LEMBERG <wl@gnu.org>
12778 * doc/Makefile (pic.ps): Fixed rule which caused problems with
12779 non-GNUish sed programs.
12781 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12784 * configure.in (LIBS): Added `-lc'
12786 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12788 * pic/tex.cc (solid_arc): Casting M_PI to double.
12790 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12792 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12793 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12794 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12796 * groff/groff_man.man: New file. This manual page was originally
12797 written for the Debian GNU/Linux system by Susan G. Kleinmann
12800 * eqn/list.cc (list_box::compute_metrics,
12801 list_box::compute_sublist_width): Removed variable declaration to
12802 avoid shadowing warnings.
12804 * grops/psrm.cc (resource_manager::process_file): Ditto.
12806 * tfmtodit/tfmtodit.cc (main): Ditto.
12808 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12809 to avoid shadowing warnings.
12811 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12812 shadowing loop variable.
12814 * groff/groff.man, troff/troff.man: Added doc about grohtml.
12816 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
12818 New grohtml frontend to convert groff input to html.
12820 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12822 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12824 * tmac/eqnrc: Added html device.
12826 * tmac/tmac.html: New file.
12828 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12829 (troff_output::start_picture, troff_output::finish_picture),
12830 tbl/main.cc (process_input_file):
12831 Surrounded output with `graphics_start' and `graphics_end' so that
12832 the html driver can identify non-text portions.
12834 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12835 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12836 grotty/tty.ps (tty_printer::set_char): Additional parameter
12839 * include/printer.h: Class printer: New function
12840 set_char_and_width; new variables (is_char_named, is_named_set,
12841 named_command, named_char_s, named_char_n) to hold information
12842 about named characters -- needed by the html driver.
12844 * libdriver/printer.cc (printer::set_ascii_char,
12845 printer::set_special_char): Use set_char_and_width.
12847 * devhtml/*: New device files for html driver.
12849 * grohtml/*: New driver grohtml.
12851 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
12853 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12856 1999-09-11 Luke Mewburn <lukem@netbsd.org>
12858 * libgroff/string.cc (search): Small fix to test against NULL
12861 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
12863 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12864 \b'abc') were stacked in reverse order when processed in a
12867 * troff/node.h: Added `*last' to struct `node' to make the above
12870 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12871 The default scale for the 'f' and 't' graphics functions were 'm'
12872 rather than 'u' (i.e., no scaling).
12874 1999-09-11 Peter Miller <peterm@jna.com.au>
12876 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12877 do_file), soelim/soelim.man: Added `-I file' option to soelim,
12878 defining include paths.
12880 * soelim/soelim.cc (include_path_append): New function.
12882 1999-09-11 Larry Jones <larry.jones@sdrc.com>
12884 * tbl/main.cc (process_options): Unix (at least Documenter's
12885 Workbench) tbl allows arbitrary non-alpha characters between
12888 1999-09-11 Paul Eggert <eggert@twinsun.com>
12890 Y2k fixes. Don't assume that the current year precedes 2000.
12892 * doc/meref.me: Add \n(y2, \n(y4.
12894 * tmac/doc-common (Yr): New number register.
12895 (Dd): Don't assume current year precedes 2000.
12897 * tmac/tmac.e (td): Likewise.
12898 (y2, y4): New number registers.
12900 * pic/pic.man: Update reference for pic paper to May, 1991
12903 1999-09-11 Werner LEMBERG <wl@gnu.org>
12905 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12906 Removed quotation marks which prevented correct expansion of
12909 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12911 1999-09-10 Werner LEMBERG <wl@gnu.org>
12913 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12916 * Removed configure.old.
12918 1999-08-31 Werner LEMBERG <wl@gnu.org>
12920 * VERSION: Updated to 1.11.1
12922 1999-05-27 Werner LEMBERG <wl@gnu.org>
12924 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12926 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12927 added quotations around $(tmac_wrap) to avoid syntax error if
12930 * configure: Newly generated using autoconf 2.13.
12932 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12934 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
12936 * README, PROJECTS, NEWS, INSTALL, VERSION,
12937 doc/Makefile. doc/pic.ms, groff/groff.man:
12938 Prepare for 1.11 release. No code changes.
12939 Documentation for pic added (doc/pic.ms).
12941 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
12943 * Version 1.10 released.
12945 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
12947 * afmtodit/afmtodit.pl: Avoid comment on first line.
12949 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
12951 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12952 * configure.in: Call it.
12954 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12955 (distfiles): Doesn't depend on config.log or config.cache.
12957 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
12959 * grog/grog.sh: Use print "" rather than print in END rule.
12961 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
12963 * tbl/main.cc (process_data): Don't give error for excess data
12964 entries that are comments.
12966 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
12968 * tbl/main.cc (process_data): Fix case where new for-scope rules
12969 silently change meaning of code.
12971 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
12973 * troff/env.cc (hyphenate): Loop over all consecutive sequences
12974 of non-zero hyphenation codes.
12976 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
12978 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12980 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
12982 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12984 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
12986 * tmac/tmac.andoc: Make it work in compatibility mode.
12988 * refer/token.h (token_info::is_range_sep): New function.
12989 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12990 * refer/ref.cc (reference::output): More sophisticated check for
12993 * devps/prologue.ps (MANUAL): New procedure.
12994 * grops/ps.cc (main): New -m option.
12995 (usage): Include -m.
12996 (ps_printer::~ps_printer): Implement -m.
12998 * aclocal.m4 (GROFF_G): New macro.
12999 * configure.in: Call it.
13000 * Makefile.in (g): Provided by configure.
13002 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
13004 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
13007 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
13008 (tmac_m, tmac_s): Deleted.
13009 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
13010 tmac_s_prefix): New variables.
13011 (MDEFINES): Change accordingly.
13012 * Makefile.comm (.man.n): Use new TMAC_* variables.
13013 * configure.in (GROFF_TMAC): Call.
13014 * aclocal.m4 (GROFF_TMAC): Define.
13015 * tmac/Makefile.sub (stamp_wrap): New target.
13016 (install_data, uninstall_sub): Handle macro wrapping.
13018 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
13020 * tbl/main.cc (main): Ignore -T option.
13022 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
13024 * devlj4/generate/special.map: Add definition of \(nb.
13026 * tmac/tmac.dvi: Add definition of \(nb.
13028 * troff/dictionary.c (dictionary::dictionary): association::v gets
13029 initialized by association::association.
13031 * tmac/Makefile.sub: Avoid using temporary files when installing.
13033 * troff/env.cc (environment::set_font): Make bad font number a
13036 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
13038 * Makefile.in (datadir): Use share rather than lib.
13040 * groff/groff.cc (basename): Rename to xbasename.
13042 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
13044 * Makefile (CCLIBS): Don't use.
13045 * Makefile.ccpg: Likewise.
13047 * acgroff.m4: Rename to...
13048 * aclocal.m4: Modify extensively for autoconf 2.
13049 * configure.in: Likewise.
13050 * Makefile.in: Likewise.
13052 * groff/pipeline.c (const): Declare as empty if __STDC__ not
13054 (xstrsignal): Check for definition of NSIG. Conditionalize
13055 on SYS_SIGLIST_DECLARED. Make return type const.
13057 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
13059 * troff/input.cc (interpolate_macro): Rephrase missing space
13062 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
13064 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
13065 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
13066 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
13067 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
13068 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
13069 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
13070 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
13071 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
13072 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
13073 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
13074 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
13077 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
13079 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
13081 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
13083 (macro_iterator::macro_iterator): Add additional argument.
13085 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
13087 * troff/div.cc (vertical_size::vertical_size): In place of integer
13088 specifying line spacing use cunits specifying post vertical
13090 (macro_diversion::output, top_level_diversion::output): Likewise.
13091 * troff/div.h: Change declarations accordingly.
13092 * troff/env.cc (pending_output_line): Replace ls field by post_vs
13094 (pending_output_line::pending_output_line,
13095 pending_output_line::output, environment::output,
13096 environment::output_line, environment::output_title,
13097 environment::hyphenate_line): In place of
13098 integer specifying line spacing use cunits specifying post vertical
13100 (environment::environment): Add post_vertical_spacing and
13101 prev_post_vertical_spacing arguments.
13102 (environment::get_post_vertical_spacing): New function.
13103 (environment::total_post_vertical_spacing): New function.
13104 (environment::post_vertical_spacing): New function.
13105 (init_env_requests): Initialize pvs request and .pvs register.
13106 * troff/env.h: Change declarations.
13108 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
13110 * tmac/tmac.pspic: Immediately remove the temporary file.
13112 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
13114 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
13115 height is specified.
13117 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
13119 * tbl/table.c (struct vertical rule, class table_entry): Use int
13120 not short for start_row and end_row.
13122 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
13124 * troff/input.cc (trapping_blank_line, blank_line_macro): New
13126 (diverted_space_node::reread, process_input_stack): Call
13127 trapping_blank_line() rather than blank_line().
13128 (init_input_requests): Bind "blm" to blank_line_macro().
13130 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
13132 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
13134 * troff/env.cc (environment::possibly_break_line): Require that
13135 width total excluding width of final space node be greater than
13136 the target text length.
13138 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
13140 * troff/node.cc (kern_pair_node::vertical_extent): New function.
13142 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
13144 * troff/node.cc (charinfo_node): New class.
13145 (glyph_node, composite_node): Derive from charinfo_node. Change
13146 member functions accordingly.
13148 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
13150 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
13152 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
13154 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
13156 * devps/generate/textmap (notsubset): Add.
13158 * tmac/tmac.a4: New file.
13160 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
13162 * pic/main.cc (had_parse_error): New variable.
13163 (do_picture, do_whole_file): Set had_parse_error if yyparse()
13165 (main): Return 1 if had_parse_error is true.
13167 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
13169 * grolj4/lj4.cc (main): Avoid use of strtoul.
13171 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
13173 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
13174 iso_8859_1 or $LESSCHARSET is latin1.
13176 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
13178 * hpftodit: New directory.
13179 * Makefile.in (CCPROGDIRS): Add hpftodit.
13180 * devlj4/generate: New directory.
13182 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
13184 * configure.in: Don't use AC_VFORK.
13185 * groff/pipeline.c (run_pipeline): Use fork() always.
13187 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
13189 * grops/ps.cc (main): Use %1 not %s in error message for -w.
13191 * Makefile.in (CCPROGDIRS): Add grolj4.
13192 (DEVDIRS): Add devlj4.
13193 * grolj4, devlj4: New directories.
13194 * tmac/troffrc: Handle lj4.
13195 * tmac/tmac.lj4: New file.
13197 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
13199 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
13201 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
13203 * troff/input.cc (do_if_request): At end of second string, switch
13204 environments before getting next token.
13206 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
13208 * devps/psstrip.sed: Split rule that strips whitespace on either
13209 side of delimiters.
13211 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
13213 * troff/node.h (font_family::make_definition): Add return value to
13214 declaration. * troff/symbol.h (symbol::operator==,
13215 symbol::operator!=): Likewise.
13217 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
13219 * groff/groff.cc (main, help, synopsis): Handle -S.
13220 (possible_command::insert_arg): New function.
13222 * tmac/tmac.safer: New file.
13223 * tmac/msafer.man: New file.
13224 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
13226 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
13228 * pic/pic.h, pic/main.cc (safer_flag): New variable.
13229 * pic/pic.y (placeless_element): Avoid unsafe operations if
13230 `safer_flag' is set.
13231 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
13233 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
13235 * eqn/lex.cc (get_token): Put call to add_context() in block to
13236 work around Sun C++ 4.0 bug.
13238 * include/stringclass.h (operator +): Use ?: instead of `if' to
13239 work around Sun C++ 4.0 bug.
13241 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
13243 * tbl/main.cc (process_format): Accept - as a synonym for the _
13246 * libbib/index.cc (minus_one): Don't declare as const.
13248 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
13250 * troff/input.cc (get_char_for_escape_name): Push back a newline.
13252 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
13254 * troff/input.cc (write_macro_request): New function.
13255 (init_input_requests): Bind write_macro_request to writem.
13257 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
13259 * tmac/tmac.s (@EN): Turn filling back on even if there was no
13262 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
13264 * tmac/tmac.s (@TS): Renamed from TS.
13265 (TS): Call LP then TS again.
13266 (cov*ab-init): Alias @TS to TS.
13268 * tmac/tmac.s: Allow QP or RS to initialize.
13270 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
13271 Move initializations of PS and LL here.
13272 (par@init): Don't initialize HY. Avoid changing environment 0.
13273 (par*env-init): Don't all par@reset.
13275 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
13277 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
13279 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
13281 * Makefile.in (MDEFINES): Add LDFLAGS.
13282 (LDFLAGS): Add definition line.
13284 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
13286 * troff/input.cc (get_optional_char): Split off error check into...
13287 (check_missing_character): New function.
13288 * troff/token.h: Declare it.
13289 * troff/env.cc (margin_character): Don't call get_optional_char.
13290 Only call tok.next() after making the node.
13292 * include/lib.h (getopt): Make 2nd argument char *const *.
13294 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
13296 * nroff/conftest.sh: Deleted.
13298 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
13300 * pic/make-dos-dist: Deleted.
13302 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
13304 * devps/psstrip.sed: Strip comments before stripping trailing
13307 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
13309 * Version 1.09 released.
13311 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
13313 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
13315 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
13317 * libgroff/font.cc (font::load_desc): Fix typo in error message.
13319 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
13321 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
13322 about returning without a value.
13324 * troff/charinfo.h (charinfo::get_special_translation): Cast
13325 TRANSLATE_NONE to int.
13327 * refer/token.cc (lookup_token, store_token): Remove bogus loop
13328 test. Fix test so that it works with n unsigned.
13330 * pic/pic.y (defaults_table): Fully bracket initializer.
13331 * pic/lex.cc (lookup_keyword): Likewise.
13332 * eqn/lex.cc (token_table, def_table): Likewise.
13333 * eqn/box.cc (param_table): Likewise.
13334 * troff/input.cc (warning_table): Likewise.
13335 * libgroff/font.cc (table): Likewise.
13336 * grops/ps.cc (ps_printer::special): Likewise.
13337 * grops/psrm.cc (resource_manager::process_file): Likewise.
13338 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
13339 * refer/command.cc (command_table): Likewise.
13340 * addftinfo/addftinfo.cc (param_table): Likewise.
13342 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
13343 about temp's being unused.
13344 (unused): New function.
13346 * groff/pipeline.cc: Declare c_fatal.
13348 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
13351 * libbib/index.cc (index_search_item::load): Prevent compiler
13352 warnings about fd_closer's being unused.
13353 (unused): New function.
13355 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
13357 * troff/input.cc (copy_mode_error): Make `prefix' static.
13360 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
13362 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
13363 HAVE_CC_OSFCN_H and modify accordingly.
13365 * troff/input.cc (init_charset_table): radicalex overlaps
13368 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
13369 udodo!hans@relay.NL.net).
13370 * groff/configure.in: Call it.
13372 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
13373 * groff/configure.in: Call it.
13374 * include/lib.h: Conditionalize declaration of pclose.
13376 * troff/div.cc (last_page_number): New global variable.
13377 (top_level_diversion::begin_page): Exit if we just printed the
13379 * troff/div.h (last_page_number): Declare it.
13380 * troff/input.cc (parse_output_page_list): Set last_page_number.
13382 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
13383 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
13384 tmac/tmac.X: Likewise.
13385 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13386 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13388 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
13390 * tmac/doc-ditroff (hK): Remove groff specific code which
13391 prevented page-breaks between separate manual entries. If this is
13392 the first page, don't set the page number to 1.
13394 * acgroff.m4 (GROFF_POSIX): New macro.
13395 * configure.in: Use it.
13397 * troff/node.cc (class real_output_file,
13398 real_output_file::real_output_file,
13399 real_output_file::~real_output_file): Conditionalize use of
13400 popen/pclose on POPEN_MISSING.
13401 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13402 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13403 (pipe_source): Similarily.
13405 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13407 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13408 presence of declarations by trying to compile example with
13409 conflicting declarations. (gcc only gives a warning for missing
13412 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
13414 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13415 (from Ulrich Lauther).
13417 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
13419 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13421 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
13423 * indxbib/indxbib.cc (write_hash_table): Add code for case where
13424 pointers and ints have different sizes.
13426 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
13428 * tmac/tmac.s (par*env-init): Call par@reset.
13430 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
13432 * tmac/tmac.s (@IP): Switch to a new environment when diverting
13434 (par*push-tag-env, par*pop-tag-env): New macros.
13436 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
13438 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13439 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
13441 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13442 comment. Include <time.h>.
13444 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
13446 * grops/ps.cc (is_small_h, is_small_v): Deleted.
13447 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13450 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
13452 * troff/input.cc (read_request): Only print a prompt if reading
13453 from the terminal. Also clearerr on EOF if reading from the
13454 terminal. Declare isatty.
13456 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
13458 * refer/label.y: Rename map_t to map_func and extractor_t to
13461 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
13463 * include/assert.h: Don't use volatile.
13464 * libgroff/assert.cc: Likewise.
13466 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
13468 * troff/input.cc (abort_request): Look at character in tok before
13469 calling get_copy().
13471 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
13473 * troff/troff.h (NO_RETURN): Deleted.
13474 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
13475 * troff/input.cc (exit_troff): Likewise
13477 * Makefile.in: Remove `Making ...' messages since GNU make now
13480 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13482 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
13484 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13485 to constant 1 inch.
13487 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
13489 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13491 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
13493 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13494 MARK_REG if there was no left delimiter.
13496 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
13498 * pic/troff.cc (troff_output::text): Set line thickness to
13499 relative before outputting text.
13501 * tmac/tmac.e (@k): Don't zero ?T.
13504 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
13506 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13508 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
13510 * troff/input.cc (decode_args): Warn about unquoted tabs (from
13513 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
13515 * troff/input.cc (ignoring): New variable.
13516 (ignore): Set ignoring during call to do_define_macro.
13517 (do_define_macro): Clear ignoring before interpolating terminating
13519 (copy_mode_error): New function.
13520 (get_char_for_escape_name, read_long_escape_name,
13521 interpolate_arg): Use copy_mode_error.
13522 (warning_table): Add WARN_IG.
13523 * troff/troff.h (WARN_IG): Declare.
13524 (WARN_TOTAL): Change accordingly.
13526 * groff/pipeline.c (strsignal): Rename to xstrsignal.
13527 * groff/groff.cc (strsignal): Delete declaration.
13529 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
13531 * troff/div.cc (page_offset): Use 'm' as default scaling.
13533 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
13535 * nroff/nroff.sh: Ignore -u.
13537 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
13539 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13541 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
13543 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13545 (B2): With -Tascii, leave additional vertical space before
13546 and after. Ensure that the left and right indent is restored to
13547 what it was even if the point size changes. Don't call
13548 par@finish. Change the indent, line length and title length
13549 directly. With -Tascii, make the width of the box 1n less.
13550 (B1): Remember 1n at the current point size. Don't call
13551 par@reset. Change the indent, line length and title length
13552 directly. Ensure that the temporary indent is preserved.
13553 (par*box-mark-top): Turn off no spacing mode.
13555 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
13557 * Makefile.in (dist): Use .gz suffix.
13559 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
13561 * troff/input.cc (main): Add return 0.
13562 * pic/main.cc (main): Use return instead of exit.
13563 * tbl/main.cc (main): Likewise.
13564 * eqn/main.cc (main): Likewise.
13565 * grops/ps.cc (main): Likewise.
13566 * grotty/tty.cc (main): Likewise.
13567 * groff/groff.cc (main): Likewise.
13568 * grodvi/dvi.cc (main): Likewise.
13569 * refer/refer.cc (main): Likewise.
13570 * indxbib/indxbib.cc (main): Likewise.
13571 * lkbib/lkbib.cc (main): Likewise.
13572 * soelim/soelim.cc (main): Likewise.
13573 * addftinfo/addftinfo.cc (main): Likewise.
13574 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13575 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13577 * troff/token.h (process_input_stack): Don't declare as static.
13578 * troff/input.cc: Likewise.
13580 * troff/node.c (invalidate_fontno): Make it a static member of
13581 class font_family. Change callers.
13582 * troff/node.c: Change declaration.
13584 * tbl/main.cc (struct input_entry_format): Add explicit public
13586 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13587 struct double_hline_stuff): Likewise.
13588 * tbl/table.h (struct entry_format): Likewise.
13589 * pic/object.h (struct saved_state): Likewise.
13591 * include/stringclass.h: Add forward declarations of friend
13592 functions that are later declared as inline. Don't include inline
13593 specifier in friend declaration.
13595 * libgroff/lib.h: Declare popen and pclose.
13596 * acgroff.m4 (GROFF_POPEN): New macro.
13597 * configure.in: Call it.
13599 * include/lib.h (PI): New constant. Undef first if necessary.
13600 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13601 * grops/ps.cc (degrees, radians): Likewise.
13602 * libgroff/font.cc (font::get_skew): Likewise.
13604 * grops/ps.cc (is_ascii): New function.
13605 (ps_output::put_string): Use is_ascii. Use csprint rather than
13607 (ps_printer::define_encoding): Use csspace.
13608 * libgroff/strtol.c (ISASCII): New macro.
13609 (strtol): Cast arguments to is*() and tolower() to unsigned char.
13610 Use ISASCII rather than isascii.
13611 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13612 * libgroff/cset.cc: Likewise.
13613 * libdriver/input.cc: Include cset.h.
13614 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13617 * refer/refer.cc (main): Use %ld rather than %d for longs.
13619 * libbib/index.cc (index_search_item_iterator::get_tag): Use
13622 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13624 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
13626 * troff/input.cc (hyphenation_code): Skip white space between
13629 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
13631 * tbl/table.h (table::entry_list_tailp): New member.
13632 (table::table): Initialize it.
13633 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13636 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
13638 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13639 with negative horizontal positions. Remove casts of glyph::hpos to
13641 (USHRT_MAX): Delete definition.
13642 (SHRT_MAX, SHRT_MIN): New definitions.
13643 (glyph::hpos): Change type to short.
13644 (tty_printer::end_page): Output multiple backspaces if necessary.
13645 Remove casts of glyph::hpos to int.
13647 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
13649 * tmac/tmac.s (@RT): New definition.
13651 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
13653 * refer/refer.cc (do_file): Make sure current_filename is set when
13656 * pic/common.cc (common_output::dot_line): Handle zero length
13659 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
13661 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13662 (par@init): Initialize \n[HY].
13664 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
13666 * troff/dictionary.cc (dictionary::remove): Continue when
13669 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
13671 * Makefile.com (.y.cc): Avoid ending up with two versions of
13674 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
13676 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13677 (\(,C): Likewise. Also fix typo.
13679 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
13681 * lib.h: Delete extraneous semi-colon.
13683 * Add pso request: `so' from a pipe.
13684 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13685 (file_iterator::close): New function.
13686 (file_iterator::~file_iterator, file_iterator::next_file): Use
13687 file_iterator::close.
13688 (file_iterator::backtrace): Say `process' rather than `file' when
13689 the stream is popened.
13690 (pipe_source): New function.
13691 (init_input_requests): Bind ".pso" to pipe_source.
13693 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
13695 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13697 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
13698 digits in lower case.
13700 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
13702 * Version 1.08 released.
13704 * Makefile.in (dist): Insert || true after ln -s commands that
13707 * mm: Update to mm 1.16.
13709 * acgroff.m4 (GROFF_CSH_HACK): New macro.
13710 * configure.in: Call GROFF_CSH_HACK. Substitute for
13712 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
13714 * nroff/Makefile.sub (nroff): New target.
13715 (install_data): Install nroff.
13716 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13717 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13719 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
13721 * eqn/Makefile.sub (neqn): Add chmod +x.
13723 * grog/Makefile.sub (grog): Remove spurious semi-colon.
13725 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
13727 * troff/input.cc (string_iterator::string_iterator()): Initialize
13730 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
13732 * troff/div.cc (macro_diversion::space,
13733 top_level_diversion::space): Don't set high_water_mark.
13734 (macro_diversion::output, top_level_diversion::output): Don't
13735 include post line space in high water mark.
13737 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
13739 * eqn/eqn.y: Don't define YYDEBUG.
13740 * pic/pic.y: Likewise.
13742 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
13744 * tmac/tmac.e ([3): Add space after comma following editors.
13745 Change double spaces to single spaces.
13746 ([4): Change double spaces to single spaces.
13748 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13749 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13750 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13751 after %!PS-Adobe- (for Newsprint).
13753 * troff/div.cc (top_level_diversion::begin_page): When
13754 before_first_page is 1, set page_number to 1.
13756 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
13758 * eqn/box.cc (box::top_level): Protect equation with \&.
13760 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
13762 * groff/groff.cc (possible_command::set_name): Delete old name.
13764 * groff/groff.cc (possible_command::~possible_command): Use
13767 * troff/node.cc (troff_output_file::begun_page): New member.
13768 (troff_output_file::troff_output_file): Initialize it.
13769 (troff_output_file::really_begin_page): Only output V command if a
13770 page has been begun.
13772 * pic/pic.y (placeless_element): Delete argument to PRINT after
13775 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
13777 * Make wrapman work.
13778 * troff/div.h (class top_level_diversion): Replace
13779 first_page_begun by before_first_page (with opposite sense).
13780 * Change first_page_begun to before_first_page inverting sense.
13781 * troff/div.cc (class nl_reg): New class.
13782 (init_div_requests): Use class nl_reg for \n(nl.
13783 (top_level_diversion::begin_page): Don't call
13784 output_file::begin_page if before_first_page is 2;
13785 reset before_first_page afterwards. If have_next_page_number is
13786 false, then always increment page_number.
13787 * tmac/tmac.an: Set traps within TH rather than at the top-level.
13788 Restore compatibility mode after loading, and then disable
13789 compatibility mode in TH.
13791 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
13793 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13795 * troff/node.h (output_file::trailer): Declare.
13796 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13797 * troff/node.cc (output_file::trailer): New function.
13798 (troff_output_file::~troff_output_file): Move most code into...
13799 (troff_output_file::trailer): New function.
13800 (class troff_output_file): Delete page_length member. Declare
13802 (troff_output_file::really_begin_page): Use current page length
13803 for final V command.
13805 * tbl/main.cc (struct options): New decimal_point_char member.
13806 (options::options): Initialize this.
13807 (process_options): Implement decimalpoint option.
13808 (process_data): Pass decimal_point_char option to table::table.
13809 * tbl/table.h (class table): New decimal_point_char member.
13810 (table::table): Add additional argument.
13811 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13812 second argument specifying decimal point character. Use this
13814 (table::table): Initialize decimal_point_char.
13815 (table::add_entry): Change call to find_dot.
13817 * troff/input.cc (get_copy, token::next): Implement \V.
13818 (interpolate_environment_variable): New function.
13820 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
13822 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13823 * pic/pic.y: Likewise.
13825 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13827 * refer/ref.cc (reference::insert_field, reference::delete_field):
13829 * troff/number.cc (parse_term): Likewise.
13831 * acgroff.m4 (GROFF_PROG_YACC): New macro.
13832 * configure.in: Use GROFF_PROG_YACC.
13834 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13836 * Makefile.in (OPTIMIZE): New define.
13837 (DEBUG): Empty by default.
13838 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13840 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13841 (GROFF_ARRAY_DELETE): Likewise.
13842 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13844 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13846 * devps/psstrip.sed: Use different delimiter on last line (so that
13847 it works with BSD 4.4 sed.)
13849 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
13851 * devps/psstrip.sed: Delete comments.
13853 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13854 optind, opterr, optarg.
13855 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13858 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
13860 * Makefile.in (check): Dummy target.
13862 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
13864 * Version 1.07 released.
13866 * Integrate mm 1.11.
13868 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13869 where start_col was meant.
13871 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
13873 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13875 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
13877 * troff/input.cc (token::next): Make \z\o'...' and similar things
13880 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13882 (environment): Add margin_character_flags member.
13883 * env.cc (environment::environment(symbol),
13884 environment::environment(const environment *): Initialize
13885 margin_character_flags.
13886 (margin_character): Rewrite.
13887 (environment::output_line): Add a margin character if
13888 margin_character_flags is non-zero. Turn off the
13889 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
13890 zero, use margin_character_node without copying and then set
13891 margin_character_node to 0.
13893 * devps/DESC.in: Change minimum size to 1000.
13895 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
13897 * troff/symbol.h (symbol::hash): Change return type to unsigned
13899 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13902 * test-groff: Use -r rather than -x.
13904 * grops/psfig.diff: Include in distribution again.
13906 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
13908 * Makefile.in (dist): Use gzip.
13910 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
13912 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13913 unistd.h as well as in stdlib.h.
13914 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13915 defined; otherwise include <sys/types.h> and <unistd.h> if
13916 UNISTD_H_DECLARES_GETOPT is defined.
13918 * configure.in: use builtin(include, ... rather than include(...
13919 * configure: Regenerate with autoconf 1.3.
13921 * libdriver/print.cc (printer::adjust_arc_center): Use new
13922 algorithm suggested by Andy Fyfe.
13924 * libdriver/printer.cc (printer::adjust_arc_center): New function.
13925 * include/printer.h: Declare this.
13926 * grops/ps.cc (ps_printer::draw): Use it.
13927 * grodvi/dvi.cc (dvi_printer::draw): Use it.
13929 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
13931 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13933 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
13935 * eqn/main.cc (main): Handle "eqn -".
13937 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
13939 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13941 * mm: Integrate version 1.08.
13943 * pic/troff.cc (troff_output::finish_picture): Set
13944 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13945 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13946 if it's not defined. Check whether the register is non-zero rather
13947 than whether it's not defined.
13948 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13950 * indxbib/indxbib.cc: Move all signal handling into...
13951 * indxbib/signal.c: New file.
13952 * configure.in: Call AC_RETSIGTYPE.
13954 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13955 * configure.in: Call GROFF_STRUCT_EXCEPTION.
13956 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13958 * troff/input.cc (token::token, token::operator=): Work round SGI
13960 * pic/object.cc (position::position): Likewise.
13962 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
13964 * pic/pic.h: Move declaration of hypot().
13966 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
13968 * pic/pic.h: Declare hypot().
13970 * pic/pic.h: Define M_PI if necessary.
13972 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
13974 * tmac/tmac.e (re): Add alternative version that doesn't use groff
13977 * devps/prologue.ps (RE): Handle the possibility that the old font
13978 doesn't have a FontName entry.
13980 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
13982 * tmac/tmac.e (fam): Redefine to set family in environment 2.
13983 (@C): Use @fam not fam.
13985 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
13987 * lookbib/lookbib.cc (main): Change type of start to const char *.
13988 * lkbib/lkbib.cc (main): Likewise.
13990 * eqn/lex.cc (definition::definition): Don't use member
13991 initializer syntax for members of anonymous unions.
13993 * troff/input.cc (input_stack::backtrace): Change type of to const
13996 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
13998 * include/stringclass.h (class string): Declare inline friend
13999 functions as inline in class declaration.
14000 * troff/hvunits.h (class hunits, class vunits): Likewise.
14001 * include/refid.h (class reference_id): Likewise
14002 * troff/troff.h (points_to_units(units), scale(units, double)):
14003 Delete declarations.
14004 * libdriver/input.cc (get_char): Delete declaration.
14005 * include/lib.h: Change 2nd argument of getopt from const char **
14007 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
14008 char **' before assigning to a `const char **'.
14009 * tbl/table.cc: Delete extra declarations of prints().
14011 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
14013 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
14014 char **' before assigning to a `const char **'.
14016 * libgroff/errarg.cc (errarg::errarg): Don't use member
14017 initializer syntax for members of anonymous unions.
14019 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
14021 * mm: Integrate version 1.07.
14023 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
14025 * troff/input.c (translate2): Rename to
14026 (translate_no_transparent).
14027 (init_input_requests): Rename tr2 to trnt.
14029 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
14031 * troff/charinfo.h (class charinfo): Add transparent_translate field.
14032 (charinfo::set_translation, charinfo::set_special_translation):
14033 Add second argument that specifies value for
14034 transparent_translate.
14035 (charinfo::get_translation, charinfo::get_special_translation):
14036 Add optional second argument that specifies whether translation is
14037 being used for transparent throughput.
14038 * troff/input.cc (charinfo::set_translation,
14039 charinfo::set_special_translation): Handle second argument.
14040 (charinfo::charinfo): Initialize transparent_translate.
14041 (translate): Split main part off into
14042 (do_translate): New function. Pass argument saying whether
14043 translation applies to transparent throughput.
14044 (translate2): New request.
14045 (init_input_requests): Bind translate2 to `tr2'.
14047 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
14049 * tbl/table.h (class table): Add `nokeep' flag.
14050 * tbl/main.cc (process_options): Handle `nokeep' option.
14051 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
14052 table::do_bottom): Don't output keep/release macro definitions or
14053 calls when `nokeep' option has been specified.
14055 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
14057 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
14059 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
14061 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
14062 block_entry::divert, alphabetic_block_entry::divert): Add extra
14063 argument giving column separation.
14064 (table::compute_widths): Pass column separation to
14065 table_entry::divert().
14066 (block_entry::do_divert): If an entry spans multiple columns and a
14067 minimumum width has been specified for each column, then set the
14068 line length to the sum of the widths (plus possibly the column
14071 * troff/input.cc (set_escape_char): Don't set the escape_char
14072 until after calling has_arg().
14074 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
14076 * tbl/table.cc (table::do_top): Add missing \s0 for double box
14079 * tbl/table.cc (table::print_double_hline): Avoid extra new line
14080 in case where r > nrows - 1.
14082 * tbl/table.cc (BODY_HEIGHT): Deleted.
14083 (LINE_SEP): New definition.
14084 (table::print_single_hline, table::print_double_hline,
14085 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
14086 table::do_row, table::do_top): Use LINE_SEP space before a line
14087 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
14089 * tbl/table.cc (text_entry::print_contents): New function.
14090 (text_string_name, right_text_string_name): Deleted.
14091 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
14092 (simple_text_entry::do_width, numeric_text_entry::do_width,
14093 alphabetic_text_entry::do_width): Don't store the contents of the
14095 (left_text_entry::simple_print, right_text_entry::simple_print,
14096 center_text_entry::simple_print,
14097 alphabetic_text_entry::simple_print,
14098 numeric_text_entry::simple_print): Print the entry directly
14099 instead of using the stored string.
14101 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
14103 * devps/Makefile: Strip PostScript files.
14104 * devps/prologue: Rename to...
14105 * devps/prologue.ps.
14106 * devps/psstrip.sed: New file.
14107 * devps/download: Use .pfa rather than .ps for installed versions
14110 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
14112 * troff/env.cc (input_trap): Give a warning if the argument is out
14115 * troff/env.cc (adjust): Treat negative argument as missing. Round
14116 argument > 5 down to 5.
14118 * troff/env.cc (center, right_justify): Make negative argument zero.
14120 * troff/div.cc (page_offset, vertical_position_traps): Treat
14121 invalid argument as missing.
14122 * troff/env.cc (line_spacing, line_length, title_length, indent,
14123 underline, hyphen_line_max_request, control_char,
14124 no_break_control_char, widow_control_request, adjust, input_trap,
14125 point_size): Likewise.
14126 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
14127 constant_space): Likewise.
14128 * troff/input.cc (compatible, shift, warn_request,
14129 set_escape_char): Likewise.
14131 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
14132 * tbl/table.cc (table::table): Likewise.
14134 * Makefile.dev (install_dev): depends on $(DEVFILES).
14136 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
14138 * devX75, devX75-12, devX100, devX100-12: New directories.
14139 * Makefile.in: Add these to DEVDIRS.
14141 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
14142 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
14143 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
14144 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
14146 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
14147 (uninstall): New target.
14148 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
14149 uninstall_prog, uninstall_dev): New targets.
14151 * troff/div.cc (return_request): Treat an invalid argument as
14154 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
14156 * tmac/tmac.e ((f): Set up the environment even when there's a
14157 current diversion. Transperently throughput a call to @N.
14160 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
14162 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
14163 up to vertical resolution.
14165 * tbl/table.cc (table::do_row): Change row number after printing
14168 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
14170 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
14172 * Rename CHANGES to NEWS.
14174 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
14176 * libgroff/new.cc (operator new): Avoid calling malloc(0).
14178 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
14180 * man.ultrix: Removed.
14182 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
14184 * Makefile.comm (extraclean): Delete files whose names begin with
14187 * pic/troff.cc (troff_output::text): Fix typo in implementation of
14190 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
14192 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
14193 * troff/div.cc (page_length, need_space, space_request): Treat
14194 invalid optional argument as missing.
14195 * troff/env.cc (number_lines): If the first argument is present
14196 but not a number, turn on line numbering, don't change the next
14197 line number and parse the remaining arguments.
14199 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
14201 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
14203 * eqn/box.h: Change declaration accordingly.
14204 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
14205 the specified size was bad but don't give an error. Check for
14207 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
14208 * eqn/lex (do_size): Likewise.
14210 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
14212 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
14213 compatible headers.
14215 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
14217 * tbl/table.cc (table::init_output): Improve error message when
14218 table won't fit on one page.
14220 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
14222 * pic/troff.cc (troff_output::start_picture): Generate line
14223 containing a horizontal motion equal to the width of the picture.
14225 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
14226 using GROFF_COMMAND_PREFIX environment variable.
14228 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
14230 * mdate.sh: Use $NF rather than $(NF).
14232 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
14234 * pic/main.cc (main): Use %1 not %c in argument to warning.
14236 * eqn/main.cc (main): Output code to check that geqn was given the
14239 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
14241 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
14242 `ln -s ../Makefile .; make; rm -f Makefile'.
14244 * troff/hyphen: Rename to...
14246 * troff/input.cc (main): Delete -H option. Don't call
14247 read_hyphen_file().
14248 * troff/env.cc: Include searchpath.h and macropath.h.
14249 (exception_dictionary): Deleted.
14251 (read_hyphen_file): Deleted.
14252 (hyphenation_language): New struct.
14253 (class trie, class hyphen_trie): Move declarations up.
14254 (trie_node::~trie_node): Deleted.
14255 (trie::delete_trie_node): New function.
14256 (trie::do_delete): New pure virtual function.
14257 (hyphen_trie::do_delete): New function.
14258 (trie::~trie): New function.
14259 (hyphen_trie::~hyphen_trie): New function.
14260 (trie::clear): No need to chcek that tp is not 0.
14261 (current_language, language_dictionary): New variables.
14262 (hyphen_word): Give an error if no current language. Use
14263 exceptions dictionary in current language.
14264 (hyphen_trie::read_patterns_file): Find file using macro_path.
14265 Allow comments (starting with %) in patterns file. Don't make it
14266 a fatal error if the file can't be found.
14267 (hyphenate): Return if no current language. Get the exceptions
14268 dictionary and the hyphenation patterns from the current language.
14269 (set_hyphenation_language): New variable.
14270 (hyphenation_patterns_file): New function.
14271 (hyphenation_language_reg): New class.
14272 (hyphenation_language_reg::get_string): New function.
14273 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
14274 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
14276 * groff/groff.cc (main, help, synopsis): Delete -H option.
14277 * include/Makefile.sub: Don't define HYPHENFILE.
14278 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
14279 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
14280 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
14281 hyphenation patterns.
14283 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
14285 * eqn/neqn.sh: New file.
14286 * eqn/Makefile.sub: Handle neqn.sh.
14288 * eqn/eqn.h: Declare `nroff' variable.
14289 * eqn/box.cc (param_table): Add `nroff' param.
14290 (nroff): Define it.
14291 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
14293 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
14295 * troff/troff.h (WARN_FONT): New warning.
14296 (WARN_TOTAL): Change accordingly.
14297 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
14298 (warning_table): Add WARN_FONT.
14299 * troff/node.cc (mount_font_no_translate): Pass argument to
14300 font::load_font. If this is non-zero, give a warning.
14301 Don't give an error message when accessing a font that has already
14302 been found to be invalid.
14303 * include/font.h (font::load, font::load_font): Add additional
14304 optional argument which suppresses error message if the font is
14306 * libgroff/font.cc (font::load_font): Handle additional argument.
14307 (font::load): Add additional argument. If this is non-null, set it
14308 to 1 and don't give error message.
14310 * include/printer.h (printer::end_page): Add argument giving
14312 * libdriver/input.cc (do_file): Pass this.
14313 * grops/ps.cc (ps_printer::end_page): Add argument.
14314 * grodvi/dvi.cc (dvi_printer::end_page,
14315 draw_dvi_printer::end_page): Add argument.
14316 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
14317 columns_per_page members. New member nlines.
14318 (DEFAULT_LINES_PER_PAGE): Deleted.
14319 (tty_printer::tty_printer): Don't compute lines_per_page from
14320 font::paperlength. Don't compute columns_per_page from
14322 (tty_printer::add_char): Don't check horizontal position against
14323 columns_per_page. Grow glyphs vector if neccessary.
14324 (tty_printer::end_page): Add argument giving page_length in units.
14325 Discard lines past end of page.
14327 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
14329 * tmac/tmac.tty-char: Fix definition of \(/l.
14331 * tmac/tmac.X: Define \(en.
14333 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
14335 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
14336 lpq, then use lp rather than lpr.
14338 * tmac/tmac.s (par@reset): Don't call `ad'.
14339 (par*env-init): Call `ad'.
14341 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
14343 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
14346 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
14347 * indxbib/indxbib.cc: Likewise.
14349 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
14351 * libgroff/putenv.c: New file.
14352 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
14353 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
14354 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
14355 stdlib.h with AC_HAVE_HEADERS.
14357 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
14359 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
14362 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
14364 * eqn/box.cc (gsize): Make it an int.
14365 (set_gsize): Parse argument handling increment or decrement.
14366 (box::top_level): Convert gsize to a string.
14368 * troff/input.cc (exit_troff): Make buf unsigned char [].
14369 Call to make_temp_iterator casts buf to char*.
14371 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
14373 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
14374 * Makefile.cpg (depend.temp): Likewise.
14376 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
14378 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
14380 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
14382 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
14384 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
14386 * Version 1.06 released.
14388 * Integrate mm 1.04.
14390 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
14392 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14394 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
14396 * afmtodit/afmtodit.pl: Add -n option that disables generation of
14398 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14399 afmtodit. Regenerate.
14401 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14402 @f back past the current position.
14404 * tmac/tmac.e: Change calls to @R so that comments are not part of
14407 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
14409 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14411 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14412 check that we can link a call to a function declared in <stdio.h>.
14413 (GROFF_UNISTD_H): New macro.
14414 * configure.in: Call it.
14415 * Makefile.in: Document it.
14416 * include/posix.h: New file.
14417 * troff/troff.h: Don't include <osfcn.h>
14418 * troff/input.cc: Include posix.h.
14419 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14421 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14422 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14424 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14425 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14426 * libbib/search.cc (O_RDONLY): Delete definition.
14427 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14428 Don't include <osfcn.h>.
14430 * acgroff.m4 (GROFF_TIME_T): New macro.
14431 * configure.in: Call it.
14432 * Makefile.in: Document it.
14434 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14435 * configure.in: Call it.
14436 * Makefile.in: Document -DTRADITIONAL_CPP.
14437 * include/ptable.h: Don't include generic.h.
14438 (name2): Define it.
14440 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14441 Afterwards remove [T1 and [T2.
14442 (ref*spec!0, ref*spec!2): Use T1 rather than T.
14443 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14444 (ref*add-T2): Renamed from ref*add-T.
14445 (ref*add-T1): New macro.
14447 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
14449 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14451 * libbib/index.cc: Include <fcntl.h>.
14452 (O_RDONLY): Define if necessary.
14453 (make_index_search_item, index_search_item_iterator::get_tag,
14454 index_search_item::check_files): Use O_RDONLY.
14455 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14456 (O_RDONLY): Define if necessary.
14457 (search_list::add_file): Use O_RDONLY.
14458 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14460 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14463 * libbib/index.cc (S_ISREG): Define it if necessary.
14464 (index_search_item::load): Use S_ISREG.
14466 * include/driver.h: Include <errno.h>.
14468 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
14470 * eqn/box.cc (body_height): Increase default value to 85.
14471 (body_depth): Increase default value to 35.
14473 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
14475 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14476 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14477 protected from expansion with \E.
14479 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14481 * Makefile (Makefile): New target.
14483 * Makefile.sub (configure, distfiles): New targets.
14485 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14488 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
14490 * eqn/box.cc (param_table): Add body_height and body_depth.
14492 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14494 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
14496 * psbb/Makefile.sub: Don't link with libgroff.a.
14498 * acgroff.m4 (GROFF_PUTENV): New macro.
14499 * configure.in: Call GROFF_PUTENV.
14500 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14501 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14504 * troff/env.cc (distribute_space): Rename force_forward argument
14505 to force_reverse. Reverse the list if force_reverse is true.
14507 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
14509 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14511 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14512 height or depth to be negative. Guard against SUP_RAISE quantity
14515 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
14517 * devps/generate/textmap: Add `an' (arrowhorizex).
14518 * tmac/tmac.ps: \(an overlaps horizontally.
14519 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14521 * devps/symbolchars: Add arrowverttp, arrowvertbt.
14522 * devps/textmap: Add arrowvertex.
14523 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14524 updownarrow delimiters.
14525 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14527 * tbl/table.cc (simple_entry::position_vertically,
14528 block_entry::position_vertically): For a centered entry, perform
14529 the motion in two stages.
14531 * refer/refer.cc (split_punct): Don't call lookup_token if there
14534 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
14536 * troff/input.cc (token::next): Delete token_node after copying
14539 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14542 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14544 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14546 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
14548 * grops/ps.cc (usage): -b option takes an argument.
14550 * devps/prologue (PLG): New procedure.
14551 * grops/ps.cc (main, usage): New -g option.
14552 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
14555 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
14557 * include/cset.h: Include <limits.h> if we have it.
14559 * libgroff/illegal.cc: New file.
14560 * include/lib.h (illegal_input_char): Use table.
14561 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14562 * pic/lex.cc (ARG1): Renumber to 14.
14563 * eqn/lex.cc (ARG1): Likewise.
14565 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14566 (eg 1.05.90) correctly.
14568 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
14570 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14571 Rename $r and $R registers to $v and $V.
14572 ($r, $R): Initialize to 0.
14573 (@v, @V): New macros.
14577 * troff/input.cc (main, usage): Add -R option that says not to
14579 * eqn/main.cc (main, usage): Rename -n to -R.
14581 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
14583 * devps/DESC.in: Leave font positions 5-9 blank.
14584 * devdvi/DESC.in: Likewise.
14586 * grog/grog.pl: Handle `.PS <file' correctly.
14588 * troff/input.cc (input_stack::push): Improve error message when
14589 input stack limit exceeded.
14591 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
14593 * refer/refer.cc (main): Fix typo in handling of `a' option.
14595 * refer/refer.cc (do_bib): In state START after a newline remain
14598 * groff/groff.sh: Deleted.
14599 * groff/Makefile.sub: Delete handling of groff.sh.
14601 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14602 to determine whether to use \X'ps:...'.
14603 * tmac/troffrc: Set 0p register to 0.
14604 * tmac/tmac.ps: Set 0p register to 1.
14606 * groff/groff.cc: Support -X option. Give warning for -TXps and
14607 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14608 * tmac/troffrc: Support -r.X=1.
14610 * pic/troff.cc (troff_output::dot): Don't test
14611 zero_length_line_flag.
14613 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
14615 * include/lib.h: Declare getopt() and friends unless
14616 STDLIB_H_DECLARES_GETOPT is defined.
14618 * doc/chars.tr: Delete.
14619 * man/groff_char.man: New file.
14621 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
14623 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14624 user has changed register format.
14626 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
14628 * groff/groff.cc: Get rid of device_table. Get postprocessor from
14629 `postpro' command in DESC file. Get spooler command from `print'
14630 command in DESC file. Execute spooler command with /bin/sh.
14632 * groff/groff.cc: Split Unix-specific parts into...
14633 * groff/pipeline.c: New file.
14636 * COPYING: New file.
14637 * all files: Update copyright notices.
14639 * Rearrange files. Redo Makefiles. Use autoconf.
14641 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
14643 * troff/input.c (charinfo_to_node_list): Interpret character
14644 definition with escape_char of `\'.
14646 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
14648 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14649 Define INT_DIGITS as big enough for 64-bit integer.
14650 * lib/strtol.c: Don't include lib.h.
14651 * lib/lib.h: Delete ifdef __cplusplus stuff.
14653 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
14655 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
14656 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
14657 get DESC from current directory.
14659 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
14661 * tbl/main.c (main): Always reset the line number when reading
14664 * tbl/table.c (table::print_single_hline, table::print_double_hline,
14665 table::define_bottom_macro, table::do_row, table::do_top): Round
14666 vertical spacing up to vertical resolution.
14668 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
14670 * ps/ps.h (enum resource_type): Avoid comma at end of
14672 * dvi/dvi.c (class dvi_printer): Likewise.
14673 * dvi/tfmtodit.c (gf::load): Likewise.
14674 * refer/label.y (struct expression): Likewise.
14675 * refer/refer.c (class label_processing_state): Likewise.
14676 * refer/indxbib.c (do_file): Likewise.
14677 * troff/troff.c (enum warning_type): Likewise.
14678 * tbl/main.c (process_data): Likewise.
14679 * troff/charinfo.h (class charinfo):
14681 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
14683 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
14685 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
14687 * groff.c: Move to new groff subdirectory.
14688 * groff/Makefile: New file.
14689 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14691 * man/mdate.sh: Use ls -L if supported.
14693 * Consolidate all header files produced by gendef into lib/defs.h.
14694 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14695 Don't include path.h.
14696 * lib/Makefile (path.h): Don't generate.
14697 * troff/input.c: Include defs.h. Don't include config.h.
14698 * troff/Makefile (config.h): Don't generate.
14699 * refer/index.h: Don't include suffix.h.
14700 * refer/index.c: Include defs.h.
14701 * refer/indxbib.c: Include defs.h.
14702 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14704 * refer/Makefile (suffix.h, path.h): Don't generate.
14705 * groff.c: Don't include config.h. Include defs.h.
14706 * Makefile (config.h): Don't generate.
14707 (lib/defs.h): Generate.
14708 (topclean): Remove lib/defs.h.
14710 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
14712 * lib/malloc.c, lib/getpagesize.h: Deleted.
14713 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
14715 * lib/Makefile: Delete malloc-related stuff.
14716 * lib/new.c: Workaround COOKIE_BUG if necessary.
14718 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
14719 needed header files directly.
14720 * refer/refer.h: Omit definition of DEFAULT_INDEX.
14721 * Makefile: Include definition of DEFAULT_INDEX in path.h.
14723 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
14725 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14727 * lib/font (font::load_desc, font::load): Don't split argument of
14729 (font::handle_unknown_font_command): Change type.
14730 * ps/ps.c (ps_font::handle_unknown_font_command,
14731 handle_unknown_desc_command): Change type.
14732 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14734 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
14736 * lib/font.h (font::handle_unknown_font_command): Add file and
14738 * lib/font.c (font::handle_unknown_font_command):
14739 * ps/ps.c (ps_font::handle_unknown_font_command):
14740 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14741 lineno arguments. Use _with_file_and_line functions for error
14744 * lib/fontfile.c (font::unknown_desc_command_handler): New static
14746 * lib/font.c (font::set_unknown_desc_command_handler): New
14748 (font::load_desc): For unknown commands, call
14749 unknown_desc_command_handler if not null.
14750 * lib/font.h (class font): Declare them.
14751 (FONT_COMMAND_HANDLER): New typedef.
14752 * ps/ps.c (handle_unknown_desc_command): New function.
14753 (main): Set bflag if we had a -b option. Call
14754 font::set_unknown_desc_command_handler.
14755 (broken.h): Don't include.
14756 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
14758 * ps/devps/Makefile: Add `broken' command to DESC file using
14759 BROKEN_SPOOLER_FLAGS.
14761 * macros/tmac.e ([, ]): Add as synonyms for { and }.
14763 * macros/tmac.e ($p): Only exdent if \$3 > 0.
14765 * macros/tmac.e (@R, @S): New macros.
14766 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14767 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14768 Declare $H, $[0-9], .. macros with @S.
14769 Declare |0, |1, |2, |3 strings with @S.
14771 * macros/tmac.e (@S): Rename to @U.
14773 * macros/tmac.e (@z): Define @b and bp as empty instead of
14776 * macros/tmac.e (@m): Deleted.
14777 (@h): Don't call @m.
14778 (@z): Don't set @m trap.
14780 * macros/tmac.e ($h, $f): Define |z as empty string.
14782 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14785 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14787 ()f): Likewise for * register.
14789 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14790 argument is missing, don't change $R. Call sr with three
14791 arguments when initializing.
14793 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
14795 * macros/tmac.e (sr): New macro.
14796 Initialize $r and $R using sr.
14798 * macros/tmac.e (,): Delete \*(#[.
14800 * troff/env.c (set_tabs): Read the tab type even if the position
14801 is bad. Allow the position of the first tab stop to be negative.
14803 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
14805 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14807 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14808 rather than -DPATHCONF_MISSING.
14809 * Makefile: Get rid of PATHCONF_MISSING.
14811 * refer/map.c: New file.
14812 * refer/index.c: Interface to mmap through map.c. Rename map_size
14814 * refer/Makefile: Handle map.c.
14815 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14817 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
14819 * Makefile: RANLIB should be `true' if there is no ranlib.
14820 * lib/Makefile (libgroff.a): Simplify.
14821 * driver/Makefile (libdriver.a): Simplify.
14823 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14824 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
14827 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
14829 * troff/env.c (compare_ranges): Declare as extern "C".
14831 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14833 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14835 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
14837 * pic/troff.c (troff_output::text): Merge in grops_output::text,
14838 but conditionalize use of \X based on \*(.T.
14839 (grops_output::*): Deleted.
14840 * pic/output.h: Delete declaration of make_grops_output.
14841 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
14842 by default. -n sets it to 0.
14843 (usage): Corresponding changes.
14844 * groff.c (main): Don't pass -x or -p to pic.
14845 * groff.sh: Likewise.
14847 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14850 * ps/devps/afmtodit: Change calculation of asc_boundary and
14851 desc_boundary. Make these bounds inclusive.
14852 * ps/devps: Regenerate font files.
14854 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
14856 * macros/tmac.latin1: New file.
14857 * macros/tmac.tty-char: Use tmac.latin1.
14858 (tmac.tty-tr): Deleted.
14859 * macros/Makefile: Install tmac.latin1.
14860 * macros/tmac.dvi: Use tmac.latin1.
14861 * macros/troffrc: Translate \[char160] onto no-break space here.
14862 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14864 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
14866 * macros/tmac.Xps: Use `do' request.
14868 * macros/tmac.ps: Use `do' request.
14870 * macros/tmac.e (@C): Use `do' request.
14872 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14873 * macros/Makefile: Install tmac.X*.
14875 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14876 * tty/Makefile: Don't install tmac.tty*.
14877 * macros/Makefile: Install tmac.tty*.
14879 * dvi/tmac.dvi: Move to macros.
14880 * dvi/Makefile: Don't install tmac.dvi.
14881 * macros/Makefile: Install tmac.dvi.
14883 * ps/tmac.ps*: Move to macros.
14884 * ps/Makefile: Don't install tmac.ps*.
14885 * macros/Makefile: Install tmac.ps*.
14887 * eqn/box.c: Provide draw_lines parameter corresponding to -D
14889 * macros/eqnrc: Set draw_lines parameter based on device.
14890 * groff.c: Don't pass -D flag to eqn.
14891 * groff.sh: Likewise.
14892 * eqn/main.c: Warn about use of -D.
14894 * troff/input.c (process_startup_file): New function.
14895 (main): Call process_startup_file().
14896 * macros/troffrc: New file.
14897 * macros/Makefile: Install troffrc.
14898 * groff.c (main): Don't pass extra -m option to troff. For a
14899 pseudo device pass the name of the pseudo device to troff using
14901 * groff.sh: Likewise.
14902 * groff.c (possible_command::prepend_arg): Deleted.
14904 * troff/input.c (do_request): New function.
14905 (init_input_requests): Bind "do" to do_request.
14907 * eqn/main.c (main): Instead of loading eqnchar from device directory,
14908 load eqnrc from macro directory.
14909 * macros/eqnrc: New file.
14910 * macros/Makefile: Install eqnrc.
14911 * ps/devps/eqnchar: Deleted.
14912 * ps/devps/Makefile: Don't install eqnchar.
14913 * dvi/devdvi/eqnchar: Deleted.
14914 * dvi/devdvi/Makefile: Don't install eqnchar.
14915 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14918 * lib/device.[ch]: New files.
14919 * lib/font.h (font::set_device_name, font::get_device_name):
14921 * lib/fontfile.c: Use device.h.
14922 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14923 * troff/input.c: Delete definition of `device'.
14924 (main): Don't initialize device.
14925 * troff/troff.h: Include device.h rather than declaring device.
14926 * troff/Makefile: No need to handle DEVICE.
14927 * driver/input.c: Include device.h. Don't use
14928 font::{set,get}_device_name.
14929 * groff.c, Makefile: Rename device.h to config.h.
14930 * groff.c: Use library device variable.
14931 * eqn/main.c: Use library device variable.
14932 * eqn/Makefile: No need to handle DEVICE.
14934 * lib/searchpath.[ch]: New files.
14935 * lib/Makefile: Handle searchpath.[ch].
14936 * troff/input.c (open_file, init_dirs): Deleted.
14937 (macro_dirs): Deleted.
14938 (open_mac_file, macro_source): Use class search_path.
14939 (add_string, struct string_list): Move definition.
14940 (main): Change -M option to use macro_path. Delete call to
14942 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14943 Rewrite to use class search_path.
14944 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14945 * lib/Makefile: fontfile.c depends on searchpath.h.
14946 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14948 * lib/macropath.[ch]: New files.
14949 * troff/Makefile: No need to handle MACROPATH.
14951 * troff/input.c: Delete DUMP code.
14952 * lib/fontfile.c, lib/font.h: Delete
14953 font::forget_command_line_font_dirs.
14955 * troff/input.c (push_token): New function.
14956 (handle_first_page_transition): Use push_token().
14957 (process_input_stack): Change handling of a space at the beginning
14960 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
14962 * troff/input.c (font_dirs): Delete unused variable.
14964 * eqn/lex.c (do_set): Correct error messages.
14966 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
14968 * troff/input.c (do_define_string): Allow the string name to be
14969 followed immediately by a tab.
14970 (define_character): Likewise.
14972 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
14974 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14977 * troff/input.c (input_iterator::is_file): New virtual function.
14978 (file_iterator::is_file): New function.
14979 (input_stack::end_file): New function.
14980 (input_stack::next_file): Handle the situation where there is no
14981 file on the input stack correctly. Avoid making two passes over
14983 (next_file): Make the filename optional; in this case call
14984 input_stack::end_file().
14986 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
14988 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14989 produce a real _ charater when the current font is CW and _
14992 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14993 expression to work around gcc 2.2 bug.
14995 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
14997 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14999 * troff/env.c (environment::add_padding): New function.
15000 (environment::add_char): Use add_padding().
15001 (environment::space): Likewise.
15002 (environment::wrap_up_field): Add some padding if there is none
15003 and there's no current tab.
15004 * troff/env.h: Declare environment::add_padding.
15006 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
15008 * pic/pic.y: undef fmod and rand before declaring them.
15010 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
15012 * troff/input.c (main): If the DESC file specifies a font name of
15013 0, then leave the corresponding font position empty.
15015 * nroff.sh: New file.
15016 * Makefile (install.nobin): Install nroff.sh.
15018 * tty/devlatin1/R.proto: Add ao as synonym for de.
15019 * tty/tmac.tty-char: Define ao as o.
15021 * tty/dev{ascii,latin1}/R.proto: Add aq.
15022 * tty/tmac.tty-char: Delete definition of aq.
15024 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
15026 * troff/input.c (init_charset_table): Don't translate 0240.
15027 * ps/tmac.ps: Translate char160 to space.
15028 * dvi/tmac.dvi: Likewise.
15029 * tty/tmac.tty: Likewise.
15031 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
15033 * dvi/tmac.dvi: Add support for all Latin-1 characters.
15035 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
15036 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
15039 * tty/tmac.tty-char: Add \(ah.
15041 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
15042 No need to define \(FM and \(!/. Conditionalize all character
15045 * ps/devps/lgreekmap: Add +h, +f, +p.
15047 * ps/tmac.psnew: New file.
15048 * ps/Makefile: Install tmac.psnew.
15050 * troff/input.c (charinfo_to_node_list): Don't ever interpret
15051 character definitions in compatible mode.
15053 * troff/input.c (remove_character): New function.
15054 (init_input_requests): Bind remove_character to "rchar".
15056 * ps/tmac.psold: New file.
15057 * ps/Makefile: Install tmac.psold.
15058 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
15059 characters into tmac.psold. Make these definitions unconditional.
15061 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
15063 * ps/tmac.ps: Don't define \('c and \('C.
15065 * ps/devps/textmap: Move Greek characters to...
15066 * ps/devps/symbolchars:
15068 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
15070 * ps/devps/text.enc: Add quotesingle.
15071 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
15072 * tty/tmac.tty-char: Likewise.
15073 * dvi/devdvi/texmi.map: Add +h, +f, +p.
15074 * dvi/devdvi/texi.map: Add Fn.
15075 * dvi/devdvi/msam.map: Add lz.
15076 * dvi/tmac.dvi: Handle Bq, bq, aq.
15078 * pic/lex.c (get_token): Recognize 'th.
15079 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
15081 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
15083 * ps/devps/textmap: Move di, mu, +- to...
15084 * ps/devps/symbolchars:
15086 * macros/tmac.s (@XS): Don't call par@reset or fi.
15087 (XA): Call LP. Turn off adjustment. Reduce line length.
15089 * macros/tmac.s: Initially alias XS to LP.
15090 (XS): Rename to @XS.
15091 (cov*ab-init): Alias XS to @XS.
15093 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
15095 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
15096 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
15097 (token::is_size, token::changes_env): Deleted.
15098 * troff/number.c (parse_term): No need to process \s explicitly.
15099 Call tok.next() only after scale indicator has been processed.
15100 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
15102 (token::next): Handle \s, \f, \S, \H immediately rather than
15103 returning them as tokens.
15104 (token::operator==, token::description, token::add_to_node_list,
15105 token::process): Remove handling of deleted tokens.
15107 * troff/env.c (environment::add_char): When adding padding
15108 indicator character, call start_line() if necessary.
15110 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
15112 * ps/devps/afmtodit: Don't output 0 kerns.
15114 * ps/devps/afmtodit: Remove directory from name of encoding in
15115 font description file.
15117 * ps/devps/afmtodit: Improve error messages.
15119 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
15121 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
15122 * ps/devps/FontMakefile: Deleted.
15123 * ps/devps/afmname: New file.
15125 * ps/devps/symbol.sed: New file.
15126 * ps/devps/symbol.diff: Deleted.
15127 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
15128 Generate zapfdr.afm from zapfd.afm.
15130 * tty/tmac.tty (tty-char): Prefix definition with ".
15132 * macros/tmac.an (TP): Don't start a diversion if one has already
15135 * tty/tmac.tty-char: Add Latin-1 characters.
15137 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
15139 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
15141 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
15142 Move declaration of struct horizontal_span.
15144 * tbl/table.c (table::table): Initialize span_list.
15145 (table::~table): Delete span_list.
15147 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
15149 * ps/devps/Makefile: Avoid dependency on GNU make.
15151 * ps/tmac.ps: Check that character does not already exist before
15154 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
15155 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
15156 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
15159 * tty/tmac.tty-char: New file.
15160 * tty/Makefile: Install tmac.tty-char.
15161 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
15164 * tty/tmac.tty: Fix definition of \(34.
15166 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
15167 bracket-drawing characters onto |. Add *o.
15169 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
15170 only if current_field.
15172 * troff/dictionary.c (dictionary::lookup): Free old_table after
15175 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
15177 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
15178 whose glyphs are identical to glyphs of some Roman character.
15180 * tty/devlatin1/R.proto (bu): Deleted.
15181 * tty/devascii/R.proto (bu): Deleted.
15182 * tty/tmac.tty: Add definition of \(bu.
15184 * eqn/main.c (do_file): Pass FILE as argument.
15185 (main): Automatically load eqnchar. New options -F and -n.
15186 Pass do_file an opened FILE.
15187 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
15188 No need to include font.h.
15189 * groff.sh: Likewise. Don't need to use - for standard input.
15190 Prefix files with -- if first file starts with -.
15192 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
15194 * troff/env.c (environment::possibly_break_line): Don't set line
15195 to 0 across call to output_line(). Don't call output_line() until
15196 after discarding nodes after break.
15198 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
15200 * request.h (macro::empty): Declare it.
15201 * input.c (macro::empty): New method.
15202 (interpolate_macro): Don't give a WARN_SPACE if the two-character
15205 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
15207 * troff/env.c (environment::start_field): Decrement space_total
15208 when a space is frozen.
15210 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
15212 * macros/tmac.an (R): Delete macro.
15214 * troff/input.c (get_copy, token::next): Support \# (like \" but
15215 newline is ignored).
15217 * troff/input.c (token::next): Fix error message in 'Y' case.
15219 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
15221 * eqn/delim.c (define_extensible_string): Recognize any prefix of
15224 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
15226 * c++test.c: Include <osfcn.h>.
15228 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
15231 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
15233 * tbl/table.c (table::divide_span): Don't count column separation
15234 if expand was specified.
15236 * tbl/main.c (process_format): Don't ignore width specs in
15237 continued format. Give warning for changing equal widths or
15238 column separation in continued format.
15239 (process_data): Set column separation, minimum width, equal
15240 columns at end of table.
15242 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
15244 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
15245 node::add_discretionary_hyphen): Use soft_hyphen_char.
15246 (set_soft_hyphen_char): New function.
15247 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
15249 * Makefile (c++tested): Give more helpful message if test fails.
15251 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
15253 * troff/input.c (init_charset_table): Translate 0240 to
15254 an unbreakable space.
15256 * troff/token.h (token::hyphen_indicator): New function.
15257 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
15259 * troff/input.c (translate): Allow translation to \%.
15260 * troff/node.c (node::add_char): Handle
15261 TRANSLATE_HYPHEN_INDICATOR.
15262 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
15264 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
15267 * tty/devlatin1/R.proto: \(hy and - should print as 055.
15269 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
15271 * groff.c (run_commands): If the last command gets a SIGPIPE send
15272 a SIGPIPE to all children than haven't yet terminated. When
15273 command terminates, set pid field to -1.
15275 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
15277 * groff.c (main): Pass an appropriate -filename option to gxditview.
15279 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
15281 * Makefile.bd (install): Remove existing program before copying.
15283 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
15284 programs which have Unix counterparts to be installed with
15285 user-specified prefix.
15287 * troff/input.c (exit_troff): Don't check if exit_started.
15288 (exit_request): Don't call exit_troff if exit_started.
15290 * Makefile.bd (install.mm): Rename to install.dwbmm.
15292 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
15294 * driver/input.c (do_file): Add missing break for '#' case.
15296 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
15298 * troff/input.c (input_stack::clear): Clear past any boundaries and
15299 then add the boundaries back.
15301 * troff/input.c (exit_troff): Return immediately if already
15304 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
15306 (pg*end-page): If the text has ended and there are no more
15307 footnotes or keeps, exit.
15309 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
15311 * troff/input.c (init_charset_table): Make \(rq transparent by
15314 * macros/tmac.an: Define lq and rq strings.
15316 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
15318 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
15320 * troff/env.c (environment::final_break): New function.
15321 (environment::newline): Set prev_line_interrupted to 2 if
15323 * troff/env.h: Declare environment::final_break.
15324 * troff/input.c (exit_troff): Call environment::final_break()
15325 instead of environment::do_break().
15327 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
15328 doesn't already exist.
15329 * macros/man.local: New file.
15330 * macros/tmac.an: Load man.local.
15331 * macros/man.ultrix: New file.
15333 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
15335 * troff/input.c (exit_groff): Rename to...
15336 (exit_troff): New function.
15338 * troff/div.c (exit_started, done_end_macro,
15339 seen_last_page_ejector): New global variables.
15340 (began_page_in_end_macro): New static variable.
15341 (exit_flag): Deleted.
15342 (top_level_diversion::top_level_diversion): Initialize
15344 (top_level_diversion): More elaborate test for whether
15345 cleanup_and_exit() should be called.
15346 Set began_page_in_end_macro if the end macro isn't yet finished.
15347 * troff/div.h (top_level_diversion::last_page_count): New data
15349 (top_level_diversion::set_last_page): New function.
15350 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
15351 * troff/env.c (do_break): Zero prev_line_interrupted.
15352 * troff/input.c (exit_flag): Delete declaration.
15353 (LAST_PAGE_EJECTOR): New magic cookie.
15354 (token::next): Handle LAST_PAGE_EJECTOR.
15355 (exit_groff): Set exit_started and done_end_macro instead of
15356 exit_flag. Call top_level_diversion::set_last_page. Push a
15357 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
15358 another ejection after setting seen_last_page_ejector.
15360 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
15362 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
15364 * macros/tmac.e (TH): Make sure there's room for the initial
15367 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
15368 Set FVS in points rather than units.
15370 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
15372 * troff/div.c (top_level_diversion::add_trap): Don't consider the
15373 position of empty slots.
15375 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
15377 * ps/devps/S: Fix height and depth of parenrightex.
15378 * ps/devps/symbol.diff: Regenerate.
15380 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
15382 * tmac.e (u): Do underlining as in -mgs.
15384 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
15386 * tty/tty.c (tty_printer::end_page): If overstriking is
15387 suppressed, still turn overstruck horizontal and vertical lines
15390 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15393 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15395 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
15397 * Version 1.05 released.
15399 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
15401 * tty/tty.c: Instead of keeping an array of glyphs and then
15402 sorting it, keep a ordered linked list of glyphs for each line.
15404 * driver/driver.h: Include stddef.h.
15406 * tty/tty.c (compare_glyph):
15407 * refer/refer.c (rcompare):
15408 * troff/env.c (compare_ranges): Arguments of qsort comparison
15409 function should be const void *.
15411 * troff/number.c (parse_term):
15412 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15415 * refer/label.y (consider_authors): Don't access variables
15416 constructed under a condition outside that condition: put braces
15417 round for statement containing declaration; redeclare use of same
15420 * pic/pic.y (text_expr): Delete production that allows
15421 parenthesised text_expr.
15422 (expr): Allow a conditional_expr to appear in parentheses.
15423 (conditional_expr): Rename to any_expr.
15425 * mm: Install new version 1.01 from jh.
15427 * lib/font.c (font::get_width): Cache scaled widths.
15428 (font::font): Initialize widths_cache.
15429 (font::~font): Destroy widths_cache.
15430 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15432 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
15434 * c++test.c, c++test.ref: New files.
15435 * Makefile: Check that the C++ compiler works.
15437 * ps/tmac.pspic (PSPIC): Do a break.
15439 * ps/tmac.ps: Move definition of PSPIC into...
15440 * ps/tmac.pspic: New file.
15441 (PSPIC): Draw box around picture, but make it invisible to grops.
15442 * ps/tmac.ps: Load tmac.pspic.
15443 * ps/Makefile: Install tmac.pspic.
15445 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
15447 * lib/font.c (scale_round): If n is negative,
15448 subtract .5 before truncating floating point result.
15450 * lib/fontfile.c: Include <errno.h>.
15452 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
15454 * driver/input.c (get_char): Inline. Don't update current_lineno.
15455 Change callers to up date current_lineno if necessary.
15456 Use get_char() instead of getc(current_file).
15458 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
15460 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15462 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
15464 * tty/tty.c (tmac.tty): Define \(rg as (R).
15466 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
15468 * lib/lib.h: New define a_delete.
15469 * Use a_delete instead of delete when deleting an array of objects
15470 without destructors.
15472 * lib/lib.h: Rename adelete to ad_delete.
15473 * Change uses of adelete.
15475 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
15477 * eqn/eqn.y: Include lib.h.
15479 * troff/node.c (grow_font_table): Delete old_font_table.
15481 * mm: Install new version from jh.
15483 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
15485 * tbl/table.h (format_type): Make global instead of local to class
15486 entry_format. Prefix enumerators with FORMAT_.
15487 * tbl/table.c, tbl/main.c: Corresponding changes.
15488 * refer/token.h (token_type): Make global. Prefix enumerators
15490 * refer/token.[ch]: Corresponding changes.
15491 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15493 * troff/div.c (node::set_vertical_size): Don't name argument.
15495 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
15497 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15498 * lib/lib.h: Define adelete accordingly.
15499 * pic/object.c (graphic_object::graphic_object):
15500 * tbl/main.c (format::~format):
15501 * tbl/table.c (table::~table):
15502 * refer/ref.c (reference::~reference, reference::merge,
15503 reference::insert_field, reference::delete_field): Use adelete.
15505 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15507 * tbl/table.h: Corresponding changes.
15509 * common.c (common_output::dashed_arc, common_output::dotted_arc):
15510 Ensure total_angle is positive.
15512 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
15514 * refer/ref.c (reference::merge, reference::insert_field,
15515 reference::delete_field): Avoid delete[0].
15517 * refer/token.c (init_special_chars): Move calls to cmupper
15518 outside calls to init_two_char_letter to work around bug in gcc
15521 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
15523 * lib/new.c (operator new): Use __builtin_new for g++.
15525 * pic/object.c (graphic_object::~graphic_object): Don't use
15528 * pic/object.c (output::compute_scale): Initialize max_width and
15531 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
15533 * troff/input.c (write_request): Call fflush.
15535 * troff/node.h (class composite_node): Move declaration to node.c
15536 * troff/input.c (charinfo_to_node): Rename to ...
15537 (charinfo_to_node_list): Return node list rather than composite
15539 * troff/node.c (make_composite_node): New function.
15540 (make_node, add_char): Call make_composite_node instead of
15542 (class composite_node): Add a tfont * member. Delete font_size
15544 (composite_node::composite_node, composite_node::copy,
15545 composite_node::size): Corresponding changes.
15546 (composite_node::tprint): Provide constant spacing, emboldening
15547 and track kerning as specified in tfont.
15548 (composite_node::width): Change width calculation accordingly.
15549 * troff/env.h (environment::composite): New member.
15550 (environment::is_composite, environment::set_composite): New
15552 * troff/env.c (environment::environment): Initialize composite.
15553 * troff/input.c (charinfo_to_node): Call
15554 environment::set_composite.
15555 * troff/node.c (make_composite_node, make_glyph_node): Use the
15556 plain version of the tfont if the environment is composite.
15558 * troff/node.c (font_info::get_space_width): Additional argument
15559 giving space_size. Handle constant space correctly. Scale by
15560 space_size unless constant spaced.
15561 (env_sentence_space_width): New function.
15562 * troff/node.h: Declare it.
15563 * troff/env.h (environment::get_space_size,
15564 environment::get_sentence_space_size,
15565 environment::get_narrow_space_width,
15566 environment::get_half_narrow_space_width): Make inline.
15567 (environment::get_space_width): Make inline. Just call
15569 * troff/env.c: Delete definitions for funtions made inline.
15570 (environment::space_newline, environment::space): Use
15571 env_sentence_space_width(). Don't scale by space_size.
15572 * troff/node.h: Move declarations of env*space_width() functions
15575 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
15577 * macros/tmac.s (PS): Don't try to set negative indent.
15579 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
15581 * pic/pic.y: Fix min function.
15583 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
15585 * man/mdate.sh: Clear LANGUAGE.
15587 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
15589 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15590 * pic/lex.c: New COMMAND keyword.
15591 * pic/pic.y (print_args, print_arg): New rules.
15592 (placeless_element): Use print_args for PRINT.
15593 New COMMAND element.
15595 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
15597 * troff/input.c (terminal): Handle missing argument correctly.
15599 * pic/pic.y (text_expr): New rule.
15601 * pic/pic.y: Implement := operator.
15603 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
15605 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15608 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
15610 * ps/devps/dingbatsrmap: Include this in the distribution.
15612 * macros/tmac.doc: Replace with new version from 2nd Networking
15613 Release. Fix loading of doc-* files.
15614 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15615 * macros/tmac.doc.old: New file. Apply fixes that had been
15616 applied to old tmac.doc.
15617 * macros/tmac.andoc: Check that we're running under groff.
15618 * macros/Makefile: Rework.
15620 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
15622 * tbl/table.h (format_type):
15623 * refer/token.h (token_type): If NESTED_TYPES is defined, use
15624 typedef to make these types visible at file scope.
15625 * Makefile: Add NESTED_TYPES configuration option.
15627 * troff/div.c (mark): At the top level use the value of
15628 nl_reg_contents rather than the current vertical position.
15630 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
15632 * tty/tty.c: Implement \D for horizontal or vertical lines.
15633 (tty_printer::set_char): Use vec_used+2 as serial number.
15634 Don't allow size of vector to exceed USHRT_MAX-2.
15635 Split off part into...
15636 (tty_printer::add_char): New function.
15637 (tty_printer::draw): New function.
15638 (compare_glyph): Handle equal serial numbers.
15639 (tty_printer::end_page): Handle overstruck characters from \D.
15640 (main, usage): Implement -d option.
15642 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
15644 * tbl/main.c (process_format):
15645 * eqn/text.c (split_text):
15646 * troff/input.c (token::next): Use inner block for declarations
15647 with initializers in switch statement.
15649 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
15651 * pic/common.c (common_output::dash_line): Cope with zero-length
15654 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
15656 * Version 1.04 released.
15658 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
15660 * macros/tmac.an (TH): Define a macro an-init to define variables
15661 based on command line arguments.
15662 (an-header): Call it.
15664 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
15666 * Makefile (install.mm): Rename to install.dwbmm.
15668 * Makefile: Integrate mm.
15669 * mm: New directory.
15671 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
15673 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15676 * pic/troff.c (troff_output::simple_spline,
15677 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15678 shadowing parameter.
15680 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15682 * lib/ptable.h: Add explicit casts when converting from unsigned
15685 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15686 * dvi/devdvi/Makefile: Install SA, SB.
15688 * refer/indxbib.c: Add declaration of mktemp.
15690 * refer/lookbib.c: Add declaration of isatty.
15692 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
15694 * pic/lex.c (interpolate_macro_with_args): While collecting
15695 arguments, keep track of whether we're in a string.
15697 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
15699 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15700 down with \v, so as to avoid problems with top of page trap
15701 setting no space mode.
15703 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
15705 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15707 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
15709 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15710 Improve error message.
15712 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
15714 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15717 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
15719 * groff.c (possible_command::execp): Always use _exit() after a
15722 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15723 NO_SYS_WAIT_H configuration options.
15724 * groff.c: Use these options. Use POSIX-style macros to extract
15725 fields from the status returned by wait().
15727 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
15729 * tbl/table.c (table::compute_separation_factor): Allow the
15730 separation factor to drop to 0.
15732 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
15734 * refer/search.c: Include <errno.h>.
15736 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
15738 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15740 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15743 * pic/lex.c (input_stack::bol): Move definition out of class body.
15745 * pic/main.c: On MSDOS munge argv[0].
15747 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15749 * lib/ptable.c (hash_string): Use unsigned long rather than
15751 (next_ptable_size): Use unsigned rather than int. Give an error
15752 message if we've hit the largest table size.
15753 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
15756 * pic/object.h (object_spec): Make flags unsigned long. Declare
15757 flags as const unisgned long rather than as enums.
15759 * pic/output.c: Deleted.
15761 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15763 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15764 Add additional argument.
15765 (line_entry::note_double_vrule_on_{left,right}): Set value of
15766 douvle_vrule_on_{right,left} flag according to argument.
15767 (simple_line_entry::simple_print,
15768 simple_line_entry::double_line_print): If adjacent to double vrule
15769 on a corner extend rather than shorten the rule by half the double
15772 * troff/number.c (parse_term): In checking for overflow, handle the
15773 case where the current horizontal position is negative.
15775 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
15777 * pic/object.c (draw_arrow): Check for object having zero length.
15779 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
15781 * eqn/main.c (do_file): Split off inline equation handling into...
15782 (inline_equation): New function. Search for starting delimiter
15784 (delim_search): New function. Don't recognize a delimiter that
15785 occurs in the name of an escape sequence, number register, string
15788 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
15790 * eqn/delim.c (delim_box::compute_metrics): Don't call
15791 define_extensible_string if left is 0.
15792 (delim_box::output): Don't print the left delimiter if left is 0.
15793 (delim_box::debug_print): Check for left == 0 before calling printf.
15795 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
15797 * troff/Makefile (majorminor.c): Include only digits in
15800 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
15802 * refer/dirnamemax.c: new file.
15803 * refer/genlimits.c: Deleted.
15804 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15805 Don't check path length.
15806 * refer/Makefile: Add dir_name_max.o; delete genlimits.
15807 * Makefile: Add PATHCONF_MISSING option.
15809 * refer/indxbib.c (get_cwd): New function.
15810 (main): Use get_cwd().
15811 * lib/getcwd.c: New file.
15812 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15813 GETCWD in SUBFLAGS.
15814 * lib/Makefile: Compile getcwd.o.
15816 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15819 * refer/indxbib.c (main): Check success of mktemp.
15821 * lib/tmpfile.c: New file.
15822 * lib/Makefile: Add tmpfile.c.
15823 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15824 * ps/ps.h: Delete declaration of mktemp().
15825 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15826 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15827 * driver/driver.h: No need now to include errno.h.
15829 * everywhere: Set errno to 0 before calling fopen().
15831 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15832 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15833 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15835 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
15837 * troff/env.h (translate_space_to_dummy): Declare it.
15838 * troff/env.c (environment::space_newline, environment::space):
15839 If translate_space_to_dummy is set then make the width of spaces 0.
15840 * troff/input.c (translate): If the second character of a
15841 translation is a space, translate to unbreakable space. If the
15842 first character is a space, set or clear translate_space_to_dummy
15843 according to whether the second character is \&. Weird!
15845 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
15847 * groff.c (run_commands): Don't use non-zero exit code because a
15848 command gets SIGPIPE.
15850 * groff.c, groff.sh: Use -mXps with -TXps.
15852 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15853 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15854 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15855 (ps_printer::special): New specials invis and endinvis.
15856 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15857 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
15858 (ps_printer::end_page): Check that invis_count == 0.
15859 (ps_printer::invis_count): New member.
15860 (ps_printer::ps_printer): Initialize invis_count to 0.
15862 * troff/env.c (environment::hyphenate_line): Hyphenation
15863 indicator at beginning of word inhibits splitting after -, \(em
15866 * pic/pic.y (element): Allow another element to follow } without
15867 any intervening separator.
15869 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
15871 * pic/lex.c (get_delimited): Allow tabs before delimiter.
15873 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
15875 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
15876 declaration of wait() in header files.
15877 * Makefile: Get rid of -DHAVE_UNION_WAIT.
15879 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15881 * lib/lib.h: Declare return type of strerror as char *.
15883 * man/Makefile: Add g flag to sed substitutions.
15884 * Makefile (shgroff, bindist): Likewise.
15886 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
15888 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15889 * ps/devps/prologue (PBEGIN): Define showpage after pushing
15892 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
15894 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15897 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
15899 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15902 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
15904 * troff/input.c (define_number_reg): If currently undefined,
15905 don't define it if the argument is an invalid expression.
15907 * Makefile: Ignore return value of `if' commands without `else'
15910 * Makefile: Split up CPPDEFINES into a series of separate
15911 configuration options.
15913 * troff/input.c (init_registers): Use time_t instead of long
15914 unless LONG_FOR_TIME_T is defined. Use returned result rather
15915 than passing pointer.
15916 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15918 * lib/Makefile (fontpath.h): Use gendef.
15920 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
15922 * troff/input.c (input_iterator::shift): Delete argument name.
15923 * troff/node.c (suppress_output_file::really_begin_page,
15924 suppress_output_file::really_transparent_char, node::ascii_print,
15925 node::tprint): Delete names of unused arguments.
15927 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
15929 * refer/label.y (string): Pass $4 to command_error.
15931 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
15933 * Version 1.03 released.
15935 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
15937 * Makefile: Pass definition of SHELL in SUBFLAGS.
15939 * gendef: New file.
15940 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15941 ps/Makefile: Use gendef to construct header files that are
15942 constructed from the Makefile.
15944 * macros/Makefile: make all should build stripped version of tmac.e.
15946 * refer/Makefile (clean): Remove y.output.
15948 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
15950 * ps/pfbtops.c (main): Add -v option which prints out a version
15952 * ps/Makefile (pfbtops): Link with libgroff.a.
15954 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
15956 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15957 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15959 * refer/lkbib.c (main): Always terminate reference with blank
15961 * refer/lookbib.c (main): Likewise.
15963 * refer/linear.c (file_buffer::load): Check that the file is not a
15966 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15967 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15968 Delete second inclusion of <sys/param.h>.
15970 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
15972 * troff/token.h (token::special): Deleted.
15974 * tbl/main.c (process_format): Rework so that opt->tab_char is
15975 recognized only when appropriate.
15977 * ps/Makefile (clean): Remove pfbtops.
15979 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
15981 * lib/font.c (text_file::next): Don't return if we have got a
15984 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
15986 * refer/refer.c (store_reference): Get hash code from old_table[i]
15987 when rehashing the table.
15989 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
15991 * eqn/box.c (box::top_level): Save size and prev size using \R and
15992 restore it afterwards. Set the size to the size at the beginning
15994 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15995 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15997 * refer/Makefile (limits.h): Use ./genlimits.
15999 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
16001 * refer/index.c: Delete declarations of stat() and fstat().
16003 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
16005 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
16007 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
16009 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
16011 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
16013 * troff/input.c (token::get_char): Handle \e.
16015 * refer/linear.c: Delete declarations of fstat() and stat().
16017 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
16019 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
16020 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
16022 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
16024 * troff/input.c (do_define_macro): Improve error handling for end
16025 of file while defining macro.
16027 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
16029 * eqn/box.h: Fix declaration of set_gsize.
16030 * eqn/box.c (set_gsize): Make argument const char *.
16031 (gsize): Declare as char *.
16032 * eqn/main.c (main): Don't convert gsize to int.
16033 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
16035 * Version 1.02 released.
16037 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
16039 * macros/tmac.andoc: New file.
16040 * macros/Makefile: Install tmac.andoc.
16042 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
16043 operator new and delete on OP_DELETE_BROKEN not being defined.
16044 * Makefile: Mention OP_DELETE_BROKEN.
16046 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
16048 * Makefile (bindist): Pass SUBFLAGS.
16050 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
16052 * Makefile, groff.c: Pass definitions to groff.c via device.h.
16054 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
16057 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
16059 * ps/ps.h, ps/psrm.c: Make comment_table and
16060 header_comment_table local to resource_manager::process_file.
16062 * groff.sh: With -TXps pass -printCommand option to gxditview.
16064 * groff.c (possible_command::print): Implement using
16065 append_arg_to_string.
16067 * xditview: Merge in new implementation with own ChangeLog.
16069 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
16071 * groff.c (main): Implement PRINT_OPTION.
16072 (append_arg_to_string): New command.
16073 (device_table): Set PRINT_OPTION flag for Xps.
16075 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
16077 * troff/groff.h: Rename to troff.h.
16079 * pic/lex.c (lookup_keyword, docmp): New functions.
16080 (get_token): Use new lookup_keyword.
16081 Don't include key.h.
16082 * pic/key.[ch], pic/pic.gperf: Deleted.
16083 * pic/Makefile: Remove gperf stuff.
16085 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
16087 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
16089 * troff/Makefile, troff/node.c: Move definition of
16090 STORE_WIDTH into node.c.
16092 * etc/grog.pl, etc/grog.sh: Support -mdoc.
16094 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
16096 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
16097 dvi/devdvi/texb.map: Add lq and rq.
16098 dvi/devdvi: Regenerate fonts.
16099 * ps/devps/textmap: Add lq and rq.
16100 * ps/devps: Regenerate fonts.
16101 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
16102 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
16104 * pic/object.c (position_rectangle): When checking radius
16105 cope with possiblity that width or height is negative.
16106 (box_object::box_object): Have separate xrad and yrad with
16107 signs matching signs of dim components.
16108 (box_object::{north,south}_{east,west}): Use xrad and yrad.
16109 (box_object::print): With rounded boxes use absolute values
16110 for dim and rad arguments.
16112 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
16115 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
16117 * various files: Add explicit destructors to keep Saber CC +d
16120 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
16122 * eqn/box.c (box::top_level): Restore fonts correctly after
16123 font changes in line containing inline equation. Also
16124 restore previous font as well as current font.
16125 * eqn/pbox.h: Define necessary string and register names.
16127 * troff/input.c (token::next): Case 'R' calls do_register.
16128 (do_register): New function.
16130 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
16132 * groff.c, groff.sh: Support Xps device. Allow each device
16133 to have a pseudo_name and a real_name.
16135 * groff.c (run_commands): Don't print `Broken pipe' messages.
16137 * ps/pfbtops.c: New file.
16138 * ps/Makefile: Add pfbtops.
16140 * troff/number.c (parse_term): Improved error message.
16142 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
16144 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
16146 * Makefile: Integrate refer.
16147 * refer: New directory.
16148 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
16149 man/lkbib.man: New files.
16150 * man/Makefile: Support refer man pages.
16152 * lib/lib.h: Declare is_prime.
16153 * lib/prime.c: New file.
16155 * troff/input.c (macro_source): New function.
16156 (init_input_requests): Bind "mso" to macro_source.
16158 * troff/env.c (environment::possibly_break_line): Maintain
16159 pointer to pointer to node to be split in ndp so as to avoid
16160 using address of freed node.
16162 * troff/env.c (environment::hyphenate_line): Maintain pointer to
16163 pointer to first node to be hyphenated in startp so as to
16164 avoid using address of freed node.
16166 * troff/env.c (class trie, class hyphen_trie): Make the
16167 elements of the trie be of type char not unsigned char.
16168 Declare arguments to be const char* instead of unsigned char *.
16170 * troff/env.c (hyphenate): Initialize hbuf[0].
16172 * troff/input.c (set_string): Declare p to be char * and cast
16173 *p to unsigned char when necessary.
16175 * troff/input.c (do_define_macro): Declare s to be const
16176 char*. Cast element to unisgned char when necessary, Declare
16177 d to be an int. Handle EOF better.
16179 * troff/Makefile, troff/input.c: Different scheme for passing
16180 definitions of MACROPATH, HYPHENFILE and DEVICE.
16182 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
16184 * tty/devascii/R.proto: Delete entry for em.
16185 * tty/devlatin1/R.proto: Likewise.
16187 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
16189 * troff/input.c (translate): Stop when we get a space. Treat eof
16192 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
16194 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
16196 * tbl/main.c (process_format): A font name following a `f'
16197 modifier that starts with a digit can be only one character long.
16198 Also deal with EOF on the second character of the font name.
16200 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
16202 * troff/input.c (token::next): Turn \~ into an
16203 unbreakable_space_node.
16204 * troff/node.c (unbreakable_space_node): New class.
16205 * troff/node.h: Declare it.
16207 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
16209 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
16210 it's >= 0, before outputting it as a single byte.
16212 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
16214 * lib/font.c: Make font_char_metric::code an int.
16215 (font::get_code): Change return type to int.
16216 (font::load): Allow code to be arbitrary integer.
16217 * lib/font.h (font::get_code): Change return type to int.
16218 (font::number_to_index): Change argument type to int.
16219 * troff/input.c (token::next): In case 'N', allow any value.
16220 Store value in token::val.
16221 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
16222 (token::get_char, token::add_to_node_list, token::process): Get
16224 (charinfo::set_number): Change argument to int.
16225 (charinfo::get_number): Require that NUMBERED flag be set.
16226 (get_charinfo_by_number): Store numbered characters not between 0
16227 and 255 in a dictionary.
16228 * troff/charinfo.h (get_charinfo_by_number): Change argument type
16230 (charinfo::number): Change type to int.
16231 (charinfo::set_number): Change type of set_number to int.
16232 * troff/node.c (troff_output_file::put_char_width,
16233 troff_output_file::put_char): Test whether character is numbered
16234 using charinfo::numbered().
16235 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
16237 * lib/nametoindex.c: New implementation to cope with arbitrary
16240 * troff/input.c (token::operator==): Test val for
16241 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
16244 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
16245 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
16247 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
16249 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
16252 * all Makefiles: rm targets of cp and >.
16254 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
16257 * eqn/lex.c (def_table): Add dollar.
16259 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
16261 * troff/input.c (do_width): Push back newline before closing delim
16264 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
16266 * groff.c (possible_command::prepend_arg): New function.
16267 (main): Prepend device -m option.
16268 * groff.sh: Put device -m options before command-line options.
16270 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
16272 * macros/tmac.an (IP): Quote argument to TP.
16274 * ps/ps.c (main): New option -b, which sets...
16275 (broken_flags): New variable.
16276 (ps_printer::~ps_printer): Incorporate the setup section in the
16277 prolog if (broken_flags & NO_SETUP_SECTION).
16278 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
16279 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
16280 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
16281 ps_printer::print_needed_font_comment,
16282 ps_printer::print_supplied_font_comment,
16283 ps_printer::print_include_font_comments,
16284 ps_printer::lookup_doc_font, ps_printer::download_fonts,
16285 ps_printer::read_download_file, read_document_fonts, add_font,
16286 skip_line, parse_fonts_arg, document_font::document_font,
16287 document_font::~document_font, document_font::download,
16288 ps_output::include_file): Deleted.
16289 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
16290 rather than %!PS-Adobe-2.0. Make calls to
16291 resource_manager::need_font for each font that we used. Replace
16292 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
16293 print_supplied_font_comment, print_needed_font_comment by call to
16294 resource_manager::print_header_comments. Output %%Orientation
16295 comment. Output %%Requirements: numcopies comment if ncopies > 1.
16296 Don't output the prolog directly. Instead call
16297 resource_manager::output_prolog. Only define #copies when ncopies
16298 > 1. Delete calls to print_include_font_comments and
16299 download_fonts. Add call to resource_manager::document_setup.
16300 (ps_printer::do_file): Call resource_manager::import_file instead
16301 of including it ourselves.
16302 (ps_printer::do_import): Likewise. Also don't call
16303 merge_import_fonts. Push userdict on the dictionary stack before
16304 and pop it afterwards.
16305 Move declaration of ps_output into ps.h.
16306 * ps/psrm.c: New file implementing resource_manager class.
16307 * ps/ps.h: New file declaring ps_output and resource_manager
16309 * ps/devps/zapfdr.ps:
16310 * ps/devps/symbolsl.ps:
16311 * ps/devps/prologue: Use 3.0 conventions.
16312 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
16313 Add default definition of BROKEN_SPOOLER_FLAGS.
16314 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
16315 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
16317 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
16319 * etc/grog.pl: New file.
16320 * Makefile (GROG): New variable.
16321 Add GROG to SUBFLAGS.
16322 * etc/Makefile (GROG): New variable.
16323 (install.nobin): Install $(GROG) rather than grog.sh.
16325 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
16327 * eqn/special.c (special_box::compute_metrics): Make the input and
16328 output strings the same. Get the new height and depth from the
16329 predefined height and depth registers. Also make subscript kern
16330 and skew available.
16331 (special_box::compute_subscript_kern, special_box::compute_skew):
16334 * eqn/box.c (pointer_box::compute_skew,
16335 simple_box::compute_metrics, box::top_level)
16336 * eqn/text.c (prime_box::compute_metrics,
16337 prime_box::comput_subscript_kern)
16338 * eqn/limit.c (limit_box::compute_metrics):
16339 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
16340 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
16341 negative numbers in `nr' requests with a leading 0.
16343 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
16345 * eqn/special.c: New file.
16346 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
16347 Add new rule for simple.
16348 * eqn/lex.c (token_table): Add SPECIAL.
16349 * eqn/box.h: Declare make_special_box.
16350 * eqn/Makefile: Add special.[co].
16352 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
16354 * ps/devps/prologue: Possibly set packing to true while defining.
16355 Create grops dictionary here. Initialize local variables before
16356 defining procedures.
16357 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
16358 the dictionary stack. Set strokeadjust and overprint to false if
16359 the relevant operators are defined.
16360 (PEND): New procedure.
16361 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
16362 prologue. Do everything else in the setup section.
16363 (ps_printer::do_import): Just call PBEGIN and PEND around the
16364 picture. Also push userdict before, and pop it afterwards.
16366 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
16368 * troff/node.c (bracket_node::tprint): Brackets were being printed
16371 * macros/tmac.an (SH, SS): Set fill mode.
16373 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
16375 * troff/div.c (top_level_diversion::begin_page): Set
16376 high_water_mark to 0.
16378 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
16380 * man/mdate.sh: New file.
16381 * man/mdate.c: Deleted.
16382 * man/Makefile: Use mdate.sh instead of mdate.
16385 * eqn/lex.c (do_gsize): Supply missing argument to error message.
16387 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
16389 * man/mdate.c: New file.
16390 * man/*.man: Replace modification date by @MDATE@.
16391 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16392 (mdate): New target.
16394 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16395 Remove illegal input characters.
16397 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
16399 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16401 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
16403 * troff/div.c (begin_page): Change behaviour when
16404 !first_page_begun and !break_flag.
16406 * troff/input.c (do_name_test): Return 0 if argument is empty.
16408 * troff/input.c (read_long_escape_name): Require closing ] to be
16409 at same input level as opening [.
16411 * troff/input.c (read_increment_and_escape_name): New function.
16412 (get_copy, process_input_stack): Use this for \n.
16414 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
16416 * troff/div.c (top_level_diversion::begin_page): Ignore the
16417 current value of page_number if !first_page_begun.
16419 * groff.c (main): Fix declaration of buf.
16421 * troff/input.c (do_name_test): New function.
16422 (token::next): Implement \A.
16423 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16424 (token::description, token::add_to_node_list, token::process):
16425 Handle TOKEN_ESCAPE.
16426 * troff/token.h: New token TOKEN_ESCAPE.
16428 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
16430 * pic/main.c (do_picture): Allow space before and after filename
16431 following `<'. Check that the filename is not empty.
16433 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
16435 * Version 1.01 released.
16437 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16439 * dvi/tmac.dvi: ftr HR to H.
16441 * macros/tmac.e: Round up computation of $r.
16443 * xditview/tmac.X: Don't give up completely in compatibility mode.
16444 Use \n(.s instead of \n[.s].
16446 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16447 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16448 Add u to factors inside \s[...]. Rename frac to dvi-frac.
16449 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16450 short names in the char definitions.
16452 * ps/tmac.ps: Don't give up completely in compatibility mode.
16453 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16454 quote in front of \n(.s. Add u to factors inside \s[...].
16456 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
16458 * tty/tmac.tty: Call the nroff request.
16460 * macros/tmac.e ((x, )x): Better definitions that work properly
16462 (@0, @1): Helper macros for (x.
16464 * macros/tmac.e ($s, hl): Use \l rather than \D.
16466 * tty/tmac.tty: Make it work better in compatibility mode.
16467 (pchar): Rename to tty-char.
16469 * macros/tmac.e (@E): New macro.
16470 (r, i, b, rb, bi): Use @E.
16472 * macros/tmac.e (@F): Don't use (;...) syntax.
16474 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
16475 it was modified for groff.
16477 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16479 * macros/tmac.e (<., .>): Removed.
16480 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16482 * macros/tmac.e: Remove check that groff is being used.
16484 * macros/tmac.e (@C): Change families only if using groff; turn
16485 compatibility mode off while changing familes. Save compatibility
16486 mode before changing families and restore it afterwards.
16488 * macros/tmac.e (@h): Remove test for offset + line length.
16490 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
16491 (lo, th, ac): Define to call @S instead of using als.
16493 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16494 the ratio of the vertical spacing to the point size in units
16495 expressed as a percentage. Use these instead of $10r and $10R,
16496 Delete $10r and $10R.
16498 * lib/font.c (font::load): In default computation of space_width,
16499 divide by sizescale. Use scale_round.
16501 * macros/tmac.an (TP): Don't call `nf'.
16502 (an-do-tag): Don't call `fi'.
16504 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
16506 * troff/input.c (process_input_stack): Handle the case where
16507 spaces at the beginning of an input line are followed by a
16510 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
16512 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16513 * groff.sh: Use pic -x with the dvi device.
16515 * dvi/devdvi/FontMakefile (H): Don't use -s.
16517 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16518 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16519 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16522 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
16524 * ps/psfig.diff: New file.
16525 * ps/tmac.psfig: New file.
16527 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
16529 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16530 (]-): Don't call ref*do-tl.
16532 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16534 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16535 (fn@do-FS): Rename to fn*do-FS.
16537 * troff/input.c (transparent_translate): New function.
16538 (process_input_stack): Apply transparent_translate before calling
16539 diversion::transparent_output(unsigned char).
16541 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
16543 * troff/input.c (do_define_macro): Define the macro before calling
16546 * xditview/Makefile: Add DEVICES variable. Change install target
16549 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
16551 * groff.c (run_commands): Handle the possibility that there are
16552 child processes other than those forked by us.
16554 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
16556 * lib/string.c (string::append): New function.
16557 * lib/stringclass.h: Declare it.
16559 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
16561 * eqn/main.c (main): New option -N which sets
16562 no_newline_in_delim_flag.
16563 (do_file): If no_newline_in_delim_flag is set don't allow newlines
16565 * groff.c (main): Pass -N on to eqn.
16566 (help, synopsis): Mention -N.
16567 * groff.sh: Implement -N.
16569 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
16571 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16572 (]-): Call ref*do-tl if ref*need-tl is non-zero.
16573 (XP): Allow as initializer.
16575 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
16577 * troff/env.c (environment::wrap_up_field): If field_spaces are
16578 non-zero and we have a current_tab, subtract padding from
16579 tab_distance. If this makes tab_distance <= 0, use the next tab
16580 stop instead. If there isn't any next tab or it's a left tab,
16581 wrap up the current tab.
16582 (environment::start_field): Initialize tab_precedes_field.
16583 (environment::wrap_up_tab): If there's a current field, update
16584 pre_field_width, field_distance and tab_precedes_field.
16585 * troff/env.h (environment::tab_precedes_field): New member.
16587 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
16589 * ps/ps.c (ps_printer::do_file): New function.
16590 (ps_printer::special): Bind to `file' special.
16591 (ps_printer::do_exec): Set ndefined_styles to 0.
16593 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
16595 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16596 Avoid stripping first character from the start of unrecognized
16597 escapes. Use lex_error instead of error to report errors.
16598 * eqn/lex.c (get_token): Rework handling of escapes.
16599 (lex_error): Move declaration into...
16602 * xditview/xditview.c (main): Make -page option work.
16604 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16606 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
16608 * macros/tmac.s (B2): Correct size of box.
16610 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
16612 * macros/tmac.s (B2): Postpone drawing the box until in the
16613 top-level diversion.
16615 * tty/tmac.tty: Add font translations for C, CR, CW.
16617 * groff.c (synopsis, help): Document -i.
16618 * groff.sh: Implement -i.
16620 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16621 Simplify the construction of SN.
16623 * troff/number.c (parse_term): Give `|' a higher precedence.
16624 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16627 * macros/tmac.s (B2): Use par@finish instead of par@reset.
16629 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
16631 * lib/string.c (string::move): New function.
16632 * lib/stringclass.h: Declare it.
16634 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
16636 * troff/env.c (distribute_space): Add optional argument
16638 (environment::wrap_up_field): Call distribute_space with
16639 `force_forward' argument of 1.
16641 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
16643 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16644 Inline it. Move reallocation into...
16645 (string::grow1): New function.
16646 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16647 dependencies to include library header files.
16648 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16650 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
16652 * macros/tmac.s (@NH): Use the same number registers than -ms does
16653 for the heading level counters. Use the same string that -ms does
16654 for the number for this heading.
16656 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
16658 * lib/new.c (operator new): Cast result of malloc to char *.
16660 * troff/input.c (spring_trap, lookup_request): Add assert that nm
16663 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
16665 * groff.c (main): Support -i.
16667 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
16669 * pic/pic.h: Include <osfcn.h>.
16671 * ps/ps.c: Add declaration of mktemp.
16673 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16674 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16675 argument as union wait *.
16676 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16677 argument to union wait *.
16679 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
16681 * tty/tmac.tty: Add definition of \(co.
16683 * pic/object.c (make_arc): Only increase radius when radius
16684 strictly less than d.
16685 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16688 * troff/env.c (environment::environment(symbol),
16689 environment::environment(const environment *)): Initialize
16692 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
16694 * tbl/main.c (main): Add exit(0).
16696 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16698 * pic/main.c (main):
16699 * eqn/main.c (main):
16700 * tbl/main.c (main):
16701 * etc/soelim.c (main):
16702 * driver/printer.c (printer::~printer):
16703 * troff/node.c (real_output_file::~real_output_file,
16704 real_output_file::flush): Check for errors on stdout.
16706 * most files: Add 1991 to copyright notice.
16708 * macros/tmac.s: Don't test \n(.x and \n(.y.
16710 * troff/input.c (token::next): Rename `escape_char' label to
16711 `handle_escape_char' and `normal_char' label to
16712 `handle_normal_char'.
16714 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
16716 * groff.c (main, synopsis, help): Support -a option.
16717 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
16718 to trflags while parsing options.
16720 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
16722 * troff/number.c (parse_term): With `m', `M' and `n' scale
16723 indicators, convert scale factor to hunits before scaling.
16725 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
16727 * lib/font.c (scale_round): Better test for overflow when n is
16730 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
16732 * tbl/main.c (process_format): Add second argument of type
16733 options*. Change callers. Allow opt->tab_char as well as '\t'
16734 between format items.
16736 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
16738 * macros/tmac.an (PD): With no arguments, make sure register PD is
16740 (TH): Call PD with no argument, instead of setting register PD
16743 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
16745 * Version 1.00 released.
16747 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
16749 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16751 * dvi/devdvi/DESC: Mount CW instead of CR.
16753 * dvi/tmac.dvi: Add definition of \(tm.
16755 * dvi/devdvi/texsy.map: Add lh, and rh.
16756 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16757 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16759 * dvi/devdvi/FontMakefile: Generate H from cmss10.
16760 * dvi/devdvi/Makefile: Install H.
16761 * dvi/devdvi/H: New file.
16763 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
16765 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16768 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
16770 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16772 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16774 * macros/tmac.s (@EN): Handle the case where the equation is empty
16775 but the label is not.
16777 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
16779 * troff/groff.h: New warning category WARN_SPACE.
16780 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16781 WARN_SPACE to warning_table.
16782 (interpolate_macro): Give a warning of type WARN_SPACE if the name
16783 is longer than two characters and is not defined, but the first
16784 two characters do make a defined name.
16786 * PROBLEMS: New file.
16788 * CHANGES: New file.
16789 * README-0.6, README-1.00: Deleted.
16791 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16792 * xditview/devX75/Makefile: Make devX75-12.
16793 * xditview/devX100/Makefile: Make devX100-12.
16795 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16796 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16798 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
16800 * README-0.7: Rename to README-1.00.
16802 * macros/tmac.pic: New file.
16803 * macros/Makefile (install.nobin): Install tmac.pic.
16805 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
16807 * troff/env.c (hyphen_word): Correct the test for whether the
16808 token is a hyphen. Reset npos to 0.
16810 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16812 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
16814 * macros/tmac.s (ds*common-end): Call par*reset.
16816 (par@reset-indent): Deleted.
16818 * macros/tmac.s (@IP): Divert the label.
16820 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
16822 * xditview/draw.c (setGC): Use a line width of .1m rather than
16823 .04m by default; round rather than truncate value.
16825 * tbl/table.c (class empty_entry): New class.
16826 (empty_entry::empty_entry, empty_entry::line_type): New functions.
16827 (table::add_entry): Represent empty entries by objects of type
16829 (table_entry::line_type): Return -1.
16830 (table::determine_row_type): Ignore entries with line_type 0.
16831 Treat type -1 as non-lines.
16833 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
16835 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16836 macros/tmac.s: Rename \(-d to \(Sd.
16838 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
16840 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16841 * xditview/libXdvi/DviChar.c: Likewise.
16842 * dvi/devdvi/texsy.map: Add `<<', `>>'.
16844 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
16846 * troff/div.c (top_level_diversion::begin_page): Call
16847 init_output() if the_output is 0.
16849 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
16851 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16853 (get_copy): Turn \E into ESCAPE_E.
16854 (token::process, asciify): Handle ESCAPE_E.
16856 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16858 (DS): Implement `.DS R'.
16860 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
16862 * macros/tmac.s (FS): New macro.
16864 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16866 * macros/tmac.s (cov*tl-init): Remove after first execution
16867 instead of aliasing to @nop. Call top of page macro explicitly
16868 instead of setting trap; call @init first. Set pg@top as top of
16870 (cov*auto-init): Deleted. Set cov*tl-init instead of
16871 cov*auto-init as top of page trap.
16872 (TL, LP): Do a break instead of calling cov*tl-init.
16873 (cov*print): With RP format but no TL, alias FS and FE to @FS and
16874 @FE; in this case also give a warning and always start another
16875 page. No need to set pg@top here.
16876 (cov*tl-init): Rename to cov*first-page-init.
16878 * macros/tmac.s (RP): Do `.pn 0'.
16879 (cov*tl-init): With RP format don't do `.pn 0'.
16881 * macros/tmac.s (pg@cs-top): Set no space mode.
16883 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16884 (cov*ab-init): Alias TL, AU and AI to these.
16886 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
16888 * macros/tmac.s (@EQ): Move the space before the equation into @EN
16889 (@EN): Do nothing unless \n[dl] is > 0.
16891 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
16893 * pic/object.c (ellipse_object::radius): New function.
16895 * VERSION: Change version to 0.7.
16897 * tbl/table.c (block_entry::do_divert): Declare return type as
16899 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16901 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
16903 * troff/column.c: New file.
16904 * troff/Makefile: Corresponding changes.
16906 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
16909 * troff/div.c (top_level_diversion::space): If the space causes
16910 the first-page transition and springs a trap, truncate the space
16913 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
16915 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16918 * pic/troff.c (troff_output::line_thickness,
16919 troff_output::set_fill): Do a horizontal motion to compensate for
16920 the width of the \D escape sequence.
16922 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
16924 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16927 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
16930 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16931 Supply empty definition.
16932 (text_entry::simple_print, simple_text_entry::simple_print):
16933 Delete declarations.
16934 (table::add_entry): Represent empty entries by objects of type
16937 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
16939 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16941 * tbl/table.c (left_text_entry::add_tab): New function.
16943 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
16944 initialize like LP.
16946 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
16948 * troff/env.c (environment::start_field): Give an error message if
16949 there is no next tab.
16951 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
16953 * troff/env.c (hyphenate): Skip initial elements with zero
16956 * macros/tmac.s (par@init): Keep VS in points rather than units.
16958 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
16960 * pic/main.c (main): Implement `-c' option.
16961 * pic/output.h: Declare make_tpic_output().
16962 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16964 (tpic_output): New class.
16965 (tpic_output::tpic_output, tpic_output::set_pen_size,
16966 tpic_output::command, make_tpic_output): New functions.
16968 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
16970 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
16971 if they're not already defined.
16972 * tbl/table.c (init_output): Don't test \n(.g.
16974 * troff/input.c (do_if_request): Delete `g' condition. Recognize
16975 `d', `r' and `c' conditions even in compatibility mode.
16977 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
16979 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16982 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
16984 * troff/env.h (environment::prev_line_interrupted): New member.
16985 (environment::get_prev_line_interrupted): New function.
16986 * troff/env.c (environment::newline): Set prev_line_interrupted.
16987 (environment::environment(const environment *),
16988 environment::environment(symbol)): Initialize
16989 prev_line_interrupted.
16990 * troff/input.c (process_input_stack): Don't give special
16991 treatment to space and newline at the beginning of the line if the
16992 previous line was interrupted.
16994 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
16996 * eqn/eqn.y: Disallow PRIME by itself.
16997 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16999 (def_table): Remove definition of '. Define prime to be `.
17001 * eqn/eqn.y: Split off part of rule `script' into a new rule
17004 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
17006 * macros/tmac.s ({, }): New string aliases.
17008 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
17010 * README-0.7: New file.
17012 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
17014 * macros/tmac.s: New file.
17015 * man/groff_ms.man: New file.
17016 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
17017 * Makefile.bd: Similarily.
17018 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
17019 definition of TMAC_S.
17020 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
17021 * macros/TODO: New file.
17023 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
17025 * troff/env.c (right_justify): New function.
17026 (init_env_requests): Bind this to request "rj".
17027 (center_lines): Set right_justify_lines to 0. If we get a bad
17028 integer, center 1 line.
17029 (environment::environment(symbol), environment::environment(const
17030 environment *)): Initialize right_justify_lines.
17031 (environment::get_right_justify_lines): New function.
17032 (init_env_requests): Bind this to number_register ".rj".
17034 * troff/env.c (environment::choose_breakpoint): Implement
17035 hyphenation_margin and hyphenation_space.
17036 (environment::get_hyphenation_space,
17037 environment::get_hyphenation_margin): New functions.
17038 (init_env_requests): Bind these to .hys and .hym.
17039 (hyphenation_space_request, hyphenation_margin_request): New
17041 (init_env_requests): Bind these to hys and hym.
17042 (environment::environment(symbol), environment::environment(const
17043 environment *)): Initialize hyphenation_margin and
17045 * troff/env.h: Corresponding changes to class environment.
17047 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
17049 * troff/div.c (blank_line): Always do a break.
17051 * eqn/box.c (do_text): Turn off escapes while appending text to
17054 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
17056 * troff/input.c (while_break_request, while_continue_request): New
17058 (init_input_requests): Bind these to "break" and "continue".
17059 (while_depth, while_break_flag): New variables.
17060 (while_request): Update while_depth. Break out of loop if
17061 while_break_flag is set.
17063 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
17065 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
17068 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
17070 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
17072 * stringify: New file.
17073 * Makefile (groff.o): Use stringify.
17075 * xditview/tmac.X: Remove definition of \(rn.
17076 * xditview/libXdvi/DviChar.c: Remove radicalex from
17079 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
17081 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
17082 (alphabetic_block_entry::alphabetic_block_entry,
17083 alphabetic_block_entry::divert, alphabetic_block_entry::print):
17085 (block_entry::divert): Split off body into ...
17086 (block_entry::do_divert): If the block is alphabetic, subtract 2n
17087 from the line length; also update the span width to dl+2n, and the
17088 alphabetic span width to dl.
17090 * driver/input.c (do_file): While reading argument to D command,
17091 when expanding buffer, multiply szp by sizeof(int) rather than 2
17092 in the argument to memcpy.
17094 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
17095 width of alphabetic columns.
17097 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
17099 * troff/node.c (lookup_family): Supply second argument to lookup.
17101 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
17102 search, return immediately if v is 0.
17104 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
17105 (troff_output::start_picture): Set this reg.
17106 (troff_output::end_picture): Remove this reg
17107 * eqn/box.c (box::extra_space): Don't produce `\x's if
17108 EQN_NO_EXTRA_SPACE_REG is defined.
17110 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
17111 * eqn/text.c (split_text): Map ' to \(fm when it's the first
17114 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
17116 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
17119 * troff/div.c (top_level_diversion::top_level_diversion):
17120 Initialize page_number to 0.
17122 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
17124 * groff/troff (environment::environment(const environment *)):
17125 Initialize name to e->name, rather than "anonymous".
17127 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
17129 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
17130 requested_page. Split middle part into ...
17131 (FindPage): New function.
17132 (SetValues): If we don't yet know the last page, and the requested
17133 page is greater than the current page, call FindPage.
17134 Update the font_map_string before doing this.
17136 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
17137 Translate \(lh and \(rh into left and right double arrows.
17139 * troff/node.c (class hyphen_inhibitor_node): New class.
17140 (hyphen_inhibitor_node::hyphen_inhibitor_node,
17141 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
17142 hyphen_inhibitor_node::type,
17143 hyphen_inhibitor_node::get_hyphenation_type): New functions.
17144 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
17145 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
17148 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
17150 * troff/node.h (dummy_node::get_hyphenation_type,
17151 transparent_dummy_node::get_hyphenation_type): Declare them.
17152 * troff/node.c: (dummy_node::get_hyphenation_type,
17153 transparent_dummy_node::get_hyphenation_type): New functions.
17155 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
17157 * xditview/libXdvi/draw.c: If M_PI not defined after including
17158 math.h, then define it.
17160 * xditview/Makefile: Add definition of AR. Pass it to the submake
17162 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
17164 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
17166 * troff/dictionary.h (object_dictionary::alias): Declare return
17168 * troff/dictionary.c (object_dictionary::alias): Return non-zero
17169 if the old name was defined.
17170 * troff/input.c (alias_macro): Give a warning if the old name was
17172 * troff/reg.c (alias_reg): Likewise.
17174 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
17176 * troff/input.c (token::next): Delete implementation of \R.
17178 * macros/Makefile: Strip comments from tmac.e while installing it.
17180 * troff/input.c: New variable `nroff_mode'.
17181 (troff_request, nroff_request): New functions.
17182 (init_input_requests): Bind `troff' and `nroff' to troff_request
17184 (do_if_request): Compute results of t and n conditions from
17187 * text/text.c (split_text): Fix typo in >=.
17189 * eqn/lex.c: Add definition of `==' to def_table.
17191 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
17193 * pic/tex.c (tex_output::start_picture): Change the definitions of
17194 \graph and \graphtemp so that they work properly with Plain TeX.
17196 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
17197 argument to `ar' is not less than the first.
17199 * pic/pic.y: Allow a comma between elements of the variable list
17200 in the argument to `reset'.
17202 * pic/object.c (arc_object::arc_object): Fix computation of
17205 * eqn/main.c (main): Add exit(0).
17207 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
17209 * troff/div.c (begin_page): Test no_space_mode after doing the
17210 break, but still push the page ejector cookie before doing the
17211 break. Also set the next page number after doing the break.
17213 * xditview/xditview.c (NewFile): Don't set the title and icon name
17214 if this is the first file and its name is `-'.
17215 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
17216 the X75 and X100 devices.
17217 (main): If a device has the XT_OPTION flag set and there's exactly
17218 one file argument, pass the driver -xrm and -title options to set
17219 the icon name and window title to the name of the file.
17221 * troff/env.c (environment_switch): If there was an argument but
17222 it wasn't a valid number or name, then pop an environment but
17223 don't give an error message on underflow.
17225 * troff/number.c (start_number): Correct spelling in error message.
17227 * troff/input.c (token::delimiter): Don't print an error message
17230 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
17231 ParseDrawFunction if dw->display_enable is true.
17233 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
17235 * pic/pic.y: Parse text positioning like normal attributes, so as
17236 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
17237 positioning attribute.
17239 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
17241 * tbl/main.c (process_data): When in state START while reading a
17242 text block, don't change to state MIDDLE if c is a newline.
17244 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
17246 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
17247 so as to avoid shadowing parameter.
17249 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
17251 * tbl/table.c (trim_space): Deleted.
17252 (table::add_entry): Don't call trim_space.
17254 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
17256 * VERSION: Change version to 0.6.
17258 * troff/number.c (parse_expr): Make == work.
17260 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
17262 * man/grog.man: New file.
17263 * man/Makefile: Add grog.n to MAN1PAGES.
17264 * etc/grog.sh: New file.
17265 * etc/Makefile: Install grog.sh as grog.
17267 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
17269 * troff/input.c (token::next): Implement \E.
17271 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
17273 * xditview/tmac.X: Change font translations to match tmac.ps.
17275 * troff/input.c (non_empty_name_warning): Don't give a warning if
17276 `\{' terminates the name.
17278 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
17280 * ps/devps/symbol.diff: New file.
17281 * ps/devps/FontMakefile: Mention symbol.diff.
17283 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
17285 * troff/node.c (font_position): Use get_long_name to read the
17288 * troff/env.c (environment_switch): If we get a number that's < 0
17289 or >= NENVIRONMENTS, treat it like a name.
17290 Change NENVIRONMENTS to 10.
17292 * troff/groff.h: Remove definition of FONTS_MAX.
17293 * troff/node.h (class font_family): Make map a pointer instead of
17294 an array. Add a map_size member. Make it a class. Make nm const
17295 and public. Make invalidate_fontno a friend.
17296 * troff/node.c: Define font_table_size. Make font_info a pointer
17297 rather than an array.
17298 (class troff_output_file): Allocate font_position dynamically. Add
17299 nfont_positions member.
17300 (troff_output_file::set_font): Grow font_position if necessary.
17301 (troff_output_file::~troff_output_file): Delete font_position.
17302 (troff_output_file::troff_output_file): Allocate font_position.
17303 (grow_font_table): New function.
17304 (troff_output_file::really_begin_page,
17305 troff_output_file:really_copy_page): Use nfont_positions rather
17307 (mount_font_no_translate, mount_style): Call grow_font_table if
17309 (font_family::font_family): Allocate map.
17310 (font_family::make_definite): Grow map if necessary. Use
17311 font_table_size instead of FONTS_MAX.
17312 (font_family::~font_family): New function.
17313 (invalidate_fontno): Use font_family::map_size.
17314 (get_fontno, env_space_width, env_half_narrow_space_width,
17315 env_narrow_space_width, symbol_fotno, is_good_fontno,
17316 get_bold_fontno, make_glyph_node): Use font_table_size rather than
17318 (next_available_font_position): Never return 0.
17320 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
17322 * ps/tmac.ps: Add font translations for compatibility with dpost.
17324 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
17326 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
17327 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
17328 Move definitions baseline_sep, shift_down, column_sep,
17329 matrix_side_sep into...
17330 * eqn/box.c: Add them to param_table.
17331 * eqn/pbox.h: Add declarations to pbox.h.
17333 * troff/input.c (set_string): Cast value to unsigned char *.
17335 * troff/token.h (process_input_stack): Declare it static before
17336 declaring it a friend.
17338 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
17340 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
17342 * dvi/devdvi/EX: Regenerate.
17344 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
17347 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
17349 * eqn/lex.c: In defaults_table, make definition of `dot' call
17350 `dot_def'. Don't explicitly make it roman. Similarily for other
17353 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
17355 (for_input::get, for_input::peek): Use this.
17356 (do_for): Add by_is_multiplicative argument.
17357 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
17358 Change semantic value of optional_by to be a double plus a flag
17359 saying whethet the by clause is multiplicative.
17361 * eqn/lex.c (get_delimited_text): Remember location of start of
17362 definition. Improve error handling when EOF is encountered.
17364 * lib/font.h: Rename handle_x_command to
17365 handle_unknown_font_command.
17366 * lib/font.c (font::load): Call handle_unknown_font_command for
17367 any unknown command in the font description file. Don't call
17368 handle_x_command. Include the name of the command in the argv.
17369 Improve message for unknown command after kernpairs or charset
17371 * ps/ps.c (ps_font::handle_x_command): Rename to
17372 handle_unknown_font_command. Remove message about `x download'
17373 command. Give error message for wrong number of arguments.
17374 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
17375 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
17376 handle_unknown_font_command. Give an error message for wrong
17377 number of arguments. Rename design_size to designsize.
17378 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
17379 checksum', `designsize' instead of `design_size'.
17381 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
17383 * eqn/*.[chy]: Change underaccent to uaccent.
17385 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
17386 give it the same precedence as ACCENT.
17387 * eqn/other.c (make_underaccent_box): New function.
17388 * eqn/box.h: Declare it.
17389 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17392 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
17394 * pic/pic.y (reset_all): New function. Called in rule for RESET.
17395 (parse_init): Call reset_all.
17396 (define_variable): When defining scale reset only those
17397 pre-defined variables that are scaled.
17398 (defaults_table): Add `scale' as non-scaled value.
17400 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17401 together with the text; allow any number of positioning words;
17402 allow center as a positioning word.
17404 * pic/object.c (output::compute_scale): Get picture maximum height
17405 and width from variables called maxpswid and maxpsht.
17406 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17408 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
17410 * pic/object.c (object_spec::make_text): Multiply textht by number
17413 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17415 (do_sprintf): New function.
17416 (pic.gperf): Add sprintf token.
17417 (text, sprintf): New rules.
17419 * pic/pic.y: `rand()' with no arguments returns a random number
17420 in the range [0,1).
17422 * pic/pic.y: Allow a bare expression to be an attribute: change
17423 precedences to support this. Change optional_ordinal rule to
17424 optional_ordinal_last to avoid reduce/reduce conflict.
17425 * pic/object.c (object_spec::object_spec): Initialize direction.
17427 * pic/pic.y: Implement ^ operator meaning exponentiation.
17429 * troff/node.h: Add default argument to mount_font.
17430 * troff/node.c (font_position): Read an optional third argument
17431 giving the external_name.
17432 (mount_font): Add optional argument giving the external_name.
17433 (mount_font_not_translate): Have additional argument giving
17434 external name. Use this name to load the font. Pass both names
17435 to font_info::font_info.
17436 (font_info::font_info): Have additional argument giving
17438 (class tfont): New member external_name.
17439 (font_info::get_tfont): Use external name to construct tfont_spec.
17441 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
17443 * eqn/lex.c (init_table): Add argument giving device. Define
17444 name of device to be "1".
17445 (do_ifdef): Counts as true if the argument has been defined with
17447 * eqn/main.c (main): Call init_table with device argument. Make
17448 device local to main.
17449 * eqn/eqn.h: Change declaration of init_table. Remove declaration
17452 * pic/lex.c (get_delimited): Allow text to be delimited by
17453 matching {}s. Don't recognize ending delimiter within a string.
17455 * troff/input.c (get_delim_name): New function.
17456 (token::next): Implement \C.
17458 * lib/font.c (font::load): Grok ---. Add an alias for each
17459 character based on its code.
17460 (font::get_code_width): Deleted.
17461 * lib/font.h (class font): Declare font::number_to_index().
17462 Remove declaration of font::get_code_width.
17463 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17464 to indices of named characters.
17465 (font::number_to_index): New function.
17466 * troff/input.c (font::number_to_index): New function.
17467 (get_charinfo_by_number, charinfo::get_number,
17468 charinfo::set_number): New functions.
17469 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17470 (token::process, token::description, token::get_char,
17471 token::add_to_node_list, token::operator==): Handle
17472 TOKEN_NUMBERED_CHAR.
17473 * troff/charinfo.h: Declare get_charinfo_by_number,
17474 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
17476 (charinfo::numbered): New function.
17477 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17478 * troff/env.h (class environment): Remove declaration of ...
17479 * troff/env.c (environment::make_numbered_char_node): Deleted.
17480 * troff/node.c (make_numbered_node): Deleted.
17481 (class numbered_glyph_node): Remove.
17482 (troff_output_file::put_char_width, troff_output_file::put_char):
17483 Handle numbered chars.
17484 (troff_output_file::numbered_char): Removed.
17485 (tfont::get_code_width): Removed.
17486 (make_glyph_node): Don't search special fonts for numbered
17488 * troff/node.h: Remove declaration of make_numbered_node.
17489 * driver/input.c (do_file): Handle N command.
17490 * driver/printer.h: Add declaration of ...
17491 * driver/printer.c (printer::set_numbered_char): New function.
17492 * dvi/tfmtodit.c (main): Generate unnamed entries.
17493 * ps/devps/afmtodit: Likewise.
17494 * xditview/xtotroff.c (MapFont): Likewise.
17495 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17497 * tbl/main.c (process_format): If multiple widths are specified
17498 for a column but all the widths are the same, don't give an error
17501 * tbl/table.c (table::do_row): If the current row is all lines and
17502 the stuff doesn't contains a line, mark the top of the row after
17503 printing stuff before the row. If the current row is not all
17504 lines and the stuff doesn't contain a line, don't unnecessarily
17505 mark the top of the row before printing the stuff.
17507 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
17509 * troff/groff.h: Remove MAX_PATH.
17510 * troff/input.c (open_file): Dynamically allocate space for the
17512 (open_mac_file, process_macro_file): Corresponding changes.
17514 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
17516 * troff/node.h (class output_file): Make copy_file pure. Add
17517 vspace method ifdef COLUMN. Add is_printing method.
17518 * troff/node.c: Add class printing_reg. Add class
17519 real_output_file. Derive other output_file classes from
17520 real_output_file; in these classes rename begin_page to
17521 really_begin_page, print_line to really_print_line, copy_file to
17522 really_copy_file, transparent_char to really_transparent_char.
17523 Move output_file::flush to real_output_file. Add printing member
17524 to class output_file.
17525 * troff/div.h: Remove printing member from top_level_diversion.
17526 Add vspace member function to class diversion ifdef COLUMN. Add
17527 some declarations ifdef COLUMN.
17528 * troff/div.c (top_level_diversion::copy_file,
17529 top_level_diversion::transparent_output,
17530 top_level_diversion::output): Don't test printing member before
17532 * troff/input.c: Handle initial variable_space_request ifdef
17534 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17535 but comment it out.
17537 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
17539 * troff/div.c (diversion::need): Make any space forced. If we
17540 sprung a trap, set truncated_space to minus the distance to the
17541 trap and set needed_space to the amount that was needed.
17542 (top_level_diversion::space): A forced space turns no_space_mode
17544 (class constant_vunits_reg): New class.
17545 (init_div_requests): Implement number registers .trunc and .ne
17546 using constant_vunits_reg.
17547 (class truncated_space_reg): Deleted.
17549 * troff/div.h: Don't have a no_space_mode member in diversion.
17550 Instead have it in top_level_diversion.
17551 * troff/div.c (diversion::diversion): Don't initialize
17553 (top_level_diversion::top_level_diversion): Initialize
17555 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17556 (macro_diversion::output): Don't clear no_space_mode.
17558 * troff/input.c (diverted_space_node::reread): Don't call
17559 environment::do_break. In fill mode, act like a blank line.
17560 (diverted_copy_file_node::reread): Don't call
17561 environment::do_break.
17563 * troff/div.c (blank_line): New function.
17564 * troff/div.h: Declare it.
17565 * troff/input.c (process_input_stack): Call it.
17567 * troff/div.c (truncated_space_reg::get_string): New function.
17568 (init_div_requests): Bind to .trunc.
17569 (space_request, top_level_diversion::space,
17570 top_level_diversion::output, macro_diversion::space,
17571 macro_diversion::output): Update truncated_space.
17572 (macro_diversion::output): Redo calculations when trap sprung.
17573 (macro_diversion::output, macro_diversion::space): No need for
17576 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17577 after truncating post line spacing.
17579 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
17581 * ps/devps/prologue (MF, SF): Make them work even if setfont is
17582 defined as a procedure rather than as an operator.
17584 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
17586 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17588 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
17590 * troff/div.c (top_level_diversion::output): Merge
17591 output_file::print_line and output_file::end_of_line member
17593 * troff/div.h (class output_file):
17594 * troff/node.c (troff_output_file::print_line,
17595 troff_output_file::end_of_line, output_file::end_of_line,
17596 ascii_output_file::print_line, suppress_output_file::print_line):
17597 Corresponding changes.
17599 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
17601 * troff/input.c (token::next): Don't give a warning for `\.'.
17603 * troff/env.c (environment::get_center_lines): New function.
17604 (init_env_requests): Bind number register .ce to it.
17605 * troff/env.h: Declare it.
17606 * tbl/table.c (table::init_output): Define reset macro to restore
17607 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
17609 (table::print): If center option not given, then imply center
17610 option if SAVED_CENTER_REG > 0.
17612 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
17614 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17615 Troff.ps from DOWNLOAD.
17617 * troff/Makefile: Change comment in DEFINES to avoid confusing
17620 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17621 code. Don't try to catch errors with stopped.
17622 (check_line_lengths): New function.
17623 * ps/devps/prologue (EXEC): Deleted.
17624 (EBEGIN, EEND): New procedures.
17626 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
17628 * troff/input.c: Include request.h before node.h.
17629 * troff/node.c: Likewise.
17630 * troff/env.c: Likewise.
17631 * troff/div.c: Likewise.
17632 * troff/node.h (class special_node): Store argument as a macro
17633 rather than a char *.
17634 * troff/node.c (special_node::special_node, special_node::copy):
17636 (special_node::~special_node): Deleted.
17637 (special_node::tprint): Deleted.
17638 (special_node::tprint_start, special_node::tprint_end,
17639 special_node::tprint_char): New functions.
17640 (troff_output_file::special): Deleted.
17641 (troff_output_file::start_special, troff_output_file::end_special,
17642 troff_output_file::special_char): New functions.
17643 * troff/input.c (special_node::tprint): New function.
17644 (do_special): Use macro not char *.
17645 (do_transparent_macro): Deleted.
17646 (token::next): Don't call do_transparent_macro.
17648 * troff/input.c (token::next): Add 'Y' case.
17649 (do_transparent_macro): New function.
17650 * troff/node.c (troff_output_file::special): Handle newlines with
17651 argument using new continuation convention.
17652 * driver/input.c (get_string): Cope with continuation convention.
17653 (do_file): Don't call skip_line after calling get_string(1).
17654 * ps/ps.c (ps_printer::special, ps_printer::do_import,
17655 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17657 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17660 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
17662 * troff/input.c (asciify): By default, illegal input characters
17663 should return empty string.
17665 * troff/input.c (copy_file): Handle first page transition like title.
17666 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17668 * troff/input.c (token::next): Improve error message for EOF after
17670 (input_char_description): New function.
17671 (get_char_for_escape_name): Use input_char_description.
17672 (token::next): Warn about unrecognized escape sequences.
17673 (warning_table): Add WARN_ESCAPE.
17674 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17677 * troff/token.h: Remove declaration of process_input_stack.
17679 * troff/input.c: Remove declaration of init_hyphen_requests.
17680 * troff/request.h: Correct spelling in declaration of same.
17682 * troff/input.c (token::next): Check whether escape_char is 0.
17684 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
17686 * groff.c (main, usage, help): Implement -P and -L options.
17687 * groff.sh: Likewise.
17689 * troff/input.c (token::next): Use some gotos to avoid code
17692 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17693 Avoid calling symbol::symbol if name empty.
17695 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
17697 * troff/input.c (init_input_requests): Make \n(.x return the major
17698 version number and \n(.y return the minor version number.
17699 * troff/Makefile: Construct file majorminor.c defining
17700 major_version and minor_version automatically from ../VERSION.
17702 * troff/node.c (class glyph_node): Make operator new and operator
17704 (class ligature_node): Similarily.
17706 * troff/input.c (operator==(const macro &, const macro &)): New
17708 (non_interpreted_node::same): Use this.
17709 (string_iterator::string_iterator): Make macro& argument const.
17711 * troff/input.c (input_iterator::get): New function. Don't make
17712 asciify_macro or class non_interpreted_node friends of class
17714 (non_interpreted_node::interpret): Use input_iterator::get.
17715 (asciify_macro): Likewise.
17717 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17718 ~non_interpreted_node): Deleted.
17719 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17722 * troff/symbol.h: Make all symbol member functions const.
17724 * lib/strtol.c: New file.
17725 * lib/Makefile: Add strtol.c.
17726 * Makefile: Define STRTOL as strtol.o to include strtol in
17729 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
17731 * pic/troff.c (troff_output::simple_circle): Divide by scale.
17733 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
17735 * troff/input.c (do_special): Use input_level.
17737 * troff/token.h (TOKEN_BACKSPACE): New token.
17738 (token::backspace): New function.
17739 * troff/input.c (token::description, token::next, token::process):
17740 Grok TOKEN_BACKSPACE.
17741 (do_special): Turn TOKEN_BACKSPACE back into \b.
17743 * troff/token.h (token::leader): New function.
17744 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17746 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17748 * troff/input.c (do_special): Use token::description in error
17751 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
17753 * troff/input.c (decode_args): Combine quoted and
17754 quote_input_level variables. Make it a for (;;) loop.
17756 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17758 * troff/input.c (read_long_escape_name): The test for whether to
17759 expand buffer was off by 1.
17760 (read_string): Similarily.
17762 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
17764 * troff/input.c: Use `const int' rather than `static const int'.
17766 * troff/div.h (diversion::copy_file): Declare as pure virtual.
17767 (macro_diversion::copy_file): New function.
17768 * troff/node.h: New class diverted_copy_file_node.
17769 * troff/node.c: Implement it.
17770 * troff/input.c (copy_file): Use diversion::copy_file. Handle
17771 first page transition by pushing a diverted_copy_file_node.
17772 * troff/input.c (token::next, process_input_stack): Don't handle
17775 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
17777 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17778 whether space widths need adjusting.
17780 * troff/charinfo.h: Generalize translated_to_space to
17781 special_translation so as to allow translation to \&.
17782 * troff/input.c (translate): Allow translation to \&.
17783 (charinfo::*): Corresponding changes.
17784 * troff/node.c (make_node, node::add_char): Corresponding changes.
17785 * troff/node.h (dummy_node::dummy_node): Allow optional first
17788 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17789 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17791 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17792 TOKEN_REQUEST with an argument of TITLE_REQUEST.
17793 (token::process): Grok that.
17794 * troff/input.c (copy_file): Handle first page transition like
17795 title by pushing a COPY_FILE_REQUEST cookie.
17796 (token::next, process_input_stack): Grok that.
17797 * troff/node.h (output_file::copy_file): Add x and y arguments.
17799 * troff/div.c (top_level_diversion::copy_file): Supply them.
17800 * troff/node.c (troff_output_file::copy_file): Add x and y
17801 arguments; moveto specified position. Invalidate font_position
17802 array after copying file.
17803 (output_file::copy_file): New function.
17804 (suppressed_output_file::copy_file, ascii_output::copy_file):
17806 * troff/input.c (transparent_file): New function.
17807 (init_input_requests): Bind to "trf".
17808 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17809 (process_input_stack): Likewise.
17811 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17813 * troff/node.c (init_node_requests): New number registers .kern
17814 pointing to global_kern_mode, and .lg pointing to
17815 global_ligature_mode.
17817 * troff/node.c (ligature): Don't change it if we get a bad
17820 * troff/input.c (do_define_string): Don't strip tabs.
17822 * troff/input.c (asciify_macro): Make the string_iterator auto.
17824 * troff/node.c (init_font_requests): Rename to...
17825 (init_node_requests):
17826 * troff/node.h: Change declaration.
17827 * troff/input.c (main): Change call.
17829 * troff/input.c (node::reread, diverted_space_node::reread): New
17831 (process_input_stack): Call reread rather than
17832 get_diverted_space_node.
17833 * troff/node.c (node::get_diverted_space_node,
17834 diverted_space_node::get_diverted_space_node): Removed.
17835 * troff/node.h: Declare reread methods instead of
17836 get_diverted_space_node methods. Make `n' member private.
17837 * troff/input.c: (token::diverted_space): Removed.
17838 * troff/token.h: Removed declaration.
17841 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
17843 * eqn/script.c (script_box::compute_metrics): Don't let
17844 SUP_RAISE_FORMAT become negative.
17846 * tbl/table.c (table::do_row): Entries that don't end in the
17847 this row shouldn't make the row non-blank.
17849 * tbl/table.c (table::make_columns_equal): Only set the width of
17850 columns which are marked as equal.
17852 * tbl/main.c (process_data): Before issuing excess data error,
17853 if last character was a newline unget it; then get it again after
17854 the error. Also include the contents of the entry in the message.
17856 * groff.c: New file.
17857 * Makefile: Build groff from groff.c. Make it possible to use
17858 either groff.sh or groff.c as groff.
17859 * Makefile.bd: Similarily.
17861 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
17863 * groff.sh: Don't delay expansion of $@ in assignment to files.
17864 Remove occurrences of \".
17866 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
17868 * all Makefiles: Simplify and rearrange.
17870 * Makefile: Handle fmod like malloc.
17871 * lib/Makefile: Similarily.
17872 * lib/fmod.c: Remove #ifdef NEED_FMOD.
17874 * Makefile: Rename OPTIMISE to OPTIMIZE.
17876 * groff.sh: Remove assignment to PATH.
17877 * Makefile: Remove SHPATH variable.
17878 * Makefile.bd: Similarily.
17880 * groff.sh: Add -V option to print the pipeline instead of
17883 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
17885 * lib/font.c: Split off file searching into ...
17886 * lib/fontfile.c: New file.
17888 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17890 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
17892 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17893 Also change misleading comment.
17894 (table::do_vspan): Change similarily misleading comment.
17895 * tbl/main.c (process_data): A format row with an explicit `s'
17896 uses up a data line, even if all the other columns are `_' or `='.
17898 * troff/input.c (token::description): Fix description of
17899 TOKEN_DUMMY and TOKEN_EMPTY.
17901 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
17903 * groff.sh: Fix description of -Z in help message.
17905 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
17907 * pic/object.c (object_spec::make_object): Allow negative and zero
17909 * pic/pic.y: Give linethick default value of -1.0.
17910 * pic/troff.c (troff_output::troff_output): Initialize
17911 last_line_thickness to BAD_THICKNESS.
17912 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17913 (troff_output::line_thickness): Canonicalize negative thicknesses
17914 to RELATIVE_THICKNESS.
17915 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17916 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17918 (tex_output::start_picture): Set pen_size to -2.0.
17920 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17921 0, then use 0 linewidth.
17922 (ps_printer::ps_printer): Initialize line_thickness to -1.
17924 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17926 * ps/devps/symbolchars: Remove `or'.
17927 * ps/tmac.ps: Implement \(or with .char.
17929 * ps/devps/symbolchars: Move most characters into textmap.
17930 * ps/devps/textmap: Add names for troff bracket characters. Remove
17933 * ps/devps/TSymbol.ps: Removed.
17934 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17935 * ps/tmac.ps: Do with .char what TSymbol did.
17936 * ps/devps/download: Remove TSymbol.
17938 * ps/devps/T: Removed.
17939 * ps/devps/Troff.ps: Removed.
17940 * ps/devps/Troff.afm: Removed.
17941 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17942 * ps/devps/download: Remove Troff.
17943 * ps/devps/FontMakefile: Remove T target.
17944 * ps/devps/DESC-A4: Remove T from font list.
17945 * ps/devps/DESC-letter: Likewise.
17947 * troff/input.c (macro_to_node): Rename to ...
17948 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
17949 character's definition while processing it.
17950 * troff/node.c (node::add_char, make_node): Change calls to
17951 macro_to_node accordingly.
17953 * troff/input.c (token::next): Translate \_ to \(ul.
17955 * tty/devascii/R.proto: Add `|'.
17956 * tty/devlatin1/R.proto: Likewise.
17958 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
17960 * man: Put the version number in all the man pages.
17962 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
17964 * Makefile.bd: New file.
17965 * README.bd: New file.
17967 * VERSION: New file.
17968 * lib/version.c: Removed.
17969 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17972 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17973 environment variable.
17975 * all Makefiles: Split install target into install.bin for
17976 binaries, and install.nobin for everything else.
17977 * Makefile: Add bindist target.
17979 * man/afmtodit.man: New file.
17980 * man/Makefile: Add afmtodit.n to MAN1PAGES.
17981 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17983 * ps/Makefile: Pass BINDIR to make install in devps.
17985 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17986 the space character.
17988 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17990 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
17992 * ps/ps.c: Redo font downloading.
17993 * ps/devps/download: New file.
17994 * ps/devps/Makefile: Add download to DEVICEFILES.
17995 * ps/devps/afmtodit: Remove -d option.
17996 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17997 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17998 * ps/devps/zapfdr.ps: Likewise.
17999 * ps/devps/TSymbol.ps: Likewise.
18001 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
18003 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
18005 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
18007 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
18008 then strip the first line if it starts with %.
18009 * Makefile: Add a comment about this.
18011 * man/tfmtodit.man: New file.
18012 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
18013 * dvi/Makefile: Install tfmtodit in BINDIR.
18015 * dvi/tfmtodit.c (usage): Mention -v option.
18017 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
18019 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
18020 * troff/node.c (troff_output_file::transparent_char): Don't call
18023 * eqn: Add check_tabs method to most box classes.
18024 * eqn/box.c (box::top_level): Call check_tabs.
18026 * eqn/script.c (script_box::output): Use \Z.
18027 * eqn/limit.c (limit_box::output): Use \Z.
18029 * eqn/box.c (box::top_level): Use itoa.
18031 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
18033 * dvi/tmac.dvi: Add font translations for CR, C, TT.
18034 * dvi/devdvi/Makefile: Don't make links to CW.
18036 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
18038 * xditview/tmac.X: Likewise.
18040 * troff/node.c: Add font translation feature.
18041 (get_font_translation): New function.
18042 (symbol_fontno): Translate the font name.
18043 (mount_font_no_translate): Rename to mount_font to this.
18044 (mount_font): New function.
18045 (font_family::make_definite): Call mount_font_no_translate instead
18047 (mount_style): Translate the font name.
18048 (font_translate): New function.
18049 (init_font_requests): Bind "ftr" to font_translate.
18051 * ps/devps/prologue (SN): New procedure that rounds a position to
18052 the nearest (pixel + (.25,.25)).
18053 (DL): Use SN to round endpoints.
18055 * lib/version.c: Changed version to 0.5.
18057 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
18059 * Makefile: Move definition of PAGE to the very beginning, so that
18060 people are less likely to miss it.
18062 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
18064 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
18066 * troff/env.c (environment::choose_breakpoint): Make `can't find
18067 breakpoint' error a warning of type WARN_BREAK. Change message to
18068 `can't break line'.
18069 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
18071 * troff/input.c: Add WARN_BREAK to warning_table. Include
18072 WARN_BREAK in DEFAULT_WARNING_MASK.
18074 * tty/tmac.tty: Add definition of \(+-.
18076 * groff.sh: Remove `--' option to set command.
18078 * dvi/devdvi/texsy.map: Remove duplicate md entry.
18080 * ps/devps/eqnchar: Better definition of cdot using md.
18081 * dvi/devdvi/eqnchar: Likewise.
18082 * xditview/devX100/eqnchar: Likewise.
18083 * xditview/devX75/eqnchar: Likewise.
18084 * eqn/lex.c: Add definition of cdot.
18086 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
18088 * troff/input.c (get_optional_char): New function.
18089 * troff/input.c (set_page_character): Use get_optional_char(),
18090 rather than has_arg() and tok.get_char(1).
18091 * troff/env.c (tab_character, leader_character, hyphen_char,
18092 field_characters): Likewise.
18093 (margin_character): Likewise. Also always delete the
18094 margin_character_node.
18096 * troff/input.c (token::get_char): Use token::description.
18098 * troff/input.c (has_arg): Don't skip over tab and \}.
18099 * troff/number.c (start_number): Give a warning if the number
18100 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
18102 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
18104 * troff/input.c (empty_name_warning, non_empty_name_warning): New
18106 (get_name, get_long_name): Use these. Rename `warn' argument to
18109 * troff/node.c (get_fontno): Test that the symbol is not null.
18111 * troff/input.c (token::description): New function.
18112 * troff/number.c (parse_term): Use token::description in `numeric
18113 expression expected' message.
18114 * troff/groff.h: Add WARN_MISSING.
18115 * troff/number.c (start_number): New function.
18116 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
18117 get_incr_number): Use start_number().
18118 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
18120 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
18121 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
18123 * troff/input.c (token::get_char): Use WARN_MISSING.
18124 * troff/input.c (token::delimiter): Use token::description.
18125 * troff/env.c (environment_switch): Back out Aug 3 change.
18126 * troff/input.c (has_arg): Skip over \}s and tabs but give a
18128 * troff/token.h (token::tab): New function.
18129 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
18130 * troff/reg.c (alter_format): Likewise.
18131 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
18133 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
18135 * troff (most files): Redo warnings. Divide warnings into various
18136 categories; warning() has an additional first argument indicating
18137 the category it falls into.
18138 * troff/input.c (main): -w now takes an argument. New option -W.
18139 (enable_warning, disable_warning): New functions.
18141 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
18142 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
18144 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
18146 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
18147 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
18148 * xditview/devX75/eqnchar: Likewise.
18149 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
18151 * eqn/other.c: When bar or over applies to a single character
18152 don't produce an overline_box or an underline_box. Instead produce
18153 an accent_box or an underaccent_box, with the accent a line
18154 whose width is accent_width. New classes underaccent_box,
18155 overline_char_box and underline_char_box.
18156 * eqn/box.h: Move overline_box, underline_box, accent_box class
18157 declarations into eqn/other.c. Add declarations of
18158 make_underline_box, make_overline_box, make_accent_box.
18159 * eqn/eqn.y: Call make_overline_box, make_underline_box
18160 make_accent_box instead of constructors.
18161 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
18163 * eqn/other.c: Add accent_box::~accent_box.
18164 * eqn/box.h: Declare it.
18166 * groff.sh: With -Tps, use eqn -D.
18168 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
18170 (underline_box::output): Similarily.
18171 (accent_box::output): Use \Z.
18173 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
18176 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
18178 * troff/div.c (top_level_diversion::transparent_output(unsigned
18179 char)): Use asciify.
18180 * troff/input.c (asciify): Don't make it static.
18181 * troff/token.h (asciify): Declare it.
18183 * troff/input.c (get_name, get_long_name, token::get_char,
18184 token::delimiter): Add an extra default argument which says
18185 whether a warning should be printed.
18186 * troff: Pass a non-zero argument to one of these rather than
18187 printing a warning directly.
18189 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
18191 * troff: Consistently use symbol::is_null.
18193 * troff/dictionary.h: Move some inline functions into
18196 * troff/request.h: Move inline functions into input.c.
18197 (request_or_macro::invoke): Make it pure.
18199 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
18200 * troff/input.c (init_input_requests): Use class constant_int_reg.
18201 (class compatible_reg): Deleted.
18202 * troff/div.c (init_div_requests): Use class constant_int_reg.
18203 (class last_post_line_extra_space_reg): Deleted.
18205 * troff/env.c (tab_character): Don't change the tab character if
18206 we get an invalid argument.
18207 (hyphen_char): Similarily.
18209 * troff/reg.c (alter_format): Check that nm is not null.
18211 * Makefile, groff.sh: Make it possible to customize the commands
18212 used for printing PostScript and dvi files. Also make it possible
18213 to customize the path used by groff.sh.
18215 * eqn/eqn.y: Make `left' right associative.
18217 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
18219 * pic/pic.h: Added definition of M_SQRT2 for those systems that
18222 * pic/pic.h: Removed definition of INT_MAX.
18224 * troff/node.c (italic_corrected_node::vertical_extent): Omit
18227 * troff/input.c (token::next): Handle \R like \n.
18229 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
18231 * ps/tmac.pc (PSPIC): Simplify.
18233 * troff/env.c (tab_stops::to_string):
18234 * pic/pic.y (object_type_name):
18235 * pic/troff.c (simple_output::line):
18236 * pic/tex.c (tex_output::spline):
18237 * pic/object.c (object_spec::make_object):
18238 * tbl/main.c (process_data): Add cases to switch statements to
18239 avoid cfront warnings. (Some of these are spurious, since the
18240 switch already has a default case.)
18242 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
18243 `ps-'. Don't test systat; instead check number of arguments to
18246 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
18248 * macros/tmac.e: Do not decrease the page offset by 0.5i.
18250 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
18251 Unlink the file as soon as we have opened it, so that we don't
18252 have to bother with signal handlers.
18253 (handler): Deleted.
18254 (fatal_error_exit): Deleted.
18255 (main): Don't call signal.
18257 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
18259 * dvi/devdvi/Makefile: Use the -k option with S and MI.
18261 * pic/pic.y: If there is a label, or an nth construction before
18262 the first `.' in the argument to `with', ignore it and generate a
18264 * pic/lex.c (lex_warning): New function.
18266 * tbl/table.c (table::init_output): In section keep and release
18267 macro, use 0 indent when diverting and the correct indent when
18270 * troff/input.c (interpolate_number_format): Do not interpolate
18271 anything if the number register is not defined.
18273 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
18275 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
18277 * ps/devps/prologue (PICTURE): Set components of graphics state to
18278 their default values.
18280 * ps/devps/text.enc: Add trademark
18281 * ps/devps/textmap: Add names for club, spade, heart, diamond,
18282 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
18283 * ps/devps/symbolchars: Add names for summation and product.
18285 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
18286 suchthat. Add pp. Add upper-case letters.
18288 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
18289 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
18292 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
18293 rA (right angle bracket) to ra. Introduce names for double-headed
18294 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
18295 * ps/devps/textmap: Likewise for ps device.
18296 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
18297 * tty/devascii/R.proto: Rename lA to la and rA to ra.
18298 * tty/devascii/R.proto: Likewise.
18299 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
18301 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
18303 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
18305 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
18308 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
18310 * troff/div.c (when_request): Use symbol::is_null rather than
18311 has_arg to determine whether we have an argument.
18312 (change_trap): Remove the trap if we get an invalid number. Give
18313 an error if we don't get at least the macro name.
18314 (diversion_trap): Remove trap if we get an invalid name or number.
18316 * troff/env.c (environment_switch): Pop if we get an invalid
18317 symbol or numeric expression.
18319 * troff/input.c (do_define_macro): If EOF is encoutered while
18320 defining the macro, do tok.next() before returning.
18322 * troff/token.h (has_arg): Move definition from here, to ...
18323 * troff/input.c (has_arg): ... here
18325 * troff/env.c (space_size): Do nothing if we get an invalid argument.
18326 * troff/input.c (shift): Likewise.
18328 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
18331 * pic/troff.c (troff_output::start_picture): Comment out calls to
18334 * eqn/main.c (do_file): Subtract 1 from current_lineno if
18335 interpret_lf_args succeeds.
18337 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
18338 \\. This avoids problems with \$N.
18340 * groff.sh: Pass -C to preprocessors.
18342 * lib/lf.c (interpret_lf_args): Be more flexible.
18344 * tbl/main.c (main): Add -C option.
18345 (table_input::get): Do not recognize TE if followed by character
18346 other than a space or newline unless -C option given.
18347 (process_input_file): Likewise for lf, TS.
18348 (process_data): Likewise for lf in text blocks.
18350 * eqn/main.c (main): Add -C option.
18351 (do_file): Don't recognize EQ, EN or lf if followed by character
18352 other than space or newline unless -C option given.
18353 * eqn/lex.c (file_input::read_line): Similarily.
18354 * eqn/eqn.h: Declare compatible_flag.
18356 * etc/soelim.c (main): Add -C option.
18357 (interpret_lf_args): Use version in libgroff.
18360 * pic/main.c (main): Add -C option, which sets compatible_flag.
18361 (top_input::get), (top_input::peek): If -C option not given,
18362 do not recognize .PS/.PE/.PF/.lf if followed by a character
18363 other than space or newline.
18364 * pic/lex.c (file_input::read_line): Similarily.
18365 * pic/pic.h: Add declaration of compatible_flag.
18367 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
18369 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
18371 * troff/node.c, troff/node.h: Add `asciify' methods to classes
18372 derived from node. New class space_char_hmotion_node.
18373 * troff/input.c (asciify_macro): New function.
18374 * troff/input.c (init_input_requests): New request `asciify' bound
18376 * macros/mm.diff: New file.
18377 * Makefile: In install.mm target use `patch' to apply
18380 * troff/input.c (macro::print_size): Just print the size in bytes.
18382 * troff/div.c (return_request): Correct the argument
18385 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
18387 * troff/node.h (class composite_node): Add sz member.
18388 * troff/node.c (composite_node::size): Return sz.
18389 * troff/input.c (macro_to_node): Use the initial size in the
18390 environment as the size of the composite_node.
18392 * troff/node.c (node::zero_width_tprint): Provide a reasonable
18395 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
18397 * troff/div.c (change_trap): If we get a bad number expression,
18400 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
18402 * lib/matherr.c (matherr): Define this only if math.h defines
18405 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
18407 * troff/div.c (macro_diversion::distance_to_next_trap): If there
18408 no diversion trap return vunits(INT_MAX - vresolution).
18410 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
18412 * troff/input.c (do_zero_width): New implementation that doesn't
18413 use a temporary environment. Use instead:
18414 (token::add_to_node_list): New function.
18415 * troff/env.c (environment::get_prev_char_height),
18416 (environment::get_prev_char_height),
18417 (environment::get_prev_char_skew): New functions.
18418 (environment::get_prev_char): New function.
18419 (environment::get_prev_char_width): Change to use get_prev_char.
18420 (init_env_request): Implement new registers .cht, .cdp, .csk.
18421 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18422 \Z being processed in a separate environment.
18424 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
18426 * tbl/table.c: Removed TABLE_BOTTOM_REG.
18428 * tbl/table.c (table::init_output): In the section release macro,
18429 give a warning message if the section won't fit on one page.
18431 * tbl/table.c (table::do_top): Emit table keep only if table is
18433 (table::do_bottom): Likewise for table release.
18434 (table::table), (table::add_vertical_rule): Remove reference to
18436 * tbl/table.h: Remove keep member.
18438 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18439 SECTION_RELEASE_MACRO, if there's not enough space before the next
18440 trap to output the diversion, call T# ourselves, set
18441 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18442 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
18443 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
18444 vertical position and return to it before turning traps on again.
18446 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
18448 * troff/node.c, troff/node.h: In classes derived from node,
18449 replace prev_char_width method by last_char_node method.
18450 * troff/env.c (environment::get_prev_char_width): Use
18451 node::last_char_node rather than node::get_prev_char_width.
18453 * Makefile: Added comment about -fno-inline on 68030-based
18456 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18457 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18458 expressions using sizeof to int.
18459 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18461 * macros/tmac.e (TS): Don't move @f back past the current
18464 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
18466 * ps/ps.c (main): Buffer stderr.
18467 * dvi/dvi.c (main): Likewise.
18468 * tty/tty.c (main): Likewise.
18470 * ps/ps.c (ps_printer::do_import): Improve error handling.
18472 * troff/input.c (abort_request): Use asciify.
18474 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18475 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18476 type of first argument int rather than char. This works around a
18477 bug on the 68030 based Apollo using g++ 1.37.1.
18479 * tbl/table.h (class table): Add `keep' member.
18480 * tbl/table.c (table::table): Initialize `keep'.
18481 (table::add_vertical_rule): Set `keep' to 1.
18482 (table::do_top): Only emit table keep macro is `keep' is non-zero.
18483 (table::do_bottom): Likewise for table release macro.
18484 (table::do_row): Emit section keep macro even if the row is 0.
18486 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
18488 * macros/tmac.e (@C): Preserve the font family across the change
18491 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
18493 * lib/font.c: Initialize font::hor and font::vert to 1.
18494 (font::load_desc): Check the values of font::hor and font::vert.
18496 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18497 be included in a C compilation.
18498 (iftoa): Use INT_DIGITS. Include lib.h.
18500 (as_string): Likewise.
18501 * tbl/table.c: Removed definition of INT_DIGITS.
18502 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18503 * troff/input.c (input_input_requests): Likewise.
18504 * ps/ps.c (make_encoding_name): Likewise.
18505 (ps_printer::set_style): Likewise.
18506 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18508 * tty/devascii/R.proto: Map fm onto '.
18509 * tty/devlatin1/R.proto: Likewise.
18511 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
18513 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18514 argument to \w is at a different input level.
18516 * tbl/table.c (table::init_output): Define a new macro
18517 REPEATED_VPT_MACRO, like vpt but if in a diversion also
18518 transparently outputs itself.
18519 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18521 (table::do_row): Likewise.
18523 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18524 TRANSPARENT_STRING_NAME.
18526 * tbl/table.c (table::init_output): In the table release macro
18527 print an error message and don't produce any output if after
18528 issuing the need request the table still will not fit. Also
18529 remove the diversion after bringing it back.
18531 * tbl/table.c (table::init_output): Define a new macro
18532 REPEATED_MARK_MACRO, like mk but if in a diversion also
18533 transparently outputs itself.
18534 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18535 is necessary because .TH might not call .T#.
18536 (table::do_top): Likewise TOP_REG.
18537 (table::define_bottom_macro): If TOP_REG is no longer valid, use
18538 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18539 table header might contain just the two top rules.
18541 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
18543 * troff/div.c: Implement new request `ptr' to print all traps.
18545 * troff/env.c (init_env_requests): Implement `.tabs' reg with
18546 init_string_env_reg.
18547 * troff/env.c (class tab_reg): Deleted.
18549 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
18551 * troff/div.c: New number register .pn returns the number of the
18552 next page as set by the pn request.
18554 * macros/tmac.an: Redid headers and footers. Number each manual
18555 entry starting from 1 unless \nC is > 0, like Sun. Added an
18556 optional 5th argument to .TH which specifies the manual name and
18557 appears in the center of the header. Understand the X, P and D
18558 registers like Sun.
18560 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
18562 * troff/env.c (init_env_requests): New number register `.lt' to
18563 return the title length.
18565 * troff/node.h (class transparent_dummy_node): New class.
18566 * troff/node.c (class transparent_dummy_node): Provide member
18568 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18571 * troff/input.c (token::next): New escape sequence \).
18572 * troff/input.c (get_copy): Recognize \) in copy mode.
18574 * troff/input.c (input_stack::clear): New function.
18575 * troff/input.c (exit_request): Use input_stack::clear.
18577 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18578 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18580 * troff/env.c: Move set_page_character to input.c. Move
18581 page_character to input.c also.
18582 * troff/env.c (title): Split off the reading of the parts of the
18583 title into read_title_parts.
18584 * troff/input.c (read_title_parts): New function. Check the
18585 input_level when testing whether a token matches the delimiter.
18587 * troff/input.c (exit_request): New function.
18588 * troff/input.c (init_input_requests): Bind ex request to
18589 exit_request rather than exit_groff.
18591 * troff/input.c (exit_groff): Call tok.next() before
18592 process_input_stack().
18594 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
18596 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18597 * troff/env.h: ditto.
18598 * troff/input.c: ditto.
18600 * troff/env.c (environment::is_empty): Test pending_lines.
18602 * troff/env.c (environment::have_pending_lines): Removed.
18604 * troff/input.c: Add request to flush pending lines from the
18607 * troff/env.c, troff/env.h: Add automatic widow control feature.
18609 * troff/input.c (exit_groff): Do process_input_stack() after
18610 do_break() but before setting exit_flag to 2.
18612 * troff/input.c: Remove FLUSH_PENDING_LINES and
18613 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18614 environment after END_TRAP token seen, but only if there aren't
18615 any more traps still unfinished.
18616 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18618 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
18620 * troff/env.c: Rename the `retain_size' member of class
18621 pending_output_line to `no_fill'.
18623 * troff/env.c (title): When the line is output, make the
18624 retain_size argument !fill.
18626 * troff/node.h: Add `hyphenated' member to struct breakpoint.
18627 * troff/node.c (space_node::get_breakpoints),
18628 (dbreak_node::get_breakpoints): Fill this in.
18629 * troff/env.c: Allow specification of maximum number of
18630 consecutive hyphenated lines.
18632 * troff/env.c (environment::is_empty): Add test for !current_tab.
18634 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
18636 * troff/env.c (environment::hyphenate_line): Don't completely give
18637 up if the word is not to be hyphenated; continue so that breaks
18638 can be made at break_char_node's.
18640 * lib/lib.h: Only define INT_MAX if it's not already defined;
18641 undef INT_MIN if it's already defined.
18643 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18645 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18646 This works around a bug in AT&T C++ 2.0 used with an ANSI C
18649 * macros/tmac.an (an-header): Set no-space mode.
18651 * macros/tmac.an (TH): Start a new page if necessary.
18653 * Started using ChangeLog at version 0.4.
18656 version-control: never