1 2005-06-23 Bernd Warken
3 * src/devices/xditview/gxditview.man: Revised and improved.
5 2005-06-22 Werner LEMBERG <wl@gnu.org>
7 Another round in fixing getopt problems. Hopefully the last one!
8 This time we use the getopt stuff from gnulib and define a prefix
9 unconditionally so that there are no collisions with any other
10 getopt implementations. This is a slight waste of space in case
11 we already use a GNU getopt implementation, but on
12 the other hand it really simplifies life.
14 * src/include/getopt.h: Use gnulib version.
16 * src/include/getopt_int.h: Use gnulib version.
18 * src/include/groff-getopt.h: Removed. Obsolete now.
20 * src/include/lib.h: Regarding getopt, don't handle any platform
21 specially; just include getopt.h.
22 (__GETOPT_PREFIX): Define (before getopt.h).
24 * src/include/Makefile.sub (HDRS): Updated.
26 * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
29 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
32 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
33 (__GETOPT_PREFIX): Define (before getopt.h).
35 2005-06-21 Werner LEMBERG <wl@gnu.org>
37 * src/include/lib.h: Provide a fix for Mac OS X to not include
40 2005-06-20 Denis M. Wilson <dmw@oxytropis.plus.com>
42 * font/devps/prologue.ps (EP): Dont' use `bind'. Reason: Using
43 `bind' to define a procedure which contains `showpage' means that an
44 invocation of `showpage' may execute wrongly (the exact effect
45 depending on the interpreter). Not usually a problem except under
46 transformations, such as combining pages.
47 (PEND): Don't call `clear'. Reason: Using `clear' in the definition
48 of /PEND means that stack underflow will occur if the stack is
49 deliberately non-empty before document inclusion. If included
50 files are found to be generally badly behaved, we could replace the
51 `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
52 never found this necessary).
54 2005-06-20 Jörgen Grahn <jgrahn@algonet.se>
56 * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
57 earlier to get correct error message.
59 2005-06-16 Bernd Warken
60 * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
62 2005-06-15 Werner LEMBERG <wl@gnu.org>
64 Another try to update getopt files. This time we add a dummy
65 gettext.h file to satisfy the dependency.
67 * src/include/getopt.h, src/libs/libgroff/getopt.c,
68 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
70 * src/include/getopt_int.h: New file (from GNU libc CVS).
72 * src/include/gettext.h: Dummy file which just defines a gettext()
75 * src/include/groff-getopt.h: Updated.
77 * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
80 * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
81 `const' keywords in return value.
83 * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
84 Remove redundant variable `old'.
85 (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
87 * src/preproc/tbl/main.cpp (process_table): Remove redundant
91 Fix more friend name injection problems since modern C++ compilers
92 fail otherwise. We simply provide (global) declarations for all
93 functions declared as friends. This is not really necessary but
96 * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
97 peek_char, and get_location.
99 * src/preproc/refer/ref.h: Provide declarations for
100 compare_reference, same_reference, same_year, same_date,
101 same_author_last_name, and same_author_name.
103 * src/roff/troff/div.h: Provide declarations for do_divert and
106 * src/roff/troff/env.h: Provide declarations for title_length,
107 space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
108 vertical_spacing, post_vertical_spacing, line_spacing, line_length,
109 indent, temporary_indent, do_underline, do_input_trap, set_tabs,
110 margin_character, no_number, number_lines, leader_character,
111 tab_character, hyphenate_request, no_hyphenate,
112 hyphen_line_max_request, hyphenation_space_request,
113 hyphenation_margin_request, line_width, tabs_save, tabs_restore,
114 line_tabs_request, widow_control_request, and do_divert.
116 * src/roff/troff/input.cpp: Provide declaration for chop_macro.
118 * src/roff/troff/node.cpp: Provide declarations for class
120 Provide declaration for make_tfont.
122 2005-05-29 Werner LEMBERG <wl@gnu.org>
124 * doc/fdl.texi: Updated to version 1.2. Reported by Bernd Warken.
126 2005-05-28 Werner LEMBERG <wl@gnu.org>
128 * contrib/pdfmark/Makefile.sub (.ms.pdf): Use `--stylesheet', not
131 * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
132 redundant semicolons.
134 * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
135 src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
136 Define `MLIB'. Some compilers need this for linking with libgroff.
138 2005-05-27 Werner LEMBERG <wl@gnu.org>
140 * MANIFEST, README, doc/webpage.ms: Updated.
142 2005-05-26 Werner LEMBERG <wl@gnu.org>
144 * All affected files: Update postal address of FSF.
146 2005-05-25 Keith Marshall <keith.d.marshall@ntlworld.com>
149 * README: More fixes.
151 * README.CVS: Removed. Its contents is now part of the README file.
153 2005-05-21 Werner LEMBERG <wl@gnu.org>
155 * README: Updated. Based on a patch from Bernd Warken.
157 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
159 Miscellaneous script portability enhancements.
161 * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
162 generated conftest.sh script, conforming to portability
163 recommendation in autoconf docs.
164 * configure: Likewise, for code generated by GROFF_CSH_HACK.
165 * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
166 to portability recommendation in autoconf docs.
167 * contrib/gdiffmk/gdiffmk.sh: Likewise.
168 * contrib/gdiffmk/tests/runtests.in: Likewise.
169 * contrib/grap2graph/grap2graph.sh: Likewise.
170 * contrib/groffer/groffer.sh: Likewise.
171 * contrib/mm/mmroff.pl: Likewise.
172 * contrib/mom/momdoc/appendices.html: Likewise.
173 * contrib/pic2graph/pic2graph.sh: Likewise.
174 * font/devps/generate/afmname: Likewise.
175 * src/devices/xditview/ad2c: Likewise.
176 * src/preproc/eqn/neqn.sh: Likewise.
177 * src/roff/grog/grog.pl: Likewise.
178 * src/roff/grog/grog.sh: Likewise.
179 * src/roff/nroff/nroff.sh: Likewise.
180 * PROBLEMS: Likewise, in embedded script examples.
182 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
184 Improve portability of `pdfroff' shell script.
186 * arch/misc/shdeps.sh: Add space in shebang, conforming to
187 portability guidelines in `autoconf' docs.
188 (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
189 initialization code. Used by contrib/pdfmark/pdfroff.sh's
190 `searchpath' function.
192 2005-05-14 Werner LEMBERG <wl@gnu.org>
194 * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
195 contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
196 needed for newer ImageMagick versions.
198 2005-05-07 Werner LEMBERG <wl@gnu.org>
200 * src/preproc/refer/refer.man: Many small typographic fixes.
202 2005-05-06 Jeff Conrad <jeff_conrad@msn.com>
204 * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
205 Use `char *' cast for a_delete.
207 2005-05-03 Werner LEMBERG <wl@gnu.org>
209 * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
210 src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
212 2005-05-03 Jeff Conrad <jeff_conrad@msn.com>
214 * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
215 `a_delete' for `const char *'.
217 2005-05-03 Werner LEMBERG <wl@gnu.org>
219 * src/devices/grohtml/post-html.cpp,
220 src/devices/grohtml/html-table.cpp,
221 src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
222 Replace malloc/free with new/delete/a_delete.
224 * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
225 are prohibited with ANSI C++.
226 (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
227 function has a variable number of arguments).
229 * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
230 Simplify function and update all callers.
232 2005-05-02 Werner LEMBERG <wl@gnu.org>
234 Undo getopt changes from 2005-04-30. We don't want a dependency
237 * src/include/getopt_int.h: Removed.
239 * src/include/getopt.h, src/include/groff-getopt.h,
240 src/include/Makefile.sub, src/libs/libgroff/getopt.c,
241 src/libs/libgroff/getopt1.c: Revert to previous version.
244 * src/include/nonposix.h (access) [_MSC_VER]: New macro.
246 * src/include/posix.h (F_OK): Define conditionally.
248 * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
249 different variable name in second `for' loop to avoid MSVC compiler
252 2005-04-30 Werner LEMBERG <wl@gnu.org>
254 AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
256 * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
257 * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
258 * configure, src/include/config.hin: Regenerated.
265 * src/include/getopt.h, src/libs/libgroff/getopt.c,
266 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
268 * src/include/getopt_int.h: New file (from GNU libc CVS).
270 * src/include/groff-getopt.h: Updated.
272 * src/include/Makefile.sub (HDRS): Add getopt_int.h.
275 * font/devutf8/NOTES: Updated.
277 2005-04-28 Werner LEMBERG <wl@gnu.org>
279 Bug fix for Win32 relocatable code. Based on a patch from Keith
282 * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
285 * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
286 (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
288 2005-04-28 Keith Marshall <keith.d.marshall@ntlworld.com>
290 Correct `gnu.eps' handling for build from distribution tarball, with
291 separate source and build directories.
293 * doc/Makefile.sub: (examples.stamp): New target; forces copy of
294 grnexmpl.g, groff.css and gnu.eps from source to build directory;
295 generate gnu.eps from gnu.xpm if required; touch examples.stamp.
296 (prepare_examples): Make it depend on examples.stamp.
297 (CLEANADD): Add examples.stamp.
299 2005-04-27 Werner LEMBERG <wl@gnu.org>
303 position: '(' position ')'
307 * src/preproc/pic/pic.y (position, position_not_place): Handle
308 additional parentheses.
310 * doc/pic.ms: Updated.
312 2005-04-23 Larry Jones <lawrence.jones@ugs.com>
314 * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
316 2005-04-18 Werner LEMBERG <wl@gnu.org>
318 * src/roff/groff/pipeline.c: Don't include ctype.h.
320 2005-04-13 Werner LEMBERG <wl@gnu.org>
322 * src/roff/nroff/nroff.man: Document option `-M'.
324 2005-04-13 Bruce Lilly <blilly@erols.com>
326 * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
328 2005-04-01 Kees Zeelenberg <kzlg@users.sourceforge.net>
329 Werner LEMBERG <wl@gnu.org>
331 Add binary relocation support for Windows platforms.
333 * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
335 * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
337 * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
338 (search_path::search_path, search_path::open_file_cautious): Use
341 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
342 src/include/Makefile.sub (HDRS): Updated.
344 2005-04-01 Werner LEMBERG <wl@gnu.org>
346 * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
349 * src/libs/libgroff/font.cpp: Replace strdup with strsave.
351 * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
352 lib.h already does it.
354 * src/libs/libgroff/maxpathname.cpp: New file, defining
357 * src/include/lib.h: Add prototype for path_name_max.
359 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
361 * src/include/nonposix.h (PATH_EXT): New macro.
363 2005-03-28 Werner LEMBERG <wl@gnu.org>
365 Add support for double- and zero-width characters in grotty.
367 * src/devices/grotty/tty.cpp (glyph): Add width.
368 (tty_printer::make_underline, tty_printer::make_bold,
369 tty_printer::add_character): Add parameter to pass character width.
371 (tty_printer::end_page): Increase hpos by actual character width.
373 * font/devutf8/R.proto: Specify zero width for non-spacing
376 * tmac/unicode.tmac: Remove definitions for non-spacing entities.
378 * Makefile.comm (extraclean): Remove more junk files.
380 2005-03-25 Werner LEMBERG <wl@gnu.org>
382 * configure.ac: Undo change from 2005-03-24.
383 * configure: Regenerated.
385 2005-03-24 Werner LEMBERG <wl@gnu.org>
387 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
388 (dist): Search Makefile while descending into $(EXTRADIRS).
390 * doc/Makefile.in (.PHONY): Add.
391 (clean): Don't remove *.png and *.eps.
393 (realclean): Remove *.png and *.eps.
394 (extraclean): Depend on distclean.
396 * configure.ac: Add copyright.
397 Handle contrib/pdfmark/Makefile.
399 * configure: Regenerated.
401 2005-03-18 Larry Kollar <kollar@alltel.net>
403 Add numbered and definition lists to www.tmac.
405 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
406 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
407 auxiliary string registers.
408 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
409 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
410 (www-level): Removed.
411 (www-level1, www-level2, www-level3): Initialize to empty.
412 (www-level0, www-level4, www-level5, www-level6, www-level7,
413 www-level8, www-level9): New string registers.
414 (www-push-li, www-pop-li): New macros.
415 (www-push-level, www-pop-level): Renamed to...
416 (www-push-ul-level, www-pop-ul-level): This.
418 (www-push-ol-level, www-pop-ol-level): New macros.
420 (OLS, OLE, DLS, DLE): New user macros.
421 (LI): Removed. It is aliased to one of...
422 (www-li-ul, www-li-ol, www-li-dl): New macros.
424 * tmac/groff_www.man: Document new macros.
428 2005-03-18 Werner LEMBERG <wl@gnu.org>
430 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
431 doc-operating-system-NetBSD-2.0.2): New strings.
433 * tmac/groff_mdoc.man: Updated.
435 2005-03-17 Werner LEMBERG <wl@gnu.org>
437 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
439 2005-03-17 Werner LEMBERG <wl@gnu.org>
441 * src/libs/libgroff/hypot.c: Renamed to...
442 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
444 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
446 * src/include/lib.h: Updated.
448 2005-03-16 Werner LEMBERG <wl@gnu.org>
450 Add workaround for broken hypot() on Interix.
452 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
454 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
455 (CSRCS): Add `hypot.c'.
457 * src/include/lib.h: Declare `groff_hypot'.
459 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
462 * src/preproc/pic/pic.h: Don't declare `hypot'.
464 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
466 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
468 * src/devices/grohtml/post-html.cpp
469 (html_printer::lookahead_for_tables): End .ce properly to avoid a
472 2005-03-15 Werner LEMBERG <wl@gnu.org>
474 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
476 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
478 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
480 2005-03-14 Werner LEMBERG <wl@gnu.org>
482 Add Cyrillic support to devutf8 and devhtml.
484 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
486 * tmac/unicode.tmac: New file.
488 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
490 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
494 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
496 * src/libs/libdriver/printer.cpp (check_for_output_error): New
497 function. It has been introduced to catch peculiar error contexts
498 on MS-Windows platforms.
500 2005-02-28 Werner LEMBERG <wl@gnu.org>
502 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
505 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
507 * configure: Regenerated.
511 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
513 Integrate `pdfmark' into normal groff build system;
514 install macro `pdfmark' packages, build and install `pdfroff',
515 and PDF format documentation.
517 * Makefile.comm: Add PDFDOCDIR.
519 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
520 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
521 (unstall_dirs): Add pdfdocdir.
523 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
524 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
525 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
526 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
527 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
528 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
530 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
531 use of GROFF_AWK_PREFS.
532 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
533 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
535 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
536 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
537 also by modified GROFF_HTML_PROGRAMS).
539 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
541 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
543 (html_text::done_para): Unset `start_space'.
544 (html_text::remove_para_align): Call `retrieve_para_space' for the
547 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
549 (html_printer::do_check_center): Emit vertical space if necessary.
551 * src/roff/troff/env.cpp (environment_switch): Preserve
552 `seen_space', `seen_eol', and `suppress_next_eol' while switching
555 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
558 2005-02-20 Werner LEMBERG <wl@gnu.org>
560 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
563 2005-02-17 Werner LEMBERG <wl@gnu.org>
565 * doc/pic.ms, man/groff.man: Fix typos.
567 * doc/groff.texinfo: Fix typos.
568 (\LEmacro): Get proper mathematical spacing.
570 2005-02-16 Werner LEMBERG <wl@gnu.org>
572 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
573 * configure: Regenerated with autoconf 2.59b.
575 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
577 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
578 html_printer::start_font): Fix handling of preformatted text.
580 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
582 These patches modify the indentation implementation to use `<p
583 style=margin-left: n%>'. Many thanks to Peter and Larry for
584 suggesting this solution. Grohtml only uses tables for `.IP' and
585 related tags when the first operand has a short width.
587 Similarly, they modify all vertical space code. By default, grohtml
588 sets up a style sheet which uses no vertical space between `table',
589 `pre', and `p' tags. It forces spaces when it needs them using
590 `style="margin-top: 1em"'.
592 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
593 (html_table::emit_table_header, html_table::emit_new_row):
595 (html_table::set_space): New function.
596 (html_indent::html_indent): Don't set `is_used'.
597 (html_indent::begin): Rewritten.
598 (html_indent::end): Remove code in function.
600 * src/devices/grohtml/html-table.h: Updated.
601 (html_table): Make `out' public.
603 * src/devices/grohtml/html-text.cpp (html_text::html_text):
604 Initialize `start_space' with FALSE.
605 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
606 (html_text::issue_tag): Add argument to handle space style.
607 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
608 (html_text::flush_text): Don't set `start_space'.
609 (html_text::push_para): Don't set `p->really_issued'.
610 (html_text::do_emittext): Updated.
611 (html_text::do_para): Add paremeter to handle space.
613 (html_text::retrieve_para_space): New function.
615 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
616 (tag_definition): Remove `really_issued'.
617 (html_text): Updated.
619 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
620 `current_column' and `row_space'.
622 (html_printer::emit_raw, html_printer::write_header,
623 html_printer::do_indent, html_printer::do_check_center,
624 html_printer::do_tab_ts): Handle vertical space.
625 (html_printer:do_tab_te, html_printer::do_end_para): Call
627 (html_printer::do_col): Rewritten.
628 (html_printer::flush_globs): Remove debugging code.
629 (html_printer::is_line_start): New function.
630 (html_printer::start_font): Use `is_line_start'.
631 (html_printer::writeHeadMetaStyle): New function.
632 (html_printer::do_file_components, html_printer::~html_printer):
633 Call `writeHeadMetaStyle'.
635 * tmac/www.tmac (www-handle-percent): New macro.
636 (MPIMG): Handle percent values for width and height parameters.
639 * tmac/groff_www.man: Updated.
641 2005-02-14 Werner LEMBERG <wl@gnu.org>
643 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
644 $psname and $italic_angle.
645 Immediately restart file input loops if `split' returns an empty
648 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
649 Werner LEMBERG <wl@gnu.org>
651 Update afmtodit to better support Unicode (Michail).
652 Update afmtodit to use Perl 5 syntax (Werner).
654 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
656 Decorate variables with `my' where necessary.
657 Use `defined' where necessary to avoid warnings.
658 Don't use `do' for subroutine calls.
659 Other minor syntax updates.
660 Check for both `uXXXX[X[X]]' and `uniXXXX'.
661 Handle glyph variants properly.
662 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
665 * src/utils/afmtodit/afmtodit.man: Updated.
667 2005-02-13 Werner LEMBERG <wl@gnu.org>
669 Make groff.texinfo work with texinfo 4.8.
671 * doc/groff.texinfo (@Var): Use @r and @slanted.
672 (@defdummy, @Def*): Use @c to avoid empty lines.
673 (\angles): Replaced with...
674 (\Langlemacro, \Ranglemacro): New TeX macros.
675 (@Langlemacro, @Ranglemacro): New variables defined with @set.
676 (@angles): Use @Langlemacro and @Ranglemacro.
677 (\LE): Replaced with...
678 (\LEmacro): New TeX macro.
679 (@LEmacro): New variable defined with @set.
681 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
682 variables defined with @set.
683 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
684 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
689 * doc/texinfo.tex: Update to texinfo version 4.8.
691 * README.CVS: Updated.
693 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
695 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
698 2005-02-05 Werner LEMBERG <wl@gnu.org>
700 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
701 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
704 2005-02-01 Werner LEMBERG <wl@gnu.org>
706 * src/roff/groff/groff.man: Add information about paper size.
708 2005-01-25 Werner LEMBERG <wl@gnu.org>
710 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
713 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
715 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
717 (Re): Emit a warning if called without `.Rs'.
718 (doc-finish-reference): Use parameter for decreasing
719 `doc-reference-count'.
720 (doc-print-reference): Pass specific count parameters to
721 `doc-finish-reference'.
723 2005-01-21 Werner LEMBERG <wl@gnu.org>
725 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
726 Reset pointers to zero after deallocation. This fixes a crash
727 if a driver is called with multiple input files. Reported by
728 Ken Chilton <ken@chiltonfamily.org>.
730 * src/devices/grops/grops.man: Add more info on DSC.
732 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
734 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
737 2005-01-17 Werner LEMBERG <wl@gnu.org>
739 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
740 against division by zero.
742 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
744 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
746 2004-12-19 Werner LEMBERG <wl@gnu.org>
748 * install-sh: New version; taken from texinfo CVS.
750 2004-12-17 Werner LEMBERG <wl@gnu.org>
752 * tmac/devtag.tmac: Protect against loading twice.
753 Protect agains compatibility mode.
754 * tmac/www.tmac: Protect against loading twice.
755 Load `devtag.tmac' before switching off compatibility mode.
756 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
758 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
760 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
761 * configure: Updated.
763 2004-12-15 Thomas Klausner <wiz@netbsd.org>
765 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
767 2004-12-15 Werner LEMBERG <wl@gnu.org>
769 Make `test-groff' work again -- previously, wrong paths have been
770 used. Additionally, it can now be called from anywhere.
772 * test-groff.in: Don't test for groff binary. This is no longer
773 necessary since the proper paths are determined by `configure'.
774 (EXEEXT): Removed. No longer used.
775 (srcdir, builddir): Use values provided by the configure script.
776 (XENVIRONMENT): Updated.
780 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
782 Make .tag and .taga work for all devices (but only grohtml actually
785 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
786 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
787 html_printer::handle_assertion): Don't use hard-coded string
789 (html_printer::lookahead_for_table): Reset `tbl' properly if
791 (html_printer::devtag): New function, handling `devtag'.
792 (html_printer::special): Don't handle `html-tag'.
794 * src/include/printer.h, src/libs/libdriver/printer.cpp
795 (printer::devtag): New virtual function.
797 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
800 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
801 src/roff/troff/node.cpp: s/html-tag/devtag/.
803 * src/roff/troff/input.cpp (tag, taga): Always call
806 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
807 macros instead of HTML-TAG*.
809 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
811 * tmac/www.tmac: Load devtag.tmac.
812 Replace HTML-TAG* macros with DEVTAG* macros.
813 (HTML, HTML-NS): Changed definitions.
815 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
817 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
819 2004-12-10 Werner LEMBERG <wl@gnu.org>
821 Import Mike's `gdiffmk' package.
823 * contrib/gdiffmk/*: New files.
824 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
827 2004-12-08 Werner LEMBERG <wl@gnu.org>
829 Import Keith's `pdfmark' package. Integration is very preliminary.
831 * contrib/pdfmark/*: New files.
832 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
835 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
837 Fix a bug with title handling in HTML.
839 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
840 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
842 (html_printer::handle_tag_within_title): New function.
843 (html_printer::do_title): Use it.
845 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
846 (cov*tl-au-print): Emit `.eo.tl' tag.
848 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
850 * man/groff_char.man: Minor imrovements.
852 2004-12-04 Werner LEMBERG <wl@gnu.org>
854 * src/preproc/eqn/eqn.man: Revised.
856 2004-11-25 Werner LEMBERG <wl@gnu.org>
858 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
862 Remove X_NOT_STDC_ENV conditional.
863 (Version_string, program_name): New global variables.
864 (groff_flag): Removed.
866 (usage): Take a stream as argument.
869 (main): Add `long_options' array for `--help' and `--version'.
870 Make `-g' a dummy option.
871 Handle `-v' and unknown options.
872 Remove unused `position' variable.
874 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
875 (XLIBS): Add LIBGROFF.
877 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
880 * src/devices/xditview/Dvi.c (default_font_map): Split into three
881 parts to avoid compiler warning.
882 (resources): Don't initialize with `default_font_map'.
883 (ClassInitialize): Initialize first element of `resources'.
885 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
888 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
889 src/utils/pfbtops/pfbtops.man: Revised, updated.
891 * configure.ac: Generate src/utils/xtotroff/Makefile.
892 * configure: Regenerated.
894 2004-11-24 Werner LEMBERG <wl@gnu.org>
896 First fixes to get produce HTML.
898 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
901 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
902 (HR, LI): Use `HTML</p>', not `HTML'.
904 * doc/webpage.ms: Minor updates.
906 2004-11-23 Larry Kollar <kollar@alltel.net>
908 Add option -S grohtml to determine the file split level.
910 * src/devices/grohtml/post-html.cpp (split_level): New global
912 (html_header::determine_header_level): Use split_level.
913 (main): Handle `-S' command line option.
916 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
918 * src/devices/grohtml/grohtml.man: Document it.
923 2004-11-23 Y T <doarhop@hotmail.com>
925 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
926 the volume and number refer entries.
928 2004-11-22 Werner LEMBERG <wl@gnu.org>
930 * src/devices/grohtml/html-table.cpp
931 (html_table::emit_table_header): Don't emit `cols' attribute which
932 doesn't exist in HTML 4.0 and is thus invalid.
934 * NEWS: More minor fixes and updates.
936 2004-11-18 Werner LEMBERG <wl@gnu.org>
938 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
939 (HTML</p>): Minor clean-up.
941 * tmac/groff_www.man: Updated.
943 * src/devices/grohtml/grohtml.man: Revised and updated.
947 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
949 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
951 (html_printer::do_links): Fix rules generation around automatic
954 * tmac/www.tmac (LK): Use HTML-TAG-NS.
956 No longer emit empty line for non-HTML devices.
958 2004-11-17 Werner LEMBERG <wl@gnu.org>
960 * doc/Makefile.in (prepare_examples, webpage.html): Handle
963 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
964 prepare_examples, webpage.html): Handle `groff.css'.
966 2004-11-15 Werner LEMBERG <wl@gnu.org>
968 * NEWS, README, doc/webpage.ms: Updated.
970 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
972 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
974 * src/include/printer.h (printer): Remove virtual function
976 Update all source files.
978 * src/devices/grohtml/post-html.cpp (html_printer): New member
979 function `round_width'.
981 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
983 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
984 column key letter suffix.
986 2004-10-14 Werner LEMBERG <wl@gnu.org>
988 * Makefile.in (check): Depend on `site.exp' and `docheck'.
989 (docheck): Run dejagnu's `runtest' if it exists.
990 (site.exp): Create dejagnu configuration file.
992 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
994 2004-10-13 Werner LEMBERG <wl@gnu.org>
996 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
997 src/devices/grohtml/post-html.cpp (make_val,
998 html_printer::handle_state_assertion): Fix compiler warnings.
1000 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
1001 (diversion::diversion): Fix order of initializers.
1003 * src/roff/troff/div.h: Don't include `mtsm.h'.
1005 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
1006 (environment::environment): Fix order of initializers.
1007 (environment::make_tag, environment::construct_format_state): Fix
1010 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
1011 (input_iterator::input_iterator, macro::macro): Fix order of
1014 * src/roff/troff/mtsm.cpp: Include only necessary header files.
1015 (state_set::add, state_set::val): Fix compiler warnings.
1017 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
1018 (bool_value_state, int_value_state, units_value_state,
1019 string_value_state): Remove comma after last element which causes
1020 an error with g++ 3.3.3.
1022 * src/roff/troff/node.cpp: Include `stringclass.h'.
1023 (hline_node::hline_node, vline_node::vline_node,
1024 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
1026 (zero_width_node::zero_width_node): Fix order of initializers.
1028 * src/roff/troff/node.h: Don't include `mtsm.h'.
1029 (hmotion_node): Fix compiler warnings.
1031 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
1033 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
1035 * doc/groff.css: New file.
1037 * doc/webpage.ms: Use `groff.css'.
1040 * tmac/an-old.tmac (need_eo_h): New number register.
1041 (TH): Emit `.eo.tl' tag after title.
1042 (SH): Set `need_eo_h'.
1043 (an-trap): Handle `need_eo_h'.
1044 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
1046 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
1047 (TL): Always start diversion.
1049 (@AI): Always call `par@reset'.
1050 (@AB): Update code for -Thtml.
1051 (cov*tl-au-print): Handle -Thtml.
1052 (par@reset): Handle `need_eo_tl', `need_eo_h'.
1054 (@IT-html): Removed.
1055 (@SH): Set `need_eo_h' for -Thtml.
1056 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
1058 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
1059 Set `need_eo_h' for -Thtml.
1060 (@EQ, @EN): Don't handle -Thtml specially.
1061 (par@load-init): Don't handle -Thtml specially.
1063 * tmac/www.tmac (www:paraspace): New macro.
1064 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
1065 (HTML</p>, HTML-TAG-NEXT): New macros.
1066 (HnE): Emit tag `.eo.h' instead of break.
1067 (HR): s/HTML-NS/HTML/.
1068 (www-end-nowhere): End diversion only if `www-html' not set.
1070 (ULS, ULE): s|HTML|HTML</p>|.
1071 (LI): Call `www:paraspace'.
1074 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
1076 * src/roff/troff/request.h (macro): Make `p' public.
1077 New variable `is_a_diversion'.
1078 New member function `is_diversion'.
1081 * src/devices/grohtml/html.h (simple_output): New member function
1084 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
1085 computation of `total'.
1086 (tabs::check_init): New function.
1087 (html_table::emit_table_header): Emit style data.
1088 (html_table::insert_column): Improved.
1090 * src/devices/grohtml/html-table.h: Updated.
1092 * src/devices/grohtml/html-text.cpp (html_text::html_text):
1093 Initialize `start_space' with TRUE.
1094 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
1096 (html_text::flush_text): Set `start_space' flag.
1097 (html_text::uses_indent, html_text::remove_para_space,
1098 html_text::get_alignment): New functions.
1099 (html_text::push_para): Updated.
1100 (html_text::do_para): Check for empty argument.
1101 Don't set `space_emitted'.
1102 (html_text::do_space, html_text::emit_space): Updated.
1104 * src/devices/grohtml/html-text.h (tag_definition): New variable
1106 (html_text): New member function `uses_indent', `remove_para_space',
1109 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
1111 (simple_output:nl): Always emit `\n'.
1113 * src/devices/grohtml/post-html.cpp: Include `string.h'.
1114 (BASE_POINT_SIZE): Removed.
1115 (base_point_size, head_info): New global variables.
1116 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
1118 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
1120 (page::add_and_encode): Pass additional parameter for tag flag.
1121 (assert_pos): New structure.
1122 (assert_state): New class.
1123 (html_printer): Remove `indentation', `prev_indent'.
1124 Add variables `troff_indent', `device_indent', `temp_indent'.
1125 Add variables `seen_indent', `next_indent', `seen_pageoffset',
1126 `next_pageoffset', `seen_linelenght', `next_linelength',
1127 `seen_center', `next_center', `seen_space', `seen_break', `as'.
1128 Add member functions `do_check_center', `do_space', `do_head',
1129 `get_troff_indent', `restore_troff_indent', `handle_assertion',
1130 `handle_state_assertion', `do_end_para', `set_char_and_width'.
1131 Change argument to `do_fill' to `char *'.
1133 (html_printer::emit_raw): Call `shutdown_table'.
1135 (html_printer::do_center): Simplified.
1136 (html_printer::do_title): Improved.
1137 (html_printer::write_header): Emit one more newline.
1139 (html_printer::do_heading, html_printer::do_indent,
1140 html_printer::do_eol, html_printer::do_tab_ts,
1141 html_printer::do_tab, html_printer::do_tab0,
1142 html_printer::calc_po_in, html_printer::next_horiz_pos,
1143 html_printer::remove_courier_tabs,
1144 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
1146 (html_printer::do_linelength, html_printer::do_pageoffset,
1147 html_printer::do_indentation, html_printer::do_tempindent,
1148 html_printer::do_tab_te): Simplified.
1149 (html_printer::do_pointsize): Check whether point size is really
1150 associated a `.tl' tag.
1151 (html_printer::do_break): Rewritten.
1152 (html_printer::troff_tag): Improved.
1153 (html_printer::flush_globs): Updated.
1154 (html_printer::lookahead_for_tables): Handle `is_br'.
1156 (html_printer::set_char): Check `sbuf_style.f'.
1157 (html_printer::write_navigation): Use string comparison.
1158 (html_printer::~html_printer): Emit `head_info'.
1159 (html_printer::special): Rewritten.
1160 (get_str, make_val): New functions.
1161 (main): New option `s' to set the base point size.
1163 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
1165 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
1167 * src/roff/troff/node.cpp: New extern `debug_state'.
1168 Include `stringclass.h' and `mtsm.h'.
1169 Implement new classes and class members from `node.h'.
1170 (real_output_file): Make `fp' public.
1171 (troff_output_file): New variables `cur_div_level' and `tag_list'.
1172 Update constructors.
1173 (troff_output_file::really_print_line): Check whether we should push
1174 the current troff state and use the state at the start of the
1175 invocation of this diversion.
1176 (troff_output_file::add_to_tag_list): New member function.
1177 (node::add_char): Handle `glyph_comp_np'.
1179 * src/roff/troff/node.h: Include `mtsm.h'.
1180 (node): New variables `state', `push_state', `div_nest_level',
1181 `is_special'. Update constructors, all descendants.
1182 Pass additional argument to `add_char' member function.
1183 New virtual member functions `is_tag', `debug_node',
1184 `debug_node_list'. Update all descendants.
1185 (tag_node): New class for handling tags.
1186 (output_file): Add variable `state'.
1188 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
1190 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
1191 providing a minimal troff state machine to emit meta tags for the
1192 post-grohtml device driver.
1194 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
1197 2004-10-09 Werner LEMBERG <wl@gnu.org>
1199 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
1201 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
1203 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
1205 * src/roff/troff/div.h: Include `mtsm.h'.
1206 (diversion): New variables `any_chars_added', `needs_push',
1207 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
1208 `saved_suppress_next_eol', `modified_tag'.
1209 New virtual member function `is_diversion'. Update all descendants.
1211 * src/roff/troff/div.cpp (diversion::diversion,
1212 macro_diversion::macro_diversion): Updated.
1213 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
1214 `suppress_next_eol'.
1215 (top_level_diversion::space): Handle `curenv->seen_space'.
1216 (page_offset): Update tag handling.
1217 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
1219 * src/roff/troff/env.h (environment): Make `tabs' public.
1220 Remove `ignore_next_eol', `emitted_node'.
1221 Update `output_line', `output'.
1222 New variables `seen_space', `seen_eol', `suppress_next_eol',
1224 New member functions `construct_state', `make_tag',
1225 `construct_format_state, `construct_new_line_state,
1227 Remove `add_html_tag', `make_html_tag'.
1229 * src/roff/troff/env.cpp: New externs `suppress_push',
1230 `get_diversion_state', `global_diverted_space'.
1231 (pending_output_line): New variable `was_centered'.
1232 Update constructor and all callers.
1233 (pending_output_line::output): Call `curenv->construct_format_state'.
1234 (environment::environment, environment::copy): Updated.
1235 (environment::output): Handle `was_centered'.
1236 (environment::add_char): Handle construct and diversion state.
1237 (environment::add_node): Handle construct state.
1238 (environment::newline): Handle `was_centered'.
1239 (environment::output_line): Updated.
1240 (environment::possibly_break_line): Updated.
1241 Update tag handling.
1242 (environment::add_html_tag): Replaced with...
1243 (environment::make_tag): New function.
1244 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
1245 (environment::dump_troff_state): New debugging function.
1246 (environment::construct_state, environment::construct_format_state,
1247 environment::construct_new_line_state): New functions.
1248 (environment::do_break): Updated.
1249 Handle `global_diverted_space'.
1250 (environment::handle_tag): Update tag handling.
1251 (point_size, fill, do_break_request): Don't call `add_html_tag'.
1252 (no_fill): Don't call `add_html_tag'.
1253 Set `suppress_next_eol'.
1254 (center, right_justify, line_length, indent, temporary_indent,
1256 Update tag handling.
1258 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
1259 (input_iterator): New variables `is_diversion', `diversion_state'.
1260 Update constructors.
1261 (input_stack): New member functions `get_div_level',
1262 `get_diversion_state', `check_end_diversion'.
1263 New variables `div_level', `diversion_state'. Initialize them.
1264 (suppress_push, global_diverted_space): New global variables.
1265 (input_stack::finish_get, input_stack::finish_peek,
1266 input_stack::remove_boundary, input_stack::end_file,
1267 input_stack::clear, input_stack::pop_macro): Call
1268 `check_end_diversion'.
1269 (input_stack::push): Handle `div_level' and `diversion_state'.
1270 (get_diversion_state): New function.
1271 (diverted_space_node::reread): Handle `global_diverted_space'.
1272 (macro::macro): Update constructors.
1273 (macro::is_diversion): New function.
1274 (macro::operator=): Set `is_a_diversion'.
1275 (string_iterator): New member function `is_diversion'.
1276 (string_iterator::string_iterator): Update constructors.
1277 (string_iterator::fill): Set `div_nest_level'.
1278 (macro_iterator): New member function `is_diversion'.
1279 (do_if_request): Handle `suppress_push'.
1280 (tag, taga): New functions.
1281 (init_input_requests): Add `tag' and `taga' requests.
1283 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
1285 * src/include/font.h (font): New member function
1286 `get_image_generator'.
1287 New variables `unscaled_charwidths' and `image_generator'.
1289 * src/libs/libgroff/font.cpp (font::get_width): Always return the
1290 character's unscaled width if `font::unscaled_charwidths' is set.
1291 (font::get_image_generator): New function.
1292 (font::load_desc): Check the `unscaled_charwidths' and
1293 `image_generator' keywords.
1295 * src/libs/libgroff/fontfile.cpp: Initialize
1296 `font::unscaled_charwidths' and `font::image_generator'.
1298 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
1300 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
1302 * man/groff_font.man: Document `unscaled_charwidths' and
1305 * src/preproc/html/pre-html.cpp: Include `device.h'.
1306 (image_gen): New global variable.
1307 (imageList::createPage): Use `image_gen'.
1308 (main): Use `image_generator' keyword.
1310 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
1312 * tmac/html.tmac: Handle \[sqrtex].
1314 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
1316 * src/include/printer.h (printer): New virtual method `round_width'.
1318 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1319 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1320 src/devices/grotty/tty.cpp (printer::round_width): New function
1323 * src/devices/grohtml/post-html.cpp (printer::round_width): New
1325 (html_printer::set_numbered_char): Use it.
1327 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
1329 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1331 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1333 * configure: Regenerated.
1335 * Makefile.in (GHOSTSCRIPT): New variable.
1336 (MDEFINES): Add GHOSTSCRIPT.
1338 2004-10-03 Werner LEMBERG <wl@gnu.org>
1340 * INSTALL.gen: Updated (taken from texinfo CVS).
1342 2004-09-28 Werner LEMBERG <wl@gnu.org>
1346 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1348 * tmac/groff_www.man: Revised and updated.
1350 2004-09-26 Werner LEMBERG <wl@gnu.org>
1352 Fix \$@ and \$* to handle any number of arguments.
1354 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1357 * src/roff/troff/input.cpp (input_iterator::internal_level):
1359 (input_stack): New member functions `increase_level' and
1361 (input_stack::get_level): Don't use `internal_level'.
1362 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1363 (end_quote_iterator): Completely removed.
1364 (interpolate_arg): Build string for \$@ and \$* which is then
1365 pushed onto the input stack.
1367 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
1369 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1372 2004-09-23 Werner LEMBERG <wl@gnu.org>
1374 * tmac/an-old.tmac (ne): Using default scaling operator.
1376 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1378 This change implements the following features:
1381 New numeric register: Defines number of lines following LP, PP,
1382 QP, IP or XP, which must be kept together, before any automatic
1383 page break. If insufficient space remains on the current page, a
1384 page break is forced before the new paragraph begins.
1387 New numeric register: Sets number of lines of following paragraph
1388 which must be kept with a heading, defined by NH or SH, before any
1389 automatic page break. If insufficient space remains on the
1390 current page, a page break is forced before the heading.
1393 (Thanks to Joerg van den Hoff, for this idea).
1395 New numeric register: Sets the first level of heading (set with
1396 NH), which will keep the same point size as body text; e.g. if
1397 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1398 point size specified by \n[PS], but .NH 2 and .NH 1 will have
1399 progressively larger point sizes, determined by \n[PSINCR] (see
1403 New numeric register: Sets the point size increment for each level
1404 of heading, (set with NH), below the threshold level set by
1405 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1406 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1407 and all other levels will remain at 10pt, (because \n[PS] = 10).
1410 Existing macro now accepts a numeric argument, to make heading
1411 size match that of NH with same argument value, when the
1412 GROWPS/PSINCR feature is enabled.
1415 New string, set by NH macro, replaces the existing (undocumented)
1416 use of SN, to represent the assigned section number.
1419 New string, set by NH macro, represents the assigned section
1420 number, but omits the terminal period (periods at intermediate
1421 levels are retained).
1424 String set by NH macro, originally undocumented, now implemented
1425 as an alias for SN-DOT (which reproduces original behaviour).
1427 * tmac/s.tmac (PORPHANS): New register.
1428 (par*start): Use it.
1429 (HORPHANS, GROWPS, PSINCR): New registers.
1430 (SH-NO-TAG, @SH): Use them.
1433 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
1435 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1436 of `Ds' and `De' macros.
1438 2004-09-10 Werner LEMBERG <wl@gnu.org>
1440 In tbl, handle \a as an interpreted leader character if in
1443 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1444 LEADER_CHAR): New macros.
1445 (compatible_flag): New declaration.
1447 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1448 LEADER_3, and LEADER_4 to `state'.
1449 (table_input::get): Handle `\a'.
1451 * src/preproc/tbl/table.cpp (PREFIX): Removed.
1452 (LEADER_REG): New macro.
1453 (table::init_output): Define LEADER_REG string register if in
1456 * src/preproc/tbl/tbl.man: Document it.
1458 2004-08-18 Werner LEMBERG <wl@gnu.org>
1460 * tmac/doc.tmac (An): Fix error message.
1462 2004-08-06 Werner LEMBERG <wl@gnu.org>
1464 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1465 file can't be opened. UNIX tbl has the same behaviour.
1467 2004-08-05 Y T <doarhop@hotmail.com>
1469 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1470 (DBRead): If in compatibility mode, take into account the text
1471 when computing figure boundaries.
1473 2004-08-05 Werner LEMBERG <wl@gnu.org>
1475 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
1476 from Tadziu Hoffmann.
1478 2004-08-03 Werner LEMBERG <wl@gnu.org>
1480 * doc/meref.me: Document `_M' register.
1482 2004-08-03 Martin Husemann <martin@duskware.de>
1484 Make hpftodit work correctly on big-endian systems.
1486 * src/utils/hpftodit/hpftodit.cpp (File): New method
1487 `get_uint32(char *)'.
1488 (entry): New member `orig_value'.
1489 (read_tags): Use new method.
1490 (output_font_name, read_and_output_pcltypeface, dump_ascii):
1493 2004-08-01 Werner LEMBERG <wl@gnu.org>
1495 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
1496 are already in X11's `macros.t' file.
1498 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
1500 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1502 (read_and_output_pcltypeface): Handle strings with length <= 4.
1504 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
1506 * tmac/s.tmac (pg@top): Don't save `PO' register.
1507 (pg*end-col, pg*end-page): Directly use `PO' register.
1509 2004-07-27 Werner LEMBERG <wl@gnu.org>
1511 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1513 * src/preproc/refer/refer.cpp (output_references): Check for
1515 * src/preproc/refer/refer.man: Improve documentation of
1516 `bibliography' command.
1518 2004-07-26 Werner LEMBERG <wl@gnu.org>
1520 Add requests `fcolor' and `gcolor'.
1522 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1524 (init_env_requests): Add `fcolor' and `gcolor'.
1526 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1528 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1529 Document new requests.
1531 2004-07-24 Werner LEMBERG <wl@gnu.org>
1533 Add support for fractional point sizes in ms macros. A value for
1534 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1535 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
1537 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1538 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1540 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1542 2004-07-19 Werner LEMBERG <wl@gnu.org>
1544 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1546 (do_for, for_input::get, for_input::peek): Handle negative `by'.
1547 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1549 2004-07-08 Thomas Klausner <wiz@netbsd.org>
1551 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1552 * tmac/groff_mdoc.man: Updated.
1554 2004-07-05 Werner LEMBERG <wl@gnu.org>
1556 * doc/groff.texinfo: Further improve documentation of `hcode'.
1558 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
1560 Improve appearance of arrows in pic.
1562 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1564 Use two line segments for drawing non-filled arrow head.
1565 (line_object::print, spline_object::print): Shorten line length to
1566 avoid arrow sticking.
1567 (arc_object::print): Take arrow direction into account.
1569 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
1571 * tmac/groff_www.man: Update documentation of .MPIMG.
1573 2004-07-03 Werner LEMBERG <wl@gnu.org>
1575 * tmac/an-old.tmac (RI): Always start with font `R'.
1576 (RI, IR): Properly end with font `R'.
1578 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
1580 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1581 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1582 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1583 Don't pass more than six arguments to .R, .I, .B, etc., for
1584 compatibility with traditional troff macros.
1586 2004-07-02 Werner LEMBERG <wl@gnu.org>
1588 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1589 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1591 (PUSH_COMP_MODE): New internal character constant.
1594 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1595 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1596 (token::next, macro::append): Handle PUSH_COMP_MODE.
1597 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1598 POP_GROFFCOMP after each of the decoded arguments to make them
1599 independent from the compatibility mode status.
1600 (comp_mode): Add `COMP_ENABLE'.
1601 (do_define_string, do_define_macro): Handle COMP_ENABLE.
1602 (define_string, append_string, define_macro, define_indirect_macro,
1603 append_macro, append_indirect_macro): Handle `compatible_flag'.
1604 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1606 * man/groff_diff.man, doc/groff.texinfo: Updated.
1608 2004-07-01 Werner LEMBERG <wl@gnu.org>
1610 * doc/groff.texinfo: Improve documentation of `hcode'.
1611 Use @documentencoding and convert document to latin-1; to do that
1612 make latin characters active and assign proper macros (within a
1613 @tex...@end tex environment).
1614 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1615 * doc/Makefile.sub (groff): Ditto.
1617 2004-06-29 Werner LEMBERG <wl@gnu.org>
1619 Implement two new conditional operators `F <name>' and `S <name>'
1620 which check whether <name> is a valid font or style, respectively.
1622 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1623 (text_file::text_file): Updated.
1624 (text_file::error): Don't emit message if `silent' is set.
1625 (font::load_font): Add optional third argument (which is directly
1627 (font::load): Add optional second argument to check the header of
1628 a font only, without emitting warning or error messages.
1629 * src/include/font.h (font): Updated.
1631 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1633 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1634 fourth argument to check a font without mounting.
1635 (check_font, check_style): New functions.
1636 * src/roff/troff/node.h: Updated.
1638 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1641 2004-06-27 Werner LEMBERG <wl@gnu.org>
1643 Implement new string-valued register `.sty' to return the current
1646 * env.cpp (environment::get_style_name_string): New function.
1647 (init_env_requests): Add `.sty' register.
1648 * env.h (environment): Updated.
1649 * node.cpp (font_info): Make `get_style_name' a friend.
1650 (get_style_name): New function.
1653 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1656 2004-06-15 Werner LEMBERG <wl@gnu.org>
1658 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1661 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
1663 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1664 and \n[mo] to avoid dependency on current date.
1666 2004-06-08 Werner LEMBERG <wl@gnu.org>
1668 * Makefile.sub (install_data): New target.
1670 2004-06-04 Werner LEMBERG <wl@gnu.org>
1672 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1674 2004-06-03 Werner LEMBERG <wl@gnu.org>
1676 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1678 (install_data): Add $(srcdir).
1680 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1683 2004-06-02 Werner LEMBERG <wl@gnu.org>
1685 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1686 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1687 Add test for Xmu library.
1688 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1689 GROFF_APPRESDIR_DEFAULT): New macros.
1691 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1692 and GROFF_APPRESDIR_DEFAULT.
1694 * configure: Regenerated.
1696 * Makefile.in (appresdir): New variable.
1697 (MDEFINES): Add appresdir.
1699 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1701 (install_data, uninstall_sub): New targets to handle GXditview.ad.
1703 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1704 `$(srcdir)/eign', not `eign'.
1706 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1708 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1709 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1710 Protect (g)xditview with `\%' to avoid hyphenation.
1711 Other minor formatting.
1713 2004-06-01 Werner LEMBERG <wl@gnu.org>
1715 Integrate gxditview into groff's standard directory hierarchy.
1717 * src/xditview/*: Moved to ...
1718 * src/devices/xditview/*: Here.
1719 Moved DviChar.h and XFontName.h to src/include.
1720 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1721 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1722 Moved xtotroff.c to new directory src/utils/xtotroff.
1723 Provide proper Makefile.sub files (reusing the stuff from
1725 DESC renamed to DESC.in.
1726 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1727 Converted everything from K&R to ANSI C.
1728 Decorated with const where appropriate.
1729 Cast string constants with `String' and `char *' where appropriate.
1730 Made it compile with C++ (used as a C compiler).
1731 Removed other minor compiler warnings.
1733 * src/devices/xditview/device.c: Include config.h, string.h, and
1735 Don't declare `exit', `strtok', `strchr', and `getenv'.
1738 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1741 * src/devices/xditview/xditview.c: Include config.h.
1742 Include stdio.h earlier.
1743 Protect declaration of `popen' and `pclose' with
1744 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1745 Replace `caddr_t' with `XtPointer'.
1746 (MakePromptFunc): New typedef.
1747 (DoPrint): Use RETSIGTYPE.
1748 (promptfunction): Change type to MakePromptFunc.
1749 (MakePrompt): Use MakePromptFunc for third argument.
1752 * src/devices/xditview/ad2c: Add casts to `String'.
1754 * src/include/XFontName.h (XFontNameString): Don't use array
1756 Add prototypes for `XParseFontName', `XFormatFontName',
1757 `XCompareFontName', and `XCopyFontName'.
1759 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1762 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1763 Don't declare `XParseFontName' and `XFormatFontName'.
1765 (main): Remove `optind' and `optarg'.
1767 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1768 (to select programs which need X).
1769 Make XDEVIDIRS depend on `FORCE'.
1770 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1772 (MDEFINES): Updated.
1773 (LIBDIRS): Use XLIBDIRS.
1774 (CPROGDIRS): Use XPROGDIRS.
1775 (DEVDIRS): Remove font directories for gxditview.
1776 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1777 (EXTRADIRS): Remove src/xditview.
1779 * Makefile.sub (DISCLEANFILES): Updated.
1781 * Makefile.comm (LIBXUTIL): New variable.
1782 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1783 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1785 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1787 * aclocal.m4 (GROFF_X11): New function.
1789 * configure.ac: Call GROFF_X11.
1790 Don't create src/xditview/Imakefile.
1791 Don't emit notice how to build gxditview.
1793 * configure: Regenerated.
1795 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1797 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
1799 * Makefile.in (CPPFLAGS): Define.
1800 (MDEFINES): Add CPPFLAGS.
1802 2004-05-27 Werner LEMBERG <wl@gnu.org>
1804 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1806 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
1808 Fix problems with `friend name injections'.
1810 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1811 make_script_box), src/roff/troff/div.h (end_diversions),
1812 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1815 2004-05-25 Bernd Warken <bwarken@mayn.de>
1817 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1819 2004-05-25 Werner LEMBERG <wl@gnu.org>
1821 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1822 src/libs/libgroff/color.cpp: Include lib.h.
1824 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
1826 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1827 through Forte 6u1, and for how to get GNU make on Solaris.
1829 2004-05-24 Werner LEMBERG <wl@gnu.org>
1831 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
1834 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
1836 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1839 2005-05-14 Werner LEMBERG <wl@gnu.org>
1841 * REVISION: Set to 2.
1843 * aclocal.m4 (GROFF_STDINT_H): Removed.
1844 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1846 * configure.ac: Updated.
1847 * configure, src/include/config.hin: Regenerated.
1849 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1850 inttypes.h conditionally.
1852 2003-05-13 Werner LEMBERG <wl@gnu.org>
1854 Version 1.19.1 released
1855 =======================
1857 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
1859 * src/preproc/refer/label.y (same_author_last_name,
1860 same_author_name): Handle empty sort keys.
1862 2004-05-10 Werner LEMBERG <wl@gnu.org>
1864 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1867 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1868 doc-str-Lb-librt): Reset font.
1869 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1870 Provide `doc-str-Lb' to reset font.
1871 * tmac/groff_mdoc.man: Updated.
1873 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
1875 * src/preproc/html/pre-html.cpp (make_message): Make it work for
1876 snprintf versions which don't conform to ANSI C 99 (this is,
1877 counting the string's trailing null byte in the return value).
1879 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
1881 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1882 that all implementations of sprintf handle null pointers correctly.
1884 2004-05-04 Werner LEMBERG <wl@gnu.org>
1886 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1887 Document `.U' register.
1889 * src/roff/troff/env.cpp (environment::mark_last_line)
1890 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1892 2004-05-04 Larry Kollar <kollar@alltel.net>
1894 New read-only register `.U'; it returns 1 in safer mode and 0
1897 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1900 2004-05-03 Werner LEMBERG <wl@gnu.org>
1902 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1904 2004-04-17 Werner LEMBERG <wl@gnu.org>
1906 * src/include/font.h (font): Use `int' for ch_index.
1907 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1908 font::compact): Updated.
1910 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1913 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1914 (hyphen_word): Fix compiler warnings.
1915 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1918 (get_delim_number, get_line_arg): Change second argument type to
1920 (macro_header::copy, token::next, do_define_string,
1921 do_define_character, substring_request, asciify_macro,
1922 unformat_macro, read_size, non_interpreted_node::interpret,
1923 while_request, main: Fix compiler warnings.
1924 (read_color_draw_node): Initialize `col'.
1926 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1927 `start_col' and `end_col' of type `int'.
1928 (vertical_rule): Make `col' of type `int'.
1930 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1933 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1935 (format_serial): Use them to remove dependency on ASCII.
1937 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1939 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1942 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1944 (glyph): Change type of `hpos' to `int'.
1946 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
1947 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1949 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1951 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1953 2004-04-16 Werner LEMBERG <wl@gnu.org>
1955 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1956 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1957 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1958 `double' instead of `float' everywhere.
1959 * src/preproc/grn/main.cpp: Use `double' instead of `float'
1961 (main): Add return value.
1962 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1964 Update all user functions.
1966 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1967 src/preproc/eqn/box.h, src/preproc/pic/object.h,
1968 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1969 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1970 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1971 src/roff/troff/input.cpp, src/roff/troff/request.h,
1972 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1975 * src/utils/indxbib/signal.c: Include stdlib.h.
1977 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1979 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1980 before the first page.
1982 2004-04-14 Thomas Klausner <wiz@netbsd.org>
1984 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1985 (doc-operating-system-*): Updated.
1986 * tmac/doc-syms (doc-str-St-*): Various small fixes.
1987 (doc-str-Lb-*): Add more library names.
1989 2004-04-10 Art Haas <ahaas@airmail.net>
1991 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1994 2004-04-09 Art Haas <ahaas@airmail.net>
1996 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1998 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
2000 * arch/misc/shdeps.sh: Generate better comment for sed script.
2002 2004-04-08 Art Haas <ahaas@airmail.net>
2004 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
2005 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
2006 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
2007 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
2008 (polyfill), src/preproc/grn/main.cpp (polyfill),
2009 src/preproc/refer/command.cpp (command_table),
2010 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
2011 gcc 3.5 doesn't like).
2013 2004-04-08 Werner LEMBERG <wl@gnu.org>
2015 Removing many compiler warnings. groff should now compile with
2016 a C++ compiler used for C files also. [Simple variable renamings
2017 to avoid shadowing aren't logged in detail.]
2019 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
2020 (draw_dvi_printer::draw) ['c']: Enclose in block.
2022 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
2023 (page::add_line): Fix typos.
2024 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
2026 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
2027 Some local variable renamings.
2028 * src/devices/grolbp/lbp.h: Some local variable renamings.
2030 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
2033 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
2034 Remove redundant local variable declaration.
2035 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
2036 Don't use `caddr_t' but `void *'.
2037 Enclose functions with `extern "C"' for C++.
2039 * src/libs/libdriver/input.cpp (remember_filename,
2040 remember_source_filename): Use cast for string constant.
2042 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
2043 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
2044 src/libs/libgroff/geometry.cpp: Some local variable renamings.
2045 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
2047 Enclose functions with `extern "C"' for C++.
2048 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
2049 (needs_quoting): Return `int'.
2050 (quote_arg): Add proper casts to malloc and realloc.
2051 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
2052 various MS Windows environments.
2053 (spawnvp_wrapper): Add proper cast to malloc.
2055 * src/preproc/eqn/box.h: Remove redundant declarations of
2056 `make_script_box', `make_mark_box' and `make_lineup_box'.
2057 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
2058 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
2061 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
2062 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
2063 (dx, dy): Renamed functions to...
2064 (deltax, deltay): This.
2065 * src/preproc/grn/main.cpp: Some local variable renamings.
2066 (deffont): Add `const'.
2067 (initpic, conv): Use cast for string constant.
2069 * src/preproc/html/pre-html.cpp: Some local variable renamings.
2070 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
2071 (char_buffer::run_output_filter): Second argument is unused.
2072 * src/preproc/html/pushback.cpp: Some local variable renamings.
2074 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
2075 * src/preproc/pic/object.cpp: Some local variable renamings.
2077 * src/preproc/refer/label.y (lookup_label): Remove redundant
2078 declaration of local variable.
2080 * src/preproc/soelim.cpp: Remove redundant declaration of
2081 `interpret_lf_args'.
2083 * src/preproc/tbl/main.cpp: Some local variable renamings.
2085 * src/roff/groff/groff.cpp (main): Use cast for string constant.
2086 * src/roff/groff/pipeline.c: Enclose declarations of `error',
2087 `c_fatal', and `i_to_a' with `extern "C"' for C++.
2088 Don't use C++-style comments.
2090 * src/roff/troff/env.h: Remove redundant declaration of `title'.
2091 * src/roff/troff/node.h, src/roff/troff/env.cpp,
2092 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
2094 * src/roff/troff/div.h: Remove redundant declaration of
2096 * src/roff/troff/troff.h: Remove redundant declaration of
2098 * src/roff/troff/input.cpp: Remove redundant declaration of
2099 `handle_first_page_transition' and `process_input_stack'.
2101 * src/utils/hpftodit.cpp: Some local variable renamings.
2103 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
2105 Don't define RETSIGTYPE.
2106 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
2108 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
2109 (error): Use `const' in argument.
2110 (main): Remove redundant declaration of `optind'.
2111 Move declaration of `Version_string' to top-level.
2113 * PROBLEMS: Document difficulties compiling signal.c if a C++
2114 compiler is used for C.
2116 2004-04-07 Werner LEMBERG <wl@gnu.org>
2118 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
2120 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
2122 Make scripts like nroff.sh and neqn.sh portable across various
2123 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
2124 non-POSIX path separators. The idea is to extend those scripts to
2125 decide at run-time (of the script) which path separator to use.
2127 * arch/misc/Makefile.sub: New file.
2128 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
2129 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
2130 a proper definition of the variable `GROFF_RUNTIME'.
2132 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
2133 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
2134 (PROGDEPDIRS): New variable.
2136 (PROGDIRS): Add PROGDEPDIRS.
2138 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
2139 Don't substitute @SEP@ and @BINDIR@.
2140 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
2141 (PATH): Use GROFF_RUNTIME.
2143 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
2144 Don't substitute @SEP@ and @BINDIR@.
2145 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
2146 (PATH): Use GROFF_RUNTIME.
2148 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2150 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
2151 Cygwin which doesn't handle stderr correctly.
2153 2004-03-08 Werner LEMBERG <wl@gnu.org>
2155 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
2156 against empty argument. Problem reported by <cgd@broadcom.com>.
2158 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2160 * Makefile.in (SEP): Replaced with...
2161 (RT_SEP, SH_SEP): Separators for the target platform's native path
2162 separator and the build environment, respectively.
2163 (fontpath, tmacpath): Use RT_SEP.
2164 (MDEFINES): Updated.
2166 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2167 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2168 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
2169 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
2171 2004-03-05 Werner LEMBERG <wl@gnu.org>
2173 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
2174 reduce alignment problems with newer printers which use built-in
2175 TrueType fonts (instead of the older Intellifonts). The ideal
2176 solution is to provide a second set of groff metric files, but this
2177 is extremely time-consuming to produce, given that HP's metric
2178 files are very rudimentary.
2180 2004-03-01 Werner LEMBERG <wl@gnu.org>
2182 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
2183 s/operand/argument/ in error message.
2185 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2187 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
2190 2004-03-01 Antti Kantee <pooka@netbsd.org>
2192 * tmac/s.tmac (XE): Fix error message.
2194 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
2196 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
2199 * src/roff/groff/pipeline.c: Declare strcasecmp.
2200 (run_pipeline) [_WIN32]: Use function name variants which don't
2202 Fix stream handling.
2204 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
2206 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
2207 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
2208 for platforms which use the native Win32 runtime libraries.
2209 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
2211 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
2212 QUOTE_ARG_REALLOC_ERROR): Fix string.
2214 * src/preproc/html/pre-html.cpp: Remove declaration of
2216 Don't use __MINGW32__.
2217 s/DEBUG_FILE/DEBUG_FILE_DIR/.
2218 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
2219 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
2220 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
2221 calls to `set_redirection' and `WAIT'.
2222 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
2223 Fix calls to `set_redirection' and `save_and_redirect'.
2224 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
2225 to `set_redirection' and `save_and_redirect'.
2226 (usage): Fix message.
2227 (makeTempFiles, main): Use `DEBUG_FILE'.
2229 2004-02-21 Werner LEMBERG <wl@gnu.org>
2231 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
2233 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
2235 * src/libs/libgroff/quotearg.c: New file, providing proper argument
2236 quoting for MSVC's spawn* and exec* functions.
2237 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
2238 spawnvp with proper quoting for MSVC.
2240 * src/libs/libgroff/assert.cpp (program_name),
2241 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
2242 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
2244 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
2246 * src/include/error.h (program_name): Declare as `extern "C"'.
2247 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
2249 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
2251 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
2253 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
2255 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
2257 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
2259 (sbasename) [__MSDOS__ || ...]: New function.
2260 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
2262 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
2263 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
2265 Use STDOUT_FILENO instead of hardcoded file handle.
2266 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
2268 2004-02-19 Werner LEMBERG <wl@gnu.org>
2270 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
2271 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
2273 2004-02-18 Werner LEMBERG <wl@gnu.org>
2275 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
2276 new font and mapping files.
2278 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
2279 Keith Marshall <keith.d.marshall@ntlworld.com>
2281 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
2282 an input pipe. This is needed for the MSVC compiler to make troff's
2285 * src/roff/troff/div.cpp: Include nonposix.h.
2286 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
2288 2004-02-17 Werner LEMBERG <wl@gnu.org>
2290 * font/devlj4/generate/special.awk: New script.
2291 * font/devlj4/generate/Makefile (S): Use special.awk.
2292 * font/devlj4/*: Regenerated, including the following new files:
2293 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
2294 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
2295 * NEWS: Document new lj4 fonts and revised hpftodit.
2297 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
2299 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
2301 2004-01-25 Werner LEMBERG <wl@gnu.org>
2303 * src/libs/libgroff/progname.cpp: Replaced with...
2304 * src/libs/libgroff/progname.c: New file.
2305 * src/libs/libgroff/Makefile.sub: Updated accordingly.
2307 2004-01-17 Werner LEMBERG <wl@gnu.org>
2309 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
2311 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
2313 * font/devlj4/generate/wingdings.map,
2314 font/devlj4/generate/symbol.map: Include unnamed glyphs.
2315 Use groff glyph names where possible.
2316 * src/devices/grolj4/lj4_font.man: Minor updates.
2318 2004-01-13 Werner LEMBERG <wl@gnu.org>
2320 * tmac/www.tmac (DC): Handle TTY devices.
2322 * doc/webpage.ms: Document viewCVS from ffii.org.
2323 * NEWS, README: Updated.
2325 * src/roff/groff/groff.man: Mention lj4_font man page.
2327 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2329 (FONTS): Add SYMBOL and WINGDINGS.
2330 (SYMBOL, WINGDINGS): New targets.
2332 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
2334 * src/devices/grolj4/lj4_font.man: New man page.
2335 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2336 * src/devices/grolj4.man: Mention lj4_font man page.
2338 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2339 * src/utils/hpftodit/hpftodit.man: Document it.
2341 Remove details about fonts (which are now in lj4_font.man).
2343 * font/devlj4/generate/symbol.map,
2344 font/devlj4/generate/wingdings.map: New files.
2346 2004-01-12 Werner LEMBERG <wl@gnu.org>
2348 * README: Mention ffii's viewcvs access.
2350 2004-01-09 Werner LEMBERG <wl@gnu.org>
2352 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2354 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
2356 Revert most of the change from 2004-01-03 to better control used
2359 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2360 (text_symbol_sets, special_symbol_sets): New arrays.
2361 (symbol_set_table): New global variable.
2362 (read_symbol_sets): Use search order given in the text_symbol_sets
2363 and special_symbol_sets arrays. If command line flag -a is not
2364 given, search both arrays.
2365 (output_charset): Require x_height_tag only for command line flag -i.
2367 2004-01-06 Werner LEMBERG <wl@gnu.org>
2369 Implement string-valued registers \n[.m] and \n[.M] to return the
2370 name of the current drawing and background color, respectively.
2372 * src/roff/troff/symbol.h: Moved to...
2373 * src/include/symbol.h: Here.
2374 Small fixes to make it work outside of the `troff' directory.
2375 * src/roff/troff/symbol.cpp: Moved to...
2376 * src/libs/libgroff/symbol.cpp: Here.
2377 Small fixes to make it work outside of the `troff' directory.
2379 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2380 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2383 * src/include/color.h: Include symbol.h.
2384 (color): Add new field `nm'.
2385 * src/libs/libgroff/color.cpp (color::color): Updated.
2387 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2388 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2389 src/roff/troff/reg.cpp: Don't include symbol.h.
2391 * src/roff/troff/env.cpp: Don't include symbol.h.
2392 (environment::get_glyph_color_string,
2393 environment_get_fill_color_string): New member functions.
2394 (init_env_requests): Handle `.m' and `.M' registers.
2395 * src/roff/troff/input.cpp: Don't include symbol.h.
2396 (default_symbol): Moved to symbol.cpp/symbol.h.
2397 (do_glyph_color, do_fill_color, define_color): Pass symbol name
2398 to color constructor.
2399 * src/roff/troff/env.h: Updated.
2401 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2402 Document new registers.
2404 2004-01-05 Werner LEMBERG <wl@gnu.org>
2406 * src/roff/troff/node.cpp (space_node::get_breakpoints,
2407 space_node::nbreaks): Protect against zero `next' field.
2409 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
2411 In hpftodit, use the symbol sets offered in the TFM.
2413 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2414 (symbol_set, text_symbol_sets, special_symbol_sets,
2415 symbol_set_table): Removed.
2416 (get_printcode): Removed.
2417 (read_symbol_sets): Initialize `symbol_set' field with
2419 Simplify code to just use the `kind' value.
2420 (output_charset): Improve output formatting.
2421 (dump_symbols): Simplified.
2423 2004-01-02 Werner LEMBERG <wl@gnu.org>
2425 * font/devlj4/generate/text.map: Add more MSL numbers.
2427 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
2429 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2430 (text_symbol_sets): Add more symbol sets.
2431 (debug_flag): New static variable (moved from `main').
2432 (get_printcode, show_symset): New functions.
2433 (main): Remove `debug_flag'.
2434 (output_charset): Use `show_symset'.
2435 (dump_symbols): Use `show_symset'.
2436 Print symsets for all glyphs.
2437 (read_map): Actually call `unicode_to_ucode_make' but this time
2440 2004-01-01 Werner LEMBERG <wl@gnu.org>
2442 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2443 Fix placement of comments.
2445 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
2447 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2448 option `-d' is given.
2449 (output_charset): Improve warning messages to give more information.
2450 (dump_symbols): Make information more precise.
2452 (read_map): Don't call unicode_to_ucode_name; the glyph names must
2453 appear as-is and shouldn't be decomposed.
2455 2003-12-31 Werner LEMBERG <wl@gnu.org>
2457 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2458 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2459 (FONTS): Add TrueType font families Arial and Times New Roman.
2460 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2461 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2464 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
2466 * test-groff.in (SEP): Quote value.
2467 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2468 `tem' to `char*' to avoid deallocation of a pointer to a constant
2469 object which some compilers don't like.
2471 2003-12-31 Werner LEMBERG <wl@gnu.org>
2473 * font/devlj4/generate (text.map, special.map): Rewritten to work
2474 with the new hpftodit version.
2476 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
2478 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2479 set and 8bit character code for all glyphs also.
2481 2003-12-30 Werner LEMBERG <wl@gnu.org>
2483 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2485 2003-12-29 Werner LEMBERG <wl@gnu.org>
2487 More fixes for MSVC compiler.
2489 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2492 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2493 STDERR_FILENO) [_MSC_VER]: Define conditionally.
2494 (getpid) [_MSC_VER]: Remove.
2495 Include direct.h and process.h conditionally.
2497 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2498 parentheses for a_delete.
2500 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2502 * test-groff: Replaced with...
2503 * test-groff.in: This new template to handle path separator
2506 * configure.ac: Check for direct.h and process.h.
2507 Generate test-groff script.
2508 * configure, src/include/config.hin: Regenerated.
2510 2003-12-28 Werner LEMBERG <wl@gnu.org>
2512 Add integral extension glyph.
2513 Add new option `-x' to afmtodit to suppress use of built-in AGL.
2515 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2517 * font/devps/generate/textmap: Provide entry for `integralex' to
2518 override (old) PUA value of the AGL.
2519 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2520 * font/devps/*: Regenerated.
2522 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2523 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2525 2003-12-27 Werner LEMBERG <wl@gnu.org>
2527 Add forgotten `coproduct' symbol (already available for DVI).
2529 * font/devhtml/R.proto, font/devps/generate/textmap,
2530 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2531 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2532 U+2210 (\[coproduct]).
2534 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
2536 hpftodit has been extended to handle TrueType metric files and
2537 more glyphs. See hpftodit.man for more details.
2539 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
2540 ctype.h, and unicode.h.
2541 s/msl/charcode/ everywhere since we now handle Unicode values also.
2542 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2543 Use it where appropriate.
2544 (MULTIPLIER): Replaced with...
2545 (multiplier): New global static variable.
2547 (tag_type): Add more TFM tags.
2548 (tag_name): New array.
2549 (ENUM_TYPE, FLOAT_TYPE): Removed.
2550 (BYTE_TYPE): New value assigned.
2551 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2552 (text_symbol_sets, special_symbol_sets): Extended to cover more
2554 (check_type): Add return value.
2555 (check_units): Add parameters to get ppi and upem values.
2556 Handle TrueType TFM data.
2557 (output_font_name): New function.
2558 (output_charset): Add parameter to handle TFM type.
2559 Handle TrueType TFMs also.
2560 (em_fract): New macro.
2561 (dump_tags): Be much more verbose and handle more tags.
2562 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2563 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2565 (read_map): Add parameter to handle TFM type.
2566 Handle both MSL and Unicode mappings.
2567 (main): Add two new command line options `-a' and `-q'.
2568 Updated to make use of new functions.
2571 * src/utils/hpftodit/hpuni.cpp: New file.
2573 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2576 2003-12-25 Werner LEMBERG <wl@gnu.org>
2578 * src/include/nonposix.h (read) [_MSC_VER]: Define.
2580 2003-12-24 Werner LEMBERG <wl@gnu.org>
2582 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2583 by Michail Vidiassov <master@iaas.msu.ru>.
2585 2003-12-20 Werner LEMBERG <wl@gnu.org>
2587 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2589 Add missing latin-2 glyphs.
2590 * font/devutf8/R.proto: Add missing latin-2 glyphs.
2592 * tmac/troffrc: Load `composite.tmac' earlier.
2594 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2595 u00{53,73}_0327, and u0049_0307.
2596 * tmac/X.tmac: Add u00{47,67}_0306.
2597 * tmac/tty-char.tmac: Use composite glyph names for readability.
2601 * src/include/unicode.h: Remove `extern' keywords.
2603 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
2605 * tmac/latin5.tmac: New file.
2607 2003-12-19 Werner LEMBERG <wl@gnu.org>
2609 Add some glyphs needed for Turkish.
2611 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2614 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
2615 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2616 u00{53,73}_0327, and u0049_0307.
2618 2003-12-18 Werner LEMBERG <wl@gnu.org>
2620 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2622 Remove trailing zeros.
2624 2003-12-17 Werner LEMBERG <wl@gnu.org>
2626 Make \? transparent to end-of-sentence recognition.
2628 * src/roff/troff/input.cc (non_interpreted_node): Add
2629 `ends_sentence' member function.
2631 2003-12-16 Werner LEMBERG <wl@gnu.org>
2633 * doc/groff.texinfo: Document `dt' request correctly.
2634 Other minor typographical improvements.
2636 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
2638 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2640 2003-12-10 Richard Stallman <rms@gnu.org>
2642 * LICENSE: Better wording.
2644 2003-12-09 Werner LEMBERG <wl@gnu.org>
2646 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2647 * configure, NEWS: Updated.
2649 2003-12-08 Werner LEMBERG <wl@gnu.org>
2651 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2653 2003-12-07 Bernd Warken <bwarken@mayn.de>
2657 2003-12-07 Werner LEMBERG <wl@gnu.org>
2659 * INSTALL: Improved.
2661 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
2663 Use path separator character of target platform for compiled-in
2666 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2667 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2668 * configure: Regenerated.
2669 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2671 2003-12-05 Werner LEMBERG <wl@gnu.org>
2673 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2674 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2676 2003-12-04 Bernd Warken <bwarken@mayn.de>
2678 * LICENSE: New file.
2680 2003-12-03 Werner LEMBERG <wl@gnu.org>
2682 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2683 ligatures present in AFM files since groff currently only
2684 understands some standard ligatures and nothing else.
2686 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
2688 * src/roff/groff/groff.cpp (main): Don't run the spooler if
2691 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2694 Don't use Unix wait flags.
2696 2003-12-02 Werner LEMBERG <wl@gnu.org>
2698 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2699 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2700 src/roff/troff/uniuni.cpp: Moved to...
2701 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2702 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2703 src/libs/libgroff/uniuni.cpp: Here.
2705 * src/include/Makefile.sub.old (HDRS),
2706 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2707 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2709 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2711 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2715 2003-12-01 Werner LEMBERG <wl@gnu.org>
2717 * groff.texinfo: Document special behaviour of `.vs 0'.
2718 Improve documentation of `cflags' request.
2721 2003-11-29 Werner LEMBERG <wl@gnu.org>
2723 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2724 * font/devlj4/CORONET: Regenerated.
2726 2003-11-24 Werner LEMBERG <wl@gnu.org>
2728 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2729 if processing hyphenation patterns in traditional mode.
2730 Improve error messages.
2732 2003-11-20 Werner LEMBERG <wl@gnu.org>
2734 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2735 troff_output_file::put_char): Fix type of local variable `c'.
2737 2003-11-19 Werner LEMBERG <wl@gnu.org>
2739 * src/roff/groff/pipeline.c (P): Removed. Updated all function
2741 (i_to_a): Removed. libgroff already provides this function.
2742 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2744 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
2746 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2749 2003-11-17 Werner LEMBERG <wl@gnu.org>
2751 * COPYING: Use correct version.
2753 2003-11-11 Werner LEMBERG <wl@gnu.org>
2755 LynxOS 4.0.0 doesn't declare vfprintf.
2757 * configure.ac: Check for vfprintf.
2758 * configure: Regenerated.
2759 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2760 * src/include/config.hin: Regenerated.
2762 2003-11-10 Werner LEMBERG <wl@gnu.org>
2764 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2766 * configure.ac: Check for vsnprintf.
2767 * configure: Regenerated.
2768 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2770 * src/include/config.hin: Regenerated.
2772 2003-11-09 Werner LEMBERG <wl@gnu.org>
2774 * aclocal.m4: Updated syntax to autoconf 2.59.
2775 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2776 Don't check for gsos2.
2777 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
2778 working abs_top_srcdir and abs_top_builddir.
2780 * configure.ac: Updated syntax to autoconf 2.59.
2781 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2782 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2783 * configure: Regenerated.
2785 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2786 s/@groff_top_builddir@/@abs_top_builddir@/.
2788 * src/roff/groff/pipeline.c (xstrsignal):
2789 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2791 2003-11-07 Werner LEMBERG <wl@gnu.org>
2793 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2794 make start angle smaller than end angle to circumvent a bug in tpic
2795 handling of some versions of dvipdfm (and dvipdfmx).
2797 2003-10-30 Werner LEMBERG <wl@gnu.org>
2799 * src/devices/grops/grops.man: Improve section on creating EPS.
2801 2003-10-29 Werner LEMBERG <wl@gnu.org>
2803 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2806 2003-10-28 Werner LEMBERG <wl@gnu.org>
2808 * doc/groff.texinfo: Fix documentation of `.if'.
2810 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
2812 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2813 the form `uniXXXX' also.
2815 2003-10-27 Werner LEMBERG <wl@gnu.org>
2817 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2818 contrib/pic2graph/pic2graph.sh: Implement secure management of
2820 Pass `-P-pletter' to groff to avoid data outside of the converted
2821 area -- some versions of `convert' (for example 5.3.8) don't check
2822 the bounding box of the image but always use a fixed image size
2823 (letter paper format).
2824 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2825 contrib/pic2graph/pic2graph.man: Updated.
2827 * src/roff/groff/groff.man: Document $TMP and $TEMP.
2829 2003-10-26 Werner LEMBERG <wl@gnu.org>
2831 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2832 troff_output::simple_ellipse, troff_output::simple_arc,
2833 troff_output::simple_line, troff_output::simple_spline,
2834 troff_output::simple_polygon): Insert a space before arguments.
2835 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2836 latter doesn't produce a node, so the following `.sp -1' would do
2838 Don't emit `.sp -1' after \M. This also doesn't produce a token
2839 (and we don't have to care about compatibility mode).
2840 (troff_output::set_color, troff_output::reset_color): Don't emit
2841 `.sp -1' after \M and \m.
2843 * src/roff/troff/input.cpp (old_have_input): New global variable.
2844 (input_stack::get): Handle `old_have_input'.
2845 (process_input_stack) <token::TOKEN_NEWLINE>: Call
2846 `trapping_blank_line' depending on `old_have_input', not
2849 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
2851 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2852 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2853 default directory names for temporary files.
2854 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2856 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2857 [__MSDOS__] (run_pipeline): Honour environment variables.
2858 Don't use `tmpnam' but `tempnam' to work around messy
2861 * README.MinGW: New file.
2863 2003-10-16 Werner LEMBERG <wl@gnu.org>
2865 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2866 `(*t)->next' without testing validity of `*t'.
2867 (usage): Make it more readable.
2869 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
2871 Make html device run under both MS-DOS and Win32.
2873 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2874 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2875 spawn or fork+exec has to be used, and whether parent must sleep
2876 until the child process terminates. Used in
2877 `char_buffer::run_output_filter'.
2878 (copyofstdoutfd): Removed.
2879 (char_buffer): Replace `write_file_html' and `write_file_troff'
2880 member functions with `emit_troff_output' and `run_output_filter'.
2881 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2883 (replaceFd): Replaced with...
2884 (set_redirection): New auxiliary function.
2885 (waitForChild): Replaced with...
2886 (save_and_redirect): New auxiliary function for.
2888 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2891 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
2893 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2894 (GROFF_LIBC): New function.
2895 * configure.ac: Call GROFF_LIBC.
2897 * configure: Regenerated.
2899 * src/include/lib.h: Handle __MINGW32__.
2900 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2901 Add macro for `pipe'.
2904 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2907 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2910 2003-10-13 Werner LEMBERG <wl@gnu.org>
2912 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2915 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2918 2003-10-12 Werner LEMBERG <wl@gnu.org>
2920 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2921 src/roff/troff/input.cc (usage): Updated.
2923 * NEWS, doc/groff.texinfo: Updated.
2925 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
2927 * src/libs/libgroff/searchpath.cpp
2928 (search_path::open_file_cautious): New function which also handles
2929 `-' as stdin and stdout depending on the access mode.
2930 * src/include/searchpath.h (search_path): Updated.
2932 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2933 * src/devices/grops/ps.h: Include `searchpath.h'.
2934 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2935 Open resource file with `include_search_path.open_file_cautious'.
2936 * src/devices/grops/grops.man: Document new `-I' switch.
2938 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2939 (main), src/devices/grolj4/lj4.cpp (main),
2940 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2942 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2944 (include_search_path): New global variable.
2945 (include_path_append): Removed.
2946 (main): Use `include_search_path.command_line_dir' to handle `-I'.
2947 (do_file): Simplify, using new
2948 `include_search_path.open_file_cautious'.
2950 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2952 (main): Pass arguments to `-I' to both troff and devices.
2953 Improve handling of `-V'.
2954 * src/roff/groff/groff.man: Document changes to -I and -V.
2956 * src/roff/troff/input.cpp (include_search_path): New global
2958 (next_file, source, ps_bbox_request, transparent_file,
2959 process_input_file): Use new
2960 `include_search_path.open_file_cautious'.
2961 (main) Handle `-I' switch.
2962 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2963 Use new `include_search_path.open_file_cautious'.
2964 * src/roff/troff/node.h: New extern symbol `include_search_path'.
2965 * src/roff/troff/troff.man: Document new `-I' switch.
2967 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
2969 Support multiple calls of .Lb in LIBRARY section.
2971 * tmac/doc-common (doc-in-library-section): New register.
2972 (doc-section-library): New string.
2973 (Sh): Set `doc-in-library-section'.
2975 * tmac/doc-syms (Lb): Insert breaks before and after arguments
2976 if in LIBRARY section.
2977 * tmac/doc.tmac (doc-save-global-vars): Updated.
2978 * NEWS, tmac/groff_mdoc.man: Updated.
2980 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
2982 * tmac/doc-common (doc-default-operating-system): New variable.
2985 2003-09-08 Werner LEMBERG <wl@gnu.org>
2987 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2989 2003-08-31 Werner LEMBERG <wl@gnu.org>
2991 * contrib/mom/Makefile.sub: Fix last change to make it really work.
2992 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2993 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2994 $(DEVFILES) are not empty.
2995 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2997 2003-08-26 Chuck Silvers <chuq@chuq.com>
2999 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
3000 with parallel runs of `make'.
3002 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
3004 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
3005 insert SORT_SEP. With certain combinations of sort specifications,
3006 refer sorted entries in the wrong order. In particular, entries
3007 with a missing field should be be sorted before all entries that
3008 have that field, before refer looks to the next field.
3010 2003-08-23 Werner LEMBERG <wl@gnu.org>
3012 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
3013 g++ linker is used. Reported by Mark J. Reed
3014 <mark.reed@turner.com>.
3016 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
3018 Add key character `x' to tbl which makes tbl call a user-defined
3019 macro on a table cell.
3021 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
3022 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
3023 `set_modifier' after printing the compatibility request.
3024 (set_modifier): Print call to `m->macro' if not empty.
3025 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
3027 (process_format): Implement cases `x' and `X'.
3028 * src/preproc/tbl/tbl.man, NEWS: Updated.
3030 2003-08-15 Werner LEMBERG <wl@gnu.org>
3032 * doc/groff.texinfo: Minor fixes.
3034 2003-08-09 Werner LEMBERG <wl@gnu.org>
3036 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
3038 2003-08-07 Werner LEMBERG <wl@gnu.org>
3040 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
3041 argument list to nothing if there is no file to match. Use `ls' as
3042 a protection, similar to autoconf.
3044 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
3045 empty argument lists.
3047 * doc/groff.texinfo: Improve documentation how vertical spacing
3048 and line breaks interact.
3051 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
3053 2003-08-03 Werner LEMBERG <wl@gnu.org>
3055 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
3056 EPS (using eps2eps or similar programs to compute the bounding box).
3058 2003-07-24 Werner LEMBERG <wl@gnu.org>
3060 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
3061 * doc/texinfo.tex: Updated from texinfo 4.6.
3062 * README.CVS: From now on we need texinfo 4.6.
3064 2003-07-23 Werner LEMBERG <wl@gnu.org>
3066 Add requests `dei1' and `ami1' for completeness.
3068 * src/roff/troff/input.cc (calling_mode): Remove
3069 CALLING_DISABLE_COMP.
3070 (comp_mode): New enumeration.
3071 (do_define_string, define_string, define_nocomp_string,
3072 append_string, append_nocomp_string): Updated.
3073 (do_define_macro): Add third parameter.
3074 (define_macro, define_nocomp_macro, define_indirect_macro,
3075 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
3076 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
3079 (init_input_requests): Add `dei1' and `ami1'.
3081 * tmac/trace.tmac: Handle de1 and am1.
3082 (de): Improve tracing message.
3083 (am): Add missing `do'.
3086 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3087 Document new requests.
3089 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
3091 Add option -G to .MPIMG to insert a gap between text and the image.
3093 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
3094 www-finish-left-ll): Updated.
3095 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
3096 (MPIMG): Make option -L and -R optional.
3097 Implement option -G.
3099 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
3101 * src/devices/grohtml/post-html.cpp
3102 (html_printer::do_file_components): Don't use `stdout' as lvalue
3103 since it can be a macro.
3105 2003-07-22 Werner LEMBERG <wl@gnu.org>
3107 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
3108 the corresponding test in aclocal.m4.
3110 2003-07-21 Werner LEMBERG <wl@gnu.org>
3112 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
3113 names but RGB values directly. Otherwise pnmtopng depends on
3114 an external file `rgb.txt' which maps colour names to values.
3116 2003-07-20 Werner LEMBERG <wl@gnu.org>
3118 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
3119 * configure, src/include/config.hin: Regenerated.
3121 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
3123 2003-07-19 Werner LEMBERG <wl@gnu.org>
3125 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
3127 2003-07-18 Werner LEMBERG <wl@gnu.org>
3129 * *.man: Switch to non-compatibility mode temporarily if GNU
3130 syntax extensions are used in the particular man page.
3132 * PROBLEMS: Add solutions for SGR problems.
3134 2003-07-17 Werner LEMBERG <wl@gnu.org>
3136 Don't ignore grotty's command line options if \X'tty: sgr ...' is
3137 used to change the drawing scheme.
3139 * src/devives/grotty/tty.cpp (bold_flag_option,
3140 underline_flag_option, italic_flag_option, reverse_flag_option,
3141 bold_underline_mode_option): New global variables.
3142 (update_options): New function.
3143 (tty_printer::special): Call update_options.
3144 (main): Don't set xxx_flag but xxx_flag_option, then call
3147 2003-07-14 Werner LEMBERG <wl@gnu.org>
3149 Make grotty emit proper Unicode box drawing characters for -Tutf8.
3151 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
3153 (hline_char, vline_char): New global variables.
3154 (tty_printer::tty_printer): Initialize them.
3155 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
3156 horizontal and vertical lines.
3157 (crossings): New global array.
3158 (tty_printer::end_page): Use it to determine the proper crossing
3159 character for -Tutf8.
3161 2003-07-12 Werner LEMBERG <wl@gnu.org>
3163 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
3164 (HTMLDOCFILES): Revert to `pic.html'.
3165 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
3167 2003-07-11 Werner LEMBERG <wl@gnu.org>
3169 * doc/pic.ms: Improve documentation of absolute coordinates.
3170 Document absolute positioning of pictures.
3172 * NEWS: Add new pic capability.
3174 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
3176 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
3179 2003-07-07 Werner LEMBERG <wl@gnu.org>
3181 Implement support for dashed and dotted ellipses in pic. Based on
3182 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
3184 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
3185 common_output::dashed_ellipse, common_output::dotted_ellipse): New
3186 functions. Ellipse arcs are approximated with circle arcs.
3187 * src/preproc/pic/common.h (common_output): Updated.
3188 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
3190 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
3192 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
3194 2003-07-06 Werner LEMBERG <wl@gnu.org>
3196 Make grotty work on platforms which have unsigned char as the
3197 default for char. Based on a patch by Thomas Klausner
3200 * src/devices/grotty/tty.cpp (schar): New typedef.
3201 Updated calls to declare_ptable and implement_ptable.
3202 (glyph): Use schar for back_color_idx and fore_color_idx.
3203 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
3204 (tty_printer::tty_color, tty_printer::tty_printer,
3205 tty_printer::color_to_idx, tty_printer::put_color): Updated.
3207 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
3209 * src/roff/nroff/nroff.sh: Add option -d for completeness.
3210 * src/roff/nroff/nroff.man: Updated.
3212 2003-07-05 Werner LEMBERG <wl@gnu.org>
3214 * NEWS, tmac/groff_www.man: Updated.
3215 * doc/Makefile.sub: Updated.
3217 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
3219 Implement support for multiple HTML output files.
3221 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
3222 -j command line option.
3224 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
3226 (file): New fields `new_output_file', `require_links',
3228 (file::file): Updated.
3229 (files::set_file_name, files::set_links_required,
3230 files::are_links_required, files::is_new_output_file,
3231 files::file_name, files::next_file_name): New functions.
3232 (header_desc): New fields `no_of_level_one_headings',
3234 (header_desc::header_desc): Updated.
3235 (header_desc::write_headings): Handle multiple files.
3236 (html_printer::write_header): Save file name in which header occurs.
3237 (html_printer::determine_header_level): Possibly split files on
3239 (html_printer::do_links, html_printer::troff_tag): Updated.
3240 (html_printer::insert_split_file, html_printer::do_job_name,
3241 html_printer::emit_link, html_printer::write_navigation,
3242 html_printer::do_file_components): New functions.
3243 (html_printer::~html_printer): Handle multiple files.
3244 (main): Handle command line option `-j'.
3246 * src/devices/grohtml/grohtml.man: Updated.
3248 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
3251 * tmac/www.tmac (JOBNAME): New macro.
3252 * tmac/s.tmac (SH-NO-TAG): New macro.
3253 (@SH): Call SH-NO-TAG.
3256 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
3258 * tmac/groff_mdoc.man: Improve documentation of punctuation
3261 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
3263 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
3265 2003-07-03 Werner LEMBERG <wl@gnu.org>
3267 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
3269 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
3271 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
3272 after `/*' and `*/'.
3274 (Fn, Fo): Reduce indentation in synopsis.
3276 * tmac/doc-common (doc-check-depth): New macro.
3277 (doc-end-macro, Sh, Ss): Use it.
3278 (Cd): Fix behaviour in synopsis.
3279 (In): Make it parsed and callable.
3280 If not in the synopsis, represent the C header file enclosed in
3282 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
3283 Use minus, not hyphen.
3285 * tmc/groff_mdoc.man: Updated.
3287 2003-07-01 Werner LEMBERG <wl@gnu.org>
3289 Integrated grap2graph, contributed by Eric S. Raymond.
3291 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
3293 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
3294 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
3296 2003-07-01 Colin Watson <cjwatson@debian.org>
3298 * src/xditview/*.c: Add prototypes, fix return types, add includes.
3299 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
3301 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
3303 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
3305 2003-06-31 Werner LEMBERG <wl@gnu.org>
3307 * doc/Makefile.sub (CLEANADD): Remove all files created by
3308 running `make groff.{pdf,dvi}'.
3310 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
3313 2003-06-30 Werner LEMBERG <wl@gnu.org>
3315 * Makefile.in (SHELL): Define as @SHELL@.
3316 (mkinstalldirs): Use $(SHELL).
3317 (MDEFINES): Add $(SHELL).
3318 * Makefile.comm (SHELL): Removed.
3320 2003-06-29 Werner LEMBERG <wl@gnu.org>
3322 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3323 The X11 documentation files use them.
3324 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3326 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
3328 * tmac/e.tmac (@C): Handle .ad also.
3330 2003-06-12 Werner LEMBERG <wl@gnu.org>
3332 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3334 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3335 Assign `n' even here. It is possible to construct a node
3336 immediately following an escape character:
3344 2003-06-10 Werner LEMBERG <wl@gnu.org>
3346 * README.WIN32: Removed.
3347 * MANIFEST: Updated.
3349 2003-06-07 Werner LEMBERG <wl@gnu.org>
3351 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3353 2003-06-05 Werner LEMBERG <wl@gnu.org>
3355 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3356 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3358 2003-06-03 Werner LEMBERG <wl@gnu.org>
3360 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3361 is done by the calling function.
3363 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
3365 * tmac/X.tmac: Fix definition of `em'.
3367 2003-05-22 Werner LEMBERG <wl@gnu.org>
3369 * src/roff/troff/input.cc (return_macro_request): Fix detection of
3372 2003-05-18 Werner LEMBERG <wl@gnu.org>
3374 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3375 to make items work which consist only of a tag.
3377 2003-05-17 Werner LEMBERG <wl@gnu.org>
3379 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3380 aren't stretched in a tag (this can fail with unformatted boxes).
3381 Instead, insert a break and go back one line.
3383 2003-05-16 Werner LEMBERG <wl@gnu.org>
3385 * src/roff/troff/input.cc (return_macro_request): If called with
3386 argument pop macro twice. We need this to trace `return'.
3388 * tmac/trace.tmac: Handle `return'.
3391 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3394 2003-05-15 Larry Kollar <kollar@alltel.net>
3396 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3397 registers `FPS', `FVS', and `FPD'.
3399 2003-05-15 Werner LEMBERG <wl@gnu.org>
3401 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3404 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
3406 * tmac/groff_mdoc.man: Slight improvements.
3408 2003-05-03 Werner LEMBERG <wl@gnu.org>
3410 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3411 `doc-header-space' after header line if register `cR' is set.
3413 2003-05-02 Werner LEMBERG <wl@gnu.org>
3417 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
3419 * tmac/doc-common (Nd): Use \[em].
3421 2003-05-01 Werner LEMBERG <wl@gnu.org>
3423 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3424 doc-footer-space): Initialize to 0.5i.
3425 (doc-setup-page-layout): Don't set doc-header-space and
3428 2003-04-30 Werner LEMBERG <wl@gnu.org>
3430 * REVISION: Set to 1.
3432 * doc/pic.ms: Document possible problems with `figname'.
3434 2003-04-29 Werner LEMBERG <wl@gnu.org>
3436 Version 1.19 released
3437 =====================
3439 * VERSION: Set to 1.19.
3440 * REVISION: Set to 0.
3441 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3443 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3444 Define charset as `US-ASCII' in html output.
3446 * tmac/www.tmac (ULE): Add missing scaling indicator.
3448 * win32-diffs: Removed.
3450 2003-04-28 Werner LEMBERG <wl@gnu.org>
3452 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3454 Document how to insert discardable whitespace with `.ss'.
3456 2003-04-27 Werner LEMBERG <wl@gnu.org>
3458 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3459 work with plain TeX also.
3461 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3463 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
3465 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3468 2003-04-24 Werner LEMBERG <wl@gnu.org>
3470 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3471 vbox with positive height and zero depth if in TeX mode.
3473 * NEWS: Document glyph name changes for grodvi and grolj4.
3475 2003-04-23 Werner LEMBERG <wl@gnu.org>
3477 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3478 * doc/pic.ms: Fixed.
3480 2003-04-21 Werner LEMBERG <wl@gnu.org>
3482 HP-UX 10.20 has `snprintf' but it isn't declared.
3484 * configure.ac: Add declaration test for snprintf.
3485 * configure: Regenerated.
3486 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3487 * src/include/config.hin: Regenerated.
3489 2003-04-19 Werner LEMBERG <wl@gnu.org>
3491 Add keyword `figname' to pic, specifying the name of the picture
3492 box in TeX mode. Based on a patch from William J Poser
3493 <wjposer@unagi.cis.upenn.edu>.
3495 * src/preproc/pic/pic.y: New token `FIGNAME'.
3496 (macro_name): New rule of type <str>.
3497 (placeless_element): Handle `FIGNAME'.
3498 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3499 * src/preproc/pic/main.cpp (graphname): New global variable.
3500 (do_picture): Initialize `graphname'.
3501 * src/preproc/pic/pic.h: Updated.
3502 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3505 (tex_output::text): Beautify output.
3506 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3507 `shaded' and `outlined' unconditionally.
3508 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3511 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3512 greater is necessary.
3514 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
3516 Add option -r to soelim to avoid emission of `.lf' lines.
3517 Add option -t to produces TeX comment lines instead of `.lf' lines.
3519 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3522 (main): Handle `-r' and `-t'.
3523 (set_location): Handle `raw_flag' and `tex_flag'.
3524 * src/preproc/soelim/soelim.man, NEWS: Updated.
3526 2003-04-17 Werner LEMBERG <wl@gnu.org>
3528 * tmac/hyphenex.sh: Replaced with...
3529 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3532 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3533 if --quiet is used for the configure script.
3534 * configure: Regenerated.
3536 2003-04-16 Werner LEMBERG <wl@gnu.org>
3538 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3539 Add `const' to second argument.
3540 (html_printer::add_table_end): Add `const' to argument.
3541 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3542 `const' to arguments.
3543 * src/devices/grohtml/html-text.h: Updated.
3545 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3546 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3549 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3550 cast for integer constant.
3552 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3553 (writeNbytes): Add `const' to first argument.
3554 (writeString): Add `const' to argument.
3555 (char_buffer::can_see): Add `const' to third argument.
3556 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3557 `const' to argument.
3558 * src/preproc/html/pushback.h: Updated.
3560 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3561 (include_path_append): Add `const' to argument.
3564 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3566 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3567 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3569 (unicode_decompose_init::unicode_decompose_init): Updated.
3570 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3572 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3573 * src/roff/troff/input.cc (process_startup_file): Add `const' to
3576 * tmac/hyphenex.sh: Make script more portable by using a here
3579 2003-04-15 Werner LEMBERG <wl@gnu.org>
3581 Renamed all `*.cc' files to `*.cpp'.
3582 Updated all configuration files, makefiles, and documentation.
3584 2003-04-14 Werner LEMBERG <wl@gnu.org>
3586 * tmac/hyphenex.sh: Slight improvements.
3588 2003-04-13 Werner LEMBERG <wl@gnu.org>
3590 * font/devascii/R.proto, font/devcp1037/R.proto,
3591 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3592 character slots with unnamed glyphs.
3594 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3595 (an-first): New global variable.
3596 (an-header): Emit vertical space between multiple man pages.
3598 2003-04-11 Werner LEMBERG <wl@gnu.org>
3600 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3603 2003-04-10 Werner LEMBERG <wl@gnu.org>
3605 * PROBLEMS: Revised.
3607 2003-04-10 Bernd Warken <bwarken@mayn.de>
3609 * doc/webpage.ms: Improved.
3611 2003-04-09 Werner LEMBERG <wl@gnu.org>
3613 Add register \n[.height] which returns the value of \H.
3614 Add register \n[.slant] which returns the value of \S.
3616 * src/roff/troff/env.cc (init_env_requests): Implement.
3617 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3620 2003-04-08 Werner LEMBERG <wl@gnu.org>
3622 * tmac/html.tmac: Move some of the data into html-end.tmac.
3623 Remove most of the character translations for eqn since html fonts
3624 now cover those characters.
3626 * tmac/html-end.tmac: New file.
3627 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3628 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3629 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3631 2003-04-07 Werner LEMBERG <wl@gnu.org>
3633 * man/groff_out.man: Document negative values of `N' if -Thtml is
3636 2003-04-06 Werner LEMBERG <wl@gnu.org>
3638 * Makefile.comm (depend.temp): Check location of YTABC.
3640 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3642 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3644 (groff_bin_path): Rename to GROFF_BIN_PATH.
3645 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3646 * doc/Makefile.in (TROFFBIN): New variable for troff
3648 (GROFFBIN): New variable for groff binary path.
3649 (groff_bin_path): Rename to GROFF_BIN_PATH.
3650 (TROFF): Use TROFFBIN.
3651 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3652 * doc/Makefile.sub (GROFFBIN): New variable for groff
3654 (groff_bin_path): Rename to GROFF_BIN_PATH.
3655 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3657 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3658 with INSTALL_SCRIPT.
3659 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3660 * Makefile.dev (all): Depend on DEVSCRIPTS.
3661 (install_dev): Likewise.
3662 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3664 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3665 (DEVGENSCRIPTS): New variable to hold generated scripts.
3667 2003-04-05 Werner LEMBERG <wl@gnu.org>
3669 * src/libs/libdriver/input.cc (IntArray::operator[],
3670 IntArray::get_data): Remove meaningless `const' in return value.
3672 * README.CVS: New file.
3674 2003-04-04 Werner LEMBERG <wl@gnu.org>
3676 Check for stdint.h in C++, not in C.
3678 * aclocal.m4 (GROFF_STDINT_H): New function,
3679 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3681 * configure, src/include/config.hin: Regenerated.
3682 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3685 Fix handling of in grohtml. To do this, troff emits `N'
3686 with a negative value, representing the width of the unbreakable
3687 space (only for -Thtml). grohtml then converts this back to
3688 and uses the value of N as its width.
3690 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3691 unbreakable_space_node::tprint): Emit `N-<width>'.
3692 * src/include/printer.h (printer::set_numbered_char): Make it
3694 Make members `font_table' and `nfonts' protected instead of private.
3695 * src/devices/grohtml/post-html.cc
3696 (html_printer::set_numbered_char): New member function.
3699 * src/libs/libgroff/maxfilename.cc:
3700 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3702 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3705 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
3707 * man/roff.man: Small fixes.
3709 2003-04-03 Werner LEMBERG <wl@gnu.org>
3711 Make groff independent from locale's numeric settings.
3713 * configure.ac: Check for `setlocale'.
3714 * configure, src/include/config.hin: Regenerated.
3716 * src/include/lib.h: Handle HAVE_SETLOCALE.
3718 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3719 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3720 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3723 * doc/groff.texinfo: Change dir category to `Typesetting'.
3724 (Man font macros): Mention that there is no space between arguments
3727 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3728 (*printer::change_color, *printer::change_fill_color): Add missing
3731 2003-04-02 Werner LEMBERG <wl@gnu.org>
3733 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3734 html_table::is_gap): Compute table widths after converting border
3735 positions to avoid rounding errors.
3737 2003-04-01 Werner LEMBERG <wl@gnu.org>
3739 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3740 `space_emitted' properly.
3742 2003-03-31 Werner LEMBERG <wl@gnu.org>
3744 * src/devices/grohtml/html-table.cc: Fix column width calculation.
3745 (html_table::set_linelength): Don't add 1.
3746 (html_table::add_indent): Don't subtract 1.
3748 * tmac/html.tmac: Set default page offset to zero.
3750 2003-03-30 Werner LEMBERG <wl@gnu.org>
3752 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
3754 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3755 unbreakable_space_node::tprint): New functions.
3756 (troff_output_file): Make space_char_hmotion_mode::tprint and
3757 unbreakable_space_node::tprint to friends.
3758 * src/roff/troff/node.h: Updated.
3760 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
3761 in the HTML standard).
3763 2003-03-29 Werner LEMBERG <wl@gnu.org>
3765 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3766 Otherwise, the following code
3775 produces `x a' instead of `xa'. This is a temporary fix, disabling
3776 font changes in diversions for -Thtml.
3778 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3780 (an-do-tag-html): Merge with ...
3781 (an-do-tag): This macro.
3782 Change code slightly to circumvent grohtml bug.
3783 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3785 * src/devices/grohtml/html-table.cc (html_table::emit_col,
3786 html_table::is_gap): Round `width' properly.
3788 * tmac/html.tmac: Provide some default layout parameters for
3791 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3794 2003-03-28 Werner LEMBERG <wl@gnu.org>
3796 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3798 2003-03-27 Werner LEMBERG <wl@gnu.org>
3800 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3803 2003-03-20 Werner LEMBERG <wl@gnu.org>
3805 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3807 * doc/groff.texinfo: Updated.
3809 2003-03-19 Werner LEMBERG <wl@gnu.org>
3811 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3812 TOKEN_END_TRAP>: Reset `have_input'.
3814 2003-03-18 Werner LEMBERG <wl@gnu.org>
3816 * src/roff/groff/groff.man: Mention groff_trace man page.
3818 2003-03-16 Werner LEMBERG <wl@gnu.org>
3820 * Makefile.in (LIBEXT): New variable to indicate the file extension
3821 of library files. Computed heuristically from $(OBJEXT).
3822 (MDEFINES): Add $(LIBEXT).
3823 * Makefile.lib, Makefile.comm: Use it.
3825 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
3826 overlong lines into smaller chunks.
3827 (get_binary): New function.
3829 * src/utils/pfbtops/pfbtops.man: Updated.
3831 2003-03-15 Colin Watson <cjwatson@debian.org>
3833 * src/roff/groff/groff.man: Minor syntax fix.
3835 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
3837 * src/devices/grops/ps.cc (ps_printer::media_set,
3838 ps_printer::~ps_printer): Handle zero paper width and length.
3840 2003-03-13 Werner LEMBERG <wl@gnu.org>
3842 Add options -p and -l to grodvi.
3844 * src/devices/grodvi/dvi.cc: Include paper.h.
3845 (landscape_flag, user_paper_length, user_paper_width): New global
3847 (dvi_printer::begin_page): Emit `papersize' special.
3848 Set color after initialization of `cur_h' and `cur_v'.
3849 (main): Add options `-l' and `-p'.
3850 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3851 * src/devices/grodvi/grodvi.man, NEWS: Updated.
3853 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3855 2003-03-12 Werner LEMBERG <wl@gnu.org>
3857 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3858 * man/groff_tmac.man: This man page.
3859 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3862 * tmac/X.tmac: Don't load pspic.tmac.
3864 2003-03-11 Werner LEMBERG <wl@gnu.org>
3866 Make variable `pr' local to libdriver/input.cc. Based on a patch
3867 by Bernd Warken <bwarken@mayn.de>.
3869 * src/include/driver.h (pr): Removed.
3871 * src/libs/libdriver/input.cc (pr): New global variable.
3872 (do_file): Deallocate `pr'.
3873 * src/libs/libdriver/printer.cc (pr): Removed.
3875 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3876 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3877 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3878 (main): Don't delete `pr'.
3880 2003-03-10 Werner LEMBERG <wl@gnu.org>
3882 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3883 * tmac/papersize.tmac: New file.
3884 * tmac/troffrc: Include `papersize.tmac'.
3885 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3886 * tmac/an-old.tmac: Set LT to LL by default.
3888 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3889 doc/groff.texinfo: Updated.
3891 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3892 bug which caused all odd iso papers to have wrong dimensions.
3894 * src/devices/grops/ps.cc (user_paper_width): New global variable.
3895 (main) <'p'>: Set `user_paper_width' also.
3896 (ps_printer::media_width, ps_printer::media_height): Use values
3897 given with option `-p'.
3899 2003-03-09 Werner LEMBERG <wl@gnu.org>
3901 * src/include/nonposix.h: Provide default for SET_BINARY.
3903 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3904 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3907 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3908 (main): Treat \r\n as \n.
3910 2003-03-08 Werner LEMBERG <wl@gnu.org>
3912 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3913 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3915 2003-03-07 Werner LEMBERG <wl@gnu.org>
3917 Added support to access more than 256 glyphs in Type 1 fonts.
3919 * src/devices/grops/ps.cc (subencoding): New structure.
3920 (style): Add `sub' field.
3922 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3923 Add `set_subencoding', `get_subfont' and `encode_subfont' member
3926 (ps_printer::set_char): Use `set_subencoding'.
3927 (make_subencoding_name): New function.
3928 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3929 (ps_printer::~ps_printer): Emit subencoding definitions.
3931 * src/devices/grops/psrm.cc (valid_input_table): New array to
3932 properly support EBCDIC.
3933 (white_space): Add `\f'.
3934 (ps_get_line): Change first argument to be of type `string &'.
3935 Updated all callers.
3936 This allows to get lines of arbitrary length.
3937 Use `valid_input_table'.
3938 Remove warning about non-conforming PS line length. This seems
3939 not to be of great importance -- for example, dvips don't emit
3941 (PS_LINE_MAX): Removed.
3942 (matches_comment): Change first argument to be of type `string &'.
3944 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3946 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3947 %AGL_to_unicode, %default_ligatures): New hash tables.
3948 Read all map entries.
3949 Add unencoded characters.
3950 Check for default ligatures if there are no `L' entries.
3951 Print all kern entries.
3952 Print all characters in charset.
3953 * src/utils/afmtodit/afmtodit.man: Updated.
3955 * font/devps/*: Regerated all fonts.
3957 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3958 of characters, just use `.trin'. Otherwise the mapping depends
3959 on the font encoding.
3960 * tmac/ps.tmac: Add `fi' and `fl'.
3961 Improve `Fi' and `Fl'.
3962 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3963 * tmac/Xps.tmac: Fix `em'.
3967 2003-03-04 Werner LEMBERG <wl@gnu.org>
3969 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3972 2003-03-03 Werner LEMBERG <wl@gnu.org>
3974 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3976 * font/devps/generate/textmap: Remove entry `similarequal'.
3977 * font/devps/symbolmap: Updated.
3979 2003-03-02 Werner LEMBERG <wl@gnu.org>
3981 * src/libs/libgroff/font.cc (font::load): Fix error message for
3984 * src/devices/grops/grops.man: Improve documentation of the -b
3987 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3988 `ascii' and `cp1047'.
3990 2003-03-01 Werner LEMBERG <wl@gnu.org>
3992 Document composite glyphs and the `composite' request.
3994 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3996 2003-02-28 Werner LEMBERG <wl@gnu.org>
3998 * font/devdvi/generate/ec.map: Add some more Unicode entities.
3999 * font/devdvi/*EC: Updated.
4001 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
4002 * tmac/latin1 (latin1-tr): Undo any previous mapping.
4003 * tmac/troffrc: Load `composite.tmac'.
4004 * tmac/Makefile.sub (NORMALFILES): Updated.
4006 * doc/groff.texinfo (Input Encodings): New section.
4009 2003-02-27 Werner LEMBERG <wl@gnu.org>
4011 * doc/texinfo.tex: New version 2003-02-11.06.
4013 * tmac/doc-common (Dt): Don't emit warning for unknown section.
4014 * tmac/groff_mdoc.man: Fix description of `Dt'.
4016 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
4018 * font/devps/prologue.ps: Fix for included Postscript that does
4019 a setpagedevice -- which is now safely ignored.
4023 * src/devices/grops/ps.cc: Now sets the page size in the generated
4024 document. This is done in two ways: Via a %%-comment for gv and
4025 the like, and via a PageSize and setpagedevice for programs that
4026 understands Postscript proper, like ps2pdf.
4028 * src/devices/grops/ps.h: New broken-flag to avoid page size
4029 definition, if required.
4031 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
4033 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
4034 Not really necessary due to the fix in prologue.ps, but cleaner:
4035 Such information does not belong in an .eps file.
4037 * doc/Makefile.sub: See doc/Makefile.in.
4039 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
4041 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
4042 instead of P1 since the latter is broken in some versions of netpbm.
4043 * configure: Updated.
4045 2003-02-26 Larry Kollar <kollar@alltel.net>
4047 Make man pages more customizable.
4049 * tmac/an-old.tmac (FT): New register holding footer distance from
4051 (HF): New string holding the default heading font.
4052 (TH): Handle registers `IN' and `SN' set on the command line.
4054 (PT, BT): New strings to customize header and footer lines.
4055 (an-header, an-footer): Use them.
4057 * tmac/groff_man.man: Document changes.
4059 * doc/groff.texinfo: Document man changes.
4060 Document Ultrix extensions of man.
4062 2003-02-26 Werner LEMBERG <wl@gnu.org>
4064 * src/roff/troff/input.cc (do_width, do_if_request): Reset
4065 `have_input' after changing back to old environment.
4067 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
4068 function up to be defined before first call. This is necessary to
4069 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
4071 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
4072 the default font directory also. Based on a patch from James
4073 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
4074 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
4075 * src/utils/afmtodit/afmtodit.man: Document it.
4079 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
4081 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
4083 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
4084 (GROFF_PNMTOPS_NOSETPAGE): New macro.
4085 * configure.ac: Use it.
4086 * configure: Regenerated.
4087 * Makefile.in: Updated.
4089 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
4090 (CLEANADD): Add www.tmac-sed.
4091 (pnmtops_nosetpage): Define default.
4092 (install_data): Handle www.tmac-sed and substitute
4093 @PNMTOPS_NOSETPAGE@.
4094 (stamp-sed): Add www.tmac.
4095 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
4096 It now breaks URLs at suitable places.
4097 (www:substring_ok): New register set by...
4098 (www:@test_substring): New macro.
4099 (www:error): New alias to www-error.
4100 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
4102 (URL): Use www:url_breaks.
4103 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
4104 (CDS, CDE): New macros.
4106 2003-02-25 Werner LEMBERG <wl@gnu.org>
4108 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
4111 2003-02-24 Werner LEMBERG <wl@gnu.org>
4113 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
4114 can be negative also.
4116 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
4118 (read_char_table): Avoid negative ascenders.
4119 (output_charset): Add cast.
4120 * font/devlj4/*: Regenerated.
4122 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
4125 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
4126 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
4128 * font/devdvi/*: Regenerated.
4130 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
4131 normal width, while the previously used characters (U+2329 and
4132 U+232A) are classified as wide due to canonical equivalence with the
4133 CJK punctuation characters U+3008 and U+3009.
4135 * font/devutf8/R.proto: Updated.
4136 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
4138 * man/groff_char.man: Simplify handling of table traps by
4139 introducing `start block' and `end block' macros.
4140 (Ns, Ne, 2s, 2e, Ds, De): New macros.
4141 (DL): Make it work with Unix troff also.
4142 Fix code values of `la' and `ra'.
4144 * tmac/dvi.tmac: Define `<>' for CW and CWI.
4146 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
4148 * src/devices/grohtml/post-html.cc (element_list::~element_list):
4149 New destructor, fixing a major memory leak.
4151 2003-02-22 Werner LEMBERG <wl@gnu.org>
4153 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
4154 to be in conformance with Unicode 3.0 and newer.
4156 * font/devlj4/generate/text.map: Add `Eu'.
4157 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
4158 * font/devlj4/S: Regenerated.
4160 * man/groff_char.man: Completely rewritten.
4162 * doc/groff.texinfo: Fix description of request and macro arguments.
4164 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
4168 * src/devices/grohtml/html-table.cc (html_table::~html_table):
4169 Deallocate `columns' list.
4170 * src/devices/grohtml/post-html.cc (char_block::~char_block):
4172 (text_glob::text_glob_html, text_glob::text_glob_special,
4173 text_glob::text_glob_line, text_glob::text_glob_auto_image,
4174 text_glob::text_glob_tag): Avoid memory leaks.
4175 (text_glob::remember_table): Free memory before reassigning.
4177 2003-02-19 Werner LEMBERG <wl@gnu.org>
4179 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
4180 alias `hbar'), the Planck constant over two pi.
4182 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
4183 `+e' for position 34.
4184 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
4185 `u2662' and `u2661'.
4186 * font/devdvi/{MI,S}: Regenerated.
4187 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
4188 * font/devlbp/*: Add `hbar' alias.
4189 * font/devlj4/generate/special.map: Ditto.
4190 * font/devlj4/S: Regenerated.
4191 * font/devps/generate/symbolchars: Add `+e'.
4192 * font/devps/generate/textmap: Fix PS name for `-h'.
4194 * font/devps/symbolmap: Regenerated.
4196 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
4198 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
4200 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
4203 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
4205 * tmac/tty-char.tmac: Add `+e'.
4207 2003-02-17 Werner LEMBERG <wl@gnu.org>
4209 Another round trying to really fix problems with `have_input'.
4211 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
4212 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
4214 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
4215 handling if both foreground and background colors are default.
4217 * doc/groff.texinfo (Debugging): Document .lf differences to
4220 2003-02-16 Werner LEMBERG <wl@gnu.org>
4222 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
4223 null-bytes in created string.
4225 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
4226 alias_macro, lookup_request): Improve warning messages.
4228 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
4230 Free `last_image_filename'.
4232 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
4234 (imageList::createPage, imageList::createImage): Use `free', not
4236 (imageItem::~imageItem): Free `imageName'.
4237 (addRegDef): Use `strsave', not `strdup'.
4238 (get_resolution): Free `pathp'.
4240 2003-02-15 Werner LEMBERG <wl@gnu.org>
4242 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
4245 2003-02-14 Werner LEMBERG <wl@gnu.org>
4247 Add memory management for colors to deallocate unnamed colors
4250 * src/include/color.h (color): New members `free_list' and `next'.
4251 New member functions `new' and `delete'.
4253 * src/libs/libgroff/color.cc: Implement it.
4255 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
4256 for array size of new operator.
4258 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
4259 redundant comparison.
4261 * src/roff/troff/input.cc (word_space_node::reread,
4262 hmotion_node::reread): Avoid warning about unused parameter.
4263 (reset_output_registers): Remove redundant parameter.
4264 (define_color): Undo change 2003-02-12.
4266 * src/roff/troff/reg.h: Updated.
4268 * src/roff/troff/node.cc (troff_output_file::really_print_line,
4269 output_file::put_filename, real_output_file::really_put_filename,
4270 ascii_output_file::really_print_line,
4271 break_char_node::get_hyphen_list): Avoid warning about unused
4273 (suppress_node::tprint): Updated.
4275 * configure.ac: Check declaration for rand() and srand().
4276 * configure: Regenerated.
4278 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
4280 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
4283 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
4284 to avoid compiler warnings.
4286 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
4289 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
4291 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
4293 Updated all callers.
4295 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
4297 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
4298 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
4300 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
4301 Parameter is unused.
4302 (html_printer::add_table_end): Define parameter conditionally.
4303 * src/devices/grohtml/output.cc (simple_output::special): Parameter
4306 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
4307 (lbp_printer::set_char): Last parameter is unused.
4309 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
4311 2003-02-13 Werner LEMBERG <wl@gnu.org>
4313 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
4314 Make \D'f ...' move horizontally again for backwards compatibility.
4315 Replace it with \D'Fg ...' where appropriate to avoid dependency
4316 on horizontal resolution.
4318 * src/roff/troff/input.cc (do_get_long_name): New function.
4319 (get_long_name): Call it.
4321 (read_draw_node): Handle `\D'Fx ...' by calling ...
4322 (read_color_draw_node): New function.
4324 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4326 Pass it to `do_get_long_name' which is used instead of
4329 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4330 unnecessary value guard.
4331 (parse_D_command) <'f'>: Add horizontal shift.
4333 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4334 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4335 (FILL_MAX): Removed.
4337 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4340 2003-02-12 Werner LEMBERG <wl@gnu.org>
4342 * src/roff/troff/input.cc (do_name_test, do_expr_test,
4343 do_zero_width): Push `\n' if closing delimiter is missing.
4345 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4346 <'F'>: Make \F non-transparent at the beginning of line.
4347 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4348 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4351 (define_color): Free color in case of reassignment.
4353 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4354 @DefescListEnd): Use @Var, not @var.
4357 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4359 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4360 `shaded' and `outlined' arrays.
4361 (object_spec::object_spec): Initialize `shaded' and `outlined'.
4362 (graphic_object::set_fill_color, graphic_object::set_outline_color):
4364 (closed_object::set_fill_color): Ditto.
4365 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4367 (troff_output::reset_color): Use a_delete instead of free.
4368 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4370 2003-02-11 Werner LEMBERG <wl@gnu.org>
4372 * doc/groff.texinfo: Improve documentation of `ad'.
4373 Document that \D'f...' is dependent on the horizontal resolution.
4374 * man/groff_diff.man: Improve documentation of \D'f...'.
4376 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4377 compensating \h'...' for \D'f ...' since the latter no longer moves
4379 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4381 2003-02-10 Werner LEMBERG <wl@gnu.org>
4383 Improve error messages for `x F' (and `F') commands.
4385 * src/include/error.h: Add declaration for
4386 `current_source_filename'.
4387 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4388 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4389 parameter for source file string.
4390 Updated all callers.
4392 * src/libs/libdriver/input.cc: Add `current_source_filename'.
4393 (remember_source_filename): New function.
4394 (parse_x_command <'F'>, do_file <'F'>): Use it.
4396 2003-02-09 Werner LEMBERG <wl@gnu.org>
4398 Make grotty not emit warnings about unknown colors more than
4401 * src/devices/grotty/tty.cc: Include `ptable.h'.
4402 (TTY_MAX_COLORS): Removed.
4403 (DEFAULT_COLOR_IDX): Defined to -1.
4404 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4405 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4406 Change `tty_colors' to be a ptable.
4407 First arg of `put_color' is now `char'.
4408 New functions `make_rgb_string' and `tty_color'.
4409 (tty_printer::tty_printer): Use `tty_color'.
4410 (tty_printer::color_to_idx): Return value is now `char'.
4413 * src/include/color.h (color): Add `print_color' member function.
4414 * src/libs/libgroff/color.cc (color::print_color): Implement it.
4416 2003-02-08 Werner LEMBERG <wl@gnu.org>
4420 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4423 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4424 assume that value has been allocated with `new[]', thus use
4425 `a_delete' for deallocation.
4427 * src/libs/libdriver/input.cc (get_integer_arg,
4428 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4431 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4432 * src/libs/libgroff/nametoindex.cc
4433 (character_indexer::named_char_index): Use `new <type>[1]'.
4435 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4437 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4438 (split_text): Use `a_delete'.
4440 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4443 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4444 harmless memory leak.
4445 (hyphen_trie::read_patterns_file): Initialize `buf'.
4446 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4447 Initialize `current_fill_color'and `current_glyph_color'.
4448 * src/roff/troff/glyphuni.cc
4449 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4450 * src/roff/troff/uniuni.cc
4451 (unicode_decompose_init::unicode_decompose_init): Ditto.
4452 * src/roff/troff/uniglyph.cc
4453 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4455 2003-01-26 Werner LEMBERG <wl@gnu.org>
4457 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4458 `access' before calling `unlink'.
4459 (do_file): Handle __EMX__.
4461 * src/include/nonposix.h: Handle __EMX__.
4463 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4464 (fontpath,tmacpath): Use it.
4466 Sorted alphabetically.
4468 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4470 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4473 2003-01-27 Werner LEMBERG <wl@gnu.org>
4475 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4476 New files, copied from gnulib.
4477 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4478 * configure.ac: Updated.
4479 * configure: Regenerated.
4481 * src/include/config.hin: Regenerated.
4482 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4483 Don't define `strcasecmp' as `strcmp'.
4484 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4485 Dont define `strncasecmp' as `strncmp'.
4487 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4490 2003-01-26 Werner LEMBERG <wl@gnu.org>
4492 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4495 2003-01-25 Werner LEMBERG <wl@gnu.org>
4497 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4499 2003-01-24 Werner LEMBERG <wl@gnu.org>
4501 Add US-english hyphenation exceptions (converted from Barbara
4502 Beeton's hyphenation exception log reports which appear irregularly
4505 * tmac/hyphen.us: Updated to latest version.
4506 * tmac/README: Updated.
4507 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4508 * tmac/troffrc: Load `hyphenex.us'.
4509 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4510 * doc/groff.texinfo: Updated.
4512 2003-01-23 Werner LEMBERG <wl@gnu.org>
4514 Improve hyphenation slightly. This is a first step in redesigning
4515 the hyphenation algorithm to make it more flexible (e.g. allowing
4516 kerns and ligatures between the hyphenation character and the
4517 following character -- while not used normally in English, other
4518 languages like German would benefit).
4520 * src/roff/troff/env.cc (environment::hyphenate_line): Use
4521 assertion instead of if-clause.
4522 Let `get_hyphen_list' return the number of involved characters in
4523 the hyphenation pattern instead of computing it directly (which
4524 often yields too small values).
4525 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4526 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4529 2003-01-22 Werner LEMBERG <wl@gnu.org>
4531 Fixing a bug which caused groff to hang if the hyphenation exception
4532 dictionary tried to grow.
4534 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4535 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4536 pointer to dictionary.
4538 2003-01-20 Werner LEMBERG <wl@gnu.org>
4540 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4541 negative left italic correction.
4542 * src/utils/afmtodit/afmtodit.man: Document it.
4544 * font/devps/generate/Makefile (RFLAG): Add `-m'.
4545 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4546 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4550 2003-01-16 Werner LEMBERG <wl@gnu.org>
4554 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
4556 * src/preproc/refer/refer.man: Mention REFER environment variable.
4558 2003-01-05 Werner LEMBERG <wl@gnu.org>
4560 Similar to \[is], the square root glyph (\[sr]) and the square root
4561 extension glyph (\[radicalex]) are now text symbols. The new
4562 mathematical versions are called \[sqrt] and \[sqrtex],
4565 * font/devX*/S: Regenerated.
4566 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4567 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4568 * font/devdvi/EX, font/devdvi/S: Regenerated.
4569 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4570 * font/devlj4/generate/special.map: Add `sqrt'.
4571 * font/devlj4/S: Regenerated.
4572 * font/devps/generate/textmap: Add `sqrt'.
4573 * font/devps/S, font/devps/symbolmap: Regenerated.
4575 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4576 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4577 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4578 overlap horizontally.
4580 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4581 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4584 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4585 and `sqrtex' are overlapping glyphs.
4587 2003-01-04 Werner LEMBERG <wl@gnu.org>
4589 * font/devdvi/generate/texsy.map: Add `is'.
4590 * font/devps/symbolmap: Regenerated.
4591 * font/devdvi/*TC, MI, S: Regenerated.
4593 * tmac/dvi.tmac: Remove `is'.
4595 2003-01-03 Werner LEMBERG <wl@gnu.org>
4597 `is' is now a text symbol (only relevant for dvi). The math variant
4598 can be accessed with `integral'.
4600 * font/devX*/S: Regenerated.
4601 * font/devdvi/generate/texex.map: Remove `is'.
4602 * font/devdvi/EX: Updated.
4603 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4604 * font/devlj4/generate/special.map: Ditto.
4605 * font/devlj4/S: Regenerated.
4606 * font/devps/generate/textmap: Add `integral'.
4607 * font/devps/S: Regenerated.
4609 * tmac/dvi.tmac: Define `is'.
4611 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4613 * src/preproc/tbl/main.cc (process_format): Fix error message.
4615 2003-01-02 Werner LEMBERG <wl@gnu.org>
4617 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4618 * font/devps/textmap: Fix entries for `ne' and `nc'.
4619 * font/devps/symbolmap: Regenerated.
4621 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4622 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4623 `38', `58', `78', `-+', `|=', `nc', `ne'.
4625 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4626 Use `schar' for `aq'.
4627 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4628 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4629 * tmac/tty.tmac: Add `ne'.
4631 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4632 for fallback glyphs.
4634 2002-12-29 Werner LEMBERG <wl@gnu.org>
4638 * font/devX*/*: Regenerated.
4639 * font/devdvi/generate/ec.map: Remove `eq'.
4640 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4641 Assign `|=' to position 39.
4642 * font/devdvi/*EC, S: Regenerated.
4643 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4644 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4645 Assign `|=' to position 549.
4646 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4648 Add `uni2243' for `|='.
4650 * tmac/ec.tmac: Add `eq'.
4651 * tmac/dvi.tmac: Add `=~'.
4652 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4655 2002-12-21 Werner LEMBERG <wl@gnu.org>
4657 * font/devdvi/generate/tc.map: Remove `**'.
4658 * font/devdvi/*TC: Regenerated.
4659 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4661 * font/devutf8/NOTES: Updated.
4663 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4664 Don't give default parameter to `set_macro'.
4665 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4666 instead of `set_macro'.
4667 (charinfo::setx_macro): Implement it.
4668 (charinfo::set_macro): Don't change `mode'.
4670 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4671 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4672 * tmac/dvi.tmac: Define `!=' with `.schar'.
4674 2002-12-20 Werner LEMBERG <wl@gnu.org>
4676 * font/devX*/S: Regenerated.
4677 * font/devdvi/generate/ec.map: Remove `pl'.
4678 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4679 * font/devdvi/*{TC,EC}: Regenerated.
4680 * font/devhtml/R.proto: Add `-+'.
4681 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4682 * font/devlbp/*: Remove `or'.
4683 * font/devlj4/generate/special.map: Remove `or'.
4684 * font/devlj4/S: Regenerated.
4685 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4686 `seveneighths', `threeeighths'.
4688 Replace `minusplus' with `uni2213'.
4689 * font/devps/symbolmap: Regenerated.
4690 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4693 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4695 * src/roff/troff/node.cc (troff_output_file::put_char_width):
4696 Call glyph_color and fill_color even if tcommand_flag isn't set.
4697 (make_node, node::add_char): Check not ci->is_fallback but
4700 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4701 * tmac/ec.tmac: Add .rchar entry for `f/'.
4702 Don't remove `12', `14', `34'.
4703 Define `pl' to be always roman.
4704 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4705 Define `18', `38', `58', `78'.
4706 * tmac/tty.tmac: Add `-+'.
4707 * tmac/dvi.tmac: Define `f/'.
4708 (dvi-frac): Use `f/'.
4709 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4710 Define `18', `38', `58', `78'.
4712 2002-12-15 Colin Watson <cjwatson@debian.org>
4714 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4716 2002-12-10 Werner LEMBERG <wl@gnu.org>
4718 Add glyph `tno', a textual variant of `no'.
4720 * font/devX*/*: Regenerated.
4721 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4722 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4723 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4724 * font/devdvi/*: Regenerated.
4725 * font/devlbp/*: Add `tno'.
4726 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4727 * font/devlj4/*: Regenerated.
4728 * font/devps/generate/textmap: Replace `no' with `tno'.
4729 * font/devps/generate/symbolchars: Add `no'.
4730 * font/devps/*: Regenerated.
4732 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4734 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4735 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4739 * tmac/dvi.tmac: Replace most `\\' with `\E'.
4740 Add definition for `sd'.
4741 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4743 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4745 2002-12-08 Werner LEMBERG <wl@gnu.org>
4747 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4748 mode to avoid rounding errors.
4749 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4751 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4752 src/roff/troff/troff.man: Improve documentation of -T.
4754 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
4756 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4757 (run_pipeline) [_WIN32]: Provide working function without `fork'.
4759 2002-12-06 Werner LEMBERG <wl@gnu.org>
4761 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4762 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4763 Scaling Euro.sansserif glyphs down to have the same height as
4765 Removed unnecessary points; added some extrema.
4767 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4770 2002-12-04 Werner LEMBERG <wl@gnu.org>
4772 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4773 and `Euro.symbol.bold.slanted'.
4774 Improve some glyph offsets and widths.
4775 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4777 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4779 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4782 * tmac/europs.tmac: Updated to new glyph indices.
4783 Use Euro.symbol for font familiy `A'.
4785 * doc/groff.texinfo: Minor improvements.
4787 2002-12-02 Werner LEMBERG <wl@gnu.org>
4789 * font/devdvi/generate.tc.map: s/%O/%0/.
4790 * font/devdvi/*TC: Regenerated.
4792 * src/roff/troff/div.cc (init_div_requests): Sorted.
4794 * tmac/dvi.tmac: Remove `Ye'.
4795 * tmac/ec.tmac: Remove `Ye'.
4796 Add .rchar entry for `de'.
4798 * man/groff.man, man/groff_diff.man: Document register `.pe'.
4799 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4802 2002-11-30 Werner LEMBERG <wl@gnu.org>
4804 Add PS font for various Euro glyphs.
4806 * font/devps/generate/freeeuro.sfd: New master font file for
4808 * font/devps/generate/sfdtopfa.pe: New conversion script for
4810 * font/devps/generate/Makefile (FONTS): Add `EURO'.
4811 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4812 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4814 * font/devps/EURO: Generated from `freeeuro.afm'.
4815 * font/devps/download: Add `freeuro.pfa'.
4816 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4819 * tmac/europs.tmac: New file.
4820 * tmac/ps.tmac: Include `europs.tmac'.
4821 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4823 2002-11-29 Werner LEMBERG <wl@gnu.org>
4825 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4826 * font/devdvi/S: Regenerated.
4827 * font/devhtml/R.proto: Fix `CR' and `ci'.
4829 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4831 * font/devps/symbolmap: Regenerated.
4832 * font/devutf8/R.proto: Fix `CR' and `ci'.
4834 * font/devutf8/NOTES: Updated.
4836 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4839 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4841 * tmac/dvi.tmac: Add `lh' and `rh'.
4842 * tmac/Xps.tmac: Fix `lh' and `rh'.
4843 * tmac/X.tmac: Add `OK'.
4844 * tmac/lj4.tmac: Ditto.
4846 2002-11-24 Werner LEMBERG <wl@gnu.org>
4848 * font/devX*/S: Regenerated.
4849 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4850 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4851 * font/devdvi/generate/texsy.map: Remove `or' glyph.
4852 * font/devdvi/S: Regenerated.
4853 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4854 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4855 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4856 `bracketleftbt', `bracketrighttp', `bracketrightex',
4857 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4858 `braceex', `braceleftex', `bracerightex', `bracerighttp',
4859 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4861 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4862 * font/devutf8/NOTES: Updated.
4863 * font/devlj4/generate/special.map: Add glyph `braceex'.
4864 * font/devlj4/S: Regenerated.
4866 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4868 2002-11-14 Werner LEMBERG <wl@gnu.org>
4870 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4873 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4875 * doc/texinfo.tex: New version from texinfo 4.3.
4876 * doc/groff.texinfo: Updated for texinfo 4.3.
4877 Use @tie{} where appropriate.
4878 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4879 * font/devdvi/generate/tc.map: Remove `rn'.
4880 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4881 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4883 * font/devX100/*, font/devX100-12/*, font/devX75/*,
4884 font/devX75-12/*: Regenerated.
4886 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4887 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4888 Improve definition of `an'.
4889 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4891 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4892 * tmac/X.tmac: Add definition for `or'.
4893 * tmac/Xps.tmac: Undo change 2002-11-05.
4894 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4896 2002-11-11 Werner LEMBERG <wl@gnu.org>
4898 * src/roff/troff/node.cc (troff_output_file::put_char): Always
4901 2002-11-10 Werner LEMBERG <wl@gnu.org>
4903 Added three new requests `schar', `fschar', and `rfschar'. `schar'
4904 defines a glyph which is searched after the check for fonts declared
4905 with `.special' (and before the check for all mounted special
4906 fonts). `fschar' defines a glyph for a particular font which is
4907 searched after the check for fonts declared with `.fspecial' (and
4908 before the check for fonts declared with `.special'). `rfschar'
4909 removes glyphs defined with `fschar'.
4911 * src/roff/troff/token.h (char_mode): New enum.
4912 Declare do_define_character.
4913 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4915 (charinfo::is_fallback): Updated.
4916 (charinfo::is_special): New method.
4917 * src/roff/troff/input.cc (do_define_character): Add and use
4918 optional second parameter used as a prefix for font-specific glyph
4920 (define_character, define_fallback_character): Updated.
4921 (define_special_character): New function.
4922 (init_input_requests): Add `schar'.
4923 (charinfo::charinfo, charinfo::set_macro): Updated.
4924 * src/roff/troff/node.cc: Include `stringclass.h'.
4925 (make_glyph_node): Handle special glyphs defined with `.schar' and
4927 (define_font_special_character, remove_font_special_character): New
4929 (init_node_requests): Sorted.
4930 Add `fschar' and `rfschar'.
4931 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4932 Document new requests.
4934 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4935 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4937 2002-11-08 Werner LEMBERG <wl@gnu.org>
4939 Added new font `SC' (cmtex10) to devdvi.
4941 * devdvi/generate/Makefile (FONTS): Add `SC'.
4943 * devdvi/generate/textex.map: New map file for cmtex.
4945 * devdvi/Makefile.sub (DEVFILES): Updated.
4946 * tmac/dvi.tmac: Add fspecial entries for SC.
4947 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
4948 found before `S' since the font position of `SC' is lower due to the
4949 gaps in DESC's `font' line.
4950 * tmac/ec.tmac: Add a `special' call.
4953 * font/devhtml/R.proto: Remove double entry for `ti'.
4954 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4955 * tmac/tty-char.tmac: Remove entry for `bq'.
4956 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4957 * tmac/ec.tmac: Don't remove `aq' glyph.
4958 * tmac/X.tmac: Fix entry for `em'.
4959 Add entries for `fo' and `fc'.
4960 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4962 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4963 documentation of `special' and `fspecial' requests.
4965 2002-11-05 Werner LEMBERG <wl@gnu.org>
4967 * font/devascii/R.proto, font/devcp1047/R.proto,
4968 font/devlatin1/R.proto: Remove entry for `.i'.
4969 * font/devdvi/generate/textt.map: Add entry for `ad'.
4970 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4971 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4972 We need this for getting kerning values to compose `/l' and `/L'.
4973 * font/devdvi: Regenerated font definition files for CM fonts.
4974 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4975 * font/devutf8/R.proto: Ditto.
4976 Remove double entry for `ti'.
4978 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4979 for (groff) ligatures, `la', and `ra'.
4980 Add "'C", "'c", `IJ', and `ij'.
4981 Remove double entry for `ti'.
4982 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4984 Add "'C", "'c", `IJ', and `ij'.
4985 Fix entries for (groff) ligatures, `la', and `ra'.
4987 * tmac/ps.tmac (ps-achar): New macro.
4988 Define "'c" and "'C".
4989 * tmac/tty.tmac: Add entry for `.i'.
4990 * tmac/X.tmac (X-achar): New macro.
4991 Define "'c", "'C", and `:Y'.
4992 Add entries for `IJ' and `ij'.
4993 * tmac/Xps.tmac (Xps-achar): New macro.
4994 Define "'c" and "'C".
4995 Add entries for `IJ' and `ij'.
4996 * tmac/lbp.tmac (lbp-achar): New macro.
4997 Add fallback characters for all groff ligatures and many other
4999 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
5000 Add entries for `/l' and `/L'.
5001 Define "'c" and "'C".
5002 Add entries for `IJ' and `ij'.
5004 2002-11-02 Larry Kollar <kollar@alltel.net>
5006 * PROBLEMS: Document how to solve Mac OS X compilation problems.
5008 2002-11-02 Werner LEMBERG <wl@gnu.org>
5010 Adding support for composite glyphs: \[xxx yyy ...] and the
5011 `composite' request.
5013 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
5014 to Unicode-based glyph names.
5015 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
5016 glyph names to groff glyph names.
5017 * src/roff/troff/uniuni.cc: New file for canonically decomposing
5018 Unicode-based glyph names.
5019 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
5020 for handling Unicode glyph names.
5021 * src/roff/troff/input.cc: Include unicode.h.
5022 (composite_glyph_name): New function.
5023 (token::next) <'['>: Handle Unicode glyph names and composite
5025 (composite_dictionary): New dictionary for the `composite' request.
5026 (composite_request): Implement `composite' request.
5027 (init_input_requests): Add `composite'.
5028 Alphabetically sorted.
5029 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
5031 (init_env_requests): Alphabetically sorted.
5032 Removed `tas' and `tar' (already commented out).
5033 * src/roff/troff/Makefile.sub: Updated.
5035 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
5037 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
5040 2002-10-29 Werner LEMBERG <wl@gnu.org>
5042 Fix computation of .trunc register. Additionally, its value (and
5043 the value of the .ne register) is now always set before entering the
5046 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
5047 `needed_space' before calling `space'.
5048 (top_level_diversion::space): Remove special code for 'sp before the
5050 Call `begin_page' with the discarded space as a parameter.
5051 (top_level_diversion::begin_page): Add optional parameter to set
5053 * src/roff/troff/div.h: Updated.
5055 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
5058 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
5059 (LP): Remove superfluous call to `br'.
5060 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
5061 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5063 2002-10-26 Werner LEMBERG <wl@gnu.org>
5065 * tmac/doc-ditroff: Remove useless switch/variable -rC.
5066 (doc-setup-header): Don't set page register `%'.
5067 * tmac/doc-nroff: Remove variable `C'.
5068 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
5069 (doc-setup-header): Don't set page register `%'.
5071 * tmac/doc-common (doc-header): Call `ns'.
5072 (doc-paragraph): Protect .sp with .br so that it survives traps
5073 possibly set by the user.
5074 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
5076 * tmac/doc*: Replace ' with . for consistency if no effect.
5078 2002-10-26 Werner LEMBERG <wl@gnu.org>
5080 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
5081 so that it survives traps possibly set by the user.
5083 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
5084 (troff_output_file::set_font): Call flush_tbuf if necessary.
5085 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
5086 flush_tbuf and do_motion only if necessary.
5087 (troff_output_file::start_special,
5088 troff_output_file::put_char_width, troff_output_file::put_char,
5089 troff_output_file::draw): Updated.
5090 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5091 vmotion_node::tprint): Undo change 2002-10-23.
5093 2002-10-25 Werner LEMBERG <wl@gnu.org>
5095 * tmac/www.tmac (DC): Fix case of overlapping images.
5097 2002-10-23 Werner LEMBERG <wl@gnu.org>
5099 * src/roff/troff/node.cc (troff_output_file::fill_color,
5100 troff_output_file::glyph_color): Set current color before testing
5102 (troff_output_file::put_char_width, troff_output_file::put_char,
5103 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
5105 (troff_output_file::file_color, troff_output_file::glyph_color):
5107 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5108 vmotion_node::tprint): Move first, then call fill_color.
5110 2002-10-20 Werner LEMBERG <wl@gnu.org>
5112 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
5113 possible to use multiple main macro packages.
5115 2002-10-19 Werner LEMBERG <wl@gnu.org>
5117 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
5118 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
5119 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
5121 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
5122 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
5124 2002-10-16 Werner LEMBERG <wl@gnu.org>
5126 * NEWS, doc/webpage.ms: Updated.
5128 2002-10-14 Werner LEMBERG <wl@gnu.org>
5130 * src/roff/troff/node.cc (troff_output_file::put_char_width,
5131 troff_output_file::put_char, troff_output_file::fill_color,
5132 troff_output_file::glyph_color): Handle case where color pointer
5135 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
5137 Add the new -r option to grotty. It is similar to the -i option
5138 except it tells grotty(1) to use the "reverse video" attribute to
5139 render italic fonts.
5141 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
5142 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
5143 (tty_printer::make_underline, tty_printer::put_color,
5144 tty_printer::end_page): Use it.
5145 (main): Add -r switch.
5147 * src/devices/grotty/grotty.man: Document it.
5149 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
5151 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5152 cast to `unsigned char' to properly read patterns with 8bit
5155 2002-10-08 Werner LEMBERG <wl@gnu.org>
5157 * REVISION: Increased to 2.
5159 Version 1.18.1 released
5160 =======================
5162 2002-10-08 Werner LEMBERG <wl@gnu.org>
5164 * doc/webpage.ms, NEWS: Updated.
5166 2002-10-07 Werner LEMBERG <wl@gnu.org>
5168 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
5169 suppress additional whitespace after the header.
5171 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
5174 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
5176 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
5178 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
5179 (Dt): Use it to improve language localization (especially Russian
5182 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
5184 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
5185 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
5187 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
5189 Call `picurve' for BSPLINE.
5190 (HGPrintElt): Handle BSPLINE.
5191 * src/preproc/grn/README: Document it.
5193 2002-10-03 Werner LEMBERG <wl@gnu.org>
5195 * src/roff/troff/node.cc (break_char_node::col): New variable.
5196 Updated constructor.
5197 (space_node::tprint, word_space_node::tprint): Call `fill_color'
5199 (space_node::space_node): Remove assertion.
5200 (break_char_node::add_self): Pass color argument to space node.
5201 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
5203 * src/roff/troff/env.cc (environment::do_break,
5204 environment::add_padding): Ditto.
5206 2002-10-02 Werner LEMBERG <wl@gnu.org>
5208 Redesigning color support in troff. Colors are no longer
5209 represented as separate nodes but are now part of glyph nodes and
5210 friends. This fixes the current formatting misbehaviour due to the
5211 changes introduced on 2002-09-20. Some extra code is necessary for
5212 proper grotty support: Without adding color variables to
5213 space-related nodes, the background color would be changed too late.
5215 * src/roff/troff/node.h, src/roff/troff/node.cc:
5216 s/current_pagecolor/current_fill_color/.
5217 s/current_glyphcolor/current_glyph_color/.
5218 (glyph_color_node, fill_color_node): Removed.
5219 (node::get_glyph_color, node::get_fill_color): New virtual member
5221 (space_node::col): New variable.
5222 Updated constructors of space_node and derived classes accordingly.
5223 (hmotion_node::col): New variable.
5224 Updated constructors of hmotion_node and space_char_hmotion_node
5226 (vmotion_node::col): New variable.
5227 Updated constructor accordingly.
5228 (draw_node::gcol, draw_node::fcol): New variables.
5229 Updated constructor accordingly.
5230 (special_node::gcol, special_node::fcol): New variables.
5231 Updated constructors accordingly.
5232 (troff_output_file::put_char, troff_output_file::put_charwidth,
5233 troff_output_file::draw): Set glyph and fill color.
5234 (troff_output_file::start_special): Set glyph and fill color.
5235 Always set current font.
5236 (troff_output_file::fill_color, troff_output_file::glyph_color):
5237 Don't call `do_motion'.
5238 (glyph_node::gcol, glyph_node::fcol): New variables.
5239 Updated constructors of glyph_node and ligature_node accordingly.
5240 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
5242 (glyph_node::merge_glyph_node,
5243 kern_pair_node::add_discretionary_hyphen,
5244 node::add_discretionary_hyphen): Updated.
5245 (break_char_node::merge_self): Updated.
5246 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5247 vmotion_node::tprint): Handle color.
5248 (make_glyph_node, make_node, node::add_char): Updated.
5250 * src/roff/troff/env.cc (environment::space_newline,
5251 environment::space, environment::output_line, environment::do_break,
5252 environment::make_tab_node, environment::add_padding, title):
5254 (environment_switch, environment_copy): Don't add color nodes.
5256 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
5258 (token::next): Updated.
5259 \m and \M now are as transparent as \s.
5260 (process_input_stack, token::add_to_node_list, token::process,
5261 read_draw_node): Updated.
5262 (charinfo_to_node_list): Don't add color nodes.
5264 * doc/groff.texinfo: Updated.
5266 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
5268 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
5271 2002-09-27 Colin Watson <cjwatson@debian.org>
5273 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
5275 2002-09-23 Werner LEMBERG <wl@gnu.org>
5277 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
5279 (DEFAULT_LINEWIDTH_FACTOR): New macro.
5280 (linewidth_factor): New global variable.
5281 (lbp_printer::set_line_thickness): Fix case for size < 0, using
5283 (long_options): Add -w/--linewidth option.
5285 (main): Handle -w option to set linewidth_factor.
5286 (lbp_printer::lbp_printer): Initialize req_linethickness, not
5289 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
5291 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
5293 Fixed a bug in the line thickness setting code.
5295 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
5297 (lbp_printer::set_line_thickness): Pass environment as second
5299 Implement it actually.
5300 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
5301 and `set_line_thickness, depending on the current font size.
5303 2002-09-21 Werner LEMBERG <wl@gnu.org>
5305 Some Debian patches.
5307 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
5308 * src/roff/troff/node.cc (bracket_node::copy): Initialize
5311 2002-09-20 Werner LEMBERG <wl@gnu.org>
5313 * configure: Regenerated with autoconf 2.54.
5315 2002-09-20 Werner LEMBERG <wl@gnu.org>
5317 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
5319 Rename cur_fill_color to fill_color.
5320 * src/roff/troff/env.cc: Updated.
5322 2002-09-20 Werner LEMBERG <wl@gnu.org>
5324 * src/roff/troff/env.cc (title): Copy color status after processing
5326 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
5327 fill color nodes to reset colors properly.
5329 * tmac/www.tmac (DC): Fix color handling.
5331 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
5332 * doc/groff.texinfo: Fixing documentation of `tl' request.
5333 * doc/webpage.ms: Updated.
5335 2002-09-19 Werner LEMBERG <wl@gnu.org>
5337 * src/roff/troff/env.cc (environent_switch, environment_copy):
5338 Emit glyph and fill color nodes to initialize colors properly.
5340 2002-09-17 Colin Watson <cjwatson@debian.org>
5342 * src/roff/troff/env.cc (environment::set_glyph_color,
5343 environment::set_fill_color): Fix typo which prevented \m[] work
5346 2002-09-17 Werner LEMBERG <wl@gnu.org>
5348 Add left and right italic correction to non-slanted PS fonts. This
5349 is an experimental feature to improve image rendering of grohtml.
5351 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
5352 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
5353 * font/devps/*: All non-slanted fonts regenerated.
5356 2002-09-16 Werner LEMBERG <wl@gnu.org>
5358 Add a site-specific font directory.
5360 * Makefile.in (localfontdir, legacyfontdir): New variables.
5361 (fontpath): Use them.
5362 (MDEFINES, uninstall_dirs): Updated.
5363 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
5364 Remove `FONTPATH' and `MACROPATH'.
5366 * src/roff/troff/troff.man, NEWS: Updated.
5367 * doc/groff.texinfo (Font Directories): New section.
5370 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
5371 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
5372 src/preproc/grn/grn.man: Minor fixes.
5374 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
5375 Remove unused variable.
5377 2002-09-11 Werner LEMBERG <wl@gnu.org>
5379 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
5380 * man/groff_out.man: Fix documentation of 'N'.
5382 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
5384 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
5385 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
5387 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
5388 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5389 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5390 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5391 PRE_TAG>: Call `begin' with `FALSE'.
5393 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5395 * src/libs/libgroff/string.cc (string::extract): Fix position of
5396 terminating null byte.
5398 2002-09-08 Werner LEMBERG <wl@gnu.org>
5400 Add global option `nospaces' to tbl so that leading and trailing
5401 spaces in data items are ignored.
5403 * src/libs/libgroff/string.cc (string::remove_spaces): New member
5404 function to remove leading and trailing spaces.
5405 * src/include/stringclass.h: Updated.
5407 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5409 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5411 Fix typo in error messages.
5412 (process_data): Implement `nospaces' option.
5413 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5415 2002-09-07 Werner LEMBERG <wl@gnu.org>
5417 * src/include/config.hin: Add `HAVE_ISATTY'.
5418 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5420 * src/libs/libgroff/tmpname.cc: Include `time.h'.
5421 * src/libs/libdriver/input.cc (Char): Add `operator==' and
5422 `operator!=' for `char'.
5423 * doc/groff.texinfo: Replace @ifnottex block for top node with
5426 2002-09-06 Werner LEMBERG <wl@gnu.org>
5428 * doc/Makefile.in (.texinfo.html): Add -I switch.
5429 * doc/groff.texinfo: Add @ifnottex block for top node to make
5430 translation to HTML work.
5432 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
5434 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5435 (get_papersize, determine_vertical_offset): Removed.
5436 (char_buffer::do_image): Always specify letter size.
5438 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5441 2002-09-05 Werner LEMBERG <wl@gnu.org>
5443 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5444 default indentation.
5446 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
5448 * src/preproc/html/pre-html.cc (imageList::createPage): Use
5450 (generateImages): Clean up push-back buffer.
5452 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5454 * doc/groff.texinfo: Minor fixes.
5456 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5458 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5459 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5461 (determine_vertical_offset): Use LETTER_LENGTH.
5462 (createPage): Moved to ...
5463 (imageList::createPage): This.
5464 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5465 (imageList::getMaxX): New function.
5466 (createImage): Moved to ...
5467 (imageList::createImage): This.
5468 (imageList::createImages): New function.
5469 (generateImages): Read `maxx' directly.
5471 (scanArguments): Don't specify `gsPaper' for `-o'.
5472 (makeTempFiles): Call `xtmpfile' with the last argument set to
5475 2002-08-24 Werner LEMBERG <wl@gnu.org>
5477 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5478 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5479 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5480 * src/preproc/html/pushback.cc: Include nonposix.h.
5481 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5484 2002-08-23 Werner LEMBERG <wl@gnu.org>
5486 Use $(OBJEXT) for the object file extension.
5488 * Makefile.comm (.SUFFIXES): Add .obj.
5489 (.cc.obj, .c.obj): New implicit rules.
5490 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5491 (MDEFINES): Add EXEEXT and OBJEXT.
5492 * */Makefile.sub: s/.o/.$(OBJEXT)/.
5494 2002-08-22 Werner LEMBERG <wl@gnu.org>
5496 * INSTALL: Mention texinfo 4.2 as a prerequisite.
5498 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
5500 * src/devices/grohtml/post-html.cc (colType): Make enum global to
5502 (html_printer::update_min_max, html_printer::add_table_end): New
5504 (html_printer::lookahead_for_tables): Use them.
5505 Reset page offset correctly.
5506 (html_printer::~html_printer): Add creation of creator comment up.
5508 2002-08-20 Werner LEMBERG <wl@gnu.org>
5510 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5511 * man/groff_tmac.man: Fix typos.
5512 * man/groff_font.man: Minor reordering.
5513 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5515 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5517 Avoid endless loops while scanning for tables.
5519 * src/devices/grohtml/post-html.cc (list::insert): Set
5521 (html_printer::next_horiz_pos): Add `text_glob' argument; update
5523 Return immediately if that argument is NULL.
5524 (html_printer::calc_nf): Don't test if `g' is NULL.
5525 (html_printer::lookahead_for_tables): Use
5526 `glyphs.move_right_get_data'.
5527 Don't test if `g' is NULL.
5529 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
5531 A better fix, replacing fix 2002-08-15, for increasing SIZE.
5533 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5535 (char_block::char_block): Allocate `buffer'.
5536 (char_buffer::add_string): Use it.
5538 2002-08-15 Werner LEMBERG <wl@gnu.org>
5540 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5541 src/devices/grodvi/grodvi.man: Document default line thickness.
5543 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
5545 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5548 2002-08-14 Werner LEMBERG <wl@gnu.org>
5550 * doc/webpage.ms: Updated.
5552 2002-08-09 Werner LEMBERG <wl@gnu.org>
5554 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5557 2002-08-08 Aaron Campbell <aaron@monkey.org>
5559 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5562 2002-08-08 Werner LEMBERG <wl@gnu.org>
5564 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5567 Don't push back a space but a newline onto the stack.
5569 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
5571 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5574 * src/devices/grohtml/post-html.cc (html_printer::end_font,
5575 html_printer::start_font): Handle them.
5576 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5578 (html_text::do_bold): Don't reset italic and tt.
5579 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5580 * font/devhtml/DESC.proto: Add those fonts.
5581 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5583 2002-08-07 Werner LEMBERG <wl@gnu.org>
5585 * MORE.STUFF: Added gpresent.
5587 * tmac/trace.tmac: Show nesting level by a corresponding amount of
5588 whitespace before printing the logging message.
5590 2002-07-31 Colin Watson <cjwatson@debian.org>
5592 * src/devices/grohtml/html-table.cc (html_table::finish_row):
5593 Initialize `n' to zero. This fixes a segfault on ARM.
5595 2002-07-30 Werner LEMBERG <wl@gnu.org>
5597 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5599 2002-07-29 Werner LEMBERG <wl@gnu.org>
5601 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5604 2002-07-28 Colin Watson <cjwatson@debian.org>
5606 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5608 (html_printer::html_printer): Initialize `pointsize'.
5610 2002-07-26 Werner LEMBERG <wl@gnu.org>
5612 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5614 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5615 (gnu.eps): Add -rle switch to pnmtops.
5616 (distfiles): Add gnu.eps and gnu.png.
5618 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
5620 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5623 2002-07-24 Werner LEMBERG <wl@gnu.org>
5625 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5626 ' \+' but ' *' for sed.
5627 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5629 2002-07-23 Werner LEMBERG <wl@gnu.org>
5631 * doc/groff.texinfo: Document `papersize' keyword.
5632 * NEWS, man/groff_font.man: Updated.
5634 2002-07-23 Colin Watson <cjwatson@debian.org>
5636 Extend papersize keyword to accept more than a single entry. The
5637 first valid will be used.
5639 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5640 (font::scan_papersize): Really skip final newline.
5641 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5643 2002-07-23 Werner LEMBERG <wl@gnu.org>
5645 * configure.ac: Test for isatty.
5646 * configure: Regenerated.
5647 * src/include/posix.h: Check HAVE_ISATTY.
5648 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5649 * src/utils/lookbib/lookbib.cc: Include posix.h.
5650 Don't declare isatty.
5652 2002-07-21 Werner LEMBERG <wl@gnu.org>
5654 * NEWS: Add `output' request.
5656 * REVISION: Increased to 1.
5658 Version 1.18.0 released
5659 =======================
5661 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
5663 Allow internal glyph indices > 0xFF in grohtml for input characters.
5665 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5667 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5668 Updated all callers.
5669 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5670 (html_printer): Updated.
5672 2002-07-19 Werner LEMBERG <wl@gnu.org>
5674 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5675 * font/devutf8/R.proto: Adding some missing glyphs.
5676 * font/devutf8/NOTES: Updated.
5678 * tmac/dvi.tmac: Add more composite glyphs.
5679 * tmac/html.tmac: Updated.
5681 * man/groff_char.man: Add `sum' and `product' entities.
5685 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
5687 Improved table, tab, and indenting support.
5689 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5690 string_iterator::suppress_newline_flag): Removed. Updated all
5691 function which have used it.
5693 * src/roff/troff/env.cc: Include `input.h'.
5694 (environment::add_node): Accept 0 as parameter.
5695 (environment::add_html_tag): Add `force' parameter.
5696 Updated all callers.
5697 (environment::add_html_tag_tabs): Ditto.
5698 For the moment, support left-aligned tabs only.
5699 (environment::make_html_tag): New function.
5700 (fill, no_fill): Set .br html tag additionally.
5701 (environment::newline): Emit `eol.ce' or `eol' tag for html.
5702 (environment::add_html_tag_eol): Removed.
5703 (tab_stops::distance_to_next_tab): Add variant for handling
5705 (environment::distance_to_next_tab): Ditto.
5706 Updated all callers.
5707 (environment::handle_tab): Handle tabs for html.
5709 * src/roff/troff/env.h: Updated.
5711 * src/roff/troff/div.cc: Updated all callers of
5712 `environment::add_html_tag'.
5714 * src/devices/grohtml/html-table.cc,
5715 src/devices/grohtml/html-table.h: New files.
5717 * src/devices/grohtml/html-text.cc (html_text): New members
5718 `blank_para' and `start_space'.
5719 (html_text::issue_tag): Don't emit TABLE_TAG.
5720 Handle indentation for PRE_TAG and P_TAG.
5721 (html_text::end_tag): Updated.
5722 (html_text::table_is_void, html_text::issue_table_begin,
5723 html_text::issue_table_end): Removed.
5724 (html_text::do_push): Simplified.
5725 [DEBUGGING]: Small fix.
5726 (html_text::push_para): Add new parameter for indentation; updated
5729 (html_text::do_indent, html_text::do_table, html_text::done_table,
5730 html_text::is_in_table): Removed.
5731 (html_text::do_pre): Handle P_TAG also.
5732 (html_text::shutdown): Handle p->indent.
5733 (html_text::check_emit_text): Simplified.
5734 (html_text::do_emittext): Reset `blank_para'.
5735 (html_text::do_para): Add new parameter for indentation; updated
5737 (html_text::remove_indent): New function.
5738 (html_text::do_space): Handle verbatim text properly.
5739 (html_text::ever_emitted_text, html_text::starts_with_space,
5740 html_text::remove_para_align): New functions.
5741 (html_text::dump_stack_element, html_text::dump_stack): Updated.
5743 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5746 * src/devices/grohtml/post-html.cc: Include html-table.h.
5747 (INDENTATION): Removed.
5748 (text_glob): Added many `is_<foo>' functions.
5749 Added table description `tab'.
5750 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5752 (list): Add `insert' and `move_to' member functions.
5753 (page): Add `insert_tag' member function.
5754 (page::dump_page) [DEBUG_TABLES]: Improved.
5755 (html_printer): Add `table' and `max_linelength' elements.
5756 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5757 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5758 `remove_tabs', `remove_courier_tabs'.
5759 (html_printer::emit_raw): Handle indentation.
5760 (html_printer::do_center, html_printer::write_header): Updated.
5761 (html_printer::is_courier_until_eol): Check for tag.
5762 (html_printer::do_linelength): Handle max_linelength.
5763 (html_printer::do_page_offset, html_printer::do_indentation): Handle
5765 (html_printer::do_tempindent): Updated.
5766 (html_printer::do_indentedparagraph): Removed.
5767 (html_printer::do_indent): Simplified.
5768 (html_printer::do_eol): Use `ever_emitted_text'.
5769 (html_printer::do_flush, html_printer::do_links): Don't call
5771 (html_printer::do_break): Handle end_tempindent.
5772 (html_printer::troff_tag): Get argument.
5774 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5775 (html_printer::flush_page): Call `lookahead_for_tables'.
5776 Don't call `done_table'.
5777 (html_printer::add_to_sbuf): Always call do_indent.
5779 * src/devices/grohtml/Makefile.sub: Updated.
5781 * tmac/an-old.tmac (TP): Don't handle html device specially.
5782 (an-do-tag-html): New function which will be used instead of
5783 `an-do-tag' if html device is used.
5785 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5787 * tmac/s.tmac (@IP): Don't handle html device specially.
5788 (@IP-html): New function which will be used instead of `@IP' if
5789 html device is used.
5791 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5792 is a hack which will eventually vanish again.
5793 (PIMG): Handle `-C' option correctly if not html.
5796 2002-07-17 Werner LEMBERG <wl@gnu.org>
5798 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5800 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
5802 * contrib/pic2graph/pic2graph.*: Use convert(1).
5803 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5805 2002-07-14 Bernd Warken <bwarken@mayn.de>
5807 * tmac/groff_trace.man: New file.
5808 * tmac/Makefile.sub: Updated.
5811 2002-07-13 Werner LEMBERG <wl@gnu.org>
5813 * src/roff/groff/groff.man: Add some cross references.
5815 2002-07-12 Werner LEMBERG <wl@gnu.org>
5817 * src/roff/troff/input.cc (substring_request): Add warnings for
5818 string indices out of range.
5820 2002-07-11 Werner LEMBERG <wl@gnu.org>
5822 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5823 * font/devdvi/*EC: Regenerated.
5825 2002-07-10 Bernd Warken <bwarken@mayn.de>
5827 * man/groff_char.man: Updated and extended.
5829 2002-07-10 Werner LEMBERG <wl@gnu.org>
5831 * src/roff/troff/input.cc (length_macro): Renamed to...
5832 (length_request): This.
5833 Move call of `tok.next()' to the very end, otherwise the register
5834 value hasn't been updated yet.
5835 (init_input_requests): Updated.
5837 2002-07-09 Werner LEMBERG <wl@gnu.org>
5839 * src/roff/troff/input.cc (substring_macro): Renamed to...
5840 (substring_request): This.
5841 (init_input_requests): Updated.
5842 * src/roff/troff/request.h: Updated.
5844 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
5846 * src/roff/grog/grog.sh: Fix typo.
5848 2002-07-08 Werner LEMBERG <wl@gnu.org>
5850 * win32-diffs: Updated.
5852 Handle `papersize' keyword properly in DESC.
5854 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5856 Updated all callers.
5857 * src/libs/libgroff/paper.cc: Add four more paper formats used by
5859 * src/include/paper.h: Updated.
5861 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5862 Other minor C syntax fixes.
5863 (papersize, paperlength, paperwidth): Renamed to `user_*'.
5864 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5866 (lbp_printer::lbp_printer): Pass three arguments.
5867 Set paper dimensions properly.
5868 (make_printer, main): Updated.
5869 (handle_unknown_desc_command): Fix error messages.
5870 (main): Handle papersize keyword in DESC properly.
5872 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5874 (lbp_printer::lbp_printer): Pass an argument.
5875 Set paper_size properly.
5876 (handle_unknown_desc_command): Removed.
5877 (make_printer, main): Updated.
5878 * src/devices/grolj4/grolj4.man: Minor documentation fix.
5880 * man/groff_font.man, NEWS: Updated.
5882 2002-07-07 Werner LEMBERG <wl@gnu.org>
5884 Integrated eqn2graph, contributed by Eric S. Raymond.
5886 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5888 * Makefile.in, NEWS: Updated.
5890 2002-06-04 Werner LEMBERG <wl@gnu.org>
5892 Changing the substring request to make it fit better with other
5893 string manipulation functions in other programming languages:
5894 Index 0 is now the first character in the string, and index -1
5895 indicates the last character. Since this request didn't work
5896 properly anyway in the last release, it doesn't harm too much to
5899 * src/roff/troff/input.cc (substring_macro): Use loops to get
5900 the real string length (ignoring COMPATIBLE_SAVE and
5901 COMPATIBLE_RESTORE) and offsets.
5902 Implement change described above.
5904 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5905 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5907 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5909 2002-06-03 Werner LEMBERG <wl@gnu.org>
5911 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
5912 COMPATIBLE_RESTORE are completely ignored.
5914 * src/roff/troff/input.cc (char_list::set, char_list::get): New
5916 (macro): `length' field renamed to `len'.
5917 Added new field `empty_macro' (1 if macro is empty), to be used
5918 instead of checking `len'.
5919 Updated all callers.
5920 (macro::empty): Updated.
5921 (macro::length, macro::set, macro::get): New functions.
5922 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5924 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5925 COMPATIBLE_RESTORE pairs.
5926 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5927 * src/roff/troff/request.h: Updated.
5929 * doc/groff.texinfo: Document .chop's behaviour better.
5931 2002-06-02 Werner LEMBERG <wl@gnu.org>
5933 * doc/pic.ms: Fix documentation for the addition of positions.
5935 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5937 2002-06-29 Werner LEMBERG <wl@gnu.org>
5939 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5941 * src/roff/troff/input.cc (have_string_arg): New global variable.
5942 (read_mode): New enumeration.
5943 (read_escape_name): Use it. Update all calls.
5944 (read_long_escape_name): Use it. Update all calls.
5945 Set have_string_arg if appropriate.
5946 (get_char_for_escape_name): Add parameter for handling space
5948 (interpolate_string_with_args, decode_string_args): New functions.
5949 (get_copy, token::next): Call it if necessary.
5950 (interpolate_string): Fix error message.
5952 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5955 2002-06-24 Bernd Warken <bwarken@mayn.de>
5957 * man/groff_tmac.man: Updated and extended.
5959 2002-06-24 Werner LEMBERG <wl@gnu.org>
5961 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5963 2002-06-23 Werner LEMBERG <wl@gnu.org>
5965 * doc/pic.ms: Improve documentation of composite block objects.
5967 2002-06-22 Werner LEMBERG <wl@gnu.org>
5969 * src/roff/troff/input.cc (init_registers): Add three registers
5970 `seconds', `minutes', and `hours' to hold the current time.
5972 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5975 2002-06-20 Werner LEMBERG <wl@gnu.org>
5977 Make \X accept both `\ ' and `\~', converting them to single space
5980 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5981 (token::unstretchable_space): New inline function.
5982 * src/roff/troff/input.cc (token::next, token::delimiter,
5983 token::description, token::add_to_node_list, token::process): Handle
5984 TOKEN_UNSTRETCHABLE_NODE.
5985 (encode_char): Handle tok.stretchable_space and
5986 tok.unstretchable_space.
5988 * NEWS, doc/groff.texinfo: Document it..
5990 2002-06-19 Werner LEMBERG <wl@gnu.org>
5992 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5994 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5995 keyword to enable/disable SGR output.
5996 (tty_printer::change_fill_color): New function.
5997 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5999 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
6002 2002-06-18 Werner LEMBERG <wl@gnu.org>
6004 Add a `color' request and a `.color' register to control usage of
6007 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
6008 (color_flag): This (which is the inverse).
6009 (activate_color): New function.
6010 (main, init_input_requests): Updated.
6011 * src/roff/troff/troff.h, src/roff/troff/node.cc
6012 (troff_output_file::fill_color, troff_output_file::glyph_color):
6015 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6016 Document the changes.
6018 2002-06-17 Colin Watson <cjwatson@debian.org>
6020 Circumvent bug in autoconf 2.53 regarding top_builddir.
6022 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
6023 * Makefile.in, doc/Makefile.in:
6024 s/@top_builddir@/@groff_top_builddir@/.
6025 * configure: Regenerated (with autoconf 2.53).
6027 2002-06-17 Werner LEMBERG <wl@gnu.org>
6029 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
6030 `paperwidth' and `paperlength' for the `papersize' keyword.
6032 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
6034 * src/devices/grops/grops.man: Add info about Type 42 fonts.
6036 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
6038 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
6039 html_printer::do_linelength, html_printer::do_pageoffset,
6040 html_printer::do_indentation, html_printer::do_tempindent,
6041 html_printer::do_break, html_printer::begin_page): Clear indented
6043 * tmac/html.tmac: Disable hyphenation.
6045 2002-06-15 Werner LEMBERG <wl@gnu.org>
6047 Don't produce HTML files if utility programs are missing.
6049 * Makefile.in (make_html, make_install_html): New variables.
6050 (MDEFINES): Updated.
6052 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
6054 * configure.ac: Use it.
6055 * configure: Regenerated.
6057 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
6058 (HTMLEXAMPLESFILES): This new variable.
6059 (EXAMPLESIMAGEFILES): Renamed to...
6060 (HTMLEXAMPLEIMAGEFILES): This.
6061 (CLEANADD): Add HTMLEXAMPLEFILES.
6062 (all): Use `make_html'.
6064 (install_data): Use `make_install_html'.
6065 Move html stuff to...
6066 (install_html): This new target.
6067 (uninstall_sub): Updated.
6069 2002-06-14 Bernd Warken <bwarken@mayn.de>
6071 * src/roff/grog/Makefile.sub (grog): Renamed to...
6073 (grog): New rule to always install grog.sh as grog.
6075 2002-06-08 Bernd Warken <bwarken@mayn.de>
6077 * src/roff/grog/grog.pl: Fix typo.
6079 2002-06-07 Werner LEMBERG <wl@gnu.org>
6081 * doc/groff.texinfo: Add more info on .tr arguments.
6083 2002-06-05 Werner LEMBERG <wl@gnu.org>
6085 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
6087 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
6088 * configure: Regenerated.
6090 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6092 * src/roff/troff/symbol.cc (table_sizes): Add more values.
6094 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
6096 2002-06-04 Werner LEMBERG <wl@gnu.org>
6098 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
6099 is not initialized at the time we need it in case `--prefix' hasn't
6100 been set. Check for `ac_default_prefix' also.
6101 Test for `papersize' keyword also and generalize allowed whitespace.
6102 * configure: Regenerated.
6104 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
6107 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
6109 (src_version, src_revision): New variables to avoid overwriting
6110 from parent make process.
6111 (version.cc): Updated.
6113 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
6114 (linebuf, linebufsize): New global variables.
6115 (sys_fatal): Use `fatal' to abort properly.
6116 (get_line): New function.
6117 (get_resolution): Use it.
6118 Improve error messages.
6119 (get_papersize): Check `papersize' also.
6121 Improve error messages.
6123 2002-06-03 Werner LEMBERG <wl@gnu.org>
6125 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
6126 should be removed only if builddir is not srcdir.
6127 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
6128 (clean): Depend on `mostlyclean'.
6129 (distclean): Depend on `clean'.
6130 (realclean, extraclean): Depend on `distclean'.
6131 (.y.cc, .y.o): Simplified. The output files are no longer written
6132 to srcdir but to builddir.
6133 * Makefile.in (MDEFINES): Add `version' and `revision'.
6134 (uninstall_dirs): Fix order of directories.
6135 * doc/Makefile.sub (version, revision): Removed.
6136 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
6137 Added `HTMLDOCFILES'.
6138 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
6139 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
6140 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
6143 * doc/texinfo.tex (\authortt): New macro.
6144 (\shortcontt): Define.
6145 (\titlepage): Set \tt to \authortt while defining \authorfont.
6146 (\appendixbox): New macro.
6147 (\chapmacro, \appendixentry): Use \appendixbox to get even
6148 indentation for letters.
6149 (\summarycontents): Set \tt.
6150 (\internalpagesize): Add two arguments for real paper width and
6151 height as needed by pdfTeX.
6152 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
6154 (\tempdima, \tempdimb): New temporary dimensions.
6155 (\pagesizesyyy): Updated.
6157 2002-06-02 Werner LEMBERG <wl@gnu.org>
6159 Adding a new keyword `papersize' to the DESC file format (similar
6160 but not completely identical to grolbp's extension). grops now has
6161 a -p command line option to override `papersize'. Finally, grolbp
6162 has been adapted to the new syntax.
6164 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
6165 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
6167 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
6168 (CCSRCS): Add `paper.cc'.
6170 * src/include/font.h (font): Add `papersize' element.
6171 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
6172 (font::scan_papersize): New function.
6173 (font::load_desc): Use it for handling `papersize' keyword.
6174 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
6176 * src/devices/grops/ps.cc: Include paper.h.
6177 (user_paper_length): New global variable.
6178 (ps_printer): Use paper length as initializer.
6179 (make_printer): Updated.
6180 (main): Handle new `-p' option.
6181 * src/devices/grops/grops.man: Updated.
6183 * src/devices/grolbp/lbp.cc: Include paper.h.
6184 s/papersizes/lbp_papersizes/.
6185 (set_papersize): Use new `papersizes' array.
6186 (handle_unknown_desc_command): Don't handle `papersize'.
6187 (main): Use `font::scan_papersize' for handling `-p' option.
6188 * src/devices/grolbp/grolbp.man: Updated.
6190 * man/groff_font.man: Document `papersize'.
6193 2002-05-30 Werner LEMBERG <wl@gnu.org>
6195 * src/devices/grops/TODO: Updated.
6196 * src/devices/grops/grops.man: More info on paper formats.
6197 * man/groff_font.man: Document `paperheight' and `paperwidth'.
6199 2002-05-29 Werner LEMBERG <wl@gnu.org>
6201 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
6202 to list only if srcdir != currdir.
6203 (distfiles): New target.
6205 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
6206 (NOMAKEDIRS): New variable.
6209 2002-05-26 Werner LEMBERG <wl@gnu.org>
6211 Add .output request, similar to \! at top-level.
6213 * src/roff/troff/input.cc (transparent): Remove unused declaration.
6214 (output_request): New function.
6215 (init_input_requests): Add it.
6217 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6220 * Makefile.in (MDEFINES): Add INSTALL_INFO.
6221 (prepare_examples): Fix typo.
6222 * doc/groff.texinfo (@direntry): Fix it.
6224 2002-05-25 Werner LEMBERG <wl@gnu.org>
6226 Including the doc subdir into groff's Makefile system.
6228 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
6229 * configure.ac: Use it.
6230 Generate `doc/Makefile'.
6231 * configure: Regenerated.
6233 * Makefile.in (infodir, INSTALL_INFO): New variables.
6234 (MDEFINES, uninstall_dirs): Updated.
6235 (OTHERDIRS): Add `doc'.
6236 * Makefile.comm (CLEANDIRADD): New variable.
6237 (mostlyclean): Use it.
6239 * doc/Makefile.sub, doc/Makefile.in: New files.
6240 * doc/Makefile: Removed.
6242 * NEWS, INSTALL: Updated.
6244 2002-05-24 Werner LEMBERG <wl@gnu.org>
6246 * doc/homepage.ms: Renamed to ...
6247 * doc/webpage.ms: This.
6250 2002-05-23 Werner LEMBERG <wl@gnu.org>
6252 Integrating the `mom' macro package, contributed by Peter Schaffter
6255 * contrib/mom/*: New subdirectory tree.
6256 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
6257 be used for documentation files.
6258 (MDEFINES, uninstall_dirs): Use them.
6259 (OTHERDIRS): Add contrib/mom.
6260 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
6262 * MANIFEST, NEWS: Updated.
6264 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
6266 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
6267 if at outer level; at start-up we are at outer level.
6269 * src/roff/troff/input.cc (do_suppress): Implement it.
6272 Add option -p to show progress information.
6273 pre-grohtml will now render only one page at a time, reducing the
6274 size of needed disk resources enormously.
6276 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
6277 (imagePageName): New global variable.
6278 (psPageName, show_progress, currentPageNo): New global variables.
6279 (html_system): Close saved stderr and stdout handles.
6280 (write_end_image): Accept a parameter to control \O escape.
6281 (write_start_image): Adapted to new \O meaning.
6282 (char_buffer::write_upto_newline): Updated.
6283 (createAllPages): Replaced with...
6284 (createPage): This new function to create a single page for images.
6285 It uses `psselect' from the psutils package.
6286 (removeAllPages): Removed.
6287 (createImage): Updated.
6288 Handle progress display.
6289 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
6290 (scanArguments): Add option -p.
6291 (makeTempFiles): Updated to create temp files for psPageName and
6293 (removeTempFiles): Removed.
6296 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
6297 html_printer::write_header): Append `\0' to `buffer'.
6298 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
6300 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
6301 Handle `text_emitted'.
6302 (html_text::table_is_void): Slightly rewritten.
6303 (stop): New external symbol.
6304 (html_text::do_push) [DEBUGGING]: Use it and simplify.
6305 (html_text::shutdown): Call `dump_stack'.
6306 (html_text::do_space): Rewritten.
6307 * src/devices/grohtml/grohtml.man: Document -p and the need of
6310 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
6312 Call \O[0] if `ps4html' is active.
6313 * tmac/s.tmac (@EQ, @EN): Handle html better.
6315 * tmac/html.tmac: Don't use black for background colour.
6317 * src/roff/troff/node.cc: Include `div.h'.
6318 (troff_output_file::really_print_line): Don't use `is_on'.
6319 (troff_output_file::word_marker, troff_output_file::flush_tbuf
6320 troff_output_file::check_charinfo,
6321 troff_output_file::put_char_width, troff_output_file::put_char,
6322 troff_output_file::determine_line_limits, troff_output_file::draw,
6323 real_output_file::begin_page, glyph_color_node::tprintf,
6324 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
6326 (troff_output_file::really_on): Call `do_motion'.
6327 (suppress_node::tprint): Use `get_page_number' instead of `%'
6329 Call `reset_output_registers' conditionally on `is_on'.
6331 * doc/groff.texinfo: Document new syntax of \O.
6332 * NEWS, man/groff_diff.man: Updated.
6334 2002-05-22 Werner LEMBERG <wl@gnu.org>
6336 * MORE.STUFF: Add info about David Frey's deroff implementation.
6339 2002-05-16 Werner LEMBERG <wl@gnu.org>
6341 Pic's `with' attribute now accepts positions.
6343 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
6344 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
6346 (object_spec): Add rule for `WITH' and `position'.
6347 (relative_path): Give `corner' the precedence of `CHOP'.
6348 * src/preproc/pic/object.h (path): New members `pos' and
6350 * src/preproc/pic/object.cc: Updated initializers of `path'.
6351 (path::follow): Handle `is_position'.
6353 * doc/pic.ms: Completely updated grammar description.
6354 Many typographical improvements.
6356 2002-05-15 Werner LEMBERG <wl@gnu.org>
6358 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
6359 code of x in range 0-127) also.
6360 * doc/groff.texinfo, man/groff_diff.man: Updated.
6362 Added keywords `north', `south', `east', and `west' for corners
6365 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
6367 (yylex): Handle them.
6368 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
6369 (corner): Handle them.
6371 2002-05-14 Werner LEMBERG <wl@gnu.org>
6373 * src/devices/grops/grops.man: Clarify handling of `download' file.
6375 2002-05-11 Werner LEMBERG <wl@gnu.org>
6377 Adding `warnscale' and `spreadwarn' requests, based on a patch from
6378 Jeffrey Friedl <jfriedl@yahoo.com>.
6380 * src/roff/troff/input.cc (spread_limit, warn_scale,
6381 warn_scaling_indicator): New global variables.
6382 (warnscale_request, spreadwarn_requests): New functions.
6383 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
6384 (init_input_requests): Updated.
6385 (error_type): Add `OUTPUT_WARNING'.
6386 (do_error): Handle it.
6387 (output_warning): New warning function which shows output location.
6388 * src/roff/troff/env.h (spread_limit): New external variable.
6389 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6391 (distribute_space): Emit warning if added space is larger than
6393 (environment::possibly_break_line): Emit warning if a line can't
6394 be adjusted on both sides.
6396 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6398 2002-05-08 Werner LEMBERG <wl@gnu.org>
6400 * src/roff/troff/node.cc (special_node::special_node): Use
6401 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
6402 \X''\% crashes, for example.
6404 * doc/groff.texinfo: Document \! and \? used at top-level.
6406 2002-05-06 Werner LEMBERG <wl@gnu.org>
6408 * src/preproc/pic/pic.man: Fix some keyword syntax.
6409 Other minor typographical fixes.
6411 * src/roff/groff/groff.man: Fix typos.
6413 2002-05-04 Werner LEMBERG <wl@gnu.org>
6415 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6416 (ShortOpt[]): This to avoid problems with refer.
6418 * doc/pic.ms: Fix typo.
6419 Fix pic grammar description.
6421 * tmac/an-old.tmac (ne): Use de1, not de.
6423 2002-05-03 Werner LEMBERG <wl@gnu.org>
6425 * doc/groff.texinfo: Finished separation of glyphs and characters.
6426 Don't use the string `Appendix' for appendix headers (both in
6427 the text and the table of contents).
6428 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6431 Use registers LL and LT (similar to -ms) for controlling the
6432 length of title and line, respectively, in the -man and -mdoc
6435 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6436 (doc-setup-page-layout): Use \n[LL] and \n[LT].
6437 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6439 (an-header, an-p-footer): Use \n[LT].
6440 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6441 doc/groff.texinfo: Document it.
6443 2002-05-02 Werner LEMBERG <wl@gnu.org>
6445 * doc/fdl.texi: New file.
6446 * doc/groff.texinfo: Include it.
6447 Define and use @copying.
6448 Starting with separating glyph, symbol, and character.
6450 2002-04-27 Werner LEMBERG <wl@gnu.org>
6452 * Makefile.in (EXEEXT): Set it.
6453 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6456 * src/include/nonposix.h: Define GS_NAME.
6457 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6459 Some preliminary changes for EMX support under OS/2.
6461 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6462 __EMX__ similar to __MSDOS__.
6463 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6465 2002-04-25 Werner LEMBERG <wl@gnu.org>
6467 * doc/groff.texinfo: Integrated groff_out.man.
6470 2002-04-23 Werner LEMBERG <wl@gnu.org>
6472 * man/groff_out.man: Minor fixes.
6474 2002-04-23 Werner LEMBERG <wl@gnu.org>
6476 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6477 correct page references.
6478 Fixed many index entries.
6480 2002-04-23 Bernd Warken <bwarken@mayn.de>
6482 * man/roff.man: Enlarged.
6484 2002-04-22 Werner LEMBERG <wl@gnu.org>
6486 * doc/groff.texinfo: More examples, other fixes.
6488 2002-04-20 Werner LEMBERG <wl@gnu.org>
6490 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6491 will now form a chain, e.g.
6500 This is for compatibility with plan 9's troff.
6502 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6506 * doc/groff.texinfo: Add documentation of remaining requests and
6509 2002-04-19 Werner LEMBERG <wl@gnu.org>
6511 * doc/groff.texinfo: Add documentation of remaining escapes.
6513 * font/devdvi/generate/tc.map: Remove entry for `sr'.
6514 * font/devdvi/*TC: Regenerated.
6516 2002-04-18 Werner LEMBERG <wl@gnu.org>
6518 * src/roff/troff/input.cc (token::next): Make \H behave consistently
6519 if not in compatibility mode, i.e., increment relative to the
6521 * doc/groff.texinfo: Updated accordingly.
6523 2002-04-17 Werner LEMBERG <wl@gnu.org>
6525 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6527 2002-04-16 Bernd Warken <bwarken@mayn.de>
6529 * src/roff/groff/groff.man: Improve documentation of -P option.
6532 2002-04-15 Werner LEMBERG <wl@gnu.org>
6534 Add new escape \F to switch font family.
6536 * src/roff/troff/input.cc (token::next): Handle \F.
6537 * src/roff/troff/env.cc (environment::set_family): Handle
6539 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6542 2002-04-14 Werner LEMBERG <wl@gnu.org>
6544 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6547 2002-04-13 Werner LEMBERG <wl@gnu.org>
6549 Implement \f[] as an alternative to \fP. Change \mP and \MP to
6550 \m[] and \M[], respectively.
6552 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6553 (symbol::symbol): Handle NULL string and empty string differently.
6554 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6555 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6556 Add optional parameter.
6557 Updated calling functions.
6558 (get_copy, do_glyph_color, do_fill_color, token::next): Use
6560 * src/roff/troff/env.cc (environment::set_font): Ditto.
6562 * src/preproc/pic/troff.cc (troff_output::set_fill,
6563 troff_output::reset_color: Updated.
6565 * tmac/www.tmac: Updated.
6567 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6568 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6571 * tmac/Xps.tmac: Remove some redundant code.
6573 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6574 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6575 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6578 2002-04-13 Bernd Warken <bwarken@mayn.de>
6580 * src/include/printer.h, src/libs/libdriver/printer.cc
6581 (printer::change_fill_color): New member function.
6582 * src/libs/libdriver/input.cc (parse_D_command): Use it.
6584 2002-04-12 Werner LEMBERG <wl@gnu.org>
6586 * doc/groff.texinfo: Completed pass on gtroff reference.
6588 2002-04-11 Werner LEMBERG <wl@gnu.org>
6590 * doc/groff.texinfo: More fixes.
6592 2002-04-11 Bernd Warken <bwarken@mayn.de>
6594 * src/include/color.h: Decorate with `const'.
6597 * src/libs/libgroff.color.cc: Decorate with `const'.
6599 (color::color): Initialize members.
6600 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6601 command according to the documentation.
6603 * man/groff_out.man: Updated.
6606 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
6608 * src/preproc/html/pre-html.cc (write_start_image): Remove
6610 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6612 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6613 \C'hy' caused an assertion failure.
6615 * src/roff/troff/env.cc (environment::environment): Initialize
6617 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6619 2002-04-10 Werner LEMBERG <wl@gnu.org>
6621 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6622 Document pvs request and .pvs register.
6624 2002-04-09 Werner LEMBERG <wl@gnu.org>
6626 * doc/groff.texinfo: Improve and fix documentation of diversions
6629 2002-04-08 Werner LEMBERG <wl@gnu.org>
6631 * doc/groff.texinfo: Fix documentation of drawing functions.
6634 2002-04-07 Werner LEMBERG <wl@gnu.org>
6636 * doc/groff.texinfo: Better documentation of double quotes as
6640 2002-04-06 Werner LEMBERG <wl@gnu.org>
6642 * man/groff_font.man: Document names of special characters better.
6643 * doc/groff.texinfo: Minor improvements.
6645 * tmac/lbp.tmac: Load latin1.tmac.
6646 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6648 * font/devX*/*: Regenerated (all chars > 0x80 removed).
6650 2002-04-05 Werner LEMBERG <wl@gnu.org>
6652 * tmac/tty.tmac: Don't use shc request.
6653 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6656 * man/groff_diff.man: Minor fixes.
6658 * font/devlbp/*: Remove all `charXXX' entities.
6660 * src/libs/libgroff/font.cc (font::~font): Deallocate
6661 `special_device_coding'.
6662 (font::load): Use `new' for allocating `special_device_coding'.
6663 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6664 Removed unused member.
6666 2002-04-05 Werner LEMBERG <wl@gnu.org>
6668 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6669 (resource_manager::do_begin_binary,
6670 resource_manager::do_begin_data): Use it.
6672 * doc/texinfo.tex: Updated to version 4.2.
6674 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6675 (token::zero_width_break): New inline function.
6676 * src/roff/troff/input.cc (token::next): Use it.
6677 (token::description): Updated.
6678 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6679 (token::add_to_node_list, token::process): Use it.
6680 * NEWS, doc/groff.texinfo: Updated.
6682 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6683 * tmac/tty.tmac: Add missing backslash.
6685 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
6687 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6688 `.ps' register instead of `.s' to handle fractional point sizes.
6689 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6690 limit_box::output): Ditto.
6691 * src/preproc/eqn/other.cc (size_box::compute_metrics,
6692 size_box::output): Ditto.
6693 * src/preproc/eqn/over.cc (over_box::compute_metrics,
6694 over_box::output): Ditto.
6695 * src/preproc/eqn/script.cc (script_box::compute_metrics,
6696 script_box::output): Ditto.
6697 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6698 sqrt_box::output): Ditto.
6700 2002-04-03 Michael Selway <mas@ssl.co.uk>
6702 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6705 2002-04-03 Werner LEMBERG <wl@gnu.org>
6707 * doc/homepage.ms: Reduce title size.
6708 * doc/groff.texinfo: Fix documentation of .t register.
6709 Fix handling of colon.
6712 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6713 only if page length is positive to avoid a loop.
6715 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6718 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
6720 * src/include/nonposix.h, src/roff/groff/pipeline.c:
6721 s/__CYGWIN32__/__CYGWIN__/.
6723 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
6725 * doc/gnu.xpm: New image contributed by Emily Mulley.
6726 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6727 (homepage.html): Be dependent on gnu.eps.
6728 * doc/homepage.ms: Updated to new image.
6730 * src/devices/grohtml/post-html.cc (html_printer): New member
6732 (html_printer::flush_sbuf, html_printer::set_char): Set it.
6733 (html_printer::sbuf_continuation): Use it.
6735 2002-03-28 Werner LEMBERG <wl@gnu.org>
6737 * src/libs/libgroff/getopt.c: Updated to latest version.
6739 * tmac/README: More on hyphen.tex license.
6741 2002-03-26 Larry Kollar <kollar@alltel.net>
6743 * doc/groff.texinfo: Add documentation of most missing requests.
6745 2002-03-25 Werner LEMBERG <wl@gnu.org>
6747 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6748 of `+-', `mu', and `di', respectively.
6750 * font/devascii/R.proto, font/devutf8/R.proto,
6751 font/devlatin1/R.proto, font/devhtml/R.proto,
6752 font/devcp1047/R.proto, font/devlpb/*: Add them.
6753 * font/devps/generate/textmap: Ditto.
6754 * font/devps/*: Regenerated.
6755 * font/devlj4/generate/text.map: Add them.
6756 * font/devlj4/*: Regenerated.
6757 * font/devdvi/generate/tc.map: Use them.
6758 * font/devdvi/generate/texsy.map: Add them.
6759 * font/devdvi/*: Regenerated.
6760 * font/devX*/*: Regenerated.
6762 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6763 tmac/tty-char.tmac: Updated.
6765 * NEWS, man/groff_char.man: Updated.
6767 2002-03-24 Werner LEMBERG <wl@gnu.org>
6769 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6770 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6771 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6772 we use `.fchar' in dvi.tmac.
6773 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6774 * tmac/Xps.tmac: Simplify some char definitions.
6775 Add definition for \[f/].
6776 * man/groff_char.man: Updated for new X.tmac.
6778 * tmac/README: New file.
6780 2002-03-23 Phil Lobbes <phil@perkpartners.com>
6782 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6783 internal .y.o rule took precendence over the .y.cc rule, compiling
6784 the yacc files with gcc instead of g++.
6786 2002-03-23 Werner LEMBERG <wl@gnu.org>
6788 * tmac/dvi.tmac: Add replacement font for `CB'.
6790 * tmac/doc.tmac: s/request/macro/ in messages.
6791 (doc-generic-macro): Improve error message.
6792 * tmac/groff_mdoc.man: Minor improvements.
6794 2002-03-22 Werner LEMBERG <wl@gnu.org>
6796 * doc/groff.texinfo: Document possible conflict between `tr' and
6799 2002-03-21 Werner LEMBERG <wl@gnu.org>
6801 Improve handling of hyphenation patterns. It is now possible to
6802 use most of TeX's pattern files unmodified. To make the process
6803 more flexible, a new request `hpfcode' has been added which
6804 provides a character code mapping for the `hpf' request. See
6805 comment before hpf_getc() for more details.
6807 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6809 (read_patterns_file): Additional parameter for exception dictionary.
6810 Extended to recognize \pattern, \hyphenation, and \endinput.
6811 (do_hyphenation_patterns_file): Updated.
6812 * src/roff/troff/env.h (hpf_code_table): New extern.
6814 * src/roff/troff/input.cc (hpf_code_table): New array.
6815 (init_hpf_code_table, hyphenation_patterns_file_code): New
6817 (hyphenation_code): Handle translation from `trin' correctly.
6818 (main, init_input_requests): Updated.
6819 (charinfo::set_translation): Handle hyphenation code also.
6821 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6824 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6825 char' is used for offsets in hyphenation exceptions.
6827 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6829 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6831 2002-03-20 Larry Kollar <kollar@alltel.net>
6833 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6836 2002-03-18 Werner LEMBERG <wl@gnu.org>
6838 * tmac/html.tmac: Fix serious typo.
6840 2002-03-17 Larry Kollar <kollar@alltel.net>
6842 * doc/groff.texinfo: Add documentation for `writec' request.
6844 2002-03-17 Werner LEMBERG <wl@gnu.org>
6846 Added request `hpfa' to append hyphenation patterns.
6848 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6850 (hyphenation_patterns_file): Renamed to...
6851 (do_hyphenation_patterns_file): This.
6852 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6854 (init_hyphen_requests): Updated.
6855 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6857 2002-03-16 Werner LEMBERG <wl@gnu.org>
6859 Added request `writec' in analogy to `tmc'.
6861 * src/roff/troff/input.cc (write_request): Renamed to...
6862 (do_write_request): This.
6863 Added one parameter.
6864 (write_request, write_request_continue): New functions.
6865 (init_input_requests): Updated.
6866 * NEWS, man/groff.man, man/groff_diff.man: Document it.
6868 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6870 * NEWS: Document it.
6872 2002-03-15 Werner LEMBERG <wl@gnu.org>
6874 * man/groff.man: Add writem request.
6876 Add request `trin' (translate input) to make `.asciify' work
6877 correctly. This is necessary since `charXXX' entity names are no
6878 longer hardcoded in font definition files.
6880 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6881 `translate_input' members.
6882 (charinfo::set_asciify_code, charinfo::get_asciify_code,
6883 charinfo::set_translation_input): New methods.
6884 (charinfo::set_translation): Add third argument.
6885 * src/roff/troff/input.cc (charinfo:set_translation): Set
6887 (do_translate): Add second argument.
6888 (translate_input): New function.
6889 (init_input_requests): Updated.
6890 * src/roff/troff/node.cc (glyph_node::asciify,
6891 composite_node::asciify): Use `get_asciify_code'.
6893 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6895 * NEWS, man/groff.man, man/groff_diff.man: Updated.
6897 2002-03-14 Larry Kollar <kollar@alltel.net>
6899 * doc/groff.texinfo: Improve documentation of .RS and .RE.
6901 2002-03-14 Werner LEMBERG <wl@gnu.org>
6903 Add a new request `sizes' similar to the `sizes' command in DESC
6906 * src/roff/troff/env.cc (override_sizes): New function.
6907 (init_env_requests): Use it.
6908 * src/roff/troff/token.h: Export `read_string'.
6909 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6911 2002-03-12 Werner LEMBERG <wl@gnu.org>
6913 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6915 2002-03-10 Werner LEMBERG <wl@gnu.org>
6917 * tmac/pspic.tmac: Add support for -Tdvi.
6918 * tmac/dvi.tmac: Include pspic.tmac.
6919 * src/devices/grodvi/grodvi.man: Document it.
6922 * font/devlj4/generate/Makefile: Fix URL of metric files.
6924 2002-03-09 Werner LEMBERG <wl@gnu.org>
6926 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6928 2002-03-09 Larry Kollar <kollar@alltel.net>
6930 * tmac/groff_ms.man: Add documentation for RS and RE macros.
6932 2002-03-08 Werner LEMBERG <wl@gnu.org>
6934 * doc/groff.texinfo: Fixes for texinfo 4.1.
6936 2002-03-07 Werner LEMBERG <wl@gnu.org>
6938 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6940 Handle CYGWIN properly.
6942 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
6944 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6945 * tmac/lbp.tmac: Add some font translations.
6947 2002-03-02 Werner LEMBERG <wl@gnu.org>
6949 * font/devcp1047/R.proto, font/devlatin1/R.proto,
6950 font/devhtml/R.proto: Remove `charXXX' entries.
6951 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6954 * font/devlj4/generate/text.map: Remove `charXXX' entries.
6955 * font/devlj4/*: Regenerated all font definition files.
6956 * tmac/lj4.tmac: Load latin1.tmac.
6958 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6959 from 2000-06-17: LJ4 metric files are *not* text files.
6961 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6962 register to test for EBCDIC.
6964 2002-03-01 Werner LEMBERG <wl@gnu.org>
6966 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6967 files (as grops already does).
6968 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6970 * src/devices/grops/grops.man: Document comment lines in encoding
6973 * tmac/cp1047.tmac: New file.
6974 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6975 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6976 * tmac/Makefile.sub (NORMALFILES): Updated.
6978 * tmac/ec.tmac: Don't load latin1.tmac again.
6980 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6981 font/devps/generate/dingbats.map,
6982 font/devps/generate/dingbats.rmap, font/devps/text.enc,
6983 font/devps/generate/Makefile (symbolmap): Add header comment.
6984 * font/devps/generate/textmap: Ditto.
6985 Remove `charXXX' entries.
6986 * font/devps/symbolmap: Regenerated.
6987 * font/devps/*: Regenerated all font definition files.
6989 2002-02-28 Werner LEMBERG <wl@gnu.org>
6991 Add color support to grodvi (for drawing colors are currently
6992 translated to gray values).
6994 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6995 (dvi_printer): Add `cur_color' member.
6996 (dvi_printer::set_color): New function.
6997 (draw_dvi_printer): Remove `fill'.
6998 (draw_dvi_printer::fill_next): Pass environment as parameter.
6999 Update code for new color support translated to gray.
7000 (dvi_printer::set_char): Updated.
7001 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
7002 changes crossing the page border.
7003 (dvi_printer::draw): Updated.
7004 Remove cases `f' and `F'.
7005 * tmac/dvi.tmac: Add color definitions.
7006 * NEWS, src/devices/grodvi/grodvi.man: Updated.
7008 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
7011 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
7012 versions of autoconf.
7013 * configure: Updated.
7015 * doc/homepage.ms: Use `.blm'.
7016 * tmac/www.tmac (www-depth): New auxiliary variable.
7017 (www-pop-level): Don't issue HTML tag.
7018 (ULS, ULE, LI): Use absolute indentation.
7020 * src/devices/grops/ps.cc (ps_printer::begin_page,
7021 ps_printer::end_page): Switch forth and back to default color while
7022 starting a new page.
7024 2002-02-27 Werner LEMBERG <wl@gnu.org>
7026 Add EC and TC fonts to devdvi.
7028 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
7029 * font/devdvi/generate/cork.map: Renamed to...
7030 * font/devdvi/generate/ec.map: This.
7031 Remove entry for `aq'.
7032 * font/devdvi/generate/tc.map: New file.
7033 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
7036 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
7037 * font/devdvi/Makefile.sub (DEVFILES): Updated.
7038 * tmac/ec.tmac: New file.
7039 * tmac/Makefile.sub (NORMALFILES): Updated.
7040 * NEWS, src/devices/grodvi/grodvi.man: Updated.
7041 * man/groff_char.man: Check `ECFONTS' register.
7043 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
7045 2002-02-26 Werner LEMBERG <wl@gnu.org>
7047 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
7048 * font/devdvi/generate/cork.map: Add 'y and 'Y.
7049 * font/devdvi/*: Updated.
7050 * tmac/dvi.tmac: Formatting.
7052 Add font `HBI' for the dvi output.
7053 Add support for font families `T' and `H'.
7055 * font/devdvi/HBI: New file.
7056 * font/devdvi/B: Renamed to ...
7057 * font/devdvi/TB: This.
7058 * font/devdvi/BI: Renamed to ...
7059 * font/devdvi/TBI: This.
7060 * font/devdvi/I: Renamed to ...
7061 * font/devdvi/TI: This.
7062 * font/devdvi/R: Renamed to ...
7063 * font/devdvi/TR: This.
7064 * font/devdvi/H: Renamed to ...
7065 * font/devdvi/HR: This.
7066 * font/devdvi/Makefile.sub (DEVFILES): Updated.
7067 * font/devdvi/generate/Makefile (HBI): New rule.
7069 (R, I, B, BI, H): Renamed to ...
7070 (TR, TI, TB, TBI, HR): This, respectively.
7072 * NEWS, src/devices/grodvi/grodvi.man: Updated.
7073 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
7074 Add `styles' and `family' keywords.
7075 * tmac/dvi.tmac: Alias `H' to `HR'.
7076 Add some fspecial requests for italic fonts.
7077 Add TR and TI as special.
7078 Add support for `_' with font CWI.
7080 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
7081 operator `:'. Until now, the expression `0:1' would return 2
7084 2002-02-25 Werner LEMBERG <wl@gnu.org>
7086 * man/groff_char.man: Added some missing PS glyph names (from the
7088 * font/devps/generate/textmap, font/devps/symbolmap: Add
7091 * doc/groff.texinfo: Minor additions and fixes.
7092 * man/groff_diff.man: Remove documentation of fp request. This
7093 is already covered in the original troff manual.
7094 Updated to be consistent with other doc files.
7097 2002-02-24 Werner LEMBERG <wl@gnu.org>
7099 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
7101 Define new variable OTHERDEVDIRS (containing `font/devlj4
7102 font/devlbp' if not EBCDIC).
7103 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
7104 (OTHERDEVDIRS): New variable.
7105 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
7106 * configure: Regenerated.
7108 * NEWS, src/devices/grotty/grotty.man: Updated.
7110 2002-02-23 Werner LEMBERG <wl@gnu.org>
7112 * src/roff/troff/input.cc (do_overstrike, do_bracket,
7113 get_line_arg): Honour input level.
7115 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
7117 * font/*/*: Implement it in all font files.
7118 * font/devps/generate/textmap, font/devps/generate/symbolchars,
7119 * font/devps/symbolmap: Updated.
7120 * font/devlj4/generate/text.map: Updated.
7121 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
7122 * font/devdvi/generate/texmi.map: Updated.
7124 * font/devutf8/R.proto: Remove all `charXXX' entries.
7125 * font/devutf8/NOTES: Updated.
7127 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
7130 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
7132 * NEWS, man/groff_char.man: Updated.
7134 2002-02-21 Phil Lobbes <phil@perkpartners.com>
7136 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
7138 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7140 * src/roff/grog/grog.pl: Fix computation of $refer.
7142 2002-02-19 Werner LEMBERG <wl@gnu.org>
7144 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
7145 `snprintf' and `vsnprintf'.
7147 * src/include/htmlindicate.h: Renamed to...
7148 * src/include/htmlhint.h: This.
7149 * src/include/Makefile.sub: Updated.
7150 * src/preproc/eqn/main.cc: Updated.
7152 2002-02-18 Werner LEMBERG <wl@gnu.org>
7154 * man/roff.man, man/groff_out.man, man/groff.man,
7155 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
7156 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
7158 * win32-diffs: Updated.
7160 2002-02-17 Werner LEMBERG <wl@gnu.org>
7162 * doc/Makefile (clean): Add *.eps.
7163 (MEMACROS): Removed.
7164 (TFLAG): New variable.
7167 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
7169 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
7171 * tmac/www.tmac: Use dummy diversion while resetting and disabling
7173 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
7175 * src/roff/troff/troff.man: Fix order of parameter description.
7179 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
7181 Simplify image handling for grohtml.
7184 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
7186 (html_text::dump_stack): Don't emit newline while debugging.
7187 (html_text::do_push) [DEBUGGING]: Print more info.
7188 (html_text::check_emit_text): Fix handling of <p>.
7189 * src/devices/grohtml/html.h: Updated.
7190 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
7191 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
7192 send its data to stderr also.
7194 (simple_output::space_or_newline) [DEBUGGING]: Removed.
7195 * src/devices/grohtml/post-html.cc (html_printer::do_links,
7196 html_printer::html_printer): Remove `DEBUGGING' conditionals.
7198 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
7200 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
7201 is_inline_image): Removed.
7202 (html_begin_suppress, html_end_suppress): Don't take a parameter.
7203 (graphic_start, graphic_end): Removed.
7204 * src/include/htmlindicate.h: Updated.
7205 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
7206 (macroset_template): New global variable.
7207 (makeFileName): Use `macroset_template'.
7208 (write_end_image): Don't take a parameter.
7210 (write_start_image: Don't emit newline.
7211 (char_buffer::write_upto_newline): Updated.
7212 (char_buffer::skip_to_newline): Renamed to ...
7213 (char_buffer::skip_until_newline): This.
7215 (char_buffer::write_file_troff, char_buffer::write_file_html):
7217 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
7218 (removeAllPages): Remove `DEBUGGING' conditionals.
7219 (addRegDef, dump_args): New functions.
7220 (char_buffer::do_html, char_buffer::do_image): Handle
7221 `www-image-template' command line variable.
7222 Add more debugging code.
7223 (addps4html): Removed.
7224 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
7226 * src/preproc/eqn/main.cc: Include `ctype.h'.
7227 (suppress_html): Removed.
7229 (inline_equation): Use `html_begin_suppress' and
7230 `html_end_suppress'.
7231 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
7232 (troff_output::start_picture, troff_output::finish_picture):
7234 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
7235 (process_input_file): Updated.
7237 * src/roff/troff/div.cc (page_number): Set page number only if the
7238 `ps4html' register isn't defined.
7239 * src/roff/troff/input.cc (image_no): New external variable.
7240 (do_suppress): Use it.
7241 * src/roff/troff/node.h (suppress_node::image_id): New member.
7242 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
7243 (suppress_node::suppress_node): Initialize `image_id' member.
7244 (suppress_node::same): Handle `image_id' also.
7245 (suppress_node::copy): Updated.
7246 (last_image_id): New global variable.
7247 (suppress_node::tprint): Use it.
7249 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
7251 * tmac/pspic.mac (PSPIC): Fix html support.
7252 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
7253 * tmac/www.tmac (www-image-template): Set up.
7254 (HTMLINDEX): Renamed to...
7256 (BODYCOLOR): Renamed to...
7258 (BACKGROUND): Renamed to...
7260 (URL): Change order of parameters for consistency.
7261 (MAILTO): Renamed to...
7263 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
7264 (IMG, PIMG, MPIMG): This.
7265 (HTML-H-BEGIN, HTML-H-END): Renamed to...
7267 (LINKS): Renamed to...
7269 (LINE): Renamed to...
7271 (NO-AUTO-RULE): Renamed to...
7273 (HTML-TL): Renamed to...
7275 (UL-BEGIN, UL-END): Renamed to...
7277 (DROPCAP): Renamed to...
7279 (TS, TE, EQ, EN): Provide default definitions.
7280 (www-make-unique-name): Updated.
7281 (HTML-IMAGE-INLINE): Fix typo.
7282 * tmac/groff_www.man: Updated.
7284 * doc/Makefile (homepage.html): Add option -r to grohtml.
7285 Use shortened image name.
7286 * doc/groff.texinfo: Updated info on grohtml strings and macros.
7287 * doc/homepage.ms: Updated and extended.
7289 2002-02-14 Werner LEMBERG <wl@gnu.org>
7291 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
7293 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
7294 SGR_BACK_DEFAULT_COLOR): Replaced with ...
7295 (tty_printer::put_color): Use it.
7296 (ttr_printer::end_page): Simplify.
7298 2002-02-13 Werner LEMBERG <wl@gnu.org>
7300 * tmac/groff_tmac.man: Moved to...
7301 * man/groff_tmac.man: This place.
7302 * tmac/Makefile.sub, man/Makefile.sub: Updated.
7304 2002-02-12 Werner LEMBERG <wl@gnu.org>
7306 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
7307 $(COMPILE.c) to not include groff's assert.h.
7309 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
7311 * NEWS, src/drivers/grotty/grotty.man: Document it.
7313 2002-02-11 Werner LEMBERG <wl@gnu.org>
7315 * src/libs/snprintf/snprintf.c: Updated to latest version
7318 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
7319 test whether there is `.]' also.
7320 Don't check for spaces after `.['.
7321 * src/roff/grog/grog.sh: Do the same.
7323 2002-02-10 Werner LEMBERG <wl@gnu.org>
7327 * src/libs/libgroff/illegal.cc: Renamed to ...
7328 * src/libs/libgroff/invalid.cc: This.
7329 (illegal_char_table): Renamed to ...
7330 (invalid_char_table): This.
7331 * src/libs/libgroff/Makefile.sub: Updated.
7332 * win32-diffs: Updated.
7334 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
7335 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
7336 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
7337 font::load), src/preproc/eqn/main.cc (read_line, main),
7338 src/preproc/eqn/lex.cc (file_input::read_line),
7339 src/preproc/pic/lex.cc (file_input::read_line,
7340 simple_file_input::get, simple_file_input::peek),
7341 src/preproc/pic/main.cc (top_input::get, top_input::peek),
7342 src/preproc/pic/pic.man, src/preproc/refer/main.cc
7343 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
7344 do_bib), src/preproc/tbl/main.cc (table_input::get),
7345 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
7346 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
7347 do_zero_width, read_request, encode_char, ps_get_line,
7348 transparent_file, get_char_for_escape_name, transparent_translate,
7349 asciify, input_char_description, read_string, set_string),
7350 src/roff/troff/env.cc (environment::add_html_tag),
7351 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
7353 * src/include/lib.h: Updated.
7355 * src/preproc/eqn/eqn.cc: Removed.
7359 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
7361 2002-02-09 Werner LEMBERG <wl@gnu.org>
7363 * doc/gnu.xpm: New image.
7364 * doc/Makefile (DOCS): Add homepage.ps.
7365 Add rules for converting xpm->png and xpm->eps.
7366 Use `gnu.{xpm,eps}' as image names.
7367 * doc/homepage.ms: Updated.
7369 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
7371 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
7372 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
7373 Remove calls to `B1' and `B2'
7374 (PNG-IMAGE): New macro for inclusion of images in PNG format.
7375 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
7376 auxiliary variables for MARGIN-PNG-IMAGE.
7377 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
7378 auxiliary macros for MARGIN-PNG-IMAGE.
7379 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
7381 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
7382 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
7383 (DROPCAP): New macro to produce dropcap characters.
7384 (www-do-image): Renamed back to...
7385 (HTML-DO-IMAGE): This.
7386 Updated all callers.
7388 * doc/Makefile (gnubw.eps): Updated.
7389 * doc/homepage.ms: Updated.
7391 2002-02-08 Werner LEMBERG <wl@gnu.org>
7393 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7394 Added `linethick' to table in section `Style Variables'.
7396 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
7398 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7400 2002-02-07 Werner LEMBERG <wl@gnu.org>
7402 Adding options -C (compatibility mode) and -c (grotty's old output
7405 * src/roff/nroff/nroff.sh: Implement it.
7407 * NEWS, src/roff/nroff/nroff.man: Updated.
7409 * PROBLEMS: Document bison 1.32 bug.
7411 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7413 * src/roff/troff/node.cc (make_tfont): Define it earlier.
7414 * src/roff/troff/div.h: Add prototype for `end_diversions'.
7415 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7416 * src/roff/troff/env.h: Add prototype for `title'.
7418 Adding EBCDIC support to grotty.
7420 * src/devices/grotty/tty.cc (CSI): New macro.
7421 (SGR_*, tty_printer::put_color): Use it.
7423 2002-02-06 Werner LEMBERG <wl@gnu.org>
7425 Implementing color support in grotty. The new switch -c activates
7426 the old drawing scheme, disabling color at the same time. The new
7427 switch `-i' selects italic instead of underlining (SGR only).
7429 * src/devices/grotty/tty.cc (putstring): New define instead of
7430 `fputs'. Updated all callers.
7431 (old_drawing_scheme): New global variable.
7432 (COLOR_CHANGE): New enum value.
7433 (SGR_*): New defines containing color handling escape sequences.
7434 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7435 (glyph): New members `back_color_idx' and `fore_color_idx'.
7436 (glyph::order): Add COLOR_CHANGE.
7437 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7438 `is_underline', `is_bold', `cu_flag', `tty_colors'.
7439 New methods `make_underline', `make_bold', `color_to_idx',
7440 `change_color', `put_color'.
7441 (cu_flag): Moved into `tty_printer' class.
7442 (tty_printer::tty_printer): Initialize colors.
7443 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7444 tty_printer::draw, tty_printer::end_page): Handle colors also.
7445 (main): Add options `-c' and `-i'.
7447 * NEWS, src/devices/grotty/grotty.man: Updated.
7449 * src/include/errarg.h (errarg): Add support for `unsigned int'.
7450 * src/libs/libgroff/errarg.c: Implement it.
7452 * src/include/printer.h (printer): Add `change_color' method
7453 (currently used by grotty only).
7454 * src/libs/libdriver/printer.cc: Implement it.
7455 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7456 call to `pr->change_color'.
7458 * src/roff/troff/node.cc (troff_output_file::fill_color,
7459 troff_output_file::glyph_color): Call `do_motion'.
7461 * tmac/tty.tmac: Add color definitions.
7463 * src/roff/groff/groff.man: Minor fixes.
7465 2002-02-05 Bernd Warken <bwarken@mayn.de>
7467 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7468 it. This is a preparation for future changes.
7470 2002-02-05 Werner LEMBERG <wl@gnu.org>
7472 * src/roff/troff/input.cc (process_input_stack): Fix the case
7473 where leading spaces are followed by \f or \s; previously, an
7474 incorrect space width has been used.
7476 * doc/roff.man (quoted_char): Fix argument.
7477 (comment): Define string.
7479 2002-02-04 Larry Kollar <kollar@alltel.net>
7481 * doc/groff.texinfo: More fixes.
7483 2002-02-04 Werner LEMBERG <wl@gnu.org>
7485 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7486 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7487 `restore_compatibility' before `output_string' -- the LINE_STRING
7488 register now already contains proper switches from and to
7491 * man/groff_char.man: Add Euro symbol.
7492 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7493 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7494 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7497 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7499 (.texinfo.html): Add support for texinfo->html.
7501 2002-02-03 Werner LEMBERG <wl@gnu.org>
7503 Added three new requests `ds1', `as1', and `ami'. The former two
7504 are equivalent to `ds' and `as' with the difference that
7505 compatibility mode is saved on entry, switched off during string
7506 expansion, and restored on exit. The latter is the pendant to `dei'
7509 (do_define_string): Use `define_mode' and `calling mode'.
7510 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7511 end of string, respectively.
7512 (define_string, append_string): Use `calling_mode'.
7513 (define_nocomp_string, append_nocomp_string,
7514 define_string_indirect): New functions.
7515 (init_input_requests): Updated.
7516 * NEWS, man/groff_diff.man, man/groff.man: Document it.
7518 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7519 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
7520 mm macro package accesses this string register directly.
7521 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7523 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
7526 2002-02-02 Larry Kollar <kollar@alltel.net>
7528 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7530 2002-01-31 Werner LEMBERG <wl@gnu.org>
7532 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7534 2002-01-31 Bernd Warken <bwarken@mayn.de>
7536 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7537 * man/groff_out.man: Revised and updated.
7539 2002-01-30 Bernd Warken <bwarken@mayn.de>
7541 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7542 out the unused `{' and `}' commands. Undefined by default.
7543 (IntArray): Make `data' private.
7544 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7545 new methods instead.
7546 (skip_line_D, skip_to_end_of_line): New functions.
7547 (get_D_fixed_args): Use `skip_line_D'.
7548 Changed to handle dummy odd arguments by ...
7549 (get_D_fixed_args_odd_dummy): This new function.
7550 (get_D_variable_args): Split some code into ...
7551 (get_possibly_integer_args): This new function.
7552 (send_draw): Use more `const'.
7553 (delete_current_env): New function.
7554 (position_to_end_of_args): Use `size_t'.
7556 (send_draw): Updated.
7557 (parse_D_command): Handle `c', `C', and `t' better.
7561 2002-01-29 Werner LEMBERG <wl@gnu.org>
7564 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7565 @Def...ListEnd which replaces @Def...x. This is necessary to get
7566 proper HTML output -- see the comment in the file for more
7570 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
7572 Fixes to make color changes of 2002-01-21 work with grohtml.
7574 * src/devices/grohtml/post-html.cc (style): Updated.
7575 (html_printer): Remove unused methods.
7576 (html_printer::do_font, html_printer::draw, html_printer::set_char,
7577 html_printer::special): Updated.
7578 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7579 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7580 Added some debugging code.
7581 (html_text::start_tag): Updated.
7582 (html_text::do_push): New method.
7583 (html_text::push_para): Call it.
7584 Add method for handling color.
7585 (html_text::do_color): Updated.
7586 (html_text::shutdown): Handle color.
7587 * src/devices/grohtml/html-text.h (tag_definition): New member
7591 2002-01-28 Werner LEMBERG <wl@gnu.org>
7593 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7595 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
7597 Add two switches -a and -g to control the antialiasing bits for
7598 text and graphics, respectively.
7600 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7602 * src/devices/grohtml/grohtml.man: Document them.
7603 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7605 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7606 (setupAntiAlias): New function.
7607 (createAllPages): Updated.
7608 (scanArguments): Handle `-a' and `-g'.
7609 (main): Call `setupAntiAlias'.
7612 2002-01-27 Werner LEMBERG <wl@gnu.org>
7614 * doc/groff.texinfo (Def*): Call index function after deffn.
7616 * tmac/html.tmac: Call `nroff' request.
7618 2002-01-26 Larry Kollar <kollar@alltel.net>
7620 * tmac/groff_ms.man: Add some omissions.
7622 2002-01-25 Larry Kollar <kollar@alltel.net>
7624 * tmac/groff_ms.man: Typographical improvements.
7626 2002-01-25 Werner LEMBERG <wl@gnu.org>
7628 * doc/groff.texinfo: Updated version and copyright.
7629 * src/devices/grops/grops.man: Updated.
7631 * tmac/groff_tmac.man: Fix `ig' macro.
7633 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7635 Use `.ne' unconditionally everywhere.
7636 (TS): Only insert some vertical space. Doing a page break is no
7637 longer necessary due to the redefinition of the `ne' request.
7639 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7640 warning for unknown subcommands but parse and pass them to the
7643 2002-01-24 Werner LEMBERG <wl@gnu.org>
7645 * tmac/groff_www.man, NEWS: Fix typos.
7647 2002-01-21 Werner LEMBERG <wl@gnu.org>
7649 Complete revision of color support:
7651 Adapt programs to the new libdriver/input.cc.
7653 Color spaces are no longer converted to RGB but transferred as-is
7654 in the troff intermediate output format.
7656 Handle default color gracefully. troff now supports a `default'
7657 color (which can't be changed).
7659 grops will now use the proper color space functions if available.
7663 Note that currently grohtml doesn't handle colors properly. This
7666 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7667 (ui_to_a): New function.
7668 * src/include/lib.h: Updated.
7670 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7671 (color): Simplified; removed all `double' members and methods.
7672 A new array `components' now holds the color parameters.
7673 (color::is_default, color::get_components): New methods.
7674 (color::operator==, color:operator!=): New.
7675 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7676 to make access to the `components' array more comprehensible.
7677 * src/libs/libgroff/color.cc: Implement new color support.
7678 (atoh): Small fixes.
7679 (color::read_encoding): Simplified for new troff intermediate color
7681 (default_color): New global variable.
7683 * src/roff/troff/input.cc (default_symbol): New global variable.
7684 (lookup_color): Use it.
7685 (default_black): Removed.
7686 (do_glyph_color, do_fill_color): Simplified.
7687 (define_color): Handle default color.
7689 (do_if_request): Handle default color.
7690 * src/roff/troff/env.cc (environment::environment): Initialize
7691 colors with `default_color'.
7692 * src/roff/troff/node.cc (troff_output_file::put): Add method
7694 (troff_output_file::hex): Removed.
7695 (troff_output_file::fill_color, troff_output_file::glyph_color):
7696 Updated to include/color.h and libdriver/input.cc.
7698 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7699 fill color properly (identically to the outline color). \D'f...'
7700 doesn't work any more.
7701 All function calls to it updated.
7703 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7705 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7708 * src/devices/grops/ps.cc (ps_output::put_color): New method.
7709 (ps_printer::sbuf_color): Make a real member instead of pointer.
7710 (ps_printer::fill_color, ps_printer::output_color): Removed.
7711 (ps_printer::ps_printer): Updated.
7712 (ps_printer::set_char): Ditto.
7713 (ps_printer::set_color): Use various color schemes.
7714 Use `put_color' method.
7715 (ps_printer::flush_sbuf): Don't set color.
7716 (ps_printer::fill_path): Take `environment' as parameter.
7717 Simplify color handling.
7718 (ps_printer::set_line_thickness): Renamed to ...
7719 (ps_printer::set_line_thickness_and_color): This (and updated).
7720 (ps_printer::set_color): Change second parameter from `complete'
7721 to `fill' which better describes what it does.
7722 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7723 and text in the right order.
7725 Remove branches for `f' and `F'; this is handled by
7727 * src/devices/grops/ps.h: Updated.
7728 * font/devps/prologue (FL): Redefined.
7729 ({F,C}r,k,g: New color functions (with and without filling).
7731 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7732 * man/groff_diff.man, man/groff.man, man/groff_out.man,
7733 doc/groff.texinfo, NEWS: Updated.
7735 2002-01-20 Bernd Warken <bwarken@mayn.de>
7737 * src/libs/libdriver/input.cc: Completely rewritten. See comments
7738 in this file for what has been changed.
7740 2002-01-19 Werner LEMBERG <wl@gnu.org>
7742 * test-groff: Fix GROFF_FONT_PATH.
7743 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7744 is read before .TH or .Dd is parsed.
7746 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
7748 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7749 quadrant boundaries.
7751 2002-01-18 Werner LEMBERG <wl@gnu.org>
7753 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
7756 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
7758 * tmac/doc.common: Initialize %I register for the %I macro to
7759 avoid (harmless) warning.
7760 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7761 when in the SYNOPSIS section.
7763 2002-01-17 Bruno Haible <haible@clisp.cons.org>
7765 * src/preproc/pic/lex.cc (get_token): Fix typo.
7767 2002-01-17 Werner LEMBERG <wl@gnu.org>
7769 * devices/grops/ps.cc: Fix incorrectly applied last patch.
7771 2002-01-17 Larry Kollar <kollar@alltel.net>
7773 * tmac/groff_ms.man: Completely rewritten.
7775 2002-01-16 Werner LEMBERG <wl@gnu.org>
7777 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7779 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
7781 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7783 (ps_printer::draw): Ditto.
7785 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
7787 * tmac/groff_mdoc.man: Minor fixes.
7789 2002-01-13 Werner LEMBERG <wl@gnu.org>
7791 * man/groff_out.man: Some fixes.
7793 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
7795 * doc/pic.ms: Fix typos.
7797 2002-01-12 Werner LEMBERG <wl@gnu.org>
7799 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7801 2002-01-10 Werner LEMBERG <wl@gnu.org>
7803 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7807 2002-01-09 Bernd Warken <bwarken@mayn.de>
7809 * man/groff_out.man: Revised.
7810 * man/roff.man: Minor fixes.
7811 * src/roff/troff/troff.man: Some reordering.
7813 2002-01-09 Werner LEMBERG <wl@gnu.org>
7815 * tmac/an-old.tmac: Add dummy macros for equation support.
7817 2002-01-07 Werner LEMBERG <wl@gnu.org>
7819 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7821 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
7823 * tmac/groff_man.man: Small improvements.
7825 2002-01-07 Bernd Warken <bwarken@mayn.de>
7827 * man/groff_diff.man: Revised.
7829 2002-01-06 Werner LEMBERG <wl@gnu.org>
7831 * tmac/www.tmac: Remove extraneous backslash.
7833 2002-01-06 Bernd Warken <bwarken@mayn.de>
7835 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7837 2002-01-05 Werner LEMBERG <wl@gnu.org>
7839 Integrated groffer, contributed by Bernd Warken.
7841 * contrib/groffer/*: New.
7842 * Makefile.in, NEWS: Updated.
7844 2002-01-04 Werner LEMBERG <wl@gnu.org>
7846 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7847 registers defined in macro packages.
7848 Revising the ms part.
7850 2002-01-04 Larry Kollar <kollar@alltel.net>
7852 * doc/groff.texinfo: Add documentation for ms macros.
7854 2002-01-02 Werner LEMBERG <wl@gnu.org>
7856 First step in adding PS support for the Euro symbol. `eu' is the
7857 official Euro logo, `Eu' is a font-specific glyph variant.
7859 * font/devps/text.enc: Add `Euro' at position 9.
7860 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7861 * font/devps/symbolmap: Regenerated.
7865 2002-01-02 Bernd Warken <bwarken@mayn.de>
7867 * man/roff.man: Revised.
7869 2002-01-01 Bernd Warken <bwarken@mayn.de>
7871 * src/roff/groff/groff.man: Completely rewritten.
7873 2001-12-31 Werner LEMBERG <wl@gnu.org>
7875 * doc/Makefile: Updated.
7877 2001-12-30 Werner LEMBERG <wl@gnu.org>
7879 * tmac/www.tmac: Make all names of internal macros/registers/strings
7880 lowercase, and prepend `www-'.
7881 Other minor changes.
7882 * src/roff/troff/troff.man: Add preprocessor string at BOF.
7884 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
7886 Implement option `-b' in grohtml to set the HTML background colour.
7888 * src/devices/grohtml/post-html.cc (default_background): New global
7890 (html_printer::html_printer): Initialize `background' to
7891 `default_background'.
7892 (main): Implement option `-b'.
7894 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7896 * src/devices/grohtml/grohtml.man: Updated.
7897 * doc/Makefile (.ms.html): Use `-b'.
7898 * tmac/html.tmac: Don't set background color.
7900 Add new grohtml tag `.html-tl'.
7902 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7904 (title_desc::title_desc): Updated.
7905 (html_printer::troff_tag): Handle `.html-tl'.
7906 (html_printer::write_title): Use `with_h1'.
7907 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7908 (HTML-TL): New macro.
7910 Add support for unordered lists in HTML.
7912 * tmac/www.tmac (www-level): New auxiliary register.
7913 (www-level1, www-level2, www-level3): New auxiliary strings.
7914 (www-push-level, www-pop-level): New auxiliary macros
7915 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7919 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7920 (DEFAULT_VERTICAL_OFFSET): Removed.
7921 (IMAGE_BOARDER_PIXELS): Set to 0.
7922 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7923 (vertical_offset): Initialize with 0.
7924 (gsPaper): New global variable.
7925 (get_resolution): Scan for and return unsigned int.
7926 (get_papersize): New function to get paper length from devps/DESC.
7927 (determine_vertical_offset): New function.
7928 (createAllPages): Produce gray-level images and use proper page
7930 (createImage): Use `-quiet' option of pnmcrop.
7931 (addZ): Fix passing of `-Z'.
7932 (scanArguments): Fix handling of `-o'.
7933 (main): Call `determine_vertical_offset'.
7934 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7937 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7938 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7939 glyph descenders properly.
7941 * doc/homepage.ms: Include `gnubw.eps'.
7942 * doc/Makefile (gnubw.eps): New rule.
7943 (homepage.html): Depend on `gnubw.eps'.
7945 2001-12-25 Werner LEMBERG <wl@gnu.org>
7947 * src/roff/troff/input.cc (default_black): Fix return value.
7949 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
7951 * tmac/doc-common (Dt): Change output of architecture strings.
7952 Do some syntax cleanup.
7953 * tmac/groff_mdoc.man: Updated.
7955 2001-12-23 Werner LEMBERG <wl@gnu.org>
7957 Adding an `itc' request (input line trap accepting \c).
7959 * src/roff/troff/env.h (environment): New member
7960 `continued_input_trap'.
7961 Make `do_input_trap' a friend function instead of `input_trap'.
7962 * src/roff/troff/env.cc (environment::environment,
7963 environment::copy): Updated.
7964 (environment::newline): Implement it.
7965 (do_input_trap): New function.
7966 (input_trap): Call `do_input_trap'.
7967 (input_trap_continued): New function.
7968 (init_env_requests): Updated.
7969 * src/roff/troff/TODO: Updated.
7971 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7974 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7976 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
7978 * tmac/doc-common, tmac/doc-syms: Small updates.
7980 2001-12-22 Colin Watson <cjwatson@debian.org>
7982 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7984 2001-12-22 Bernd Warken <bwarken@mayn.de>
7986 * MANIFEST: New file.
7988 2001-12-22 Werner LEMBERG <wl@gnu.org>
7990 * src/preproc/grn/grn.man: Updated.
7992 2001-12-22 Solar Designer <solar@openwall.com>
7994 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7997 2001-12-19 Werner LEMBERG <wl@gnu.org>
7999 Implement a fallback character request `.fchar'.
8001 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
8002 (is_fallback): New inline function.
8003 * src/roff/troff/input.cc (do_define_character): New function.
8004 (define_character): Call `do_define_character'.
8005 (define_fallback_character): New function.
8006 (init_input_requests): Add `fchar'.
8007 (charinfo::charinfo): Updated.
8008 (charinfo::set_macro): New argument to set `fallback' flag.
8009 * src/roff/troff/node.cc (make_glyph_node, make_node,
8010 node::add_char): Check `fallback' flag.
8011 * NEWS, man/groff_diff.man, man/groff_man: Updated.
8013 2001-12-16 Werner LEMBERG <wl@gnu.org>
8015 * groff.texinfo: Document exact search algorithm for glyphs.
8017 2001-12-15 Werner LEMBERG <wl@gnu.org>
8019 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
8020 the left side of $(MANPAGES) rule to make it always non-empty.
8022 2001-12-14 Werner LEMBERG <wl@gnu.org>
8024 * src/roff/troff/input.cc (default_black): Define default color
8025 `black' if not yet defined.
8027 2001-12-13 Werner LEMBERG <wl@gnu.org>
8029 Implement new string-valued register `.fn' to return the current
8030 real (internal) font name.
8032 * env.cc (environment::get_font_name_string): New function.
8033 (init_env_requests): Add `.fn' register.
8034 * env.h (environment): Updated.
8035 * node.cc (font_info): Make `get_font_name' a friend.
8036 (get_font_name): New function.
8039 * man/groff_diff.man, man/groff.man, NEWS: Updated.
8041 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8043 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
8045 2001-12-12 Werner LEMBERG <wl@gnu.org>
8047 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
8049 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
8051 * man/groff_diff.man: Adding documentation for \O.
8053 2001-12-10 Werner LEMBERG <wl@gnu.org>
8055 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
8056 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
8058 2001-12-09 Werner LEMBERG <wl@gnu.org>
8060 * man/roff.man: Revised.
8061 * src/roff/groff/groff.man: Replace man page references with a
8062 pointer to roff.man.
8064 2001-12-09 Bernd Warken <bwarken@mayn.de>
8066 * man/roff.man: Completely rewritten.
8068 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8070 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
8072 2001-12-05 Werner LEMBERG <wl@gnu.org>
8074 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
8076 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
8077 order of initializers.
8080 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
8082 * doc/groff.texinfo: Fix documentation of \O.
8084 * src/devices/grohtml/html-text.cc (html_text::do_indent,
8085 html_text::do_table, html_text::do_emittext, html_text::do_para):
8086 Use `const' for first argument.
8087 (html_text::do_table): Use cast.
8088 * src/devices/grohtml/html-text.h: Updated.
8089 * src/devices/grohtml/output.cc (simple_output::put_string): Add
8090 method for `const string &s'.
8091 * src/devices/grohtml/html.h: Updated.
8092 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
8093 (ANCHOR_TEMPLATE): Modified.
8094 (manufacture_headings): New global variable to handle `-h' option.
8095 (is_subsection): Removed.
8096 (char_buffer::add_string): Add `const' to first argument.
8097 Protect against invalid string argument.
8098 Add method for `const string &s'.
8099 (text_glob): Completely redesigned.
8100 (page): Use `const' for strings and remove string length variable.
8101 (page::add_html): Removed.
8102 (page::add_end_encode): New member function.
8103 (to_unicode): Moved upwards.
8104 (title_desc, header_desc): Updated.
8105 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
8107 (html_printer::is_bold, html_printer::make_bold): New member
8109 (html_printer::end_of_line): Updated.
8110 (generate_img_src, html_printer::do_auto_image,
8111 html_printer::do_title, html_printer::write_header,
8112 html_printer::determine_header_level, html_printer::do_heading,
8113 html_printer::do_linelength, html_printer::do_pageoffset,
8114 html_printer::do_indentation, html_printer::do_tempindent,
8115 html_printer::do_indentedparagraph, html_printer::do_break,
8116 html_printer::flush_sbuf, get_html_translation,
8117 html_printer::begin_page, html_printer::special): Rewritten to get
8118 rid of static string length limit.
8119 (html_printer::troff_tag): Added `.no-auto-rule'.
8120 (html_printer::flush_globs): Small fix.
8121 (html_printer::determine_space): Don't compute `space_width'.
8122 (html_printer::translate_to_html): Renamed to ...
8123 (html_printer::emit_html): This (with updates).
8124 (html_printer::write_header): Implement `-h' option.
8125 (html_printer::draw): Remove commented-out code. Handle `F'
8127 (html_printer::add_char_to_sbuf): Removed.
8128 (html_printer::add_to_sbuf): Rewritten.
8129 (html_printer::sbuf_continuation): Fixed.
8130 (html_printer::seen_backwards_escape, reverse,
8131 html_printer::remove_last_char_from_sbuf): Removed.
8132 (char_translate_to_html, str_translate_to_html): Removed.
8133 (html_printer::overstrike): New function member.
8134 (html_printer::set_char): Use it.
8135 (html_printer::do_body): New function member.
8136 (html_printer::~html_printer): Use it.
8137 (main): Handle `-h' option.
8139 * src/devices/grohtml/grohtml.man: Document -h switch.
8141 * src/preproc/html/pre-html.cc: Include searchpath.h
8142 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
8143 (get_resolution): New function.
8144 (checkImageDir): Use `0777' permissions in mkdir()
8145 (write_start_image): Rewritten to use `\O[5...]'.
8146 (createImage, generateImages): Updated.
8147 (main): Handle `F' and `h' options.
8148 Use `get_resolution'.
8150 * src/roff/troff/input.cc (begin, end, image): Removed.
8151 (do_suppress): Take parameter.
8152 Handle modified syntax of `\O'.
8153 (token::next): Updated.
8154 (init_markup_requests): Removed.
8157 * src/roff/troff/div.h: Add declaration for begin_page().
8159 * tmac/color-html.tmac: Removed. Contents moved to...
8160 * tmac/html.tmac: Here. Set background color.
8161 * tmac/color.tmac: Removed. Contents moved to...
8162 * tmac/ps.tmac: Here.
8163 * tmac/www.tmac: Remove the title command when generating images
8165 (NO_AUTO_RULE): New macro.
8166 (HTML_DO_IMAGE): Use revised `\O' escapes.
8167 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
8169 2001-12-02 Werner LEMBERG <wl@gnu.org>
8171 * tmac/groff_mdoc.man: Fix typo.
8173 2001-12-01 Colin Watson <cjwatson@debian.org>
8175 * man/roff.man: Fix typo.
8177 2001-11-29 Werner LEMBERG <wl@gnu.org>
8179 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
8182 * src/roff/troff/input.cc (read_draw_node): Emit error message if
8183 more than one argument to \D'f ...'.
8185 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
8187 2001-11-28 Werner LEMBERG <wl@gnu.org>
8189 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
8192 * tmac/groff_man.man: Minor cosmetic fix.
8194 2001-11-27 Werner LEMBERG <wl@gnu.org>
8196 * src/roff/groff/groff.man, tmac/groff_tmac.man,
8197 tmac/groff_www.man: s/mwww/www/.
8199 2001-11-26 Werner LEMBERG <wl@gnu.org>
8201 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
8202 * configure: Regenerated.
8203 * win32-diffs: Updated.
8205 * tmac/groff_mwww.tmac: Renamed to ...
8206 * tmac/groff_www.tmac: This.
8207 * tmac/mwww.tmac: Removed.
8208 * NEWS, tmac/Makefile.sub: Updated.
8210 2001-11-21 Werner LEMBERG <wl@gnu.org>
8212 * doc/groff.texinfo: Improve documentation of the `\v' escape.
8213 Fix explanation of `\D' and `rt'.
8215 2001-11-20 Werner LEMBERG <wl@gnu.org>
8217 * tmac/an-old.tmac (an-header): Set header length equal to page
8219 * doc/groff.texinfo: Improve documentation of `ne' request. Other
8223 2001-11-19 Werner LEMBERG <wl@gnu.org>
8225 * NEWS, man/Makefile.sub: Updated.
8227 2001-11-19 Bernd Warken <bwarken@mayn.de>
8229 * man/ditroff.man: New file.
8231 2001-11-17 Werner LEMBERG <wl@gnu.org>
8233 * man/groff_differences.man: Renamed to ...
8234 * man/groff_diff.man: This. Updated.
8235 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
8237 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
8238 * src/preproc/html/pushback.cc: This. Updated.
8239 * src/preproc/html/pushbackbuffer.h: Renamed to ...
8240 * src/preproc/html/pushback.h: This.
8241 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
8244 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
8245 * src/libs/libgroff/htmlhint.cc: This.
8246 * src/libs/libgroff/Makefile.sub: Updated.
8248 * tmac/an-old.tmac (an-end): Fix page length.
8250 2001-11-16 Werner LEMBERG <wl@gnu.org>
8252 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
8253 * man/Makefile.sub: Include groff_differences.man.
8254 * VERSION: Set to 1.18.
8255 * REVISION: Set to 0.
8257 2001-11-16 Bernd Warken <bwarken@mayn.de>
8259 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
8260 the second dot (or ending macro name) to end a macro.
8261 * doc/groff.texinfo: Doc fix.
8263 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
8265 * tmac/doc-common (doc-header): Handle very long document titles
8268 2001-11-16 Werner LEMBERG <wl@gnu.org>
8270 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
8272 2001-11-15 Werner LEMBERG <wl@gnu.org>
8274 * src/roff/troff/troff.man: Revised and split into troff.man and...
8275 * man/groff_differences.man: New file.
8278 2001-11-13 Werner LEMBERG <wl@gnu.org>
8280 * tmac/an-old.tmac (TS, TE): New macros for table support.
8282 2001-11-12 Werner LEMBERG <wl@gnu.org>
8284 * src/include/lib.h: Provide a fix for emx to not include
8287 2001-10-27 Werner LEMBERG <wl@gnu.org>
8289 * src/roff/troff/input.cc (substring_macro): Fix computation of
8292 2001-10-20 Werner LEMBERG <wl@gnu.org>
8294 Undo change from 2001-08-28.
8296 * src/roff/troff/input.cc (have_input): New global variable.
8297 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
8298 in compatibility mode.
8299 (process_input_stack): Use it.
8301 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
8303 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
8304 being handled as end-of-sentence characters,
8306 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
8308 * src/roff/troff/input.cc (file_iterator): New members
8309 `suppress_newline_flag' and `seen_escape'.
8310 (file_iterator::next_file): Updated.
8311 (file_iterator::fill): Use it.
8312 (string_iterator): New member `suppress_newline_flag'.
8313 (string_iterator::fill): Set it.
8314 (get_color_element): Use MAX_COLOR_VAL.
8315 * src/roff/troff/env.cc (environment): Remove `need_eol'.
8316 (no_fill): Don't set `env->ignore_next_eol'.
8317 (environment::newline): Handle `eol' tag properly.
8319 (environment::add_html_tag): Set `env->ignore_next_eol'.
8321 * src/roff/troff/env.h (environment): Updated.
8323 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
8325 (html_printer::outstanding_eol): New member function.
8326 (html_printer::do_title): Use new functions.
8327 (html_printer::troff_tag): Test `id_eol_ce'.
8329 2001-10-10 Werner LEMBERG <wl@gnu.org>
8331 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
8332 files work with -C also.
8334 2001-10-05 Werner LEMBERG <wl@gnu.org>
8336 * doc/pic.ms: Minor fix.
8337 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
8338 as a valid command line switch.
8339 * src/devices/grohtml/post-html.cc (main): Ditto.
8341 * src/devices/grohtml/grohtml.man: Updated.
8342 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
8344 2001-10-04 Werner LEMBERG <wl@gnu.org>
8346 Implementing color support in troff, pic, grops, and grohtml. These
8347 changes are based on a major patch provided by Gaius Mulley
8350 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
8351 definitions with both hex values and fractions.
8353 New escapes: \m and \M for drawing and background color,
8354 respectively. This corresponds to the troff output commands `m'
8357 groff and troff accept command line switch `-c' to disable color
8358 output (which is automatically disabled in compatibility mode).
8360 New scaling indicator `f' for fractions (1f = 65536u).
8362 New conditional operator `m' to test for defined colors with `if'
8365 New keywords `color' (or `colour', `colored', `coloured'), `outline'
8366 (or `outlined'), and `shaded' added to pic.
8368 * src/include/color.h: New file.
8369 * src/include/driver.h: Include it.
8370 * src/include/printer.h: Include color.h.
8371 (environment): New members `col' and `fill'.
8372 (printer): Remove `adjust_arc_center' member function.
8373 * src/include/Makefile.sub: Updated.
8375 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
8377 Handle `m' and `DF' troff commands.
8378 * src/libs/libgroff/color.cc: New file.
8379 * src/libs/libgroff/Makefile.sub: Updated.
8381 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
8383 (createImage): Fix computation of `y2'.
8385 (buffer::write_file_html): Remove calls to `stop'.
8387 * src/preproc/pic/common.h (common_output): New abstract function
8388 members `set_color', `reset_color', `get_last_filled', and
8389 `get_outline_color'.
8390 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8391 (object_spec): Add members `shaded' and `outlined'.
8392 * src/preproc/pic/output.h (output): `command' is now abstract.
8393 New function members `set_color', `reset_color', `get_last_filled',
8394 and `get_outline_color'.
8395 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8396 `outline[d]', and `shaded'.
8397 * src/preproc/pic/object.cc (output::command): Removed.
8398 (output::set_location): Moved to output.h.
8399 (graphic_object): Add protected members `outline_color' and
8401 Add member functions `set_outline_color', `get_outline_color', and
8403 (closed_object): Add member function `set_fill_color'.
8404 Add member `color_fill'.
8405 (graphic_object::print_text): Use `out->set_color' and
8407 (box_object::print, ellipse_object::print, circle_object::print,
8408 line_object::print, spline_object::print, arc_object::print): Ditto.
8409 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8410 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8411 `SHADED', making them `%left'.
8412 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8413 * src/preproc/pic/tex.cc (tex_output): New dummy function members
8414 `set_color', `reset_color', `get_last_filled', and
8415 `get_outline_color'.
8416 * src/preproc/pic/troff.cc (simple_output): New abstract function
8417 members `set_color', `reset_color', and `get_last_filled'.
8418 (simple_output::polygon, simple_output::circle,
8419 simple_output::ellipse): Use `get_last_filled'.
8420 (troff_output): New members `last_filled' and `last_outlined'.
8421 New function members `set_color', `reset_color', `get_last_filled',
8422 and `get_outline_color'.
8423 (troff_output::finish_picture): Use `reset_color'.
8424 (troff_output::set_fill): Test `last_filled'.
8425 * src/preproc/pic/pic.man: Updated.
8427 * src/roff/groff/groff.cc (main): Implement `-c' option.
8428 (synopsis, help): Updated.
8429 src/roff/groff/groff.man: Updated.
8431 * src/roff/troff/troff.h: Include color.h.
8432 (warning_type): Add WARN_COLOR.
8433 * src/roff/troff/env.h (environment): New members
8434 `{cur,prev}_{glyph,fill}_color'.
8435 New member functions `get_{prev_,}{glyph,fill}_color'.
8436 * src/roff/troff/env.cc: Initialize and implement them.
8437 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8438 Replace `NULL' with `0' everywhere for consistency.
8439 (lookup_color, default_black, do_glyph_color, do_fill_color,
8440 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8441 define_color): New functions.
8442 (token::next): Implement \M and \m escapes.
8443 (do_if_request): Implement `m' operator.
8445 (main): Implement `-c' option.
8446 (init_markup_requests): Add `defcolor' request.
8447 (warning_table): Add `color' warning.
8448 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8450 * src/roff/troff/node.cc (troff_output_file): New members
8451 `current_{page,glyph}color'. New member functions `put_hex',
8452 `glyph_color', and `fill_color'.
8453 (glyph_color_node::*, fill_color_node::*): Implement it.
8454 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8455 (parse_term): Add support for `f'.
8456 * src/roff/troff/troff.man: Updated.
8458 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8460 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8461 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8463 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8464 (tag_definition): Use `void *' for arg1.
8465 (html_text): New member functions `do_color' and `done_color'.
8466 Use `void *' for second parameter of `push_para' member function.
8467 New `push_para' member function with a single parameter.
8468 Use `char *' for parameter of `issue_table_begin' member funtion.
8469 New `issue_color_begin' member function.
8470 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8472 (html_text::issue_color_begin): New function.
8473 (html_text::issue_table_begin): Use `char *' for parameter.
8474 (html_text::start_tag, html_text::shutdown,
8475 html_text::check_emit_text): Updated.
8476 (html_text::push_para): Use `void *' for second parameter.
8477 Add same function with only one parameter.
8478 (html_text::do_*): Updated.
8479 (html_text::do_color, html_text::done_color): New functions.
8480 * src/devices/grohtml/post-html.cc (style): New member `col'.
8481 Mew member `style' with 6 parameters.
8482 (style::style, style::operator==): Updated.
8483 (html_printer::do_font): Use it.
8484 (html_printer::draw): Add dummy entry for `F'.
8485 (html_printer::set_char): Updated.
8486 * src/devices/grohtml/grohtml.man: Updated.
8488 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8489 trailing zeroes removed.
8490 (ps_printer): New members `sbuf_color', `fill_color', and
8492 Removed member `fill'.
8493 New member function `set_color'.
8494 (ps_printer::ps_printer, ps_printer::set_char): Updated.
8495 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8496 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8498 * tmac/color-html.tmac, tmac/color.tmac: New files.
8499 * tmac/troffrc: Include them.
8500 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8501 * tmac/Makefile.sub: Updated.
8503 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8504 man/groff.man: Updated.
8505 * font/devps/prologue.ps: Define FC and CO functions.
8507 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
8509 Fix incorrect cropping of images and incorrect handling of special
8510 characters. Fix handling of file names in \O.
8512 * src/include/geometry.h: New file.
8513 * src/libs/libgroff/geometry.cc: New file.
8514 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8516 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8518 (do_suppress): Updated.
8519 * src/roff/troff/node.cc: Include geometry.h.
8520 (troff_output_file::flush_tbuf): Fixed parameters to
8521 `check_output_limits'.
8522 (troff_output_file::check_charinfo): Ditto.
8523 (troff_output_file::determine_line_limits): Add support for `Da'
8526 * src/devices/grohtml/post-html.cc (str_translate_to_html):
8527 Add new parameter `is_special' to decode special characters from
8529 (html_printer::do_title, html_printer::do_heading,
8530 html_printer::do_indentedparagraph,
8531 html_printer::translate_to_html, html_printer::special): Updated.
8533 2001-10-03 Werner LEMBERG <wl@gnu.org>
8535 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8536 Fix entry for config.h.
8537 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8538 * tmac/troffrc: Translate nonbreakable space character to `\~'.
8539 * src/preproc/eqn/eqn.man: Document -d command line option.
8541 2001-09-27 Werner LEMBERG <wl@gnu.org>
8543 * man/groff.man: Use
8551 instead of the old code (`.ad .hy' after the table) to suppress
8552 incorrect hyphenation for grohtml output.
8554 2001-09-22 Werner LEMBERG <wl@gnu.org>
8556 * man/groff_font.man, man/groff_out.man: Minor fixes.
8558 2001-09-20 Werner LEMBERG <wl@gnu.org>
8560 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
8561 Arnold Robbins <arnold@skeeve.com>).
8563 2001-09-09 Werner LEMBERG <wl@gnu.org>
8565 * configure: Regenerated with autoconf 2.52.
8567 * doc/groff.texinfo: Complete revision of indices.
8569 2001-09-07 Werner LEMBERG <wl@gnu.org>
8571 * doc/Makefile (clean): Updated to delete all indices.
8573 2001-09-05 Werner LEMBERG <wl@gnu.org>
8575 * src/roff/troff/troff.man: Remove superfluous line.
8577 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8578 given on the command line (or rather, if only the default warnings
8581 2001-09-03 Werner LEMBERG <wl@gnu.org>
8583 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8584 use .ne for TTY devices.
8586 2001-08-31 Werner LEMBERG <wl@gnu.org>
8588 * src/roff/troff/token.h, src/roff/troff/input.cc:
8589 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8591 2001-08-28 Werner LEMBERG <wl@gnu.org>
8593 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8594 * src/roff/troff/input.cc (token::next): Return
8595 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8597 (token::description): Updated.
8598 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8599 (token::add_to_node_list, token::process): Ignore
8600 TOKEN_TRANSPARENT_ESCAPE.
8602 2001-08-27 Werner LEMBERG <wl@gnu.org>
8604 * tmac/an-old.tmac: Fix `S' string.
8606 2001-08-26 Werner LEMBERG <wl@gnu.org>
8608 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8610 2001-08-25 Werner LEMBERG <wl@gnu.org>
8612 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8614 Many other minor fixes.
8616 * configure.ac: Add message at end to inform how to compile
8618 * configure: Regenerated.
8620 2001-08-24 Werner LEMBERG <wl@gnu.org>
8622 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8623 Updated to latest version of libc.
8625 2001-08-23 Werner LEMBERG <wl@gnu.org>
8627 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8628 Autoconf 2.50 and newer can handle this.
8629 * configure: Regenerated.
8631 2001-08-21 Werner LEMBERG <wl@gnu.org>
8633 * doc/pic.ms: Fix typo.
8634 * src/preproc/tbl/tbl.man: Document case of global options.
8636 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
8638 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8639 handling of `CR' font.
8641 2001-08-20 Werner LEMBERG <wl@gnu.org>
8643 Use a config.h file.
8645 * src/include/lib.h: Include config.h.
8646 * All C files: Ditto (if necessary).
8647 * All C++ source and header files: Include lib.h first (if
8650 * src/include/config.hin: New file (autogenerated by autoheader).
8651 * stamp-h.in: New file.
8652 * configure.ac: Updated.
8653 * aclocal.m4: Add third parameters to AC_DEFINE macros.
8654 (GROFF_ARRAY_DELETE): Simplified.
8655 * Makefile.sub (DISTCLEANFILES): Updated.
8656 Added targets for remaking config.status, config.hin, config.h,
8657 stamp-h.in, and stamp-h.
8658 * configure: Regenerated.
8660 2001-08-19 Werner LEMBERG <wl@gnu.org>
8664 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
8666 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8667 (do_sprintf): Use snprintf().
8669 2001-08-18 Werner LEMBERG <wl@gnu.org>
8671 * src/libs/snprintf/*: Added an snprintf module written by Mark
8673 * src/libs/libgroff/Makefile.sub: Updated.
8674 * configure.ac: Add test for snprintf().
8675 * Makefile.in: Updated.
8676 * configure: Regenerated.
8678 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8681 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
8683 * tmac/doc.tmac (Ex): New implementation.
8684 * tmac/doc-common, tmac/groff_tmac.man: Updated.
8686 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
8688 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8690 * tmac/groff_tmac.man: Updated.
8692 2001-08-13 Werner LEMBERG <wl@gnu.org>
8694 * src/preproc/tbl/tbl.man: Minor documentation update.
8696 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
8698 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8699 * configure.ac: Add declaration test for gettimeofday().
8700 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8701 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8702 * configure: Regenerated.
8704 2001-08-11 Werner LEMBERG <wl@gnu.org>
8706 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8707 * configure.ac: Add declaration test for strcasecmp().
8708 * Makefile.in: Updated.
8709 * configure: Regenerated.
8710 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8711 this is necessary because groff's mkstemp.cc is C++.
8712 Add declaration conditionally for strcasecmp().
8714 2001-08-10 Werner LEMBERG <wl@gnu.org>
8716 Integrated pic2graph, contributed by Eric S. Raymond.
8718 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8720 * Makefile.in, NEWS: Updated.
8722 * src/preproc/tbl/tbl.man: Revised.
8724 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
8726 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8728 2001-08-09 Werner LEMBERG <wl@gnu.org>
8730 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8733 2001-08-08 Paul Eggert <eggert@twinsun.com>
8735 * Makefile.sub (configure): Depend on configure.ac, not
8737 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8739 2001-08-07 Werner LEMBERG <wl@gnu.org>
8741 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8744 2001-08-06 Werner LEMBERG <wl@gnu.org>
8746 * src/roff/troff/troff.man: Improve documentation of -E option.
8748 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8750 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8753 2001-07-27 Werner LEMBERG <wl@gnu.org>
8755 * src/preproc/refer/refer.cc: Undo last change.
8756 * src/devices/grohtml/post-html.cc: Ditto.
8758 2001-07-26 Werner LEMBERG <wl@gnu.org>
8760 * src/preproc/refer/refer.cc: Include `lib.h'.
8761 * src/devices/grohtml/post-html.cc: Ditto.
8763 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
8765 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8766 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8767 * Makefile.in: Comment updated.
8768 * configure: Regenerated.
8770 2001-07-25 Werner LEMBERG <wl@gnu.org>
8772 * src/preproc/pic/pic.cc: Removed.
8773 * src/preproc/pic/pic_tab.h: Removed.
8774 * src/preproc/refer/label.cc: Removed.
8776 * doc/Makefile (.ms.html): Don't use a file name extension in
8777 argument to grohtml's -I option.
8778 * Makefile.in (dist): Remove CVS directories.
8779 Call `distfiles' target.
8781 * src/devices/grohtml/grohtml.man: Add information about valid
8782 versions of pnmtopng.
8783 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8784 name instead of number.
8786 2001-07-24 Werner LEMBERG <wl@gnu.org>
8788 * doc/groff.texinfo: Minor fixes.
8790 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
8792 * doc/Makefile (.ms.html): Put image files into a subdirectory.
8795 2001-07-20 Werner LEMBERG <wl@gnu.org>
8797 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8798 * src/libs/libgroff/mkstemp.cc: New file.
8799 * src/libs/libgroff/mksdir.cc: New file.
8800 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8801 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8802 * src/libs/libgroff/Makefile.sub: Updated.
8803 * src/include/lib.h: Add mksdir() prototype.
8804 * src/include/posix.h: Define S_IXUSR if not yet defined.
8806 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8807 (createAllPages): Use mksdir() instead of current code.
8808 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8809 (main): [!HAVE_MKSTEMP]: Removed.
8811 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8812 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8814 * configure.ac: Add tests for stdint.h, sys/time.h, and
8816 Call new GROFF_xxx macros.
8817 * configure: Regenerated.
8818 * Makefile.in: Comments updated.
8820 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
8822 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8823 instead of current code.
8824 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8825 * src/roff/groff/groff.cc (possible_command::insert_args): New
8827 (main): Use it for predriver handling instead of insert_arg().
8829 2001-07-19 Werner LEMBERG <wl@gnu.org>
8831 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8834 * src/include/posix.h: Define S_IWUSR if not yet defined.
8836 2001-07-18 Werner LEMBERG <wl@gnu.org>
8840 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
8842 * tmac/groff_mdoc.man: Document new -width and -column syntax.
8843 Some other minor fixes.
8844 * tmac/an-old.tmac: Add `AT' and `UC' macros.
8846 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
8848 Replace call to `troff' with `groff -Z' to make it aware of
8851 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8852 (troff_command, command_prefix): Removed.
8853 (alterDeviceTo): Use groff.
8854 (addZ): New function.
8855 (char_buffer::do_html): Use it.
8856 (scanArguments): Use TROFF_COMMAND.
8857 (findPrefix): Removed.
8859 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8861 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
8863 * doc/pic.ms: Documentation fixes.
8865 2001-07-17 Werner LEMBERG <wl@gnu.org>
8867 Replace atexit() with global destructor.
8869 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8870 (xtmpfile_list_init): New global structure to deallocate
8871 xtmpfile_list on exit. Its destructor inherits most code from
8873 (remove_tmp_files): Deleted.
8874 (add_tmp_file): Simplified.
8876 2001-07-16 Werner LEMBERG <wl@gnu.org>
8878 Replace strdup() with strsave().
8880 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8881 (set_papersize): Use strsave() and a_delete.
8882 (main): Use strsave().
8883 * src/preproc/html/pre-html.cc (make_message, createAllPages,
8884 removeAllPages): Use strsave() and a_delete.
8886 * configure.ac: Remove test for strdup.
8887 * Makefile.in: Comment updated.
8888 * configure: Regenerated.
8890 2001-07-15 Werner LEMBERG <wl@gnu.org>
8892 * win32-diffs: Updated.
8894 2001-07-14 Werner LEMBERG <wl@gnu.org>
8896 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8897 removing the old one.
8898 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8900 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
8902 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8904 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
8906 Merge -xwidth into -width. Add -xwidth functionality to -column
8909 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8911 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
8912 string immediately following a leading dot starts with a valid mdoc
8914 Add similar code to the -column branch.
8915 (doc-Bl-usage): Updated.
8916 * groff_mdoc.man: s/-xwidth/-width/.
8918 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
8920 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8921 running into centered or non-formatted text.
8923 2001-07-11 Werner LEMBERG <wl@gnu.org>
8925 Introduce short and long prefixes to have the selection at run-time
8926 whether there is a 8+3 limit for names of temporary files.
8928 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8929 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8930 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8932 (temp_init): New global structure to initialize above three
8934 (xtmptemplate): Use two parameters for long and short prefix.
8935 Simplify code use above three variables.
8936 (xtmpfile): Use long and short prefixes as parameters.
8937 * src/include/lib.h: Updated.
8939 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8941 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8942 (createAllPages, makeTempFiles): Updated.
8944 2001-07-09 Werner LEMBERG <wl@gnu.org>
8946 * REVISION: Increased to 3.
8948 Version 1.17.2 released
8949 =======================
8951 2001-07-07 Werner LEMBERG <wl@gnu.org>
8953 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8956 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
8958 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8960 * tmac/groff_mdoc.man: Fix synopsis.
8962 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
8964 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8965 Restore `doc-Pa-font'.
8967 2001-07-04 Werner LEMBERG <wl@gnu.org>
8969 * src/utils/indxbib/dirnamemax.c: Moved to ...
8970 * src/libs/libgroff/maxfilename.cc: Here.
8971 s/dir_name_max/file_name_max/.
8973 * src/include/lib.h: Add file_name_max.
8974 * src/utils/indxbib/indxbib.cc: Updated.
8975 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8978 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8980 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8982 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8983 REGION_TEMPLATE): New macros.
8984 (createAllPages, makeTempFiles): Use them.
8985 Include `nonposix.h'.
8986 (html_system): New function.
8987 (createAllPages, createImage): Use it.
8990 * tmac/www.tmac: Fix typos.
8992 2001-07-03 Werner LEMBERG <wl@gnu.org>
8994 * tmac/www.tmac: Disable hyphenation in normal text only if output
8996 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8997 * tmac/groff_mwww.man, NEWS: Updated.
8999 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
9001 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
9004 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
9006 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
9007 doc-display-ps-stack): Implement font and font size stack for
9010 2001-07-02 Werner LEMBERG <wl@gnu.org>
9012 * REVISION: Increased to 2.
9013 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
9015 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
9016 beginning of a line.
9017 * src/groff/grog/grog.sh: Ditto.
9019 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
9021 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
9024 2001-06-27 Werner LEMBERG <wl@gnu.org>
9026 Fix problems with preprocessor string for `man' program.
9028 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
9029 Updated/added copyright.
9030 Moved Emacs's local variable to identify nroff mode to the end of
9031 the file; add local variable if missing.
9033 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
9035 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
9036 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
9037 * configure: Regenerated.
9039 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
9041 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
9042 * configure: Regenerated.
9044 2001-06-24 Werner LEMBERG <wl@gnu.org>
9046 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
9048 * doc/pic.ms: Fix typos.
9050 Version 1.17.1 released
9051 =======================
9053 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
9055 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
9056 * configure: Updated.
9058 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
9060 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
9062 * src/roff/troff/dic.cc (blank_line): Add html tag.
9064 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
9066 * src/roff/troff/input.cc (do_suppress): Fix typo.
9068 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
9070 Added two new options (-D and -I) to specify image names and a
9071 subdirectory to place the images in.
9073 Change syntax from \\Ox to \\O[x].
9075 * src/devices/grohtml/post-html.cc (main): Add options.
9077 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
9078 Use `NULL' instead of `0' for null string pointers.
9079 (MAX_RETRIES): New macro.
9080 (lengthOfintToStr, intToStr, make_message): New functions.
9081 (makeFileName): Make function static.
9082 Implement -D and -I options.
9083 (checkImageDir): New function.
9084 (write_end_image, write_start_image): Use new syntax of \O.
9085 (createAllPages, removeAllPages): Implement -D and -I options. Use
9087 (createImage): Use make_message().
9088 (addps4html): Add guard for malloc().
9089 (usage, scanArguments): Updated.
9090 (makeTempFiles): Use mkstemp().
9091 (removeTempFiles): Use unlink().
9092 (findPrefix): Add guard for malloc().
9094 * src/roff/troff/input.cc (get_delim_file_name): New function to
9096 (do_suppress): Updated to parse new syntax.
9097 * src/devices/grohtml/grohtml.man: Updated.
9098 * tmac/www.tmac: Updated to new syntax.
9102 2001-06-15 Werner LEMBERG <wl@gnu.org>
9104 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
9106 * src/devices/grohtml/grohtml.man: Minor improvements.
9108 2001-06-14 Werner LEMBERG <wl@gnu.org>
9110 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
9112 2001-06-11 Werner LEMBERG <wl@gnu.org>
9114 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
9115 line to specify preprocessor options -- mandb 2.3.1 only recognizes
9117 * src/preproc/grn/grn.man: Add proper '\" string.
9119 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
9121 * test-groff: Don't use PATH but GROFF_BIN_PATH.
9123 2001-06-08 Werner LEMBERG <wl@gnu.org>
9125 Updated to autoconf 2.50.
9127 * configure.in: Renamed to...
9128 * configure.ac: This.
9129 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
9130 (GROFF_OS390): Updated.
9131 * configure: Regenerated.
9133 2001-05-18 Werner LEMBERG <wl@gnu.org>
9135 * src/roff/troff/env.c, src/roff/troff/env.h,
9136 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
9139 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
9141 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
9143 2001-05-16 Werner LEMBERG <wl@gnu.org>
9145 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
9146 less than or equal zero; set it to 1 then.
9147 * src/roff/troff/node.h (node::node): Initialize `last'.
9149 2001-05-08 Werner LEMBERG <wl@gnu.org>
9151 * tmac/an-old.tmac: Make predefined strings work in compatibility
9153 Add troff version guard.
9154 * tmac/doc.tmac: Simplify version guard.
9156 2001-05-07 Werner LEMBERG <wl@gnu.org>
9158 The .ns and .rs requests are now honoured not only in the top-level
9159 but in all diversions (similar to UNIX troff).
9161 This change is based on a patch from Tadziu Hoffmann
9162 <hoffmann@usm.uni-muenchen.de>.
9164 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
9165 (top_level_diversion): Remove `no_space_mode' member.
9166 * src/roff/troff/div.cc (diversion::diversion,
9167 top_level_diversion::top_level_diversion): Updated.
9168 (macro_diversion::output): Reset `no_space_mode'.
9169 (no_space, restore_spacing): Use `curdiv' unconditionally.
9170 (space_request, blank_line): Check `curdiv->no_space_mode'.
9171 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
9172 `curdiv' unconditionally.
9173 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9176 2001-05-06 Werner LEMBERG <wl@gnu.org>
9178 Added two new requests `de1' and `am1' which are similar to `de' and
9179 `am' with the difference that compatibility mode is saved on entry,
9180 switched off during macro execution, and restored on exit.
9182 * src/roff/troff/input.h: Added two new special characters
9183 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
9184 * src/roff/troff/input.cc (input_iterator): Added two member
9185 functions `save_compatible_flag' and `get_compatible_flag'.
9186 (input_stack): Ditto.
9187 (string_iterator): Ditto. Also add private member
9188 `saved_compatible_flag'.
9189 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
9190 (calling_mode): New enumeration.
9191 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
9192 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
9193 (define_macro, define_indirect_macro, append_macro, ignore): Use
9195 (define_nocomp_macro, append_nocomp_macro): New functions.
9196 (init_input_requests): Updated.
9197 (do_request): Rename local variable `saved_compatible_flag' to
9198 `old_compatible_flag'.
9199 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9201 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
9202 public and trap-invoked macros. As a consequence, the man macros
9203 work in compatibility mode also.
9205 2001-05-06 Solar Designer <solar@openwall.com>
9207 * Makefile.in: Use $(mandir).
9209 2001-05-06 Alexios Zavras <zvr@pobox.com>
9211 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
9213 2001-05-05 Werner LEMBERG <wl@gnu.org>
9215 Added `.ns' number register: Returns 1 in no-space mode (if in
9216 top-level diversion), 0 otherwise.
9218 * src/roff/troff/div.cc (no_space_mode_reg): New class.
9219 (init_div_requests): Updated.
9220 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9223 2001-05-04 Werner LEMBERG <wl@gnu.org>
9225 * src/roff/nroff/nroff.man: Improved documentation (especially
9228 2001-05-02 Werner LEMBERG <wl@gnu.org>
9230 Added `brp' request: This is \p as a request.
9232 * src/roff/troff/env.cc (environment::do_break): Add parameter
9234 (do_break_request): New function (was `break_request').
9235 (break_request): Calls `do_break_request'.
9236 (break_spread_request): New; calls `do_break_request'.
9237 (init_env_requests): Updated.
9238 * src/roff/troff/env.h: Updated.
9239 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9241 * REVISION: Increased to 1.
9242 * win32-diffs: Updated.
9244 2001-05-01 Werner LEMBERG <wl@gnu.org>
9246 * tmac/an-old.tmac: Fix minor compatibility mode issue.
9247 * tmac/troffrc-end: Make it really work in compatibility mode.
9249 2001-04-27 Werner LEMBERG <wl@gnu.org>
9251 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
9254 2001-04-22 Werner LEMBERG <wl@gnu.org>
9256 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
9257 latest versions from glibc CVS archive.
9259 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
9260 <c.zeelenberg@hccnet.nl>.
9262 2001-04-21 Werner LEMBERG <wl@gnu.org>
9264 * configure.in: Move check for mkstemp() to...
9265 * aclocal.m4 (GROFF_MKSTEMP): This new function.
9266 * configure: Regenerated.
9268 * src/include/groff-getopt.h: Don't use variable names in
9271 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
9272 * src/devices/grohtml/Makefile.sub,
9273 src/devices/grohtml/post-html.cc: Updated.
9275 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
9277 * configure.in: Add special check for mkstemp().
9278 * src/libs/libgroff/tmpfile.cc: Use it.
9279 * src/utils/indxbib/indxbib.cc: Ditto.
9280 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
9281 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
9284 2001-04-20 Bruce Lilly <blilly@erols.com>
9286 `Version_string' as C++ object was not visible to linker from C
9288 Add `const' to `Version_string'.
9290 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
9291 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
9292 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
9293 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
9294 (scanArguments), src/preproc/refer/refer.cc (main),
9295 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
9296 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
9297 (main), src/devices/grohtml/post-html.cc (main),
9298 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
9299 (main), src/utils/hpftodit/hpftodit.cc (main),
9300 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
9301 (main), src/utils/lkbib/lkbib.cc (main),
9302 src/utils/addftinfo/addftinfo.cc (main): Implement it.
9304 * src/roff/groff/pipeline.c: Add _UWIN.
9305 * src/include/nonposix.h: Ditto.
9307 2001-04-20 Werner LEMBERG <wl@gnu.org>
9309 * src/include/lib.h: Use HAVE_STRERROR.
9310 * src/roff/groff/pipeline.c: Ditto.
9311 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
9312 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
9313 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
9314 * win32-diffs: Updated.
9315 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
9317 2001-04-19 Werner LEMBERG <wl@gnu.org>
9319 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
9320 instead of hardwired `"troff"'.
9321 (char_buffer::read_file): Remove unused variables.
9322 (char_buffer::write_file_troff): Ditto.
9323 (char_buffer::write_file_html): Ditto.
9324 (generateImages): Ditto.
9326 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
9328 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
9330 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
9331 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
9332 index_search_item::search1): Ditto.
9333 * src/roff/troff/node.h (width_list): Reorder members.
9334 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
9335 (lookup_warning): Ditto.
9336 (prepend_string): Commented out.
9337 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
9338 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
9339 * src/preproc/tbl/main.cc (process_format): Ditto.
9340 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
9342 * src/preproc/pic/pic.cc: Updated.
9343 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
9344 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
9345 * src/preproc/refer/command.cc (execute_command): Ditto.
9346 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
9347 * src/preproc/refer/token.cc (lookup_token): Ditto.
9348 * src/preproc/soelim/soelim.cc: Ditto.
9349 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
9350 (isHexDigit): Commented out.
9351 (pushBackBuffer::isString): Remove unused variable.
9352 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
9354 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
9355 resource_manager::read_resource_arg, read_one_of, parse_extensions):
9357 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
9358 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
9359 lookup_paper_size): Ditto.
9360 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
9361 (text_glob, element_list): Reorder members.
9362 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
9364 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
9365 return value to `void'.
9366 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
9368 * src/devices/grohtml/html.h (simple_output::check_newline,
9369 simple_output::space_or_newline, simple_output::enable_newlines):
9371 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
9373 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
9374 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
9375 output_ligatures, output_charset, read_map): Ditto.
9376 * src/utils/lookbib/lookbib.cc (main): Ditto.
9377 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
9378 (do_file): Fix typo (`=' -> `==').
9379 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
9380 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
9382 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
9384 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
9385 Fix usage of GROFF_BIN_PATH.
9386 * src/roff/nroff/nroff.man: Updated.
9388 2001-04-18 Werner LEMBERG <wl@gnu.org>
9390 * NEWS: Fixing typos.
9393 Version 1.17 released
9394 =====================
9396 2001-04-17 Werner LEMBERG <wl@gnu.org>
9398 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9399 directory, not in $(srcdir).
9401 2001-04-16 Werner LEMBERG <wl@gnu.org>
9403 * doc/groff.texinfo: More info on conditionals.
9405 2001-04-15 Werner LEMBERG <wl@gnu.org>
9407 * doc/groff.texinfo: Added some info about groff internals.
9409 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9410 about missing special character only if the name is non-null.
9412 2001-04-14 Werner LEMBERG <wl@gnu.org>
9414 Removing the grohtml-old device driver which is now obsolete.
9416 * src/devices/grohtml-old/*: Removed.
9417 * font/devhtml-old/*: Removed.
9418 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9420 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9421 * test-groff (PATH): Updated.
9422 * tmac/Makefile.sub (NORMALFILES): Updated.
9423 * tmac/an-old.tmac: Remove special code for html-old device.
9424 Replace `html-or-html-old' register with `an-html'.
9425 * tmac/eqnrc: Updated.
9426 * tmac/html-old.tmac: Removed.
9427 * tmac/troffrc, tmac/troffrc-end: Updated.
9428 * tmac/www.tmac: Remove special code for html-old device.
9429 Replace `html-or-html-old' register with `www-html'.
9431 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9432 src/libs/libgroff/htmlindicate.cc (graphic_end),
9433 include/htmlindicate.h, src/preproc/grn/*.cc,
9434 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9435 single argument for consistency with rest of source code.
9437 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9439 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
9441 * src/roff/troff/troff.man: Fixing typos.
9443 2001-04-13 Werner LEMBERG <wl@gnu.org>
9445 * doc/pic.ms: Fixing many font switches.
9446 * doc/groff.texinfo: Fixes, additions.
9447 * MORE.STUFF: Updated.
9449 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
9451 * src/devices/grohtml/grohtml.man: Updated manual page regarding
9453 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9455 (removeTempFiles): New function to tidy up temporary files.
9456 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9457 Many fixes to do with the new inline suppress node and image regions
9459 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9460 (generate_img_src): New function.
9461 (html_printer::do_auto_image): Utilizes it.
9462 (do_heading, do_title): Include inline images within their contents.
9463 (html_printer::begin_page): Tidied up comments that are issued to
9464 the html output file.
9465 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9467 (text_glob::is_br): New method used by do_heading.
9468 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9469 equivalent diversion.
9470 * src/include/html-strings.h: Altered image tags to reflect the
9472 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9474 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9475 it is already inside a pic image. Only emit tags if the argument
9476 `-Tps:html' is present.
9477 * src/preproc/tbl/main.cc: Changes to reflect additional
9478 `html_end_suppress' parameter.
9479 * src/roff/troff/env.cc: Only emit eol tag if a node has been
9480 emitted since the last eol tag was written.
9481 * src/roff/troff/env.h: New boolean `emitted_node'.
9482 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9483 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
9484 * src/roff/troff/node.cc (check_charinfo): New method.
9485 (troff_output_file::determine_line_limits): Alterations to limit
9487 * tmac/www.tmac: Changes to reflect new suppress nodes.
9489 2001-04-12 Bruno Haible <haible@clisp.cons.org>
9491 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9492 Escape the html_glyph in the buffer.
9493 (str_translate_to_html): Output the unescaped escaped_char.
9494 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9495 `frame=void', not `frame=none'. Add `border=0'.
9497 2001-04-12 Werner LEMBERG <wl@gnu.org>
9499 * PROBLEMS: Add some words on how to avoid wrapper macros.
9501 2001-04-11 Blake McBride <blake@florida-software.com>
9503 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9505 2001-04-11 Werner LEMBERG <wl@gnu.org>
9507 * font/devlbp/Makefile.sub (CLEANADD): Set it.
9508 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9509 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9510 * Makefile.sub (DISTCLEANFILES): Here.
9512 * libs/libgroff/new.cc: Include `nonposix.h'.
9513 * win32-diffs: Updated.
9515 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
9517 Added skeleton macro for defunct macros.
9519 Updated documentation.
9521 When inside displays, an empty input line warning should be
9522 suppressed. If another macro call is put inside a display,
9523 all subsequent empty lines found in that display caused a
9524 warning to be emitted.
9526 * tmac/doc.tmac (doc-defunct-macro): New macro.
9527 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9528 (doc-restore-global-vars): Fixed typo.
9529 (doc-empty-line): Check the `doc-display-depth' register to
9530 determine whether we are inside display or not.
9532 * tmac/doc-common: Removed `Or' and `Sf' registers.
9533 Moved obsolete `Ds' macro to doc.tmac.
9535 * tmac/groff_mdoc.man: Bump document date.
9536 Document `.Vt' under ``Variable Types''.
9537 Removed documentation for obsolete `.Or' macro.
9539 2001-04-10 Werner LEMBERG <wl@gnu.org>
9542 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9544 2001-04-10 Bruno Haible <haible@clisp.cons.org>
9546 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9547 (usage): Add stream argument. Don't exit.
9548 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9549 Write --version output to stdout, not stderr.
9550 (usage): Add stream argument. Don't exit.
9551 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9552 (usage): Add stream argument. Don't exit.
9553 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9555 (usage): Add stream argument. Don't exit.
9556 (main): Write --help output to stdout, not stderr.
9557 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9558 (usage): Add stream argument. Don't exit.
9559 * src/devices/grops/ps.cc (main): Accept --help and --version.
9560 (usage): Add stream argument. Don't exit.
9561 * src/devices/grotty/tty.cc (main): Accept --help and --version.
9562 (usage): Add stream argument. Don't exit.
9563 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9564 (main): Accept --help and --version.
9565 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9566 (main): Accept --help and --version.
9567 * src/preproc/html/pre-html.cc (usage): Add stream argument.
9568 (scanArguments): Accept --help and --version.
9569 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9570 (main): Accept --help and --version.
9571 * src/preproc/refer/refer.cc (main): Accept --help and --version.
9572 (usage): Add stream argument. Don't exit.
9573 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9575 (main): Accept --help and --version.
9576 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9577 (main): Accept --help and --version.
9578 * src/roff/groff/groff.cc (main): Accept --help and --version.
9579 (synopsis): Add stream argument.
9580 (help): Write --help output to stdout, not stderr.
9581 (usage): Add stream argument. Don't exit.
9582 * src/roff/grog/grog.pl: Accept --help and --version.
9584 * src/roff/grog/grog.sh: Accept --help and --version.
9585 * src/roff/nroff/nroff.sh: Accept --help and --version.
9586 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9587 (usage): Add stream argument. Don't exit.
9588 (main): Accept --help and --version.
9589 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9590 (usage): New function with stream argument, doesn't exit.
9591 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9592 (usage): New function with stream argument, doesn't exit.
9593 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9594 (usage): Add stream argument. Don't exit.
9595 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9596 (main): Accept --help and --version.
9597 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9599 (main): Accept --help and --version.
9600 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9601 (main): Accept --help and --version.
9602 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9603 (usage): Add stream argument. Don't exit.
9605 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
9607 Fix indentation in SYNOPSIS.
9609 Updated to include changes of latest BSD mdoc version (basically,
9610 the only change is that `.Fn' and `.Fc' put a final semicolon after
9611 a function declaration in the SYNOPSIS section).
9613 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9614 (doc-in-synopsis-section): New variable. Updated all related
9616 (doc-indent-synopsis-active): New register.
9617 (Nd, Fn, Fo): Use it.
9618 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9619 `.Cd' with long argument line produces indented wrapped lines.
9620 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9621 undesirable line break to be output.
9622 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9624 (Fn, Fc): Add final `;' to output.
9625 (doc-save-global-vars, doc-restore-global-vars): Updated.
9626 * tmac/doc-common: Remove `Ex' register.
9628 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9631 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9633 * tmac/doc.tmac (Cd): Simplify code.
9634 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9636 2001-04-06 Werner LEMBERG <wl@gnu.org>
9638 Implement continuous underlining for nroff mode. To do that, a new
9639 request in the ditroff language has been added: `x u N' (N is 0
9642 \X and \Y are now transparent to end-of-sentence recognition.
9644 * src/include/printer.h (printer): Add `type' parameter to `special'
9646 * src/libs/libdriver/printer.cc (printer::special): Updated.
9647 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9649 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9650 specials of type `p'.
9651 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9652 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9653 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9654 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9655 (glyph::order): New method.
9656 (tty_printer::add_char): Use it.
9657 (tty_printer::special): New method.
9658 (tty_printer::end_page): Implement it.
9660 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9661 * src/roff/troff/node.cc (special_node::special_node): Add parameter
9662 to set `no_init_string'.
9663 (special_node::tprint_start): Use it.
9664 (special_node::same, special_node::copy): Updated.
9665 (special_node::ends_sentence): New method.
9666 (troff_output_file::start_special): Add parameter to include
9667 inititialization of special conditionally.
9669 * src/roff/troff/env.h (environment): New member `underline_spaces'.
9670 * src/roff/troff/env.cc (do_underline_special): New function.
9671 (environment::set_font): Use it.
9672 (do_underline): Use it. This was `underline()'.
9673 (underline): Call `do_underline()'.
9674 (continuous_underline): New function which calls `do_underline()'.
9675 (environment::newline): Use `do_underline_special()'.
9676 (init_env_requests): Updated.
9678 * NEWS, man/troff_out.man: Updated.
9680 2001-04-06 Bruno Haible <haible@clisp.cons.org>
9682 * font/devutf8/R.proto: Fix code of 'shc'.
9684 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
9686 Many fixes. Diag lists can now be nested also; additionally,
9687 `-compact' and `-offset' are supported.
9689 * tmac/doc.tmac (doc-have-indent): Replaced with ...
9690 (doc-list-have-indent-stackXXX): A new register stack.
9691 (doc-have-diag-list): Removed.
9692 (Bl): Use `doc-list-have-indent-stackXXX'.
9694 (doc-diag-list): Use `doc-compact-list-stackXXX'.
9695 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9696 (doc-set-vertical-and-indent): Ditto.
9697 (doc-next-list-depth): Removed.
9698 (doc-increment-list-stack): Updated.
9699 (doc-decrement-list-stack): Use `doc-list-depth' instead of
9700 `doc-next-list-depth'.
9701 (doc-end-list, doc-end-column-list): Don't use
9702 `doc-increment-list-stack'.
9703 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9704 (doc-save-global-vars, doc-restore-global-vars): Updated.
9705 * tmac/doc-common: Updated.
9706 * tmac/groff_mdoc.man: Updated.
9709 2001-04-02 Werner LEMBERG <wl@gnu.org>
9711 * src/devices/grotty/grotty.man: Fix grammatical error.
9713 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
9715 Remove .Ld from mdoc package; replace it with special handling of
9718 * tmac/doc-common: Remove `Ld' register.
9719 Uncomment `doc-volume-ds-*' strings.
9720 Remove `doc-operating-system-default'.
9722 * tmac/doc-syms (Ld): Removed.
9723 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9727 * tmac/groff_mdoc.man: Many fixes and updates.
9729 2001-03-29 Werner LEMBERG <wl@gnu.org>
9731 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
9732 Bond <tkb@tkb.mpl.com>.
9733 * tmac/www.tmac: Save compatibility mode.
9735 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
9737 * tmac/groff_mdoc.man: Many fixes.
9739 2001-03-28 Werner LEMBERG <wl@gnu.org>
9741 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9744 2001-03-27 Werner LEMBERG <wl@gnu.org>
9746 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9747 diversion. This fixes overlong tags.
9749 2001-03-26 Werner LEMBERG <wl@gnu.org>
9751 * doc/groff.texinfo: Fixed and improved documentation of fonts.
9752 * tmac/doc-syms: Fix error messages.
9753 * tmac/an-old.tmac: Remove incorrect double backslashes.
9755 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
9757 * tmac/Makefile.sub: Strip mdoc.local also
9758 * tmac/strip.sed: Fixed.
9760 2001-03-24 Werner LEMBERG <wl@gnu.org>
9762 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9763 selecting the font size.
9764 * tmac/groff_mdoc.man, NEWS: Document it.
9766 2001-03-23 Werner LEMBERG <wl@gnu.org>
9768 * src/roff/troff/div.cc (save_vertical_space): Add default argument
9770 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9771 argument to restore previous font family.
9772 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9774 * doc/groff.texinfo: More fixes and additions (mainly for font
9775 manipulating commands).
9777 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9778 * tmac/groff_mdoc.man: This. The quick reference has been removed.
9779 * tmac/Makefile.sub, NEWS: Updated.
9781 2001-03-23 Werner LEMBERG <wl@gnu.org>
9783 Replaced mdoc implementation. The new version is `state of the
9784 art', using almost all new features of groff 1.17 -- it won't run
9785 with older versions.
9787 * tmac/doc.tmac: Completely rewritten.
9788 * tmac/doc-common: Ditto.
9789 * tmac/doc-nroff: Ditto.
9790 * tmac/doc-ditroff: Ditto.
9791 * tmac/doc-syms: Ditto.
9792 * tmac/mdoc.local: New file.
9793 * tmac/groff_mdoc.samples.man: Replaced with ...
9794 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9795 * tmac/strip.sed: Updated.
9796 * tmac/Makefile.sub: Updated.
9799 * tmac/groff_man.man: Add `man.local' to the FILES section.
9801 2001-03-22 Werner LEMBERG <wl@gnu.org>
9803 * doc/groff.texinfo: Added many @noindent.
9804 Replaced @end_Example -> @endExample.
9805 Added info whether registers are r/o.
9806 Many other additions and fixes.
9808 2001-03-21 Werner LEMBERG <wl@gnu.org>
9810 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9811 in makeinfo of texinfo 4.0) to be used in @Def* macros.
9812 Improved @Def* macros: Now the exact syntax of request, register,
9813 and escapes is shown.
9814 Added macros for parentheses and brackets to be used in @Def*.
9815 Many fixes and improvements of the documentation.
9817 2001-03-20 Werner LEMBERG <wl@gnu.org>
9819 * doc/groff.texinfo: Added new index: `st' (for strings).
9820 Added macros @Defstr(x).
9821 Added macro @Example (adding @group).
9822 Other minor improvements.
9824 2001-03-19 Werner LEMBERG <wl@gnu.org>
9826 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9827 `rq' for requests. `fn' is no longer used.
9828 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9831 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9832 number with name of man page.
9834 2001-03-19 Larry Kollar <kollar@alltel.net>
9836 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
9839 2001-03-19 Werner LEMBERG <wl@gnu.org>
9841 * man/groff_font.man: Document `prepro', `postpro', and `print'.
9842 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9843 * src/devices/grohtml/grohtml.man: Fixing typos.
9845 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
9847 * tmac/s.tmac (@IP): Pass `.ip' html tag.
9848 * tmac/groff_mwww.man: Remove .LINE macro
9849 * tmac/www.tmac (LINE): Add `.ti'.
9851 * src/devices/grohtml/post-html.cc (html_printer): New member
9853 (html_printer::emit_raw): Use it.
9854 (html_printer::do_linelength): Ditto.
9855 (html_printer::do_pageoffset): Ditto.
9856 (html_printer::do_indentation): Ditto.
9857 (html_printer::do_tempindent): Ditto.
9858 (html_printer::do_break): Ditto.
9859 (html_printer::begin_page): Ditto.
9860 (html_printer::do_indentedparagraph): New function.
9861 (html_printer::troff_tag): Handle `.ip'.
9862 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9863 Add `<td width=...>' handling.
9864 (html_text::do_table): Add parameter.
9865 (html_text::do_indent): Updated.
9866 * src/devices/groohtml/html-text.h: Updated.
9868 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
9870 Introduced simple html tables to implement indentation.
9872 * src/devices/grohtml/html.h (word, word_list): New structures.
9873 (simple_output): Use it.
9874 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9875 (html_printer): Improve indentation handling.
9876 (html_printer::emit_raw): Set `in_table' element. Handle
9878 (html_printer::write_header): Move conditional downwards.
9879 Don't allow whitespace in tags.
9880 (html_printer::do_linelength): Handle line length and indentation
9882 (html_printer::do_pageoffset): Handle indentation conditionally.
9883 (html_printer::do_indentation): Ditto.
9884 (html_printer::do_tempindent): New function member.
9885 (html_printer::do_fill): Take care of indentation.
9886 (html_printer::do_flush): Finish table.
9887 (html_printer::do_links): Ditto.
9888 (html_printer::do_break): New function for handling `.br' and `.ti'.
9889 (html_printer::troff_tag): Use it.
9891 (html_printer::flush_globs): Fix.
9892 (html_printer::flush_page): Finish table.
9893 (html_printer::html_printer): Fix error message. Set up
9895 (html_printer::add_to_sbuf): Remove special handling of character
9897 (to_unicode): Remove `stop()'.
9898 (html_printer::write_title): Cleanup.
9899 (html_printer::begin_page): Use `put_string()'. Handle indentation.
9900 (html_printer::~html_printer): Flush text and end the line.
9902 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9903 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9905 (html_text::start_tag): Disable newlines.
9906 (html_text::table_is_void): New function.
9907 (html_text::issue_table_begin): Ditto.
9908 (html_text::issue_table_end): Ditto.
9909 (html_text::push_para): Better table handling.
9910 (html_text::do_indent): New function.
9911 (html_text::do_table): Ditto.
9912 (html_text::done_table): Ditto.
9913 (html_text::do_tt): Handle PRE_TAG.
9914 (html_text::is_in_table): New function.
9915 (html_text::check_emit_text): Handle tables.
9916 (html_text::do_emittext): Use `nl()'.
9917 (html_text::do_para): Handle table.
9918 (html_text::remove_def): New function.
9919 * src/devices/grohtml/output.cc (word, word_list): Implement
9921 (simple_output::end_line): Flush last word.
9922 (simple_output::simple_comment): Ditto.
9923 (simple_output::begin_comment): Recoded.
9924 (simple_output::end_comment): Ditto.
9925 (simple_output::comment_arg): Removed.
9926 (simple_output::check_newline): Improve test and flush last word.
9927 (simple_output::space_or_newline): Improved.
9928 (simple_output::write_newline): Replaced with...
9929 (simple_output::nl): This.
9930 (simple_output::put_raw_char): Flush last word.
9931 (simple_output::check_space): Removed.
9932 (simple_output::put_translated_string): Ditto.
9933 (simple_output::put_string): Simplified.
9934 (simple_output::put_number): Updated.
9935 (simple_output::put_float): Ditto.
9936 (simple_output::put_symbol): Removed.
9937 (simple_output::enable_newlines): Add `check_newline()'.
9938 (simple_output::flush_last_word): New function.
9940 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9941 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9943 * tmac/s.tmac (@PP, @IP): Add html conditional code.
9944 * tmac/an-old.tmac (TP): Ditto.
9946 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
9948 * mdate.sh: Make it POSIX compliant.
9950 2001-03-09 Werner LEMBERG <wl@gnu.org>
9952 Added the `return' request to end a macro immediately. It simply
9953 pops iterators from the input stack until a macro iterator is found.
9955 * src/roff/troff/input.cc (input_iterator::is_macro,
9956 macro_iterator::is_macro): New member.
9957 (input_return_boundary): New class to signal an immediate return
9959 (input_stack::add_return_boundary, input_stack::is_return_boundary):
9961 (input_stack::clear): Use it.
9962 (input_stack::pop_macro): New function.
9963 (while_request): Use `is_return_boundary()'.
9964 (return_macro_request): New function.
9965 (init_input_requests): Use it.
9967 * src/roff/troff/TODO: Updated.
9968 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9970 2001-03-08 Werner LEMBERG <wl@gnu.org>
9972 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9975 2001-03-07 Werner LEMBERG <wl@gnu.org>
9977 Make `\B' more rigid.
9979 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9981 (get_number_rigidly): New function.
9982 * src/roff/troff/input.cc (do_expr_test): Use it.
9983 * src/roff/troff/token.h: Updated.
9985 * src/roff/troff/request.h: Fix typo (init_html_request ->
9986 init_markup_request).
9988 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
9990 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
9991 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9992 are now `.begin', `.end', `.image'.
9994 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9995 (html_printer::add_to_sbuf): Changing type of `code' parameter.
9996 Use add_char_to_sbuf().
9997 (to_unicode): New function.
9998 (char_translate_to_html): Changing type of `ch' parameter.
10000 (html_printer::~html_printer): Comment out doctype string.
10001 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
10002 instead of `.html-end'.
10003 (write_start_image): Use `.begin' and `.image' instead of
10004 `.html-begin' and `.html-image'.
10005 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
10006 (html_begin): Renamed to ...
10008 (html_end): Renamed to ...
10010 (html_image): Renamed to ...
10012 (init_html_requests): Renamed to ...
10013 (init_markup_requests): This.
10014 * tmac/www.tmac: Updated.
10016 2001-02-28 Bram <bram@avontuur.org>
10018 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
10021 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
10023 * doc/meref.me: Fixing some typos.
10025 2001-02-16 Werner LEMBERG <wl@gnu.org>
10027 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
10028 method. Return `HYPHEN_MIDDLE' if it was `\:'.
10029 * src/roff/troff/node.h: Updated.
10031 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
10033 * tmac/groff_tmac.man: Fix typo.
10035 2001-02-16 Werner LEMBERG <wl@gnu.org>
10037 Fixing a bug which prevented proper end-of-sentence recognition
10038 between an `unformatted' box and the following text. As a
10039 consequence, vertical line distances are no longer preserved in
10040 boxes after a call to `.unformat' -- because boxes aren't
10041 line-oriented (contrary to diversions), this doesn't make sense
10044 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
10046 (vertical_size_node::set_unformat_flag): New method.
10047 * src/roff/troff/node.hh: Updated.
10048 * src/roff/troff/input.cc (word_space_node::reread,
10049 hmotion_node::reread): Reset `unformat' flag after usage.
10050 (unformat_macro): Append only if `set_unformat_flag()' returns
10052 * src/roff/troff/troff.man: Updated.
10054 2001-02-15 Werner LEMBERG <wl@gnu.org>
10056 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
10057 documentation of `asciify' and `unformat' requests.
10059 2001-02-13 Werner LEMBERG <wl@gnu.org>
10061 Redesigned the `unformat' request. It is no longer connected with
10062 `asciify' but rather uses new `reread()' methods if the `unformat'
10063 flag is set. Additionally, the handling of space characters after
10064 unformatting has been fixed so that they retain their width.
10066 * src/roff/troff/node.h (width_list): New structure to store
10067 original widths of spaces.
10068 (node): Added `unformat' member.
10069 Replaced `num_spaces' variable with `orig_width' list.
10070 * src/roff/troff/node.cc (*node::asciify,
10071 asciify_reverse_node_list): Removed `unformat_only' flag and related
10073 (word_space_node::asciify, word_space_node::word_space_node): Use
10075 (word_space_node::~word_space_node): New destructor.
10076 (word_space_node::copy): Updated to handle `orig_width'.
10077 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
10078 (*node::merge_space): Update `orig_width' list if necessary.
10079 (*node::set_unformat_flag): New methods to set the `unformat' flag.
10080 * src/roff/troff/enc.cc (environment::space_newline): Use
10082 (environment::space): Added method to handle space width and
10083 sentence space width as parameters. Use `width_list'.
10084 (environment::make_tab_node): Updated.
10085 * src/roff/troff/env.h: Updated.
10086 * src/roff/troff/input.cc (word_space_node::reread,
10087 unbreakable_space_node::reread, hmotion_node::reread): New methods
10088 to handle nodes specially if `unformat' flag is set.
10089 (do_asciify_macro): Renamed back to ...
10090 (asciify_macro): This.
10091 (unformat_macro): New implementation to simply set the `unformat'
10094 * MORE.STUFF: Added more info about deroff.
10096 2001-02-08 Werner LEMBERG <wl@gnu.org>
10098 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
10099 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
10100 and `add_self()' methods to avoid hyphenation. For example, the
10101 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
10102 soft hyphen after `foo'. Now the hyphen list is correctly
10103 `foo<ignore><ignore>bar'.
10105 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
10107 * tmac/groff_tmac.man: Fix `BIR' macro.
10109 2001-02-04 Werner LEMBERG <wl@gnu.org>
10111 A new escape sequence `\:', inserting a zero-width break point.
10113 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
10114 * src/roff/troff/input.cc (get_copy, token::next, asciify):
10116 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
10118 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
10119 and `asciify()' methods.
10120 * src/roff/troff/node.cc (space_node::space_node): Updated.
10121 (space_node::asciify): Handle `was_escape_colon'.
10122 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10124 Handle `\~' similar to other comparable requests.
10126 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
10128 (token::next): Move creation of an unbreakable_space_node to...
10129 (token::add_to_node_list): Here.
10131 Fix a bug which sometimes prevented hyphenation of words connected
10132 with `\~' or `\ ' (and other escape sequences handled as
10133 TOKEN_NODE). This also fixes a hyphenation problem with boxes
10134 (after a call to the `unformat' request).
10136 * src/roff/troff/env.h (environment::possibly_break_line,
10137 environment::hyphenate_line): Introducing `start_here' parameter.
10138 * src/roff/troff/env.cc (environment::space_newline,
10139 environment::space): Use it.
10140 (environment::possibly_break_line, environment::hyphenate_line):
10142 * src/roff/troff/input.cc (process_input_stack): Use it.
10143 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
10144 space_char_hmotion_node, overstrike_node): Add
10145 `get_hyphenation_type()' method.
10146 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
10147 if `unformat_only' is active.
10149 2001-01-30 Werner LEMBERG <wl@gnu.org>
10151 Implemented new read-only number register `.linetabs' which
10152 returns 1 if in line-tabs mode, 0 otherwise.
10154 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
10155 * src/roff/troff/env.cc (get_line_tabs): New function.
10156 (init_env_requests): Use it.
10157 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10159 * VERSION, REVISION: Changing to 1.17.0.
10161 2001-01-28 Werner LEMBERG <wl@gnu.org>
10163 Fixed a bug which prevented hyphenation of words which are finished
10166 * src/roff/troff/token.h (token): Add enum type
10167 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
10168 * src/roff/troff/input.cc (token::next, token::description,
10169 get_line_arg, token::add_to_node_list, token::process): Use it.
10171 2001-01-27 Werner LEMBERG <wl@gnu.org>
10173 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
10174 * src/roff/troff/div.cc (do_divert): Use it.
10176 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
10178 2001-01-25 Werner LEMBERG <wl@gnu.org>
10180 Adding the `linetabs' request. If set, tab distances are not
10181 computed relative to the input line but relative to the output line.
10183 * src/roff/troff/env.h (environment): New member `line_tabs'.
10184 * src/roff/troff/env.cc (line_tabs_request): Implement request.
10185 (environment::environment, environment::copy): Updated.
10186 (environment::distance_to_next_tab): Use `line_tabs'.
10187 (init_env_requests): Register request.
10188 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
10191 2001-01-24 Werner LEMBERG <wl@gnu.org>
10193 Introducing a new read-only register `.int' which is set to a
10194 positive value if the last output line is interrupted (i.e., if it
10197 * src/roff/troff/env.cc (init_env_requests): Add it.
10198 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10200 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
10202 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
10203 * src/preproc/html/pre-html.cc (findPrefix): New function which
10204 generates the troff executable name via the system prefix.
10205 * src/preproc/eqn/main.cc: Modified warning message.
10207 2001-01-23 Werner LEMBERG <wl@gnu.org>
10209 troff's `box' and `boxa' requests didn't preserve temporary
10212 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
10213 `saved_target_text_length' members.
10214 * src/roff/troff/div.cc (do_divert): Use them.
10216 Tabs (but not yet leaders and fields) are now handled correctly by
10219 * node.h (hmotion_node): Add field `was_tab'.
10220 * env.cc (environment::make_tab_node): Set it.
10221 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
10223 Added new request `unformat' which will, contrary to `asciify',
10224 preserve font information after unformatting (i.e., only nodes
10225 dealing with horizontal space are converted back to input
10228 * input.cc (asciify_macro): Renamed to ...
10229 (do_asciify_macro): this, having a new parameter `unformat_only'.
10230 (asciify_macro, unformat_macro): New; using do_asciify_macro.
10231 (init_input_requests): Added `unformat'.
10232 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
10233 parameter to control asciification process.
10234 * node.h (*_node::asciify): Ditto.
10235 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10237 2001-01-20 Werner LEMBERG <wl@gnu.org>
10239 * doc/groff.texinfo: Minor improvement of `.in' documentation.
10241 2001-01-18 Werner LEMBERG <wl@gnu.org>
10243 * tmac/ps.tmac: Remove call of psold.tmac.
10244 * tmac/psold.tmac: Comment updated.
10245 * tmac/psnew.tmac: Removed since no longer needed.
10246 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
10248 * font/devutf8/R.proto: Adding `shc' glyph.
10249 * font/devutf8/NOTES: Updated.
10251 * test-groff: Updated.
10253 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
10255 First cut of the new html device driver. Changes to pre-html and
10256 the new grohtml are too numerous to be documented here.
10258 Stuff related to `html' has been renamed to `html-old' and `html2'
10259 stuff has been renamed to `html' (including directories). The new
10260 html device driver is therefore invoked as `-Thtml'.
10262 Added new `\O' escape to suppress output (needed by html driver).
10264 Added functions and code to pass info about input-level commands
10265 (`.in', `.fl', etc.) to html driver.
10267 Three new functions (.html-begin, .html-end, and .html-image) for
10268 better html handling: `html-begin' will execute the remaining line
10269 if at the outermost nesting level, increasing an internal counter.
10270 `html-end' does the same but decreases the internal counter.
10271 `html_image' puts its arguments into a special node (suppress_node)
10272 to define an image region.
10274 The `output' request has been removed.
10276 * tmac/html-tags.tmac: Removed.
10277 * tmac/arkup.tmac: Updated and renamed to ...
10278 * tmac/www.tmac: New file.
10279 * tmac/markup.tmac Updated and renamed to ...
10280 * tmac/mwww.tmac: New file.
10281 * tmac/Makefile.sub: Updated.
10282 * tmac/an-old.tmac: Updated.
10283 * tmac/eqnrc: Updated.
10284 * tmac/groff_man.man
10285 * tmac/groff_markup.man: Updated and renamed to ...
10286 * tmac/groff_mwww.man: New file.
10287 * tmac/groff_tmac.man: Updated.
10288 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
10289 * tmac/html.tmac: Updated and renamed from html2.tmac.
10290 * tmac/pspic.tmac: Updated html support.
10291 * tmac/s.tmac: Added html output support.
10292 * tmac/troffrc, tmac/troffrc-end: Updated.
10294 * Makefile.in, doc/Makefile: Updated.
10295 * doc/groff.texinfo: Added info about new `\O' escape.
10296 * doc/homepage.ms: Use `MAILTO' macro.
10298 * font/devhtml/DESC.proto: Add `C' font.
10299 * font/devhtml/Makefile.sub: Updated.
10300 * font/devhtml/R.proto: Minor fixes.
10301 * font/devhtml-old/Makefile.sub: Updated.
10303 * src/devices/grohtml-old/Makefile.sub: Updated.
10305 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
10307 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
10308 graphic_start): Add `inline' parameter. Update.
10309 (html_end_suppress, graphic_end): Update.
10311 * src/include/html-strings.h: New file.
10312 * src/include/htmlindicate.h: Comments updated.
10313 * src/include/printer.h: Updated.
10315 * src/preproc/eqn/main.cc (do_file, main): Updated.
10316 * src/preproc/pic/troff.cc (troff_output::start_picture,
10317 troff_output::finish_picture): Updated.
10318 * src/preproc/tbl/main.cc (process_input_file): Updated.
10320 * src/roff/groff/groff.cc (main): Updated.
10321 Pass device arguments to predrivers also.
10322 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
10323 * src/roff/troff/env.h (environment): Updated.
10324 New elements `need_eol' and `ignore_next_eol' (for html output).
10325 * src/roff/troff/env.cc (environment::environment): Add initializers
10326 for `need_eol' and `ignore_next_eol'.
10327 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
10329 (point_size, fill, no_fill, center, right_justify, line_length,
10330 indent, temporary_indent, break_request, handle_tab): Use
10332 (set_tabs): Use `add_html_tag_tabs()'.
10333 (environment::add_html_tag): Updated.
10334 (environment::do_break): Updated.
10335 * src/roff/troff/div.cc (space_request, flush_output): Use
10336 `environment::add_html_tag()'.
10337 * src/roff/troff/input.cc: Updated.
10338 New variable `html_level' to indicate nested `html-begin' requests.
10339 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
10340 (non_interpreted_char_node, token_node, non_interpreted_node): Add
10341 `force_tprint()' method.
10342 (token::next): Handle `\O'.
10343 (do_suppress): Implement it.
10344 (html_begin, html_end, html_image): New functions.
10345 (init_output_requests): Renamed to ...
10346 (init_html_requests): this.
10348 (macro::append_str, macro::append_unsigned, macro::append_int): New
10350 New variable `output_low_mark_miny' to limit minimal value of y.
10351 (reset_output_registers): Use it.
10352 (output_request): Removed.
10353 (get_output_registers): New function.
10354 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
10355 (*_node): Added `force_tprint()' if necessary.
10356 (special_node): New elements `tf' and `get_tfont()'.
10357 (suppress_node): New class.
10358 * src/roff/troff/node.cc:
10359 New global variables `image_no' and `suppress_start_page'.
10360 (real_output_file): New method `is_on()'.
10361 (troff_output_file): New method `start_special(tfont)'.
10362 (troff_output_file::really_print_line): Use `tprint' conditionally.
10363 (real_output_file::print_line): Updated.
10364 (real_output_file::on): Updated.
10365 (*_node): Added `force_tprint()'.
10366 (special_node::special_node): Initializer updated.
10367 (special_node::same, special_node::copy, special_node::tprint_start):
10369 (get_reg_int, get_reg_str): New functions.
10370 (suppress_node::*): New methods.
10371 New global variables last_position, last_image_filename;
10372 (min): New inline function.
10373 * src/roff/troff/reg.h, src/roff/troff/request.h,
10374 src/roff/troff/troff.h: Updated.
10376 2001-01-13 Werner LEMBERG <wl@gnu.org>
10378 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
10379 documentation of `asciify' request.
10381 2001-01-12 Werner LEMBERG <wl@gnu.org>
10383 * src/roff/troff/input.cc: Move definition of special characters
10384 like `ESCAPE_TILDE' to ...
10385 * src/roff/troff/input.h: New file.
10386 * src/roff/troff/Makefile.sub (HDRS): Add it.
10388 Extending the .asciify request to `unformat' space characters also.
10390 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10391 to count input space characters.
10392 Update constructors to take care of it.
10393 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10394 `ESCAPE_SPACE' instead of normal space.
10395 (word_space_node::asciify): New method.
10396 (unbreakable_space_node::asciify): New method.
10397 (word_space_node::merge_space): New method.
10398 * src/roff/troff/env.cc (environment::space_newline,
10399 environment::space): Add code to initialize `num_spaces' (using the
10400 constructor of `word_space_node').
10401 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10404 2001-01-09 Werner LEMBERG <wl@gnu.org>
10406 * man/groff_char.man: Use table header traps only conditionally.
10408 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
10410 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10412 2001-01-08 Werner LEMBERG <wl@gnu.org>
10414 Introducing the `box' and `boxa' requests which are similar to
10415 `di' resp. `da' but omitting a partially filled line (which is
10416 restored after ending the diversion).
10418 * src/roff/troff/div.h (diversion): Add elements to save partially
10420 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10421 partially filled line.
10422 (divert, divert_append): Updated.
10423 (box, box_append): New functions.
10424 (init_div_requests): Use them.
10425 * src/roff/troff/env.h (environment): do_divert() is now a friend.
10426 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10428 * doc/groff.texinfo: Fix documentation of `lf' request.
10430 2000-12-25 Werner LEMBERG <wl@gnu.org>
10432 * src/roff/troff/troff.man, NEWS: Document `writem' request.
10434 2000-12-21 Werner LEMBERG <wl@gnu.org>
10436 Ignore `ss' request if in compatibility mode.
10438 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10439 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10440 * src/roff/troff/env.cc (space_size): Use it.
10442 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10443 `ss' request in nroff mode.
10445 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10448 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
10450 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10452 2000-12-13 Werner LEMBERG <wl@gnu.org>
10454 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10455 * src/preproc/eqn/neqn.man: Small fixes and additions.
10457 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
10459 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10462 * src/preproc/eqn/neqn.man: New file.
10464 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10467 * tmac/e.tmac: Add `T&' macro.
10468 Fix `indent cannot be negative' warning.
10469 * tmac/s.tmac: Fix `indent cannot be negative' warning.
10471 2000-12-07 Werner LEMBERG <wl@gnu.org>
10473 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10475 2000-12-06 Werner LEMBERG <wl@gnu.org>
10477 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10480 * MORE.STUFF: Added info about deroff for djgpp.
10482 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10483 documentation of -rcR switch.
10485 2000-12-03 Werner LEMBERG <wl@gnu.org>
10487 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10488 if -rcR=1 (which is now the default in nroff mode), a single, very
10489 long page is created instead of multiple pages: All `ne' and `wh'
10490 requests are put into conditionals; a new macro `an-end' is added to
10491 be called with `em'.
10493 Some other minor cleanups.
10495 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10497 2000-12-02 Werner LEMBERG <wl@gnu.org>
10499 Fixing a bug which prevented hyphenation in words followed
10500 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10502 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10503 Adding possibly_break_line().
10504 * src/roff/troff/env.h (environment): Make possibly_break_line()
10507 Make `\~' usable in .tr request.
10509 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10510 (token): Add stretchable_space().
10511 * src/roff/troff/input.cc (token::next, token::delimiter,
10512 token::description, process_input_stack, do_translate,
10513 add_to_node_list, token::process): Use it.
10514 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10515 for adjusting the space.
10516 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
10517 for stretchable space.
10518 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10519 (make_node): Add code for stretchable space.
10520 * src/roff/troff/env.cc (environment::add_char): Use it.
10521 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10522 (get_copy, token::next, transparent_translate, asciify): Use it.
10524 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10525 doc/groff.texinfo: Updated.
10526 * man/groff.man: Small reorderings.
10528 2000-11-23 Werner LEMBERG <wl@gnu.org>
10531 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10533 * src/roff/troff/input.cc (main): Add `config_macro_path' and
10534 `safer_macro_path' to -M option.
10535 * src/roff/troff/troff.man: Fixes.
10537 2000-11-22 Werner LEMBERG <wl@gnu.org>
10539 Use safer path (except for config files) if -U isn't specified. Add
10540 a special macro path (without home and current directory) for config
10541 files. Add home directory to unsafe path for consistency. Don't
10542 include the home directory in the font path.
10544 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10546 * src/include/macropath.h: Add `config_macrp_path'.
10547 * src/libs/libgroff/fontfile.cc: Fix font path.
10548 * src/roff/troff/input.cc (process_startup_file): Use
10549 `config_macro_path'.
10550 (main): Select unsafe path if -U is given.
10552 * src/preproc/eqn/main.cc (main): Fixing search path for
10553 configuration file.
10554 * src/preproc/eqn/eqn.man: Updated.
10556 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10559 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10560 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10561 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10562 src/devices/grotty/grotty.man: Updated.
10564 * Makefile.in: Fix comments.
10566 2000-11-17 Werner LEMBERG <wl@gnu.org>
10568 * tmac/safer.tmac: Empty file added (again) for compatibility
10570 * tmac/Makefile.sub: Updated.
10572 2000-11-16 Werner LEMBERG <wl@gnu.org>
10574 * src/devices/grodvi/dvi.cc (main),
10575 src/devices/grohtml2/post-html.cc (main),
10576 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10577 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10578 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10579 (main), src/preproc/html2/pre-html.cc (main),
10580 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10581 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10582 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10583 (main), src/utils/hpftodit/hpftodit.cc (main),
10584 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10585 (main), src/utils/lookbib/lookbib.cc (main),
10586 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10587 (main): Use stdout for -v.
10588 * src/roff/groff/groff.cc (run_commands),
10589 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10590 to make direct printing to stdout possible.
10591 * src/roff/groff/pipeline.h: Updated.
10593 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10594 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10595 * src/utils/afmtodit/afmtodit.man: Updated.
10597 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10598 (version): New function.
10600 * src/utils/addftinfo/addftinfo.man: Updated.
10602 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10603 Fixing copyright dates.
10605 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10608 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10611 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10613 2000-11-15 Werner LEMBERG <wl@gnu.org>
10615 In all programs, make -v return immediately with exit status 0 to
10616 be compliant with the GNU standard.
10618 * src/devices/grodvi/dvi.cc (main),
10619 src/devices/grohtml2/post-html.cc (main),
10620 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10621 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10622 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10623 (main), src/preproc/html2/pre-html.cc (main),
10624 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10625 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10626 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10627 (main): Implement it.
10630 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
10631 and postprocessors to the -v option.
10633 * src/roff/grog/grog.pl: Implement -v.
10634 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10635 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10637 * src/roff/nroff/nroff.sh: Implement -v.
10638 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10639 * src/roff/nroff/nroff.man: Updated.
10641 * src/preproc/eqn/main.cc (main): Fix comment typo.
10643 * MORE.STUFF: Added info about djgpp port of grap.
10645 2000-11-14 Werner LEMBERG <wl@gnu.org>
10647 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10648 mode (or rather, implemented non-compatibility mode).
10649 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10651 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10652 replacing it -- we don't find gxditview otherwise.
10653 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10655 * src/preproc/pic/depend: Removed. Unnecessary.
10657 Implemented dummy keyword `solid' in pic for compatibility with
10660 * lex.cc (lookup_keyword): Added `solid'.
10661 * pic.y: Added SOLID with dummy rule.
10662 * pic.cc, pic_tab.h: Regenerated.
10663 * doc/pic.ms: Updated.
10665 2000-11-13 Werner LEMBERG <wl@gnu.org>
10667 For security reasons, don't use the current directory but the home
10668 directory while searching and scanning troffrc and troffrc-end.
10669 Similarly, replace the current directory with the home directory
10672 * Makefile.in (fontpath, tmacpath): Remove current directory.
10674 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10675 two parameters `add_home' and `add_current'.
10676 (search_path::~search_path, search_path::command_line_dir,
10677 search_path::open_file): Remove tests for `dirs' being zero.
10678 * src/include/searchpath.h: Adjust.
10679 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10680 `safer_macro_path'.
10681 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10683 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10684 * src/roff/troff/input.cc: Use `mac_path', initialized with
10686 (process_startup_file): Set `mac_path' to `safer_macro_path'.
10687 * src/roff/troff/env.cc: Use `mac_path'.
10689 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10691 * NEWS, man/roff.man, src/roff/troff/troff.man,
10692 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10695 2000-11-12 Werner LEMBERG <wl@gnu.org>
10697 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10699 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10700 * configure.in: Fix typo in comment.
10701 * configure: Regenerated.
10703 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10706 2000-11-08 Werner LEMBERG <wl@gnu.org>
10708 Add system tmac directory (/usr/local/lib/groff/site-tmac).
10710 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10711 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10714 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10715 * tmac/Makefile.sub (install_data): Create
10716 $(systemtmacdir) and $(localtmacdir).
10717 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10718 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10719 NEWS, doc/groff.texinfo: Updated and minor fixes.
10721 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10722 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10723 $(systemtmacdir) since the wrapper files are platform-dependent.
10725 2000-11-01 Werner LEMBERG <wl@gnu.org>
10727 * doc/groff.texinfo: Fix typo.
10729 2000-10-26 Werner LEMBERG <wl@gnu.org>
10731 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
10732 tmac.doc.old -> doc-old.tmac
10733 tmac.an.old -> an-old.tmac
10735 * tmac/tmac.*: Moved to ...
10736 * tmac/*.tmac: this.
10737 * tmac/man.local: Fix comment.
10738 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10739 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
10740 Added some `FILES' sections. More use of @...@ directives. Other
10742 * arch/djgpp/README, font/devutf8/NOTES: Updated.
10743 * doc/homepage.ms, doc/groff.texinfo: Updated.
10744 * man/groff.man, man/roff.man: Updated.
10745 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10746 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10747 src/devices/grotty/grotty.man: Updated.
10748 * src/preproc/pic/pic.man: Updated.
10749 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10750 instead of -mdoc.old.
10751 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10752 * src/roff/nroff/nroff.man: Updated.
10755 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10757 * tmac/mm.diff: Removed -- it has no use now since the mm package
10760 * tmac/*: Removed trailing spaces.
10762 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10763 the tmac subdirectory also).
10765 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10766 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10767 stuff since it is no longer needed.
10769 * README, PROBLEMS: Updated.
10771 2000-10-25 Werner LEMBERG <wl@gnu.org>
10773 Invert current behaviour: Search first FOOBAR.tmac, then
10776 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10777 (open_mac_file, macro_source): Implement it.
10778 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10779 doc/groff.texinfo, NEWS: Document it.
10781 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10782 Small documentation improvements.
10784 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10785 subdirectory also).
10787 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10789 2000-10-24 Werner LEMBERG <wl@gnu.org>
10791 Add local tmac directory (groff/site-tmac).
10793 * Makefile.in: Add $(localtmacdir).
10794 (uninstall_dirs): Add $(localtmacdir).
10795 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10796 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10797 in $(localtmacdir). Create $(localtmacdir).
10798 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10799 Updated and minor fixes.
10801 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10803 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10805 2000-10-23 Werner LEMBERG <wl@gnu.org>
10807 Move hyphen.us to tmac directory.
10809 * src/roff/troff/hyphen.us: Removed.
10810 * src/tmac/hyphen.us: Added.
10811 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10813 Change installation structure for data files from .../groff/... to
10814 .../groff/<version><revision>/... to be conform with other GNU
10817 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10818 doc/Makefile: Implement it.
10819 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10820 * configure: Updated.
10821 * arch/djgpp/README, font/devutf8/NOTES: Use it.
10822 * NEWS: Document it.
10823 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10824 @MACRODIR@ instead of hard-coded directories.
10826 2000-10-22 Werner LEMBERG <wl@gnu.org>
10828 Implement $GROFF_BIN_PATH environment variable (which defaults to
10829 $bindir) used for child programs of groff and similar wrappers.
10831 * gendefs.sh: Improve documentation.
10832 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10833 src/preproc/eqn/Makefile.sub (neqn),
10834 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10835 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10837 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10838 $GROFF_PATH__ (the latter for communication with troff).
10839 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10841 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10842 doc/groff.texinfo: Document it.
10844 * doc/groff.texinfo: Improve documentation of troff's -a option.
10846 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
10848 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10849 non-intrusive eol marker.
10850 (troff_output_file::determine_line_limits): New function.
10851 (troff_output_file::draw): Use it.
10852 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10853 output_pending_lines() instead of output_line().
10854 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10855 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10856 createImage): Small fixes.
10858 2000-10-14 Werner LEMBERG <wl@gnu.org>
10860 Replace tmac.safer with a real secure solution.
10862 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10863 system_request, pipe_output): Disable requests if in safer mode.
10864 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10865 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10866 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10867 doc/groff.texinfo, src/roff/groff/groff.man,
10868 src/roff/troff/troff.man, arch/djgpp/README: Updated.
10870 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10871 (resource_manager::output_prolog): Replace setenv() with putenv().
10873 2000-10-09 Werner LEMBERG <wl@gnu.org>
10875 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10876 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10877 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10878 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10879 compilation errors with some compilers. It seems that this code
10880 is no longer necessary -- if yes, it is easy to add some #ifdef's
10881 for that particular old-fashioned compiler.
10883 * MORE.STUFF: Added info about Meta-tbl.
10885 * doc/groff.texinfo: Added more info about `.if "..."..."'.
10887 2000-10-07 Werner LEMBERG <wl@gnu.org>
10889 Adding a new escape sequence \B'...': If the string between
10890 the delimiters is a valid numeric expression, return the character
10891 `1', and `0' otherwise. This is an analogon to \A.
10893 * src/roff/troff/input.cc (do_expr_test): Implement it.
10894 (token::next): Use it.
10895 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10897 * tmac/tmac.trace: Made independent from escape character.
10899 2000-10-06 Werner LEMBERG <wl@gnu.org>
10901 Adding a new request .dei: define indirect. The first and second
10902 parameter of .dei are taken from string registers instead directly;
10903 this very special request is needed to make tmac.trace independent
10904 from the escape character (which might even be disabled).
10906 * src/roff/troff/input.cc (do_define_macro): Implement it.
10907 (define_macro_indirect): New function.
10908 (init_input_requests): Use it.
10910 Adding two requests .ecs and .ecr: Save and restore the escape
10911 character. These two requests are needed to make tmac.trace
10912 independent from the escape character (which might even be
10915 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10917 (init_input_requests): Use it.
10919 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10921 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
10923 Adding a new option -P and new environment variable GROPS_PROLOGUE
10924 to grops, selecting a different prologue file (minor modifications
10927 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10928 src/devices/grops/ps.cc (main): Implement it.
10929 * src/devices/grops/grops.man, NEWS: Document it.
10931 2000-09-22 Werner LEMBERG <wl@gnu.org>
10933 * INSTALL: Add info about selecting paper format.
10935 2000-09-21 Werner LEMBERG <wl@gnu.org>
10937 * src/roff/troff/input.cc (main): Fixing compiler warning.
10938 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10939 strings.h from the former to the latter.
10940 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10941 stuff from the former to the latter.
10943 2000-09-11 Werner LEMBERG <wl@gnu.org>
10945 Implementing two new requests .tm1 and .tmc: The former is similar
10946 to .tm but can output leading spaces; its syntax is similar to
10947 defining a string, i.e., a `"' can be used to mark the beginning of
10948 the string to be written to stderr: `.tm1 " test'. The latter is
10949 similar to .tm1 but doesn't write out a final newline character.
10951 * src/roff/troff/input.cc (terminal1, terminal_continue,
10952 do_terminal): New functions.
10953 (init_input_requests): Use them.
10954 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10956 2000-09-09 Werner LEMBERG <wl@gnu.org>
10958 * tmac/groff_mdoc.samples.man: Small fixes.
10960 2000-09-08 Werner LEMBERG <wl@gnu.org>
10962 * tmac/groff_mdoc.man: Fixing typo.
10964 2000-09-02 Werner LEMBERG <wl@gnu.org>
10966 Implementing a .nop request which does nothing.
10968 * src/roff/troff/input.cc (nop_request): New function.
10969 (init_input_requests): Use it.
10970 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10972 2000-09-01 Werner LEMBERG <wl@gnu.org>
10974 * doc/groff.texinfo: Added some comments.
10976 2000-08-30 Werner LEMBERG <wl@gnu.org>
10978 * src/roff/troff/TODO: Updated.
10980 2000-08-25 Werner LEMBERG <wl@gnu.org>
10982 * doc/groff.texinfo: Fix comment how to compile the DVI file.
10984 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10986 * font/devps/generate/Makefile (SHELL): Define explicitly to
10987 "/bin/sh", for non-Unix platforms.
10988 (extraclean): Use a more portable "" quoting instead of a
10989 backslash (which doesn't work on DOS/Windows).
10991 * font/devlj4/generate/Makefile (extraclean): Ditto.
10993 * font/devdvi/generate/Makefile (extraclean): Ditto.
10995 2000-08-25 Werner LEMBERG <wl@gnu.org>
10997 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10998 src/roff/troff/troff.man: Document Eli's latest changes.
11000 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
11002 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
11003 macro file names of the form NAME.tmac as well as tmac.NAME.
11005 2000-08-25 Werner LEMBERG <wl@gnu.org>
11007 * src/include/posix.h: Remove definition of FILENAME_MAX.
11009 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
11010 `sys_fatal' and `stop' function().
11012 * test-groff: Updated.
11014 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
11016 Added the new troff command .output <arg> to suppress output (while
11017 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
11018 registers (for passing the output dimensions to the output device).
11020 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
11022 * src/roff/troff/node.h, src/roff/troff/node.cc
11023 (troff_output_file::really_print_line,
11024 ascii_output_file::really_print_line,
11025 supress_output_file::really_print_line): Use `width' parameter.
11026 (troff_output_file::really_on, troff_output_file::really_off,
11027 output_file::on, output_file::off, real_output_file::on,
11028 real_output_file::off, real_output_file::really_on,
11029 real_output_file::really_off): New functions.
11030 (real_output_file:public output_file): New variable `output_on'.
11031 (real_output_file::begin_page, real_output_file::copy_file,
11032 real_output_file::transparent_char, real_output_file::print_line):
11034 (real_output_file::print_line): Use check_output_limits.
11035 * src/roff/troff/reg.h, src/roff/troff/request.h,
11036 src/roff/troff/input.cc (assign_registers): New function to remove
11038 (do_ps_file): Use it.
11039 (check_output_limits, reset_output_registers, output_request,
11040 init_output_requests): New functions.
11041 (init_input_requests): Updated.
11043 Added new grohtml2 device and html2 preprocessor (coding
11044 not yet finished) which will eventually replace grohtml.
11046 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
11048 * src/include/htmlindicate.h, src/include/htmlindicate
11049 (html_begin_suppress, html_end_suppress): New functions.
11050 * src/preproc/tbl/main.cc: Use it.
11051 * src/roff/groff/groff.cc: Add support for html2 device (which will
11052 automatically invoke the html2 preprocessor).
11053 * src/roff/troff/input.cc (is_html2): New variable.
11054 * src/roff/troff/troff.h, src/roff/troff/env.h,
11055 src/roff/troff/env.cc (environment::add_html_tag): New function
11057 (environment::do_break): Use it.
11058 * font/devhtml2/*: New files.
11059 * src/devices/grohtml2: New device.
11060 * src/preproc/html2: New preprocessor.
11061 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
11063 2000-08-23 Werner LEMBERG <wl@gnu.org>
11065 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
11067 2000-08-22 Werner LEMBERG <wl@gnu.org>
11069 * src/include/lib.h: Provide a fix for IRIX to not include
11072 2000-08-18 Werner LEMBERG <wl@gnu.org>
11074 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
11075 since some non-GNU sed programs can't handle null regexps.
11076 * configure, src/preproc/eqn/Makefile.sub,
11077 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
11079 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
11080 bug (string.h and strings.h are both needed according to latest
11083 * MORE.STUFF: Added info about unroff and troffcvt.
11085 2000-08-08 Werner LEMBERG <wl@gnu.org>
11087 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
11090 * tmac/tmac.man.old: Remove unused number register.
11092 * tmac.doc: Minor documentation fix.
11094 2000-08-07 Paul Eggert <eggert@twinsun.com>
11096 * src/roff/groff/pipeline.c (is_system_shell):
11097 Fix typo: "monocased_shell" no longer exists.
11099 2000-08-07 Paul Eggert <eggert@twinsun.com>
11101 Remove FILENAME_MAX limits.
11103 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
11104 that the argument length is less than FILENAME_MAX.
11105 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
11106 Use struct hack to allocate and free file name.
11107 (struct xtmpfile_list): fname is now part of the structure,
11108 not a pointer to another string.
11110 2000-08-07 Tom Schmidt <tschmidt@micron.com>
11112 * src/include/posix.h: Add a default value for FILENAME_MAX.
11114 2000-08-06 Paul Eggert <eggert@twinsun.com>
11116 Add support for new BSD-style man pages (with ".Dd" instead of
11117 ".TH"), so that "groff -man" understands both styles, even
11118 when running "groff -man" on a host whose system man page
11119 macros don't support ".Dd".
11121 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
11122 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
11123 in case the system man macros don't define Dd or TH.
11125 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
11126 * tmac/tmac.an: New one-line file.
11127 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
11129 2000-08-06 Werner LEMBERG <wl@gnu.org>
11131 * src/roff/troff/troff.man: Fixing typos.
11133 Version 1.16.1 released
11134 =======================
11136 2000-07-31 Werner LEMBERG <wl@gnu.org>
11138 Preparing release 1.16.1.
11140 * REVISION: Revision number set to 1.
11141 * MORE.STUFF: Added info about port to DOS.
11142 * NEWS, win32-diffs: Updated.
11144 * src/include/nonposix.h: Remove first line -- this file is used
11147 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
11150 2000-07-30 Werner LEMBERG <wl@gnu.org>
11152 * doc/texinfo.tex: Update to latest version.
11154 2000-06-28 Paul Eggert <eggert@twinsun.com>
11156 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
11157 commands that fail. Don't assume that "export a=b" is valid shell
11158 syntax. This is needed for Solaris 2.5.1.
11160 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
11161 comment about missing Solaris headers.
11163 * PROBLEMS: Add section about problems with Sun Make and VPATH.
11165 2000-06-25 Werner LEMBERG <wl@gnu.org>
11167 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
11170 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
11172 * win32-diffs: Updated.
11173 * README.WIN32: Added CRs to make all Windows editors happy.
11175 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
11176 src/roff/groff/pipeline.c).
11178 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
11180 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
11181 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
11183 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
11185 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
11186 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
11188 (main): Support non-Posix systems with several different styles of
11189 slash characters in file names.
11191 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
11192 (main) [SET_BINARY]: Switch stdin into binary mode.
11194 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
11195 (main): Support file names with several possible slash-type
11196 characters, as given by DIR_SEPS[] in nonposix.h.
11197 (main) [__MSDOS__]: If renaming the temporary index file fails
11198 because it has more than one dot in its trunk, replace the dot
11199 with an underscore and try again.
11200 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
11202 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
11204 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
11205 (File::File): Open the input file in binary mode. Strip CR
11206 characters from each CR-LF pair.
11207 (xbasename): Support file names with several possible slash-type
11208 characters, as given by DIR_SEPS[] in nonposix.h.
11210 * src/include/Makefile.sub (HDRS): Add nonposix.h.
11212 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
11213 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
11214 [!_POSIX_VERSION]: Define for traditional Unix systems.
11215 (real_output_file::real_output_file): Remove the MSVC-specific
11216 call to popen, use instead POPEN_WT, appropriately defined on
11217 nonposix.h. #include nonposix.h.
11218 (real_output_file::~real_output_file): Remove the MSVC-specific
11219 call to pclose, a suitable macro is now defined on nonposix.h.
11220 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
11221 and WEXITSTATUS instead of assuming traditional Unix
11222 interpretation of the status returned by pclose.
11224 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
11225 call to popen, use POPEN_RT instead (appropriately defined on
11226 nonposix.h). #include nonposix.h.
11227 (ps_bbox_request): Open the PostScript file in binary mode.
11228 Close the file after processing it.
11229 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
11232 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
11233 A version of run_pipeline that doesn't use `fork'.
11234 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
11235 (system_shell_name, system_shell_dash_c)
11236 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
11237 the ugliness of testing DOS/Windows file names for equality, and
11238 support both stock shells and ports of Unix shells.
11240 * src/roff/groff/groff.cc: #include nonposix.h.
11241 (BSHELL): Definition moved to nonposix.h.
11242 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
11243 instead of a literal "-c".
11244 (xbasename): Support file names with several possible slash-type
11245 characters, as given by DIR_SEPS[] in nonposix.h.
11246 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
11247 of literal strings.
11249 * src/preproc/soelim/soelim.cc: #include nonposix.h.
11250 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
11252 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
11255 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
11257 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
11260 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
11262 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
11263 P_tmpdir is defined, use it instead of the literal "/tmp".
11264 (remove_tmp_files, add_tmp_file): New functions.
11265 (xtmpfile): Record temporary files and register an atexit function
11266 to delete them explicitly, instead of relying on the OS to do
11267 that, which doesn't work on non-Unix systems.
11269 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
11270 (search_path::search_path): Use PATH_SEP instead of a literal
11272 (search_path::command_line_dir): Ditto.
11273 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
11274 to support non-Posix systems.
11276 * src/libs/libbib/search.cc: #include nonposix.h.
11277 (search_list::add_file): Open the file in binary mode.
11279 * src/libs/libbib/linear.cc: #include nonposix.h.
11280 (file_buffer::load): Remove \r characters preceding \n from the
11283 * src/libs/libbib/index.cc: #include nonposix.h.
11284 (make_index_search_item): Open index_filename in O_BINARY mode.
11285 (index_search_item_iterator::get_tag): Ditto. Remove \r
11286 characters before \n characters.
11287 (index_search_item::check_files): Open files in binary mode.
11288 (index_search_item::munge_filename): Support DOS-style file names
11289 with backslashes and drive letters, use IS_ABSOLUTE.
11291 * src/devices/grops/ps.cc: #include nonposix.h.
11292 (main) [SET_BINARY]: Switch stdout to binary mode.
11294 * src/devices/grolj4/lj4.cc: #include nonposix.h.
11295 (main) [SET_BINARY]: Switch stdout to binary mode.
11297 * src/devices/grolbp/lbp.cc: #include nonposix.h
11298 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
11300 * src/devices/grodvi/dvi.cc: #include nonposix.h.
11301 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
11303 (main) [SET_BINARY]: Switch stdout to binary mode.
11304 [_MSC_VER]: Remove an explicit call to _setmode.
11306 * src/include/nonposix.h: New file.
11308 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
11309 operation when building with DJGPP.
11310 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
11311 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
11314 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
11316 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
11317 etc. can include a semi-colon on DOS/Windows.
11318 (depend.temp): Use depend1.temp instead of depend.temp1, to
11319 prevent files from overerwiting each other on 8+3 filesystems.
11321 * gendef.sh (t): Change definition to work with DOS/Windows.
11323 doc/groff.texinfo: Apart of some typo corrections, I also changed
11324 some index entris, to make them more non-ambiguous, and also put
11325 @ignore around some parts that are not yet written, to allow the
11326 Info output be readable.
11328 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
11330 Replaced specific checks for function declarations with a generic
11331 routine taken from GNU bfd.
11333 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
11334 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
11335 * configure.in: Use it.
11336 * src/devices/grolbp/lbp.cc, src/include/lib.h,
11337 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
11338 src/roff/groff/groff.cc: Use it.
11339 * Makefile.in, configure: Updated.
11341 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
11343 * src/devides/grolbp/lbp.h: Removed unused variables.
11345 2000-05-31 Keith Thompson <kst@sdsc.edu>
11347 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
11350 2000-05-31 Werner LEMBERG <wl@gnu.org>
11352 * aclocal.m4 (GROFF_SRAND): New function to test the return value
11353 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
11354 * configure.in: Use it.
11355 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
11356 * configure, Makefile.in: Updated.
11358 * configure.in: Add test for strncasecmp().
11359 * src/include/lib.h: Use it.
11361 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
11363 * src/preproc/grn/Makefile.sub: Add MLIB.
11365 2000-05-29 Nix <nix@esperi.demon.co.uk>
11367 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
11369 2000-05-29 Werner LEMBERG <wl@gnu.org>
11371 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
11373 * PROBLEMS: Small update.
11375 * src/devices/grolbp/lbp.cc: Various small fixes.
11377 2000-05-28 Keith Thompson <kst@sdsc.edu>
11379 * src/roff/nroff/nroff.sh: Fix main loop syntax.
11381 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
11383 2000-05-25 Werner LEMBERG <wl@gnu.org>
11385 * man/roff.man: Removed unused macro.
11387 2000-05-24 Werner LEMBERG <wl@gnu.org>
11389 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
11390 This is needed e.g. if you do
11391 `make distclean; ./configure; make dist'.
11393 Version 1.16 released
11394 =====================
11396 2000-05-23 Werner LEMBERG <wl@gnu.org>
11398 Adding font CWI (constant width italic) to devdvi.
11400 * font/devdvi/CWI: New file.
11401 * font/devdvi/generate/Makefile: Add generating rule.
11402 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11403 tmac/tmac.dvi: Use it.
11404 * NEWS: Announce it.
11406 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11407 * font/devlj4/generate/Makefile: Cosmetic changes only.
11409 * man/groff.man: Removed most of the redundant description of
11410 special characters (which is in groff_char.man). Added font
11411 translation CB->CR for devdvi. Other minor fixes.
11413 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11414 (registered) symbols.
11416 2000-05-22 Werner LEMBERG <wl@gnu.org>
11418 * doc/Makefile: Added rule for creating info files.
11420 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
11422 * font/devdvi/generate/Makefile: Fixed dependencies.
11424 * font/devps/*: Regenerated. Heavy changes for Bookman and
11425 NewCentury Schoolbook!
11426 * font/devps/generate/afmname: Will now run with GNU awk.
11427 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11428 * font/devps/generate/Makefile: Cosmetic changes only.
11430 2000-05-21 Werner LEMBERG <wl@gnu.org>
11432 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11433 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
11434 `.SS' now produces a heading with a smaller size than `.SH'.
11435 Completely formatted.
11436 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11438 * man/groff.man: Improved table appearance. Use of `eo' request
11439 to reduce number of doubled backslashes in macro definitions.
11440 Replacing `\e' with `\(rs'. Other minor fixes.
11442 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11443 to have correct line number.
11445 * INSTALL: Small improvement.
11447 2000-05-20 Bernd Warken <bwarken@mayn.de>
11449 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11452 2000-05-19 Bernd Warken <bwarken@mayn.de>
11454 * man/groff.man: Complete update (with a lot of corrections by WL).
11456 2000-05-18 Werner LEMBERG <wl@gnu.org>
11458 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11460 * font/*/*: Implement it.
11461 * man/groff_char.man, NEWS: Document it.
11463 * src/include/unix.h: Removed. It isn't used.
11465 * doc/groff.texinfo: Slight improvements.
11467 2000-05-17 Werner LEMBERG <wl@gnu.org>
11469 * README, win32-diffs: Small fixes and improvements.
11471 2000-05-16 Werner LEMBERG <wl@gnu.org>
11473 * FDL: New file (the Free Documentation License version 1.1).
11475 * doc/groff.texinfo: Added many start-up values for gtroff.
11476 Some structural improvements of the source code.
11478 2000-05-15 Werner LEMBERG <wl@gnu.org>
11480 * src/roff/troff/input.cc: Added small comment about troffrc-end.
11481 * src/roff/troff/troff.man: Added info about troffrc-end.
11483 2000-05-14 Werner LEMBERG <wl@gnu.org>
11485 * Makefile.in (EXTRADIRS): Fix typos.
11486 (dist): Handle deletion of old .tar.gz file correctly.
11487 (DISTDIRS): Include all tty output devices.
11489 * doc/groff.texinfo: Adding more cross references; countless other
11492 2000-05-13 Werner LEMBERG <wl@gnu.org>
11494 * MORE.STUFF: Added Robert Marks's utilities.
11496 2000-05-12 Werner LEMBERG <wl@gnu.org>
11498 Added win32 port contributed by Blake McBride
11499 <blake@florida-software.com>.
11501 * README.WIN32, win32-diffs: New files.
11504 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11505 (tmove, tmove2): Added parentheses to avoid compiler warnings.
11506 (change): Removed unused variables.
11508 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11509 (savebounds): Changed return value from `int' to `void'.
11510 * src/preproc/grn/hdb.cc: Ditto.
11512 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11513 final backslash in comment to avoid compiler warning.
11515 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11517 * doc/groff.texinfo: More fixes.
11519 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
11521 * tmac/tmac.doc: Documentation fix.
11523 2000-05-11 Werner LEMBERG <wl@gnu.org>
11525 * doc/groff.texinfo: Reading the source code shows up a lot of
11526 omissions and incorrect data... More conversion to @Deffn macros.
11528 2000-05-10 Werner LEMBERG <wl@gnu.org>
11530 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11533 * src/roff/troff/request.h: Removing unused `no_break_flag'.
11535 2000-05-09 Werner LEMBERG <wl@gnu.org>
11537 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11540 * doc/groff.texinfo: Extended history section. More conversion to
11541 @Deffn macros. More .tr documentation.
11543 2000-05-07 Werner LEMBERG <wl@gnu.org>
11545 * doc/groff.texinfo: Completed tab section. Added info about
11548 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
11550 * PROBLEMS: Describe configure script fix for OS/390 Unix.
11552 2000-05-05 Werner LEMBERG <wl@gnu.org>
11554 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11556 * NEWS: Document it.
11558 * man/troff.man: Minor optical improvements.
11560 2000-05-03 Werner LEMBERG <wl@gnu.org>
11562 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11564 * font/*/*: Implement it.
11565 * man/groff_char.man, NEWS: Document it.
11567 2000-05-02 Werner LEMBERG <wl@gnu.org>
11569 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11571 * NEWS: Document the three new man pages.
11573 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11574 * configure: Updated.
11576 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11578 2000-05-01 Werner LEMBERG <wl@gnu.org>
11580 Added grap support to grog.
11582 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11583 * src/roff/grog/grog.man: Document it.
11585 * doc/groff.texinfo, NEWS: Add info about grap support.
11587 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11588 (with slight fixes by me).
11590 * tmac/groff_tmac.man: New file documenting tmac mechanism.
11591 * tmac/Makefile.sub: Add groff_tmac.man.
11592 * man/roff.man: New file giving overview of roff system.
11593 * man/troff.man: A short reference of troff.
11594 * man/Makefile.sub: Add roff.man and troff.man.
11596 2000-04-30 Werner LEMBERG <wl@gnu.org>
11598 Added grap support to groff.
11600 * src/roff/groff/groff.cc: Implement it.
11601 * src/roff/groff/groff.man: Document it.
11603 * src/devices/grotty/grotty.man: Add cp1047 device.
11604 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11606 * src/roff/groff/groff.man: Ditto.
11607 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11608 * doc/groff.texinfo: Ditto.
11610 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11613 2000-04-29 Werner LEMBERG <wl@gnu.org>
11615 * man/groff_char.man: Add `pc' glyph.
11616 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11617 * tmac/tmac.tty: Add `pc' glyph.
11618 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
11619 we use cp1047 output device.
11621 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11622 there are still hardcoded latin1->unicode values in utf8's font
11624 * configure: Updated.
11625 * NEWS: Minor clarification. Updated.
11627 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
11630 2000-04-28 Werner LEMBERG <wl@gnu.org>
11632 Adding EBCDIC code page 1047.
11634 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11635 font/devcp1047/DESC.proto: New files.
11637 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11638 either ascii/latin1 or cp1047.
11639 * Makefile.in: Use it.
11640 * configure: Updated.
11642 Replacing and/or adding `md' (mathdot) glyph with `pc'
11643 (periodcentered) in all text fonts.
11645 * font/*/*: Change it.
11647 2000-04-27 Werner LEMBERG <wl@gnu.org>
11649 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11651 * configure.in: Add check for strings.h.
11652 * src/include/driver.h: Use HAVE_STRINGS_H.
11653 * src/devices/grolbp/lpb.cc: Remove string.h.
11655 * src/include/groff-getopt.h: New file. It will be used instead of
11656 getopt.h (to be included in lib.h) to avoid endless problems with
11657 picky C++ compilers.
11658 * src/include/lib.h: Use groff-getopt.h.
11659 * src/include/Makefile.sub: Updated.
11661 * configure: Updated.
11662 * Makefile.in: Updated.
11664 * NEWS: Mention EBCDIC support.
11666 2000-04-26 Werner LEMBERG <wl@gnu.org>
11668 * TODO: Some additions.
11670 2000-04-25 Werner LEMBERG <wl@gnu.org>
11672 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11675 2000-04-23 Werner LEMBERG <wl@gnu.org>
11677 * src/roff/troff/troff.man: Minor fixes.
11679 2000-04-22 Werner LEMBERG <wl@gnu.org>
11681 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11682 `.T' string register and the incompatible definition of the `.T'
11683 number register (compared to Unix troff).
11685 * man/groff_char.man: Add some missing characters.
11686 * font/devutf8/NOTES: Update.
11688 2000-04-21 Werner LEMBERG <wl@gnu.org>
11690 * src/include/htmlindicate.h, src/include/lib.h,
11691 src/include/posix.h: Fix copyright.
11693 * src/include/Makefile.sub: Update.
11695 2000-04-20 Werner LEMBERG <wl@gnu.org>
11697 * src/roff/troff/input.cc (input_char_description): Removing
11698 superfluous space char.
11700 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11702 * doc/groff.texinfo: Document EBCDIC.
11704 2000-04-19 Werner LEMBERG <wl@gnu.org>
11706 Introducing `shc' as the glyph name for the soft hyphen character.
11708 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11709 font/devlatin1/R.proto: Use it.
11713 2000-04-18 Werner LEMBERG <wl@gnu.org>
11715 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11716 dependency on ASCII order.
11718 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
11720 * src/libs/libgroff/illegal.c: Added EBCDIC table.
11721 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11723 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11724 to increase portability.
11726 2000-04-15 Werner LEMBERG <wl@gnu.org>
11728 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11729 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11730 the generic `\n' if under OS/390 Unix.
11732 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11734 * configure: Regenerated.
11736 2000-04-14 Werner LEMBERG <wl@gnu.org>
11738 * doc/groff.texinfo: More conversions to @Deffn.
11740 2000-04-12 Werner LEMBERG <wl@gnu.org>
11742 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11745 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11747 2000-04-10 Werner LEMBERG <wl@gnu.org>
11749 * doc/groff.texinfo: More conversions to @Deffn.
11751 2000-04-08 Werner LEMBERG <wl@gnu.org>
11753 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11754 Updated to latest version (glibc 2.1.3).
11756 2000-04-07 Werner LEMBERG <wl@gnu.org>
11758 * doc/Makefile (clean): Include more index files.
11759 Add rule texinfo->dvi.
11761 2000-04-05 Werner LEMBERG <wl@gnu.org>
11763 * doc/groff.texinfo: Added new index `op' for operators. More
11764 info on end of sentence characters. More use of @Deffn.
11766 2000-03-30 Werner LEMBERG <wl@gnu.org>
11768 * */*.man: Adding a note that a whitespace can be inserted between
11769 a command line option and its parameter -- we are using GNU getopt.
11771 * src/roff/groff/groff.man: Add example of `-m mandoc'.
11773 2000-03-28 Werner LEMBERG <wl@gnu.org>
11775 Correct anachronism of calling the man macro file with `-man'
11776 instead of `-m man' etc.
11778 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11779 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11780 load tmac.<package>.
11782 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
11786 * doc/groff.texinfo: Updated.
11788 * tmac/groff_man.man: Copyright added.
11790 2000-03-27 Werner LEMBERG <wl@gnu.org>
11792 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11793 typeset the request resp. escape name with a tt font -- due to a
11794 bug in texinfo.tex it is necessary to use the `-e' switch with
11797 Improving info about usage of groff units.
11801 2000-03-20 Werner LEMBERG <wl@gnu.org>
11803 * doc/groff.texinfo: Added section about man macro package
11804 (I've basically taken groff_man.man). Introducing new indices `ma'
11805 for macros/strings and `gl' for glyph names. Other minor fixes.
11807 * tmac/groff_man.man: Fixed some typos.
11809 2000-03-19 Werner LEMBERG <wl@gnu.org>
11811 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11814 * doc/texinfo.tex: New file.
11816 2000-03-18 Werner LEMBERG <wl@gnu.org>
11818 * doc/groff.texinfo: Improved section on number registers. Other
11821 2000-03-16 Werner LEMBERG <wl@gnu.org>
11823 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
11826 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11827 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11828 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11829 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11831 * src/preproc/grn/grn.man: Better synopsis; added copyright.
11833 * src/roff/grog/grog.man: Updated copyright date.
11835 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
11837 * configure.in: Added test for strdup.
11839 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11842 Replaced dynamic allocation of arrays `[...]' with `new' operator.
11846 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
11848 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11850 2000-03-11 Werner LEMBERG <wl@gnu.org>
11852 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11854 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11855 * src/include/lib.h: Remove some spaces.
11857 2000-03-10 Werner LEMBERG <wl@gnu.org>
11859 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11860 initializers from arguments (some compilers don't like this).
11862 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
11864 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11865 used by pic and eqn to tell grohtml where the graphic regions start
11867 * src/libs/libgroff/Makefile.sub: Use it.
11868 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11869 graphic_start() and graphic_end() from htmlindicate.cc.
11871 2000-03-09 Werner LEMBERG <wl@gnu.org>
11873 * tmac/tmac.safer: Will now work correctly in compatibility mode.
11874 * tmac/groff_man.man: More fixes.
11876 2000-03-08 Werner LEMBERG <wl@gnu.org>
11878 * doc/Makefile: Added texput.log to the `clean' target.
11879 * doc/groff.texinfo: Added info about delimiters for escapes.
11881 2000-03-08 Bernd Warken <bwarken@mayn.de>
11883 * src/preproc/pic/pic.man: Add info on conversion of pic images to
11884 other graphic formats.
11886 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
11888 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11889 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11890 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11893 2000-03-07 Werner LEMBERG <wl@gnu.org>
11895 * doc/groff.texinfo: Spelling fixes.
11897 2000-03-06 Werner LEMBERG <wl@gnu.org>
11899 * tmac/groff_man.man: Completely revised to cover everything in
11902 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11903 Other minor fixings.
11904 * src/roff/troff/env.cc (environment_copy): Improve error message and
11906 * src/roff/troff/TODO: Updated.
11908 * doc/Makefile: Bug fixes -- this is still provisional, though...
11910 * tmac/eqnrc: Small fixes.
11912 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
11914 Adding a request `evc' to copy environments.
11916 * src/roff/troff/env.cc (environment::copy, environment_copy):
11918 * src/roff/troff/env.h: Add prototype.
11920 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
11922 Adding strsep() -- Solaris 8 doesn't have it.
11924 * configure.in: Test it.
11925 * src/devices/grolbp/lbp.cc: Add code.
11927 2000-03-05 Werner LEMBERG <wl@gnu.org>
11929 * src/roff/troff/div.cc (macro_diversion::output,
11930 top_level_diversion::output): Fixing an incompatibility with
11931 original troff: \x'0' updates the .a register also. Thanks to
11932 <Andries.Brouwer@cwi.nl> for pointing this out.
11933 * doc/groff.texinfo: Document it.
11935 * Makefile.in: Create Makefile.dep if necessary before calling the
11936 submake process to avoid warning about nonexistent file.
11938 * NEWS, PROJECTS: Updated.
11940 2000-03-04 Werner LEMBERG <wl@gnu.org>
11942 * tmac/troffrc: Add tmac.lbp.
11944 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
11946 * tmac/tmac.lbp: New file.
11947 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11950 2000-03-03 Werner LEMBERG <wl@gnu.org>
11952 * Makefile.in: Fixing $(subdir).
11954 * README, NEWS: Small fixes.
11956 * test-groff: Adding path to grolbp.
11958 * configure.in: The (new) file src/xditview/Imakefile.in will be
11959 also configured -- it is now possible to build gxditview in a
11960 directory different from $srcdir.
11962 2000-03-02 Blake McBride <blake@florida-software.com>
11964 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11966 * MORE.STUFF: Added website of bell labs and info about plot2dev.
11968 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
11970 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11973 2000-02-29 Werner LEMBERG <wl@gnu.org>
11975 Adding GNU getopt to the groff distribution.
11977 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11979 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11980 * aclocal.a4: Remove GROFF_GETOPT function.
11981 * configure.in, Makefile.in, PROBLEMS: Update.
11982 * src/include/lib.h: Replace getopt tests with getopt.h.
11983 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11985 * doc/groff.texinfo: Further checking/updating. Adding more index
11988 * man/groff_out.man: Fix nroff mode activation (for emacs).
11989 * man/groff_font.man: Add missing ligature.
11991 2000-02-28 Werner LEMBERG <wl@gnu.org>
11993 * doc/groff.texinfo: Further checking/updating. Adding more index
11996 * src/devices/grolbp/grolbp.man: Added a comment line at the
11997 beginning of the file (similar to shell scripts) which indicates
11998 that `tbl' should be used as a preprocessor.
12000 2000-02-27 Blake McBride <blake@florida-software.com>
12002 Adapting groff to MS Visual C++ 6.0 compiler (tested with
12003 Windows NT 4.0). Uses _MSC_VER define where necessary.
12005 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
12006 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
12007 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
12008 src/include/lib.h, src/libs/libgroff/errarg.cc,
12009 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
12010 src/preproc/refer/label.y, src/preproc/refer/label.cc,
12011 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
12012 src/roff/troff/div.cc, src/roff/troff/env.cc,
12013 src/roff/troff/input.cc, src/roff/troff/node.cc,
12014 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
12015 if_to_a() to avoid name clashes.
12016 * src/include/posix.h: Don't use unistd.h.
12017 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
12018 clause for integrating non-Unix xtmpfile() code.
12019 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
12020 structure; use "rt" for popen() in pipe_source(); add getpid()
12022 * src/roff/troff/node.cc: Use special versions of popen() in
12023 real_output_file() and pclose() in ~real_output_file().
12025 2000-02-27 Werner LEMBERG <wl@gnu.org>
12027 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
12028 LBP-8 series laser printers). This code has been contributed by
12029 Francisco Andrés Verdú <pandres@dragonet.es>.
12031 * src/devices/grolbp/*: The grolbp output device.
12032 * font/devlpb/*: The font description files.
12033 * Makefile.in: Add grolpb and devlbp subdirectories.
12035 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
12036 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
12039 * doc/groff.texinfo: Further checking/updating. Adding more index
12044 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
12046 * man/groff_font.man: Adding info about obsolete DESC keywords.
12047 * src/devices/grolj4/grolj4.man: Documenting additional DESC
12050 2000-02-26 Werner LEMBERG <wl@gnu.org>
12052 * src/preproc/grn/grn.man: Added info about the gremlin file format
12053 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
12055 2000-02-25 Werner LEMBERG <wl@gnu.org>
12057 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
12058 friends to be non-integer.
12060 * src/preproc/grn/grn.man: Document it.
12062 * doc/groff.texinfo: Further checking/updating. Adding more index
12065 2000-02-24 Werner LEMBERG <wl@gnu.org>
12067 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
12068 line thicknesses to be integer multiples of this value.
12070 * src/preproc/grn/grn.man: Commenting out the -s option -- the
12071 corresponding code doesn't work (yet).
12073 * doc/groff.texinfo: Further checking/updating. Adding more index
12076 2000-02-23 Werner LEMBERG <wl@gnu.org>
12078 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
12079 specify line thickness instead of base units. The new default
12080 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
12081 thick lines respectively.
12083 Removed unused variable `prevval'.
12085 * src/preproc/grn/grn.man: Updated.
12087 2000-02-22 Werner LEMBERG <wl@gnu.org>
12089 * src/preproc/grn/main.cc: Slight formatting.
12091 * src/roff/groff/groff.man: Formatting fix.
12092 * src/preproc/grn/grn.man: Ditto.
12094 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
12096 * doc/groff.texinfo: Further checking/updating.
12098 2000-02-21 Werner LEMBERG <wl@gnu.org>
12100 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
12102 * test-groff: Added grn subdir to path.
12104 * doc/groff.texinfo: Some restructing and other small improvements.
12106 * src/roff/groff/groff.cc (help): Fixed info string.
12108 2000-02-20 Werner LEMBERG <wl@gnu.org>
12110 * doc/meref.me: Fix description of .GS request.
12112 * src/roff/troff/troff.man: Fixing typo.
12114 Adding the `grn' preprocessor for gremlin graphic files.
12116 * src/preproc/grn/*: This is the Berkeley distribution written by
12117 David Slattengren and Barry Roitblat, adapted to groff by Daniel
12118 Senderowicz and Werner Lemberg.
12120 * doc/grnexampl.{me,g}: A sample for grn.
12122 * Makefile.in: Added subdirectory entry for grn.
12124 * src/roff/groff/groff.cc: Added support for grn. It can be now
12125 called with the switch `-g'.
12127 * src/roff/groff/groff.man: Updated.
12129 * src/roff/grog/grog.{man,pl,sh}: Updated.
12133 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
12135 * src/include/lib.h: Added xtmptemplate and made xtmpfile
12136 parametrically polymorphic.
12138 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
12139 and the alterations to xtmpfile.
12140 xtmpfile can be requested to return the filename created
12141 and asked not to unlink the temp file. The default behaviour
12142 if parameters are absent is exactly the same as before.
12144 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
12146 A new request `length' is available which returns the length of a
12147 string in a number register:
12149 * src/roff/troff/input.cc (length_macro): Implement it.
12150 * src/roff/troff/input.cc (init_input_requests): Register it.
12152 2000-02-11 Werner LEMBERG <wl@gnu.org>
12154 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
12155 of the `substring' request.
12157 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
12160 * src/roff/troff/TODO, NEWS: Updated.
12162 2000-02-09 Werner LEMBERG <wl@gnu.org>
12164 * src/roff/groff/groff.man: Added an example.
12166 2000-02-06 Werner LEMBERG <wl@gnu.org>
12168 I've considerably modified the directory structure of the
12169 distribution to get a more vertical layout. For example, the number
12170 of top level directories has been reduced from 42 to 6.
12172 As a consequence, many changes, especially to the makefiles, were
12175 * The makefile variables `top_builddir' and `top_srcdir' have been
12176 introduced. Virtually all relative paths have been replaced with
12177 absolute ones using these two variables.
12179 * Dependencies (in the files `Makefile.dep') are no longer part of
12180 the distribution. Instead, they are created during a `make install'
12181 in the build directory.
12183 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
12184 make `top_srcdir' and `top_builddir' absolute.
12186 Some other changes:
12188 * Man pages now depend on the files `VERSION' and `REVISION'.
12190 * The added shell script `mkinstalldirs' will replace `mkdir' in
12193 * VERSION: Version number increased to 1.16.
12195 2000-02-04 Werner LEMBERG <wl@gnu.org>
12197 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
12199 * Makefile.in: Removed $(tmac_m) since it is no longer needed
12200 (after an update of the mm stuff).
12202 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
12204 2000-02-03 Werner LEMBERG <wl@gnu.org>
12206 The .psbb request will now also accept Mac PS images (i.e. using LF
12207 as the EOL character).
12209 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
12210 (with slight modifications).
12211 * troff/input.cc (do_ps_file): Use it.
12213 * test-groff: Add grohtml and grolj4 output devices to PATH.
12215 2000-01-30 Werner LEMBERG <wl@gnu.org>
12217 * NEWS, MORE.STUFF: Updated.
12219 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
12221 Add the `srand' command to pic.
12223 * pic/lex.cc, pic/pic.y: Implement it.
12224 * pic/pic.man: Document it.
12225 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
12227 2000-01-30 Werner LEMBERG <wl@gnu.org>
12229 Add a new request `.psbb'. This does exactly what the external
12230 program psbb did. It scans a PostScript image file for a
12231 %%BoundingBox comment and extracts the bounding box values (in
12232 PostScript units) which are then stored in the four new (read-only)
12233 number registers `llx', `lly', `urx', and `ury'.
12235 This will allow the usage of the .PSPIC macro without worrying
12236 about unsafe behaviour of groff, i.e., it will work without the
12237 `-U' switch of groff.
12239 * troff/input.cc: Implement it.
12240 * tmac/tmac.pspic: Use it.
12241 * troff/troff.man, grops/grops.man, NEWS: Document it.
12242 * psbb/*, Makefile.in: Remove it since it is no longer needed.
12244 This is bloody C code simply adapted from psbb.c! Any improvements
12247 2000-01-29 Werner LEMBERG <wl@gnu.org>
12249 * man/groff_font.man: Minor clarifications.
12253 2000-01-28 Werner LEMBERG <wl@gnu.org>
12255 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
12257 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
12259 * man/groff_font.man: Brought up to date regarding tcommand
12261 * libgroff/font.cc: Handle everything after `--' as a comment
12263 * devps/*: Added comment delimiter inside devps font files.
12265 2000-01-28 Werner LEMBERG <wl@gnu.org>
12267 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
12268 \fC...\fP (which now works as expected).
12270 * troff/troff.man: Fix typo.
12272 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
12274 Completed the pass_filenames implementation in troff.
12276 * libdriver/input.cc: Will read the new `F' tcommand.
12277 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
12278 * troff/input.cc: Use it.
12280 2000-01-26 Werner LEMBERG <wl@gnu.org>
12282 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
12283 font will now be updated even if an invalid font is selected.
12285 2000-01-24 Werner LEMBERG <wl@gnu.org>
12287 * doc/homepage.ms: Updated for new tmac.arkup.
12289 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
12291 * tmac/tmac.arkup: Cleanup.
12293 Added `\&' to .HTML macro to `leave vertical mode', so to say.
12295 Removed obsolete .LINK macro completely.
12297 The macros .URL, .FTP, and .MAILTO now accept a third argument which
12298 will be immediately appended to the second argument (to be used with
12299 punctuation, for example).
12301 Disabled .CDFTP macro temporarily for security reasons.
12303 * tmac/groff_markup.man: Complete revision for latest changes in
12304 tmac.arkup -- note that it does not yet format correctly with
12307 2000-01-23 Bruno Haible <haible@clisp.cons.org>
12309 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
12310 * devutf8/R.proto: Add mappings for wp, lh, rh.
12311 * devutf8/NOTES: Updated.
12313 2000-01-23 Werner LEMBERG <wl@gnu.org>
12315 * doc/groff.texinfo: Updated version/copyright info.
12317 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
12319 Added support for two new directives in device descriptions:
12320 `pass_filenames' (to pass the input file name to the output device)
12321 and `use_charnames_in_special' (to support e.g. accented characters
12322 in the `X' request).
12324 * include/font.h, troff/charinfo.h: Declare it.
12326 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
12328 * devhtml/DESC: Use it.
12330 * troff/input.cc: New function encoded_char.
12332 * troff/token.h: Add test for `specialness'.
12334 2000-01-21 Werner LEMBERG <wl@gnu.org>
12336 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
12337 mistake from the list of files to be installed.
12339 2000-01-18 Werner LEMBERG <wl@gnu.org>
12341 * README: Added info how to apply patches.
12343 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
12345 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
12347 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
12349 * troff/input.cc: Add support for troffrc-end.
12351 * tbl/main.cc: Altered to issue table-start and table-end special
12352 characters if using the html device.
12354 * devhtml/*: Modified font files to incorporate html encoding of
12357 * tmac/groff_markup.man: New file documenting tmac.arkup.
12359 * tmac/troffrc-end: New file. This is invoked after all user
12360 specified macros. Currently used by the html device to include
12361 tmac.html. Thus no need for users to specify -mhtml anymore.
12363 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
12364 (MAN7): Add groff_markup.man.
12366 * tmac/tmac.an, tmac/tmac.html: Small html updates.
12368 * tmac/troffrc: tmac.arkup will now be called for the html device.
12370 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
12371 extra device specific information about fonts.
12373 * doc/homepage.ms: New file. It is an example how an HTML home page
12374 could look like with grohtml.
12376 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
12378 2000-01-12 Bruno Haible <haible@clisp.cons.org>
12380 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
12383 * devutf8/NOTES: Updated.
12385 2000-01-08 Bruno Haible <haible@clisp.cons.org>
12387 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
12388 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12389 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12390 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12391 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12392 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12393 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12394 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12397 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12399 2000-01-12 Fabrizio Polacco <fab@prosa.it>
12401 grolj4: Paper size will be searched case-insensitively.
12403 * include/lib.h: Add check for strcasecmp().
12404 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12405 * configure.in: Check for strcasecmp().
12407 2000-01-11 Werner LEMBERG <wl@gnu.org>
12409 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12412 2000-01-10 Werner LEMBERG <wl@gnu.org>
12414 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12417 Add a new read-only register, `.Y', which contains the groff
12420 * troff/input.cc (init_input_requests): Define it.
12421 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12422 * doc/groff.texinfo, troff/troff.man: Document it.
12424 * libgroff/Makefile.sub (version.cc): Add definition of
12425 `Version_string[]', consisting of `<major>.<minor>.<revision>'
12426 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12427 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12428 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12429 troff/input.cc, pfbtops/pfbtops.c: Use it.
12431 2000-01-10 Fabrizio Polacco <fab@prosa.it>
12433 Add a revision scheme to the groff package.
12435 * REVISION: New file.
12436 * libgroff/Makefile.sub (version.cc): Use it to define
12437 `revision_string[]'.
12438 * grops/psrm.cc: Use revision_string (converted to an unsigned
12439 integer) in constructor of resource_manager.
12441 2000-01-10 Bruno Haible <haible@clisp.cons.org>
12443 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12445 * Makefile.in (DEVDIRS): Add devutf8.
12446 * grotty/tty.cc: Include device.h.
12447 (glyph): Change type of `code' to `unsigned int'.
12448 (tty_printer): New field is_utf8. Constructor takes device argument.
12449 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12450 (tty_printer::add_char): Change type of first arg to `unsigned int'.
12451 (tty_printer::put_char): New function.
12452 (tty_printer::end_page): Use put_char() instead of ::putchar().
12453 (make_printer): Pass device to tty_printer constructor.
12454 * nroff.sh: Determine default device by calling 'locale'. As a
12455 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12456 Recognize UTF-8 locales.
12457 * tmac/eqnrc: Recognize utf8 like latin1.
12458 * tmac/troffrc: Device utf8 needs tmac.tty.
12460 2000-01-07 Werner LEMBERG <wl@gnu.org>
12462 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12464 2000-01-07 Paul Eggert <eggert@twinsun.com>
12466 Add a new predefined writeable number register, `year',
12467 which contains the current year.
12469 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12470 * tmac/tmac.s: Use it.
12471 * troff/input.cc (init_registers): Initialize it.
12473 2000-01-06 Werner LEMBERG <wl@gnu.org>
12475 * PROBLEMS: Fixed typo.
12477 2000-01-04 Paul Eggert <eggert@twinsun.com>
12479 * PROBLEMS: Add Y2k advice for the yr number register.
12481 2000-01-03 Paul Eggert <eggert@twinsun.com>
12483 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12485 2000-01-02 Werner LEMBERG <wl@gnu.org>
12487 * tmac/tmac.arkup: Slight modification of macros to provide better
12488 appearance for non-HTML formats.
12490 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
12492 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12493 does not automatically translate to malloc(n) on all OSes
12494 (e.g., SunOS) so do it explicitly. Also, check the returned
12497 2000-01-01 Werner LEMBERG <wl@gnu.org>
12499 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
12501 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12502 expects this variable
12504 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
12506 * doc/Makefile: Added instructions to create HTML and text
12507 versions of some files.
12509 1999-12-31 Werner LEMBERG <wl@gnu.org>
12511 * Updated INSTALL.gen.
12513 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12514 better resp. correctly with non-HTML devices.
12516 Version 1.15 released
12517 =====================
12519 1999-12-28 Werner LEMBERG <wl@gnu.org>
12521 * NEWS, VERSION: Changed to 1.15
12523 1999-12-27 Paul Eggert <eggert@twinsun.com>
12525 * nroff/nroff.man: -S is safer, not safe.
12527 * groff/groff.cc (main): Use `safer', not `safe', in variable
12528 names. This does not change the behavior.
12530 * troff/input.cc (main): Likewise.
12532 * nroff/nroff.sh: Likewise.
12534 * troff/input.cc (prepend_string): New function.
12535 (main): Prepend -msafer, so that we check macro libraries for
12538 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12540 Version 1.14 released
12541 =====================
12543 1999-12-26 Werner LEMBERG <wl@gnu.org>
12545 * NEWS, VERSION: Changed to 1.14.
12547 1999-12-24 Werner LEMBERG <wl@gnu.org>
12549 * refer/refer.cc: Fixing the last fix.
12551 Version 1.13 released
12552 =====================
12554 1999-12-23 Werner LEMBERG <wl@gnu.org>
12556 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12561 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12563 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12564 document conventions, the version number must be a real.
12566 Version 1.12.1 released
12567 =======================
12569 1999-12-22 Werner LEMBERG <wl@gnu.org>
12571 * VERSION: Changed to 1.12.1.
12573 1999-12-22 Alan Rooks <arooks@istar.ca>
12575 * refer/refer.cc (do_file): Slight modification to satisfy the
12576 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12579 1999-12-20 Werner LEMBERG <wl@gnu.org>
12581 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12584 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12585 list of unsafe requests.
12587 * pic/pic.man: Fixed a typo.
12589 * man/groff_out.man: Fixed a typo.
12591 1999-12-18 Werner LEMBERG <wl@gnu.org>
12593 * Makefile.in: Doc fixes.
12595 1999-12-17 Fabrizio Polacco <fab@prosa.it>
12597 * groff/groff.cc: Missing `U' option added to getopt().
12599 * troff/troff.man: Missing `U' option added to synopsis.
12601 Version 1.12 released
12602 =====================
12604 1999-12-14 Werner LEMBERG <wl@gnu.org>
12606 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12609 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12610 with the more appropriate terms `safer' and `unsafe'.
12612 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12613 sys_nerr and sys_errlist[].
12615 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12617 * pic/pic.y, pic/pic.cc: Added check for fmod().
12619 1999-12-13 Werner LEMBERG <wl@gnu.org>
12621 * VERSION: Changed to 1.12.
12623 Here some patches from various sources; most of them taken from
12624 the Debian distribution.
12626 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12627 tmac/Makefile.sub: New files copied directly from the NetBSD
12628 distribution. Probably, some additional adaptation later on is
12631 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12632 of unsafe requests.
12634 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12635 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12636 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
12637 (`-S') is now the default.
12639 * README, NEWS: Updated.
12641 1999-12-09 Werner LEMBERG <wl@gnu.org>
12643 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12645 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12647 1999-12-06 Werner LEMBERG <wl@gnu.org>
12649 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12650 grief than relief today. Additionally, it is against the GNU
12653 * configure: Recreated.
12655 1999-12-05 Werner LEMBERG <wl@gnu.org>
12657 * configure.in: Added GROFF_LIBM.
12659 * configure: Recreated.
12661 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12664 * Makefile.in: Added definition of $(LIBM).
12666 * Makefile.comm (LIBM): Removed.
12668 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12670 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
12672 * doc/Makefile: Added rule for generation pic.html.
12674 (clean): Files produced by grohtml will be removed also.
12676 * doc/pic.ms: Small fix.
12678 * tmac/tmac.html: Fixed suppression of headers.
12680 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
12682 * tmac/tmac.html: Fixing horizontal arrows.
12684 Turning off hyphenation.
12686 * tmac/tmac.an: Improved support for grohtml; better indentation,
12687 no footers/headers.
12689 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
12691 * tmac/tmac.arkup: Added CDFTP macro
12693 * tmac/tmac.html: All headers are turned off for ms, me, and mm
12696 * tmac/troffrc: Some additions for HTML stuff.
12698 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
12700 * tmac/tmac.html: Small changes.
12702 1999-09-26 Werner LEMBERG <wl@gnu.org>
12704 * doc/groff.texinfo: Minor fixes.
12706 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
12708 * devhtml/TR: Changed spacewidth to 3.
12710 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12712 * tmac/tmac.html: Moved markup macros to tmap.arkup.
12714 * tmac/tmac.arkup: New file.
12716 * grohtml/ChangeLog: New file.
12718 1999-09-16 Werner LEMBERG <wl@gnu.org>
12720 * doc/groff.texinfo (Common Features): Added Copying chapter.
12721 Changed format to @smallbook.
12723 1999-09-15 Werner LEMBERG <wl@gnu.org>
12725 * NEWS: Added info about groff.texinfo.
12727 * doc/groff.texinfo: Will now compile (using texi2dvi) without
12730 1999-09-14 Werner LEMBERG <wl@gnu.org>
12732 * groff/groff.man: More updates.
12734 1999-09-13 Werner LEMBERG <wl@gnu.org>
12736 * doc/groff.texinfo: New file. This manual is still very
12737 rudimentary. It has been originally contributed by Trent
12738 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12741 * INSTALL: Added information about the `doc' subdir
12743 * troff/troff.man: Minor fixes.
12745 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12748 * troff/input.cc (usage): Added missing `-ffam' to usage message.
12750 * Makefile.in (dist): groff-$(version).tar.gz must be removed
12751 also, otherwise it is included itself in another call of `make
12754 * groff/groff.cc (synopsis): Removed superfluous space.
12756 * PROJECTS, PROBLEMS, NEWS: Updated.
12758 * VERSION: Updated to 1.12beta.
12760 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
12762 * README: Updated: Included documentation about CVS repository,
12763 mailing lists, and daily snapshots.
12765 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12767 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
12769 * tmac/tmac.an: If the tag didn't fit into the space that the
12770 macro `TP' specifies, the rest of the tag went into the space for
12773 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
12775 * grolj4/lj4.cc: Added duplex printing (option `-d').
12777 * grolj4/grolj4.man: Document duplex printing.
12779 1999-09-12 Werner LEMBERG <wl@gnu.org>
12781 * doc/Makefile (pic.ps): Fixed rule which caused problems with
12782 non-GNUish sed programs.
12784 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12787 * configure.in (LIBS): Added `-lc'
12789 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12791 * pic/tex.cc (solid_arc): Casting M_PI to double.
12793 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12795 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12796 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12797 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12799 * groff/groff_man.man: New file. This manual page was originally
12800 written for the Debian GNU/Linux system by Susan G. Kleinmann
12803 * eqn/list.cc (list_box::compute_metrics,
12804 list_box::compute_sublist_width): Removed variable declaration to
12805 avoid shadowing warnings.
12807 * grops/psrm.cc (resource_manager::process_file): Ditto.
12809 * tfmtodit/tfmtodit.cc (main): Ditto.
12811 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12812 to avoid shadowing warnings.
12814 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12815 shadowing loop variable.
12817 * groff/groff.man, troff/troff.man: Added doc about grohtml.
12819 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
12821 New grohtml frontend to convert groff input to html.
12823 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12825 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12827 * tmac/eqnrc: Added html device.
12829 * tmac/tmac.html: New file.
12831 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12832 (troff_output::start_picture, troff_output::finish_picture),
12833 tbl/main.cc (process_input_file):
12834 Surrounded output with `graphics_start' and `graphics_end' so that
12835 the html driver can identify non-text portions.
12837 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12838 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12839 grotty/tty.ps (tty_printer::set_char): Additional parameter
12842 * include/printer.h: Class printer: New function
12843 set_char_and_width; new variables (is_char_named, is_named_set,
12844 named_command, named_char_s, named_char_n) to hold information
12845 about named characters -- needed by the html driver.
12847 * libdriver/printer.cc (printer::set_ascii_char,
12848 printer::set_special_char): Use set_char_and_width.
12850 * devhtml/*: New device files for html driver.
12852 * grohtml/*: New driver grohtml.
12854 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
12856 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12859 1999-09-11 Luke Mewburn <lukem@netbsd.org>
12861 * libgroff/string.cc (search): Small fix to test against NULL
12864 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
12866 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12867 \b'abc') were stacked in reverse order when processed in a
12870 * troff/node.h: Added `*last' to struct `node' to make the above
12873 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12874 The default scale for the 'f' and 't' graphics functions were 'm'
12875 rather than 'u' (i.e., no scaling).
12877 1999-09-11 Peter Miller <peterm@jna.com.au>
12879 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12880 do_file), soelim/soelim.man: Added `-I file' option to soelim,
12881 defining include paths.
12883 * soelim/soelim.cc (include_path_append): New function.
12885 1999-09-11 Larry Jones <larry.jones@sdrc.com>
12887 * tbl/main.cc (process_options): Unix (at least Documenter's
12888 Workbench) tbl allows arbitrary non-alpha characters between
12891 1999-09-11 Paul Eggert <eggert@twinsun.com>
12893 Y2k fixes. Don't assume that the current year precedes 2000.
12895 * doc/meref.me: Add \n(y2, \n(y4.
12897 * tmac/doc-common (Yr): New number register.
12898 (Dd): Don't assume current year precedes 2000.
12900 * tmac/tmac.e (td): Likewise.
12901 (y2, y4): New number registers.
12903 * pic/pic.man: Update reference for pic paper to May, 1991
12906 1999-09-11 Werner LEMBERG <wl@gnu.org>
12908 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12909 Removed quotation marks which prevented correct expansion of
12912 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12914 1999-09-10 Werner LEMBERG <wl@gnu.org>
12916 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12919 * Removed configure.old.
12921 1999-08-31 Werner LEMBERG <wl@gnu.org>
12923 * VERSION: Updated to 1.11.1
12925 1999-05-27 Werner LEMBERG <wl@gnu.org>
12927 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12929 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12930 added quotations around $(tmac_wrap) to avoid syntax error if
12933 * configure: Newly generated using autoconf 2.13.
12935 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12937 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
12939 * README, PROJECTS, NEWS, INSTALL, VERSION,
12940 doc/Makefile. doc/pic.ms, groff/groff.man:
12941 Prepare for 1.11 release. No code changes.
12942 Documentation for pic added (doc/pic.ms).
12944 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
12946 * Version 1.10 released.
12948 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
12950 * afmtodit/afmtodit.pl: Avoid comment on first line.
12952 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
12954 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12955 * configure.in: Call it.
12957 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12958 (distfiles): Doesn't depend on config.log or config.cache.
12960 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
12962 * grog/grog.sh: Use print "" rather than print in END rule.
12964 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
12966 * tbl/main.cc (process_data): Don't give error for excess data
12967 entries that are comments.
12969 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
12971 * tbl/main.cc (process_data): Fix case where new for-scope rules
12972 silently change meaning of code.
12974 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
12976 * troff/env.cc (hyphenate): Loop over all consecutive sequences
12977 of non-zero hyphenation codes.
12979 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
12981 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12983 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
12985 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12987 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
12989 * tmac/tmac.andoc: Make it work in compatibility mode.
12991 * refer/token.h (token_info::is_range_sep): New function.
12992 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12993 * refer/ref.cc (reference::output): More sophisticated check for
12996 * devps/prologue.ps (MANUAL): New procedure.
12997 * grops/ps.cc (main): New -m option.
12998 (usage): Include -m.
12999 (ps_printer::~ps_printer): Implement -m.
13001 * aclocal.m4 (GROFF_G): New macro.
13002 * configure.in: Call it.
13003 * Makefile.in (g): Provided by configure.
13005 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
13007 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
13010 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
13011 (tmac_m, tmac_s): Deleted.
13012 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
13013 tmac_s_prefix): New variables.
13014 (MDEFINES): Change accordingly.
13015 * Makefile.comm (.man.n): Use new TMAC_* variables.
13016 * configure.in (GROFF_TMAC): Call.
13017 * aclocal.m4 (GROFF_TMAC): Define.
13018 * tmac/Makefile.sub (stamp_wrap): New target.
13019 (install_data, uninstall_sub): Handle macro wrapping.
13021 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
13023 * tbl/main.cc (main): Ignore -T option.
13025 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
13027 * devlj4/generate/special.map: Add definition of \(nb.
13029 * tmac/tmac.dvi: Add definition of \(nb.
13031 * troff/dictionary.c (dictionary::dictionary): association::v gets
13032 initialized by association::association.
13034 * tmac/Makefile.sub: Avoid using temporary files when installing.
13036 * troff/env.cc (environment::set_font): Make bad font number a
13039 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
13041 * Makefile.in (datadir): Use share rather than lib.
13043 * groff/groff.cc (basename): Rename to xbasename.
13045 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
13047 * Makefile (CCLIBS): Don't use.
13048 * Makefile.ccpg: Likewise.
13050 * acgroff.m4: Rename to...
13051 * aclocal.m4: Modify extensively for autoconf 2.
13052 * configure.in: Likewise.
13053 * Makefile.in: Likewise.
13055 * groff/pipeline.c (const): Declare as empty if __STDC__ not
13057 (xstrsignal): Check for definition of NSIG. Conditionalize
13058 on SYS_SIGLIST_DECLARED. Make return type const.
13060 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
13062 * troff/input.cc (interpolate_macro): Rephrase missing space
13065 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
13067 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
13068 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
13069 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
13070 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
13071 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
13072 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
13073 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
13074 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
13075 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
13076 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
13077 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
13080 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
13082 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
13084 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
13086 (macro_iterator::macro_iterator): Add additional argument.
13088 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
13090 * troff/div.cc (vertical_size::vertical_size): In place of integer
13091 specifying line spacing use cunits specifying post vertical
13093 (macro_diversion::output, top_level_diversion::output): Likewise.
13094 * troff/div.h: Change declarations accordingly.
13095 * troff/env.cc (pending_output_line): Replace ls field by post_vs
13097 (pending_output_line::pending_output_line,
13098 pending_output_line::output, environment::output,
13099 environment::output_line, environment::output_title,
13100 environment::hyphenate_line): In place of
13101 integer specifying line spacing use cunits specifying post vertical
13103 (environment::environment): Add post_vertical_spacing and
13104 prev_post_vertical_spacing arguments.
13105 (environment::get_post_vertical_spacing): New function.
13106 (environment::total_post_vertical_spacing): New function.
13107 (environment::post_vertical_spacing): New function.
13108 (init_env_requests): Initialize pvs request and .pvs register.
13109 * troff/env.h: Change declarations.
13111 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
13113 * tmac/tmac.pspic: Immediately remove the temporary file.
13115 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
13117 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
13118 height is specified.
13120 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
13122 * tbl/table.c (struct vertical rule, class table_entry): Use int
13123 not short for start_row and end_row.
13125 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
13127 * troff/input.cc (trapping_blank_line, blank_line_macro): New
13129 (diverted_space_node::reread, process_input_stack): Call
13130 trapping_blank_line() rather than blank_line().
13131 (init_input_requests): Bind "blm" to blank_line_macro().
13133 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
13135 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
13137 * troff/env.cc (environment::possibly_break_line): Require that
13138 width total excluding width of final space node be greater than
13139 the target text length.
13141 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
13143 * troff/node.cc (kern_pair_node::vertical_extent): New function.
13145 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
13147 * troff/node.cc (charinfo_node): New class.
13148 (glyph_node, composite_node): Derive from charinfo_node. Change
13149 member functions accordingly.
13151 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
13153 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
13155 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
13157 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
13159 * devps/generate/textmap (notsubset): Add.
13161 * tmac/tmac.a4: New file.
13163 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
13165 * pic/main.cc (had_parse_error): New variable.
13166 (do_picture, do_whole_file): Set had_parse_error if yyparse()
13168 (main): Return 1 if had_parse_error is true.
13170 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
13172 * grolj4/lj4.cc (main): Avoid use of strtoul.
13174 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
13176 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
13177 iso_8859_1 or $LESSCHARSET is latin1.
13179 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
13181 * hpftodit: New directory.
13182 * Makefile.in (CCPROGDIRS): Add hpftodit.
13183 * devlj4/generate: New directory.
13185 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
13187 * configure.in: Don't use AC_VFORK.
13188 * groff/pipeline.c (run_pipeline): Use fork() always.
13190 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
13192 * grops/ps.cc (main): Use %1 not %s in error message for -w.
13194 * Makefile.in (CCPROGDIRS): Add grolj4.
13195 (DEVDIRS): Add devlj4.
13196 * grolj4, devlj4: New directories.
13197 * tmac/troffrc: Handle lj4.
13198 * tmac/tmac.lj4: New file.
13200 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
13202 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
13204 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
13206 * troff/input.cc (do_if_request): At end of second string, switch
13207 environments before getting next token.
13209 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
13211 * devps/psstrip.sed: Split rule that strips whitespace on either
13212 side of delimiters.
13214 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
13216 * troff/node.h (font_family::make_definition): Add return value to
13217 declaration. * troff/symbol.h (symbol::operator==,
13218 symbol::operator!=): Likewise.
13220 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
13222 * groff/groff.cc (main, help, synopsis): Handle -S.
13223 (possible_command::insert_arg): New function.
13225 * tmac/tmac.safer: New file.
13226 * tmac/msafer.man: New file.
13227 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
13229 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
13231 * pic/pic.h, pic/main.cc (safer_flag): New variable.
13232 * pic/pic.y (placeless_element): Avoid unsafe operations if
13233 `safer_flag' is set.
13234 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
13236 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
13238 * eqn/lex.cc (get_token): Put call to add_context() in block to
13239 work around Sun C++ 4.0 bug.
13241 * include/stringclass.h (operator +): Use ?: instead of `if' to
13242 work around Sun C++ 4.0 bug.
13244 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
13246 * tbl/main.cc (process_format): Accept - as a synonym for the _
13249 * libbib/index.cc (minus_one): Don't declare as const.
13251 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
13253 * troff/input.cc (get_char_for_escape_name): Push back a newline.
13255 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
13257 * troff/input.cc (write_macro_request): New function.
13258 (init_input_requests): Bind write_macro_request to writem.
13260 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
13262 * tmac/tmac.s (@EN): Turn filling back on even if there was no
13265 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
13267 * tmac/tmac.s (@TS): Renamed from TS.
13268 (TS): Call LP then TS again.
13269 (cov*ab-init): Alias @TS to TS.
13271 * tmac/tmac.s: Allow QP or RS to initialize.
13273 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
13274 Move initializations of PS and LL here.
13275 (par@init): Don't initialize HY. Avoid changing environment 0.
13276 (par*env-init): Don't all par@reset.
13278 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
13280 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
13282 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
13284 * Makefile.in (MDEFINES): Add LDFLAGS.
13285 (LDFLAGS): Add definition line.
13287 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
13289 * troff/input.cc (get_optional_char): Split off error check into...
13290 (check_missing_character): New function.
13291 * troff/token.h: Declare it.
13292 * troff/env.cc (margin_character): Don't call get_optional_char.
13293 Only call tok.next() after making the node.
13295 * include/lib.h (getopt): Make 2nd argument char *const *.
13297 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
13299 * nroff/conftest.sh: Deleted.
13301 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
13303 * pic/make-dos-dist: Deleted.
13305 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
13307 * devps/psstrip.sed: Strip comments before stripping trailing
13310 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
13312 * Version 1.09 released.
13314 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
13316 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
13318 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
13320 * libgroff/font.cc (font::load_desc): Fix typo in error message.
13322 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
13324 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
13325 about returning without a value.
13327 * troff/charinfo.h (charinfo::get_special_translation): Cast
13328 TRANSLATE_NONE to int.
13330 * refer/token.cc (lookup_token, store_token): Remove bogus loop
13331 test. Fix test so that it works with n unsigned.
13333 * pic/pic.y (defaults_table): Fully bracket initializer.
13334 * pic/lex.cc (lookup_keyword): Likewise.
13335 * eqn/lex.cc (token_table, def_table): Likewise.
13336 * eqn/box.cc (param_table): Likewise.
13337 * troff/input.cc (warning_table): Likewise.
13338 * libgroff/font.cc (table): Likewise.
13339 * grops/ps.cc (ps_printer::special): Likewise.
13340 * grops/psrm.cc (resource_manager::process_file): Likewise.
13341 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
13342 * refer/command.cc (command_table): Likewise.
13343 * addftinfo/addftinfo.cc (param_table): Likewise.
13345 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
13346 about temp's being unused.
13347 (unused): New function.
13349 * groff/pipeline.cc: Declare c_fatal.
13351 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
13354 * libbib/index.cc (index_search_item::load): Prevent compiler
13355 warnings about fd_closer's being unused.
13356 (unused): New function.
13358 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
13360 * troff/input.cc (copy_mode_error): Make `prefix' static.
13363 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
13365 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
13366 HAVE_CC_OSFCN_H and modify accordingly.
13368 * troff/input.cc (init_charset_table): radicalex overlaps
13371 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
13372 udodo!hans@relay.NL.net).
13373 * groff/configure.in: Call it.
13375 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
13376 * groff/configure.in: Call it.
13377 * include/lib.h: Conditionalize declaration of pclose.
13379 * troff/div.cc (last_page_number): New global variable.
13380 (top_level_diversion::begin_page): Exit if we just printed the
13382 * troff/div.h (last_page_number): Declare it.
13383 * troff/input.cc (parse_output_page_list): Set last_page_number.
13385 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
13386 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
13387 tmac/tmac.X: Likewise.
13388 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13389 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13391 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
13393 * tmac/doc-ditroff (hK): Remove groff specific code which
13394 prevented page-breaks between separate manual entries. If this is
13395 the first page, don't set the page number to 1.
13397 * acgroff.m4 (GROFF_POSIX): New macro.
13398 * configure.in: Use it.
13400 * troff/node.cc (class real_output_file,
13401 real_output_file::real_output_file,
13402 real_output_file::~real_output_file): Conditionalize use of
13403 popen/pclose on POPEN_MISSING.
13404 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13405 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13406 (pipe_source): Similarily.
13408 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13410 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13411 presence of declarations by trying to compile example with
13412 conflicting declarations. (gcc only gives a warning for missing
13415 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
13417 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13418 (from Ulrich Lauther).
13420 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
13422 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13424 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
13426 * indxbib/indxbib.cc (write_hash_table): Add code for case where
13427 pointers and ints have different sizes.
13429 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
13431 * tmac/tmac.s (par*env-init): Call par@reset.
13433 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
13435 * tmac/tmac.s (@IP): Switch to a new environment when diverting
13437 (par*push-tag-env, par*pop-tag-env): New macros.
13439 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
13441 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13442 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
13444 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13445 comment. Include <time.h>.
13447 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
13449 * grops/ps.cc (is_small_h, is_small_v): Deleted.
13450 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13453 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
13455 * troff/input.cc (read_request): Only print a prompt if reading
13456 from the terminal. Also clearerr on EOF if reading from the
13457 terminal. Declare isatty.
13459 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
13461 * refer/label.y: Rename map_t to map_func and extractor_t to
13464 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
13466 * include/assert.h: Don't use volatile.
13467 * libgroff/assert.cc: Likewise.
13469 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
13471 * troff/input.cc (abort_request): Look at character in tok before
13472 calling get_copy().
13474 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
13476 * troff/troff.h (NO_RETURN): Deleted.
13477 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
13478 * troff/input.cc (exit_troff): Likewise
13480 * Makefile.in: Remove `Making ...' messages since GNU make now
13483 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13485 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
13487 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13488 to constant 1 inch.
13490 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
13492 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13494 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
13496 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13497 MARK_REG if there was no left delimiter.
13499 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
13501 * pic/troff.cc (troff_output::text): Set line thickness to
13502 relative before outputting text.
13504 * tmac/tmac.e (@k): Don't zero ?T.
13507 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
13509 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13511 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
13513 * troff/input.cc (decode_args): Warn about unquoted tabs (from
13516 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
13518 * troff/input.cc (ignoring): New variable.
13519 (ignore): Set ignoring during call to do_define_macro.
13520 (do_define_macro): Clear ignoring before interpolating terminating
13522 (copy_mode_error): New function.
13523 (get_char_for_escape_name, read_long_escape_name,
13524 interpolate_arg): Use copy_mode_error.
13525 (warning_table): Add WARN_IG.
13526 * troff/troff.h (WARN_IG): Declare.
13527 (WARN_TOTAL): Change accordingly.
13529 * groff/pipeline.c (strsignal): Rename to xstrsignal.
13530 * groff/groff.cc (strsignal): Delete declaration.
13532 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
13534 * troff/div.cc (page_offset): Use 'm' as default scaling.
13536 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
13538 * nroff/nroff.sh: Ignore -u.
13540 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
13542 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13544 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
13546 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13548 (B2): With -Tascii, leave additional vertical space before
13549 and after. Ensure that the left and right indent is restored to
13550 what it was even if the point size changes. Don't call
13551 par@finish. Change the indent, line length and title length
13552 directly. With -Tascii, make the width of the box 1n less.
13553 (B1): Remember 1n at the current point size. Don't call
13554 par@reset. Change the indent, line length and title length
13555 directly. Ensure that the temporary indent is preserved.
13556 (par*box-mark-top): Turn off no spacing mode.
13558 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
13560 * Makefile.in (dist): Use .gz suffix.
13562 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
13564 * troff/input.cc (main): Add return 0.
13565 * pic/main.cc (main): Use return instead of exit.
13566 * tbl/main.cc (main): Likewise.
13567 * eqn/main.cc (main): Likewise.
13568 * grops/ps.cc (main): Likewise.
13569 * grotty/tty.cc (main): Likewise.
13570 * groff/groff.cc (main): Likewise.
13571 * grodvi/dvi.cc (main): Likewise.
13572 * refer/refer.cc (main): Likewise.
13573 * indxbib/indxbib.cc (main): Likewise.
13574 * lkbib/lkbib.cc (main): Likewise.
13575 * soelim/soelim.cc (main): Likewise.
13576 * addftinfo/addftinfo.cc (main): Likewise.
13577 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13578 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13580 * troff/token.h (process_input_stack): Don't declare as static.
13581 * troff/input.cc: Likewise.
13583 * troff/node.c (invalidate_fontno): Make it a static member of
13584 class font_family. Change callers.
13585 * troff/node.c: Change declaration.
13587 * tbl/main.cc (struct input_entry_format): Add explicit public
13589 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13590 struct double_hline_stuff): Likewise.
13591 * tbl/table.h (struct entry_format): Likewise.
13592 * pic/object.h (struct saved_state): Likewise.
13594 * include/stringclass.h: Add forward declarations of friend
13595 functions that are later declared as inline. Don't include inline
13596 specifier in friend declaration.
13598 * libgroff/lib.h: Declare popen and pclose.
13599 * acgroff.m4 (GROFF_POPEN): New macro.
13600 * configure.in: Call it.
13602 * include/lib.h (PI): New constant. Undef first if necessary.
13603 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13604 * grops/ps.cc (degrees, radians): Likewise.
13605 * libgroff/font.cc (font::get_skew): Likewise.
13607 * grops/ps.cc (is_ascii): New function.
13608 (ps_output::put_string): Use is_ascii. Use csprint rather than
13610 (ps_printer::define_encoding): Use csspace.
13611 * libgroff/strtol.c (ISASCII): New macro.
13612 (strtol): Cast arguments to is*() and tolower() to unsigned char.
13613 Use ISASCII rather than isascii.
13614 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13615 * libgroff/cset.cc: Likewise.
13616 * libdriver/input.cc: Include cset.h.
13617 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13620 * refer/refer.cc (main): Use %ld rather than %d for longs.
13622 * libbib/index.cc (index_search_item_iterator::get_tag): Use
13625 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13627 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
13629 * troff/input.cc (hyphenation_code): Skip white space between
13632 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
13634 * tbl/table.h (table::entry_list_tailp): New member.
13635 (table::table): Initialize it.
13636 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13639 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
13641 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13642 with negative horizontal positions. Remove casts of glyph::hpos to
13644 (USHRT_MAX): Delete definition.
13645 (SHRT_MAX, SHRT_MIN): New definitions.
13646 (glyph::hpos): Change type to short.
13647 (tty_printer::end_page): Output multiple backspaces if necessary.
13648 Remove casts of glyph::hpos to int.
13650 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
13652 * tmac/tmac.s (@RT): New definition.
13654 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
13656 * refer/refer.cc (do_file): Make sure current_filename is set when
13659 * pic/common.cc (common_output::dot_line): Handle zero length
13662 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
13664 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13665 (par@init): Initialize \n[HY].
13667 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
13669 * troff/dictionary.cc (dictionary::remove): Continue when
13672 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
13674 * Makefile.com (.y.cc): Avoid ending up with two versions of
13677 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
13679 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13680 (\(,C): Likewise. Also fix typo.
13682 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
13684 * lib.h: Delete extraneous semi-colon.
13686 * Add pso request: `so' from a pipe.
13687 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13688 (file_iterator::close): New function.
13689 (file_iterator::~file_iterator, file_iterator::next_file): Use
13690 file_iterator::close.
13691 (file_iterator::backtrace): Say `process' rather than `file' when
13692 the stream is popened.
13693 (pipe_source): New function.
13694 (init_input_requests): Bind ".pso" to pipe_source.
13696 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
13698 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13700 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
13701 digits in lower case.
13703 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
13705 * Version 1.08 released.
13707 * Makefile.in (dist): Insert || true after ln -s commands that
13710 * mm: Update to mm 1.16.
13712 * acgroff.m4 (GROFF_CSH_HACK): New macro.
13713 * configure.in: Call GROFF_CSH_HACK. Substitute for
13715 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
13717 * nroff/Makefile.sub (nroff): New target.
13718 (install_data): Install nroff.
13719 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13720 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13722 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
13724 * eqn/Makefile.sub (neqn): Add chmod +x.
13726 * grog/Makefile.sub (grog): Remove spurious semi-colon.
13728 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
13730 * troff/input.cc (string_iterator::string_iterator()): Initialize
13733 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
13735 * troff/div.cc (macro_diversion::space,
13736 top_level_diversion::space): Don't set high_water_mark.
13737 (macro_diversion::output, top_level_diversion::output): Don't
13738 include post line space in high water mark.
13740 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
13742 * eqn/eqn.y: Don't define YYDEBUG.
13743 * pic/pic.y: Likewise.
13745 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
13747 * tmac/tmac.e ([3): Add space after comma following editors.
13748 Change double spaces to single spaces.
13749 ([4): Change double spaces to single spaces.
13751 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13752 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13753 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13754 after %!PS-Adobe- (for Newsprint).
13756 * troff/div.cc (top_level_diversion::begin_page): When
13757 before_first_page is 1, set page_number to 1.
13759 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
13761 * eqn/box.cc (box::top_level): Protect equation with \&.
13763 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
13765 * groff/groff.cc (possible_command::set_name): Delete old name.
13767 * groff/groff.cc (possible_command::~possible_command): Use
13770 * troff/node.cc (troff_output_file::begun_page): New member.
13771 (troff_output_file::troff_output_file): Initialize it.
13772 (troff_output_file::really_begin_page): Only output V command if a
13773 page has been begun.
13775 * pic/pic.y (placeless_element): Delete argument to PRINT after
13778 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
13780 * Make wrapman work.
13781 * troff/div.h (class top_level_diversion): Replace
13782 first_page_begun by before_first_page (with opposite sense).
13783 * Change first_page_begun to before_first_page inverting sense.
13784 * troff/div.cc (class nl_reg): New class.
13785 (init_div_requests): Use class nl_reg for \n(nl.
13786 (top_level_diversion::begin_page): Don't call
13787 output_file::begin_page if before_first_page is 2;
13788 reset before_first_page afterwards. If have_next_page_number is
13789 false, then always increment page_number.
13790 * tmac/tmac.an: Set traps within TH rather than at the top-level.
13791 Restore compatibility mode after loading, and then disable
13792 compatibility mode in TH.
13794 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
13796 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13798 * troff/node.h (output_file::trailer): Declare.
13799 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13800 * troff/node.cc (output_file::trailer): New function.
13801 (troff_output_file::~troff_output_file): Move most code into...
13802 (troff_output_file::trailer): New function.
13803 (class troff_output_file): Delete page_length member. Declare
13805 (troff_output_file::really_begin_page): Use current page length
13806 for final V command.
13808 * tbl/main.cc (struct options): New decimal_point_char member.
13809 (options::options): Initialize this.
13810 (process_options): Implement decimalpoint option.
13811 (process_data): Pass decimal_point_char option to table::table.
13812 * tbl/table.h (class table): New decimal_point_char member.
13813 (table::table): Add additional argument.
13814 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13815 second argument specifying decimal point character. Use this
13817 (table::table): Initialize decimal_point_char.
13818 (table::add_entry): Change call to find_dot.
13820 * troff/input.cc (get_copy, token::next): Implement \V.
13821 (interpolate_environment_variable): New function.
13823 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
13825 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13826 * pic/pic.y: Likewise.
13828 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13830 * refer/ref.cc (reference::insert_field, reference::delete_field):
13832 * troff/number.cc (parse_term): Likewise.
13834 * acgroff.m4 (GROFF_PROG_YACC): New macro.
13835 * configure.in: Use GROFF_PROG_YACC.
13837 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13839 * Makefile.in (OPTIMIZE): New define.
13840 (DEBUG): Empty by default.
13841 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13843 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13844 (GROFF_ARRAY_DELETE): Likewise.
13845 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13847 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13849 * devps/psstrip.sed: Use different delimiter on last line (so that
13850 it works with BSD 4.4 sed.)
13852 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
13854 * devps/psstrip.sed: Delete comments.
13856 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13857 optind, opterr, optarg.
13858 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13861 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
13863 * Makefile.in (check): Dummy target.
13865 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
13867 * Version 1.07 released.
13869 * Integrate mm 1.11.
13871 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13872 where start_col was meant.
13874 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
13876 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13878 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
13880 * troff/input.cc (token::next): Make \z\o'...' and similar things
13883 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13885 (environment): Add margin_character_flags member.
13886 * env.cc (environment::environment(symbol),
13887 environment::environment(const environment *): Initialize
13888 margin_character_flags.
13889 (margin_character): Rewrite.
13890 (environment::output_line): Add a margin character if
13891 margin_character_flags is non-zero. Turn off the
13892 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
13893 zero, use margin_character_node without copying and then set
13894 margin_character_node to 0.
13896 * devps/DESC.in: Change minimum size to 1000.
13898 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
13900 * troff/symbol.h (symbol::hash): Change return type to unsigned
13902 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13905 * test-groff: Use -r rather than -x.
13907 * grops/psfig.diff: Include in distribution again.
13909 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
13911 * Makefile.in (dist): Use gzip.
13913 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
13915 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13916 unistd.h as well as in stdlib.h.
13917 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13918 defined; otherwise include <sys/types.h> and <unistd.h> if
13919 UNISTD_H_DECLARES_GETOPT is defined.
13921 * configure.in: use builtin(include, ... rather than include(...
13922 * configure: Regenerate with autoconf 1.3.
13924 * libdriver/print.cc (printer::adjust_arc_center): Use new
13925 algorithm suggested by Andy Fyfe.
13927 * libdriver/printer.cc (printer::adjust_arc_center): New function.
13928 * include/printer.h: Declare this.
13929 * grops/ps.cc (ps_printer::draw): Use it.
13930 * grodvi/dvi.cc (dvi_printer::draw): Use it.
13932 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
13934 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13936 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
13938 * eqn/main.cc (main): Handle "eqn -".
13940 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
13942 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13944 * mm: Integrate version 1.08.
13946 * pic/troff.cc (troff_output::finish_picture): Set
13947 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13948 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13949 if it's not defined. Check whether the register is non-zero rather
13950 than whether it's not defined.
13951 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13953 * indxbib/indxbib.cc: Move all signal handling into...
13954 * indxbib/signal.c: New file.
13955 * configure.in: Call AC_RETSIGTYPE.
13957 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13958 * configure.in: Call GROFF_STRUCT_EXCEPTION.
13959 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13961 * troff/input.cc (token::token, token::operator=): Work round SGI
13963 * pic/object.cc (position::position): Likewise.
13965 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
13967 * pic/pic.h: Move declaration of hypot().
13969 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
13971 * pic/pic.h: Declare hypot().
13973 * pic/pic.h: Define M_PI if necessary.
13975 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
13977 * tmac/tmac.e (re): Add alternative version that doesn't use groff
13980 * devps/prologue.ps (RE): Handle the possibility that the old font
13981 doesn't have a FontName entry.
13983 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
13985 * tmac/tmac.e (fam): Redefine to set family in environment 2.
13986 (@C): Use @fam not fam.
13988 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
13990 * lookbib/lookbib.cc (main): Change type of start to const char *.
13991 * lkbib/lkbib.cc (main): Likewise.
13993 * eqn/lex.cc (definition::definition): Don't use member
13994 initializer syntax for members of anonymous unions.
13996 * troff/input.cc (input_stack::backtrace): Change type of to const
13999 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
14001 * include/stringclass.h (class string): Declare inline friend
14002 functions as inline in class declaration.
14003 * troff/hvunits.h (class hunits, class vunits): Likewise.
14004 * include/refid.h (class reference_id): Likewise
14005 * troff/troff.h (points_to_units(units), scale(units, double)):
14006 Delete declarations.
14007 * libdriver/input.cc (get_char): Delete declaration.
14008 * include/lib.h: Change 2nd argument of getopt from const char **
14010 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
14011 char **' before assigning to a `const char **'.
14012 * tbl/table.cc: Delete extra declarations of prints().
14014 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
14016 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
14017 char **' before assigning to a `const char **'.
14019 * libgroff/errarg.cc (errarg::errarg): Don't use member
14020 initializer syntax for members of anonymous unions.
14022 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
14024 * mm: Integrate version 1.07.
14026 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
14028 * troff/input.c (translate2): Rename to
14029 (translate_no_transparent).
14030 (init_input_requests): Rename tr2 to trnt.
14032 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
14034 * troff/charinfo.h (class charinfo): Add transparent_translate field.
14035 (charinfo::set_translation, charinfo::set_special_translation):
14036 Add second argument that specifies value for
14037 transparent_translate.
14038 (charinfo::get_translation, charinfo::get_special_translation):
14039 Add optional second argument that specifies whether translation is
14040 being used for transparent throughput.
14041 * troff/input.cc (charinfo::set_translation,
14042 charinfo::set_special_translation): Handle second argument.
14043 (charinfo::charinfo): Initialize transparent_translate.
14044 (translate): Split main part off into
14045 (do_translate): New function. Pass argument saying whether
14046 translation applies to transparent throughput.
14047 (translate2): New request.
14048 (init_input_requests): Bind translate2 to `tr2'.
14050 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
14052 * tbl/table.h (class table): Add `nokeep' flag.
14053 * tbl/main.cc (process_options): Handle `nokeep' option.
14054 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
14055 table::do_bottom): Don't output keep/release macro definitions or
14056 calls when `nokeep' option has been specified.
14058 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
14060 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
14062 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
14064 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
14065 block_entry::divert, alphabetic_block_entry::divert): Add extra
14066 argument giving column separation.
14067 (table::compute_widths): Pass column separation to
14068 table_entry::divert().
14069 (block_entry::do_divert): If an entry spans multiple columns and a
14070 minimumum width has been specified for each column, then set the
14071 line length to the sum of the widths (plus possibly the column
14074 * troff/input.cc (set_escape_char): Don't set the escape_char
14075 until after calling has_arg().
14077 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
14079 * tbl/table.cc (table::do_top): Add missing \s0 for double box
14082 * tbl/table.cc (table::print_double_hline): Avoid extra new line
14083 in case where r > nrows - 1.
14085 * tbl/table.cc (BODY_HEIGHT): Deleted.
14086 (LINE_SEP): New definition.
14087 (table::print_single_hline, table::print_double_hline,
14088 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
14089 table::do_row, table::do_top): Use LINE_SEP space before a line
14090 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
14092 * tbl/table.cc (text_entry::print_contents): New function.
14093 (text_string_name, right_text_string_name): Deleted.
14094 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
14095 (simple_text_entry::do_width, numeric_text_entry::do_width,
14096 alphabetic_text_entry::do_width): Don't store the contents of the
14098 (left_text_entry::simple_print, right_text_entry::simple_print,
14099 center_text_entry::simple_print,
14100 alphabetic_text_entry::simple_print,
14101 numeric_text_entry::simple_print): Print the entry directly
14102 instead of using the stored string.
14104 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
14106 * devps/Makefile: Strip PostScript files.
14107 * devps/prologue: Rename to...
14108 * devps/prologue.ps.
14109 * devps/psstrip.sed: New file.
14110 * devps/download: Use .pfa rather than .ps for installed versions
14113 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
14115 * troff/env.cc (input_trap): Give a warning if the argument is out
14118 * troff/env.cc (adjust): Treat negative argument as missing. Round
14119 argument > 5 down to 5.
14121 * troff/env.cc (center, right_justify): Make negative argument zero.
14123 * troff/div.cc (page_offset, vertical_position_traps): Treat
14124 invalid argument as missing.
14125 * troff/env.cc (line_spacing, line_length, title_length, indent,
14126 underline, hyphen_line_max_request, control_char,
14127 no_break_control_char, widow_control_request, adjust, input_trap,
14128 point_size): Likewise.
14129 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
14130 constant_space): Likewise.
14131 * troff/input.cc (compatible, shift, warn_request,
14132 set_escape_char): Likewise.
14134 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
14135 * tbl/table.cc (table::table): Likewise.
14137 * Makefile.dev (install_dev): depends on $(DEVFILES).
14139 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
14141 * devX75, devX75-12, devX100, devX100-12: New directories.
14142 * Makefile.in: Add these to DEVDIRS.
14144 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
14145 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
14146 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
14147 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
14149 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
14150 (uninstall): New target.
14151 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
14152 uninstall_prog, uninstall_dev): New targets.
14154 * troff/div.cc (return_request): Treat an invalid argument as
14157 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
14159 * tmac/tmac.e ((f): Set up the environment even when there's a
14160 current diversion. Transperently throughput a call to @N.
14163 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
14165 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
14166 up to vertical resolution.
14168 * tbl/table.cc (table::do_row): Change row number after printing
14171 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
14173 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
14175 * Rename CHANGES to NEWS.
14177 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
14179 * libgroff/new.cc (operator new): Avoid calling malloc(0).
14181 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
14183 * man.ultrix: Removed.
14185 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
14187 * Makefile.comm (extraclean): Delete files whose names begin with
14190 * pic/troff.cc (troff_output::text): Fix typo in implementation of
14193 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
14195 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
14196 * troff/div.cc (page_length, need_space, space_request): Treat
14197 invalid optional argument as missing.
14198 * troff/env.cc (number_lines): If the first argument is present
14199 but not a number, turn on line numbering, don't change the next
14200 line number and parse the remaining arguments.
14202 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
14204 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
14206 * eqn/box.h: Change declaration accordingly.
14207 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
14208 the specified size was bad but don't give an error. Check for
14210 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
14211 * eqn/lex (do_size): Likewise.
14213 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
14215 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
14216 compatible headers.
14218 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
14220 * tbl/table.cc (table::init_output): Improve error message when
14221 table won't fit on one page.
14223 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
14225 * pic/troff.cc (troff_output::start_picture): Generate line
14226 containing a horizontal motion equal to the width of the picture.
14228 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
14229 using GROFF_COMMAND_PREFIX environment variable.
14231 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
14233 * mdate.sh: Use $NF rather than $(NF).
14235 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
14237 * pic/main.cc (main): Use %1 not %c in argument to warning.
14239 * eqn/main.cc (main): Output code to check that geqn was given the
14242 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
14244 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
14245 `ln -s ../Makefile .; make; rm -f Makefile'.
14247 * troff/hyphen: Rename to...
14249 * troff/input.cc (main): Delete -H option. Don't call
14250 read_hyphen_file().
14251 * troff/env.cc: Include searchpath.h and macropath.h.
14252 (exception_dictionary): Deleted.
14254 (read_hyphen_file): Deleted.
14255 (hyphenation_language): New struct.
14256 (class trie, class hyphen_trie): Move declarations up.
14257 (trie_node::~trie_node): Deleted.
14258 (trie::delete_trie_node): New function.
14259 (trie::do_delete): New pure virtual function.
14260 (hyphen_trie::do_delete): New function.
14261 (trie::~trie): New function.
14262 (hyphen_trie::~hyphen_trie): New function.
14263 (trie::clear): No need to chcek that tp is not 0.
14264 (current_language, language_dictionary): New variables.
14265 (hyphen_word): Give an error if no current language. Use
14266 exceptions dictionary in current language.
14267 (hyphen_trie::read_patterns_file): Find file using macro_path.
14268 Allow comments (starting with %) in patterns file. Don't make it
14269 a fatal error if the file can't be found.
14270 (hyphenate): Return if no current language. Get the exceptions
14271 dictionary and the hyphenation patterns from the current language.
14272 (set_hyphenation_language): New variable.
14273 (hyphenation_patterns_file): New function.
14274 (hyphenation_language_reg): New class.
14275 (hyphenation_language_reg::get_string): New function.
14276 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
14277 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
14279 * groff/groff.cc (main, help, synopsis): Delete -H option.
14280 * include/Makefile.sub: Don't define HYPHENFILE.
14281 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
14282 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
14283 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
14284 hyphenation patterns.
14286 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
14288 * eqn/neqn.sh: New file.
14289 * eqn/Makefile.sub: Handle neqn.sh.
14291 * eqn/eqn.h: Declare `nroff' variable.
14292 * eqn/box.cc (param_table): Add `nroff' param.
14293 (nroff): Define it.
14294 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
14296 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
14298 * troff/troff.h (WARN_FONT): New warning.
14299 (WARN_TOTAL): Change accordingly.
14300 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
14301 (warning_table): Add WARN_FONT.
14302 * troff/node.cc (mount_font_no_translate): Pass argument to
14303 font::load_font. If this is non-zero, give a warning.
14304 Don't give an error message when accessing a font that has already
14305 been found to be invalid.
14306 * include/font.h (font::load, font::load_font): Add additional
14307 optional argument which suppresses error message if the font is
14309 * libgroff/font.cc (font::load_font): Handle additional argument.
14310 (font::load): Add additional argument. If this is non-null, set it
14311 to 1 and don't give error message.
14313 * include/printer.h (printer::end_page): Add argument giving
14315 * libdriver/input.cc (do_file): Pass this.
14316 * grops/ps.cc (ps_printer::end_page): Add argument.
14317 * grodvi/dvi.cc (dvi_printer::end_page,
14318 draw_dvi_printer::end_page): Add argument.
14319 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
14320 columns_per_page members. New member nlines.
14321 (DEFAULT_LINES_PER_PAGE): Deleted.
14322 (tty_printer::tty_printer): Don't compute lines_per_page from
14323 font::paperlength. Don't compute columns_per_page from
14325 (tty_printer::add_char): Don't check horizontal position against
14326 columns_per_page. Grow glyphs vector if neccessary.
14327 (tty_printer::end_page): Add argument giving page_length in units.
14328 Discard lines past end of page.
14330 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
14332 * tmac/tmac.tty-char: Fix definition of \(/l.
14334 * tmac/tmac.X: Define \(en.
14336 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
14338 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
14339 lpq, then use lp rather than lpr.
14341 * tmac/tmac.s (par@reset): Don't call `ad'.
14342 (par*env-init): Call `ad'.
14344 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
14346 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
14349 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
14350 * indxbib/indxbib.cc: Likewise.
14352 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
14354 * libgroff/putenv.c: New file.
14355 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
14356 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
14357 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
14358 stdlib.h with AC_HAVE_HEADERS.
14360 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
14362 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
14365 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
14367 * eqn/box.cc (gsize): Make it an int.
14368 (set_gsize): Parse argument handling increment or decrement.
14369 (box::top_level): Convert gsize to a string.
14371 * troff/input.cc (exit_troff): Make buf unsigned char [].
14372 Call to make_temp_iterator casts buf to char*.
14374 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
14376 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
14377 * Makefile.cpg (depend.temp): Likewise.
14379 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
14381 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
14383 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
14385 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
14387 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
14389 * Version 1.06 released.
14391 * Integrate mm 1.04.
14393 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
14395 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14397 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
14399 * afmtodit/afmtodit.pl: Add -n option that disables generation of
14401 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14402 afmtodit. Regenerate.
14404 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14405 @f back past the current position.
14407 * tmac/tmac.e: Change calls to @R so that comments are not part of
14410 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
14412 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14414 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14415 check that we can link a call to a function declared in <stdio.h>.
14416 (GROFF_UNISTD_H): New macro.
14417 * configure.in: Call it.
14418 * Makefile.in: Document it.
14419 * include/posix.h: New file.
14420 * troff/troff.h: Don't include <osfcn.h>
14421 * troff/input.cc: Include posix.h.
14422 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14424 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14425 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14427 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14428 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14429 * libbib/search.cc (O_RDONLY): Delete definition.
14430 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14431 Don't include <osfcn.h>.
14433 * acgroff.m4 (GROFF_TIME_T): New macro.
14434 * configure.in: Call it.
14435 * Makefile.in: Document it.
14437 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14438 * configure.in: Call it.
14439 * Makefile.in: Document -DTRADITIONAL_CPP.
14440 * include/ptable.h: Don't include generic.h.
14441 (name2): Define it.
14443 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14444 Afterwards remove [T1 and [T2.
14445 (ref*spec!0, ref*spec!2): Use T1 rather than T.
14446 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14447 (ref*add-T2): Renamed from ref*add-T.
14448 (ref*add-T1): New macro.
14450 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
14452 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14454 * libbib/index.cc: Include <fcntl.h>.
14455 (O_RDONLY): Define if necessary.
14456 (make_index_search_item, index_search_item_iterator::get_tag,
14457 index_search_item::check_files): Use O_RDONLY.
14458 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14459 (O_RDONLY): Define if necessary.
14460 (search_list::add_file): Use O_RDONLY.
14461 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14463 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14466 * libbib/index.cc (S_ISREG): Define it if necessary.
14467 (index_search_item::load): Use S_ISREG.
14469 * include/driver.h: Include <errno.h>.
14471 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
14473 * eqn/box.cc (body_height): Increase default value to 85.
14474 (body_depth): Increase default value to 35.
14476 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
14478 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14479 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14480 protected from expansion with \E.
14482 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14484 * Makefile (Makefile): New target.
14486 * Makefile.sub (configure, distfiles): New targets.
14488 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14491 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
14493 * eqn/box.cc (param_table): Add body_height and body_depth.
14495 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14497 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
14499 * psbb/Makefile.sub: Don't link with libgroff.a.
14501 * acgroff.m4 (GROFF_PUTENV): New macro.
14502 * configure.in: Call GROFF_PUTENV.
14503 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14504 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14507 * troff/env.cc (distribute_space): Rename force_forward argument
14508 to force_reverse. Reverse the list if force_reverse is true.
14510 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
14512 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14514 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14515 height or depth to be negative. Guard against SUP_RAISE quantity
14518 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
14520 * devps/generate/textmap: Add `an' (arrowhorizex).
14521 * tmac/tmac.ps: \(an overlaps horizontally.
14522 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14524 * devps/symbolchars: Add arrowverttp, arrowvertbt.
14525 * devps/textmap: Add arrowvertex.
14526 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14527 updownarrow delimiters.
14528 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14530 * tbl/table.cc (simple_entry::position_vertically,
14531 block_entry::position_vertically): For a centered entry, perform
14532 the motion in two stages.
14534 * refer/refer.cc (split_punct): Don't call lookup_token if there
14537 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
14539 * troff/input.cc (token::next): Delete token_node after copying
14542 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14545 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14547 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14549 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
14551 * grops/ps.cc (usage): -b option takes an argument.
14553 * devps/prologue (PLG): New procedure.
14554 * grops/ps.cc (main, usage): New -g option.
14555 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
14558 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
14560 * include/cset.h: Include <limits.h> if we have it.
14562 * libgroff/illegal.cc: New file.
14563 * include/lib.h (illegal_input_char): Use table.
14564 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14565 * pic/lex.cc (ARG1): Renumber to 14.
14566 * eqn/lex.cc (ARG1): Likewise.
14568 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14569 (eg 1.05.90) correctly.
14571 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
14573 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14574 Rename $r and $R registers to $v and $V.
14575 ($r, $R): Initialize to 0.
14576 (@v, @V): New macros.
14580 * troff/input.cc (main, usage): Add -R option that says not to
14582 * eqn/main.cc (main, usage): Rename -n to -R.
14584 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
14586 * devps/DESC.in: Leave font positions 5-9 blank.
14587 * devdvi/DESC.in: Likewise.
14589 * grog/grog.pl: Handle `.PS <file' correctly.
14591 * troff/input.cc (input_stack::push): Improve error message when
14592 input stack limit exceeded.
14594 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
14596 * refer/refer.cc (main): Fix typo in handling of `a' option.
14598 * refer/refer.cc (do_bib): In state START after a newline remain
14601 * groff/groff.sh: Deleted.
14602 * groff/Makefile.sub: Delete handling of groff.sh.
14604 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14605 to determine whether to use \X'ps:...'.
14606 * tmac/troffrc: Set 0p register to 0.
14607 * tmac/tmac.ps: Set 0p register to 1.
14609 * groff/groff.cc: Support -X option. Give warning for -TXps and
14610 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14611 * tmac/troffrc: Support -r.X=1.
14613 * pic/troff.cc (troff_output::dot): Don't test
14614 zero_length_line_flag.
14616 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
14618 * include/lib.h: Declare getopt() and friends unless
14619 STDLIB_H_DECLARES_GETOPT is defined.
14621 * doc/chars.tr: Delete.
14622 * man/groff_char.man: New file.
14624 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
14626 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14627 user has changed register format.
14629 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
14631 * groff/groff.cc: Get rid of device_table. Get postprocessor from
14632 `postpro' command in DESC file. Get spooler command from `print'
14633 command in DESC file. Execute spooler command with /bin/sh.
14635 * groff/groff.cc: Split Unix-specific parts into...
14636 * groff/pipeline.c: New file.
14639 * COPYING: New file.
14640 * all files: Update copyright notices.
14642 * Rearrange files. Redo Makefiles. Use autoconf.
14644 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
14646 * troff/input.c (charinfo_to_node_list): Interpret character
14647 definition with escape_char of `\'.
14649 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
14651 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14652 Define INT_DIGITS as big enough for 64-bit integer.
14653 * lib/strtol.c: Don't include lib.h.
14654 * lib/lib.h: Delete ifdef __cplusplus stuff.
14656 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
14658 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
14659 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
14660 get DESC from current directory.
14662 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
14664 * tbl/main.c (main): Always reset the line number when reading
14667 * tbl/table.c (table::print_single_hline, table::print_double_hline,
14668 table::define_bottom_macro, table::do_row, table::do_top): Round
14669 vertical spacing up to vertical resolution.
14671 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
14673 * ps/ps.h (enum resource_type): Avoid comma at end of
14675 * dvi/dvi.c (class dvi_printer): Likewise.
14676 * dvi/tfmtodit.c (gf::load): Likewise.
14677 * refer/label.y (struct expression): Likewise.
14678 * refer/refer.c (class label_processing_state): Likewise.
14679 * refer/indxbib.c (do_file): Likewise.
14680 * troff/troff.c (enum warning_type): Likewise.
14681 * tbl/main.c (process_data): Likewise.
14682 * troff/charinfo.h (class charinfo):
14684 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
14686 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
14688 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
14690 * groff.c: Move to new groff subdirectory.
14691 * groff/Makefile: New file.
14692 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14694 * man/mdate.sh: Use ls -L if supported.
14696 * Consolidate all header files produced by gendef into lib/defs.h.
14697 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14698 Don't include path.h.
14699 * lib/Makefile (path.h): Don't generate.
14700 * troff/input.c: Include defs.h. Don't include config.h.
14701 * troff/Makefile (config.h): Don't generate.
14702 * refer/index.h: Don't include suffix.h.
14703 * refer/index.c: Include defs.h.
14704 * refer/indxbib.c: Include defs.h.
14705 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14707 * refer/Makefile (suffix.h, path.h): Don't generate.
14708 * groff.c: Don't include config.h. Include defs.h.
14709 * Makefile (config.h): Don't generate.
14710 (lib/defs.h): Generate.
14711 (topclean): Remove lib/defs.h.
14713 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
14715 * lib/malloc.c, lib/getpagesize.h: Deleted.
14716 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
14718 * lib/Makefile: Delete malloc-related stuff.
14719 * lib/new.c: Workaround COOKIE_BUG if necessary.
14721 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
14722 needed header files directly.
14723 * refer/refer.h: Omit definition of DEFAULT_INDEX.
14724 * Makefile: Include definition of DEFAULT_INDEX in path.h.
14726 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
14728 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14730 * lib/font (font::load_desc, font::load): Don't split argument of
14732 (font::handle_unknown_font_command): Change type.
14733 * ps/ps.c (ps_font::handle_unknown_font_command,
14734 handle_unknown_desc_command): Change type.
14735 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14737 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
14739 * lib/font.h (font::handle_unknown_font_command): Add file and
14741 * lib/font.c (font::handle_unknown_font_command):
14742 * ps/ps.c (ps_font::handle_unknown_font_command):
14743 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14744 lineno arguments. Use _with_file_and_line functions for error
14747 * lib/fontfile.c (font::unknown_desc_command_handler): New static
14749 * lib/font.c (font::set_unknown_desc_command_handler): New
14751 (font::load_desc): For unknown commands, call
14752 unknown_desc_command_handler if not null.
14753 * lib/font.h (class font): Declare them.
14754 (FONT_COMMAND_HANDLER): New typedef.
14755 * ps/ps.c (handle_unknown_desc_command): New function.
14756 (main): Set bflag if we had a -b option. Call
14757 font::set_unknown_desc_command_handler.
14758 (broken.h): Don't include.
14759 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
14761 * ps/devps/Makefile: Add `broken' command to DESC file using
14762 BROKEN_SPOOLER_FLAGS.
14764 * macros/tmac.e ([, ]): Add as synonyms for { and }.
14766 * macros/tmac.e ($p): Only exdent if \$3 > 0.
14768 * macros/tmac.e (@R, @S): New macros.
14769 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14770 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14771 Declare $H, $[0-9], .. macros with @S.
14772 Declare |0, |1, |2, |3 strings with @S.
14774 * macros/tmac.e (@S): Rename to @U.
14776 * macros/tmac.e (@z): Define @b and bp as empty instead of
14779 * macros/tmac.e (@m): Deleted.
14780 (@h): Don't call @m.
14781 (@z): Don't set @m trap.
14783 * macros/tmac.e ($h, $f): Define |z as empty string.
14785 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14788 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14790 ()f): Likewise for * register.
14792 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14793 argument is missing, don't change $R. Call sr with three
14794 arguments when initializing.
14796 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
14798 * macros/tmac.e (sr): New macro.
14799 Initialize $r and $R using sr.
14801 * macros/tmac.e (,): Delete \*(#[.
14803 * troff/env.c (set_tabs): Read the tab type even if the position
14804 is bad. Allow the position of the first tab stop to be negative.
14806 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
14808 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14810 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14811 rather than -DPATHCONF_MISSING.
14812 * Makefile: Get rid of PATHCONF_MISSING.
14814 * refer/map.c: New file.
14815 * refer/index.c: Interface to mmap through map.c. Rename map_size
14817 * refer/Makefile: Handle map.c.
14818 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14820 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
14822 * Makefile: RANLIB should be `true' if there is no ranlib.
14823 * lib/Makefile (libgroff.a): Simplify.
14824 * driver/Makefile (libdriver.a): Simplify.
14826 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14827 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
14830 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
14832 * troff/env.c (compare_ranges): Declare as extern "C".
14834 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14836 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14838 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
14840 * pic/troff.c (troff_output::text): Merge in grops_output::text,
14841 but conditionalize use of \X based on \*(.T.
14842 (grops_output::*): Deleted.
14843 * pic/output.h: Delete declaration of make_grops_output.
14844 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
14845 by default. -n sets it to 0.
14846 (usage): Corresponding changes.
14847 * groff.c (main): Don't pass -x or -p to pic.
14848 * groff.sh: Likewise.
14850 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14853 * ps/devps/afmtodit: Change calculation of asc_boundary and
14854 desc_boundary. Make these bounds inclusive.
14855 * ps/devps: Regenerate font files.
14857 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
14859 * macros/tmac.latin1: New file.
14860 * macros/tmac.tty-char: Use tmac.latin1.
14861 (tmac.tty-tr): Deleted.
14862 * macros/Makefile: Install tmac.latin1.
14863 * macros/tmac.dvi: Use tmac.latin1.
14864 * macros/troffrc: Translate \[char160] onto no-break space here.
14865 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14867 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
14869 * macros/tmac.Xps: Use `do' request.
14871 * macros/tmac.ps: Use `do' request.
14873 * macros/tmac.e (@C): Use `do' request.
14875 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14876 * macros/Makefile: Install tmac.X*.
14878 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14879 * tty/Makefile: Don't install tmac.tty*.
14880 * macros/Makefile: Install tmac.tty*.
14882 * dvi/tmac.dvi: Move to macros.
14883 * dvi/Makefile: Don't install tmac.dvi.
14884 * macros/Makefile: Install tmac.dvi.
14886 * ps/tmac.ps*: Move to macros.
14887 * ps/Makefile: Don't install tmac.ps*.
14888 * macros/Makefile: Install tmac.ps*.
14890 * eqn/box.c: Provide draw_lines parameter corresponding to -D
14892 * macros/eqnrc: Set draw_lines parameter based on device.
14893 * groff.c: Don't pass -D flag to eqn.
14894 * groff.sh: Likewise.
14895 * eqn/main.c: Warn about use of -D.
14897 * troff/input.c (process_startup_file): New function.
14898 (main): Call process_startup_file().
14899 * macros/troffrc: New file.
14900 * macros/Makefile: Install troffrc.
14901 * groff.c (main): Don't pass extra -m option to troff. For a
14902 pseudo device pass the name of the pseudo device to troff using
14904 * groff.sh: Likewise.
14905 * groff.c (possible_command::prepend_arg): Deleted.
14907 * troff/input.c (do_request): New function.
14908 (init_input_requests): Bind "do" to do_request.
14910 * eqn/main.c (main): Instead of loading eqnchar from device directory,
14911 load eqnrc from macro directory.
14912 * macros/eqnrc: New file.
14913 * macros/Makefile: Install eqnrc.
14914 * ps/devps/eqnchar: Deleted.
14915 * ps/devps/Makefile: Don't install eqnchar.
14916 * dvi/devdvi/eqnchar: Deleted.
14917 * dvi/devdvi/Makefile: Don't install eqnchar.
14918 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14921 * lib/device.[ch]: New files.
14922 * lib/font.h (font::set_device_name, font::get_device_name):
14924 * lib/fontfile.c: Use device.h.
14925 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14926 * troff/input.c: Delete definition of `device'.
14927 (main): Don't initialize device.
14928 * troff/troff.h: Include device.h rather than declaring device.
14929 * troff/Makefile: No need to handle DEVICE.
14930 * driver/input.c: Include device.h. Don't use
14931 font::{set,get}_device_name.
14932 * groff.c, Makefile: Rename device.h to config.h.
14933 * groff.c: Use library device variable.
14934 * eqn/main.c: Use library device variable.
14935 * eqn/Makefile: No need to handle DEVICE.
14937 * lib/searchpath.[ch]: New files.
14938 * lib/Makefile: Handle searchpath.[ch].
14939 * troff/input.c (open_file, init_dirs): Deleted.
14940 (macro_dirs): Deleted.
14941 (open_mac_file, macro_source): Use class search_path.
14942 (add_string, struct string_list): Move definition.
14943 (main): Change -M option to use macro_path. Delete call to
14945 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14946 Rewrite to use class search_path.
14947 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14948 * lib/Makefile: fontfile.c depends on searchpath.h.
14949 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14951 * lib/macropath.[ch]: New files.
14952 * troff/Makefile: No need to handle MACROPATH.
14954 * troff/input.c: Delete DUMP code.
14955 * lib/fontfile.c, lib/font.h: Delete
14956 font::forget_command_line_font_dirs.
14958 * troff/input.c (push_token): New function.
14959 (handle_first_page_transition): Use push_token().
14960 (process_input_stack): Change handling of a space at the beginning
14963 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
14965 * troff/input.c (font_dirs): Delete unused variable.
14967 * eqn/lex.c (do_set): Correct error messages.
14969 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
14971 * troff/input.c (do_define_string): Allow the string name to be
14972 followed immediately by a tab.
14973 (define_character): Likewise.
14975 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
14977 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14980 * troff/input.c (input_iterator::is_file): New virtual function.
14981 (file_iterator::is_file): New function.
14982 (input_stack::end_file): New function.
14983 (input_stack::next_file): Handle the situation where there is no
14984 file on the input stack correctly. Avoid making two passes over
14986 (next_file): Make the filename optional; in this case call
14987 input_stack::end_file().
14989 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
14991 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14992 produce a real _ charater when the current font is CW and _
14995 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14996 expression to work around gcc 2.2 bug.
14998 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
15000 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
15002 * troff/env.c (environment::add_padding): New function.
15003 (environment::add_char): Use add_padding().
15004 (environment::space): Likewise.
15005 (environment::wrap_up_field): Add some padding if there is none
15006 and there's no current tab.
15007 * troff/env.h: Declare environment::add_padding.
15009 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
15011 * pic/pic.y: undef fmod and rand before declaring them.
15013 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
15015 * troff/input.c (main): If the DESC file specifies a font name of
15016 0, then leave the corresponding font position empty.
15018 * nroff.sh: New file.
15019 * Makefile (install.nobin): Install nroff.sh.
15021 * tty/devlatin1/R.proto: Add ao as synonym for de.
15022 * tty/tmac.tty-char: Define ao as o.
15024 * tty/dev{ascii,latin1}/R.proto: Add aq.
15025 * tty/tmac.tty-char: Delete definition of aq.
15027 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
15029 * troff/input.c (init_charset_table): Don't translate 0240.
15030 * ps/tmac.ps: Translate char160 to space.
15031 * dvi/tmac.dvi: Likewise.
15032 * tty/tmac.tty: Likewise.
15034 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
15036 * dvi/tmac.dvi: Add support for all Latin-1 characters.
15038 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
15039 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
15042 * tty/tmac.tty-char: Add \(ah.
15044 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
15045 No need to define \(FM and \(!/. Conditionalize all character
15048 * ps/devps/lgreekmap: Add +h, +f, +p.
15050 * ps/tmac.psnew: New file.
15051 * ps/Makefile: Install tmac.psnew.
15053 * troff/input.c (charinfo_to_node_list): Don't ever interpret
15054 character definitions in compatible mode.
15056 * troff/input.c (remove_character): New function.
15057 (init_input_requests): Bind remove_character to "rchar".
15059 * ps/tmac.psold: New file.
15060 * ps/Makefile: Install tmac.psold.
15061 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
15062 characters into tmac.psold. Make these definitions unconditional.
15064 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
15066 * ps/tmac.ps: Don't define \('c and \('C.
15068 * ps/devps/textmap: Move Greek characters to...
15069 * ps/devps/symbolchars:
15071 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
15073 * ps/devps/text.enc: Add quotesingle.
15074 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
15075 * tty/tmac.tty-char: Likewise.
15076 * dvi/devdvi/texmi.map: Add +h, +f, +p.
15077 * dvi/devdvi/texi.map: Add Fn.
15078 * dvi/devdvi/msam.map: Add lz.
15079 * dvi/tmac.dvi: Handle Bq, bq, aq.
15081 * pic/lex.c (get_token): Recognize 'th.
15082 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
15084 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
15086 * ps/devps/textmap: Move di, mu, +- to...
15087 * ps/devps/symbolchars:
15089 * macros/tmac.s (@XS): Don't call par@reset or fi.
15090 (XA): Call LP. Turn off adjustment. Reduce line length.
15092 * macros/tmac.s: Initially alias XS to LP.
15093 (XS): Rename to @XS.
15094 (cov*ab-init): Alias XS to @XS.
15096 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
15098 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
15099 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
15100 (token::is_size, token::changes_env): Deleted.
15101 * troff/number.c (parse_term): No need to process \s explicitly.
15102 Call tok.next() only after scale indicator has been processed.
15103 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
15105 (token::next): Handle \s, \f, \S, \H immediately rather than
15106 returning them as tokens.
15107 (token::operator==, token::description, token::add_to_node_list,
15108 token::process): Remove handling of deleted tokens.
15110 * troff/env.c (environment::add_char): When adding padding
15111 indicator character, call start_line() if necessary.
15113 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
15115 * ps/devps/afmtodit: Don't output 0 kerns.
15117 * ps/devps/afmtodit: Remove directory from name of encoding in
15118 font description file.
15120 * ps/devps/afmtodit: Improve error messages.
15122 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
15124 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
15125 * ps/devps/FontMakefile: Deleted.
15126 * ps/devps/afmname: New file.
15128 * ps/devps/symbol.sed: New file.
15129 * ps/devps/symbol.diff: Deleted.
15130 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
15131 Generate zapfdr.afm from zapfd.afm.
15133 * tty/tmac.tty (tty-char): Prefix definition with ".
15135 * macros/tmac.an (TP): Don't start a diversion if one has already
15138 * tty/tmac.tty-char: Add Latin-1 characters.
15140 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
15142 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
15144 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
15145 Move declaration of struct horizontal_span.
15147 * tbl/table.c (table::table): Initialize span_list.
15148 (table::~table): Delete span_list.
15150 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
15152 * ps/devps/Makefile: Avoid dependency on GNU make.
15154 * ps/tmac.ps: Check that character does not already exist before
15157 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
15158 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
15159 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
15162 * tty/tmac.tty-char: New file.
15163 * tty/Makefile: Install tmac.tty-char.
15164 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
15167 * tty/tmac.tty: Fix definition of \(34.
15169 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
15170 bracket-drawing characters onto |. Add *o.
15172 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
15173 only if current_field.
15175 * troff/dictionary.c (dictionary::lookup): Free old_table after
15178 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
15180 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
15181 whose glyphs are identical to glyphs of some Roman character.
15183 * tty/devlatin1/R.proto (bu): Deleted.
15184 * tty/devascii/R.proto (bu): Deleted.
15185 * tty/tmac.tty: Add definition of \(bu.
15187 * eqn/main.c (do_file): Pass FILE as argument.
15188 (main): Automatically load eqnchar. New options -F and -n.
15189 Pass do_file an opened FILE.
15190 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
15191 No need to include font.h.
15192 * groff.sh: Likewise. Don't need to use - for standard input.
15193 Prefix files with -- if first file starts with -.
15195 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
15197 * troff/env.c (environment::possibly_break_line): Don't set line
15198 to 0 across call to output_line(). Don't call output_line() until
15199 after discarding nodes after break.
15201 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
15203 * request.h (macro::empty): Declare it.
15204 * input.c (macro::empty): New method.
15205 (interpolate_macro): Don't give a WARN_SPACE if the two-character
15208 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
15210 * troff/env.c (environment::start_field): Decrement space_total
15211 when a space is frozen.
15213 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
15215 * macros/tmac.an (R): Delete macro.
15217 * troff/input.c (get_copy, token::next): Support \# (like \" but
15218 newline is ignored).
15220 * troff/input.c (token::next): Fix error message in 'Y' case.
15222 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
15224 * eqn/delim.c (define_extensible_string): Recognize any prefix of
15227 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
15229 * c++test.c: Include <osfcn.h>.
15231 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
15234 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
15236 * tbl/table.c (table::divide_span): Don't count column separation
15237 if expand was specified.
15239 * tbl/main.c (process_format): Don't ignore width specs in
15240 continued format. Give warning for changing equal widths or
15241 column separation in continued format.
15242 (process_data): Set column separation, minimum width, equal
15243 columns at end of table.
15245 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
15247 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
15248 node::add_discretionary_hyphen): Use soft_hyphen_char.
15249 (set_soft_hyphen_char): New function.
15250 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
15252 * Makefile (c++tested): Give more helpful message if test fails.
15254 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
15256 * troff/input.c (init_charset_table): Translate 0240 to
15257 an unbreakable space.
15259 * troff/token.h (token::hyphen_indicator): New function.
15260 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
15262 * troff/input.c (translate): Allow translation to \%.
15263 * troff/node.c (node::add_char): Handle
15264 TRANSLATE_HYPHEN_INDICATOR.
15265 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
15267 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
15270 * tty/devlatin1/R.proto: \(hy and - should print as 055.
15272 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
15274 * groff.c (run_commands): If the last command gets a SIGPIPE send
15275 a SIGPIPE to all children than haven't yet terminated. When
15276 command terminates, set pid field to -1.
15278 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
15280 * groff.c (main): Pass an appropriate -filename option to gxditview.
15282 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
15284 * Makefile.bd (install): Remove existing program before copying.
15286 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
15287 programs which have Unix counterparts to be installed with
15288 user-specified prefix.
15290 * troff/input.c (exit_troff): Don't check if exit_started.
15291 (exit_request): Don't call exit_troff if exit_started.
15293 * Makefile.bd (install.mm): Rename to install.dwbmm.
15295 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
15297 * driver/input.c (do_file): Add missing break for '#' case.
15299 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
15301 * troff/input.c (input_stack::clear): Clear past any boundaries and
15302 then add the boundaries back.
15304 * troff/input.c (exit_troff): Return immediately if already
15307 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
15309 (pg*end-page): If the text has ended and there are no more
15310 footnotes or keeps, exit.
15312 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
15314 * troff/input.c (init_charset_table): Make \(rq transparent by
15317 * macros/tmac.an: Define lq and rq strings.
15319 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
15321 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
15323 * troff/env.c (environment::final_break): New function.
15324 (environment::newline): Set prev_line_interrupted to 2 if
15326 * troff/env.h: Declare environment::final_break.
15327 * troff/input.c (exit_troff): Call environment::final_break()
15328 instead of environment::do_break().
15330 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
15331 doesn't already exist.
15332 * macros/man.local: New file.
15333 * macros/tmac.an: Load man.local.
15334 * macros/man.ultrix: New file.
15336 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
15338 * troff/input.c (exit_groff): Rename to...
15339 (exit_troff): New function.
15341 * troff/div.c (exit_started, done_end_macro,
15342 seen_last_page_ejector): New global variables.
15343 (began_page_in_end_macro): New static variable.
15344 (exit_flag): Deleted.
15345 (top_level_diversion::top_level_diversion): Initialize
15347 (top_level_diversion): More elaborate test for whether
15348 cleanup_and_exit() should be called.
15349 Set began_page_in_end_macro if the end macro isn't yet finished.
15350 * troff/div.h (top_level_diversion::last_page_count): New data
15352 (top_level_diversion::set_last_page): New function.
15353 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
15354 * troff/env.c (do_break): Zero prev_line_interrupted.
15355 * troff/input.c (exit_flag): Delete declaration.
15356 (LAST_PAGE_EJECTOR): New magic cookie.
15357 (token::next): Handle LAST_PAGE_EJECTOR.
15358 (exit_groff): Set exit_started and done_end_macro instead of
15359 exit_flag. Call top_level_diversion::set_last_page. Push a
15360 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
15361 another ejection after setting seen_last_page_ejector.
15363 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
15365 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
15367 * macros/tmac.e (TH): Make sure there's room for the initial
15370 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
15371 Set FVS in points rather than units.
15373 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
15375 * troff/div.c (top_level_diversion::add_trap): Don't consider the
15376 position of empty slots.
15378 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
15380 * ps/devps/S: Fix height and depth of parenrightex.
15381 * ps/devps/symbol.diff: Regenerate.
15383 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
15385 * tmac.e (u): Do underlining as in -mgs.
15387 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
15389 * tty/tty.c (tty_printer::end_page): If overstriking is
15390 suppressed, still turn overstruck horizontal and vertical lines
15393 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15396 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15398 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
15400 * Version 1.05 released.
15402 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
15404 * tty/tty.c: Instead of keeping an array of glyphs and then
15405 sorting it, keep a ordered linked list of glyphs for each line.
15407 * driver/driver.h: Include stddef.h.
15409 * tty/tty.c (compare_glyph):
15410 * refer/refer.c (rcompare):
15411 * troff/env.c (compare_ranges): Arguments of qsort comparison
15412 function should be const void *.
15414 * troff/number.c (parse_term):
15415 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15418 * refer/label.y (consider_authors): Don't access variables
15419 constructed under a condition outside that condition: put braces
15420 round for statement containing declaration; redeclare use of same
15423 * pic/pic.y (text_expr): Delete production that allows
15424 parenthesised text_expr.
15425 (expr): Allow a conditional_expr to appear in parentheses.
15426 (conditional_expr): Rename to any_expr.
15428 * mm: Install new version 1.01 from jh.
15430 * lib/font.c (font::get_width): Cache scaled widths.
15431 (font::font): Initialize widths_cache.
15432 (font::~font): Destroy widths_cache.
15433 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15435 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
15437 * c++test.c, c++test.ref: New files.
15438 * Makefile: Check that the C++ compiler works.
15440 * ps/tmac.pspic (PSPIC): Do a break.
15442 * ps/tmac.ps: Move definition of PSPIC into...
15443 * ps/tmac.pspic: New file.
15444 (PSPIC): Draw box around picture, but make it invisible to grops.
15445 * ps/tmac.ps: Load tmac.pspic.
15446 * ps/Makefile: Install tmac.pspic.
15448 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
15450 * lib/font.c (scale_round): If n is negative,
15451 subtract .5 before truncating floating point result.
15453 * lib/fontfile.c: Include <errno.h>.
15455 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
15457 * driver/input.c (get_char): Inline. Don't update current_lineno.
15458 Change callers to up date current_lineno if necessary.
15459 Use get_char() instead of getc(current_file).
15461 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
15463 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15465 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
15467 * tty/tty.c (tmac.tty): Define \(rg as (R).
15469 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
15471 * lib/lib.h: New define a_delete.
15472 * Use a_delete instead of delete when deleting an array of objects
15473 without destructors.
15475 * lib/lib.h: Rename adelete to ad_delete.
15476 * Change uses of adelete.
15478 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
15480 * eqn/eqn.y: Include lib.h.
15482 * troff/node.c (grow_font_table): Delete old_font_table.
15484 * mm: Install new version from jh.
15486 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
15488 * tbl/table.h (format_type): Make global instead of local to class
15489 entry_format. Prefix enumerators with FORMAT_.
15490 * tbl/table.c, tbl/main.c: Corresponding changes.
15491 * refer/token.h (token_type): Make global. Prefix enumerators
15493 * refer/token.[ch]: Corresponding changes.
15494 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15496 * troff/div.c (node::set_vertical_size): Don't name argument.
15498 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
15500 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15501 * lib/lib.h: Define adelete accordingly.
15502 * pic/object.c (graphic_object::graphic_object):
15503 * tbl/main.c (format::~format):
15504 * tbl/table.c (table::~table):
15505 * refer/ref.c (reference::~reference, reference::merge,
15506 reference::insert_field, reference::delete_field): Use adelete.
15508 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15510 * tbl/table.h: Corresponding changes.
15512 * common.c (common_output::dashed_arc, common_output::dotted_arc):
15513 Ensure total_angle is positive.
15515 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
15517 * refer/ref.c (reference::merge, reference::insert_field,
15518 reference::delete_field): Avoid delete[0].
15520 * refer/token.c (init_special_chars): Move calls to cmupper
15521 outside calls to init_two_char_letter to work around bug in gcc
15524 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
15526 * lib/new.c (operator new): Use __builtin_new for g++.
15528 * pic/object.c (graphic_object::~graphic_object): Don't use
15531 * pic/object.c (output::compute_scale): Initialize max_width and
15534 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
15536 * troff/input.c (write_request): Call fflush.
15538 * troff/node.h (class composite_node): Move declaration to node.c
15539 * troff/input.c (charinfo_to_node): Rename to ...
15540 (charinfo_to_node_list): Return node list rather than composite
15542 * troff/node.c (make_composite_node): New function.
15543 (make_node, add_char): Call make_composite_node instead of
15545 (class composite_node): Add a tfont * member. Delete font_size
15547 (composite_node::composite_node, composite_node::copy,
15548 composite_node::size): Corresponding changes.
15549 (composite_node::tprint): Provide constant spacing, emboldening
15550 and track kerning as specified in tfont.
15551 (composite_node::width): Change width calculation accordingly.
15552 * troff/env.h (environment::composite): New member.
15553 (environment::is_composite, environment::set_composite): New
15555 * troff/env.c (environment::environment): Initialize composite.
15556 * troff/input.c (charinfo_to_node): Call
15557 environment::set_composite.
15558 * troff/node.c (make_composite_node, make_glyph_node): Use the
15559 plain version of the tfont if the environment is composite.
15561 * troff/node.c (font_info::get_space_width): Additional argument
15562 giving space_size. Handle constant space correctly. Scale by
15563 space_size unless constant spaced.
15564 (env_sentence_space_width): New function.
15565 * troff/node.h: Declare it.
15566 * troff/env.h (environment::get_space_size,
15567 environment::get_sentence_space_size,
15568 environment::get_narrow_space_width,
15569 environment::get_half_narrow_space_width): Make inline.
15570 (environment::get_space_width): Make inline. Just call
15572 * troff/env.c: Delete definitions for funtions made inline.
15573 (environment::space_newline, environment::space): Use
15574 env_sentence_space_width(). Don't scale by space_size.
15575 * troff/node.h: Move declarations of env*space_width() functions
15578 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
15580 * macros/tmac.s (PS): Don't try to set negative indent.
15582 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
15584 * pic/pic.y: Fix min function.
15586 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
15588 * man/mdate.sh: Clear LANGUAGE.
15590 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
15592 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15593 * pic/lex.c: New COMMAND keyword.
15594 * pic/pic.y (print_args, print_arg): New rules.
15595 (placeless_element): Use print_args for PRINT.
15596 New COMMAND element.
15598 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
15600 * troff/input.c (terminal): Handle missing argument correctly.
15602 * pic/pic.y (text_expr): New rule.
15604 * pic/pic.y: Implement := operator.
15606 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
15608 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15611 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
15613 * ps/devps/dingbatsrmap: Include this in the distribution.
15615 * macros/tmac.doc: Replace with new version from 2nd Networking
15616 Release. Fix loading of doc-* files.
15617 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15618 * macros/tmac.doc.old: New file. Apply fixes that had been
15619 applied to old tmac.doc.
15620 * macros/tmac.andoc: Check that we're running under groff.
15621 * macros/Makefile: Rework.
15623 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
15625 * tbl/table.h (format_type):
15626 * refer/token.h (token_type): If NESTED_TYPES is defined, use
15627 typedef to make these types visible at file scope.
15628 * Makefile: Add NESTED_TYPES configuration option.
15630 * troff/div.c (mark): At the top level use the value of
15631 nl_reg_contents rather than the current vertical position.
15633 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
15635 * tty/tty.c: Implement \D for horizontal or vertical lines.
15636 (tty_printer::set_char): Use vec_used+2 as serial number.
15637 Don't allow size of vector to exceed USHRT_MAX-2.
15638 Split off part into...
15639 (tty_printer::add_char): New function.
15640 (tty_printer::draw): New function.
15641 (compare_glyph): Handle equal serial numbers.
15642 (tty_printer::end_page): Handle overstruck characters from \D.
15643 (main, usage): Implement -d option.
15645 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
15647 * tbl/main.c (process_format):
15648 * eqn/text.c (split_text):
15649 * troff/input.c (token::next): Use inner block for declarations
15650 with initializers in switch statement.
15652 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
15654 * pic/common.c (common_output::dash_line): Cope with zero-length
15657 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
15659 * Version 1.04 released.
15661 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
15663 * macros/tmac.an (TH): Define a macro an-init to define variables
15664 based on command line arguments.
15665 (an-header): Call it.
15667 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
15669 * Makefile (install.mm): Rename to install.dwbmm.
15671 * Makefile: Integrate mm.
15672 * mm: New directory.
15674 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
15676 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15679 * pic/troff.c (troff_output::simple_spline,
15680 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15681 shadowing parameter.
15683 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15685 * lib/ptable.h: Add explicit casts when converting from unsigned
15688 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15689 * dvi/devdvi/Makefile: Install SA, SB.
15691 * refer/indxbib.c: Add declaration of mktemp.
15693 * refer/lookbib.c: Add declaration of isatty.
15695 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
15697 * pic/lex.c (interpolate_macro_with_args): While collecting
15698 arguments, keep track of whether we're in a string.
15700 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
15702 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15703 down with \v, so as to avoid problems with top of page trap
15704 setting no space mode.
15706 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
15708 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15710 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
15712 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15713 Improve error message.
15715 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
15717 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15720 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
15722 * groff.c (possible_command::execp): Always use _exit() after a
15725 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15726 NO_SYS_WAIT_H configuration options.
15727 * groff.c: Use these options. Use POSIX-style macros to extract
15728 fields from the status returned by wait().
15730 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
15732 * tbl/table.c (table::compute_separation_factor): Allow the
15733 separation factor to drop to 0.
15735 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
15737 * refer/search.c: Include <errno.h>.
15739 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
15741 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15743 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15746 * pic/lex.c (input_stack::bol): Move definition out of class body.
15748 * pic/main.c: On MSDOS munge argv[0].
15750 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15752 * lib/ptable.c (hash_string): Use unsigned long rather than
15754 (next_ptable_size): Use unsigned rather than int. Give an error
15755 message if we've hit the largest table size.
15756 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
15759 * pic/object.h (object_spec): Make flags unsigned long. Declare
15760 flags as const unisgned long rather than as enums.
15762 * pic/output.c: Deleted.
15764 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15766 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15767 Add additional argument.
15768 (line_entry::note_double_vrule_on_{left,right}): Set value of
15769 douvle_vrule_on_{right,left} flag according to argument.
15770 (simple_line_entry::simple_print,
15771 simple_line_entry::double_line_print): If adjacent to double vrule
15772 on a corner extend rather than shorten the rule by half the double
15775 * troff/number.c (parse_term): In checking for overflow, handle the
15776 case where the current horizontal position is negative.
15778 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
15780 * pic/object.c (draw_arrow): Check for object having zero length.
15782 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
15784 * eqn/main.c (do_file): Split off inline equation handling into...
15785 (inline_equation): New function. Search for starting delimiter
15787 (delim_search): New function. Don't recognize a delimiter that
15788 occurs in the name of an escape sequence, number register, string
15791 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
15793 * eqn/delim.c (delim_box::compute_metrics): Don't call
15794 define_extensible_string if left is 0.
15795 (delim_box::output): Don't print the left delimiter if left is 0.
15796 (delim_box::debug_print): Check for left == 0 before calling printf.
15798 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
15800 * troff/Makefile (majorminor.c): Include only digits in
15803 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
15805 * refer/dirnamemax.c: new file.
15806 * refer/genlimits.c: Deleted.
15807 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15808 Don't check path length.
15809 * refer/Makefile: Add dir_name_max.o; delete genlimits.
15810 * Makefile: Add PATHCONF_MISSING option.
15812 * refer/indxbib.c (get_cwd): New function.
15813 (main): Use get_cwd().
15814 * lib/getcwd.c: New file.
15815 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15816 GETCWD in SUBFLAGS.
15817 * lib/Makefile: Compile getcwd.o.
15819 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15822 * refer/indxbib.c (main): Check success of mktemp.
15824 * lib/tmpfile.c: New file.
15825 * lib/Makefile: Add tmpfile.c.
15826 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15827 * ps/ps.h: Delete declaration of mktemp().
15828 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15829 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15830 * driver/driver.h: No need now to include errno.h.
15832 * everywhere: Set errno to 0 before calling fopen().
15834 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15835 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15836 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15838 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
15840 * troff/env.h (translate_space_to_dummy): Declare it.
15841 * troff/env.c (environment::space_newline, environment::space):
15842 If translate_space_to_dummy is set then make the width of spaces 0.
15843 * troff/input.c (translate): If the second character of a
15844 translation is a space, translate to unbreakable space. If the
15845 first character is a space, set or clear translate_space_to_dummy
15846 according to whether the second character is \&. Weird!
15848 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
15850 * groff.c (run_commands): Don't use non-zero exit code because a
15851 command gets SIGPIPE.
15853 * groff.c, groff.sh: Use -mXps with -TXps.
15855 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15856 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15857 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15858 (ps_printer::special): New specials invis and endinvis.
15859 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15860 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
15861 (ps_printer::end_page): Check that invis_count == 0.
15862 (ps_printer::invis_count): New member.
15863 (ps_printer::ps_printer): Initialize invis_count to 0.
15865 * troff/env.c (environment::hyphenate_line): Hyphenation
15866 indicator at beginning of word inhibits splitting after -, \(em
15869 * pic/pic.y (element): Allow another element to follow } without
15870 any intervening separator.
15872 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
15874 * pic/lex.c (get_delimited): Allow tabs before delimiter.
15876 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
15878 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
15879 declaration of wait() in header files.
15880 * Makefile: Get rid of -DHAVE_UNION_WAIT.
15882 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15884 * lib/lib.h: Declare return type of strerror as char *.
15886 * man/Makefile: Add g flag to sed substitutions.
15887 * Makefile (shgroff, bindist): Likewise.
15889 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
15891 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15892 * ps/devps/prologue (PBEGIN): Define showpage after pushing
15895 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
15897 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15900 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
15902 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15905 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
15907 * troff/input.c (define_number_reg): If currently undefined,
15908 don't define it if the argument is an invalid expression.
15910 * Makefile: Ignore return value of `if' commands without `else'
15913 * Makefile: Split up CPPDEFINES into a series of separate
15914 configuration options.
15916 * troff/input.c (init_registers): Use time_t instead of long
15917 unless LONG_FOR_TIME_T is defined. Use returned result rather
15918 than passing pointer.
15919 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15921 * lib/Makefile (fontpath.h): Use gendef.
15923 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
15925 * troff/input.c (input_iterator::shift): Delete argument name.
15926 * troff/node.c (suppress_output_file::really_begin_page,
15927 suppress_output_file::really_transparent_char, node::ascii_print,
15928 node::tprint): Delete names of unused arguments.
15930 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
15932 * refer/label.y (string): Pass $4 to command_error.
15934 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
15936 * Version 1.03 released.
15938 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
15940 * Makefile: Pass definition of SHELL in SUBFLAGS.
15942 * gendef: New file.
15943 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15944 ps/Makefile: Use gendef to construct header files that are
15945 constructed from the Makefile.
15947 * macros/Makefile: make all should build stripped version of tmac.e.
15949 * refer/Makefile (clean): Remove y.output.
15951 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
15953 * ps/pfbtops.c (main): Add -v option which prints out a version
15955 * ps/Makefile (pfbtops): Link with libgroff.a.
15957 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
15959 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15960 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15962 * refer/lkbib.c (main): Always terminate reference with blank
15964 * refer/lookbib.c (main): Likewise.
15966 * refer/linear.c (file_buffer::load): Check that the file is not a
15969 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15970 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15971 Delete second inclusion of <sys/param.h>.
15973 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
15975 * troff/token.h (token::special): Deleted.
15977 * tbl/main.c (process_format): Rework so that opt->tab_char is
15978 recognized only when appropriate.
15980 * ps/Makefile (clean): Remove pfbtops.
15982 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
15984 * lib/font.c (text_file::next): Don't return if we have got a
15987 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
15989 * refer/refer.c (store_reference): Get hash code from old_table[i]
15990 when rehashing the table.
15992 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
15994 * eqn/box.c (box::top_level): Save size and prev size using \R and
15995 restore it afterwards. Set the size to the size at the beginning
15997 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15998 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
16000 * refer/Makefile (limits.h): Use ./genlimits.
16002 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
16004 * refer/index.c: Delete declarations of stat() and fstat().
16006 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
16008 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
16010 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
16012 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
16014 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
16016 * troff/input.c (token::get_char): Handle \e.
16018 * refer/linear.c: Delete declarations of fstat() and stat().
16020 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
16022 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
16023 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
16025 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
16027 * troff/input.c (do_define_macro): Improve error handling for end
16028 of file while defining macro.
16030 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
16032 * eqn/box.h: Fix declaration of set_gsize.
16033 * eqn/box.c (set_gsize): Make argument const char *.
16034 (gsize): Declare as char *.
16035 * eqn/main.c (main): Don't convert gsize to int.
16036 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
16038 * Version 1.02 released.
16040 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
16042 * macros/tmac.andoc: New file.
16043 * macros/Makefile: Install tmac.andoc.
16045 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
16046 operator new and delete on OP_DELETE_BROKEN not being defined.
16047 * Makefile: Mention OP_DELETE_BROKEN.
16049 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
16051 * Makefile (bindist): Pass SUBFLAGS.
16053 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
16055 * Makefile, groff.c: Pass definitions to groff.c via device.h.
16057 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
16060 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
16062 * ps/ps.h, ps/psrm.c: Make comment_table and
16063 header_comment_table local to resource_manager::process_file.
16065 * groff.sh: With -TXps pass -printCommand option to gxditview.
16067 * groff.c (possible_command::print): Implement using
16068 append_arg_to_string.
16070 * xditview: Merge in new implementation with own ChangeLog.
16072 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
16074 * groff.c (main): Implement PRINT_OPTION.
16075 (append_arg_to_string): New command.
16076 (device_table): Set PRINT_OPTION flag for Xps.
16078 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
16080 * troff/groff.h: Rename to troff.h.
16082 * pic/lex.c (lookup_keyword, docmp): New functions.
16083 (get_token): Use new lookup_keyword.
16084 Don't include key.h.
16085 * pic/key.[ch], pic/pic.gperf: Deleted.
16086 * pic/Makefile: Remove gperf stuff.
16088 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
16090 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
16092 * troff/Makefile, troff/node.c: Move definition of
16093 STORE_WIDTH into node.c.
16095 * etc/grog.pl, etc/grog.sh: Support -mdoc.
16097 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
16099 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
16100 dvi/devdvi/texb.map: Add lq and rq.
16101 dvi/devdvi: Regenerate fonts.
16102 * ps/devps/textmap: Add lq and rq.
16103 * ps/devps: Regenerate fonts.
16104 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
16105 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
16107 * pic/object.c (position_rectangle): When checking radius
16108 cope with possiblity that width or height is negative.
16109 (box_object::box_object): Have separate xrad and yrad with
16110 signs matching signs of dim components.
16111 (box_object::{north,south}_{east,west}): Use xrad and yrad.
16112 (box_object::print): With rounded boxes use absolute values
16113 for dim and rad arguments.
16115 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
16118 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
16120 * various files: Add explicit destructors to keep Saber CC +d
16123 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
16125 * eqn/box.c (box::top_level): Restore fonts correctly after
16126 font changes in line containing inline equation. Also
16127 restore previous font as well as current font.
16128 * eqn/pbox.h: Define necessary string and register names.
16130 * troff/input.c (token::next): Case 'R' calls do_register.
16131 (do_register): New function.
16133 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
16135 * groff.c, groff.sh: Support Xps device. Allow each device
16136 to have a pseudo_name and a real_name.
16138 * groff.c (run_commands): Don't print `Broken pipe' messages.
16140 * ps/pfbtops.c: New file.
16141 * ps/Makefile: Add pfbtops.
16143 * troff/number.c (parse_term): Improved error message.
16145 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
16147 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
16149 * Makefile: Integrate refer.
16150 * refer: New directory.
16151 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
16152 man/lkbib.man: New files.
16153 * man/Makefile: Support refer man pages.
16155 * lib/lib.h: Declare is_prime.
16156 * lib/prime.c: New file.
16158 * troff/input.c (macro_source): New function.
16159 (init_input_requests): Bind "mso" to macro_source.
16161 * troff/env.c (environment::possibly_break_line): Maintain
16162 pointer to pointer to node to be split in ndp so as to avoid
16163 using address of freed node.
16165 * troff/env.c (environment::hyphenate_line): Maintain pointer to
16166 pointer to first node to be hyphenated in startp so as to
16167 avoid using address of freed node.
16169 * troff/env.c (class trie, class hyphen_trie): Make the
16170 elements of the trie be of type char not unsigned char.
16171 Declare arguments to be const char* instead of unsigned char *.
16173 * troff/env.c (hyphenate): Initialize hbuf[0].
16175 * troff/input.c (set_string): Declare p to be char * and cast
16176 *p to unsigned char when necessary.
16178 * troff/input.c (do_define_macro): Declare s to be const
16179 char*. Cast element to unisgned char when necessary, Declare
16180 d to be an int. Handle EOF better.
16182 * troff/Makefile, troff/input.c: Different scheme for passing
16183 definitions of MACROPATH, HYPHENFILE and DEVICE.
16185 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
16187 * tty/devascii/R.proto: Delete entry for em.
16188 * tty/devlatin1/R.proto: Likewise.
16190 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
16192 * troff/input.c (translate): Stop when we get a space. Treat eof
16195 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
16197 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
16199 * tbl/main.c (process_format): A font name following a `f'
16200 modifier that starts with a digit can be only one character long.
16201 Also deal with EOF on the second character of the font name.
16203 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
16205 * troff/input.c (token::next): Turn \~ into an
16206 unbreakable_space_node.
16207 * troff/node.c (unbreakable_space_node): New class.
16208 * troff/node.h: Declare it.
16210 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
16212 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
16213 it's >= 0, before outputting it as a single byte.
16215 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
16217 * lib/font.c: Make font_char_metric::code an int.
16218 (font::get_code): Change return type to int.
16219 (font::load): Allow code to be arbitrary integer.
16220 * lib/font.h (font::get_code): Change return type to int.
16221 (font::number_to_index): Change argument type to int.
16222 * troff/input.c (token::next): In case 'N', allow any value.
16223 Store value in token::val.
16224 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
16225 (token::get_char, token::add_to_node_list, token::process): Get
16227 (charinfo::set_number): Change argument to int.
16228 (charinfo::get_number): Require that NUMBERED flag be set.
16229 (get_charinfo_by_number): Store numbered characters not between 0
16230 and 255 in a dictionary.
16231 * troff/charinfo.h (get_charinfo_by_number): Change argument type
16233 (charinfo::number): Change type to int.
16234 (charinfo::set_number): Change type of set_number to int.
16235 * troff/node.c (troff_output_file::put_char_width,
16236 troff_output_file::put_char): Test whether character is numbered
16237 using charinfo::numbered().
16238 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
16240 * lib/nametoindex.c: New implementation to cope with arbitrary
16243 * troff/input.c (token::operator==): Test val for
16244 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
16247 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
16248 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
16250 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
16252 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
16255 * all Makefiles: rm targets of cp and >.
16257 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
16260 * eqn/lex.c (def_table): Add dollar.
16262 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
16264 * troff/input.c (do_width): Push back newline before closing delim
16267 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
16269 * groff.c (possible_command::prepend_arg): New function.
16270 (main): Prepend device -m option.
16271 * groff.sh: Put device -m options before command-line options.
16273 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
16275 * macros/tmac.an (IP): Quote argument to TP.
16277 * ps/ps.c (main): New option -b, which sets...
16278 (broken_flags): New variable.
16279 (ps_printer::~ps_printer): Incorporate the setup section in the
16280 prolog if (broken_flags & NO_SETUP_SECTION).
16281 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
16282 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
16283 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
16284 ps_printer::print_needed_font_comment,
16285 ps_printer::print_supplied_font_comment,
16286 ps_printer::print_include_font_comments,
16287 ps_printer::lookup_doc_font, ps_printer::download_fonts,
16288 ps_printer::read_download_file, read_document_fonts, add_font,
16289 skip_line, parse_fonts_arg, document_font::document_font,
16290 document_font::~document_font, document_font::download,
16291 ps_output::include_file): Deleted.
16292 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
16293 rather than %!PS-Adobe-2.0. Make calls to
16294 resource_manager::need_font for each font that we used. Replace
16295 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
16296 print_supplied_font_comment, print_needed_font_comment by call to
16297 resource_manager::print_header_comments. Output %%Orientation
16298 comment. Output %%Requirements: numcopies comment if ncopies > 1.
16299 Don't output the prolog directly. Instead call
16300 resource_manager::output_prolog. Only define #copies when ncopies
16301 > 1. Delete calls to print_include_font_comments and
16302 download_fonts. Add call to resource_manager::document_setup.
16303 (ps_printer::do_file): Call resource_manager::import_file instead
16304 of including it ourselves.
16305 (ps_printer::do_import): Likewise. Also don't call
16306 merge_import_fonts. Push userdict on the dictionary stack before
16307 and pop it afterwards.
16308 Move declaration of ps_output into ps.h.
16309 * ps/psrm.c: New file implementing resource_manager class.
16310 * ps/ps.h: New file declaring ps_output and resource_manager
16312 * ps/devps/zapfdr.ps:
16313 * ps/devps/symbolsl.ps:
16314 * ps/devps/prologue: Use 3.0 conventions.
16315 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
16316 Add default definition of BROKEN_SPOOLER_FLAGS.
16317 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
16318 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
16320 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
16322 * etc/grog.pl: New file.
16323 * Makefile (GROG): New variable.
16324 Add GROG to SUBFLAGS.
16325 * etc/Makefile (GROG): New variable.
16326 (install.nobin): Install $(GROG) rather than grog.sh.
16328 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
16330 * eqn/special.c (special_box::compute_metrics): Make the input and
16331 output strings the same. Get the new height and depth from the
16332 predefined height and depth registers. Also make subscript kern
16333 and skew available.
16334 (special_box::compute_subscript_kern, special_box::compute_skew):
16337 * eqn/box.c (pointer_box::compute_skew,
16338 simple_box::compute_metrics, box::top_level)
16339 * eqn/text.c (prime_box::compute_metrics,
16340 prime_box::comput_subscript_kern)
16341 * eqn/limit.c (limit_box::compute_metrics):
16342 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
16343 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
16344 negative numbers in `nr' requests with a leading 0.
16346 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
16348 * eqn/special.c: New file.
16349 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
16350 Add new rule for simple.
16351 * eqn/lex.c (token_table): Add SPECIAL.
16352 * eqn/box.h: Declare make_special_box.
16353 * eqn/Makefile: Add special.[co].
16355 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
16357 * ps/devps/prologue: Possibly set packing to true while defining.
16358 Create grops dictionary here. Initialize local variables before
16359 defining procedures.
16360 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
16361 the dictionary stack. Set strokeadjust and overprint to false if
16362 the relevant operators are defined.
16363 (PEND): New procedure.
16364 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
16365 prologue. Do everything else in the setup section.
16366 (ps_printer::do_import): Just call PBEGIN and PEND around the
16367 picture. Also push userdict before, and pop it afterwards.
16369 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
16371 * troff/node.c (bracket_node::tprint): Brackets were being printed
16374 * macros/tmac.an (SH, SS): Set fill mode.
16376 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
16378 * troff/div.c (top_level_diversion::begin_page): Set
16379 high_water_mark to 0.
16381 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
16383 * man/mdate.sh: New file.
16384 * man/mdate.c: Deleted.
16385 * man/Makefile: Use mdate.sh instead of mdate.
16388 * eqn/lex.c (do_gsize): Supply missing argument to error message.
16390 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
16392 * man/mdate.c: New file.
16393 * man/*.man: Replace modification date by @MDATE@.
16394 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16395 (mdate): New target.
16397 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16398 Remove illegal input characters.
16400 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
16402 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16404 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
16406 * troff/div.c (begin_page): Change behaviour when
16407 !first_page_begun and !break_flag.
16409 * troff/input.c (do_name_test): Return 0 if argument is empty.
16411 * troff/input.c (read_long_escape_name): Require closing ] to be
16412 at same input level as opening [.
16414 * troff/input.c (read_increment_and_escape_name): New function.
16415 (get_copy, process_input_stack): Use this for \n.
16417 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
16419 * troff/div.c (top_level_diversion::begin_page): Ignore the
16420 current value of page_number if !first_page_begun.
16422 * groff.c (main): Fix declaration of buf.
16424 * troff/input.c (do_name_test): New function.
16425 (token::next): Implement \A.
16426 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16427 (token::description, token::add_to_node_list, token::process):
16428 Handle TOKEN_ESCAPE.
16429 * troff/token.h: New token TOKEN_ESCAPE.
16431 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
16433 * pic/main.c (do_picture): Allow space before and after filename
16434 following `<'. Check that the filename is not empty.
16436 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
16438 * Version 1.01 released.
16440 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16442 * dvi/tmac.dvi: ftr HR to H.
16444 * macros/tmac.e: Round up computation of $r.
16446 * xditview/tmac.X: Don't give up completely in compatibility mode.
16447 Use \n(.s instead of \n[.s].
16449 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16450 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16451 Add u to factors inside \s[...]. Rename frac to dvi-frac.
16452 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16453 short names in the char definitions.
16455 * ps/tmac.ps: Don't give up completely in compatibility mode.
16456 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16457 quote in front of \n(.s. Add u to factors inside \s[...].
16459 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
16461 * tty/tmac.tty: Call the nroff request.
16463 * macros/tmac.e ((x, )x): Better definitions that work properly
16465 (@0, @1): Helper macros for (x.
16467 * macros/tmac.e ($s, hl): Use \l rather than \D.
16469 * tty/tmac.tty: Make it work better in compatibility mode.
16470 (pchar): Rename to tty-char.
16472 * macros/tmac.e (@E): New macro.
16473 (r, i, b, rb, bi): Use @E.
16475 * macros/tmac.e (@F): Don't use (;...) syntax.
16477 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
16478 it was modified for groff.
16480 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16482 * macros/tmac.e (<., .>): Removed.
16483 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16485 * macros/tmac.e: Remove check that groff is being used.
16487 * macros/tmac.e (@C): Change families only if using groff; turn
16488 compatibility mode off while changing familes. Save compatibility
16489 mode before changing families and restore it afterwards.
16491 * macros/tmac.e (@h): Remove test for offset + line length.
16493 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
16494 (lo, th, ac): Define to call @S instead of using als.
16496 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16497 the ratio of the vertical spacing to the point size in units
16498 expressed as a percentage. Use these instead of $10r and $10R,
16499 Delete $10r and $10R.
16501 * lib/font.c (font::load): In default computation of space_width,
16502 divide by sizescale. Use scale_round.
16504 * macros/tmac.an (TP): Don't call `nf'.
16505 (an-do-tag): Don't call `fi'.
16507 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
16509 * troff/input.c (process_input_stack): Handle the case where
16510 spaces at the beginning of an input line are followed by a
16513 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
16515 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16516 * groff.sh: Use pic -x with the dvi device.
16518 * dvi/devdvi/FontMakefile (H): Don't use -s.
16520 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16521 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16522 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16525 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
16527 * ps/psfig.diff: New file.
16528 * ps/tmac.psfig: New file.
16530 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
16532 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16533 (]-): Don't call ref*do-tl.
16535 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16537 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16538 (fn@do-FS): Rename to fn*do-FS.
16540 * troff/input.c (transparent_translate): New function.
16541 (process_input_stack): Apply transparent_translate before calling
16542 diversion::transparent_output(unsigned char).
16544 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
16546 * troff/input.c (do_define_macro): Define the macro before calling
16549 * xditview/Makefile: Add DEVICES variable. Change install target
16552 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
16554 * groff.c (run_commands): Handle the possibility that there are
16555 child processes other than those forked by us.
16557 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
16559 * lib/string.c (string::append): New function.
16560 * lib/stringclass.h: Declare it.
16562 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
16564 * eqn/main.c (main): New option -N which sets
16565 no_newline_in_delim_flag.
16566 (do_file): If no_newline_in_delim_flag is set don't allow newlines
16568 * groff.c (main): Pass -N on to eqn.
16569 (help, synopsis): Mention -N.
16570 * groff.sh: Implement -N.
16572 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
16574 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16575 (]-): Call ref*do-tl if ref*need-tl is non-zero.
16576 (XP): Allow as initializer.
16578 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
16580 * troff/env.c (environment::wrap_up_field): If field_spaces are
16581 non-zero and we have a current_tab, subtract padding from
16582 tab_distance. If this makes tab_distance <= 0, use the next tab
16583 stop instead. If there isn't any next tab or it's a left tab,
16584 wrap up the current tab.
16585 (environment::start_field): Initialize tab_precedes_field.
16586 (environment::wrap_up_tab): If there's a current field, update
16587 pre_field_width, field_distance and tab_precedes_field.
16588 * troff/env.h (environment::tab_precedes_field): New member.
16590 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
16592 * ps/ps.c (ps_printer::do_file): New function.
16593 (ps_printer::special): Bind to `file' special.
16594 (ps_printer::do_exec): Set ndefined_styles to 0.
16596 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
16598 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16599 Avoid stripping first character from the start of unrecognized
16600 escapes. Use lex_error instead of error to report errors.
16601 * eqn/lex.c (get_token): Rework handling of escapes.
16602 (lex_error): Move declaration into...
16605 * xditview/xditview.c (main): Make -page option work.
16607 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16609 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
16611 * macros/tmac.s (B2): Correct size of box.
16613 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
16615 * macros/tmac.s (B2): Postpone drawing the box until in the
16616 top-level diversion.
16618 * tty/tmac.tty: Add font translations for C, CR, CW.
16620 * groff.c (synopsis, help): Document -i.
16621 * groff.sh: Implement -i.
16623 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16624 Simplify the construction of SN.
16626 * troff/number.c (parse_term): Give `|' a higher precedence.
16627 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16630 * macros/tmac.s (B2): Use par@finish instead of par@reset.
16632 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
16634 * lib/string.c (string::move): New function.
16635 * lib/stringclass.h: Declare it.
16637 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
16639 * troff/env.c (distribute_space): Add optional argument
16641 (environment::wrap_up_field): Call distribute_space with
16642 `force_forward' argument of 1.
16644 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
16646 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16647 Inline it. Move reallocation into...
16648 (string::grow1): New function.
16649 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16650 dependencies to include library header files.
16651 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16653 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
16655 * macros/tmac.s (@NH): Use the same number registers than -ms does
16656 for the heading level counters. Use the same string that -ms does
16657 for the number for this heading.
16659 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
16661 * lib/new.c (operator new): Cast result of malloc to char *.
16663 * troff/input.c (spring_trap, lookup_request): Add assert that nm
16666 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
16668 * groff.c (main): Support -i.
16670 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
16672 * pic/pic.h: Include <osfcn.h>.
16674 * ps/ps.c: Add declaration of mktemp.
16676 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16677 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16678 argument as union wait *.
16679 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16680 argument to union wait *.
16682 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
16684 * tty/tmac.tty: Add definition of \(co.
16686 * pic/object.c (make_arc): Only increase radius when radius
16687 strictly less than d.
16688 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16691 * troff/env.c (environment::environment(symbol),
16692 environment::environment(const environment *)): Initialize
16695 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
16697 * tbl/main.c (main): Add exit(0).
16699 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16701 * pic/main.c (main):
16702 * eqn/main.c (main):
16703 * tbl/main.c (main):
16704 * etc/soelim.c (main):
16705 * driver/printer.c (printer::~printer):
16706 * troff/node.c (real_output_file::~real_output_file,
16707 real_output_file::flush): Check for errors on stdout.
16709 * most files: Add 1991 to copyright notice.
16711 * macros/tmac.s: Don't test \n(.x and \n(.y.
16713 * troff/input.c (token::next): Rename `escape_char' label to
16714 `handle_escape_char' and `normal_char' label to
16715 `handle_normal_char'.
16717 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
16719 * groff.c (main, synopsis, help): Support -a option.
16720 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
16721 to trflags while parsing options.
16723 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
16725 * troff/number.c (parse_term): With `m', `M' and `n' scale
16726 indicators, convert scale factor to hunits before scaling.
16728 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
16730 * lib/font.c (scale_round): Better test for overflow when n is
16733 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
16735 * tbl/main.c (process_format): Add second argument of type
16736 options*. Change callers. Allow opt->tab_char as well as '\t'
16737 between format items.
16739 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
16741 * macros/tmac.an (PD): With no arguments, make sure register PD is
16743 (TH): Call PD with no argument, instead of setting register PD
16746 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
16748 * Version 1.00 released.
16750 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
16752 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16754 * dvi/devdvi/DESC: Mount CW instead of CR.
16756 * dvi/tmac.dvi: Add definition of \(tm.
16758 * dvi/devdvi/texsy.map: Add lh, and rh.
16759 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16760 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16762 * dvi/devdvi/FontMakefile: Generate H from cmss10.
16763 * dvi/devdvi/Makefile: Install H.
16764 * dvi/devdvi/H: New file.
16766 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
16768 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16771 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
16773 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16775 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16777 * macros/tmac.s (@EN): Handle the case where the equation is empty
16778 but the label is not.
16780 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
16782 * troff/groff.h: New warning category WARN_SPACE.
16783 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16784 WARN_SPACE to warning_table.
16785 (interpolate_macro): Give a warning of type WARN_SPACE if the name
16786 is longer than two characters and is not defined, but the first
16787 two characters do make a defined name.
16789 * PROBLEMS: New file.
16791 * CHANGES: New file.
16792 * README-0.6, README-1.00: Deleted.
16794 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16795 * xditview/devX75/Makefile: Make devX75-12.
16796 * xditview/devX100/Makefile: Make devX100-12.
16798 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16799 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16801 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
16803 * README-0.7: Rename to README-1.00.
16805 * macros/tmac.pic: New file.
16806 * macros/Makefile (install.nobin): Install tmac.pic.
16808 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
16810 * troff/env.c (hyphen_word): Correct the test for whether the
16811 token is a hyphen. Reset npos to 0.
16813 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16815 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
16817 * macros/tmac.s (ds*common-end): Call par*reset.
16819 (par@reset-indent): Deleted.
16821 * macros/tmac.s (@IP): Divert the label.
16823 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
16825 * xditview/draw.c (setGC): Use a line width of .1m rather than
16826 .04m by default; round rather than truncate value.
16828 * tbl/table.c (class empty_entry): New class.
16829 (empty_entry::empty_entry, empty_entry::line_type): New functions.
16830 (table::add_entry): Represent empty entries by objects of type
16832 (table_entry::line_type): Return -1.
16833 (table::determine_row_type): Ignore entries with line_type 0.
16834 Treat type -1 as non-lines.
16836 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
16838 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16839 macros/tmac.s: Rename \(-d to \(Sd.
16841 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
16843 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16844 * xditview/libXdvi/DviChar.c: Likewise.
16845 * dvi/devdvi/texsy.map: Add `<<', `>>'.
16847 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
16849 * troff/div.c (top_level_diversion::begin_page): Call
16850 init_output() if the_output is 0.
16852 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
16854 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16856 (get_copy): Turn \E into ESCAPE_E.
16857 (token::process, asciify): Handle ESCAPE_E.
16859 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16861 (DS): Implement `.DS R'.
16863 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
16865 * macros/tmac.s (FS): New macro.
16867 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16869 * macros/tmac.s (cov*tl-init): Remove after first execution
16870 instead of aliasing to @nop. Call top of page macro explicitly
16871 instead of setting trap; call @init first. Set pg@top as top of
16873 (cov*auto-init): Deleted. Set cov*tl-init instead of
16874 cov*auto-init as top of page trap.
16875 (TL, LP): Do a break instead of calling cov*tl-init.
16876 (cov*print): With RP format but no TL, alias FS and FE to @FS and
16877 @FE; in this case also give a warning and always start another
16878 page. No need to set pg@top here.
16879 (cov*tl-init): Rename to cov*first-page-init.
16881 * macros/tmac.s (RP): Do `.pn 0'.
16882 (cov*tl-init): With RP format don't do `.pn 0'.
16884 * macros/tmac.s (pg@cs-top): Set no space mode.
16886 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16887 (cov*ab-init): Alias TL, AU and AI to these.
16889 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
16891 * macros/tmac.s (@EQ): Move the space before the equation into @EN
16892 (@EN): Do nothing unless \n[dl] is > 0.
16894 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
16896 * pic/object.c (ellipse_object::radius): New function.
16898 * VERSION: Change version to 0.7.
16900 * tbl/table.c (block_entry::do_divert): Declare return type as
16902 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16904 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
16906 * troff/column.c: New file.
16907 * troff/Makefile: Corresponding changes.
16909 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
16912 * troff/div.c (top_level_diversion::space): If the space causes
16913 the first-page transition and springs a trap, truncate the space
16916 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
16918 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16921 * pic/troff.c (troff_output::line_thickness,
16922 troff_output::set_fill): Do a horizontal motion to compensate for
16923 the width of the \D escape sequence.
16925 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
16927 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16930 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
16933 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16934 Supply empty definition.
16935 (text_entry::simple_print, simple_text_entry::simple_print):
16936 Delete declarations.
16937 (table::add_entry): Represent empty entries by objects of type
16940 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
16942 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16944 * tbl/table.c (left_text_entry::add_tab): New function.
16946 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
16947 initialize like LP.
16949 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
16951 * troff/env.c (environment::start_field): Give an error message if
16952 there is no next tab.
16954 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
16956 * troff/env.c (hyphenate): Skip initial elements with zero
16959 * macros/tmac.s (par@init): Keep VS in points rather than units.
16961 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
16963 * pic/main.c (main): Implement `-c' option.
16964 * pic/output.h: Declare make_tpic_output().
16965 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16967 (tpic_output): New class.
16968 (tpic_output::tpic_output, tpic_output::set_pen_size,
16969 tpic_output::command, make_tpic_output): New functions.
16971 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
16973 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
16974 if they're not already defined.
16975 * tbl/table.c (init_output): Don't test \n(.g.
16977 * troff/input.c (do_if_request): Delete `g' condition. Recognize
16978 `d', `r' and `c' conditions even in compatibility mode.
16980 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
16982 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16985 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
16987 * troff/env.h (environment::prev_line_interrupted): New member.
16988 (environment::get_prev_line_interrupted): New function.
16989 * troff/env.c (environment::newline): Set prev_line_interrupted.
16990 (environment::environment(const environment *),
16991 environment::environment(symbol)): Initialize
16992 prev_line_interrupted.
16993 * troff/input.c (process_input_stack): Don't give special
16994 treatment to space and newline at the beginning of the line if the
16995 previous line was interrupted.
16997 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
16999 * eqn/eqn.y: Disallow PRIME by itself.
17000 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
17002 (def_table): Remove definition of '. Define prime to be `.
17004 * eqn/eqn.y: Split off part of rule `script' into a new rule
17007 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
17009 * macros/tmac.s ({, }): New string aliases.
17011 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
17013 * README-0.7: New file.
17015 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
17017 * macros/tmac.s: New file.
17018 * man/groff_ms.man: New file.
17019 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
17020 * Makefile.bd: Similarily.
17021 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
17022 definition of TMAC_S.
17023 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
17024 * macros/TODO: New file.
17026 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
17028 * troff/env.c (right_justify): New function.
17029 (init_env_requests): Bind this to request "rj".
17030 (center_lines): Set right_justify_lines to 0. If we get a bad
17031 integer, center 1 line.
17032 (environment::environment(symbol), environment::environment(const
17033 environment *)): Initialize right_justify_lines.
17034 (environment::get_right_justify_lines): New function.
17035 (init_env_requests): Bind this to number_register ".rj".
17037 * troff/env.c (environment::choose_breakpoint): Implement
17038 hyphenation_margin and hyphenation_space.
17039 (environment::get_hyphenation_space,
17040 environment::get_hyphenation_margin): New functions.
17041 (init_env_requests): Bind these to .hys and .hym.
17042 (hyphenation_space_request, hyphenation_margin_request): New
17044 (init_env_requests): Bind these to hys and hym.
17045 (environment::environment(symbol), environment::environment(const
17046 environment *)): Initialize hyphenation_margin and
17048 * troff/env.h: Corresponding changes to class environment.
17050 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
17052 * troff/div.c (blank_line): Always do a break.
17054 * eqn/box.c (do_text): Turn off escapes while appending text to
17057 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
17059 * troff/input.c (while_break_request, while_continue_request): New
17061 (init_input_requests): Bind these to "break" and "continue".
17062 (while_depth, while_break_flag): New variables.
17063 (while_request): Update while_depth. Break out of loop if
17064 while_break_flag is set.
17066 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
17068 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
17071 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
17073 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
17075 * stringify: New file.
17076 * Makefile (groff.o): Use stringify.
17078 * xditview/tmac.X: Remove definition of \(rn.
17079 * xditview/libXdvi/DviChar.c: Remove radicalex from
17082 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
17084 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
17085 (alphabetic_block_entry::alphabetic_block_entry,
17086 alphabetic_block_entry::divert, alphabetic_block_entry::print):
17088 (block_entry::divert): Split off body into ...
17089 (block_entry::do_divert): If the block is alphabetic, subtract 2n
17090 from the line length; also update the span width to dl+2n, and the
17091 alphabetic span width to dl.
17093 * driver/input.c (do_file): While reading argument to D command,
17094 when expanding buffer, multiply szp by sizeof(int) rather than 2
17095 in the argument to memcpy.
17097 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
17098 width of alphabetic columns.
17100 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
17102 * troff/node.c (lookup_family): Supply second argument to lookup.
17104 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
17105 search, return immediately if v is 0.
17107 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
17108 (troff_output::start_picture): Set this reg.
17109 (troff_output::end_picture): Remove this reg
17110 * eqn/box.c (box::extra_space): Don't produce `\x's if
17111 EQN_NO_EXTRA_SPACE_REG is defined.
17113 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
17114 * eqn/text.c (split_text): Map ' to \(fm when it's the first
17117 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
17119 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
17122 * troff/div.c (top_level_diversion::top_level_diversion):
17123 Initialize page_number to 0.
17125 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
17127 * groff/troff (environment::environment(const environment *)):
17128 Initialize name to e->name, rather than "anonymous".
17130 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
17132 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
17133 requested_page. Split middle part into ...
17134 (FindPage): New function.
17135 (SetValues): If we don't yet know the last page, and the requested
17136 page is greater than the current page, call FindPage.
17137 Update the font_map_string before doing this.
17139 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
17140 Translate \(lh and \(rh into left and right double arrows.
17142 * troff/node.c (class hyphen_inhibitor_node): New class.
17143 (hyphen_inhibitor_node::hyphen_inhibitor_node,
17144 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
17145 hyphen_inhibitor_node::type,
17146 hyphen_inhibitor_node::get_hyphenation_type): New functions.
17147 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
17148 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
17151 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
17153 * troff/node.h (dummy_node::get_hyphenation_type,
17154 transparent_dummy_node::get_hyphenation_type): Declare them.
17155 * troff/node.c: (dummy_node::get_hyphenation_type,
17156 transparent_dummy_node::get_hyphenation_type): New functions.
17158 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
17160 * xditview/libXdvi/draw.c: If M_PI not defined after including
17161 math.h, then define it.
17163 * xditview/Makefile: Add definition of AR. Pass it to the submake
17165 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
17167 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
17169 * troff/dictionary.h (object_dictionary::alias): Declare return
17171 * troff/dictionary.c (object_dictionary::alias): Return non-zero
17172 if the old name was defined.
17173 * troff/input.c (alias_macro): Give a warning if the old name was
17175 * troff/reg.c (alias_reg): Likewise.
17177 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
17179 * troff/input.c (token::next): Delete implementation of \R.
17181 * macros/Makefile: Strip comments from tmac.e while installing it.
17183 * troff/input.c: New variable `nroff_mode'.
17184 (troff_request, nroff_request): New functions.
17185 (init_input_requests): Bind `troff' and `nroff' to troff_request
17187 (do_if_request): Compute results of t and n conditions from
17190 * text/text.c (split_text): Fix typo in >=.
17192 * eqn/lex.c: Add definition of `==' to def_table.
17194 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
17196 * pic/tex.c (tex_output::start_picture): Change the definitions of
17197 \graph and \graphtemp so that they work properly with Plain TeX.
17199 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
17200 argument to `ar' is not less than the first.
17202 * pic/pic.y: Allow a comma between elements of the variable list
17203 in the argument to `reset'.
17205 * pic/object.c (arc_object::arc_object): Fix computation of
17208 * eqn/main.c (main): Add exit(0).
17210 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
17212 * troff/div.c (begin_page): Test no_space_mode after doing the
17213 break, but still push the page ejector cookie before doing the
17214 break. Also set the next page number after doing the break.
17216 * xditview/xditview.c (NewFile): Don't set the title and icon name
17217 if this is the first file and its name is `-'.
17218 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
17219 the X75 and X100 devices.
17220 (main): If a device has the XT_OPTION flag set and there's exactly
17221 one file argument, pass the driver -xrm and -title options to set
17222 the icon name and window title to the name of the file.
17224 * troff/env.c (environment_switch): If there was an argument but
17225 it wasn't a valid number or name, then pop an environment but
17226 don't give an error message on underflow.
17228 * troff/number.c (start_number): Correct spelling in error message.
17230 * troff/input.c (token::delimiter): Don't print an error message
17233 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
17234 ParseDrawFunction if dw->display_enable is true.
17236 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
17238 * pic/pic.y: Parse text positioning like normal attributes, so as
17239 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
17240 positioning attribute.
17242 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
17244 * tbl/main.c (process_data): When in state START while reading a
17245 text block, don't change to state MIDDLE if c is a newline.
17247 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
17249 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
17250 so as to avoid shadowing parameter.
17252 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
17254 * tbl/table.c (trim_space): Deleted.
17255 (table::add_entry): Don't call trim_space.
17257 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
17259 * VERSION: Change version to 0.6.
17261 * troff/number.c (parse_expr): Make == work.
17263 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
17265 * man/grog.man: New file.
17266 * man/Makefile: Add grog.n to MAN1PAGES.
17267 * etc/grog.sh: New file.
17268 * etc/Makefile: Install grog.sh as grog.
17270 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
17272 * troff/input.c (token::next): Implement \E.
17274 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
17276 * xditview/tmac.X: Change font translations to match tmac.ps.
17278 * troff/input.c (non_empty_name_warning): Don't give a warning if
17279 `\{' terminates the name.
17281 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
17283 * ps/devps/symbol.diff: New file.
17284 * ps/devps/FontMakefile: Mention symbol.diff.
17286 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
17288 * troff/node.c (font_position): Use get_long_name to read the
17291 * troff/env.c (environment_switch): If we get a number that's < 0
17292 or >= NENVIRONMENTS, treat it like a name.
17293 Change NENVIRONMENTS to 10.
17295 * troff/groff.h: Remove definition of FONTS_MAX.
17296 * troff/node.h (class font_family): Make map a pointer instead of
17297 an array. Add a map_size member. Make it a class. Make nm const
17298 and public. Make invalidate_fontno a friend.
17299 * troff/node.c: Define font_table_size. Make font_info a pointer
17300 rather than an array.
17301 (class troff_output_file): Allocate font_position dynamically. Add
17302 nfont_positions member.
17303 (troff_output_file::set_font): Grow font_position if necessary.
17304 (troff_output_file::~troff_output_file): Delete font_position.
17305 (troff_output_file::troff_output_file): Allocate font_position.
17306 (grow_font_table): New function.
17307 (troff_output_file::really_begin_page,
17308 troff_output_file:really_copy_page): Use nfont_positions rather
17310 (mount_font_no_translate, mount_style): Call grow_font_table if
17312 (font_family::font_family): Allocate map.
17313 (font_family::make_definite): Grow map if necessary. Use
17314 font_table_size instead of FONTS_MAX.
17315 (font_family::~font_family): New function.
17316 (invalidate_fontno): Use font_family::map_size.
17317 (get_fontno, env_space_width, env_half_narrow_space_width,
17318 env_narrow_space_width, symbol_fotno, is_good_fontno,
17319 get_bold_fontno, make_glyph_node): Use font_table_size rather than
17321 (next_available_font_position): Never return 0.
17323 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
17325 * ps/tmac.ps: Add font translations for compatibility with dpost.
17327 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
17329 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
17330 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
17331 Move definitions baseline_sep, shift_down, column_sep,
17332 matrix_side_sep into...
17333 * eqn/box.c: Add them to param_table.
17334 * eqn/pbox.h: Add declarations to pbox.h.
17336 * troff/input.c (set_string): Cast value to unsigned char *.
17338 * troff/token.h (process_input_stack): Declare it static before
17339 declaring it a friend.
17341 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
17343 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
17345 * dvi/devdvi/EX: Regenerate.
17347 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
17350 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
17352 * eqn/lex.c: In defaults_table, make definition of `dot' call
17353 `dot_def'. Don't explicitly make it roman. Similarily for other
17356 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
17358 (for_input::get, for_input::peek): Use this.
17359 (do_for): Add by_is_multiplicative argument.
17360 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
17361 Change semantic value of optional_by to be a double plus a flag
17362 saying whethet the by clause is multiplicative.
17364 * eqn/lex.c (get_delimited_text): Remember location of start of
17365 definition. Improve error handling when EOF is encountered.
17367 * lib/font.h: Rename handle_x_command to
17368 handle_unknown_font_command.
17369 * lib/font.c (font::load): Call handle_unknown_font_command for
17370 any unknown command in the font description file. Don't call
17371 handle_x_command. Include the name of the command in the argv.
17372 Improve message for unknown command after kernpairs or charset
17374 * ps/ps.c (ps_font::handle_x_command): Rename to
17375 handle_unknown_font_command. Remove message about `x download'
17376 command. Give error message for wrong number of arguments.
17377 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
17378 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
17379 handle_unknown_font_command. Give an error message for wrong
17380 number of arguments. Rename design_size to designsize.
17381 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
17382 checksum', `designsize' instead of `design_size'.
17384 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
17386 * eqn/*.[chy]: Change underaccent to uaccent.
17388 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
17389 give it the same precedence as ACCENT.
17390 * eqn/other.c (make_underaccent_box): New function.
17391 * eqn/box.h: Declare it.
17392 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17395 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
17397 * pic/pic.y (reset_all): New function. Called in rule for RESET.
17398 (parse_init): Call reset_all.
17399 (define_variable): When defining scale reset only those
17400 pre-defined variables that are scaled.
17401 (defaults_table): Add `scale' as non-scaled value.
17403 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17404 together with the text; allow any number of positioning words;
17405 allow center as a positioning word.
17407 * pic/object.c (output::compute_scale): Get picture maximum height
17408 and width from variables called maxpswid and maxpsht.
17409 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17411 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
17413 * pic/object.c (object_spec::make_text): Multiply textht by number
17416 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17418 (do_sprintf): New function.
17419 (pic.gperf): Add sprintf token.
17420 (text, sprintf): New rules.
17422 * pic/pic.y: `rand()' with no arguments returns a random number
17423 in the range [0,1).
17425 * pic/pic.y: Allow a bare expression to be an attribute: change
17426 precedences to support this. Change optional_ordinal rule to
17427 optional_ordinal_last to avoid reduce/reduce conflict.
17428 * pic/object.c (object_spec::object_spec): Initialize direction.
17430 * pic/pic.y: Implement ^ operator meaning exponentiation.
17432 * troff/node.h: Add default argument to mount_font.
17433 * troff/node.c (font_position): Read an optional third argument
17434 giving the external_name.
17435 (mount_font): Add optional argument giving the external_name.
17436 (mount_font_not_translate): Have additional argument giving
17437 external name. Use this name to load the font. Pass both names
17438 to font_info::font_info.
17439 (font_info::font_info): Have additional argument giving
17441 (class tfont): New member external_name.
17442 (font_info::get_tfont): Use external name to construct tfont_spec.
17444 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
17446 * eqn/lex.c (init_table): Add argument giving device. Define
17447 name of device to be "1".
17448 (do_ifdef): Counts as true if the argument has been defined with
17450 * eqn/main.c (main): Call init_table with device argument. Make
17451 device local to main.
17452 * eqn/eqn.h: Change declaration of init_table. Remove declaration
17455 * pic/lex.c (get_delimited): Allow text to be delimited by
17456 matching {}s. Don't recognize ending delimiter within a string.
17458 * troff/input.c (get_delim_name): New function.
17459 (token::next): Implement \C.
17461 * lib/font.c (font::load): Grok ---. Add an alias for each
17462 character based on its code.
17463 (font::get_code_width): Deleted.
17464 * lib/font.h (class font): Declare font::number_to_index().
17465 Remove declaration of font::get_code_width.
17466 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17467 to indices of named characters.
17468 (font::number_to_index): New function.
17469 * troff/input.c (font::number_to_index): New function.
17470 (get_charinfo_by_number, charinfo::get_number,
17471 charinfo::set_number): New functions.
17472 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17473 (token::process, token::description, token::get_char,
17474 token::add_to_node_list, token::operator==): Handle
17475 TOKEN_NUMBERED_CHAR.
17476 * troff/charinfo.h: Declare get_charinfo_by_number,
17477 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
17479 (charinfo::numbered): New function.
17480 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17481 * troff/env.h (class environment): Remove declaration of ...
17482 * troff/env.c (environment::make_numbered_char_node): Deleted.
17483 * troff/node.c (make_numbered_node): Deleted.
17484 (class numbered_glyph_node): Remove.
17485 (troff_output_file::put_char_width, troff_output_file::put_char):
17486 Handle numbered chars.
17487 (troff_output_file::numbered_char): Removed.
17488 (tfont::get_code_width): Removed.
17489 (make_glyph_node): Don't search special fonts for numbered
17491 * troff/node.h: Remove declaration of make_numbered_node.
17492 * driver/input.c (do_file): Handle N command.
17493 * driver/printer.h: Add declaration of ...
17494 * driver/printer.c (printer::set_numbered_char): New function.
17495 * dvi/tfmtodit.c (main): Generate unnamed entries.
17496 * ps/devps/afmtodit: Likewise.
17497 * xditview/xtotroff.c (MapFont): Likewise.
17498 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17500 * tbl/main.c (process_format): If multiple widths are specified
17501 for a column but all the widths are the same, don't give an error
17504 * tbl/table.c (table::do_row): If the current row is all lines and
17505 the stuff doesn't contains a line, mark the top of the row after
17506 printing stuff before the row. If the current row is not all
17507 lines and the stuff doesn't contain a line, don't unnecessarily
17508 mark the top of the row before printing the stuff.
17510 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
17512 * troff/groff.h: Remove MAX_PATH.
17513 * troff/input.c (open_file): Dynamically allocate space for the
17515 (open_mac_file, process_macro_file): Corresponding changes.
17517 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
17519 * troff/node.h (class output_file): Make copy_file pure. Add
17520 vspace method ifdef COLUMN. Add is_printing method.
17521 * troff/node.c: Add class printing_reg. Add class
17522 real_output_file. Derive other output_file classes from
17523 real_output_file; in these classes rename begin_page to
17524 really_begin_page, print_line to really_print_line, copy_file to
17525 really_copy_file, transparent_char to really_transparent_char.
17526 Move output_file::flush to real_output_file. Add printing member
17527 to class output_file.
17528 * troff/div.h: Remove printing member from top_level_diversion.
17529 Add vspace member function to class diversion ifdef COLUMN. Add
17530 some declarations ifdef COLUMN.
17531 * troff/div.c (top_level_diversion::copy_file,
17532 top_level_diversion::transparent_output,
17533 top_level_diversion::output): Don't test printing member before
17535 * troff/input.c: Handle initial variable_space_request ifdef
17537 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17538 but comment it out.
17540 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
17542 * troff/div.c (diversion::need): Make any space forced. If we
17543 sprung a trap, set truncated_space to minus the distance to the
17544 trap and set needed_space to the amount that was needed.
17545 (top_level_diversion::space): A forced space turns no_space_mode
17547 (class constant_vunits_reg): New class.
17548 (init_div_requests): Implement number registers .trunc and .ne
17549 using constant_vunits_reg.
17550 (class truncated_space_reg): Deleted.
17552 * troff/div.h: Don't have a no_space_mode member in diversion.
17553 Instead have it in top_level_diversion.
17554 * troff/div.c (diversion::diversion): Don't initialize
17556 (top_level_diversion::top_level_diversion): Initialize
17558 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17559 (macro_diversion::output): Don't clear no_space_mode.
17561 * troff/input.c (diverted_space_node::reread): Don't call
17562 environment::do_break. In fill mode, act like a blank line.
17563 (diverted_copy_file_node::reread): Don't call
17564 environment::do_break.
17566 * troff/div.c (blank_line): New function.
17567 * troff/div.h: Declare it.
17568 * troff/input.c (process_input_stack): Call it.
17570 * troff/div.c (truncated_space_reg::get_string): New function.
17571 (init_div_requests): Bind to .trunc.
17572 (space_request, top_level_diversion::space,
17573 top_level_diversion::output, macro_diversion::space,
17574 macro_diversion::output): Update truncated_space.
17575 (macro_diversion::output): Redo calculations when trap sprung.
17576 (macro_diversion::output, macro_diversion::space): No need for
17579 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17580 after truncating post line spacing.
17582 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
17584 * ps/devps/prologue (MF, SF): Make them work even if setfont is
17585 defined as a procedure rather than as an operator.
17587 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
17589 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17591 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
17593 * troff/div.c (top_level_diversion::output): Merge
17594 output_file::print_line and output_file::end_of_line member
17596 * troff/div.h (class output_file):
17597 * troff/node.c (troff_output_file::print_line,
17598 troff_output_file::end_of_line, output_file::end_of_line,
17599 ascii_output_file::print_line, suppress_output_file::print_line):
17600 Corresponding changes.
17602 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
17604 * troff/input.c (token::next): Don't give a warning for `\.'.
17606 * troff/env.c (environment::get_center_lines): New function.
17607 (init_env_requests): Bind number register .ce to it.
17608 * troff/env.h: Declare it.
17609 * tbl/table.c (table::init_output): Define reset macro to restore
17610 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
17612 (table::print): If center option not given, then imply center
17613 option if SAVED_CENTER_REG > 0.
17615 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
17617 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17618 Troff.ps from DOWNLOAD.
17620 * troff/Makefile: Change comment in DEFINES to avoid confusing
17623 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17624 code. Don't try to catch errors with stopped.
17625 (check_line_lengths): New function.
17626 * ps/devps/prologue (EXEC): Deleted.
17627 (EBEGIN, EEND): New procedures.
17629 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
17631 * troff/input.c: Include request.h before node.h.
17632 * troff/node.c: Likewise.
17633 * troff/env.c: Likewise.
17634 * troff/div.c: Likewise.
17635 * troff/node.h (class special_node): Store argument as a macro
17636 rather than a char *.
17637 * troff/node.c (special_node::special_node, special_node::copy):
17639 (special_node::~special_node): Deleted.
17640 (special_node::tprint): Deleted.
17641 (special_node::tprint_start, special_node::tprint_end,
17642 special_node::tprint_char): New functions.
17643 (troff_output_file::special): Deleted.
17644 (troff_output_file::start_special, troff_output_file::end_special,
17645 troff_output_file::special_char): New functions.
17646 * troff/input.c (special_node::tprint): New function.
17647 (do_special): Use macro not char *.
17648 (do_transparent_macro): Deleted.
17649 (token::next): Don't call do_transparent_macro.
17651 * troff/input.c (token::next): Add 'Y' case.
17652 (do_transparent_macro): New function.
17653 * troff/node.c (troff_output_file::special): Handle newlines with
17654 argument using new continuation convention.
17655 * driver/input.c (get_string): Cope with continuation convention.
17656 (do_file): Don't call skip_line after calling get_string(1).
17657 * ps/ps.c (ps_printer::special, ps_printer::do_import,
17658 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17660 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17663 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
17665 * troff/input.c (asciify): By default, illegal input characters
17666 should return empty string.
17668 * troff/input.c (copy_file): Handle first page transition like title.
17669 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17671 * troff/input.c (token::next): Improve error message for EOF after
17673 (input_char_description): New function.
17674 (get_char_for_escape_name): Use input_char_description.
17675 (token::next): Warn about unrecognized escape sequences.
17676 (warning_table): Add WARN_ESCAPE.
17677 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17680 * troff/token.h: Remove declaration of process_input_stack.
17682 * troff/input.c: Remove declaration of init_hyphen_requests.
17683 * troff/request.h: Correct spelling in declaration of same.
17685 * troff/input.c (token::next): Check whether escape_char is 0.
17687 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
17689 * groff.c (main, usage, help): Implement -P and -L options.
17690 * groff.sh: Likewise.
17692 * troff/input.c (token::next): Use some gotos to avoid code
17695 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17696 Avoid calling symbol::symbol if name empty.
17698 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
17700 * troff/input.c (init_input_requests): Make \n(.x return the major
17701 version number and \n(.y return the minor version number.
17702 * troff/Makefile: Construct file majorminor.c defining
17703 major_version and minor_version automatically from ../VERSION.
17705 * troff/node.c (class glyph_node): Make operator new and operator
17707 (class ligature_node): Similarily.
17709 * troff/input.c (operator==(const macro &, const macro &)): New
17711 (non_interpreted_node::same): Use this.
17712 (string_iterator::string_iterator): Make macro& argument const.
17714 * troff/input.c (input_iterator::get): New function. Don't make
17715 asciify_macro or class non_interpreted_node friends of class
17717 (non_interpreted_node::interpret): Use input_iterator::get.
17718 (asciify_macro): Likewise.
17720 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17721 ~non_interpreted_node): Deleted.
17722 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17725 * troff/symbol.h: Make all symbol member functions const.
17727 * lib/strtol.c: New file.
17728 * lib/Makefile: Add strtol.c.
17729 * Makefile: Define STRTOL as strtol.o to include strtol in
17732 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
17734 * pic/troff.c (troff_output::simple_circle): Divide by scale.
17736 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
17738 * troff/input.c (do_special): Use input_level.
17740 * troff/token.h (TOKEN_BACKSPACE): New token.
17741 (token::backspace): New function.
17742 * troff/input.c (token::description, token::next, token::process):
17743 Grok TOKEN_BACKSPACE.
17744 (do_special): Turn TOKEN_BACKSPACE back into \b.
17746 * troff/token.h (token::leader): New function.
17747 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17749 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17751 * troff/input.c (do_special): Use token::description in error
17754 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
17756 * troff/input.c (decode_args): Combine quoted and
17757 quote_input_level variables. Make it a for (;;) loop.
17759 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17761 * troff/input.c (read_long_escape_name): The test for whether to
17762 expand buffer was off by 1.
17763 (read_string): Similarily.
17765 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
17767 * troff/input.c: Use `const int' rather than `static const int'.
17769 * troff/div.h (diversion::copy_file): Declare as pure virtual.
17770 (macro_diversion::copy_file): New function.
17771 * troff/node.h: New class diverted_copy_file_node.
17772 * troff/node.c: Implement it.
17773 * troff/input.c (copy_file): Use diversion::copy_file. Handle
17774 first page transition by pushing a diverted_copy_file_node.
17775 * troff/input.c (token::next, process_input_stack): Don't handle
17778 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
17780 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17781 whether space widths need adjusting.
17783 * troff/charinfo.h: Generalize translated_to_space to
17784 special_translation so as to allow translation to \&.
17785 * troff/input.c (translate): Allow translation to \&.
17786 (charinfo::*): Corresponding changes.
17787 * troff/node.c (make_node, node::add_char): Corresponding changes.
17788 * troff/node.h (dummy_node::dummy_node): Allow optional first
17791 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17792 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17794 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17795 TOKEN_REQUEST with an argument of TITLE_REQUEST.
17796 (token::process): Grok that.
17797 * troff/input.c (copy_file): Handle first page transition like
17798 title by pushing a COPY_FILE_REQUEST cookie.
17799 (token::next, process_input_stack): Grok that.
17800 * troff/node.h (output_file::copy_file): Add x and y arguments.
17802 * troff/div.c (top_level_diversion::copy_file): Supply them.
17803 * troff/node.c (troff_output_file::copy_file): Add x and y
17804 arguments; moveto specified position. Invalidate font_position
17805 array after copying file.
17806 (output_file::copy_file): New function.
17807 (suppressed_output_file::copy_file, ascii_output::copy_file):
17809 * troff/input.c (transparent_file): New function.
17810 (init_input_requests): Bind to "trf".
17811 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17812 (process_input_stack): Likewise.
17814 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17816 * troff/node.c (init_node_requests): New number registers .kern
17817 pointing to global_kern_mode, and .lg pointing to
17818 global_ligature_mode.
17820 * troff/node.c (ligature): Don't change it if we get a bad
17823 * troff/input.c (do_define_string): Don't strip tabs.
17825 * troff/input.c (asciify_macro): Make the string_iterator auto.
17827 * troff/node.c (init_font_requests): Rename to...
17828 (init_node_requests):
17829 * troff/node.h: Change declaration.
17830 * troff/input.c (main): Change call.
17832 * troff/input.c (node::reread, diverted_space_node::reread): New
17834 (process_input_stack): Call reread rather than
17835 get_diverted_space_node.
17836 * troff/node.c (node::get_diverted_space_node,
17837 diverted_space_node::get_diverted_space_node): Removed.
17838 * troff/node.h: Declare reread methods instead of
17839 get_diverted_space_node methods. Make `n' member private.
17840 * troff/input.c: (token::diverted_space): Removed.
17841 * troff/token.h: Removed declaration.
17844 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
17846 * eqn/script.c (script_box::compute_metrics): Don't let
17847 SUP_RAISE_FORMAT become negative.
17849 * tbl/table.c (table::do_row): Entries that don't end in the
17850 this row shouldn't make the row non-blank.
17852 * tbl/table.c (table::make_columns_equal): Only set the width of
17853 columns which are marked as equal.
17855 * tbl/main.c (process_data): Before issuing excess data error,
17856 if last character was a newline unget it; then get it again after
17857 the error. Also include the contents of the entry in the message.
17859 * groff.c: New file.
17860 * Makefile: Build groff from groff.c. Make it possible to use
17861 either groff.sh or groff.c as groff.
17862 * Makefile.bd: Similarily.
17864 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
17866 * groff.sh: Don't delay expansion of $@ in assignment to files.
17867 Remove occurrences of \".
17869 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
17871 * all Makefiles: Simplify and rearrange.
17873 * Makefile: Handle fmod like malloc.
17874 * lib/Makefile: Similarily.
17875 * lib/fmod.c: Remove #ifdef NEED_FMOD.
17877 * Makefile: Rename OPTIMISE to OPTIMIZE.
17879 * groff.sh: Remove assignment to PATH.
17880 * Makefile: Remove SHPATH variable.
17881 * Makefile.bd: Similarily.
17883 * groff.sh: Add -V option to print the pipeline instead of
17886 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
17888 * lib/font.c: Split off file searching into ...
17889 * lib/fontfile.c: New file.
17891 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17893 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
17895 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17896 Also change misleading comment.
17897 (table::do_vspan): Change similarily misleading comment.
17898 * tbl/main.c (process_data): A format row with an explicit `s'
17899 uses up a data line, even if all the other columns are `_' or `='.
17901 * troff/input.c (token::description): Fix description of
17902 TOKEN_DUMMY and TOKEN_EMPTY.
17904 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
17906 * groff.sh: Fix description of -Z in help message.
17908 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
17910 * pic/object.c (object_spec::make_object): Allow negative and zero
17912 * pic/pic.y: Give linethick default value of -1.0.
17913 * pic/troff.c (troff_output::troff_output): Initialize
17914 last_line_thickness to BAD_THICKNESS.
17915 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17916 (troff_output::line_thickness): Canonicalize negative thicknesses
17917 to RELATIVE_THICKNESS.
17918 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17919 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17921 (tex_output::start_picture): Set pen_size to -2.0.
17923 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17924 0, then use 0 linewidth.
17925 (ps_printer::ps_printer): Initialize line_thickness to -1.
17927 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17929 * ps/devps/symbolchars: Remove `or'.
17930 * ps/tmac.ps: Implement \(or with .char.
17932 * ps/devps/symbolchars: Move most characters into textmap.
17933 * ps/devps/textmap: Add names for troff bracket characters. Remove
17936 * ps/devps/TSymbol.ps: Removed.
17937 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17938 * ps/tmac.ps: Do with .char what TSymbol did.
17939 * ps/devps/download: Remove TSymbol.
17941 * ps/devps/T: Removed.
17942 * ps/devps/Troff.ps: Removed.
17943 * ps/devps/Troff.afm: Removed.
17944 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17945 * ps/devps/download: Remove Troff.
17946 * ps/devps/FontMakefile: Remove T target.
17947 * ps/devps/DESC-A4: Remove T from font list.
17948 * ps/devps/DESC-letter: Likewise.
17950 * troff/input.c (macro_to_node): Rename to ...
17951 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
17952 character's definition while processing it.
17953 * troff/node.c (node::add_char, make_node): Change calls to
17954 macro_to_node accordingly.
17956 * troff/input.c (token::next): Translate \_ to \(ul.
17958 * tty/devascii/R.proto: Add `|'.
17959 * tty/devlatin1/R.proto: Likewise.
17961 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
17963 * man: Put the version number in all the man pages.
17965 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
17967 * Makefile.bd: New file.
17968 * README.bd: New file.
17970 * VERSION: New file.
17971 * lib/version.c: Removed.
17972 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17975 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17976 environment variable.
17978 * all Makefiles: Split install target into install.bin for
17979 binaries, and install.nobin for everything else.
17980 * Makefile: Add bindist target.
17982 * man/afmtodit.man: New file.
17983 * man/Makefile: Add afmtodit.n to MAN1PAGES.
17984 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17986 * ps/Makefile: Pass BINDIR to make install in devps.
17988 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17989 the space character.
17991 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17993 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
17995 * ps/ps.c: Redo font downloading.
17996 * ps/devps/download: New file.
17997 * ps/devps/Makefile: Add download to DEVICEFILES.
17998 * ps/devps/afmtodit: Remove -d option.
17999 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
18000 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
18001 * ps/devps/zapfdr.ps: Likewise.
18002 * ps/devps/TSymbol.ps: Likewise.
18004 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
18006 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
18008 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
18010 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
18011 then strip the first line if it starts with %.
18012 * Makefile: Add a comment about this.
18014 * man/tfmtodit.man: New file.
18015 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
18016 * dvi/Makefile: Install tfmtodit in BINDIR.
18018 * dvi/tfmtodit.c (usage): Mention -v option.
18020 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
18022 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
18023 * troff/node.c (troff_output_file::transparent_char): Don't call
18026 * eqn: Add check_tabs method to most box classes.
18027 * eqn/box.c (box::top_level): Call check_tabs.
18029 * eqn/script.c (script_box::output): Use \Z.
18030 * eqn/limit.c (limit_box::output): Use \Z.
18032 * eqn/box.c (box::top_level): Use itoa.
18034 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
18036 * dvi/tmac.dvi: Add font translations for CR, C, TT.
18037 * dvi/devdvi/Makefile: Don't make links to CW.
18039 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
18041 * xditview/tmac.X: Likewise.
18043 * troff/node.c: Add font translation feature.
18044 (get_font_translation): New function.
18045 (symbol_fontno): Translate the font name.
18046 (mount_font_no_translate): Rename to mount_font to this.
18047 (mount_font): New function.
18048 (font_family::make_definite): Call mount_font_no_translate instead
18050 (mount_style): Translate the font name.
18051 (font_translate): New function.
18052 (init_font_requests): Bind "ftr" to font_translate.
18054 * ps/devps/prologue (SN): New procedure that rounds a position to
18055 the nearest (pixel + (.25,.25)).
18056 (DL): Use SN to round endpoints.
18058 * lib/version.c: Changed version to 0.5.
18060 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
18062 * Makefile: Move definition of PAGE to the very beginning, so that
18063 people are less likely to miss it.
18065 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
18067 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
18069 * troff/env.c (environment::choose_breakpoint): Make `can't find
18070 breakpoint' error a warning of type WARN_BREAK. Change message to
18071 `can't break line'.
18072 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
18074 * troff/input.c: Add WARN_BREAK to warning_table. Include
18075 WARN_BREAK in DEFAULT_WARNING_MASK.
18077 * tty/tmac.tty: Add definition of \(+-.
18079 * groff.sh: Remove `--' option to set command.
18081 * dvi/devdvi/texsy.map: Remove duplicate md entry.
18083 * ps/devps/eqnchar: Better definition of cdot using md.
18084 * dvi/devdvi/eqnchar: Likewise.
18085 * xditview/devX100/eqnchar: Likewise.
18086 * xditview/devX75/eqnchar: Likewise.
18087 * eqn/lex.c: Add definition of cdot.
18089 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
18091 * troff/input.c (get_optional_char): New function.
18092 * troff/input.c (set_page_character): Use get_optional_char(),
18093 rather than has_arg() and tok.get_char(1).
18094 * troff/env.c (tab_character, leader_character, hyphen_char,
18095 field_characters): Likewise.
18096 (margin_character): Likewise. Also always delete the
18097 margin_character_node.
18099 * troff/input.c (token::get_char): Use token::description.
18101 * troff/input.c (has_arg): Don't skip over tab and \}.
18102 * troff/number.c (start_number): Give a warning if the number
18103 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
18105 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
18107 * troff/input.c (empty_name_warning, non_empty_name_warning): New
18109 (get_name, get_long_name): Use these. Rename `warn' argument to
18112 * troff/node.c (get_fontno): Test that the symbol is not null.
18114 * troff/input.c (token::description): New function.
18115 * troff/number.c (parse_term): Use token::description in `numeric
18116 expression expected' message.
18117 * troff/groff.h: Add WARN_MISSING.
18118 * troff/number.c (start_number): New function.
18119 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
18120 get_incr_number): Use start_number().
18121 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
18123 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
18124 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
18126 * troff/input.c (token::get_char): Use WARN_MISSING.
18127 * troff/input.c (token::delimiter): Use token::description.
18128 * troff/env.c (environment_switch): Back out Aug 3 change.
18129 * troff/input.c (has_arg): Skip over \}s and tabs but give a
18131 * troff/token.h (token::tab): New function.
18132 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
18133 * troff/reg.c (alter_format): Likewise.
18134 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
18136 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
18138 * troff (most files): Redo warnings. Divide warnings into various
18139 categories; warning() has an additional first argument indicating
18140 the category it falls into.
18141 * troff/input.c (main): -w now takes an argument. New option -W.
18142 (enable_warning, disable_warning): New functions.
18144 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
18145 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
18147 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
18149 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
18150 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
18151 * xditview/devX75/eqnchar: Likewise.
18152 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
18154 * eqn/other.c: When bar or over applies to a single character
18155 don't produce an overline_box or an underline_box. Instead produce
18156 an accent_box or an underaccent_box, with the accent a line
18157 whose width is accent_width. New classes underaccent_box,
18158 overline_char_box and underline_char_box.
18159 * eqn/box.h: Move overline_box, underline_box, accent_box class
18160 declarations into eqn/other.c. Add declarations of
18161 make_underline_box, make_overline_box, make_accent_box.
18162 * eqn/eqn.y: Call make_overline_box, make_underline_box
18163 make_accent_box instead of constructors.
18164 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
18166 * eqn/other.c: Add accent_box::~accent_box.
18167 * eqn/box.h: Declare it.
18169 * groff.sh: With -Tps, use eqn -D.
18171 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
18173 (underline_box::output): Similarily.
18174 (accent_box::output): Use \Z.
18176 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
18179 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
18181 * troff/div.c (top_level_diversion::transparent_output(unsigned
18182 char)): Use asciify.
18183 * troff/input.c (asciify): Don't make it static.
18184 * troff/token.h (asciify): Declare it.
18186 * troff/input.c (get_name, get_long_name, token::get_char,
18187 token::delimiter): Add an extra default argument which says
18188 whether a warning should be printed.
18189 * troff: Pass a non-zero argument to one of these rather than
18190 printing a warning directly.
18192 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
18194 * troff: Consistently use symbol::is_null.
18196 * troff/dictionary.h: Move some inline functions into
18199 * troff/request.h: Move inline functions into input.c.
18200 (request_or_macro::invoke): Make it pure.
18202 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
18203 * troff/input.c (init_input_requests): Use class constant_int_reg.
18204 (class compatible_reg): Deleted.
18205 * troff/div.c (init_div_requests): Use class constant_int_reg.
18206 (class last_post_line_extra_space_reg): Deleted.
18208 * troff/env.c (tab_character): Don't change the tab character if
18209 we get an invalid argument.
18210 (hyphen_char): Similarily.
18212 * troff/reg.c (alter_format): Check that nm is not null.
18214 * Makefile, groff.sh: Make it possible to customize the commands
18215 used for printing PostScript and dvi files. Also make it possible
18216 to customize the path used by groff.sh.
18218 * eqn/eqn.y: Make `left' right associative.
18220 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
18222 * pic/pic.h: Added definition of M_SQRT2 for those systems that
18225 * pic/pic.h: Removed definition of INT_MAX.
18227 * troff/node.c (italic_corrected_node::vertical_extent): Omit
18230 * troff/input.c (token::next): Handle \R like \n.
18232 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
18234 * ps/tmac.pc (PSPIC): Simplify.
18236 * troff/env.c (tab_stops::to_string):
18237 * pic/pic.y (object_type_name):
18238 * pic/troff.c (simple_output::line):
18239 * pic/tex.c (tex_output::spline):
18240 * pic/object.c (object_spec::make_object):
18241 * tbl/main.c (process_data): Add cases to switch statements to
18242 avoid cfront warnings. (Some of these are spurious, since the
18243 switch already has a default case.)
18245 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
18246 `ps-'. Don't test systat; instead check number of arguments to
18249 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
18251 * macros/tmac.e: Do not decrease the page offset by 0.5i.
18253 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
18254 Unlink the file as soon as we have opened it, so that we don't
18255 have to bother with signal handlers.
18256 (handler): Deleted.
18257 (fatal_error_exit): Deleted.
18258 (main): Don't call signal.
18260 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
18262 * dvi/devdvi/Makefile: Use the -k option with S and MI.
18264 * pic/pic.y: If there is a label, or an nth construction before
18265 the first `.' in the argument to `with', ignore it and generate a
18267 * pic/lex.c (lex_warning): New function.
18269 * tbl/table.c (table::init_output): In section keep and release
18270 macro, use 0 indent when diverting and the correct indent when
18273 * troff/input.c (interpolate_number_format): Do not interpolate
18274 anything if the number register is not defined.
18276 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
18278 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
18280 * ps/devps/prologue (PICTURE): Set components of graphics state to
18281 their default values.
18283 * ps/devps/text.enc: Add trademark
18284 * ps/devps/textmap: Add names for club, spade, heart, diamond,
18285 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
18286 * ps/devps/symbolchars: Add names for summation and product.
18288 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
18289 suchthat. Add pp. Add upper-case letters.
18291 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
18292 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
18295 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
18296 rA (right angle bracket) to ra. Introduce names for double-headed
18297 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
18298 * ps/devps/textmap: Likewise for ps device.
18299 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
18300 * tty/devascii/R.proto: Rename lA to la and rA to ra.
18301 * tty/devascii/R.proto: Likewise.
18302 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
18304 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
18306 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
18308 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
18311 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
18313 * troff/div.c (when_request): Use symbol::is_null rather than
18314 has_arg to determine whether we have an argument.
18315 (change_trap): Remove the trap if we get an invalid number. Give
18316 an error if we don't get at least the macro name.
18317 (diversion_trap): Remove trap if we get an invalid name or number.
18319 * troff/env.c (environment_switch): Pop if we get an invalid
18320 symbol or numeric expression.
18322 * troff/input.c (do_define_macro): If EOF is encoutered while
18323 defining the macro, do tok.next() before returning.
18325 * troff/token.h (has_arg): Move definition from here, to ...
18326 * troff/input.c (has_arg): ... here
18328 * troff/env.c (space_size): Do nothing if we get an invalid argument.
18329 * troff/input.c (shift): Likewise.
18331 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
18334 * pic/troff.c (troff_output::start_picture): Comment out calls to
18337 * eqn/main.c (do_file): Subtract 1 from current_lineno if
18338 interpret_lf_args succeeds.
18340 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
18341 \\. This avoids problems with \$N.
18343 * groff.sh: Pass -C to preprocessors.
18345 * lib/lf.c (interpret_lf_args): Be more flexible.
18347 * tbl/main.c (main): Add -C option.
18348 (table_input::get): Do not recognize TE if followed by character
18349 other than a space or newline unless -C option given.
18350 (process_input_file): Likewise for lf, TS.
18351 (process_data): Likewise for lf in text blocks.
18353 * eqn/main.c (main): Add -C option.
18354 (do_file): Don't recognize EQ, EN or lf if followed by character
18355 other than space or newline unless -C option given.
18356 * eqn/lex.c (file_input::read_line): Similarily.
18357 * eqn/eqn.h: Declare compatible_flag.
18359 * etc/soelim.c (main): Add -C option.
18360 (interpret_lf_args): Use version in libgroff.
18363 * pic/main.c (main): Add -C option, which sets compatible_flag.
18364 (top_input::get), (top_input::peek): If -C option not given,
18365 do not recognize .PS/.PE/.PF/.lf if followed by a character
18366 other than space or newline.
18367 * pic/lex.c (file_input::read_line): Similarily.
18368 * pic/pic.h: Add declaration of compatible_flag.
18370 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
18372 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
18374 * troff/node.c, troff/node.h: Add `asciify' methods to classes
18375 derived from node. New class space_char_hmotion_node.
18376 * troff/input.c (asciify_macro): New function.
18377 * troff/input.c (init_input_requests): New request `asciify' bound
18379 * macros/mm.diff: New file.
18380 * Makefile: In install.mm target use `patch' to apply
18383 * troff/input.c (macro::print_size): Just print the size in bytes.
18385 * troff/div.c (return_request): Correct the argument
18388 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
18390 * troff/node.h (class composite_node): Add sz member.
18391 * troff/node.c (composite_node::size): Return sz.
18392 * troff/input.c (macro_to_node): Use the initial size in the
18393 environment as the size of the composite_node.
18395 * troff/node.c (node::zero_width_tprint): Provide a reasonable
18398 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
18400 * troff/div.c (change_trap): If we get a bad number expression,
18403 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
18405 * lib/matherr.c (matherr): Define this only if math.h defines
18408 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
18410 * troff/div.c (macro_diversion::distance_to_next_trap): If there
18411 no diversion trap return vunits(INT_MAX - vresolution).
18413 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
18415 * troff/input.c (do_zero_width): New implementation that doesn't
18416 use a temporary environment. Use instead:
18417 (token::add_to_node_list): New function.
18418 * troff/env.c (environment::get_prev_char_height),
18419 (environment::get_prev_char_height),
18420 (environment::get_prev_char_skew): New functions.
18421 (environment::get_prev_char): New function.
18422 (environment::get_prev_char_width): Change to use get_prev_char.
18423 (init_env_request): Implement new registers .cht, .cdp, .csk.
18424 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18425 \Z being processed in a separate environment.
18427 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
18429 * tbl/table.c: Removed TABLE_BOTTOM_REG.
18431 * tbl/table.c (table::init_output): In the section release macro,
18432 give a warning message if the section won't fit on one page.
18434 * tbl/table.c (table::do_top): Emit table keep only if table is
18436 (table::do_bottom): Likewise for table release.
18437 (table::table), (table::add_vertical_rule): Remove reference to
18439 * tbl/table.h: Remove keep member.
18441 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18442 SECTION_RELEASE_MACRO, if there's not enough space before the next
18443 trap to output the diversion, call T# ourselves, set
18444 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18445 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
18446 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
18447 vertical position and return to it before turning traps on again.
18449 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
18451 * troff/node.c, troff/node.h: In classes derived from node,
18452 replace prev_char_width method by last_char_node method.
18453 * troff/env.c (environment::get_prev_char_width): Use
18454 node::last_char_node rather than node::get_prev_char_width.
18456 * Makefile: Added comment about -fno-inline on 68030-based
18459 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18460 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18461 expressions using sizeof to int.
18462 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18464 * macros/tmac.e (TS): Don't move @f back past the current
18467 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
18469 * ps/ps.c (main): Buffer stderr.
18470 * dvi/dvi.c (main): Likewise.
18471 * tty/tty.c (main): Likewise.
18473 * ps/ps.c (ps_printer::do_import): Improve error handling.
18475 * troff/input.c (abort_request): Use asciify.
18477 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18478 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18479 type of first argument int rather than char. This works around a
18480 bug on the 68030 based Apollo using g++ 1.37.1.
18482 * tbl/table.h (class table): Add `keep' member.
18483 * tbl/table.c (table::table): Initialize `keep'.
18484 (table::add_vertical_rule): Set `keep' to 1.
18485 (table::do_top): Only emit table keep macro is `keep' is non-zero.
18486 (table::do_bottom): Likewise for table release macro.
18487 (table::do_row): Emit section keep macro even if the row is 0.
18489 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
18491 * macros/tmac.e (@C): Preserve the font family across the change
18494 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
18496 * lib/font.c: Initialize font::hor and font::vert to 1.
18497 (font::load_desc): Check the values of font::hor and font::vert.
18499 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18500 be included in a C compilation.
18501 (iftoa): Use INT_DIGITS. Include lib.h.
18503 (as_string): Likewise.
18504 * tbl/table.c: Removed definition of INT_DIGITS.
18505 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18506 * troff/input.c (input_input_requests): Likewise.
18507 * ps/ps.c (make_encoding_name): Likewise.
18508 (ps_printer::set_style): Likewise.
18509 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18511 * tty/devascii/R.proto: Map fm onto '.
18512 * tty/devlatin1/R.proto: Likewise.
18514 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
18516 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18517 argument to \w is at a different input level.
18519 * tbl/table.c (table::init_output): Define a new macro
18520 REPEATED_VPT_MACRO, like vpt but if in a diversion also
18521 transparently outputs itself.
18522 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18524 (table::do_row): Likewise.
18526 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18527 TRANSPARENT_STRING_NAME.
18529 * tbl/table.c (table::init_output): In the table release macro
18530 print an error message and don't produce any output if after
18531 issuing the need request the table still will not fit. Also
18532 remove the diversion after bringing it back.
18534 * tbl/table.c (table::init_output): Define a new macro
18535 REPEATED_MARK_MACRO, like mk but if in a diversion also
18536 transparently outputs itself.
18537 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18538 is necessary because .TH might not call .T#.
18539 (table::do_top): Likewise TOP_REG.
18540 (table::define_bottom_macro): If TOP_REG is no longer valid, use
18541 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18542 table header might contain just the two top rules.
18544 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
18546 * troff/div.c: Implement new request `ptr' to print all traps.
18548 * troff/env.c (init_env_requests): Implement `.tabs' reg with
18549 init_string_env_reg.
18550 * troff/env.c (class tab_reg): Deleted.
18552 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
18554 * troff/div.c: New number register .pn returns the number of the
18555 next page as set by the pn request.
18557 * macros/tmac.an: Redid headers and footers. Number each manual
18558 entry starting from 1 unless \nC is > 0, like Sun. Added an
18559 optional 5th argument to .TH which specifies the manual name and
18560 appears in the center of the header. Understand the X, P and D
18561 registers like Sun.
18563 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
18565 * troff/env.c (init_env_requests): New number register `.lt' to
18566 return the title length.
18568 * troff/node.h (class transparent_dummy_node): New class.
18569 * troff/node.c (class transparent_dummy_node): Provide member
18571 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18574 * troff/input.c (token::next): New escape sequence \).
18575 * troff/input.c (get_copy): Recognize \) in copy mode.
18577 * troff/input.c (input_stack::clear): New function.
18578 * troff/input.c (exit_request): Use input_stack::clear.
18580 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18581 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18583 * troff/env.c: Move set_page_character to input.c. Move
18584 page_character to input.c also.
18585 * troff/env.c (title): Split off the reading of the parts of the
18586 title into read_title_parts.
18587 * troff/input.c (read_title_parts): New function. Check the
18588 input_level when testing whether a token matches the delimiter.
18590 * troff/input.c (exit_request): New function.
18591 * troff/input.c (init_input_requests): Bind ex request to
18592 exit_request rather than exit_groff.
18594 * troff/input.c (exit_groff): Call tok.next() before
18595 process_input_stack().
18597 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
18599 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18600 * troff/env.h: ditto.
18601 * troff/input.c: ditto.
18603 * troff/env.c (environment::is_empty): Test pending_lines.
18605 * troff/env.c (environment::have_pending_lines): Removed.
18607 * troff/input.c: Add request to flush pending lines from the
18610 * troff/env.c, troff/env.h: Add automatic widow control feature.
18612 * troff/input.c (exit_groff): Do process_input_stack() after
18613 do_break() but before setting exit_flag to 2.
18615 * troff/input.c: Remove FLUSH_PENDING_LINES and
18616 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18617 environment after END_TRAP token seen, but only if there aren't
18618 any more traps still unfinished.
18619 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18621 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
18623 * troff/env.c: Rename the `retain_size' member of class
18624 pending_output_line to `no_fill'.
18626 * troff/env.c (title): When the line is output, make the
18627 retain_size argument !fill.
18629 * troff/node.h: Add `hyphenated' member to struct breakpoint.
18630 * troff/node.c (space_node::get_breakpoints),
18631 (dbreak_node::get_breakpoints): Fill this in.
18632 * troff/env.c: Allow specification of maximum number of
18633 consecutive hyphenated lines.
18635 * troff/env.c (environment::is_empty): Add test for !current_tab.
18637 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
18639 * troff/env.c (environment::hyphenate_line): Don't completely give
18640 up if the word is not to be hyphenated; continue so that breaks
18641 can be made at break_char_node's.
18643 * lib/lib.h: Only define INT_MAX if it's not already defined;
18644 undef INT_MIN if it's already defined.
18646 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18648 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18649 This works around a bug in AT&T C++ 2.0 used with an ANSI C
18652 * macros/tmac.an (an-header): Set no-space mode.
18654 * macros/tmac.an (TH): Start a new page if necessary.
18656 * Started using ChangeLog at version 0.4.
18659 version-control: never