1 2003-07-20 Werner LEMBERG <wl@gnu.org>
3 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
4 * configure, src/include/config.hin: Regenerated.
6 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
8 2003-07-19 Werner LEMBERG <wl@gnu.org>
10 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
12 2003-07-18 Werner LEMBERG <wl@gnu.org>
14 * *.man: Switch to non-compatibility mode temporarily if GNU
15 syntax extensions are used in the particular man page.
17 * PROBLEMS: Add solutions for SGR problems.
19 2003-07-17 Werner LEMBERG <wl@gnu.org>
21 Don't ignore grotty's command line options if \X'tty: sgr ...' is
22 used to change the drawing scheme.
24 * src/devives/grotty/tty.cpp (bold_flag_option,
25 underline_flag_option, italic_flag_option, reverse_flag_option,
26 bold_underline_mode_option): New global variables.
27 (update_options): New function.
28 (tty_printer::special): Call update_options.
29 (main): Don't set xxx_flag but xxx_flag_option, then call
32 2003-07-14 Werner LEMBERG <wl@gnu.org>
34 Make grotty emit proper Unicode box drawing characters for -Tutf8.
36 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
38 (hline_char, vline_char): New global variables.
39 (tty_printer::tty_printer): Initialize them.
40 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
41 horizontal and vertical lines.
42 (crossings): New global array.
43 (tty_printer::end_page): Use it to determine the proper crossing
46 2003-07-12 Werner LEMBERG <wl@gnu.org>
48 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
49 (HTMLDOCFILES): Revert to `pic.html'.
50 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
52 2003-07-11 Werner LEMBERG <wl@gnu.org>
54 * doc/pic.ms: Improve documentation of absolute coordinates.
55 Document absolute positioning of pictures.
57 * NEWS: Add new pic capability.
59 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
61 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
64 2003-07-07 Werner LEMBERG <wl@gnu.org>
66 Implement support for dashed and dotted ellipses in pic. Based on
67 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
69 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
70 common_output::dashed_ellipse, common_output::dotted_ellipse): New
71 functions. Ellipse arcs are approximated with circle arcs.
72 * src/preproc/pic/common.h (common_output): Updated.
73 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
75 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
77 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
79 2003-07-06 Werner LEMBERG <wl@gnu.org>
81 Make grotty work on platforms which have unsigned char as the
82 default for char. Based on a patch by Thomas Klausner
85 * src/devices/grotty/tty.cpp (schar): New typedef.
86 Updated calls to declare_ptable and implement_ptable.
87 (glyph): Use schar for back_color_idx and fore_color_idx.
88 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
89 (tty_printer::tty_color, tty_printer::tty_printer,
90 tty_printer::color_to_idx, tty_printer::put_color): Updated.
92 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
94 * src/roff/nroff/nroff.sh: Add option -d for completeness.
95 * src/roff/nroff/nroff.man: Updated.
97 2003-07-05 Werner LEMBERG <wl@gnu.org>
99 * NEWS, tmac/groff_www.man: Updated.
100 * doc/Makefile.sub: Updated.
102 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
104 Implement support for multiple HTML output files.
106 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
107 -j command line option.
109 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
111 (file): New fields `new_output_file', `require_links',
113 (file::file): Updated.
114 (files::set_file_name, files::set_links_required,
115 files::are_links_required, files::is_new_output_file,
116 files::file_name, files::next_file_name): New functions.
117 (header_desc): New fields `no_of_level_one_headings',
119 (header_desc::header_desc): Updated.
120 (header_desc::write_headings): Handle multiple files.
121 (html_printer::write_header): Save file name in which header occurs.
122 (html_printer::determine_header_level): Possibly split files on
124 (html_printer::do_links, html_printer::troff_tag): Updated.
125 (html_printer::insert_split_file, html_printer::do_job_name,
126 html_printer::emit_link, html_printer::write_navigation,
127 html_printer::do_file_components): New functions.
128 (html_printer::~html_printer): Handle multiple files.
129 (main): Handle command line option `-j'.
131 * src/devices/grohtml/grohtml.man: Updated.
133 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
136 * tmac/www.tmac (JOBNAME): New macro.
137 * tmac/s.tmac (SH-NO-TAG): New macro.
138 (@SH): Call SH-NO-TAG.
141 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
143 * tmac/groff_mdoc.man: Improve documentation of punctuation
146 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
148 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
150 2003-07-03 Werner LEMBERG <wl@gnu.org>
152 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
154 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
156 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
159 (Fn, Fo): Reduce indentation in synopsis.
161 * tmac/doc-common (doc-check-depth): New macro.
162 (doc-end-macro, Sh, Ss): Use it.
163 (Cd): Fix behaviour in synopsis.
164 (In): Make it parsed and callable.
165 If not in the synopsis, represent the C header file enclosed in
167 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
168 Use minus, not hyphen.
170 * tmc/groff_mdoc.man: Updated.
172 2003-07-01 Werner LEMBERG <wl@gnu.org>
174 Integrated grap2graph, contributed by Eric S. Raymond.
176 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
178 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
179 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
181 2003-07-01 Colin Watson <cjwatson@debian.org>
183 * src/xditview/*.c: Add prototypes, fix return types, add includes.
184 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
186 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
188 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
190 2003-06-31 Werner LEMBERG <wl@gnu.org>
192 * doc/Makefile.sub (CLEANADD): Remove all files created by
193 running `make groff.{pdf,dvi}'.
195 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
198 2003-06-30 Werner LEMBERG <wl@gnu.org>
200 * Makefile.in (SHELL): Define as @SHELL@.
201 (mkinstalldirs): Use $(SHELL).
202 (MDEFINES): Add $(SHELL).
203 * Makefile.comm (SHELL): Removed.
205 2003-06-29 Werner LEMBERG <wl@gnu.org>
207 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
208 The X11 documentation files use them.
209 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
211 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
213 * tmac/e.tmac (@C): Handle .ad also.
215 2003-06-12 Werner LEMBERG <wl@gnu.org>
217 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
219 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
220 Assign `n' even here. It is possible to construct a node
221 immediately following an escape character:
229 2003-06-10 Werner LEMBERG <wl@gnu.org>
231 * README.WIN32: Removed.
234 2003-06-07 Werner LEMBERG <wl@gnu.org>
236 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
238 2003-06-05 Werner LEMBERG <wl@gnu.org>
240 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
241 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
243 2003-06-03 Werner LEMBERG <wl@gnu.org>
245 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
246 is done by the calling function.
248 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
250 * tmac/X.tmac: Fix definition of `em'.
252 2003-05-22 Werner LEMBERG <wl@gnu.org>
254 * src/roff/troff/input.cc (return_macro_request): Fix detection of
257 2003-05-18 Werner LEMBERG <wl@gnu.org>
259 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
260 to make items work which consist only of a tag.
262 2003-05-17 Werner LEMBERG <wl@gnu.org>
264 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
265 aren't stretched in a tag (this can fail with unformatted boxes).
266 Instead, insert a break and go back one line.
268 2003-05-16 Werner LEMBERG <wl@gnu.org>
270 * src/roff/troff/input.cc (return_macro_request): If called with
271 argument pop macro twice. We need this to trace `return'.
273 * tmac/trace.tmac: Handle `return'.
276 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
279 2003-05-15 Larry Kollar <kollar@alltel.net>
281 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
282 registers `FPS', `FVS', and `FPD'.
284 2003-05-15 Werner LEMBERG <wl@gnu.org>
286 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
289 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
291 * tmac/groff_mdoc.man: Slight improvements.
293 2003-05-03 Werner LEMBERG <wl@gnu.org>
295 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
296 `doc-header-space' after header line if register `cR' is set.
298 2003-05-02 Werner LEMBERG <wl@gnu.org>
302 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
304 * tmac/doc-common (Nd): Use \[em].
306 2003-05-01 Werner LEMBERG <wl@gnu.org>
308 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
309 doc-footer-space): Initialize to 0.5i.
310 (doc-setup-page-layout): Don't set doc-header-space and
313 2003-04-30 Werner LEMBERG <wl@gnu.org>
315 * REVISION: Set to 1.
317 * doc/pic.ms: Document possible problems with `figname'.
319 2003-04-29 Werner LEMBERG <wl@gnu.org>
321 Version 1.19 released
322 =====================
324 * VERSION: Set to 1.19.
325 * REVISION: Set to 0.
326 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
328 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
329 Define charset as `US-ASCII' in html output.
331 * tmac/www.tmac (ULE): Add missing scaling indicator.
333 * win32-diffs: Removed.
335 2003-04-28 Werner LEMBERG <wl@gnu.org>
337 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
339 Document how to insert discardable whitespace with `.ss'.
341 2003-04-27 Werner LEMBERG <wl@gnu.org>
343 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
344 work with plain TeX also.
346 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
348 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
350 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
353 2003-04-24 Werner LEMBERG <wl@gnu.org>
355 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
356 vbox with positive height and zero depth if in TeX mode.
358 * NEWS: Document glyph name changes for grodvi and grolj4.
360 2003-04-23 Werner LEMBERG <wl@gnu.org>
362 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
365 2003-04-21 Werner LEMBERG <wl@gnu.org>
367 HP-UX 10.20 has `snprintf' but it isn't declared.
369 * configure.ac: Add declaration test for snprintf.
370 * configure: Regenerated.
371 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
372 * src/include/config.hin: Regenerated.
374 2003-04-19 Werner LEMBERG <wl@gnu.org>
376 Add keyword `figname' to pic, specifying the name of the picture
377 box in TeX mode. Based on a patch from William J Poser
378 <wjposer@unagi.cis.upenn.edu>.
380 * src/preproc/pic/pic.y: New token `FIGNAME'.
381 (macro_name): New rule of type <str>.
382 (placeless_element): Handle `FIGNAME'.
383 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
384 * src/preproc/pic/main.cpp (graphname): New global variable.
385 (do_picture): Initialize `graphname'.
386 * src/preproc/pic/pic.h: Updated.
387 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
390 (tex_output::text): Beautify output.
391 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
392 `shaded' and `outlined' unconditionally.
393 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
396 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
397 greater is necessary.
399 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
401 Add option -r to soelim to avoid emission of `.lf' lines.
402 Add option -t to produces TeX comment lines instead of `.lf' lines.
404 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
407 (main): Handle `-r' and `-t'.
408 (set_location): Handle `raw_flag' and `tex_flag'.
409 * src/preproc/soelim/soelim.man, NEWS: Updated.
411 2003-04-17 Werner LEMBERG <wl@gnu.org>
413 * tmac/hyphenex.sh: Replaced with...
414 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
417 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
418 if --quiet is used for the configure script.
419 * configure: Regenerated.
421 2003-04-16 Werner LEMBERG <wl@gnu.org>
423 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
424 Add `const' to second argument.
425 (html_printer::add_table_end): Add `const' to argument.
426 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
427 `const' to arguments.
428 * src/devices/grohtml/html-text.h: Updated.
430 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
431 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
434 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
435 cast for integer constant.
437 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
438 (writeNbytes): Add `const' to first argument.
439 (writeString): Add `const' to argument.
440 (char_buffer::can_see): Add `const' to third argument.
441 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
443 * src/preproc/html/pushback.h: Updated.
445 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
446 (include_path_append): Add `const' to argument.
449 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
451 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
452 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
454 (unicode_decompose_init::unicode_decompose_init): Updated.
455 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
457 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
458 * src/roff/troff/input.cc (process_startup_file): Add `const' to
461 * tmac/hyphenex.sh: Make script more portable by using a here
464 2003-04-15 Werner LEMBERG <wl@gnu.org>
466 Renamed all `*.cc' files to `*.cpp'.
467 Updated all configuration files, makefiles, and documentation.
469 2003-04-14 Werner LEMBERG <wl@gnu.org>
471 * tmac/hyphenex.sh: Slight improvements.
473 2003-04-13 Werner LEMBERG <wl@gnu.org>
475 * font/devascii/R.proto, font/devcp1037/R.proto,
476 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
477 character slots with unnamed glyphs.
479 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
480 (an-first): New global variable.
481 (an-header): Emit vertical space between multiple man pages.
483 2003-04-11 Werner LEMBERG <wl@gnu.org>
485 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
488 2003-04-10 Werner LEMBERG <wl@gnu.org>
492 2003-04-10 Bernd Warken <bwarken@mayn.de>
494 * doc/webpage.ms: Improved.
496 2003-04-09 Werner LEMBERG <wl@gnu.org>
498 Add register \n[.height] which returns the value of \H.
499 Add register \n[.slant] which returns the value of \S.
501 * src/roff/troff/env.cc (init_env_requests): Implement.
502 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
505 2003-04-08 Werner LEMBERG <wl@gnu.org>
507 * tmac/html.tmac: Move some of the data into html-end.tmac.
508 Remove most of the character translations for eqn since html fonts
509 now cover those characters.
511 * tmac/html-end.tmac: New file.
512 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
513 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
514 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
516 2003-04-07 Werner LEMBERG <wl@gnu.org>
518 * man/groff_out.man: Document negative values of `N' if -Thtml is
521 2003-04-06 Werner LEMBERG <wl@gnu.org>
523 * Makefile.comm (depend.temp): Check location of YTABC.
525 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
527 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
529 (groff_bin_path): Rename to GROFF_BIN_PATH.
530 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
531 * doc/Makefile.in (TROFFBIN): New variable for troff
533 (GROFFBIN): New variable for groff binary path.
534 (groff_bin_path): Rename to GROFF_BIN_PATH.
535 (TROFF): Use TROFFBIN.
536 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
537 * doc/Makefile.sub (GROFFBIN): New variable for groff
539 (groff_bin_path): Rename to GROFF_BIN_PATH.
540 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
542 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
544 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
545 * Makefile.dev (all): Depend on DEVSCRIPTS.
546 (install_dev): Likewise.
547 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
549 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
550 (DEVGENSCRIPTS): New variable to hold generated scripts.
552 2003-04-05 Werner LEMBERG <wl@gnu.org>
554 * src/libs/libdriver/input.cc (IntArray::operator[],
555 IntArray::get_data): Remove meaningless `const' in return value.
557 * README.CVS: New file.
559 2003-04-04 Werner LEMBERG <wl@gnu.org>
561 Check for stdint.h in C++, not in C.
563 * aclocal.m4 (GROFF_STDINT_H): New function,
564 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
566 * configure, src/include/config.hin: Regenerated.
567 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
570 Fix handling of in grohtml. To do this, troff emits `N'
571 with a negative value, representing the width of the unbreakable
572 space (only for -Thtml). grohtml then converts this back to
573 and uses the value of N as its width.
575 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
576 unbreakable_space_node::tprint): Emit `N-<width>'.
577 * src/include/printer.h (printer::set_numbered_char): Make it
579 Make members `font_table' and `nfonts' protected instead of private.
580 * src/devices/grohtml/post-html.cc
581 (html_printer::set_numbered_char): New member function.
584 * src/libs/libgroff/maxfilename.cc:
585 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
587 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
590 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
592 * man/roff.man: Small fixes.
594 2003-04-03 Werner LEMBERG <wl@gnu.org>
596 Make groff independent from locale's numeric settings.
598 * configure.ac: Check for `setlocale'.
599 * configure, src/include/config.hin: Regenerated.
601 * src/include/lib.h: Handle HAVE_SETLOCALE.
603 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
604 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
605 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
608 * doc/groff.texinfo: Change dir category to `Typesetting'.
609 (Man font macros): Mention that there is no space between arguments
612 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
613 (*printer::change_color, *printer::change_fill_color): Add missing
616 2003-04-02 Werner LEMBERG <wl@gnu.org>
618 * src/devices/grohtml/html-table.cc (html_table::emit_col,
619 html_table::is_gap): Compute table widths after converting border
620 positions to avoid rounding errors.
622 2003-04-01 Werner LEMBERG <wl@gnu.org>
624 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
625 `space_emitted' properly.
627 2003-03-31 Werner LEMBERG <wl@gnu.org>
629 * src/devices/grohtml/html-table.cc: Fix column width calculation.
630 (html_table::set_linelength): Don't add 1.
631 (html_table::add_indent): Don't subtract 1.
633 * tmac/html.tmac: Set default page offset to zero.
635 2003-03-30 Werner LEMBERG <wl@gnu.org>
637 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
639 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
640 unbreakable_space_node::tprint): New functions.
641 (troff_output_file): Make space_char_hmotion_mode::tprint and
642 unbreakable_space_node::tprint to friends.
643 * src/roff/troff/node.h: Updated.
645 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
646 in the HTML standard).
648 2003-03-29 Werner LEMBERG <wl@gnu.org>
650 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
651 Otherwise, the following code
660 produces `x a' instead of `xa'. This is a temporary fix, disabling
661 font changes in diversions for -Thtml.
663 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
665 (an-do-tag-html): Merge with ...
666 (an-do-tag): This macro.
667 Change code slightly to circumvent grohtml bug.
668 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
670 * src/devices/grohtml/html-table.cc (html_table::emit_col,
671 html_table::is_gap): Round `width' properly.
673 * tmac/html.tmac: Provide some default layout parameters for
676 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
679 2003-03-28 Werner LEMBERG <wl@gnu.org>
681 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
683 2003-03-27 Werner LEMBERG <wl@gnu.org>
685 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
688 2003-03-20 Werner LEMBERG <wl@gnu.org>
690 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
692 * doc/groff.texinfo: Updated.
694 2003-03-19 Werner LEMBERG <wl@gnu.org>
696 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
697 TOKEN_END_TRAP>: Reset `have_input'.
699 2003-03-18 Werner LEMBERG <wl@gnu.org>
701 * src/roff/groff/groff.man: Mention groff_trace man page.
703 2003-03-16 Werner LEMBERG <wl@gnu.org>
705 * Makefile.in (LIBEXT): New variable to indicate the file extension
706 of library files. Computed heuristically from $(OBJEXT).
707 (MDEFINES): Add $(LIBEXT).
708 * Makefile.lib, Makefile.comm: Use it.
710 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
711 overlong lines into smaller chunks.
712 (get_binary): New function.
714 * src/utils/pfbtops/pfbtops.man: Updated.
716 2003-03-15 Colin Watson <cjwatson@debian.org>
718 * src/roff/groff/groff.man: Minor syntax fix.
720 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
722 * src/devices/grops/ps.cc (ps_printer::media_set,
723 ps_printer::~ps_printer): Handle zero paper width and length.
725 2003-03-13 Werner LEMBERG <wl@gnu.org>
727 Add options -p and -l to grodvi.
729 * src/devices/grodvi/dvi.cc: Include paper.h.
730 (landscape_flag, user_paper_length, user_paper_width): New global
732 (dvi_printer::begin_page): Emit `papersize' special.
733 Set color after initialization of `cur_h' and `cur_v'.
734 (main): Add options `-l' and `-p'.
735 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
736 * src/devices/grodvi/grodvi.man, NEWS: Updated.
738 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
740 2003-03-12 Werner LEMBERG <wl@gnu.org>
742 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
743 * man/groff_tmac.man: This man page.
744 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
747 * tmac/X.tmac: Don't load pspic.tmac.
749 2003-03-11 Werner LEMBERG <wl@gnu.org>
751 Make variable `pr' local to libdriver/input.cc. Based on a patch
752 by Bernd Warken <bwarken@mayn.de>.
754 * src/include/driver.h (pr): Removed.
756 * src/libs/libdriver/input.cc (pr): New global variable.
757 (do_file): Deallocate `pr'.
758 * src/libs/libdriver/printer.cc (pr): Removed.
760 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
761 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
762 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
763 (main): Don't delete `pr'.
765 2003-03-10 Werner LEMBERG <wl@gnu.org>
767 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
768 * tmac/papersize.tmac: New file.
769 * tmac/troffrc: Include `papersize.tmac'.
770 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
771 * tmac/an-old.tmac: Set LT to LL by default.
773 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
774 doc/groff.texinfo: Updated.
776 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
777 bug which caused all odd iso papers to have wrong dimensions.
779 * src/devices/grops/ps.cc (user_paper_width): New global variable.
780 (main) <'p'>: Set `user_paper_width' also.
781 (ps_printer::media_width, ps_printer::media_height): Use values
782 given with option `-p'.
784 2003-03-09 Werner LEMBERG <wl@gnu.org>
786 * src/include/nonposix.h: Provide default for SET_BINARY.
788 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
789 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
792 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
793 (main): Treat \r\n as \n.
795 2003-03-08 Werner LEMBERG <wl@gnu.org>
797 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
798 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
800 2003-03-07 Werner LEMBERG <wl@gnu.org>
802 Added support to access more than 256 glyphs in Type 1 fonts.
804 * src/devices/grops/ps.cc (subencoding): New structure.
805 (style): Add `sub' field.
807 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
808 Add `set_subencoding', `get_subfont' and `encode_subfont' member
811 (ps_printer::set_char): Use `set_subencoding'.
812 (make_subencoding_name): New function.
813 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
814 (ps_printer::~ps_printer): Emit subencoding definitions.
816 * src/devices/grops/psrm.cc (valid_input_table): New array to
817 properly support EBCDIC.
818 (white_space): Add `\f'.
819 (ps_get_line): Change first argument to be of type `string &'.
821 This allows to get lines of arbitrary length.
822 Use `valid_input_table'.
823 Remove warning about non-conforming PS line length. This seems
824 not to be of great importance -- for example, dvips don't emit
826 (PS_LINE_MAX): Removed.
827 (matches_comment): Change first argument to be of type `string &'.
829 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
831 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
832 %AGL_to_unicode, %default_ligatures): New hash tables.
833 Read all map entries.
834 Add unencoded characters.
835 Check for default ligatures if there are no `L' entries.
836 Print all kern entries.
837 Print all characters in charset.
838 * src/utils/afmtodit/afmtodit.man: Updated.
840 * font/devps/*: Regerated all fonts.
842 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
843 of characters, just use `.trin'. Otherwise the mapping depends
844 on the font encoding.
845 * tmac/ps.tmac: Add `fi' and `fl'.
846 Improve `Fi' and `Fl'.
847 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
848 * tmac/Xps.tmac: Fix `em'.
852 2003-03-04 Werner LEMBERG <wl@gnu.org>
854 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
857 2003-03-03 Werner LEMBERG <wl@gnu.org>
859 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
861 * font/devps/generate/textmap: Remove entry `similarequal'.
862 * font/devps/symbolmap: Updated.
864 2003-03-02 Werner LEMBERG <wl@gnu.org>
866 * src/libs/libgroff/font.cc (font::load): Fix error message for
869 * src/devices/grops/grops.man: Improve documentation of the -b
872 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
873 `ascii' and `cp1047'.
875 2003-03-01 Werner LEMBERG <wl@gnu.org>
877 Document composite glyphs and the `composite' request.
879 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
881 2003-02-28 Werner LEMBERG <wl@gnu.org>
883 * font/devdvi/generate/ec.map: Add some more Unicode entities.
884 * font/devdvi/*EC: Updated.
886 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
887 * tmac/latin1 (latin1-tr): Undo any previous mapping.
888 * tmac/troffrc: Load `composite.tmac'.
889 * tmac/Makefile.sub (NORMALFILES): Updated.
891 * doc/groff.texinfo (Input Encodings): New section.
894 2003-02-27 Werner LEMBERG <wl@gnu.org>
896 * doc/texinfo.tex: New version 2003-02-11.06.
898 * tmac/doc-common (Dt): Don't emit warning for unknown section.
899 * tmac/groff_mdoc.man: Fix description of `Dt'.
901 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
903 * font/devps/prologue.ps: Fix for included Postscript that does
904 a setpagedevice -- which is now safely ignored.
908 * src/devices/grops/ps.cc: Now sets the page size in the generated
909 document. This is done in two ways: Via a %%-comment for gv and
910 the like, and via a PageSize and setpagedevice for programs that
911 understands Postscript proper, like ps2pdf.
913 * src/devices/grops/ps.h: New broken-flag to avoid page size
914 definition, if required.
916 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
918 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
919 Not really necessary due to the fix in prologue.ps, but cleaner:
920 Such information does not belong in an .eps file.
922 * doc/Makefile.sub: See doc/Makefile.in.
924 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
926 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
927 instead of P1 since the latter is broken in some versions of netpbm.
928 * configure: Updated.
930 2003-02-26 Larry Kollar <kollar@alltel.net>
932 Make man pages more customizable.
934 * tmac/an-old.tmac (FT): New register holding footer distance from
936 (HF): New string holding the default heading font.
937 (TH): Handle registers `IN' and `SN' set on the command line.
939 (PT, BT): New strings to customize header and footer lines.
940 (an-header, an-footer): Use them.
942 * tmac/groff_man.man: Document changes.
944 * doc/groff.texinfo: Document man changes.
945 Document Ultrix extensions of man.
947 2003-02-26 Werner LEMBERG <wl@gnu.org>
949 * src/roff/troff/input.cc (do_width, do_if_request): Reset
950 `have_input' after changing back to old environment.
952 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
953 function up to be defined before first call. This is necessary to
954 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
956 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
957 the default font directory also. Based on a patch from James
958 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
959 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
960 * src/utils/afmtodit/afmtodit.man: Document it.
964 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
966 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
968 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
969 (GROFF_PNMTOPS_NOSETPAGE): New macro.
970 * configure.ac: Use it.
971 * configure: Regenerated.
972 * Makefile.in: Updated.
974 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
975 (CLEANADD): Add www.tmac-sed.
976 (pnmtops_nosetpage): Define default.
977 (install_data): Handle www.tmac-sed and substitute
979 (stamp-sed): Add www.tmac.
980 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
981 It now breaks URLs at suitable places.
982 (www:substring_ok): New register set by...
983 (www:@test_substring): New macro.
984 (www:error): New alias to www-error.
985 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
987 (URL): Use www:url_breaks.
988 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
989 (CDS, CDE): New macros.
991 2003-02-25 Werner LEMBERG <wl@gnu.org>
993 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
996 2003-02-24 Werner LEMBERG <wl@gnu.org>
998 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
999 can be negative also.
1001 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1003 (read_char_table): Avoid negative ascenders.
1004 (output_charset): Add cast.
1005 * font/devlj4/*: Regenerated.
1007 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1010 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1011 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1013 * font/devdvi/*: Regenerated.
1015 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
1016 normal width, while the previously used characters (U+2329 and
1017 U+232A) are classified as wide due to canonical equivalence with the
1018 CJK punctuation characters U+3008 and U+3009.
1020 * font/devutf8/R.proto: Updated.
1021 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1023 * man/groff_char.man: Simplify handling of table traps by
1024 introducing `start block' and `end block' macros.
1025 (Ns, Ne, 2s, 2e, Ds, De): New macros.
1026 (DL): Make it work with Unix troff also.
1027 Fix code values of `la' and `ra'.
1029 * tmac/dvi.tmac: Define `<>' for CW and CWI.
1031 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
1033 * src/devices/grohtml/post-html.cc (element_list::~element_list):
1034 New destructor, fixing a major memory leak.
1036 2003-02-22 Werner LEMBERG <wl@gnu.org>
1038 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1039 to be in conformance with Unicode 3.0 and newer.
1041 * font/devlj4/generate/text.map: Add `Eu'.
1042 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1043 * font/devlj4/S: Regenerated.
1045 * man/groff_char.man: Completely rewritten.
1047 * doc/groff.texinfo: Fix description of request and macro arguments.
1049 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
1053 * src/devices/grohtml/html-table.cc (html_table::~html_table):
1054 Deallocate `columns' list.
1055 * src/devices/grohtml/post-html.cc (char_block::~char_block):
1057 (text_glob::text_glob_html, text_glob::text_glob_special,
1058 text_glob::text_glob_line, text_glob::text_glob_auto_image,
1059 text_glob::text_glob_tag): Avoid memory leaks.
1060 (text_glob::remember_table): Free memory before reassigning.
1062 2003-02-19 Werner LEMBERG <wl@gnu.org>
1064 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1065 alias `hbar'), the Planck constant over two pi.
1067 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1068 `+e' for position 34.
1069 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1070 `u2662' and `u2661'.
1071 * font/devdvi/{MI,S}: Regenerated.
1072 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1073 * font/devlbp/*: Add `hbar' alias.
1074 * font/devlj4/generate/special.map: Ditto.
1075 * font/devlj4/S: Regenerated.
1076 * font/devps/generate/symbolchars: Add `+e'.
1077 * font/devps/generate/textmap: Fix PS name for `-h'.
1079 * font/devps/symbolmap: Regenerated.
1081 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1083 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1085 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1088 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1090 * tmac/tty-char.tmac: Add `+e'.
1092 2003-02-17 Werner LEMBERG <wl@gnu.org>
1094 Another round trying to really fix problems with `have_input'.
1096 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1097 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1099 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1100 handling if both foreground and background colors are default.
1102 * doc/groff.texinfo (Debugging): Document .lf differences to
1105 2003-02-16 Werner LEMBERG <wl@gnu.org>
1107 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1108 null-bytes in created string.
1110 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1111 alias_macro, lookup_request): Improve warning messages.
1113 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1115 Free `last_image_filename'.
1117 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1119 (imageList::createPage, imageList::createImage): Use `free', not
1121 (imageItem::~imageItem): Free `imageName'.
1122 (addRegDef): Use `strsave', not `strdup'.
1123 (get_resolution): Free `pathp'.
1125 2003-02-15 Werner LEMBERG <wl@gnu.org>
1127 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1130 2003-02-14 Werner LEMBERG <wl@gnu.org>
1132 Add memory management for colors to deallocate unnamed colors
1135 * src/include/color.h (color): New members `free_list' and `next'.
1136 New member functions `new' and `delete'.
1138 * src/libs/libgroff/color.cc: Implement it.
1140 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1141 for array size of new operator.
1143 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1144 redundant comparison.
1146 * src/roff/troff/input.cc (word_space_node::reread,
1147 hmotion_node::reread): Avoid warning about unused parameter.
1148 (reset_output_registers): Remove redundant parameter.
1149 (define_color): Undo change 2003-02-12.
1151 * src/roff/troff/reg.h: Updated.
1153 * src/roff/troff/node.cc (troff_output_file::really_print_line,
1154 output_file::put_filename, real_output_file::really_put_filename,
1155 ascii_output_file::really_print_line,
1156 break_char_node::get_hyphen_list): Avoid warning about unused
1158 (suppress_node::tprint): Updated.
1160 * configure.ac: Check declaration for rand() and srand().
1161 * configure: Regenerated.
1163 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1165 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1168 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1169 to avoid compiler warnings.
1171 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1174 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1176 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1178 Updated all callers.
1180 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1182 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1183 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1185 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1186 Parameter is unused.
1187 (html_printer::add_table_end): Define parameter conditionally.
1188 * src/devices/grohtml/output.cc (simple_output::special): Parameter
1191 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1192 (lbp_printer::set_char): Last parameter is unused.
1194 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1196 2003-02-13 Werner LEMBERG <wl@gnu.org>
1198 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1199 Make \D'f ...' move horizontally again for backwards compatibility.
1200 Replace it with \D'Fg ...' where appropriate to avoid dependency
1201 on horizontal resolution.
1203 * src/roff/troff/input.cc (do_get_long_name): New function.
1204 (get_long_name): Call it.
1206 (read_draw_node): Handle `\D'Fx ...' by calling ...
1207 (read_color_draw_node): New function.
1209 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1211 Pass it to `do_get_long_name' which is used instead of
1214 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1215 unnecessary value guard.
1216 (parse_D_command) <'f'>: Add horizontal shift.
1218 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1219 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1220 (FILL_MAX): Removed.
1222 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1225 2003-02-12 Werner LEMBERG <wl@gnu.org>
1227 * src/roff/troff/input.cc (do_name_test, do_expr_test,
1228 do_zero_width): Push `\n' if closing delimiter is missing.
1230 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1231 <'F'>: Make \F non-transparent at the beginning of line.
1232 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1233 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1236 (define_color): Free color in case of reassignment.
1238 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1239 @DefescListEnd): Use @Var, not @var.
1242 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1244 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1245 `shaded' and `outlined' arrays.
1246 (object_spec::object_spec): Initialize `shaded' and `outlined'.
1247 (graphic_object::set_fill_color, graphic_object::set_outline_color):
1249 (closed_object::set_fill_color): Ditto.
1250 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1252 (troff_output::reset_color): Use a_delete instead of free.
1253 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1255 2003-02-11 Werner LEMBERG <wl@gnu.org>
1257 * doc/groff.texinfo: Improve documentation of `ad'.
1258 Document that \D'f...' is dependent on the horizontal resolution.
1259 * man/groff_diff.man: Improve documentation of \D'f...'.
1261 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1262 compensating \h'...' for \D'f ...' since the latter no longer moves
1264 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1266 2003-02-10 Werner LEMBERG <wl@gnu.org>
1268 Improve error messages for `x F' (and `F') commands.
1270 * src/include/error.h: Add declaration for
1271 `current_source_filename'.
1272 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1273 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1274 parameter for source file string.
1275 Updated all callers.
1277 * src/libs/libdriver/input.cc: Add `current_source_filename'.
1278 (remember_source_filename): New function.
1279 (parse_x_command <'F'>, do_file <'F'>): Use it.
1281 2003-02-09 Werner LEMBERG <wl@gnu.org>
1283 Make grotty not emit warnings about unknown colors more than
1286 * src/devices/grotty/tty.cc: Include `ptable.h'.
1287 (TTY_MAX_COLORS): Removed.
1288 (DEFAULT_COLOR_IDX): Defined to -1.
1289 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1290 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1291 Change `tty_colors' to be a ptable.
1292 First arg of `put_color' is now `char'.
1293 New functions `make_rgb_string' and `tty_color'.
1294 (tty_printer::tty_printer): Use `tty_color'.
1295 (tty_printer::color_to_idx): Return value is now `char'.
1298 * src/include/color.h (color): Add `print_color' member function.
1299 * src/libs/libgroff/color.cc (color::print_color): Implement it.
1301 2003-02-08 Werner LEMBERG <wl@gnu.org>
1305 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1308 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1309 assume that value has been allocated with `new[]', thus use
1310 `a_delete' for deallocation.
1312 * src/libs/libdriver/input.cc (get_integer_arg,
1313 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1316 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1317 * src/libs/libgroff/nametoindex.cc
1318 (character_indexer::named_char_index): Use `new <type>[1]'.
1320 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1322 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1323 (split_text): Use `a_delete'.
1325 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1328 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1329 harmless memory leak.
1330 (hyphen_trie::read_patterns_file): Initialize `buf'.
1331 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1332 Initialize `current_fill_color'and `current_glyph_color'.
1333 * src/roff/troff/glyphuni.cc
1334 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1335 * src/roff/troff/uniuni.cc
1336 (unicode_decompose_init::unicode_decompose_init): Ditto.
1337 * src/roff/troff/uniglyph.cc
1338 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1340 2003-01-26 Werner LEMBERG <wl@gnu.org>
1342 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1343 `access' before calling `unlink'.
1344 (do_file): Handle __EMX__.
1346 * src/include/nonposix.h: Handle __EMX__.
1348 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1349 (fontpath,tmacpath): Use it.
1351 Sorted alphabetically.
1353 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1355 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1358 2003-01-27 Werner LEMBERG <wl@gnu.org>
1360 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1361 New files, copied from gnulib.
1362 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1363 * configure.ac: Updated.
1364 * configure: Regenerated.
1366 * src/include/config.hin: Regenerated.
1367 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1368 Don't define `strcasecmp' as `strcmp'.
1369 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1370 Dont define `strncasecmp' as `strncmp'.
1372 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1375 2003-01-26 Werner LEMBERG <wl@gnu.org>
1377 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1380 2003-01-25 Werner LEMBERG <wl@gnu.org>
1382 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1384 2003-01-24 Werner LEMBERG <wl@gnu.org>
1386 Add US-english hyphenation exceptions (converted from Barbara
1387 Beeton's hyphenation exception log reports which appear irregularly
1390 * tmac/hyphen.us: Updated to latest version.
1391 * tmac/README: Updated.
1392 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1393 * tmac/troffrc: Load `hyphenex.us'.
1394 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1395 * doc/groff.texinfo: Updated.
1397 2003-01-23 Werner LEMBERG <wl@gnu.org>
1399 Improve hyphenation slightly. This is a first step in redesigning
1400 the hyphenation algorithm to make it more flexible (e.g. allowing
1401 kerns and ligatures between the hyphenation character and the
1402 following character -- while not used normally in English, other
1403 languages like German would benefit).
1405 * src/roff/troff/env.cc (environment::hyphenate_line): Use
1406 assertion instead of if-clause.
1407 Let `get_hyphen_list' return the number of involved characters in
1408 the hyphenation pattern instead of computing it directly (which
1409 often yields too small values).
1410 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1411 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1414 2003-01-22 Werner LEMBERG <wl@gnu.org>
1416 Fixing a bug which caused groff to hang if the hyphenation exception
1417 dictionary tried to grow.
1419 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1420 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1421 pointer to dictionary.
1423 2003-01-20 Werner LEMBERG <wl@gnu.org>
1425 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1426 negative left italic correction.
1427 * src/utils/afmtodit/afmtodit.man: Document it.
1429 * font/devps/generate/Makefile (RFLAG): Add `-m'.
1430 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1431 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1435 2003-01-16 Werner LEMBERG <wl@gnu.org>
1439 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
1441 * src/preproc/refer/refer.man: Mention REFER environment variable.
1443 2003-01-05 Werner LEMBERG <wl@gnu.org>
1445 Similar to \[is], the square root glyph (\[sr]) and the square root
1446 extension glyph (\[radicalex]) are now text symbols. The new
1447 mathematical versions are called \[sqrt] and \[sqrtex],
1450 * font/devX*/S: Regenerated.
1451 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1452 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1453 * font/devdvi/EX, font/devdvi/S: Regenerated.
1454 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1455 * font/devlj4/generate/special.map: Add `sqrt'.
1456 * font/devlj4/S: Regenerated.
1457 * font/devps/generate/textmap: Add `sqrt'.
1458 * font/devps/S, font/devps/symbolmap: Regenerated.
1460 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1461 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1462 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1463 overlap horizontally.
1465 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1466 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1469 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1470 and `sqrtex' are overlapping glyphs.
1472 2003-01-04 Werner LEMBERG <wl@gnu.org>
1474 * font/devdvi/generate/texsy.map: Add `is'.
1475 * font/devps/symbolmap: Regenerated.
1476 * font/devdvi/*TC, MI, S: Regenerated.
1478 * tmac/dvi.tmac: Remove `is'.
1480 2003-01-03 Werner LEMBERG <wl@gnu.org>
1482 `is' is now a text symbol (only relevant for dvi). The math variant
1483 can be accessed with `integral'.
1485 * font/devX*/S: Regenerated.
1486 * font/devdvi/generate/texex.map: Remove `is'.
1487 * font/devdvi/EX: Updated.
1488 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1489 * font/devlj4/generate/special.map: Ditto.
1490 * font/devlj4/S: Regenerated.
1491 * font/devps/generate/textmap: Add `integral'.
1492 * font/devps/S: Regenerated.
1494 * tmac/dvi.tmac: Define `is'.
1496 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1498 * src/preproc/tbl/main.cc (process_format): Fix error message.
1500 2003-01-02 Werner LEMBERG <wl@gnu.org>
1502 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1503 * font/devps/textmap: Fix entries for `ne' and `nc'.
1504 * font/devps/symbolmap: Regenerated.
1506 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1507 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1508 `38', `58', `78', `-+', `|=', `nc', `ne'.
1510 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1511 Use `schar' for `aq'.
1512 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1513 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1514 * tmac/tty.tmac: Add `ne'.
1516 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1517 for fallback glyphs.
1519 2002-12-29 Werner LEMBERG <wl@gnu.org>
1523 * font/devX*/*: Regenerated.
1524 * font/devdvi/generate/ec.map: Remove `eq'.
1525 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1526 Assign `|=' to position 39.
1527 * font/devdvi/*EC, S: Regenerated.
1528 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1529 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1530 Assign `|=' to position 549.
1531 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1533 Add `uni2243' for `|='.
1535 * tmac/ec.tmac: Add `eq'.
1536 * tmac/dvi.tmac: Add `=~'.
1537 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1540 2002-12-21 Werner LEMBERG <wl@gnu.org>
1542 * font/devdvi/generate/tc.map: Remove `**'.
1543 * font/devdvi/*TC: Regenerated.
1544 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
1546 * font/devutf8/NOTES: Updated.
1548 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
1549 Don't give default parameter to `set_macro'.
1550 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
1551 instead of `set_macro'.
1552 (charinfo::setx_macro): Implement it.
1553 (charinfo::set_macro): Don't change `mode'.
1555 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
1556 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
1557 * tmac/dvi.tmac: Define `!=' with `.schar'.
1559 2002-12-20 Werner LEMBERG <wl@gnu.org>
1561 * font/devX*/S: Regenerated.
1562 * font/devdvi/generate/ec.map: Remove `pl'.
1563 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
1564 * font/devdvi/*{TC,EC}: Regenerated.
1565 * font/devhtml/R.proto: Add `-+'.
1566 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
1567 * font/devlbp/*: Remove `or'.
1568 * font/devlj4/generate/special.map: Remove `or'.
1569 * font/devlj4/S: Regenerated.
1570 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
1571 `seveneighths', `threeeighths'.
1573 Replace `minusplus' with `uni2213'.
1574 * font/devps/symbolmap: Regenerated.
1575 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
1578 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
1580 * src/roff/troff/node.cc (troff_output_file::put_char_width):
1581 Call glyph_color and fill_color even if tcommand_flag isn't set.
1582 (make_node, node::add_char): Check not ci->is_fallback but
1585 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
1586 * tmac/ec.tmac: Add .rchar entry for `f/'.
1587 Don't remove `12', `14', `34'.
1588 Define `pl' to be always roman.
1589 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
1590 Define `18', `38', `58', `78'.
1591 * tmac/tty.tmac: Add `-+'.
1592 * tmac/dvi.tmac: Define `f/'.
1593 (dvi-frac): Use `f/'.
1594 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
1595 Define `18', `38', `58', `78'.
1597 2002-12-15 Colin Watson <cjwatson@debian.org>
1599 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
1601 2002-12-10 Werner LEMBERG <wl@gnu.org>
1603 Add glyph `tno', a textual variant of `no'.
1605 * font/devX*/*: Regenerated.
1606 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
1607 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
1608 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
1609 * font/devdvi/*: Regenerated.
1610 * font/devlbp/*: Add `tno'.
1611 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
1612 * font/devlj4/*: Regenerated.
1613 * font/devps/generate/textmap: Replace `no' with `tno'.
1614 * font/devps/generate/symbolchars: Add `no'.
1615 * font/devps/*: Regenerated.
1617 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
1619 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
1620 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
1624 * tmac/dvi.tmac: Replace most `\\' with `\E'.
1625 Add definition for `sd'.
1626 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
1628 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
1630 2002-12-08 Werner LEMBERG <wl@gnu.org>
1632 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
1633 mode to avoid rounding errors.
1634 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
1636 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
1637 src/roff/troff/troff.man: Improve documentation of -T.
1639 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
1641 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
1642 (run_pipeline) [_WIN32]: Provide working function without `fork'.
1644 2002-12-06 Werner LEMBERG <wl@gnu.org>
1646 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
1647 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
1648 Scaling Euro.sansserif glyphs down to have the same height as
1650 Removed unnecessary points; added some extrema.
1652 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1655 2002-12-04 Werner LEMBERG <wl@gnu.org>
1657 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
1658 and `Euro.symbol.bold.slanted'.
1659 Improve some glyph offsets and widths.
1660 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1662 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
1664 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
1667 * tmac/europs.tmac: Updated to new glyph indices.
1668 Use Euro.symbol for font familiy `A'.
1670 * doc/groff.texinfo: Minor improvements.
1672 2002-12-02 Werner LEMBERG <wl@gnu.org>
1674 * font/devdvi/generate.tc.map: s/%O/%0/.
1675 * font/devdvi/*TC: Regenerated.
1677 * src/roff/troff/div.cc (init_div_requests): Sorted.
1679 * tmac/dvi.tmac: Remove `Ye'.
1680 * tmac/ec.tmac: Remove `Ye'.
1681 Add .rchar entry for `de'.
1683 * man/groff.man, man/groff_diff.man: Document register `.pe'.
1684 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
1687 2002-11-30 Werner LEMBERG <wl@gnu.org>
1689 Add PS font for various Euro glyphs.
1691 * font/devps/generate/freeeuro.sfd: New master font file for
1693 * font/devps/generate/sfdtopfa.pe: New conversion script for
1695 * font/devps/generate/Makefile (FONTS): Add `EURO'.
1696 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
1697 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
1699 * font/devps/EURO: Generated from `freeeuro.afm'.
1700 * font/devps/download: Add `freeuro.pfa'.
1701 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
1704 * tmac/europs.tmac: New file.
1705 * tmac/ps.tmac: Include `europs.tmac'.
1706 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
1708 2002-11-29 Werner LEMBERG <wl@gnu.org>
1710 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
1711 * font/devdvi/S: Regenerated.
1712 * font/devhtml/R.proto: Fix `CR' and `ci'.
1714 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
1716 * font/devps/symbolmap: Regenerated.
1717 * font/devutf8/R.proto: Fix `CR' and `ci'.
1719 * font/devutf8/NOTES: Updated.
1721 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
1724 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1726 * tmac/dvi.tmac: Add `lh' and `rh'.
1727 * tmac/Xps.tmac: Fix `lh' and `rh'.
1728 * tmac/X.tmac: Add `OK'.
1729 * tmac/lj4.tmac: Ditto.
1731 2002-11-24 Werner LEMBERG <wl@gnu.org>
1733 * font/devX*/S: Regenerated.
1734 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
1735 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
1736 * font/devdvi/generate/texsy.map: Remove `or' glyph.
1737 * font/devdvi/S: Regenerated.
1738 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
1739 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
1740 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
1741 `bracketleftbt', `bracketrighttp', `bracketrightex',
1742 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
1743 `braceex', `braceleftex', `bracerightex', `bracerighttp',
1744 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
1746 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
1747 * font/devutf8/NOTES: Updated.
1748 * font/devlj4/generate/special.map: Add glyph `braceex'.
1749 * font/devlj4/S: Regenerated.
1751 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
1753 2002-11-14 Werner LEMBERG <wl@gnu.org>
1755 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
1758 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1760 * doc/texinfo.tex: New version from texinfo 4.3.
1761 * doc/groff.texinfo: Updated for texinfo 4.3.
1762 Use @tie{} where appropriate.
1763 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
1764 * font/devdvi/generate/tc.map: Remove `rn'.
1765 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
1766 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
1768 * font/devX100/*, font/devX100-12/*, font/devX75/*,
1769 font/devX75-12/*: Regenerated.
1771 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
1772 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
1773 Improve definition of `an'.
1774 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
1776 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
1777 * tmac/X.tmac: Add definition for `or'.
1778 * tmac/Xps.tmac: Undo change 2002-11-05.
1779 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
1781 2002-11-11 Werner LEMBERG <wl@gnu.org>
1783 * src/roff/troff/node.cc (troff_output_file::put_char): Always
1786 2002-11-10 Werner LEMBERG <wl@gnu.org>
1788 Added three new requests `schar', `fschar', and `rfschar'. `schar'
1789 defines a glyph which is searched after the check for fonts declared
1790 with `.special' (and before the check for all mounted special
1791 fonts). `fschar' defines a glyph for a particular font which is
1792 searched after the check for fonts declared with `.fspecial' (and
1793 before the check for fonts declared with `.special'). `rfschar'
1794 removes glyphs defined with `fschar'.
1796 * src/roff/troff/token.h (char_mode): New enum.
1797 Declare do_define_character.
1798 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
1800 (charinfo::is_fallback): Updated.
1801 (charinfo::is_special): New method.
1802 * src/roff/troff/input.cc (do_define_character): Add and use
1803 optional second parameter used as a prefix for font-specific glyph
1805 (define_character, define_fallback_character): Updated.
1806 (define_special_character): New function.
1807 (init_input_requests): Add `schar'.
1808 (charinfo::charinfo, charinfo::set_macro): Updated.
1809 * src/roff/troff/node.cc: Include `stringclass.h'.
1810 (make_glyph_node): Handle special glyphs defined with `.schar' and
1812 (define_font_special_character, remove_font_special_character): New
1814 (init_node_requests): Sorted.
1815 Add `fschar' and `rfschar'.
1816 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1817 Document new requests.
1819 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
1820 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
1822 2002-11-08 Werner LEMBERG <wl@gnu.org>
1824 Added new font `SC' (cmtex10) to devdvi.
1826 * devdvi/generate/Makefile (FONTS): Add `SC'.
1828 * devdvi/generate/textex.map: New map file for cmtex.
1830 * devdvi/Makefile.sub (DEVFILES): Updated.
1831 * tmac/dvi.tmac: Add fspecial entries for SC.
1832 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
1833 found before `S' since the font position of `SC' is lower due to the
1834 gaps in DESC's `font' line.
1835 * tmac/ec.tmac: Add a `special' call.
1838 * font/devhtml/R.proto: Remove double entry for `ti'.
1839 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
1840 * tmac/tty-char.tmac: Remove entry for `bq'.
1841 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
1842 * tmac/ec.tmac: Don't remove `aq' glyph.
1843 * tmac/X.tmac: Fix entry for `em'.
1844 Add entries for `fo' and `fc'.
1845 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
1847 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
1848 documentation of `special' and `fspecial' requests.
1850 2002-11-05 Werner LEMBERG <wl@gnu.org>
1852 * font/devascii/R.proto, font/devcp1047/R.proto,
1853 font/devlatin1/R.proto: Remove entry for `.i'.
1854 * font/devdvi/generate/textt.map: Add entry for `ad'.
1855 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
1856 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
1857 We need this for getting kerning values to compose `/l' and `/L'.
1858 * font/devdvi: Regenerated font definition files for CM fonts.
1859 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
1860 * font/devutf8/R.proto: Ditto.
1861 Remove double entry for `ti'.
1863 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
1864 for (groff) ligatures, `la', and `ra'.
1865 Add "'C", "'c", `IJ', and `ij'.
1866 Remove double entry for `ti'.
1867 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
1869 Add "'C", "'c", `IJ', and `ij'.
1870 Fix entries for (groff) ligatures, `la', and `ra'.
1872 * tmac/ps.tmac (ps-achar): New macro.
1873 Define "'c" and "'C".
1874 * tmac/tty.tmac: Add entry for `.i'.
1875 * tmac/X.tmac (X-achar): New macro.
1876 Define "'c", "'C", and `:Y'.
1877 Add entries for `IJ' and `ij'.
1878 * tmac/Xps.tmac (Xps-achar): New macro.
1879 Define "'c" and "'C".
1880 Add entries for `IJ' and `ij'.
1881 * tmac/lbp.tmac (lbp-achar): New macro.
1882 Add fallback characters for all groff ligatures and many other
1884 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
1885 Add entries for `/l' and `/L'.
1886 Define "'c" and "'C".
1887 Add entries for `IJ' and `ij'.
1889 2002-11-02 Larry Kollar <kollar@alltel.net>
1891 * PROBLEMS: Document how to solve Mac OS X compilation problems.
1893 2002-11-02 Werner LEMBERG <wl@gnu.org>
1895 Adding support for composite glyphs: \[xxx yyy ...] and the
1896 `composite' request.
1898 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
1899 to Unicode-based glyph names.
1900 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
1901 glyph names to groff glyph names.
1902 * src/roff/troff/uniuni.cc: New file for canonically decomposing
1903 Unicode-based glyph names.
1904 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
1905 for handling Unicode glyph names.
1906 * src/roff/troff/input.cc: Include unicode.h.
1907 (composite_glyph_name): New function.
1908 (token::next) <'['>: Handle Unicode glyph names and composite
1910 (composite_dictionary): New dictionary for the `composite' request.
1911 (composite_request): Implement `composite' request.
1912 (init_input_requests): Add `composite'.
1913 Alphabetically sorted.
1914 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
1916 (init_env_requests): Alphabetically sorted.
1917 Removed `tas' and `tar' (already commented out).
1918 * src/roff/troff/Makefile.sub: Updated.
1920 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
1922 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
1925 2002-10-29 Werner LEMBERG <wl@gnu.org>
1927 Fix computation of .trunc register. Additionally, its value (and
1928 the value of the .ne register) is now always set before entering the
1931 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
1932 `needed_space' before calling `space'.
1933 (top_level_diversion::space): Remove special code for 'sp before the
1935 Call `begin_page' with the discarded space as a parameter.
1936 (top_level_diversion::begin_page): Add optional parameter to set
1938 * src/roff/troff/div.h: Updated.
1940 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
1943 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
1944 (LP): Remove superfluous call to `br'.
1945 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
1946 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
1948 2002-10-26 Werner LEMBERG <wl@gnu.org>
1950 * tmac/doc-ditroff: Remove useless switch/variable -rC.
1951 (doc-setup-header): Don't set page register `%'.
1952 * tmac/doc-nroff: Remove variable `C'.
1953 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
1954 (doc-setup-header): Don't set page register `%'.
1956 * tmac/doc-common (doc-header): Call `ns'.
1957 (doc-paragraph): Protect .sp with .br so that it survives traps
1958 possibly set by the user.
1959 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
1961 * tmac/doc*: Replace ' with . for consistency if no effect.
1963 2002-10-26 Werner LEMBERG <wl@gnu.org>
1965 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
1966 so that it survives traps possibly set by the user.
1968 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
1969 (troff_output_file::set_font): Call flush_tbuf if necessary.
1970 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
1971 flush_tbuf and do_motion only if necessary.
1972 (troff_output_file::start_special,
1973 troff_output_file::put_char_width, troff_output_file::put_char,
1974 troff_output_file::draw): Updated.
1975 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1976 vmotion_node::tprint): Undo change 2002-10-23.
1978 2002-10-25 Werner LEMBERG <wl@gnu.org>
1980 * tmac/www.tmac (DC): Fix case of overlapping images.
1982 2002-10-23 Werner LEMBERG <wl@gnu.org>
1984 * src/roff/troff/node.cc (troff_output_file::fill_color,
1985 troff_output_file::glyph_color): Set current color before testing
1987 (troff_output_file::put_char_width, troff_output_file::put_char,
1988 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
1990 (troff_output_file::file_color, troff_output_file::glyph_color):
1992 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
1993 vmotion_node::tprint): Move first, then call fill_color.
1995 2002-10-20 Werner LEMBERG <wl@gnu.org>
1997 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
1998 possible to use multiple main macro packages.
2000 2002-10-19 Werner LEMBERG <wl@gnu.org>
2002 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2003 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2004 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2006 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2007 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2009 2002-10-16 Werner LEMBERG <wl@gnu.org>
2011 * NEWS, doc/webpage.ms: Updated.
2013 2002-10-14 Werner LEMBERG <wl@gnu.org>
2015 * src/roff/troff/node.cc (troff_output_file::put_char_width,
2016 troff_output_file::put_char, troff_output_file::fill_color,
2017 troff_output_file::glyph_color): Handle case where color pointer
2020 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
2022 Add the new -r option to grotty. It is similar to the -i option
2023 except it tells grotty(1) to use the "reverse video" attribute to
2024 render italic fonts.
2026 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2027 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2028 (tty_printer::make_underline, tty_printer::put_color,
2029 tty_printer::end_page): Use it.
2030 (main): Add -r switch.
2032 * src/devices/grotty/grotty.man: Document it.
2034 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
2036 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2037 cast to `unsigned char' to properly read patterns with 8bit
2040 2002-10-08 Werner LEMBERG <wl@gnu.org>
2042 * REVISION: Increased to 2.
2044 Version 1.18.1 released
2045 =======================
2047 2002-10-08 Werner LEMBERG <wl@gnu.org>
2049 * doc/webpage.ms, NEWS: Updated.
2051 2002-10-07 Werner LEMBERG <wl@gnu.org>
2053 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2054 suppress additional whitespace after the header.
2056 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2059 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2061 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
2063 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2064 (Dt): Use it to improve language localization (especially Russian
2067 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
2069 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2070 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2072 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2074 Call `picurve' for BSPLINE.
2075 (HGPrintElt): Handle BSPLINE.
2076 * src/preproc/grn/README: Document it.
2078 2002-10-03 Werner LEMBERG <wl@gnu.org>
2080 * src/roff/troff/node.cc (break_char_node::col): New variable.
2081 Updated constructor.
2082 (space_node::tprint, word_space_node::tprint): Call `fill_color'
2084 (space_node::space_node): Remove assertion.
2085 (break_char_node::add_self): Pass color argument to space node.
2086 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2088 * src/roff/troff/env.cc (environment::do_break,
2089 environment::add_padding): Ditto.
2091 2002-10-02 Werner LEMBERG <wl@gnu.org>
2093 Redesigning color support in troff. Colors are no longer
2094 represented as separate nodes but are now part of glyph nodes and
2095 friends. This fixes the current formatting misbehaviour due to the
2096 changes introduced on 2002-09-20. Some extra code is necessary for
2097 proper grotty support: Without adding color variables to
2098 space-related nodes, the background color would be changed too late.
2100 * src/roff/troff/node.h, src/roff/troff/node.cc:
2101 s/current_pagecolor/current_fill_color/.
2102 s/current_glyphcolor/current_glyph_color/.
2103 (glyph_color_node, fill_color_node): Removed.
2104 (node::get_glyph_color, node::get_fill_color): New virtual member
2106 (space_node::col): New variable.
2107 Updated constructors of space_node and derived classes accordingly.
2108 (hmotion_node::col): New variable.
2109 Updated constructors of hmotion_node and space_char_hmotion_node
2111 (vmotion_node::col): New variable.
2112 Updated constructor accordingly.
2113 (draw_node::gcol, draw_node::fcol): New variables.
2114 Updated constructor accordingly.
2115 (special_node::gcol, special_node::fcol): New variables.
2116 Updated constructors accordingly.
2117 (troff_output_file::put_char, troff_output_file::put_charwidth,
2118 troff_output_file::draw): Set glyph and fill color.
2119 (troff_output_file::start_special): Set glyph and fill color.
2120 Always set current font.
2121 (troff_output_file::fill_color, troff_output_file::glyph_color):
2122 Don't call `do_motion'.
2123 (glyph_node::gcol, glyph_node::fcol): New variables.
2124 Updated constructors of glyph_node and ligature_node accordingly.
2125 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2127 (glyph_node::merge_glyph_node,
2128 kern_pair_node::add_discretionary_hyphen,
2129 node::add_discretionary_hyphen): Updated.
2130 (break_char_node::merge_self): Updated.
2131 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2132 vmotion_node::tprint): Handle color.
2133 (make_glyph_node, make_node, node::add_char): Updated.
2135 * src/roff/troff/env.cc (environment::space_newline,
2136 environment::space, environment::output_line, environment::do_break,
2137 environment::make_tab_node, environment::add_padding, title):
2139 (environment_switch, environment_copy): Don't add color nodes.
2141 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2143 (token::next): Updated.
2144 \m and \M now are as transparent as \s.
2145 (process_input_stack, token::add_to_node_list, token::process,
2146 read_draw_node): Updated.
2147 (charinfo_to_node_list): Don't add color nodes.
2149 * doc/groff.texinfo: Updated.
2151 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
2153 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2156 2002-09-27 Colin Watson <cjwatson@debian.org>
2158 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2160 2002-09-23 Werner LEMBERG <wl@gnu.org>
2162 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2164 (DEFAULT_LINEWIDTH_FACTOR): New macro.
2165 (linewidth_factor): New global variable.
2166 (lbp_printer::set_line_thickness): Fix case for size < 0, using
2168 (long_options): Add -w/--linewidth option.
2170 (main): Handle -w option to set linewidth_factor.
2171 (lbp_printer::lbp_printer): Initialize req_linethickness, not
2174 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2176 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
2178 Fixed a bug in the line thickness setting code.
2180 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2182 (lbp_printer::set_line_thickness): Pass environment as second
2184 Implement it actually.
2185 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2186 and `set_line_thickness, depending on the current font size.
2188 2002-09-21 Werner LEMBERG <wl@gnu.org>
2190 Some Debian patches.
2192 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2193 * src/roff/troff/node.cc (bracket_node::copy): Initialize
2196 2002-09-20 Werner LEMBERG <wl@gnu.org>
2198 * configure: Regenerated with autoconf 2.54.
2200 2002-09-20 Werner LEMBERG <wl@gnu.org>
2202 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2204 Rename cur_fill_color to fill_color.
2205 * src/roff/troff/env.cc: Updated.
2207 2002-09-20 Werner LEMBERG <wl@gnu.org>
2209 * src/roff/troff/env.cc (title): Copy color status after processing
2211 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2212 fill color nodes to reset colors properly.
2214 * tmac/www.tmac (DC): Fix color handling.
2216 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2217 * doc/groff.texinfo: Fixing documentation of `tl' request.
2218 * doc/webpage.ms: Updated.
2220 2002-09-19 Werner LEMBERG <wl@gnu.org>
2222 * src/roff/troff/env.cc (environent_switch, environment_copy):
2223 Emit glyph and fill color nodes to initialize colors properly.
2225 2002-09-17 Colin Watson <cjwatson@debian.org>
2227 * src/roff/troff/env.cc (environment::set_glyph_color,
2228 environment::set_fill_color): Fix typo which prevented \m[] work
2231 2002-09-17 Werner LEMBERG <wl@gnu.org>
2233 Add left and right italic correction to non-slanted PS fonts. This
2234 is an experimental feature to improve image rendering of grohtml.
2236 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2237 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2238 * font/devps/*: All non-slanted fonts regenerated.
2241 2002-09-16 Werner LEMBERG <wl@gnu.org>
2243 Add a site-specific font directory.
2245 * Makefile.in (localfontdir, legacyfontdir): New variables.
2246 (fontpath): Use them.
2247 (MDEFINES, uninstall_dirs): Updated.
2248 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2249 Remove `FONTPATH' and `MACROPATH'.
2251 * src/roff/troff/troff.man, NEWS: Updated.
2252 * doc/groff.texinfo (Font Directories): New section.
2255 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2256 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2257 src/preproc/grn/grn.man: Minor fixes.
2259 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2260 Remove unused variable.
2262 2002-09-11 Werner LEMBERG <wl@gnu.org>
2264 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2265 * man/groff_out.man: Fix documentation of 'N'.
2267 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
2269 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2270 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2272 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2273 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2274 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2275 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2276 PRE_TAG>: Call `begin' with `FALSE'.
2278 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2280 * src/libs/libgroff/string.cc (string::extract): Fix position of
2281 terminating null byte.
2283 2002-09-08 Werner LEMBERG <wl@gnu.org>
2285 Add global option `nospaces' to tbl so that leading and trailing
2286 spaces in data items are ignored.
2288 * src/libs/libgroff/string.cc (string::remove_spaces): New member
2289 function to remove leading and trailing spaces.
2290 * src/include/stringclass.h: Updated.
2292 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2294 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2296 Fix typo in error messages.
2297 (process_data): Implement `nospaces' option.
2298 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2300 2002-09-07 Werner LEMBERG <wl@gnu.org>
2302 * src/include/config.hin: Add `HAVE_ISATTY'.
2303 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2305 * src/libs/libgroff/tmpname.cc: Include `time.h'.
2306 * src/libs/libdriver/input.cc (Char): Add `operator==' and
2307 `operator!=' for `char'.
2308 * doc/groff.texinfo: Replace @ifnottex block for top node with
2311 2002-09-06 Werner LEMBERG <wl@gnu.org>
2313 * doc/Makefile.in (.texinfo.html): Add -I switch.
2314 * doc/groff.texinfo: Add @ifnottex block for top node to make
2315 translation to HTML work.
2317 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
2319 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2320 (get_papersize, determine_vertical_offset): Removed.
2321 (char_buffer::do_image): Always specify letter size.
2323 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2326 2002-09-05 Werner LEMBERG <wl@gnu.org>
2328 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2329 default indentation.
2331 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
2333 * src/preproc/html/pre-html.cc (imageList::createPage): Use
2335 (generateImages): Clean up push-back buffer.
2337 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2339 * doc/groff.texinfo: Minor fixes.
2341 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2343 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2344 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2346 (determine_vertical_offset): Use LETTER_LENGTH.
2347 (createPage): Moved to ...
2348 (imageList::createPage): This.
2349 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2350 (imageList::getMaxX): New function.
2351 (createImage): Moved to ...
2352 (imageList::createImage): This.
2353 (imageList::createImages): New function.
2354 (generateImages): Read `maxx' directly.
2356 (scanArguments): Don't specify `gsPaper' for `-o'.
2357 (makeTempFiles): Call `xtmpfile' with the last argument set to
2360 2002-08-24 Werner LEMBERG <wl@gnu.org>
2362 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2363 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2364 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2365 * src/preproc/html/pushback.cc: Include nonposix.h.
2366 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2369 2002-08-23 Werner LEMBERG <wl@gnu.org>
2371 Use $(OBJEXT) for the object file extension.
2373 * Makefile.comm (.SUFFIXES): Add .obj.
2374 (.cc.obj, .c.obj): New implicit rules.
2375 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2376 (MDEFINES): Add EXEEXT and OBJEXT.
2377 * */Makefile.sub: s/.o/.$(OBJEXT)/.
2379 2002-08-22 Werner LEMBERG <wl@gnu.org>
2381 * INSTALL: Mention texinfo 4.2 as a prerequisite.
2383 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2385 * src/devices/grohtml/post-html.cc (colType): Make enum global to
2387 (html_printer::update_min_max, html_printer::add_table_end): New
2389 (html_printer::lookahead_for_tables): Use them.
2390 Reset page offset correctly.
2391 (html_printer::~html_printer): Add creation of creator comment up.
2393 2002-08-20 Werner LEMBERG <wl@gnu.org>
2395 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2396 * man/groff_tmac.man: Fix typos.
2397 * man/groff_font.man: Minor reordering.
2398 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2399 * contrib/groffer/groffer.man: Fix typos.
2401 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2403 Avoid endless loops while scanning for tables.
2405 * src/devices/grohtml/post-html.cc (list::insert): Set
2407 (html_printer::next_horiz_pos): Add `text_glob' argument; update
2409 Return immediately if that argument is NULL.
2410 (html_printer::calc_nf): Don't test if `g' is NULL.
2411 (html_printer::lookahead_for_tables): Use
2412 `glyphs.move_right_get_data'.
2413 Don't test if `g' is NULL.
2415 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2417 A better fix, replacing fix 2002-08-15, for increasing SIZE.
2419 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2421 (char_block::char_block): Allocate `buffer'.
2422 (char_buffer::add_string): Use it.
2424 2002-08-15 Werner LEMBERG <wl@gnu.org>
2426 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2427 src/devices/grodvi/grodvi.man: Document default line thickness.
2429 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
2431 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2434 2002-08-14 Werner LEMBERG <wl@gnu.org>
2436 * doc/webpage.ms: Updated.
2438 2002-08-09 Werner LEMBERG <wl@gnu.org>
2440 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2443 2002-08-08 Aaron Campbell <aaron@monkey.org>
2445 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2448 2002-08-08 Werner LEMBERG <wl@gnu.org>
2450 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2453 Don't push back a space but a newline onto the stack.
2455 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
2457 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2460 * src/devices/grohtml/post-html.cc (html_printer::end_font,
2461 html_printer::start_font): Handle them.
2462 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2464 (html_text::do_bold): Don't reset italic and tt.
2465 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2466 * font/devhtml/DESC.proto: Add those fonts.
2467 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2469 2002-08-07 Werner LEMBERG <wl@gnu.org>
2471 * MORE.STUFF: Added gpresent.
2473 * tmac/trace.tmac: Show nesting level by a corresponding amount of
2474 whitespace before printing the logging message.
2476 2002-07-31 Colin Watson <cjwatson@debian.org>
2478 * src/devices/grohtml/html-table.cc (html_table::finish_row):
2479 Initialize `n' to zero. This fixes a segfault on ARM.
2481 2002-07-30 Werner LEMBERG <wl@gnu.org>
2483 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2485 2002-07-29 Werner LEMBERG <wl@gnu.org>
2487 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2490 2002-07-28 Colin Watson <cjwatson@debian.org>
2492 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2494 (html_printer::html_printer): Initialize `pointsize'.
2496 2002-07-26 Werner LEMBERG <wl@gnu.org>
2498 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2500 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2501 (gnu.eps): Add -rle switch to pnmtops.
2502 (distfiles): Add gnu.eps and gnu.png.
2504 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
2506 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2509 2002-07-24 Werner LEMBERG <wl@gnu.org>
2511 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2512 ' \+' but ' *' for sed.
2513 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2515 2002-07-23 Werner LEMBERG <wl@gnu.org>
2517 * doc/groff.texinfo: Document `papersize' keyword.
2518 * NEWS, man/groff_font.man: Updated.
2520 2002-07-23 Colin Watson <cjwatson@debian.org>
2522 Extend papersize keyword to accept more than a single entry. The
2523 first valid will be used.
2525 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2526 (font::scan_papersize): Really skip final newline.
2527 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2529 2002-07-23 Werner LEMBERG <wl@gnu.org>
2531 * configure.ac: Test for isatty.
2532 * configure: Regenerated.
2533 * src/include/posix.h: Check HAVE_ISATTY.
2534 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2535 * src/utils/lookbib/lookbib.cc: Include posix.h.
2536 Don't declare isatty.
2538 2002-07-21 Werner LEMBERG <wl@gnu.org>
2540 * NEWS: Add `output' request.
2542 * REVISION: Increased to 1.
2544 Version 1.18.0 released
2545 =======================
2547 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
2549 Allow internal glyph indices > 0xFF in grohtml for input characters.
2551 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
2553 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
2554 Updated all callers.
2555 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
2556 (html_printer): Updated.
2558 2002-07-19 Werner LEMBERG <wl@gnu.org>
2560 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
2561 * font/devutf8/R.proto: Adding some missing glyphs.
2562 * font/devutf8/NOTES: Updated.
2564 * tmac/dvi.tmac: Add more composite glyphs.
2565 * tmac/html.tmac: Updated.
2567 * man/groff_char.man: Add `sum' and `product' entities.
2571 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
2573 Improved table, tab, and indenting support.
2575 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
2576 string_iterator::suppress_newline_flag): Removed. Updated all
2577 function which have used it.
2579 * src/roff/troff/env.cc: Include `input.h'.
2580 (environment::add_node): Accept 0 as parameter.
2581 (environment::add_html_tag): Add `force' parameter.
2582 Updated all callers.
2583 (environment::add_html_tag_tabs): Ditto.
2584 For the moment, support left-aligned tabs only.
2585 (environment::make_html_tag): New function.
2586 (fill, no_fill): Set .br html tag additionally.
2587 (environment::newline): Emit `eol.ce' or `eol' tag for html.
2588 (environment::add_html_tag_eol): Removed.
2589 (tab_stops::distance_to_next_tab): Add variant for handling
2591 (environment::distance_to_next_tab): Ditto.
2592 Updated all callers.
2593 (environment::handle_tab): Handle tabs for html.
2595 * src/roff/troff/env.h: Updated.
2597 * src/roff/troff/div.cc: Updated all callers of
2598 `environment::add_html_tag'.
2600 * src/devices/grohtml/html-table.cc,
2601 src/devices/grohtml/html-table.h: New files.
2603 * src/devices/grohtml/html-text.cc (html_text): New members
2604 `blank_para' and `start_space'.
2605 (html_text::issue_tag): Don't emit TABLE_TAG.
2606 Handle indentation for PRE_TAG and P_TAG.
2607 (html_text::end_tag): Updated.
2608 (html_text::table_is_void, html_text::issue_table_begin,
2609 html_text::issue_table_end): Removed.
2610 (html_text::do_push): Simplified.
2611 [DEBUGGING]: Small fix.
2612 (html_text::push_para): Add new parameter for indentation; updated
2615 (html_text::do_indent, html_text::do_table, html_text::done_table,
2616 html_text::is_in_table): Removed.
2617 (html_text::do_pre): Handle P_TAG also.
2618 (html_text::shutdown): Handle p->indent.
2619 (html_text::check_emit_text): Simplified.
2620 (html_text::do_emittext): Reset `blank_para'.
2621 (html_text::do_para): Add new parameter for indentation; updated
2623 (html_text::remove_indent): New function.
2624 (html_text::do_space): Handle verbatim text properly.
2625 (html_text::ever_emitted_text, html_text::starts_with_space,
2626 html_text::remove_para_align): New functions.
2627 (html_text::dump_stack_element, html_text::dump_stack): Updated.
2629 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
2632 * src/devices/grohtml/post-html.cc: Include html-table.h.
2633 (INDENTATION): Removed.
2634 (text_glob): Added many `is_<foo>' functions.
2635 Added table description `tab'.
2636 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
2638 (list): Add `insert' and `move_to' member functions.
2639 (page): Add `insert_tag' member function.
2640 (page::dump_page) [DEBUG_TABLES]: Improved.
2641 (html_printer): Add `table' and `max_linelength' elements.
2642 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
2643 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
2644 `remove_tabs', `remove_courier_tabs'.
2645 (html_printer::emit_raw): Handle indentation.
2646 (html_printer::do_center, html_printer::write_header): Updated.
2647 (html_printer::is_courier_until_eol): Check for tag.
2648 (html_printer::do_linelength): Handle max_linelength.
2649 (html_printer::do_page_offset, html_printer::do_indentation): Handle
2651 (html_printer::do_tempindent): Updated.
2652 (html_printer::do_indentedparagraph): Removed.
2653 (html_printer::do_indent): Simplified.
2654 (html_printer::do_eol): Use `ever_emitted_text'.
2655 (html_printer::do_flush, html_printer::do_links): Don't call
2657 (html_printer::do_break): Handle end_tempindent.
2658 (html_printer::troff_tag): Get argument.
2660 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
2661 (html_printer::flush_page): Call `lookahead_for_tables'.
2662 Don't call `done_table'.
2663 (html_printer::add_to_sbuf): Always call do_indent.
2665 * src/devices/grohtml/Makefile.sub: Updated.
2667 * tmac/an-old.tmac (TP): Don't handle html device specially.
2668 (an-do-tag-html): New function which will be used instead of
2669 `an-do-tag' if html device is used.
2671 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
2673 * tmac/s.tmac (@IP): Don't handle html device specially.
2674 (@IP-html): New function which will be used instead of `@IP' if
2675 html device is used.
2677 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
2678 is a hack which will eventually vanish again.
2679 (PIMG): Handle `-C' option correctly if not html.
2682 2002-07-17 Werner LEMBERG <wl@gnu.org>
2684 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
2686 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
2688 * contrib/pic2graph/pic2graph.*: Use convert(1).
2689 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
2691 2002-07-14 Bernd Warken <bwarken@mayn.de>
2693 * tmac/groff_trace.man: New file.
2694 * tmac/Makefile.sub: Updated.
2697 2002-07-13 Werner LEMBERG <wl@gnu.org>
2699 * src/roff/groff/groff.man: Add some cross references.
2701 2002-07-12 Werner LEMBERG <wl@gnu.org>
2703 * src/roff/troff/input.cc (substring_request): Add warnings for
2704 string indices out of range.
2706 2002-07-11 Werner LEMBERG <wl@gnu.org>
2708 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
2709 * font/devdvi/*EC: Regenerated.
2711 2002-07-10 Bernd Warken <bwarken@mayn.de>
2713 * man/groff_char.man: Updated and extended.
2715 2002-07-10 Werner LEMBERG <wl@gnu.org>
2717 * src/roff/troff/input.cc (length_macro): Renamed to...
2718 (length_request): This.
2719 Move call of `tok.next()' to the very end, otherwise the register
2720 value hasn't been updated yet.
2721 (init_input_requests): Updated.
2723 2002-07-09 Werner LEMBERG <wl@gnu.org>
2725 * src/roff/troff/input.cc (substring_macro): Renamed to...
2726 (substring_request): This.
2727 (init_input_requests): Updated.
2728 * src/roff/troff/request.h: Updated.
2730 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
2732 * src/roff/grog/grog.sh: Fix typo.
2734 2002-07-08 Werner LEMBERG <wl@gnu.org>
2736 * win32-diffs: Updated.
2738 Handle `papersize' keyword properly in DESC.
2740 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
2742 Updated all callers.
2743 * src/libs/libgroff/paper.cc: Add four more paper formats used by
2745 * src/include/paper.h: Updated.
2747 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
2748 Other minor C syntax fixes.
2749 (papersize, paperlength, paperwidth): Renamed to `user_*'.
2750 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
2752 (lbp_printer::lbp_printer): Pass three arguments.
2753 Set paper dimensions properly.
2754 (make_printer, main): Updated.
2755 (handle_unknown_desc_command): Fix error messages.
2756 (main): Handle papersize keyword in DESC properly.
2758 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
2760 (lbp_printer::lbp_printer): Pass an argument.
2761 Set paper_size properly.
2762 (handle_unknown_desc_command): Removed.
2763 (make_printer, main): Updated.
2764 * src/devices/grolj4/grolj4.man: Minor documentation fix.
2766 * man/groff_font.man, NEWS: Updated.
2768 2002-07-07 Werner LEMBERG <wl@gnu.org>
2770 Integrated eqn2graph, contributed by Eric S. Raymond.
2772 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
2774 * Makefile.in, NEWS: Updated.
2776 2002-06-04 Werner LEMBERG <wl@gnu.org>
2778 Changing the substring request to make it fit better with other
2779 string manipulation functions in other programming languages:
2780 Index 0 is now the first character in the string, and index -1
2781 indicates the last character. Since this request didn't work
2782 properly anyway in the last release, it doesn't harm too much to
2785 * src/roff/troff/input.cc (substring_macro): Use loops to get
2786 the real string length (ignoring COMPATIBLE_SAVE and
2787 COMPATIBLE_RESTORE) and offsets.
2788 Implement change described above.
2790 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
2791 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
2793 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
2795 2002-06-03 Werner LEMBERG <wl@gnu.org>
2797 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
2798 COMPATIBLE_RESTORE are completely ignored.
2800 * src/roff/troff/input.cc (char_list::set, char_list::get): New
2802 (macro): `length' field renamed to `len'.
2803 Added new field `empty_macro' (1 if macro is empty), to be used
2804 instead of checking `len'.
2805 Updated all callers.
2806 (macro::empty): Updated.
2807 (macro::length, macro::set, macro::get): New functions.
2808 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2810 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
2811 COMPATIBLE_RESTORE pairs.
2812 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2813 * src/roff/troff/request.h: Updated.
2815 * doc/groff.texinfo: Document .chop's behaviour better.
2817 2002-06-02 Werner LEMBERG <wl@gnu.org>
2819 * doc/pic.ms: Fix documentation for the addition of positions.
2821 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
2823 2002-06-29 Werner LEMBERG <wl@gnu.org>
2825 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
2827 * src/roff/troff/input.cc (have_string_arg): New global variable.
2828 (read_mode): New enumeration.
2829 (read_escape_name): Use it. Update all calls.
2830 (read_long_escape_name): Use it. Update all calls.
2831 Set have_string_arg if appropriate.
2832 (get_char_for_escape_name): Add parameter for handling space
2834 (interpolate_string_with_args, decode_string_args): New functions.
2835 (get_copy, token::next): Call it if necessary.
2836 (interpolate_string): Fix error message.
2838 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2841 2002-06-24 Bernd Warken <bwarken@mayn.de>
2843 * man/groff_tmac.man: Updated and extended.
2845 2002-06-24 Werner LEMBERG <wl@gnu.org>
2847 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
2849 2002-06-23 Werner LEMBERG <wl@gnu.org>
2851 * doc/pic.ms: Improve documentation of composite block objects.
2853 2002-06-22 Werner LEMBERG <wl@gnu.org>
2855 * src/roff/troff/input.cc (init_registers): Add three registers
2856 `seconds', `minutes', and `hours' to hold the current time.
2858 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2861 2002-06-20 Werner LEMBERG <wl@gnu.org>
2863 Make \X accept both `\ ' and `\~', converting them to single space
2866 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
2867 (token::unstretchable_space): New inline function.
2868 * src/roff/troff/input.cc (token::next, token::delimiter,
2869 token::description, token::add_to_node_list, token::process): Handle
2870 TOKEN_UNSTRETCHABLE_NODE.
2871 (encode_char): Handle tok.stretchable_space and
2872 tok.unstretchable_space.
2874 * NEWS, doc/groff.texinfo: Document it..
2876 2002-06-19 Werner LEMBERG <wl@gnu.org>
2878 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
2880 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
2881 keyword to enable/disable SGR output.
2882 (tty_printer::change_fill_color): New function.
2883 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
2885 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
2888 2002-06-18 Werner LEMBERG <wl@gnu.org>
2890 Add a `color' request and a `.color' register to control usage of
2893 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
2894 (color_flag): This (which is the inverse).
2895 (activate_color): New function.
2896 (main, init_input_requests): Updated.
2897 * src/roff/troff/troff.h, src/roff/troff/node.cc
2898 (troff_output_file::fill_color, troff_output_file::glyph_color):
2901 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2902 Document the changes.
2904 2002-06-17 Colin Watson <cjwatson@debian.org>
2906 Circumvent bug in autoconf 2.53 regarding top_builddir.
2908 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
2909 * Makefile.in, doc/Makefile.in:
2910 s/@top_builddir@/@groff_top_builddir@/.
2911 * configure: Regenerated (with autoconf 2.53).
2913 2002-06-17 Werner LEMBERG <wl@gnu.org>
2915 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
2916 `paperwidth' and `paperlength' for the `papersize' keyword.
2918 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
2920 * src/devices/grops/grops.man: Add info about Type 42 fonts.
2922 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
2924 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
2925 html_printer::do_linelength, html_printer::do_pageoffset,
2926 html_printer::do_indentation, html_printer::do_tempindent,
2927 html_printer::do_break, html_printer::begin_page): Clear indented
2929 * tmac/html.tmac: Disable hyphenation.
2931 2002-06-15 Werner LEMBERG <wl@gnu.org>
2933 Don't produce HTML files if utility programs are missing.
2935 * Makefile.in (make_html, make_install_html): New variables.
2936 (MDEFINES): Updated.
2938 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
2940 * configure.ac: Use it.
2941 * configure: Regenerated.
2943 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
2944 (HTMLEXAMPLESFILES): This new variable.
2945 (EXAMPLESIMAGEFILES): Renamed to...
2946 (HTMLEXAMPLEIMAGEFILES): This.
2947 (CLEANADD): Add HTMLEXAMPLEFILES.
2948 (all): Use `make_html'.
2950 (install_data): Use `make_install_html'.
2951 Move html stuff to...
2952 (install_html): This new target.
2953 (uninstall_sub): Updated.
2955 2002-06-14 Bernd Warken <bwarken@mayn.de>
2957 * src/roff/grog/Makefile.sub (grog): Renamed to...
2959 (grog): New rule to always install grog.sh as grog.
2961 2002-06-08 Bernd Warken <bwarken@mayn.de>
2963 * src/roff/grog/grog.pl: Fix typo.
2965 2002-06-07 Werner LEMBERG <wl@gnu.org>
2967 * doc/groff.texinfo: Add more info on .tr arguments.
2969 2002-06-05 Werner LEMBERG <wl@gnu.org>
2971 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2973 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
2974 * configure: Regenerated.
2976 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2978 * src/roff/troff/symbol.cc (table_sizes): Add more values.
2980 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
2982 2002-06-04 Werner LEMBERG <wl@gnu.org>
2984 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
2985 is not initialized at the time we need it in case `--prefix' hasn't
2986 been set. Check for `ac_default_prefix' also.
2987 Test for `papersize' keyword also and generalize allowed whitespace.
2988 * configure: Regenerated.
2990 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
2993 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
2995 (src_version, src_revision): New variables to avoid overwriting
2996 from parent make process.
2997 (version.cc): Updated.
2999 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3000 (linebuf, linebufsize): New global variables.
3001 (sys_fatal): Use `fatal' to abort properly.
3002 (get_line): New function.
3003 (get_resolution): Use it.
3004 Improve error messages.
3005 (get_papersize): Check `papersize' also.
3007 Improve error messages.
3009 2002-06-03 Werner LEMBERG <wl@gnu.org>
3011 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3012 should be removed only if builddir is not srcdir.
3013 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3014 (clean): Depend on `mostlyclean'.
3015 (distclean): Depend on `clean'.
3016 (realclean, extraclean): Depend on `distclean'.
3017 (.y.cc, .y.o): Simplified. The output files are no longer written
3018 to srcdir but to builddir.
3019 * Makefile.in (MDEFINES): Add `version' and `revision'.
3020 (uninstall_dirs): Fix order of directories.
3021 * doc/Makefile.sub (version, revision): Removed.
3022 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3023 Added `HTMLDOCFILES'.
3024 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3025 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3026 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3029 * doc/texinfo.tex (\authortt): New macro.
3030 (\shortcontt): Define.
3031 (\titlepage): Set \tt to \authortt while defining \authorfont.
3032 (\appendixbox): New macro.
3033 (\chapmacro, \appendixentry): Use \appendixbox to get even
3034 indentation for letters.
3035 (\summarycontents): Set \tt.
3036 (\internalpagesize): Add two arguments for real paper width and
3037 height as needed by pdfTeX.
3038 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3040 (\tempdima, \tempdimb): New temporary dimensions.
3041 (\pagesizesyyy): Updated.
3043 2002-06-02 Werner LEMBERG <wl@gnu.org>
3045 Adding a new keyword `papersize' to the DESC file format (similar
3046 but not completely identical to grolbp's extension). grops now has
3047 a -p command line option to override `papersize'. Finally, grolbp
3048 has been adapted to the new syntax.
3050 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
3051 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3053 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3054 (CCSRCS): Add `paper.cc'.
3056 * src/include/font.h (font): Add `papersize' element.
3057 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3058 (font::scan_papersize): New function.
3059 (font::load_desc): Use it for handling `papersize' keyword.
3060 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3062 * src/devices/grops/ps.cc: Include paper.h.
3063 (user_paper_length): New global variable.
3064 (ps_printer): Use paper length as initializer.
3065 (make_printer): Updated.
3066 (main): Handle new `-p' option.
3067 * src/devices/grops/grops.man: Updated.
3069 * src/devices/grolbp/lbp.cc: Include paper.h.
3070 s/papersizes/lbp_papersizes/.
3071 (set_papersize): Use new `papersizes' array.
3072 (handle_unknown_desc_command): Don't handle `papersize'.
3073 (main): Use `font::scan_papersize' for handling `-p' option.
3074 * src/devices/grolbp/grolbp.man: Updated.
3076 * man/groff_font.man: Document `papersize'.
3079 2002-05-30 Werner LEMBERG <wl@gnu.org>
3081 * src/devices/grops/TODO: Updated.
3082 * src/devices/grops/grops.man: More info on paper formats.
3083 * man/groff_font.man: Document `paperheight' and `paperwidth'.
3085 2002-05-29 Werner LEMBERG <wl@gnu.org>
3087 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3088 to list only if srcdir != currdir.
3089 (distfiles): New target.
3091 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3092 (NOMAKEDIRS): New variable.
3095 2002-05-26 Werner LEMBERG <wl@gnu.org>
3097 Add .output request, similar to \! at top-level.
3099 * src/roff/troff/input.cc (transparent): Remove unused declaration.
3100 (output_request): New function.
3101 (init_input_requests): Add it.
3103 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3106 * Makefile.in (MDEFINES): Add INSTALL_INFO.
3107 (prepare_examples): Fix typo.
3108 * doc/groff.texinfo (@direntry): Fix it.
3110 2002-05-25 Werner LEMBERG <wl@gnu.org>
3112 Including the doc subdir into groff's Makefile system.
3114 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3115 * configure.ac: Use it.
3116 Generate `doc/Makefile'.
3117 * configure: Regenerated.
3119 * Makefile.in (infodir, INSTALL_INFO): New variables.
3120 (MDEFINES, uninstall_dirs): Updated.
3121 (OTHERDIRS): Add `doc'.
3122 * Makefile.comm (CLEANDIRADD): New variable.
3123 (mostlyclean): Use it.
3125 * doc/Makefile.sub, doc/Makefile.in: New files.
3126 * doc/Makefile: Removed.
3128 * NEWS, INSTALL: Updated.
3130 2002-05-24 Werner LEMBERG <wl@gnu.org>
3132 * doc/homepage.ms: Renamed to ...
3133 * doc/webpage.ms: This.
3136 2002-05-23 Werner LEMBERG <wl@gnu.org>
3138 Integrating the `mom' macro package, contributed by Peter Schaffter
3141 * contrib/mom/*: New subdirectory tree.
3142 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3143 be used for documentation files.
3144 (MDEFINES, uninstall_dirs): Use them.
3145 (OTHERDIRS): Add contrib/mom.
3146 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3148 * MANIFEST, NEWS: Updated.
3150 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
3152 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3153 if at outer level; at start-up we are at outer level.
3155 * src/roff/troff/input.cc (do_suppress): Implement it.
3158 Add option -p to show progress information.
3159 pre-grohtml will now render only one page at a time, reducing the
3160 size of needed disk resources enormously.
3162 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3163 (imagePageName): New global variable.
3164 (psPageName, show_progress, currentPageNo): New global variables.
3165 (html_system): Close saved stderr and stdout handles.
3166 (write_end_image): Accept a parameter to control \O escape.
3167 (write_start_image): Adapted to new \O meaning.
3168 (char_buffer::write_upto_newline): Updated.
3169 (createAllPages): Replaced with...
3170 (createPage): This new function to create a single page for images.
3171 It uses `psselect' from the psutils package.
3172 (removeAllPages): Removed.
3173 (createImage): Updated.
3174 Handle progress display.
3175 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3176 (scanArguments): Add option -p.
3177 (makeTempFiles): Updated to create temp files for psPageName and
3179 (removeTempFiles): Removed.
3182 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3183 html_printer::write_header): Append `\0' to `buffer'.
3184 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3186 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3187 Handle `text_emitted'.
3188 (html_text::table_is_void): Slightly rewritten.
3189 (stop): New external symbol.
3190 (html_text::do_push) [DEBUGGING]: Use it and simplify.
3191 (html_text::shutdown): Call `dump_stack'.
3192 (html_text::do_space): Rewritten.
3193 * src/devices/grohtml/grohtml.man: Document -p and the need of
3196 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3198 Call \O[0] if `ps4html' is active.
3199 * tmac/s.tmac (@EQ, @EN): Handle html better.
3201 * tmac/html.tmac: Don't use black for background colour.
3203 * src/roff/troff/node.cc: Include `div.h'.
3204 (troff_output_file::really_print_line): Don't use `is_on'.
3205 (troff_output_file::word_marker, troff_output_file::flush_tbuf
3206 troff_output_file::check_charinfo,
3207 troff_output_file::put_char_width, troff_output_file::put_char,
3208 troff_output_file::determine_line_limits, troff_output_file::draw,
3209 real_output_file::begin_page, glyph_color_node::tprintf,
3210 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3212 (troff_output_file::really_on): Call `do_motion'.
3213 (suppress_node::tprint): Use `get_page_number' instead of `%'
3215 Call `reset_output_registers' conditionally on `is_on'.
3217 * doc/groff.texinfo: Document new syntax of \O.
3218 * NEWS, man/groff_diff.man: Updated.
3220 2002-05-22 Werner LEMBERG <wl@gnu.org>
3222 * MORE.STUFF: Add info about David Frey's deroff implementation.
3225 2002-05-16 Werner LEMBERG <wl@gnu.org>
3227 Pic's `with' attribute now accepts positions.
3229 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3230 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3232 (object_spec): Add rule for `WITH' and `position'.
3233 (relative_path): Give `corner' the precedence of `CHOP'.
3234 * src/preproc/pic/object.h (path): New members `pos' and
3236 * src/preproc/pic/object.cc: Updated initializers of `path'.
3237 (path::follow): Handle `is_position'.
3239 * doc/pic.ms: Completely updated grammar description.
3240 Many typographical improvements.
3242 2002-05-15 Werner LEMBERG <wl@gnu.org>
3244 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3245 code of x in range 0-127) also.
3246 * doc/groff.texinfo, man/groff_diff.man: Updated.
3248 Added keywords `north', `south', `east', and `west' for corners
3251 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3253 (yylex): Handle them.
3254 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3255 (corner): Handle them.
3257 2002-05-14 Werner LEMBERG <wl@gnu.org>
3259 * src/devices/grops/grops.man: Clarify handling of `download' file.
3261 2002-05-11 Werner LEMBERG <wl@gnu.org>
3263 Adding `warnscale' and `spreadwarn' requests, based on a patch from
3264 Jeffrey Friedl <jfriedl@yahoo.com>.
3266 * src/roff/troff/input.cc (spread_limit, warn_scale,
3267 warn_scaling_indicator): New global variables.
3268 (warnscale_request, spreadwarn_requests): New functions.
3269 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3270 (init_input_requests): Updated.
3271 (error_type): Add `OUTPUT_WARNING'.
3272 (do_error): Handle it.
3273 (output_warning): New warning function which shows output location.
3274 * src/roff/troff/env.h (spread_limit): New external variable.
3275 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3277 (distribute_space): Emit warning if added space is larger than
3279 (environment::possibly_break_line): Emit warning if a line can't
3280 be adjusted on both sides.
3282 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3284 2002-05-08 Werner LEMBERG <wl@gnu.org>
3286 * src/roff/troff/node.cc (special_node::special_node): Use
3287 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
3288 \X''\% crashes, for example.
3290 * doc/groff.texinfo: Document \! and \? used at top-level.
3292 2002-05-06 Werner LEMBERG <wl@gnu.org>
3294 * src/preproc/pic/pic.man: Fix some keyword syntax.
3295 Other minor typographical fixes.
3297 * src/roff/groff/groff.man: Fix typos.
3299 2002-05-04 Werner LEMBERG <wl@gnu.org>
3301 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3302 (ShortOpt[]): This to avoid problems with refer.
3304 * doc/pic.ms: Fix typo.
3305 Fix pic grammar description.
3307 * tmac/an-old.tmac (ne): Use de1, not de.
3309 2002-05-03 Werner LEMBERG <wl@gnu.org>
3311 * doc/groff.texinfo: Finished separation of glyphs and characters.
3312 Don't use the string `Appendix' for appendix headers (both in
3313 the text and the table of contents).
3314 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3317 Use registers LL and LT (similar to -ms) for controlling the
3318 length of title and line, respectively, in the -man and -mdoc
3321 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3322 (doc-setup-page-layout): Use \n[LL] and \n[LT].
3323 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3325 (an-header, an-p-footer): Use \n[LT].
3326 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3327 doc/groff.texinfo: Document it.
3329 2002-05-02 Werner LEMBERG <wl@gnu.org>
3331 * doc/fdl.texi: New file.
3332 * doc/groff.texinfo: Include it.
3333 Define and use @copying.
3334 Starting with separating glyph, symbol, and character.
3336 2002-04-27 Werner LEMBERG <wl@gnu.org>
3338 * Makefile.in (EXEEXT): Set it.
3339 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3342 * src/include/nonposix.h: Define GS_NAME.
3343 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3345 Some preliminary changes for EMX support under OS/2.
3347 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3348 __EMX__ similar to __MSDOS__.
3349 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3351 2002-04-25 Werner LEMBERG <wl@gnu.org>
3353 * doc/groff.texinfo: Integrated groff_out.man.
3356 2002-04-23 Werner LEMBERG <wl@gnu.org>
3358 * man/groff_out.man: Minor fixes.
3360 2002-04-23 Werner LEMBERG <wl@gnu.org>
3362 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3363 correct page references.
3364 Fixed many index entries.
3366 2002-04-23 Bernd Warken <bwarken@mayn.de>
3368 * man/roff.man: Enlarged.
3370 2002-04-22 Werner LEMBERG <wl@gnu.org>
3372 * doc/groff.texinfo: More examples, other fixes.
3374 2002-04-20 Werner LEMBERG <wl@gnu.org>
3376 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3377 will now form a chain, e.g.
3386 This is for compatibility with plan 9's troff.
3388 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3392 * doc/groff.texinfo: Add documentation of remaining requests and
3395 2002-04-19 Werner LEMBERG <wl@gnu.org>
3397 * doc/groff.texinfo: Add documentation of remaining escapes.
3399 * font/devdvi/generate/tc.map: Remove entry for `sr'.
3400 * font/devdvi/*TC: Regenerated.
3402 2002-04-18 Werner LEMBERG <wl@gnu.org>
3404 * src/roff/troff/input.cc (token::next): Make \H behave consistently
3405 if not in compatibility mode, i.e., increment relative to the
3407 * doc/groff.texinfo: Updated accordingly.
3409 2002-04-17 Werner LEMBERG <wl@gnu.org>
3411 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3413 2002-04-16 Bernd Warken <bwarken@mayn.de>
3415 * src/roff/groff/groff.man: Improve documentation of -P option.
3418 2002-04-15 Werner LEMBERG <wl@gnu.org>
3420 Add new escape \F to switch font family.
3422 * src/roff/troff/input.cc (token::next): Handle \F.
3423 * src/roff/troff/env.cc (environment::set_family): Handle
3425 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3428 2002-04-14 Werner LEMBERG <wl@gnu.org>
3430 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3433 2002-04-13 Werner LEMBERG <wl@gnu.org>
3435 Implement \f[] as an alternative to \fP. Change \mP and \MP to
3436 \m[] and \M[], respectively.
3438 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3439 (symbol::symbol): Handle NULL string and empty string differently.
3440 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3441 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3442 Add optional parameter.
3443 Updated calling functions.
3444 (get_copy, do_glyph_color, do_fill_color, token::next): Use
3446 * src/roff/troff/env.cc (environment::set_font): Ditto.
3448 * src/preproc/pic/troff.cc (troff_output::set_fill,
3449 troff_output::reset_color: Updated.
3451 * tmac/www.tmac: Updated.
3453 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3454 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3457 * tmac/Xps.tmac: Remove some redundant code.
3459 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3460 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3461 man/groff_out.man, man/groff.man, man/groff_diff.man,
3462 src/roff/groff/groff.man: Replace \f[P] with \f[].
3464 2002-04-13 Bernd Warken <bwarken@mayn.de>
3466 * src/include/printer.h, src/libs/libdriver/printer.cc
3467 (printer::change_fill_color): New member function.
3468 * src/libs/libdriver/input.cc (parse_D_command): Use it.
3470 2002-04-12 Werner LEMBERG <wl@gnu.org>
3472 * doc/groff.texinfo: Completed pass on gtroff reference.
3474 2002-04-11 Werner LEMBERG <wl@gnu.org>
3476 * doc/groff.texinfo: More fixes.
3478 2002-04-11 Bernd Warken <bwarken@mayn.de>
3480 * src/include/color.h: Decorate with `const'.
3483 * src/libs/libgroff.color.cc: Decorate with `const'.
3485 (color::color): Initialize members.
3486 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3487 command according to the documentation.
3489 * man/groff_out.man: Updated.
3492 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
3494 * src/preproc/html/pre-html.cc (write_start_image): Remove
3496 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3498 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3499 \C'hy' caused an assertion failure.
3501 * src/roff/troff/env.cc (environment::environment): Initialize
3503 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3505 2002-04-10 Werner LEMBERG <wl@gnu.org>
3507 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3508 Document pvs request and .pvs register.
3510 2002-04-09 Werner LEMBERG <wl@gnu.org>
3512 * doc/groff.texinfo: Improve and fix documentation of diversions
3515 2002-04-08 Werner LEMBERG <wl@gnu.org>
3517 * doc/groff.texinfo: Fix documentation of drawing functions.
3520 2002-04-07 Werner LEMBERG <wl@gnu.org>
3522 * doc/groff.texinfo: Better documentation of double quotes as
3526 2002-04-06 Werner LEMBERG <wl@gnu.org>
3528 * man/groff_font.man: Document names of special characters better.
3529 * doc/groff.texinfo: Minor improvements.
3531 * tmac/lbp.tmac: Load latin1.tmac.
3532 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3534 * font/devX*/*: Regenerated (all chars > 0x80 removed).
3536 2002-04-05 Werner LEMBERG <wl@gnu.org>
3538 * tmac/tty.tmac: Don't use shc request.
3539 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3542 * man/groff_diff.man: Minor fixes.
3544 * font/devlbp/*: Remove all `charXXX' entities.
3546 * src/libs/libgroff/font.cc (font::~font): Deallocate
3547 `special_device_coding'.
3548 (font::load): Use `new' for allocating `special_device_coding'.
3549 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
3550 Removed unused member.
3552 2002-04-05 Werner LEMBERG <wl@gnu.org>
3554 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
3555 (resource_manager::do_begin_binary,
3556 resource_manager::do_begin_data): Use it.
3558 * doc/texinfo.tex: Updated to version 4.2.
3560 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
3561 (token::zero_width_break): New inline function.
3562 * src/roff/troff/input.cc (token::next): Use it.
3563 (token::description): Updated.
3564 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
3565 (token::add_to_node_list, token::process): Use it.
3566 * NEWS, doc/groff.texinfo: Updated.
3568 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
3569 * tmac/tty.tmac: Add missing backslash.
3571 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
3573 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
3574 `.ps' register instead of `.s' to handle fractional point sizes.
3575 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
3576 limit_box::output): Ditto.
3577 * src/preproc/eqn/other.cc (size_box::compute_metrics,
3578 size_box::output): Ditto.
3579 * src/preproc/eqn/over.cc (over_box::compute_metrics,
3580 over_box::output): Ditto.
3581 * src/preproc/eqn/script.cc (script_box::compute_metrics,
3582 script_box::output): Ditto.
3583 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
3584 sqrt_box::output): Ditto.
3586 2002-04-03 Michael Selway <mas@ssl.co.uk>
3588 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
3591 2002-04-03 Werner LEMBERG <wl@gnu.org>
3593 * doc/homepage.ms: Reduce title size.
3594 * doc/groff.texinfo: Fix documentation of .t register.
3595 Fix handling of colon.
3598 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
3599 only if page length is positive to avoid a loop.
3601 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
3604 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
3606 * src/include/nonposix.h, src/roff/groff/pipeline.c:
3607 s/__CYGWIN32__/__CYGWIN__/.
3609 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
3611 * doc/gnu.xpm: New image contributed by Emily Mulley.
3612 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
3613 (homepage.html): Be dependent on gnu.eps.
3614 * doc/homepage.ms: Updated to new image.
3616 * src/devices/grohtml/post-html.cc (html_printer): New member
3618 (html_printer::flush_sbuf, html_printer::set_char): Set it.
3619 (html_printer::sbuf_continuation): Use it.
3621 2002-03-28 Werner LEMBERG <wl@gnu.org>
3623 * src/libs/libgroff/getopt.c: Updated to latest version.
3625 * tmac/README: More on hyphen.tex license.
3627 2002-03-26 Larry Kollar <kollar@alltel.net>
3629 * doc/groff.texinfo: Add documentation of most missing requests.
3631 2002-03-25 Werner LEMBERG <wl@gnu.org>
3633 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
3634 of `+-', `mu', and `di', respectively.
3636 * font/devascii/R.proto, font/devutf8/R.proto,
3637 font/devlatin1/R.proto, font/devhtml/R.proto,
3638 font/devcp1047/R.proto, font/devlpb/*: Add them.
3639 * font/devps/generate/textmap: Ditto.
3640 * font/devps/*: Regenerated.
3641 * font/devlj4/generate/text.map: Add them.
3642 * font/devlj4/*: Regenerated.
3643 * font/devdvi/generate/tc.map: Use them.
3644 * font/devdvi/generate/texsy.map: Add them.
3645 * font/devdvi/*: Regenerated.
3646 * font/devX*/*: Regenerated.
3648 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
3649 tmac/tty-char.tmac: Updated.
3651 * NEWS, man/groff_char.man: Updated.
3653 2002-03-24 Werner LEMBERG <wl@gnu.org>
3655 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
3656 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
3657 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
3658 we use `.fchar' in dvi.tmac.
3659 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
3660 * tmac/Xps.tmac: Simplify some char definitions.
3661 Add definition for \[f/].
3662 * man/groff_char.man: Updated for new X.tmac.
3664 * tmac/README: New file.
3666 2002-03-23 Phil Lobbes <phil@perkpartners.com>
3668 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
3669 internal .y.o rule took precendence over the .y.cc rule, compiling
3670 the yacc files with gcc instead of g++.
3672 2002-03-23 Werner LEMBERG <wl@gnu.org>
3674 * tmac/dvi.tmac: Add replacement font for `CB'.
3676 * tmac/doc.tmac: s/request/macro/ in messages.
3677 (doc-generic-macro): Improve error message.
3678 * tmac/groff_mdoc.man: Minor improvements.
3680 2002-03-22 Werner LEMBERG <wl@gnu.org>
3682 * doc/groff.texinfo: Document possible conflict between `tr' and
3685 2002-03-21 Werner LEMBERG <wl@gnu.org>
3687 Improve handling of hyphenation patterns. It is now possible to
3688 use most of TeX's pattern files unmodified. To make the process
3689 more flexible, a new request `hpfcode' has been added which
3690 provides a character code mapping for the `hpf' request. See
3691 comment before hpf_getc() for more details.
3693 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
3695 (read_patterns_file): Additional parameter for exception dictionary.
3696 Extended to recognize \pattern, \hyphenation, and \endinput.
3697 (do_hyphenation_patterns_file): Updated.
3698 * src/roff/troff/env.h (hpf_code_table): New extern.
3700 * src/roff/troff/input.cc (hpf_code_table): New array.
3701 (init_hpf_code_table, hyphenation_patterns_file_code): New
3703 (hyphenation_code): Handle translation from `trin' correctly.
3704 (main, init_input_requests): Updated.
3705 (charinfo::set_translation): Handle hyphenation code also.
3707 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
3710 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
3711 char' is used for offsets in hyphenation exceptions.
3713 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
3715 * NEWS, man/groff_diff.man, man/groff.man: Document it.
3717 2002-03-20 Larry Kollar <kollar@alltel.net>
3719 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
3722 2002-03-18 Werner LEMBERG <wl@gnu.org>
3724 * tmac/html.tmac: Fix serious typo.
3726 2002-03-17 Larry Kollar <kollar@alltel.net>
3728 * doc/groff.texinfo: Add documentation for `writec' request.
3730 2002-03-17 Werner LEMBERG <wl@gnu.org>
3732 Added request `hpfa' to append hyphenation patterns.
3734 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3736 (hyphenation_patterns_file): Renamed to...
3737 (do_hyphenation_patterns_file): This.
3738 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
3740 (init_hyphen_requests): Updated.
3741 * NEWS, man/groff.man, man/groff_diff.man: Document it.
3743 2002-03-16 Werner LEMBERG <wl@gnu.org>
3745 Added request `writec' in analogy to `tmc'.
3747 * src/roff/troff/input.cc (write_request): Renamed to...
3748 (do_write_request): This.
3749 Added one parameter.
3750 (write_request, write_request_continue): New functions.
3751 (init_input_requests): Updated.
3752 * NEWS, man/groff.man, man/groff_diff.man: Document it.
3754 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
3756 * NEWS: Document it.
3758 2002-03-15 Werner LEMBERG <wl@gnu.org>
3760 * man/groff.man: Add writem request.
3762 Add request `trin' (translate input) to make `.asciify' work
3763 correctly. This is necessary since `charXXX' entity names are no
3764 longer hardcoded in font definition files.
3766 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
3767 `translate_input' members.
3768 (charinfo::set_asciify_code, charinfo::get_asciify_code,
3769 charinfo::set_translation_input): New methods.
3770 (charinfo::set_translation): Add third argument.
3771 * src/roff/troff/input.cc (charinfo:set_translation): Set
3773 (do_translate): Add second argument.
3774 (translate_input): New function.
3775 (init_input_requests): Updated.
3776 * src/roff/troff/node.cc (glyph_node::asciify,
3777 composite_node::asciify): Use `get_asciify_code'.
3779 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
3781 * NEWS, man/groff.man, man/groff_diff.man: Updated.
3783 2002-03-14 Larry Kollar <kollar@alltel.net>
3785 * doc/groff.texinfo: Improve documentation of .RS and .RE.
3787 2002-03-14 Werner LEMBERG <wl@gnu.org>
3789 Add a new request `sizes' similar to the `sizes' command in DESC
3792 * src/roff/troff/env.cc (override_sizes): New function.
3793 (init_env_requests): Use it.
3794 * src/roff/troff/token.h: Export `read_string'.
3795 * NEWS, man/groff_diff.man, man/groff.man: Document it.
3797 2002-03-12 Werner LEMBERG <wl@gnu.org>
3799 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
3801 2002-03-10 Werner LEMBERG <wl@gnu.org>
3803 * tmac/pspic.tmac: Add support for -Tdvi.
3804 * tmac/dvi.tmac: Include pspic.tmac.
3805 * src/devices/grodvi/grodvi.man: Document it.
3808 * font/devlj4/generate/Makefile: Fix URL of metric files.
3810 2002-03-09 Werner LEMBERG <wl@gnu.org>
3812 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
3814 2002-03-09 Larry Kollar <kollar@alltel.net>
3816 * tmac/groff_ms.man: Add documentation for RS and RE macros.
3818 2002-03-08 Werner LEMBERG <wl@gnu.org>
3820 * doc/groff.texinfo: Fixes for texinfo 4.1.
3822 2002-03-07 Werner LEMBERG <wl@gnu.org>
3824 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
3826 Handle CYGWIN properly.
3828 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
3830 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
3831 * tmac/lbp.tmac: Add some font translations.
3833 2002-03-02 Werner LEMBERG <wl@gnu.org>
3835 * font/devcp1047/R.proto, font/devlatin1/R.proto,
3836 font/devhtml/R.proto: Remove `charXXX' entries.
3837 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
3840 * font/devlj4/generate/text.map: Remove `charXXX' entries.
3841 * font/devlj4/*: Regenerated all font definition files.
3842 * tmac/lj4.tmac: Load latin1.tmac.
3844 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
3845 from 2000-06-17: LJ4 metric files are *not* text files.
3847 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
3848 register to test for EBCDIC.
3850 2002-03-01 Werner LEMBERG <wl@gnu.org>
3852 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
3853 files (as grops already does).
3854 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
3856 * src/devices/grops/grops.man: Document comment lines in encoding
3859 * tmac/cp1047.tmac: New file.
3860 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
3861 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
3862 * tmac/Makefile.sub (NORMALFILES): Updated.
3864 * tmac/ec.tmac: Don't load latin1.tmac again.
3866 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
3867 font/devps/generate/dingbats.map,
3868 font/devps/generate/dingbats.rmap, font/devps/text.enc,
3869 font/devps/generate/Makefile (symbolmap): Add header comment.
3870 * font/devps/generate/textmap: Ditto.
3871 Remove `charXXX' entries.
3872 * font/devps/symbolmap: Regenerated.
3873 * font/devps/*: Regenerated all font definition files.
3875 2002-02-28 Werner LEMBERG <wl@gnu.org>
3877 Add color support to grodvi (for drawing colors are currently
3878 translated to gray values).
3880 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
3881 (dvi_printer): Add `cur_color' member.
3882 (dvi_printer::set_color): New function.
3883 (draw_dvi_printer): Remove `fill'.
3884 (draw_dvi_printer::fill_next): Pass environment as parameter.
3885 Update code for new color support translated to gray.
3886 (dvi_printer::set_char): Updated.
3887 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
3888 changes crossing the page border.
3889 (dvi_printer::draw): Updated.
3890 Remove cases `f' and `F'.
3891 * tmac/dvi.tmac: Add color definitions.
3892 * NEWS, src/devices/grodvi/grodvi.man: Updated.
3894 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
3897 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
3898 versions of autoconf.
3899 * configure: Updated.
3901 * doc/homepage.ms: Use `.blm'.
3902 * tmac/www.tmac (www-depth): New auxiliary variable.
3903 (www-pop-level): Don't issue HTML tag.
3904 (ULS, ULE, LI): Use absolute indentation.
3906 * src/devices/grops/ps.cc (ps_printer::begin_page,
3907 ps_printer::end_page): Switch forth and back to default color while
3908 starting a new page.
3910 2002-02-27 Werner LEMBERG <wl@gnu.org>
3912 Add EC and TC fonts to devdvi.
3914 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
3915 * font/devdvi/generate/cork.map: Renamed to...
3916 * font/devdvi/generate/ec.map: This.
3917 Remove entry for `aq'.
3918 * font/devdvi/generate/tc.map: New file.
3919 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
3922 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
3923 * font/devdvi/Makefile.sub (DEVFILES): Updated.
3924 * tmac/ec.tmac: New file.
3925 * tmac/Makefile.sub (NORMALFILES): Updated.
3926 * NEWS, src/devices/grodvi/grodvi.man: Updated.
3927 * man/groff_char.man: Check `ECFONTS' register.
3929 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
3931 2002-02-26 Werner LEMBERG <wl@gnu.org>
3933 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
3934 * font/devdvi/generate/cork.map: Add 'y and 'Y.
3935 * font/devdvi/*: Updated.
3936 * tmac/dvi.tmac: Formatting.
3938 Add font `HBI' for the dvi output.
3939 Add support for font families `T' and `H'.
3941 * font/devdvi/HBI: New file.
3942 * font/devdvi/B: Renamed to ...
3943 * font/devdvi/TB: This.
3944 * font/devdvi/BI: Renamed to ...
3945 * font/devdvi/TBI: This.
3946 * font/devdvi/I: Renamed to ...
3947 * font/devdvi/TI: This.
3948 * font/devdvi/R: Renamed to ...
3949 * font/devdvi/TR: This.
3950 * font/devdvi/H: Renamed to ...
3951 * font/devdvi/HR: This.
3952 * font/devdvi/Makefile.sub (DEVFILES): Updated.
3953 * font/devdvi/generate/Makefile (HBI): New rule.
3955 (R, I, B, BI, H): Renamed to ...
3956 (TR, TI, TB, TBI, HR): This, respectively.
3958 * NEWS, src/devices/grodvi/grodvi.man: Updated.
3959 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
3960 Add `styles' and `family' keywords.
3961 * tmac/dvi.tmac: Alias `H' to `HR'.
3962 Add some fspecial requests for italic fonts.
3963 Add TR and TI as special.
3964 Add support for `_' with font CWI.
3966 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
3967 operator `:'. Until now, the expression `0:1' would return 2
3970 2002-02-25 Werner LEMBERG <wl@gnu.org>
3972 * man/groff_char.man: Added some missing PS glyph names (from the
3974 * font/devps/generate/textmap, font/devps/symbolmap: Add
3977 * doc/groff.texinfo: Minor additions and fixes.
3978 * man/groff_diff.man: Remove documentation of fp request. This
3979 is already covered in the original troff manual.
3980 Updated to be consistent with other doc files.
3983 2002-02-24 Werner LEMBERG <wl@gnu.org>
3985 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
3987 Define new variable OTHERDEVDIRS (containing `font/devlj4
3988 font/devlbp' if not EBCDIC).
3989 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
3990 (OTHERDEVDIRS): New variable.
3991 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
3992 * configure: Regenerated.
3994 * NEWS, src/devices/grotty/grotty.man: Updated.
3996 2002-02-23 Werner LEMBERG <wl@gnu.org>
3998 * src/roff/troff/input.cc (do_overstrike, do_bracket,
3999 get_line_arg): Honour input level.
4001 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4003 * font/*/*: Implement it in all font files.
4004 * font/devps/generate/textmap, font/devps/generate/symbolchars,
4005 * font/devps/symbolmap: Updated.
4006 * font/devlj4/generate/text.map: Updated.
4007 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4008 * font/devdvi/generate/texmi.map: Updated.
4010 * font/devutf8/R.proto: Remove all `charXXX' entries.
4011 * font/devutf8/NOTES: Updated.
4013 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4016 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4018 * NEWS, man/groff_char.man: Updated.
4020 2002-02-21 Phil Lobbes <phil@perkpartners.com>
4022 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4024 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4026 * src/roff/grog/grog.pl: Fix computation of $refer.
4028 2002-02-19 Werner LEMBERG <wl@gnu.org>
4030 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4031 `snprintf' and `vsnprintf'.
4033 * src/include/htmlindicate.h: Renamed to...
4034 * src/include/htmlhint.h: This.
4035 * src/include/Makefile.sub: Updated.
4036 * src/preproc/eqn/main.cc: Updated.
4038 2002-02-18 Werner LEMBERG <wl@gnu.org>
4040 * man/roff.man, man/groff_out.man, man/groff.man,
4041 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4042 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4044 * win32-diffs: Updated.
4046 2002-02-17 Werner LEMBERG <wl@gnu.org>
4048 * doc/Makefile (clean): Add *.eps.
4049 (MEMACROS): Removed.
4050 (TFLAG): New variable.
4053 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4055 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4057 * tmac/www.tmac: Use dummy diversion while resetting and disabling
4059 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4061 * src/roff/troff/troff.man: Fix order of parameter description.
4065 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
4067 Simplify image handling for grohtml.
4070 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4072 (html_text::dump_stack): Don't emit newline while debugging.
4073 (html_text::do_push) [DEBUGGING]: Print more info.
4074 (html_text::check_emit_text): Fix handling of <p>.
4075 * src/devices/grohtml/html.h: Updated.
4076 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4077 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
4078 send its data to stderr also.
4080 (simple_output::space_or_newline) [DEBUGGING]: Removed.
4081 * src/devices/grohtml/post-html.cc (html_printer::do_links,
4082 html_printer::html_printer): Remove `DEBUGGING' conditionals.
4084 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4086 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4087 is_inline_image): Removed.
4088 (html_begin_suppress, html_end_suppress): Don't take a parameter.
4089 (graphic_start, graphic_end): Removed.
4090 * src/include/htmlindicate.h: Updated.
4091 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4092 (macroset_template): New global variable.
4093 (makeFileName): Use `macroset_template'.
4094 (write_end_image): Don't take a parameter.
4096 (write_start_image: Don't emit newline.
4097 (char_buffer::write_upto_newline): Updated.
4098 (char_buffer::skip_to_newline): Renamed to ...
4099 (char_buffer::skip_until_newline): This.
4101 (char_buffer::write_file_troff, char_buffer::write_file_html):
4103 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4104 (removeAllPages): Remove `DEBUGGING' conditionals.
4105 (addRegDef, dump_args): New functions.
4106 (char_buffer::do_html, char_buffer::do_image): Handle
4107 `www-image-template' command line variable.
4108 Add more debugging code.
4109 (addps4html): Removed.
4110 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4112 * src/preproc/eqn/main.cc: Include `ctype.h'.
4113 (suppress_html): Removed.
4115 (inline_equation): Use `html_begin_suppress' and
4116 `html_end_suppress'.
4117 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4118 (troff_output::start_picture, troff_output::finish_picture):
4120 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4121 (process_input_file): Updated.
4123 * src/roff/troff/div.cc (page_number): Set page number only if the
4124 `ps4html' register isn't defined.
4125 * src/roff/troff/input.cc (image_no): New external variable.
4126 (do_suppress): Use it.
4127 * src/roff/troff/node.h (suppress_node::image_id): New member.
4128 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4129 (suppress_node::suppress_node): Initialize `image_id' member.
4130 (suppress_node::same): Handle `image_id' also.
4131 (suppress_node::copy): Updated.
4132 (last_image_id): New global variable.
4133 (suppress_node::tprint): Use it.
4135 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4137 * tmac/pspic.mac (PSPIC): Fix html support.
4138 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4139 * tmac/www.tmac (www-image-template): Set up.
4140 (HTMLINDEX): Renamed to...
4142 (BODYCOLOR): Renamed to...
4144 (BACKGROUND): Renamed to...
4146 (URL): Change order of parameters for consistency.
4147 (MAILTO): Renamed to...
4149 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4150 (IMG, PIMG, MPIMG): This.
4151 (HTML-H-BEGIN, HTML-H-END): Renamed to...
4153 (LINKS): Renamed to...
4155 (LINE): Renamed to...
4157 (NO-AUTO-RULE): Renamed to...
4159 (HTML-TL): Renamed to...
4161 (UL-BEGIN, UL-END): Renamed to...
4163 (DROPCAP): Renamed to...
4165 (TS, TE, EQ, EN): Provide default definitions.
4166 (www-make-unique-name): Updated.
4167 (HTML-IMAGE-INLINE): Fix typo.
4168 * tmac/groff_www.man: Updated.
4170 * doc/Makefile (homepage.html): Add option -r to grohtml.
4171 Use shortened image name.
4172 * doc/groff.texinfo: Updated info on grohtml strings and macros.
4173 * doc/homepage.ms: Updated and extended.
4175 2002-02-14 Werner LEMBERG <wl@gnu.org>
4177 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4179 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4180 SGR_BACK_DEFAULT_COLOR): Replaced with ...
4181 (tty_printer::put_color): Use it.
4182 (ttr_printer::end_page): Simplify.
4184 2002-02-13 Werner LEMBERG <wl@gnu.org>
4186 * tmac/groff_tmac.man: Moved to...
4187 * man/groff_tmac.man: This place.
4188 * tmac/Makefile.sub, man/Makefile.sub: Updated.
4190 2002-02-12 Werner LEMBERG <wl@gnu.org>
4192 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4193 $(COMPILE.c) to not include groff's assert.h.
4195 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4197 * NEWS, src/drivers/grotty/grotty.man: Document it.
4199 2002-02-11 Werner LEMBERG <wl@gnu.org>
4201 * src/libs/snprintf/snprintf.c: Updated to latest version
4204 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
4205 test whether there is `.]' also.
4206 Don't check for spaces after `.['.
4207 * src/roff/grog/grog.sh: Do the same.
4209 2002-02-10 Werner LEMBERG <wl@gnu.org>
4213 * src/libs/libgroff/illegal.cc: Renamed to ...
4214 * src/libs/libgroff/invalid.cc: This.
4215 (illegal_char_table): Renamed to ...
4216 (invalid_char_table): This.
4217 * src/libs/libgroff/Makefile.sub: Updated.
4218 * win32-diffs: Updated.
4220 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4221 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4222 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4223 font::load), src/preproc/eqn/main.cc (read_line, main),
4224 src/preproc/eqn/lex.cc (file_input::read_line),
4225 src/preproc/pic/lex.cc (file_input::read_line,
4226 simple_file_input::get, simple_file_input::peek),
4227 src/preproc/pic/main.cc (top_input::get, top_input::peek),
4228 src/preproc/pic/pic.man, src/preproc/refer/main.cc
4229 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4230 do_bib), src/preproc/tbl/main.cc (table_input::get),
4231 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4232 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4233 do_zero_width, read_request, encode_char, ps_get_line,
4234 transparent_file, get_char_for_escape_name, transparent_translate,
4235 asciify, input_char_description, read_string, set_string),
4236 src/roff/troff/env.cc (environment::add_html_tag),
4237 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4239 * src/include/lib.h: Updated.
4241 * src/preproc/eqn/eqn.cc: Removed.
4245 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4247 2002-02-09 Werner LEMBERG <wl@gnu.org>
4249 * doc/gnu.xpm: New image.
4250 * doc/Makefile (DOCS): Add homepage.ps.
4251 Add rules for converting xpm->png and xpm->eps.
4252 Use `gnu.{xpm,eps}' as image names.
4253 * doc/homepage.ms: Updated.
4255 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
4257 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4258 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4259 Remove calls to `B1' and `B2'
4260 (PNG-IMAGE): New macro for inclusion of images in PNG format.
4261 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4262 auxiliary variables for MARGIN-PNG-IMAGE.
4263 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4264 auxiliary macros for MARGIN-PNG-IMAGE.
4265 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4267 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4268 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4269 (DROPCAP): New macro to produce dropcap characters.
4270 (www-do-image): Renamed back to...
4271 (HTML-DO-IMAGE): This.
4272 Updated all callers.
4274 * doc/Makefile (gnubw.eps): Updated.
4275 * doc/homepage.ms: Updated.
4277 2002-02-08 Werner LEMBERG <wl@gnu.org>
4279 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4280 Added `linethick' to table in section `Style Variables'.
4282 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
4284 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4286 2002-02-07 Werner LEMBERG <wl@gnu.org>
4288 Adding options -C (compatibility mode) and -c (grotty's old output
4291 * src/roff/nroff/nroff.sh: Implement it.
4293 * NEWS, src/roff/nroff/nroff.man: Updated.
4295 * PROBLEMS: Document bison 1.32 bug.
4297 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4299 * src/roff/troff/node.cc (make_tfont): Define it earlier.
4300 * src/roff/troff/div.h: Add prototype for `end_diversions'.
4301 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4302 * src/roff/troff/env.h: Add prototype for `title'.
4304 Adding EBCDIC support to grotty.
4306 * src/devices/grotty/tty.cc (CSI): New macro.
4307 (SGR_*, tty_printer::put_color): Use it.
4309 2002-02-06 Werner LEMBERG <wl@gnu.org>
4311 Implementing color support in grotty. The new switch -c activates
4312 the old drawing scheme, disabling color at the same time. The new
4313 switch `-i' selects italic instead of underlining (SGR only).
4315 * src/devices/grotty/tty.cc (putstring): New define instead of
4316 `fputs'. Updated all callers.
4317 (old_drawing_scheme): New global variable.
4318 (COLOR_CHANGE): New enum value.
4319 (SGR_*): New defines containing color handling escape sequences.
4320 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4321 (glyph): New members `back_color_idx' and `fore_color_idx'.
4322 (glyph::order): Add COLOR_CHANGE.
4323 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4324 `is_underline', `is_bold', `cu_flag', `tty_colors'.
4325 New methods `make_underline', `make_bold', `color_to_idx',
4326 `change_color', `put_color'.
4327 (cu_flag): Moved into `tty_printer' class.
4328 (tty_printer::tty_printer): Initialize colors.
4329 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4330 tty_printer::draw, tty_printer::end_page): Handle colors also.
4331 (main): Add options `-c' and `-i'.
4333 * NEWS, src/devices/grotty/grotty.man: Updated.
4335 * src/include/errarg.h (errarg): Add support for `unsigned int'.
4336 * src/libs/libgroff/errarg.c: Implement it.
4338 * src/include/printer.h (printer): Add `change_color' method
4339 (currently used by grotty only).
4340 * src/libs/libdriver/printer.cc: Implement it.
4341 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4342 call to `pr->change_color'.
4344 * src/roff/troff/node.cc (troff_output_file::fill_color,
4345 troff_output_file::glyph_color): Call `do_motion'.
4347 * tmac/tty.tmac: Add color definitions.
4349 * src/roff/groff/groff.man: Minor fixes.
4351 2002-02-05 Bernd Warken <bwarken@mayn.de>
4353 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4354 it. This is a preparation for future changes.
4356 2002-02-05 Werner LEMBERG <wl@gnu.org>
4358 * src/roff/troff/input.cc (process_input_stack): Fix the case
4359 where leading spaces are followed by \f or \s; previously, an
4360 incorrect space width has been used.
4362 * doc/roff.man (quoted_char): Fix argument.
4363 (comment): Define string.
4365 2002-02-04 Larry Kollar <kollar@alltel.net>
4367 * doc/groff.texinfo: More fixes.
4369 2002-02-04 Werner LEMBERG <wl@gnu.org>
4371 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4372 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4373 `restore_compatibility' before `output_string' -- the LINE_STRING
4374 register now already contains proper switches from and to
4377 * man/groff_char.man: Add Euro symbol.
4378 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4379 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4380 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4383 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4385 (.texinfo.html): Add support for texinfo->html.
4387 2002-02-03 Werner LEMBERG <wl@gnu.org>
4389 Added three new requests `ds1', `as1', and `ami'. The former two
4390 are equivalent to `ds' and `as' with the difference that
4391 compatibility mode is saved on entry, switched off during string
4392 expansion, and restored on exit. The latter is the pendant to `dei'
4395 (do_define_string): Use `define_mode' and `calling mode'.
4396 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4397 end of string, respectively.
4398 (define_string, append_string): Use `calling_mode'.
4399 (define_nocomp_string, append_nocomp_string,
4400 define_string_indirect): New functions.
4401 (init_input_requests): Updated.
4402 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4404 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4405 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
4406 mm macro package accesses this string register directly.
4407 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4409 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
4412 2002-02-02 Larry Kollar <kollar@alltel.net>
4414 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4416 2002-01-31 Werner LEMBERG <wl@gnu.org>
4418 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4420 2002-01-31 Bernd Warken <bwarken@mayn.de>
4422 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4423 * man/groff_out.man: Revised and updated.
4425 2002-01-30 Bernd Warken <bwarken@mayn.de>
4427 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4428 out the unused `{' and `}' commands. Undefined by default.
4429 (IntArray): Make `data' private.
4430 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4431 new methods instead.
4432 (skip_line_D, skip_to_end_of_line): New functions.
4433 (get_D_fixed_args): Use `skip_line_D'.
4434 Changed to handle dummy odd arguments by ...
4435 (get_D_fixed_args_odd_dummy): This new function.
4436 (get_D_variable_args): Split some code into ...
4437 (get_possibly_integer_args): This new function.
4438 (send_draw): Use more `const'.
4439 (delete_current_env): New function.
4440 (position_to_end_of_args): Use `size_t'.
4442 (send_draw): Updated.
4443 (parse_D_command): Handle `c', `C', and `t' better.
4447 2002-01-29 Werner LEMBERG <wl@gnu.org>
4450 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4451 @Def...ListEnd which replaces @Def...x. This is necessary to get
4452 proper HTML output -- see the comment in the file for more
4456 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
4458 Fixes to make color changes of 2002-01-21 work with grohtml.
4460 * src/devices/grohtml/post-html.cc (style): Updated.
4461 (html_printer): Remove unused methods.
4462 (html_printer::do_font, html_printer::draw, html_printer::set_char,
4463 html_printer::special): Updated.
4464 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4465 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4466 Added some debugging code.
4467 (html_text::start_tag): Updated.
4468 (html_text::do_push): New method.
4469 (html_text::push_para): Call it.
4470 Add method for handling color.
4471 (html_text::do_color): Updated.
4472 (html_text::shutdown): Handle color.
4473 * src/devices/grohtml/html-text.h (tag_definition): New member
4477 2002-01-28 Werner LEMBERG <wl@gnu.org>
4479 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4481 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
4483 Add two switches -a and -g to control the antialiasing bits for
4484 text and graphics, respectively.
4486 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4488 * src/devices/grohtml/grohtml.man: Document them.
4489 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4491 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4492 (setupAntiAlias): New function.
4493 (createAllPages): Updated.
4494 (scanArguments): Handle `-a' and `-g'.
4495 (main): Call `setupAntiAlias'.
4498 2002-01-27 Werner LEMBERG <wl@gnu.org>
4500 * doc/groff.texinfo (Def*): Call index function after deffn.
4502 * tmac/html.tmac: Call `nroff' request.
4504 2002-01-26 Larry Kollar <kollar@alltel.net>
4506 * tmac/groff_ms.man: Add some omissions.
4508 2002-01-25 Larry Kollar <kollar@alltel.net>
4510 * tmac/groff_ms.man: Typographical improvements.
4512 2002-01-25 Werner LEMBERG <wl@gnu.org>
4514 * doc/groff.texinfo: Updated version and copyright.
4515 * src/devices/grops/grops.man: Updated.
4517 * tmac/groff_tmac.man: Fix `ig' macro.
4519 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4521 Use `.ne' unconditionally everywhere.
4522 (TS): Only insert some vertical space. Doing a page break is no
4523 longer necessary due to the redefinition of the `ne' request.
4525 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4526 warning for unknown subcommands but parse and pass them to the
4529 2002-01-24 Werner LEMBERG <wl@gnu.org>
4531 * tmac/groff_www.man, NEWS: Fix typos.
4533 2002-01-21 Werner LEMBERG <wl@gnu.org>
4535 Complete revision of color support:
4537 Adapt programs to the new libdriver/input.cc.
4539 Color spaces are no longer converted to RGB but transferred as-is
4540 in the troff intermediate output format.
4542 Handle default color gracefully. troff now supports a `default'
4543 color (which can't be changed).
4545 grops will now use the proper color space functions if available.
4549 Note that currently grohtml doesn't handle colors properly. This
4552 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
4553 (ui_to_a): New function.
4554 * src/include/lib.h: Updated.
4556 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
4557 (color): Simplified; removed all `double' members and methods.
4558 A new array `components' now holds the color parameters.
4559 (color::is_default, color::get_components): New methods.
4560 (color::operator==, color:operator!=): New.
4561 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
4562 to make access to the `components' array more comprehensible.
4563 * src/libs/libgroff/color.cc: Implement new color support.
4564 (atoh): Small fixes.
4565 (color::read_encoding): Simplified for new troff intermediate color
4567 (default_color): New global variable.
4569 * src/roff/troff/input.cc (default_symbol): New global variable.
4570 (lookup_color): Use it.
4571 (default_black): Removed.
4572 (do_glyph_color, do_fill_color): Simplified.
4573 (define_color): Handle default color.
4575 (do_if_request): Handle default color.
4576 * src/roff/troff/env.cc (environment::environment): Initialize
4577 colors with `default_color'.
4578 * src/roff/troff/node.cc (troff_output_file::put): Add method
4580 (troff_output_file::hex): Removed.
4581 (troff_output_file::fill_color, troff_output_file::glyph_color):
4582 Updated to include/color.h and libdriver/input.cc.
4584 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
4585 fill color properly (identically to the outline color). \D'f...'
4586 doesn't work any more.
4587 All function calls to it updated.
4589 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
4591 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
4594 * src/devices/grops/ps.cc (ps_output::put_color): New method.
4595 (ps_printer::sbuf_color): Make a real member instead of pointer.
4596 (ps_printer::fill_color, ps_printer::output_color): Removed.
4597 (ps_printer::ps_printer): Updated.
4598 (ps_printer::set_char): Ditto.
4599 (ps_printer::set_color): Use various color schemes.
4600 Use `put_color' method.
4601 (ps_printer::flush_sbuf): Don't set color.
4602 (ps_printer::fill_path): Take `environment' as parameter.
4603 Simplify color handling.
4604 (ps_printer::set_line_thickness): Renamed to ...
4605 (ps_printer::set_line_thickness_and_color): This (and updated).
4606 (ps_printer::set_color): Change second parameter from `complete'
4607 to `fill' which better describes what it does.
4608 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
4609 and text in the right order.
4611 Remove branches for `f' and `F'; this is handled by
4613 * src/devices/grops/ps.h: Updated.
4614 * font/devps/prologue (FL): Redefined.
4615 ({F,C}r,k,g: New color functions (with and without filling).
4617 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
4618 * man/groff_diff.man, man/groff.man, man/groff_out.man,
4619 doc/groff.texinfo, NEWS: Updated.
4621 2002-01-20 Bernd Warken <bwarken@mayn.de>
4623 * src/libs/libdriver/input.cc: Completely rewritten. See comments
4624 in this file for what has been changed.
4626 2002-01-19 Werner LEMBERG <wl@gnu.org>
4628 * test-groff: Fix GROFF_FONT_PATH.
4629 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
4630 is read before .TH or .Dd is parsed.
4632 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
4634 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
4635 quadrant boundaries.
4637 2002-01-18 Werner LEMBERG <wl@gnu.org>
4639 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
4642 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
4644 * tmac/doc.common: Initialize %I register for the %I macro to
4645 avoid (harmless) warning.
4646 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
4647 when in the SYNOPSIS section.
4649 2002-01-17 Bruno Haible <haible@clisp.cons.org>
4651 * src/preproc/pic/lex.cc (get_token): Fix typo.
4653 2002-01-17 Werner LEMBERG <wl@gnu.org>
4655 * devices/grops/ps.cc: Fix incorrectly applied last patch.
4657 2002-01-17 Larry Kollar <kollar@alltel.net>
4659 * tmac/groff_ms.man: Completely rewritten.
4661 2002-01-16 Werner LEMBERG <wl@gnu.org>
4663 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
4665 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
4667 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
4669 (ps_printer::draw): Ditto.
4671 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
4673 * tmac/groff_mdoc.man: Minor fixes.
4675 2002-01-13 Werner LEMBERG <wl@gnu.org>
4677 * man/groff_out.man: Some fixes.
4679 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
4681 * doc/pic.ms: Fix typos.
4683 2002-01-12 Werner LEMBERG <wl@gnu.org>
4685 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
4687 2002-01-10 Werner LEMBERG <wl@gnu.org>
4689 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
4693 2002-01-09 Bernd Warken <bwarken@mayn.de>
4695 * man/groff_out.man: Revised.
4696 * man/roff.man: Minor fixes.
4697 * src/roff/troff/troff.man: Some reordering.
4699 2002-01-09 Werner LEMBERG <wl@gnu.org>
4701 * tmac/an-old.tmac: Add dummy macros for equation support.
4703 2002-01-07 Werner LEMBERG <wl@gnu.org>
4705 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
4707 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
4709 * tmac/groff_man.man: Small improvements.
4711 2002-01-07 Bernd Warken <bwarken@mayn.de>
4713 * man/groff_diff.man: Revised.
4715 2002-01-06 Werner LEMBERG <wl@gnu.org>
4717 * tmac/www.tmac: Remove extraneous backslash.
4719 2002-01-06 Bernd Warken <bwarken@mayn.de>
4721 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
4723 2002-01-05 Werner LEMBERG <wl@gnu.org>
4725 Integrated groffer, contributed by Bernd Warken.
4727 * contrib/groffer/*: New.
4728 * Makefile.in, NEWS: Updated.
4730 2002-01-04 Werner LEMBERG <wl@gnu.org>
4732 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
4733 registers defined in macro packages.
4734 Revising the ms part.
4736 2002-01-04 Larry Kollar <kollar@alltel.net>
4738 * doc/groff.texinfo: Add documentation for ms macros.
4740 2002-01-02 Werner LEMBERG <wl@gnu.org>
4742 First step in adding PS support for the Euro symbol. `eu' is the
4743 official Euro logo, `Eu' is a font-specific glyph variant.
4745 * font/devps/text.enc: Add `Euro' at position 9.
4746 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
4747 * font/devps/symbolmap: Regenerated.
4751 2002-01-02 Bernd Warken <bwarken@mayn.de>
4753 * man/roff.man: Revised.
4755 2002-01-01 Bernd Warken <bwarken@mayn.de>
4757 * src/roff/groff/groff.man: Completely rewritten.
4759 2001-12-31 Werner LEMBERG <wl@gnu.org>
4761 * doc/Makefile: Updated.
4763 2001-12-30 Werner LEMBERG <wl@gnu.org>
4765 * tmac/www.tmac: Make all names of internal macros/registers/strings
4766 lowercase, and prepend `www-'.
4767 Other minor changes.
4768 * src/roff/troff/troff.man: Add preprocessor string at BOF.
4770 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
4772 Implement option `-b' in grohtml to set the HTML background colour.
4774 * src/devices/grohtml/post-html.cc (default_background): New global
4776 (html_printer::html_printer): Initialize `background' to
4777 `default_background'.
4778 (main): Implement option `-b'.
4780 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
4782 * src/devices/grohtml/grohtml.man: Updated.
4783 * doc/Makefile (.ms.html): Use `-b'.
4784 * tmac/html.tmac: Don't set background color.
4786 Add new grohtml tag `.html-tl'.
4788 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
4790 (title_desc::title_desc): Updated.
4791 (html_printer::troff_tag): Handle `.html-tl'.
4792 (html_printer::write_title): Use `with_h1'.
4793 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
4794 (HTML-TL): New macro.
4796 Add support for unordered lists in HTML.
4798 * tmac/www.tmac (www-level): New auxiliary register.
4799 (www-level1, www-level2, www-level3): New auxiliary strings.
4800 (www-push-level, www-pop-level): New auxiliary macros
4801 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
4805 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
4806 (DEFAULT_VERTICAL_OFFSET): Removed.
4807 (IMAGE_BOARDER_PIXELS): Set to 0.
4808 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
4809 (vertical_offset): Initialize with 0.
4810 (gsPaper): New global variable.
4811 (get_resolution): Scan for and return unsigned int.
4812 (get_papersize): New function to get paper length from devps/DESC.
4813 (determine_vertical_offset): New function.
4814 (createAllPages): Produce gray-level images and use proper page
4816 (createImage): Use `-quiet' option of pnmcrop.
4817 (addZ): Fix passing of `-Z'.
4818 (scanArguments): Fix handling of `-o'.
4819 (main): Call `determine_vertical_offset'.
4820 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
4823 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
4824 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
4825 glyph descenders properly.
4827 * doc/homepage.ms: Include `gnubw.eps'.
4828 * doc/Makefile (gnubw.eps): New rule.
4829 (homepage.html): Depend on `gnubw.eps'.
4831 2001-12-25 Werner LEMBERG <wl@gnu.org>
4833 * src/roff/troff/input.cc (default_black): Fix return value.
4835 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
4837 * tmac/doc-common (Dt): Change output of architecture strings.
4838 Do some syntax cleanup.
4839 * tmac/groff_mdoc.man: Updated.
4841 2001-12-23 Werner LEMBERG <wl@gnu.org>
4843 Adding an `itc' request (input line trap accepting \c).
4845 * src/roff/troff/env.h (environment): New member
4846 `continued_input_trap'.
4847 Make `do_input_trap' a friend function instead of `input_trap'.
4848 * src/roff/troff/env.cc (environment::environment,
4849 environment::copy): Updated.
4850 (environment::newline): Implement it.
4851 (do_input_trap): New function.
4852 (input_trap): Call `do_input_trap'.
4853 (input_trap_continued): New function.
4854 (init_env_requests): Updated.
4855 * src/roff/troff/TODO: Updated.
4857 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
4860 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
4862 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
4864 * tmac/doc-common, tmac/doc-syms: Small updates.
4866 2001-12-22 Colin Watson <cjwatson@debian.org>
4868 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
4870 2001-12-22 Bernd Warken <bwarken@mayn.de>
4872 * MANIFEST: New file.
4874 2001-12-22 Werner LEMBERG <wl@gnu.org>
4876 * src/preproc/grn/grn.man: Updated.
4878 2001-12-22 Solar Designer <solar@openwall.com>
4880 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
4883 2001-12-19 Werner LEMBERG <wl@gnu.org>
4885 Implement a fallback character request `.fchar'.
4887 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
4888 (is_fallback): New inline function.
4889 * src/roff/troff/input.cc (do_define_character): New function.
4890 (define_character): Call `do_define_character'.
4891 (define_fallback_character): New function.
4892 (init_input_requests): Add `fchar'.
4893 (charinfo::charinfo): Updated.
4894 (charinfo::set_macro): New argument to set `fallback' flag.
4895 * src/roff/troff/node.cc (make_glyph_node, make_node,
4896 node::add_char): Check `fallback' flag.
4897 * NEWS, man/groff_diff.man, man/groff_man: Updated.
4899 2001-12-16 Werner LEMBERG <wl@gnu.org>
4901 * groff.texinfo: Document exact search algorithm for glyphs.
4903 2001-12-15 Werner LEMBERG <wl@gnu.org>
4905 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
4906 the left side of $(MANPAGES) rule to make it always non-empty.
4908 2001-12-14 Werner LEMBERG <wl@gnu.org>
4910 * src/roff/troff/input.cc (default_black): Define default color
4911 `black' if not yet defined.
4913 2001-12-13 Werner LEMBERG <wl@gnu.org>
4915 Implement new string-valued register `.fn' to return the current
4916 real (internal) font name.
4918 * env.cc (environment::get_font_name_string): New function.
4919 (init_env_requests): Add `.fn' register.
4920 * env.h (environment): Updated.
4921 * node.cc (font_info): Make `get_font_name' a friend.
4922 (get_font_name): New function.
4925 * man/groff_diff.man, man/groff.man, NEWS: Updated.
4927 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4929 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
4931 2001-12-12 Werner LEMBERG <wl@gnu.org>
4933 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
4935 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
4937 * man/groff_diff.man: Adding documentation for \O.
4939 2001-12-10 Werner LEMBERG <wl@gnu.org>
4941 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
4942 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
4944 2001-12-09 Werner LEMBERG <wl@gnu.org>
4946 * man/roff.man: Revised.
4947 * src/roff/groff/groff.man: Replace man page references with a
4948 pointer to roff.man.
4950 2001-12-09 Bernd Warken <bwarken@mayn.de>
4952 * man/roff.man: Completely rewritten.
4954 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4956 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
4958 2001-12-05 Werner LEMBERG <wl@gnu.org>
4960 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
4962 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
4963 order of initializers.
4966 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
4968 * doc/groff.texinfo: Fix documentation of \O.
4970 * src/devices/grohtml/html-text.cc (html_text::do_indent,
4971 html_text::do_table, html_text::do_emittext, html_text::do_para):
4972 Use `const' for first argument.
4973 (html_text::do_table): Use cast.
4974 * src/devices/grohtml/html-text.h: Updated.
4975 * src/devices/grohtml/output.cc (simple_output::put_string): Add
4976 method for `const string &s'.
4977 * src/devices/grohtml/html.h: Updated.
4978 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
4979 (ANCHOR_TEMPLATE): Modified.
4980 (manufacture_headings): New global variable to handle `-h' option.
4981 (is_subsection): Removed.
4982 (char_buffer::add_string): Add `const' to first argument.
4983 Protect against invalid string argument.
4984 Add method for `const string &s'.
4985 (text_glob): Completely redesigned.
4986 (page): Use `const' for strings and remove string length variable.
4987 (page::add_html): Removed.
4988 (page::add_end_encode): New member function.
4989 (to_unicode): Moved upwards.
4990 (title_desc, header_desc): Updated.
4991 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
4993 (html_printer::is_bold, html_printer::make_bold): New member
4995 (html_printer::end_of_line): Updated.
4996 (generate_img_src, html_printer::do_auto_image,
4997 html_printer::do_title, html_printer::write_header,
4998 html_printer::determine_header_level, html_printer::do_heading,
4999 html_printer::do_linelength, html_printer::do_pageoffset,
5000 html_printer::do_indentation, html_printer::do_tempindent,
5001 html_printer::do_indentedparagraph, html_printer::do_break,
5002 html_printer::flush_sbuf, get_html_translation,
5003 html_printer::begin_page, html_printer::special): Rewritten to get
5004 rid of static string length limit.
5005 (html_printer::troff_tag): Added `.no-auto-rule'.
5006 (html_printer::flush_globs): Small fix.
5007 (html_printer::determine_space): Don't compute `space_width'.
5008 (html_printer::translate_to_html): Renamed to ...
5009 (html_printer::emit_html): This (with updates).
5010 (html_printer::write_header): Implement `-h' option.
5011 (html_printer::draw): Remove commented-out code. Handle `F'
5013 (html_printer::add_char_to_sbuf): Removed.
5014 (html_printer::add_to_sbuf): Rewritten.
5015 (html_printer::sbuf_continuation): Fixed.
5016 (html_printer::seen_backwards_escape, reverse,
5017 html_printer::remove_last_char_from_sbuf): Removed.
5018 (char_translate_to_html, str_translate_to_html): Removed.
5019 (html_printer::overstrike): New function member.
5020 (html_printer::set_char): Use it.
5021 (html_printer::do_body): New function member.
5022 (html_printer::~html_printer): Use it.
5023 (main): Handle `-h' option.
5025 * src/devices/grohtml/grohtml.man: Document -h switch.
5027 * src/preproc/html/pre-html.cc: Include searchpath.h
5028 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5029 (get_resolution): New function.
5030 (checkImageDir): Use `0777' permissions in mkdir()
5031 (write_start_image): Rewritten to use `\O[5...]'.
5032 (createImage, generateImages): Updated.
5033 (main): Handle `F' and `h' options.
5034 Use `get_resolution'.
5036 * src/roff/troff/input.cc (begin, end, image): Removed.
5037 (do_suppress): Take parameter.
5038 Handle modified syntax of `\O'.
5039 (token::next): Updated.
5040 (init_markup_requests): Removed.
5043 * src/roff/troff/div.h: Add declaration for begin_page().
5045 * tmac/color-html.tmac: Removed. Contents moved to...
5046 * tmac/html.tmac: Here. Set background color.
5047 * tmac/color.tmac: Removed. Contents moved to...
5048 * tmac/ps.tmac: Here.
5049 * tmac/www.tmac: Remove the title command when generating images
5051 (NO_AUTO_RULE): New macro.
5052 (HTML_DO_IMAGE): Use revised `\O' escapes.
5053 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5055 2001-12-02 Werner LEMBERG <wl@gnu.org>
5057 * tmac/groff_mdoc.man: Fix typo.
5059 2001-12-01 Colin Watson <cjwatson@debian.org>
5061 * man/roff.man: Fix typo.
5063 2001-11-29 Werner LEMBERG <wl@gnu.org>
5065 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5068 * src/roff/troff/input.cc (read_draw_node): Emit error message if
5069 more than one argument to \D'f ...'.
5071 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5073 2001-11-28 Werner LEMBERG <wl@gnu.org>
5075 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5078 * tmac/groff_man.man: Minor cosmetic fix.
5080 2001-11-27 Werner LEMBERG <wl@gnu.org>
5082 * src/roff/groff/groff.man, tmac/groff_tmac.man,
5083 tmac/groff_www.man: s/mwww/www/.
5085 2001-11-26 Werner LEMBERG <wl@gnu.org>
5087 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5088 * configure: Regenerated.
5089 * win32-diffs: Updated.
5091 * tmac/groff_mwww.tmac: Renamed to ...
5092 * tmac/groff_www.tmac: This.
5093 * tmac/mwww.tmac: Removed.
5094 * NEWS, tmac/Makefile.sub: Updated.
5096 2001-11-21 Werner LEMBERG <wl@gnu.org>
5098 * doc/groff.texinfo: Improve documentation of the `\v' escape.
5099 Fix explanation of `\D' and `rt'.
5101 2001-11-20 Werner LEMBERG <wl@gnu.org>
5103 * tmac/an-old.tmac (an-header): Set header length equal to page
5105 * doc/groff.texinfo: Improve documentation of `ne' request. Other
5109 2001-11-19 Werner LEMBERG <wl@gnu.org>
5111 * NEWS, man/Makefile.sub: Updated.
5113 2001-11-19 Bernd Warken <bwarken@mayn.de>
5115 * man/ditroff.man: New file.
5117 2001-11-17 Werner LEMBERG <wl@gnu.org>
5119 * man/groff_differences.man: Renamed to ...
5120 * man/groff_diff.man: This. Updated.
5121 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5123 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5124 * src/preproc/html/pushback.cc: This. Updated.
5125 * src/preproc/html/pushbackbuffer.h: Renamed to ...
5126 * src/preproc/html/pushback.h: This.
5127 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5130 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5131 * src/libs/libgroff/htmlhint.cc: This.
5132 * src/libs/libgroff/Makefile.sub: Updated.
5134 * tmac/an-old.tmac (an-end): Fix page length.
5136 2001-11-16 Werner LEMBERG <wl@gnu.org>
5138 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5139 * man/Makefile.sub: Include groff_differences.man.
5140 * VERSION: Set to 1.18.
5141 * REVISION: Set to 0.
5143 2001-11-16 Bernd Warken <bwarken@mayn.de>
5145 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5146 the second dot (or ending macro name) to end a macro.
5147 * doc/groff.texinfo: Doc fix.
5149 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
5151 * tmac/doc-common (doc-header): Handle very long document titles
5154 2001-11-16 Werner LEMBERG <wl@gnu.org>
5156 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5158 2001-11-15 Werner LEMBERG <wl@gnu.org>
5160 * src/roff/troff/troff.man: Revised and split into troff.man and...
5161 * man/groff_differences.man: New file.
5164 2001-11-13 Werner LEMBERG <wl@gnu.org>
5166 * tmac/an-old.tmac (TS, TE): New macros for table support.
5168 2001-11-12 Werner LEMBERG <wl@gnu.org>
5170 * src/include/lib.h: Provide a fix for emx to not include
5173 2001-10-27 Werner LEMBERG <wl@gnu.org>
5175 * src/roff/troff/input.cc (substring_macro): Fix computation of
5178 2001-10-20 Werner LEMBERG <wl@gnu.org>
5180 Undo change from 2001-08-28.
5182 * src/roff/troff/input.cc (have_input): New global variable.
5183 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5184 in compatibility mode.
5185 (process_input_stack): Use it.
5187 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
5189 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5190 being handled as end-of-sentence characters,
5192 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
5194 * src/roff/troff/input.cc (file_iterator): New members
5195 `suppress_newline_flag' and `seen_escape'.
5196 (file_iterator::next_file): Updated.
5197 (file_iterator::fill): Use it.
5198 (string_iterator): New member `suppress_newline_flag'.
5199 (string_iterator::fill): Set it.
5200 (get_color_element): Use MAX_COLOR_VAL.
5201 * src/roff/troff/env.cc (environment): Remove `need_eol'.
5202 (no_fill): Don't set `env->ignore_next_eol'.
5203 (environment::newline): Handle `eol' tag properly.
5205 (environment::add_html_tag): Set `env->ignore_next_eol'.
5207 * src/roff/troff/env.h (environment): Updated.
5209 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5211 (html_printer::outstanding_eol): New member function.
5212 (html_printer::do_title): Use new functions.
5213 (html_printer::troff_tag): Test `id_eol_ce'.
5215 2001-10-10 Werner LEMBERG <wl@gnu.org>
5217 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5218 files work with -C also.
5220 2001-10-05 Werner LEMBERG <wl@gnu.org>
5222 * doc/pic.ms: Minor fix.
5223 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5224 as a valid command line switch.
5225 * src/devices/grohtml/post-html.cc (main): Ditto.
5227 * src/devices/grohtml/grohtml.man: Updated.
5228 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5230 2001-10-04 Werner LEMBERG <wl@gnu.org>
5232 Implementing color support in troff, pic, grops, and grohtml. These
5233 changes are based on a major patch provided by Gaius Mulley
5236 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5237 definitions with both hex values and fractions.
5239 New escapes: \m and \M for drawing and background color,
5240 respectively. This corresponds to the troff output commands `m'
5243 groff and troff accept command line switch `-c' to disable color
5244 output (which is automatically disabled in compatibility mode).
5246 New scaling indicator `f' for fractions (1f = 65536u).
5248 New conditional operator `m' to test for defined colors with `if'
5251 New keywords `color' (or `colour', `colored', `coloured'), `outline'
5252 (or `outlined'), and `shaded' added to pic.
5254 * src/include/color.h: New file.
5255 * src/include/driver.h: Include it.
5256 * src/include/printer.h: Include color.h.
5257 (environment): New members `col' and `fill'.
5258 (printer): Remove `adjust_arc_center' member function.
5259 * src/include/Makefile.sub: Updated.
5261 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5263 Handle `m' and `DF' troff commands.
5264 * src/libs/libgroff/color.cc: New file.
5265 * src/libs/libgroff/Makefile.sub: Updated.
5267 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5269 (createImage): Fix computation of `y2'.
5271 (buffer::write_file_html): Remove calls to `stop'.
5273 * src/preproc/pic/common.h (common_output): New abstract function
5274 members `set_color', `reset_color', `get_last_filled', and
5275 `get_outline_color'.
5276 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5277 (object_spec): Add members `shaded' and `outlined'.
5278 * src/preproc/pic/output.h (output): `command' is now abstract.
5279 New function members `set_color', `reset_color', `get_last_filled',
5280 and `get_outline_color'.
5281 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5282 `outline[d]', and `shaded'.
5283 * src/preproc/pic/object.cc (output::command): Removed.
5284 (output::set_location): Moved to output.h.
5285 (graphic_object): Add protected members `outline_color' and
5287 Add member functions `set_outline_color', `get_outline_color', and
5289 (closed_object): Add member function `set_fill_color'.
5290 Add member `color_fill'.
5291 (graphic_object::print_text): Use `out->set_color' and
5293 (box_object::print, ellipse_object::print, circle_object::print,
5294 line_object::print, spline_object::print, arc_object::print): Ditto.
5295 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5296 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5297 `SHADED', making them `%left'.
5298 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5299 * src/preproc/pic/tex.cc (tex_output): New dummy function members
5300 `set_color', `reset_color', `get_last_filled', and
5301 `get_outline_color'.
5302 * src/preproc/pic/troff.cc (simple_output): New abstract function
5303 members `set_color', `reset_color', and `get_last_filled'.
5304 (simple_output::polygon, simple_output::circle,
5305 simple_output::ellipse): Use `get_last_filled'.
5306 (troff_output): New members `last_filled' and `last_outlined'.
5307 New function members `set_color', `reset_color', `get_last_filled',
5308 and `get_outline_color'.
5309 (troff_output::finish_picture): Use `reset_color'.
5310 (troff_output::set_fill): Test `last_filled'.
5311 * src/preproc/pic/pic.man: Updated.
5313 * src/roff/groff/groff.cc (main): Implement `-c' option.
5314 (synopsis, help): Updated.
5315 src/roff/groff/groff.man: Updated.
5317 * src/roff/troff/troff.h: Include color.h.
5318 (warning_type): Add WARN_COLOR.
5319 * src/roff/troff/env.h (environment): New members
5320 `{cur,prev}_{glyph,fill}_color'.
5321 New member functions `get_{prev_,}{glyph,fill}_color'.
5322 * src/roff/troff/env.cc: Initialize and implement them.
5323 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5324 Replace `NULL' with `0' everywhere for consistency.
5325 (lookup_color, default_black, do_glyph_color, do_fill_color,
5326 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5327 define_color): New functions.
5328 (token::next): Implement \M and \m escapes.
5329 (do_if_request): Implement `m' operator.
5331 (main): Implement `-c' option.
5332 (init_markup_requests): Add `defcolor' request.
5333 (warning_table): Add `color' warning.
5334 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5336 * src/roff/troff/node.cc (troff_output_file): New members
5337 `current_{page,glyph}color'. New member functions `put_hex',
5338 `glyph_color', and `fill_color'.
5339 (glyph_color_node::*, fill_color_node::*): Implement it.
5340 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5341 (parse_term): Add support for `f'.
5342 * src/roff/troff/troff.man: Updated.
5344 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5346 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5347 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5349 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5350 (tag_definition): Use `void *' for arg1.
5351 (html_text): New member functions `do_color' and `done_color'.
5352 Use `void *' for second parameter of `push_para' member function.
5353 New `push_para' member function with a single parameter.
5354 Use `char *' for parameter of `issue_table_begin' member funtion.
5355 New `issue_color_begin' member function.
5356 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5358 (html_text::issue_color_begin): New function.
5359 (html_text::issue_table_begin): Use `char *' for parameter.
5360 (html_text::start_tag, html_text::shutdown,
5361 html_text::check_emit_text): Updated.
5362 (html_text::push_para): Use `void *' for second parameter.
5363 Add same function with only one parameter.
5364 (html_text::do_*): Updated.
5365 (html_text::do_color, html_text::done_color): New functions.
5366 * src/devices/grohtml/post-html.cc (style): New member `col'.
5367 Mew member `style' with 6 parameters.
5368 (style::style, style::operator==): Updated.
5369 (html_printer::do_font): Use it.
5370 (html_printer::draw): Add dummy entry for `F'.
5371 (html_printer::set_char): Updated.
5372 * src/devices/grohtml/grohtml.man: Updated.
5374 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5375 trailing zeroes removed.
5376 (ps_printer): New members `sbuf_color', `fill_color', and
5378 Removed member `fill'.
5379 New member function `set_color'.
5380 (ps_printer::ps_printer, ps_printer::set_char): Updated.
5381 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5382 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5384 * tmac/color-html.tmac, tmac/color.tmac: New files.
5385 * tmac/troffrc: Include them.
5386 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5387 * tmac/Makefile.sub: Updated.
5389 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5390 man/groff.man: Updated.
5391 * font/devps/prologue.ps: Define FC and CO functions.
5393 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
5395 Fix incorrect cropping of images and incorrect handling of special
5396 characters. Fix handling of file names in \O.
5398 * src/include/geometry.h: New file.
5399 * src/libs/libgroff/geometry.cc: New file.
5400 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5402 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5404 (do_suppress): Updated.
5405 * src/roff/troff/node.cc: Include geometry.h.
5406 (troff_output_file::flush_tbuf): Fixed parameters to
5407 `check_output_limits'.
5408 (troff_output_file::check_charinfo): Ditto.
5409 (troff_output_file::determine_line_limits): Add support for `Da'
5412 * src/devices/grohtml/post-html.cc (str_translate_to_html):
5413 Add new parameter `is_special' to decode special characters from
5415 (html_printer::do_title, html_printer::do_heading,
5416 html_printer::do_indentedparagraph,
5417 html_printer::translate_to_html, html_printer::special): Updated.
5419 2001-10-03 Werner LEMBERG <wl@gnu.org>
5421 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5422 Fix entry for config.h.
5423 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5424 * tmac/troffrc: Translate nonbreakable space character to `\~'.
5425 * src/preproc/eqn/eqn.man: Document -d command line option.
5427 2001-09-27 Werner LEMBERG <wl@gnu.org>
5429 * man/groff.man: Use
5437 instead of the old code (`.ad .hy' after the table) to suppress
5438 incorrect hyphenation for grohtml output.
5440 2001-09-22 Werner LEMBERG <wl@gnu.org>
5442 * man/groff_font.man, man/groff_out.man: Minor fixes.
5444 2001-09-20 Werner LEMBERG <wl@gnu.org>
5446 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
5447 Arnold Robbins <arnold@skeeve.com>).
5449 2001-09-09 Werner LEMBERG <wl@gnu.org>
5451 * configure: Regenerated with autoconf 2.52.
5453 * doc/groff.texinfo: Complete revision of indices.
5455 2001-09-07 Werner LEMBERG <wl@gnu.org>
5457 * doc/Makefile (clean): Updated to delete all indices.
5459 2001-09-05 Werner LEMBERG <wl@gnu.org>
5461 * src/roff/troff/troff.man: Remove superfluous line.
5463 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5464 given on the command line (or rather, if only the default warnings
5467 2001-09-03 Werner LEMBERG <wl@gnu.org>
5469 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5470 use .ne for TTY devices.
5472 2001-08-31 Werner LEMBERG <wl@gnu.org>
5474 * src/roff/troff/token.h, src/roff/troff/input.cc:
5475 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5477 2001-08-28 Werner LEMBERG <wl@gnu.org>
5479 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5480 * src/roff/troff/input.cc (token::next): Return
5481 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5483 (token::description): Updated.
5484 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5485 (token::add_to_node_list, token::process): Ignore
5486 TOKEN_TRANSPARENT_ESCAPE.
5488 2001-08-27 Werner LEMBERG <wl@gnu.org>
5490 * tmac/an-old.tmac: Fix `S' string.
5492 2001-08-26 Werner LEMBERG <wl@gnu.org>
5494 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5496 2001-08-25 Werner LEMBERG <wl@gnu.org>
5498 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5500 Many other minor fixes.
5502 * configure.ac: Add message at end to inform how to compile
5504 * configure: Regenerated.
5506 2001-08-24 Werner LEMBERG <wl@gnu.org>
5508 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5509 Updated to latest version of libc.
5511 2001-08-23 Werner LEMBERG <wl@gnu.org>
5513 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5514 Autoconf 2.50 and newer can handle this.
5515 * configure: Regenerated.
5517 2001-08-21 Werner LEMBERG <wl@gnu.org>
5519 * doc/pic.ms: Fix typo.
5520 * src/preproc/tbl/tbl.man: Document case of global options.
5522 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
5524 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5525 handling of `CR' font.
5527 2001-08-20 Werner LEMBERG <wl@gnu.org>
5529 Use a config.h file.
5531 * src/include/lib.h: Include config.h.
5532 * All C files: Ditto (if necessary).
5533 * All C++ source and header files: Include lib.h first (if
5536 * src/include/config.hin: New file (autogenerated by autoheader).
5537 * stamp-h.in: New file.
5538 * configure.ac: Updated.
5539 * aclocal.m4: Add third parameters to AC_DEFINE macros.
5540 (GROFF_ARRAY_DELETE): Simplified.
5541 * Makefile.sub (DISTCLEANFILES): Updated.
5542 Added targets for remaking config.status, config.hin, config.h,
5543 stamp-h.in, and stamp-h.
5544 * configure: Regenerated.
5546 2001-08-19 Werner LEMBERG <wl@gnu.org>
5550 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
5552 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
5553 (do_sprintf): Use snprintf().
5555 2001-08-18 Werner LEMBERG <wl@gnu.org>
5557 * src/libs/snprintf/*: Added an snprintf module written by Mark
5559 * src/libs/libgroff/Makefile.sub: Updated.
5560 * configure.ac: Add test for snprintf().
5561 * Makefile.in: Updated.
5562 * configure: Regenerated.
5564 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
5567 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
5569 * tmac/doc.tmac (Ex): New implementation.
5570 * tmac/doc-common, tmac/groff_tmac.man: Updated.
5572 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
5574 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
5576 * tmac/groff_tmac.man: Updated.
5578 2001-08-13 Werner LEMBERG <wl@gnu.org>
5580 * src/preproc/tbl/tbl.man: Minor documentation update.
5582 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
5584 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
5585 * configure.ac: Add declaration test for gettimeofday().
5586 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
5587 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
5588 * configure: Regenerated.
5590 2001-08-11 Werner LEMBERG <wl@gnu.org>
5592 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
5593 * configure.ac: Add declaration test for strcasecmp().
5594 * Makefile.in: Updated.
5595 * configure: Regenerated.
5596 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
5597 this is necessary because groff's mkstemp.cc is C++.
5598 Add declaration conditionally for strcasecmp().
5600 2001-08-10 Werner LEMBERG <wl@gnu.org>
5602 Integrated pic2graph, contributed by Eric S. Raymond.
5604 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
5606 * Makefile.in, NEWS: Updated.
5608 * src/preproc/tbl/tbl.man: Revised.
5610 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
5612 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
5614 2001-08-09 Werner LEMBERG <wl@gnu.org>
5616 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
5619 2001-08-08 Paul Eggert <eggert@twinsun.com>
5621 * Makefile.sub (configure): Depend on configure.ac, not
5623 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
5625 2001-08-07 Werner LEMBERG <wl@gnu.org>
5627 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
5630 2001-08-06 Werner LEMBERG <wl@gnu.org>
5632 * src/roff/troff/troff.man: Improve documentation of -E option.
5634 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5636 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
5639 2001-07-27 Werner LEMBERG <wl@gnu.org>
5641 * src/preproc/refer/refer.cc: Undo last change.
5642 * src/devices/grohtml/post-html.cc: Ditto.
5644 2001-07-26 Werner LEMBERG <wl@gnu.org>
5646 * src/preproc/refer/refer.cc: Include `lib.h'.
5647 * src/devices/grohtml/post-html.cc: Ditto.
5649 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
5651 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
5652 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
5653 * Makefile.in: Comment updated.
5654 * configure: Regenerated.
5656 2001-07-25 Werner LEMBERG <wl@gnu.org>
5658 * src/preproc/pic/pic.cc: Removed.
5659 * src/preproc/pic/pic_tab.h: Removed.
5660 * src/preproc/refer/label.cc: Removed.
5662 * doc/Makefile (.ms.html): Don't use a file name extension in
5663 argument to grohtml's -I option.
5664 * Makefile.in (dist): Remove CVS directories.
5665 Call `distfiles' target.
5667 * src/devices/grohtml/grohtml.man: Add information about valid
5668 versions of pnmtopng.
5669 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
5670 name instead of number.
5672 2001-07-24 Werner LEMBERG <wl@gnu.org>
5674 * doc/groff.texinfo: Minor fixes.
5676 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
5678 * doc/Makefile (.ms.html): Put image files into a subdirectory.
5681 2001-07-20 Werner LEMBERG <wl@gnu.org>
5683 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
5684 * src/libs/libgroff/mkstemp.cc: New file.
5685 * src/libs/libgroff/mksdir.cc: New file.
5686 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
5687 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
5688 * src/libs/libgroff/Makefile.sub: Updated.
5689 * src/include/lib.h: Add mksdir() prototype.
5690 * src/include/posix.h: Define S_IXUSR if not yet defined.
5692 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
5693 (createAllPages): Use mksdir() instead of current code.
5694 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
5695 (main): [!HAVE_MKSTEMP]: Removed.
5697 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
5698 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
5700 * configure.ac: Add tests for stdint.h, sys/time.h, and
5702 Call new GROFF_xxx macros.
5703 * configure: Regenerated.
5704 * Makefile.in: Comments updated.
5706 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
5708 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
5709 instead of current code.
5710 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
5711 * src/roff/groff/groff.cc (possible_command::insert_args): New
5713 (main): Use it for predriver handling instead of insert_arg().
5715 2001-07-19 Werner LEMBERG <wl@gnu.org>
5717 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
5720 * src/include/posix.h: Define S_IWUSR if not yet defined.
5722 2001-07-18 Werner LEMBERG <wl@gnu.org>
5726 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
5728 * tmac/groff_mdoc.man: Document new -width and -column syntax.
5729 Some other minor fixes.
5730 * tmac/an-old.tmac: Add `AT' and `UC' macros.
5732 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
5734 Replace call to `troff' with `groff -Z' to make it aware of
5737 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
5738 (troff_command, command_prefix): Removed.
5739 (alterDeviceTo): Use groff.
5740 (addZ): New function.
5741 (char_buffer::do_html): Use it.
5742 (scanArguments): Use TROFF_COMMAND.
5743 (findPrefix): Removed.
5745 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
5747 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
5749 * doc/pic.ms: Documentation fixes.
5751 2001-07-17 Werner LEMBERG <wl@gnu.org>
5753 Replace atexit() with global destructor.
5755 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
5756 (xtmpfile_list_init): New global structure to deallocate
5757 xtmpfile_list on exit. Its destructor inherits most code from
5759 (remove_tmp_files): Deleted.
5760 (add_tmp_file): Simplified.
5762 2001-07-16 Werner LEMBERG <wl@gnu.org>
5764 Replace strdup() with strsave().
5766 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
5767 (set_papersize): Use strsave() and a_delete.
5768 (main): Use strsave().
5769 * src/preproc/html/pre-html.cc (make_message, createAllPages,
5770 removeAllPages): Use strsave() and a_delete.
5772 * configure.ac: Remove test for strdup.
5773 * Makefile.in: Comment updated.
5774 * configure: Regenerated.
5776 2001-07-15 Werner LEMBERG <wl@gnu.org>
5778 * win32-diffs: Updated.
5780 2001-07-14 Werner LEMBERG <wl@gnu.org>
5782 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
5783 removing the old one.
5784 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
5786 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5788 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
5790 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
5792 Merge -xwidth into -width. Add -xwidth functionality to -column
5795 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
5797 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
5798 string immediately following a leading dot starts with a valid mdoc
5800 Add similar code to the -column branch.
5801 (doc-Bl-usage): Updated.
5802 * groff_mdoc.man: s/-xwidth/-width/.
5804 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
5806 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
5807 running into centered or non-formatted text.
5809 2001-07-11 Werner LEMBERG <wl@gnu.org>
5811 Introduce short and long prefixes to have the selection at run-time
5812 whether there is a 8+3 limit for names of temporary files.
5814 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
5815 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
5816 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
5818 (temp_init): New global structure to initialize above three
5820 (xtmptemplate): Use two parameters for long and short prefix.
5821 Simplify code use above three variables.
5822 (xtmpfile): Use long and short prefixes as parameters.
5823 * src/include/lib.h: Updated.
5825 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
5827 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
5828 (createAllPages, makeTempFiles): Updated.
5830 2001-07-09 Werner LEMBERG <wl@gnu.org>
5832 * REVISION: Increased to 3.
5834 Version 1.17.2 released
5835 =======================
5837 2001-07-07 Werner LEMBERG <wl@gnu.org>
5839 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
5842 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
5844 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
5846 * tmac/groff_mdoc.man: Fix synopsis.
5848 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
5850 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
5851 Restore `doc-Pa-font'.
5853 2001-07-04 Werner LEMBERG <wl@gnu.org>
5855 * src/utils/indxbib/dirnamemax.c: Moved to ...
5856 * src/libs/libgroff/maxfilename.cc: Here.
5857 s/dir_name_max/file_name_max/.
5859 * src/include/lib.h: Add file_name_max.
5860 * src/utils/indxbib/indxbib.cc: Updated.
5861 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
5864 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
5866 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
5868 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
5869 REGION_TEMPLATE): New macros.
5870 (createAllPages, makeTempFiles): Use them.
5871 Include `nonposix.h'.
5872 (html_system): New function.
5873 (createAllPages, createImage): Use it.
5876 * tmac/www.tmac: Fix typos.
5878 2001-07-03 Werner LEMBERG <wl@gnu.org>
5880 * tmac/www.tmac: Disable hyphenation in normal text only if output
5882 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
5883 * tmac/groff_mwww.man, NEWS: Updated.
5885 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
5887 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
5890 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
5892 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
5893 doc-display-ps-stack): Implement font and font size stack for
5896 2001-07-02 Werner LEMBERG <wl@gnu.org>
5898 * REVISION: Increased to 2.
5899 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
5901 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
5902 beginning of a line.
5903 * src/groff/grog/grog.sh: Ditto.
5905 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
5907 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
5910 2001-06-27 Werner LEMBERG <wl@gnu.org>
5912 Fix problems with preprocessor string for `man' program.
5914 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
5915 Updated/added copyright.
5916 Moved Emacs's local variable to identify nroff mode to the end of
5917 the file; add local variable if missing.
5919 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
5921 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
5922 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
5923 * configure: Regenerated.
5925 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
5927 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
5928 * configure: Regenerated.
5930 2001-06-24 Werner LEMBERG <wl@gnu.org>
5932 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
5934 * doc/pic.ms: Fix typos.
5936 Version 1.17.1 released
5937 =======================
5939 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
5941 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
5942 * configure: Updated.
5944 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
5946 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
5948 * src/roff/troff/dic.cc (blank_line): Add html tag.
5950 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
5952 * src/roff/troff/input.cc (do_suppress): Fix typo.
5954 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
5956 Added two new options (-D and -I) to specify image names and a
5957 subdirectory to place the images in.
5959 Change syntax from \\Ox to \\O[x].
5961 * src/devices/grohtml/post-html.cc (main): Add options.
5963 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
5964 Use `NULL' instead of `0' for null string pointers.
5965 (MAX_RETRIES): New macro.
5966 (lengthOfintToStr, intToStr, make_message): New functions.
5967 (makeFileName): Make function static.
5968 Implement -D and -I options.
5969 (checkImageDir): New function.
5970 (write_end_image, write_start_image): Use new syntax of \O.
5971 (createAllPages, removeAllPages): Implement -D and -I options. Use
5973 (createImage): Use make_message().
5974 (addps4html): Add guard for malloc().
5975 (usage, scanArguments): Updated.
5976 (makeTempFiles): Use mkstemp().
5977 (removeTempFiles): Use unlink().
5978 (findPrefix): Add guard for malloc().
5980 * src/roff/troff/input.cc (get_delim_file_name): New function to
5982 (do_suppress): Updated to parse new syntax.
5983 * src/devices/grohtml/grohtml.man: Updated.
5984 * tmac/www.tmac: Updated to new syntax.
5988 2001-06-15 Werner LEMBERG <wl@gnu.org>
5990 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
5992 * src/devices/grohtml/grohtml.man: Minor improvements.
5994 2001-06-14 Werner LEMBERG <wl@gnu.org>
5996 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
5998 2001-06-11 Werner LEMBERG <wl@gnu.org>
6000 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6001 line to specify preprocessor options -- mandb 2.3.1 only recognizes
6003 * src/preproc/grn/grn.man: Add proper '\" string.
6005 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
6007 * test-groff: Don't use PATH but GROFF_BIN_PATH.
6009 2001-06-08 Werner LEMBERG <wl@gnu.org>
6011 Updated to autoconf 2.50.
6013 * configure.in: Renamed to...
6014 * configure.ac: This.
6015 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6016 (GROFF_OS390): Updated.
6017 * configure: Regenerated.
6019 2001-05-18 Werner LEMBERG <wl@gnu.org>
6021 * src/roff/troff/env.c, src/roff/troff/env.h,
6022 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6025 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
6027 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6029 2001-05-16 Werner LEMBERG <wl@gnu.org>
6031 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6032 less than or equal zero; set it to 1 then.
6033 * src/roff/troff/node.h (node::node): Initialize `last'.
6035 2001-05-08 Werner LEMBERG <wl@gnu.org>
6037 * tmac/an-old.tmac: Make predefined strings work in compatibility
6039 Add troff version guard.
6040 * tmac/doc.tmac: Simplify version guard.
6042 2001-05-07 Werner LEMBERG <wl@gnu.org>
6044 The .ns and .rs requests are now honoured not only in the top-level
6045 but in all diversions (similar to UNIX troff).
6047 This change is based on a patch from Tadziu Hoffmann
6048 <hoffmann@usm.uni-muenchen.de>.
6050 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6051 (top_level_diversion): Remove `no_space_mode' member.
6052 * src/roff/troff/div.cc (diversion::diversion,
6053 top_level_diversion::top_level_diversion): Updated.
6054 (macro_diversion::output): Reset `no_space_mode'.
6055 (no_space, restore_spacing): Use `curdiv' unconditionally.
6056 (space_request, blank_line): Check `curdiv->no_space_mode'.
6057 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6058 `curdiv' unconditionally.
6059 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6062 2001-05-06 Werner LEMBERG <wl@gnu.org>
6064 Added two new requests `de1' and `am1' which are similar to `de' and
6065 `am' with the difference that compatibility mode is saved on entry,
6066 switched off during macro execution, and restored on exit.
6068 * src/roff/troff/input.h: Added two new special characters
6069 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6070 * src/roff/troff/input.cc (input_iterator): Added two member
6071 functions `save_compatible_flag' and `get_compatible_flag'.
6072 (input_stack): Ditto.
6073 (string_iterator): Ditto. Also add private member
6074 `saved_compatible_flag'.
6075 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6076 (calling_mode): New enumeration.
6077 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
6078 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6079 (define_macro, define_indirect_macro, append_macro, ignore): Use
6081 (define_nocomp_macro, append_nocomp_macro): New functions.
6082 (init_input_requests): Updated.
6083 (do_request): Rename local variable `saved_compatible_flag' to
6084 `old_compatible_flag'.
6085 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6087 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6088 public and trap-invoked macros. As a consequence, the man macros
6089 work in compatibility mode also.
6091 2001-05-06 Solar Designer <solar@openwall.com>
6093 * Makefile.in: Use $(mandir).
6095 2001-05-06 Alexios Zavras <zvr@pobox.com>
6097 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6099 2001-05-05 Werner LEMBERG <wl@gnu.org>
6101 Added `.ns' number register: Returns 1 in no-space mode (if in
6102 top-level diversion), 0 otherwise.
6104 * src/roff/troff/div.cc (no_space_mode_reg): New class.
6105 (init_div_requests): Updated.
6106 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6109 2001-05-04 Werner LEMBERG <wl@gnu.org>
6111 * src/roff/nroff/nroff.man: Improved documentation (especially
6114 2001-05-02 Werner LEMBERG <wl@gnu.org>
6116 Added `brp' request: This is \p as a request.
6118 * src/roff/troff/env.cc (environment::do_break): Add parameter
6120 (do_break_request): New function (was `break_request').
6121 (break_request): Calls `do_break_request'.
6122 (break_spread_request): New; calls `do_break_request'.
6123 (init_env_requests): Updated.
6124 * src/roff/troff/env.h: Updated.
6125 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6127 * REVISION: Increased to 1.
6128 * win32-diffs: Updated.
6130 2001-05-01 Werner LEMBERG <wl@gnu.org>
6132 * tmac/an-old.tmac: Fix minor compatibility mode issue.
6133 * tmac/troffrc-end: Make it really work in compatibility mode.
6135 2001-04-27 Werner LEMBERG <wl@gnu.org>
6137 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6140 2001-04-22 Werner LEMBERG <wl@gnu.org>
6142 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6143 latest versions from glibc CVS archive.
6145 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6146 <c.zeelenberg@hccnet.nl>.
6148 2001-04-21 Werner LEMBERG <wl@gnu.org>
6150 * configure.in: Move check for mkstemp() to...
6151 * aclocal.m4 (GROFF_MKSTEMP): This new function.
6152 * configure: Regenerated.
6154 * src/include/groff-getopt.h: Don't use variable names in
6157 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
6158 * src/devices/grohtml/Makefile.sub,
6159 src/devices/grohtml/post-html.cc: Updated.
6161 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
6163 * configure.in: Add special check for mkstemp().
6164 * src/libs/libgroff/tmpfile.cc: Use it.
6165 * src/utils/indxbib/indxbib.cc: Ditto.
6166 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6167 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6170 2001-04-20 Bruce Lilly <blilly@erols.com>
6172 `Version_string' as C++ object was not visible to linker from C
6174 Add `const' to `Version_string'.
6176 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6177 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6178 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6179 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6180 (scanArguments), src/preproc/refer/refer.cc (main),
6181 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6182 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6183 (main), src/devices/grohtml/post-html.cc (main),
6184 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6185 (main), src/utils/hpftodit/hpftodit.cc (main),
6186 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6187 (main), src/utils/lkbib/lkbib.cc (main),
6188 src/utils/addftinfo/addftinfo.cc (main): Implement it.
6190 * src/roff/groff/pipeline.c: Add _UWIN.
6191 * src/include/nonposix.h: Ditto.
6193 2001-04-20 Werner LEMBERG <wl@gnu.org>
6195 * src/include/lib.h: Use HAVE_STRERROR.
6196 * src/roff/groff/pipeline.c: Ditto.
6197 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6198 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6199 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6200 * win32-diffs: Updated.
6201 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6203 2001-04-19 Werner LEMBERG <wl@gnu.org>
6205 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6206 instead of hardwired `"troff"'.
6207 (char_buffer::read_file): Remove unused variables.
6208 (char_buffer::write_file_troff): Ditto.
6209 (char_buffer::write_file_html): Ditto.
6210 (generateImages): Ditto.
6212 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6214 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6216 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6217 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6218 index_search_item::search1): Ditto.
6219 * src/roff/troff/node.h (width_list): Reorder members.
6220 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6221 (lookup_warning): Ditto.
6222 (prepend_string): Commented out.
6223 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6224 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6225 * src/preproc/tbl/main.cc (process_format): Ditto.
6226 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6228 * src/preproc/pic/pic.cc: Updated.
6229 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6230 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6231 * src/preproc/refer/command.cc (execute_command): Ditto.
6232 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6233 * src/preproc/refer/token.cc (lookup_token): Ditto.
6234 * src/preproc/soelim/soelim.cc: Ditto.
6235 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6236 (isHexDigit): Commented out.
6237 (pushBackBuffer::isString): Remove unused variable.
6238 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6240 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6241 resource_manager::read_resource_arg, read_one_of, parse_extensions):
6243 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6244 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6245 lookup_paper_size): Ditto.
6246 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6247 (text_glob, element_list): Reorder members.
6248 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6250 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6251 return value to `void'.
6252 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6254 * src/devices/grohtml/html.h (simple_output::check_newline,
6255 simple_output::space_or_newline, simple_output::enable_newlines):
6257 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6259 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6260 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6261 output_ligatures, output_charset, read_map): Ditto.
6262 * src/utils/lookbib/lookbib.cc (main): Ditto.
6263 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6264 (do_file): Fix typo (`=' -> `==').
6265 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6266 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6268 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
6270 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6271 Fix usage of GROFF_BIN_PATH.
6272 * src/roff/nroff/nroff.man: Updated.
6274 2001-04-18 Werner LEMBERG <wl@gnu.org>
6276 * NEWS: Fixing typos.
6279 Version 1.17 released
6280 =====================
6282 2001-04-17 Werner LEMBERG <wl@gnu.org>
6284 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6285 directory, not in $(srcdir).
6287 2001-04-16 Werner LEMBERG <wl@gnu.org>
6289 * doc/groff.texinfo: More info on conditionals.
6291 2001-04-15 Werner LEMBERG <wl@gnu.org>
6293 * doc/groff.texinfo: Added some info about groff internals.
6295 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6296 about missing special character only if the name is non-null.
6298 2001-04-14 Werner LEMBERG <wl@gnu.org>
6300 Removing the grohtml-old device driver which is now obsolete.
6302 * src/devices/grohtml-old/*: Removed.
6303 * font/devhtml-old/*: Removed.
6304 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6306 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6307 * test-groff (PATH): Updated.
6308 * tmac/Makefile.sub (NORMALFILES): Updated.
6309 * tmac/an-old.tmac: Remove special code for html-old device.
6310 Replace `html-or-html-old' register with `an-html'.
6311 * tmac/eqnrc: Updated.
6312 * tmac/html-old.tmac: Removed.
6313 * tmac/troffrc, tmac/troffrc-end: Updated.
6314 * tmac/www.tmac: Remove special code for html-old device.
6315 Replace `html-or-html-old' register with `www-html'.
6317 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6318 src/libs/libgroff/htmlindicate.cc (graphic_end),
6319 include/htmlindicate.h, src/preproc/grn/*.cc,
6320 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6321 single argument for consistency with rest of source code.
6323 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6325 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
6327 * src/roff/troff/troff.man: Fixing typos.
6329 2001-04-13 Werner LEMBERG <wl@gnu.org>
6331 * doc/pic.ms: Fixing many font switches.
6332 * doc/groff.texinfo: Fixes, additions.
6333 * MORE.STUFF: Updated.
6335 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
6337 * src/devices/grohtml/grohtml.man: Updated manual page regarding
6339 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6341 (removeTempFiles): New function to tidy up temporary files.
6342 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6343 Many fixes to do with the new inline suppress node and image regions
6345 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6346 (generate_img_src): New function.
6347 (html_printer::do_auto_image): Utilizes it.
6348 (do_heading, do_title): Include inline images within their contents.
6349 (html_printer::begin_page): Tidied up comments that are issued to
6350 the html output file.
6351 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6353 (text_glob::is_br): New method used by do_heading.
6354 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6355 equivalent diversion.
6356 * src/include/html-strings.h: Altered image tags to reflect the
6358 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6360 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6361 it is already inside a pic image. Only emit tags if the argument
6362 `-Tps:html' is present.
6363 * src/preproc/tbl/main.cc: Changes to reflect additional
6364 `html_end_suppress' parameter.
6365 * src/roff/troff/env.cc: Only emit eol tag if a node has been
6366 emitted since the last eol tag was written.
6367 * src/roff/troff/env.h: New boolean `emitted_node'.
6368 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6369 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
6370 * src/roff/troff/node.cc (check_charinfo): New method.
6371 (troff_output_file::determine_line_limits): Alterations to limit
6373 * tmac/www.tmac: Changes to reflect new suppress nodes.
6375 2001-04-12 Bruno Haible <haible@clisp.cons.org>
6377 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6378 Escape the html_glyph in the buffer.
6379 (str_translate_to_html): Output the unescaped escaped_char.
6380 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6381 `frame=void', not `frame=none'. Add `border=0'.
6383 2001-04-12 Werner LEMBERG <wl@gnu.org>
6385 * PROBLEMS: Add some words on how to avoid wrapper macros.
6387 2001-04-11 Blake McBride <blake@florida-software.com>
6389 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6391 2001-04-11 Werner LEMBERG <wl@gnu.org>
6393 * font/devlbp/Makefile.sub (CLEANADD): Set it.
6394 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6395 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6396 * Makefile.sub (DISTCLEANFILES): Here.
6398 * libs/libgroff/new.cc: Include `nonposix.h'.
6399 * win32-diffs: Updated.
6401 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
6403 Added skeleton macro for defunct macros.
6405 Updated documentation.
6407 When inside displays, an empty input line warning should be
6408 suppressed. If another macro call is put inside a display,
6409 all subsequent empty lines found in that display caused a
6410 warning to be emitted.
6412 * tmac/doc.tmac (doc-defunct-macro): New macro.
6413 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6414 (doc-restore-global-vars): Fixed typo.
6415 (doc-empty-line): Check the `doc-display-depth' register to
6416 determine whether we are inside display or not.
6418 * tmac/doc-common: Removed `Or' and `Sf' registers.
6419 Moved obsolete `Ds' macro to doc.tmac.
6421 * tmac/groff_mdoc.man: Bump document date.
6422 Document `.Vt' under ``Variable Types''.
6423 Removed documentation for obsolete `.Or' macro.
6425 2001-04-10 Werner LEMBERG <wl@gnu.org>
6428 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6430 2001-04-10 Bruno Haible <haible@clisp.cons.org>
6432 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6433 (usage): Add stream argument. Don't exit.
6434 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6435 Write --version output to stdout, not stderr.
6436 (usage): Add stream argument. Don't exit.
6437 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6438 (usage): Add stream argument. Don't exit.
6439 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6441 (usage): Add stream argument. Don't exit.
6442 (main): Write --help output to stdout, not stderr.
6443 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6444 (usage): Add stream argument. Don't exit.
6445 * src/devices/grops/ps.cc (main): Accept --help and --version.
6446 (usage): Add stream argument. Don't exit.
6447 * src/devices/grotty/tty.cc (main): Accept --help and --version.
6448 (usage): Add stream argument. Don't exit.
6449 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6450 (main): Accept --help and --version.
6451 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6452 (main): Accept --help and --version.
6453 * src/preproc/html/pre-html.cc (usage): Add stream argument.
6454 (scanArguments): Accept --help and --version.
6455 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6456 (main): Accept --help and --version.
6457 * src/preproc/refer/refer.cc (main): Accept --help and --version.
6458 (usage): Add stream argument. Don't exit.
6459 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6461 (main): Accept --help and --version.
6462 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6463 (main): Accept --help and --version.
6464 * src/roff/groff/groff.cc (main): Accept --help and --version.
6465 (synopsis): Add stream argument.
6466 (help): Write --help output to stdout, not stderr.
6467 (usage): Add stream argument. Don't exit.
6468 * src/roff/grog/grog.pl: Accept --help and --version.
6470 * src/roff/grog/grog.sh: Accept --help and --version.
6471 * src/roff/nroff/nroff.sh: Accept --help and --version.
6472 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6473 (usage): Add stream argument. Don't exit.
6474 (main): Accept --help and --version.
6475 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6476 (usage): New function with stream argument, doesn't exit.
6477 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6478 (usage): New function with stream argument, doesn't exit.
6479 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6480 (usage): Add stream argument. Don't exit.
6481 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6482 (main): Accept --help and --version.
6483 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6485 (main): Accept --help and --version.
6486 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6487 (main): Accept --help and --version.
6488 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6489 (usage): Add stream argument. Don't exit.
6491 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
6493 Fix indentation in SYNOPSIS.
6495 Updated to include changes of latest BSD mdoc version (basically,
6496 the only change is that `.Fn' and `.Fc' put a final semicolon after
6497 a function declaration in the SYNOPSIS section).
6499 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6500 (doc-in-synopsis-section): New variable. Updated all related
6502 (doc-indent-synopsis-active): New register.
6503 (Nd, Fn, Fo): Use it.
6504 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6505 `.Cd' with long argument line produces indented wrapped lines.
6506 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6507 undesirable line break to be output.
6508 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6510 (Fn, Fc): Add final `;' to output.
6511 (doc-save-global-vars, doc-restore-global-vars): Updated.
6512 * tmac/doc-common: Remove `Ex' register.
6514 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6517 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
6519 * tmac/doc.tmac (Cd): Simplify code.
6520 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6522 2001-04-06 Werner LEMBERG <wl@gnu.org>
6524 Implement continuous underlining for nroff mode. To do that, a new
6525 request in the ditroff language has been added: `x u N' (N is 0
6528 \X and \Y are now transparent to end-of-sentence recognition.
6530 * src/include/printer.h (printer): Add `type' parameter to `special'
6532 * src/libs/libdriver/printer.cc (printer::special): Updated.
6533 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6535 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6536 specials of type `p'.
6537 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6538 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6539 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6540 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6541 (glyph::order): New method.
6542 (tty_printer::add_char): Use it.
6543 (tty_printer::special): New method.
6544 (tty_printer::end_page): Implement it.
6546 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
6547 * src/roff/troff/node.cc (special_node::special_node): Add parameter
6548 to set `no_init_string'.
6549 (special_node::tprint_start): Use it.
6550 (special_node::same, special_node::copy): Updated.
6551 (special_node::ends_sentence): New method.
6552 (troff_output_file::start_special): Add parameter to include
6553 inititialization of special conditionally.
6555 * src/roff/troff/env.h (environment): New member `underline_spaces'.
6556 * src/roff/troff/env.cc (do_underline_special): New function.
6557 (environment::set_font): Use it.
6558 (do_underline): Use it. This was `underline()'.
6559 (underline): Call `do_underline()'.
6560 (continuous_underline): New function which calls `do_underline()'.
6561 (environment::newline): Use `do_underline_special()'.
6562 (init_env_requests): Updated.
6564 * NEWS, man/troff_out.man: Updated.
6566 2001-04-06 Bruno Haible <haible@clisp.cons.org>
6568 * font/devutf8/R.proto: Fix code of 'shc'.
6570 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
6572 Many fixes. Diag lists can now be nested also; additionally,
6573 `-compact' and `-offset' are supported.
6575 * tmac/doc.tmac (doc-have-indent): Replaced with ...
6576 (doc-list-have-indent-stackXXX): A new register stack.
6577 (doc-have-diag-list): Removed.
6578 (Bl): Use `doc-list-have-indent-stackXXX'.
6580 (doc-diag-list): Use `doc-compact-list-stackXXX'.
6581 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
6582 (doc-set-vertical-and-indent): Ditto.
6583 (doc-next-list-depth): Removed.
6584 (doc-increment-list-stack): Updated.
6585 (doc-decrement-list-stack): Use `doc-list-depth' instead of
6586 `doc-next-list-depth'.
6587 (doc-end-list, doc-end-column-list): Don't use
6588 `doc-increment-list-stack'.
6589 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
6590 (doc-save-global-vars, doc-restore-global-vars): Updated.
6591 * tmac/doc-common: Updated.
6592 * tmac/groff_mdoc.man: Updated.
6595 2001-04-02 Werner LEMBERG <wl@gnu.org>
6597 * src/devices/grotty/grotty.man: Fix grammatical error.
6599 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
6601 Remove .Ld from mdoc package; replace it with special handling of
6604 * tmac/doc-common: Remove `Ld' register.
6605 Uncomment `doc-volume-ds-*' strings.
6606 Remove `doc-operating-system-default'.
6608 * tmac/doc-syms (Ld): Removed.
6609 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
6613 * tmac/groff_mdoc.man: Many fixes and updates.
6615 2001-03-29 Werner LEMBERG <wl@gnu.org>
6617 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
6618 Bond <tkb@tkb.mpl.com>.
6619 * tmac/www.tmac: Save compatibility mode.
6621 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
6623 * tmac/groff_mdoc.man: Many fixes.
6625 2001-03-28 Werner LEMBERG <wl@gnu.org>
6627 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
6630 2001-03-27 Werner LEMBERG <wl@gnu.org>
6632 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
6633 diversion. This fixes overlong tags.
6635 2001-03-26 Werner LEMBERG <wl@gnu.org>
6637 * doc/groff.texinfo: Fixed and improved documentation of fonts.
6638 * tmac/doc-syms: Fix error messages.
6639 * tmac/an-old.tmac: Remove incorrect double backslashes.
6641 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
6643 * tmac/Makefile.sub: Strip mdoc.local also
6644 * tmac/strip.sed: Fixed.
6646 2001-03-24 Werner LEMBERG <wl@gnu.org>
6648 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
6649 selecting the font size.
6650 * tmac/groff_mdoc.man, NEWS: Document it.
6652 2001-03-23 Werner LEMBERG <wl@gnu.org>
6654 * src/roff/troff/div.cc (save_vertical_space): Add default argument
6656 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
6657 argument to restore previous font family.
6658 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
6660 * doc/groff.texinfo: More fixes and additions (mainly for font
6661 manipulating commands).
6663 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
6664 * tmac/groff_mdoc.man: This. The quick reference has been removed.
6665 * tmac/Makefile.sub, NEWS: Updated.
6667 2001-03-23 Werner LEMBERG <wl@gnu.org>
6669 Replaced mdoc implementation. The new version is `state of the
6670 art', using almost all new features of groff 1.17 -- it won't run
6671 with older versions.
6673 * tmac/doc.tmac: Completely rewritten.
6674 * tmac/doc-common: Ditto.
6675 * tmac/doc-nroff: Ditto.
6676 * tmac/doc-ditroff: Ditto.
6677 * tmac/doc-syms: Ditto.
6678 * tmac/mdoc.local: New file.
6679 * tmac/groff_mdoc.samples.man: Replaced with ...
6680 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
6681 * tmac/strip.sed: Updated.
6682 * tmac/Makefile.sub: Updated.
6685 * tmac/groff_man.man: Add `man.local' to the FILES section.
6687 2001-03-22 Werner LEMBERG <wl@gnu.org>
6689 * doc/groff.texinfo: Added many @noindent.
6690 Replaced @end_Example -> @endExample.
6691 Added info whether registers are r/o.
6692 Many other additions and fixes.
6694 2001-03-21 Werner LEMBERG <wl@gnu.org>
6696 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
6697 in makeinfo of texinfo 4.0) to be used in @Def* macros.
6698 Improved @Def* macros: Now the exact syntax of request, register,
6699 and escapes is shown.
6700 Added macros for parentheses and brackets to be used in @Def*.
6701 Many fixes and improvements of the documentation.
6703 2001-03-20 Werner LEMBERG <wl@gnu.org>
6705 * doc/groff.texinfo: Added new index: `st' (for strings).
6706 Added macros @Defstr(x).
6707 Added macro @Example (adding @group).
6708 Other minor improvements.
6710 2001-03-19 Werner LEMBERG <wl@gnu.org>
6712 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
6713 `rq' for requests. `fn' is no longer used.
6714 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
6717 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
6718 number with name of man page.
6720 2001-03-19 Larry Kollar <kollar@alltel.net>
6722 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
6725 2001-03-19 Werner LEMBERG <wl@gnu.org>
6727 * man/groff_font.man: Document `prepro', `postpro', and `print'.
6728 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
6729 * src/devices/grohtml/grohtml.man: Fixing typos.
6731 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
6733 * tmac/s.tmac (@IP): Pass `.ip' html tag.
6734 * tmac/groff_mwww.man: Remove .LINE macro
6735 * tmac/www.tmac (LINE): Add `.ti'.
6737 * src/devices/grohtml/post-html.cc (html_printer): New member
6739 (html_printer::emit_raw): Use it.
6740 (html_printer::do_linelength): Ditto.
6741 (html_printer::do_pageoffset): Ditto.
6742 (html_printer::do_indentation): Ditto.
6743 (html_printer::do_tempindent): Ditto.
6744 (html_printer::do_break): Ditto.
6745 (html_printer::begin_page): Ditto.
6746 (html_printer::do_indentedparagraph): New function.
6747 (html_printer::troff_tag): Handle `.ip'.
6748 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
6749 Add `<td width=...>' handling.
6750 (html_text::do_table): Add parameter.
6751 (html_text::do_indent): Updated.
6752 * src/devices/groohtml/html-text.h: Updated.
6754 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
6756 Introduced simple html tables to implement indentation.
6758 * src/devices/grohtml/html.h (word, word_list): New structures.
6759 (simple_output): Use it.
6760 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
6761 (html_printer): Improve indentation handling.
6762 (html_printer::emit_raw): Set `in_table' element. Handle
6764 (html_printer::write_header): Move conditional downwards.
6765 Don't allow whitespace in tags.
6766 (html_printer::do_linelength): Handle line length and indentation
6768 (html_printer::do_pageoffset): Handle indentation conditionally.
6769 (html_printer::do_indentation): Ditto.
6770 (html_printer::do_tempindent): New function member.
6771 (html_printer::do_fill): Take care of indentation.
6772 (html_printer::do_flush): Finish table.
6773 (html_printer::do_links): Ditto.
6774 (html_printer::do_break): New function for handling `.br' and `.ti'.
6775 (html_printer::troff_tag): Use it.
6777 (html_printer::flush_globs): Fix.
6778 (html_printer::flush_page): Finish table.
6779 (html_printer::html_printer): Fix error message. Set up
6781 (html_printer::add_to_sbuf): Remove special handling of character
6783 (to_unicode): Remove `stop()'.
6784 (html_printer::write_title): Cleanup.
6785 (html_printer::begin_page): Use `put_string()'. Handle indentation.
6786 (html_printer::~html_printer): Flush text and end the line.
6788 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
6789 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
6791 (html_text::start_tag): Disable newlines.
6792 (html_text::table_is_void): New function.
6793 (html_text::issue_table_begin): Ditto.
6794 (html_text::issue_table_end): Ditto.
6795 (html_text::push_para): Better table handling.
6796 (html_text::do_indent): New function.
6797 (html_text::do_table): Ditto.
6798 (html_text::done_table): Ditto.
6799 (html_text::do_tt): Handle PRE_TAG.
6800 (html_text::is_in_table): New function.
6801 (html_text::check_emit_text): Handle tables.
6802 (html_text::do_emittext): Use `nl()'.
6803 (html_text::do_para): Handle table.
6804 (html_text::remove_def): New function.
6805 * src/devices/grohtml/output.cc (word, word_list): Implement
6807 (simple_output::end_line): Flush last word.
6808 (simple_output::simple_comment): Ditto.
6809 (simple_output::begin_comment): Recoded.
6810 (simple_output::end_comment): Ditto.
6811 (simple_output::comment_arg): Removed.
6812 (simple_output::check_newline): Improve test and flush last word.
6813 (simple_output::space_or_newline): Improved.
6814 (simple_output::write_newline): Replaced with...
6815 (simple_output::nl): This.
6816 (simple_output::put_raw_char): Flush last word.
6817 (simple_output::check_space): Removed.
6818 (simple_output::put_translated_string): Ditto.
6819 (simple_output::put_string): Simplified.
6820 (simple_output::put_number): Updated.
6821 (simple_output::put_float): Ditto.
6822 (simple_output::put_symbol): Removed.
6823 (simple_output::enable_newlines): Add `check_newline()'.
6824 (simple_output::flush_last_word): New function.
6826 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
6827 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
6829 * tmac/s.tmac (@PP, @IP): Add html conditional code.
6830 * tmac/an-old.tmac (TP): Ditto.
6832 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
6834 * mdate.sh: Make it POSIX compliant.
6836 2001-03-09 Werner LEMBERG <wl@gnu.org>
6838 Added the `return' request to end a macro immediately. It simply
6839 pops iterators from the input stack until a macro iterator is found.
6841 * src/roff/troff/input.cc (input_iterator::is_macro,
6842 macro_iterator::is_macro): New member.
6843 (input_return_boundary): New class to signal an immediate return
6845 (input_stack::add_return_boundary, input_stack::is_return_boundary):
6847 (input_stack::clear): Use it.
6848 (input_stack::pop_macro): New function.
6849 (while_request): Use `is_return_boundary()'.
6850 (return_macro_request): New function.
6851 (init_input_requests): Use it.
6853 * src/roff/troff/TODO: Updated.
6854 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6856 2001-03-08 Werner LEMBERG <wl@gnu.org>
6858 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
6861 2001-03-07 Werner LEMBERG <wl@gnu.org>
6863 Make `\B' more rigid.
6865 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
6867 (get_number_rigidly): New function.
6868 * src/roff/troff/input.cc (do_expr_test): Use it.
6869 * src/roff/troff/token.h: Updated.
6871 * src/roff/troff/request.h: Fix typo (init_html_request ->
6872 init_markup_request).
6874 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
6876 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
6877 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
6878 are now `.begin', `.end', `.image'.
6880 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
6881 (html_printer::add_to_sbuf): Changing type of `code' parameter.
6882 Use add_char_to_sbuf().
6883 (to_unicode): New function.
6884 (char_translate_to_html): Changing type of `ch' parameter.
6886 (html_printer::~html_printer): Comment out doctype string.
6887 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
6888 instead of `.html-end'.
6889 (write_start_image): Use `.begin' and `.image' instead of
6890 `.html-begin' and `.html-image'.
6891 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
6892 (html_begin): Renamed to ...
6894 (html_end): Renamed to ...
6896 (html_image): Renamed to ...
6898 (init_html_requests): Renamed to ...
6899 (init_markup_requests): This.
6900 * tmac/www.tmac: Updated.
6902 2001-02-28 Bram <bram@avontuur.org>
6904 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
6907 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
6909 * doc/meref.me: Fixing some typos.
6911 2001-02-16 Werner LEMBERG <wl@gnu.org>
6913 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
6914 method. Return `HYPHEN_MIDDLE' if it was `\:'.
6915 * src/roff/troff/node.h: Updated.
6917 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
6919 * tmac/groff_tmac.man: Fix typo.
6921 2001-02-16 Werner LEMBERG <wl@gnu.org>
6923 Fixing a bug which prevented proper end-of-sentence recognition
6924 between an `unformatted' box and the following text. As a
6925 consequence, vertical line distances are no longer preserved in
6926 boxes after a call to `.unformat' -- because boxes aren't
6927 line-oriented (contrary to diversions), this doesn't make sense
6930 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
6932 (vertical_size_node::set_unformat_flag): New method.
6933 * src/roff/troff/node.hh: Updated.
6934 * src/roff/troff/input.cc (word_space_node::reread,
6935 hmotion_node::reread): Reset `unformat' flag after usage.
6936 (unformat_macro): Append only if `set_unformat_flag()' returns
6938 * src/roff/troff/troff.man: Updated.
6940 2001-02-15 Werner LEMBERG <wl@gnu.org>
6942 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
6943 documentation of `asciify' and `unformat' requests.
6945 2001-02-13 Werner LEMBERG <wl@gnu.org>
6947 Redesigned the `unformat' request. It is no longer connected with
6948 `asciify' but rather uses new `reread()' methods if the `unformat'
6949 flag is set. Additionally, the handling of space characters after
6950 unformatting has been fixed so that they retain their width.
6952 * src/roff/troff/node.h (width_list): New structure to store
6953 original widths of spaces.
6954 (node): Added `unformat' member.
6955 Replaced `num_spaces' variable with `orig_width' list.
6956 * src/roff/troff/node.cc (*node::asciify,
6957 asciify_reverse_node_list): Removed `unformat_only' flag and related
6959 (word_space_node::asciify, word_space_node::word_space_node): Use
6961 (word_space_node::~word_space_node): New destructor.
6962 (word_space_node::copy): Updated to handle `orig_width'.
6963 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
6964 (*node::merge_space): Update `orig_width' list if necessary.
6965 (*node::set_unformat_flag): New methods to set the `unformat' flag.
6966 * src/roff/troff/enc.cc (environment::space_newline): Use
6968 (environment::space): Added method to handle space width and
6969 sentence space width as parameters. Use `width_list'.
6970 (environment::make_tab_node): Updated.
6971 * src/roff/troff/env.h: Updated.
6972 * src/roff/troff/input.cc (word_space_node::reread,
6973 unbreakable_space_node::reread, hmotion_node::reread): New methods
6974 to handle nodes specially if `unformat' flag is set.
6975 (do_asciify_macro): Renamed back to ...
6976 (asciify_macro): This.
6977 (unformat_macro): New implementation to simply set the `unformat'
6980 * MORE.STUFF: Added more info about deroff.
6982 2001-02-08 Werner LEMBERG <wl@gnu.org>
6984 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
6985 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
6986 and `add_self()' methods to avoid hyphenation. For example, the
6987 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
6988 soft hyphen after `foo'. Now the hyphen list is correctly
6989 `foo<ignore><ignore>bar'.
6991 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
6993 * tmac/groff_tmac.man: Fix `BIR' macro.
6995 2001-02-04 Werner LEMBERG <wl@gnu.org>
6997 A new escape sequence `\:', inserting a zero-width break point.
6999 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7000 * src/roff/troff/input.cc (get_copy, token::next, asciify):
7002 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7004 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
7005 and `asciify()' methods.
7006 * src/roff/troff/node.cc (space_node::space_node): Updated.
7007 (space_node::asciify): Handle `was_escape_colon'.
7008 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7010 Handle `\~' similar to other comparable requests.
7012 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7014 (token::next): Move creation of an unbreakable_space_node to...
7015 (token::add_to_node_list): Here.
7017 Fix a bug which sometimes prevented hyphenation of words connected
7018 with `\~' or `\ ' (and other escape sequences handled as
7019 TOKEN_NODE). This also fixes a hyphenation problem with boxes
7020 (after a call to the `unformat' request).
7022 * src/roff/troff/env.h (environment::possibly_break_line,
7023 environment::hyphenate_line): Introducing `start_here' parameter.
7024 * src/roff/troff/env.cc (environment::space_newline,
7025 environment::space): Use it.
7026 (environment::possibly_break_line, environment::hyphenate_line):
7028 * src/roff/troff/input.cc (process_input_stack): Use it.
7029 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7030 space_char_hmotion_node, overstrike_node): Add
7031 `get_hyphenation_type()' method.
7032 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7033 if `unformat_only' is active.
7035 2001-01-30 Werner LEMBERG <wl@gnu.org>
7037 Implemented new read-only number register `.linetabs' which
7038 returns 1 if in line-tabs mode, 0 otherwise.
7040 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7041 * src/roff/troff/env.cc (get_line_tabs): New function.
7042 (init_env_requests): Use it.
7043 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7045 * VERSION, REVISION: Changing to 1.17.0.
7047 2001-01-28 Werner LEMBERG <wl@gnu.org>
7049 Fixed a bug which prevented hyphenation of words which are finished
7052 * src/roff/troff/token.h (token): Add enum type
7053 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7054 * src/roff/troff/input.cc (token::next, token::description,
7055 get_line_arg, token::add_to_node_list, token::process): Use it.
7057 2001-01-27 Werner LEMBERG <wl@gnu.org>
7059 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7060 * src/roff/troff/div.cc (do_divert): Use it.
7062 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7064 2001-01-25 Werner LEMBERG <wl@gnu.org>
7066 Adding the `linetabs' request. If set, tab distances are not
7067 computed relative to the input line but relative to the output line.
7069 * src/roff/troff/env.h (environment): New member `line_tabs'.
7070 * src/roff/troff/env.cc (line_tabs_request): Implement request.
7071 (environment::environment, environment::copy): Updated.
7072 (environment::distance_to_next_tab): Use `line_tabs'.
7073 (init_env_requests): Register request.
7074 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
7077 2001-01-24 Werner LEMBERG <wl@gnu.org>
7079 Introducing a new read-only register `.int' which is set to a
7080 positive value if the last output line is interrupted (i.e., if it
7083 * src/roff/troff/env.cc (init_env_requests): Add it.
7084 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7086 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
7088 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7089 * src/preproc/html/pre-html.cc (findPrefix): New function which
7090 generates the troff executable name via the system prefix.
7091 * src/preproc/eqn/main.cc: Modified warning message.
7093 2001-01-23 Werner LEMBERG <wl@gnu.org>
7095 troff's `box' and `boxa' requests didn't preserve temporary
7098 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7099 `saved_target_text_length' members.
7100 * src/roff/troff/div.cc (do_divert): Use them.
7102 Tabs (but not yet leaders and fields) are now handled correctly by
7105 * node.h (hmotion_node): Add field `was_tab'.
7106 * env.cc (environment::make_tab_node): Set it.
7107 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7109 Added new request `unformat' which will, contrary to `asciify',
7110 preserve font information after unformatting (i.e., only nodes
7111 dealing with horizontal space are converted back to input
7114 * input.cc (asciify_macro): Renamed to ...
7115 (do_asciify_macro): this, having a new parameter `unformat_only'.
7116 (asciify_macro, unformat_macro): New; using do_asciify_macro.
7117 (init_input_requests): Added `unformat'.
7118 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7119 parameter to control asciification process.
7120 * node.h (*_node::asciify): Ditto.
7121 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7123 2001-01-20 Werner LEMBERG <wl@gnu.org>
7125 * doc/groff.texinfo: Minor improvement of `.in' documentation.
7127 2001-01-18 Werner LEMBERG <wl@gnu.org>
7129 * tmac/ps.tmac: Remove call of psold.tmac.
7130 * tmac/psold.tmac: Comment updated.
7131 * tmac/psnew.tmac: Removed since no longer needed.
7132 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7134 * font/devutf8/R.proto: Adding `shc' glyph.
7135 * font/devutf8/NOTES: Updated.
7137 * test-groff: Updated.
7139 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
7141 First cut of the new html device driver. Changes to pre-html and
7142 the new grohtml are too numerous to be documented here.
7144 Stuff related to `html' has been renamed to `html-old' and `html2'
7145 stuff has been renamed to `html' (including directories). The new
7146 html device driver is therefore invoked as `-Thtml'.
7148 Added new `\O' escape to suppress output (needed by html driver).
7150 Added functions and code to pass info about input-level commands
7151 (`.in', `.fl', etc.) to html driver.
7153 Three new functions (.html-begin, .html-end, and .html-image) for
7154 better html handling: `html-begin' will execute the remaining line
7155 if at the outermost nesting level, increasing an internal counter.
7156 `html-end' does the same but decreases the internal counter.
7157 `html_image' puts its arguments into a special node (suppress_node)
7158 to define an image region.
7160 The `output' request has been removed.
7162 * tmac/html-tags.tmac: Removed.
7163 * tmac/arkup.tmac: Updated and renamed to ...
7164 * tmac/www.tmac: New file.
7165 * tmac/markup.tmac Updated and renamed to ...
7166 * tmac/mwww.tmac: New file.
7167 * tmac/Makefile.sub: Updated.
7168 * tmac/an-old.tmac: Updated.
7169 * tmac/eqnrc: Updated.
7170 * tmac/groff_man.man
7171 * tmac/groff_markup.man: Updated and renamed to ...
7172 * tmac/groff_mwww.man: New file.
7173 * tmac/groff_tmac.man: Updated.
7174 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7175 * tmac/html.tmac: Updated and renamed from html2.tmac.
7176 * tmac/pspic.tmac: Updated html support.
7177 * tmac/s.tmac: Added html output support.
7178 * tmac/troffrc, tmac/troffrc-end: Updated.
7180 * Makefile.in, doc/Makefile: Updated.
7181 * doc/groff.texinfo: Added info about new `\O' escape.
7182 * doc/homepage.ms: Use `MAILTO' macro.
7184 * font/devhtml/DESC.proto: Add `C' font.
7185 * font/devhtml/Makefile.sub: Updated.
7186 * font/devhtml/R.proto: Minor fixes.
7187 * font/devhtml-old/Makefile.sub: Updated.
7189 * src/devices/grohtml-old/Makefile.sub: Updated.
7191 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7193 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7194 graphic_start): Add `inline' parameter. Update.
7195 (html_end_suppress, graphic_end): Update.
7197 * src/include/html-strings.h: New file.
7198 * src/include/htmlindicate.h: Comments updated.
7199 * src/include/printer.h: Updated.
7201 * src/preproc/eqn/main.cc (do_file, main): Updated.
7202 * src/preproc/pic/troff.cc (troff_output::start_picture,
7203 troff_output::finish_picture): Updated.
7204 * src/preproc/tbl/main.cc (process_input_file): Updated.
7206 * src/roff/groff/groff.cc (main): Updated.
7207 Pass device arguments to predrivers also.
7208 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7209 * src/roff/troff/env.h (environment): Updated.
7210 New elements `need_eol' and `ignore_next_eol' (for html output).
7211 * src/roff/troff/env.cc (environment::environment): Add initializers
7212 for `need_eol' and `ignore_next_eol'.
7213 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7215 (point_size, fill, no_fill, center, right_justify, line_length,
7216 indent, temporary_indent, break_request, handle_tab): Use
7218 (set_tabs): Use `add_html_tag_tabs()'.
7219 (environment::add_html_tag): Updated.
7220 (environment::do_break): Updated.
7221 * src/roff/troff/div.cc (space_request, flush_output): Use
7222 `environment::add_html_tag()'.
7223 * src/roff/troff/input.cc: Updated.
7224 New variable `html_level' to indicate nested `html-begin' requests.
7225 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7226 (non_interpreted_char_node, token_node, non_interpreted_node): Add
7227 `force_tprint()' method.
7228 (token::next): Handle `\O'.
7229 (do_suppress): Implement it.
7230 (html_begin, html_end, html_image): New functions.
7231 (init_output_requests): Renamed to ...
7232 (init_html_requests): this.
7234 (macro::append_str, macro::append_unsigned, macro::append_int): New
7236 New variable `output_low_mark_miny' to limit minimal value of y.
7237 (reset_output_registers): Use it.
7238 (output_request): Removed.
7239 (get_output_registers): New function.
7240 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7241 (*_node): Added `force_tprint()' if necessary.
7242 (special_node): New elements `tf' and `get_tfont()'.
7243 (suppress_node): New class.
7244 * src/roff/troff/node.cc:
7245 New global variables `image_no' and `suppress_start_page'.
7246 (real_output_file): New method `is_on()'.
7247 (troff_output_file): New method `start_special(tfont)'.
7248 (troff_output_file::really_print_line): Use `tprint' conditionally.
7249 (real_output_file::print_line): Updated.
7250 (real_output_file::on): Updated.
7251 (*_node): Added `force_tprint()'.
7252 (special_node::special_node): Initializer updated.
7253 (special_node::same, special_node::copy, special_node::tprint_start):
7255 (get_reg_int, get_reg_str): New functions.
7256 (suppress_node::*): New methods.
7257 New global variables last_position, last_image_filename;
7258 (min): New inline function.
7259 * src/roff/troff/reg.h, src/roff/troff/request.h,
7260 src/roff/troff/troff.h: Updated.
7262 2001-01-13 Werner LEMBERG <wl@gnu.org>
7264 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7265 documentation of `asciify' request.
7267 2001-01-12 Werner LEMBERG <wl@gnu.org>
7269 * src/roff/troff/input.cc: Move definition of special characters
7270 like `ESCAPE_TILDE' to ...
7271 * src/roff/troff/input.h: New file.
7272 * src/roff/troff/Makefile.sub (HDRS): Add it.
7274 Extending the .asciify request to `unformat' space characters also.
7276 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7277 to count input space characters.
7278 Update constructors to take care of it.
7279 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7280 `ESCAPE_SPACE' instead of normal space.
7281 (word_space_node::asciify): New method.
7282 (unbreakable_space_node::asciify): New method.
7283 (word_space_node::merge_space): New method.
7284 * src/roff/troff/env.cc (environment::space_newline,
7285 environment::space): Add code to initialize `num_spaces' (using the
7286 constructor of `word_space_node').
7287 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7290 2001-01-09 Werner LEMBERG <wl@gnu.org>
7292 * man/groff_char.man: Use table header traps only conditionally.
7294 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
7296 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7298 2001-01-08 Werner LEMBERG <wl@gnu.org>
7300 Introducing the `box' and `boxa' requests which are similar to
7301 `di' resp. `da' but omitting a partially filled line (which is
7302 restored after ending the diversion).
7304 * src/roff/troff/div.h (diversion): Add elements to save partially
7306 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7307 partially filled line.
7308 (divert, divert_append): Updated.
7309 (box, box_append): New functions.
7310 (init_div_requests): Use them.
7311 * src/roff/troff/env.h (environment): do_divert() is now a friend.
7312 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7314 * doc/groff.texinfo: Fix documentation of `lf' request.
7316 2000-12-25 Werner LEMBERG <wl@gnu.org>
7318 * src/roff/troff/troff.man, NEWS: Document `writem' request.
7320 2000-12-21 Werner LEMBERG <wl@gnu.org>
7322 Ignore `ss' request if in compatibility mode.
7324 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7325 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7326 * src/roff/troff/env.cc (space_size): Use it.
7328 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7329 `ss' request in nroff mode.
7331 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7334 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
7336 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7338 2000-12-13 Werner LEMBERG <wl@gnu.org>
7340 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7341 * src/preproc/eqn/neqn.man: Small fixes and additions.
7343 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
7345 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7348 * src/preproc/eqn/neqn.man: New file.
7350 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7353 * tmac/e.tmac: Add `T&' macro.
7354 Fix `indent cannot be negative' warning.
7355 * tmac/s.tmac: Fix `indent cannot be negative' warning.
7357 2000-12-07 Werner LEMBERG <wl@gnu.org>
7359 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7361 2000-12-06 Werner LEMBERG <wl@gnu.org>
7363 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7366 * MORE.STUFF: Added info about deroff for djgpp.
7368 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7369 documentation of -rcR switch.
7371 2000-12-03 Werner LEMBERG <wl@gnu.org>
7373 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7374 if -rcR=1 (which is now the default in nroff mode), a single, very
7375 long page is created instead of multiple pages: All `ne' and `wh'
7376 requests are put into conditionals; a new macro `an-end' is added to
7377 be called with `em'.
7379 Some other minor cleanups.
7381 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7383 2000-12-02 Werner LEMBERG <wl@gnu.org>
7385 Fixing a bug which prevented hyphenation in words followed
7386 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7388 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7389 Adding possibly_break_line().
7390 * src/roff/troff/env.h (environment): Make possibly_break_line()
7393 Make `\~' usable in .tr request.
7395 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7396 (token): Add stretchable_space().
7397 * src/roff/troff/input.cc (token::next, token::delimiter,
7398 token::description, process_input_stack, do_translate,
7399 add_to_node_list, token::process): Use it.
7400 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7401 for adjusting the space.
7402 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
7403 for stretchable space.
7404 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7405 (make_node): Add code for stretchable space.
7406 * src/roff/troff/env.cc (environment::add_char): Use it.
7407 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7408 (get_copy, token::next, transparent_translate, asciify): Use it.
7410 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7411 doc/groff.texinfo: Updated.
7412 * man/groff.man: Small reorderings.
7414 2000-11-23 Werner LEMBERG <wl@gnu.org>
7417 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7419 * src/roff/troff/input.cc (main): Add `config_macro_path' and
7420 `safer_macro_path' to -M option.
7421 * src/roff/troff/troff.man: Fixes.
7423 2000-11-22 Werner LEMBERG <wl@gnu.org>
7425 Use safer path (except for config files) if -U isn't specified. Add
7426 a special macro path (without home and current directory) for config
7427 files. Add home directory to unsafe path for consistency. Don't
7428 include the home directory in the font path.
7430 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7432 * src/include/macropath.h: Add `config_macrp_path'.
7433 * src/libs/libgroff/fontfile.cc: Fix font path.
7434 * src/roff/troff/input.cc (process_startup_file): Use
7435 `config_macro_path'.
7436 (main): Select unsafe path if -U is given.
7438 * src/preproc/eqn/main.cc (main): Fixing search path for
7440 * src/preproc/eqn/eqn.man: Updated.
7442 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7445 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7446 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7447 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7448 src/devices/grotty/grotty.man: Updated.
7450 * Makefile.in: Fix comments.
7452 2000-11-17 Werner LEMBERG <wl@gnu.org>
7454 * tmac/safer.tmac: Empty file added (again) for compatibility
7456 * tmac/Makefile.sub: Updated.
7458 2000-11-16 Werner LEMBERG <wl@gnu.org>
7460 * src/devices/grodvi/dvi.cc (main),
7461 src/devices/grohtml2/post-html.cc (main),
7462 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7463 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7464 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7465 (main), src/preproc/html2/pre-html.cc (main),
7466 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7467 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7468 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7469 (main), src/utils/hpftodit/hpftodit.cc (main),
7470 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7471 (main), src/utils/lookbib/lookbib.cc (main),
7472 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7473 (main): Use stdout for -v.
7474 * src/roff/groff/groff.cc (run_commands),
7475 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7476 to make direct printing to stdout possible.
7477 * src/roff/groff/pipeline.h: Updated.
7479 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7480 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7481 * src/utils/afmtodit/afmtodit.man: Updated.
7483 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7484 (version): New function.
7486 * src/utils/addftinfo/addftinfo.man: Updated.
7488 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7489 Fixing copyright dates.
7491 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7494 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7497 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7499 2000-11-15 Werner LEMBERG <wl@gnu.org>
7501 In all programs, make -v return immediately with exit status 0 to
7502 be compliant with the GNU standard.
7504 * src/devices/grodvi/dvi.cc (main),
7505 src/devices/grohtml2/post-html.cc (main),
7506 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7507 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7508 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7509 (main), src/preproc/html2/pre-html.cc (main),
7510 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7511 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7512 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7513 (main): Implement it.
7516 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
7517 and postprocessors to the -v option.
7519 * src/roff/grog/grog.pl: Implement -v.
7520 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7521 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7523 * src/roff/nroff/nroff.sh: Implement -v.
7524 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7525 * src/roff/nroff/nroff.man: Updated.
7527 * src/preproc/eqn/main.cc (main): Fix comment typo.
7529 * MORE.STUFF: Added info about djgpp port of grap.
7531 2000-11-14 Werner LEMBERG <wl@gnu.org>
7533 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7534 mode (or rather, implemented non-compatibility mode).
7535 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7537 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7538 replacing it -- we don't find gxditview otherwise.
7539 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7541 * src/preproc/pic/depend: Removed. Unnecessary.
7543 Implemented dummy keyword `solid' in pic for compatibility with
7546 * lex.cc (lookup_keyword): Added `solid'.
7547 * pic.y: Added SOLID with dummy rule.
7548 * pic.cc, pic_tab.h: Regenerated.
7549 * doc/pic.ms: Updated.
7551 2000-11-13 Werner LEMBERG <wl@gnu.org>
7553 For security reasons, don't use the current directory but the home
7554 directory while searching and scanning troffrc and troffrc-end.
7555 Similarly, replace the current directory with the home directory
7558 * Makefile.in (fontpath, tmacpath): Remove current directory.
7560 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
7561 two parameters `add_home' and `add_current'.
7562 (search_path::~search_path, search_path::command_line_dir,
7563 search_path::open_file): Remove tests for `dirs' being zero.
7564 * src/include/searchpath.h: Adjust.
7565 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
7567 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
7569 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
7570 * src/roff/troff/input.cc: Use `mac_path', initialized with
7572 (process_startup_file): Set `mac_path' to `safer_macro_path'.
7573 * src/roff/troff/env.cc: Use `mac_path'.
7575 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
7577 * NEWS, man/roff.man, src/roff/troff/troff.man,
7578 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
7581 2000-11-12 Werner LEMBERG <wl@gnu.org>
7583 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
7585 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
7586 * configure.in: Fix typo in comment.
7587 * configure: Regenerated.
7589 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
7592 2000-11-08 Werner LEMBERG <wl@gnu.org>
7594 Add system tmac directory (/usr/local/lib/groff/site-tmac).
7596 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
7597 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
7600 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
7601 * tmac/Makefile.sub (install_data): Create
7602 $(systemtmacdir) and $(localtmacdir).
7603 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
7604 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
7605 NEWS, doc/groff.texinfo: Updated and minor fixes.
7607 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
7608 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
7609 $(systemtmacdir) since the wrapper files are platform-dependent.
7611 2000-11-01 Werner LEMBERG <wl@gnu.org>
7613 * doc/groff.texinfo: Fix typo.
7615 2000-10-26 Werner LEMBERG <wl@gnu.org>
7617 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
7618 tmac.doc.old -> doc-old.tmac
7619 tmac.an.old -> an-old.tmac
7621 * tmac/tmac.*: Moved to ...
7622 * tmac/*.tmac: this.
7623 * tmac/man.local: Fix comment.
7624 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
7625 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
7626 Added some `FILES' sections. More use of @...@ directives. Other
7628 * arch/djgpp/README, font/devutf8/NOTES: Updated.
7629 * doc/homepage.ms, doc/groff.texinfo: Updated.
7630 * man/groff.man, man/roff.man: Updated.
7631 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
7632 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7633 src/devices/grotty/grotty.man: Updated.
7634 * src/preproc/pic/pic.man: Updated.
7635 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
7636 instead of -mdoc.old.
7637 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
7638 * src/roff/nroff/nroff.man: Updated.
7641 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
7643 * tmac/mm.diff: Removed -- it has no use now since the mm package
7646 * tmac/*: Removed trailing spaces.
7648 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
7649 the tmac subdirectory also).
7651 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
7652 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
7653 stuff since it is no longer needed.
7655 * README, PROBLEMS: Updated.
7657 2000-10-25 Werner LEMBERG <wl@gnu.org>
7659 Invert current behaviour: Search first FOOBAR.tmac, then
7662 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
7663 (open_mac_file, macro_source): Implement it.
7664 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
7665 doc/groff.texinfo, NEWS: Document it.
7667 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
7668 Small documentation improvements.
7670 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
7673 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
7675 2000-10-24 Werner LEMBERG <wl@gnu.org>
7677 Add local tmac directory (groff/site-tmac).
7679 * Makefile.in: Add $(localtmacdir).
7680 (uninstall_dirs): Add $(localtmacdir).
7681 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
7682 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
7683 in $(localtmacdir). Create $(localtmacdir).
7684 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
7685 Updated and minor fixes.
7687 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
7689 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
7691 2000-10-23 Werner LEMBERG <wl@gnu.org>
7693 Move hyphen.us to tmac directory.
7695 * src/roff/troff/hyphen.us: Removed.
7696 * src/tmac/hyphen.us: Added.
7697 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
7699 Change installation structure for data files from .../groff/... to
7700 .../groff/<version><revision>/... to be conform with other GNU
7703 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
7704 doc/Makefile: Implement it.
7705 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
7706 * configure: Updated.
7707 * arch/djgpp/README, font/devutf8/NOTES: Use it.
7708 * NEWS: Document it.
7709 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
7710 @MACRODIR@ instead of hard-coded directories.
7712 2000-10-22 Werner LEMBERG <wl@gnu.org>
7714 Implement $GROFF_BIN_PATH environment variable (which defaults to
7715 $bindir) used for child programs of groff and similar wrappers.
7717 * gendefs.sh: Improve documentation.
7718 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
7719 src/preproc/eqn/Makefile.sub (neqn),
7720 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
7721 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
7723 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
7724 $GROFF_PATH__ (the latter for communication with troff).
7725 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
7727 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
7728 doc/groff.texinfo: Document it.
7730 * doc/groff.texinfo: Improve documentation of troff's -a option.
7732 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
7734 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
7735 non-intrusive eol marker.
7736 (troff_output_file::determine_line_limits): New function.
7737 (troff_output_file::draw): Use it.
7738 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
7739 output_pending_lines() instead of output_line().
7740 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
7741 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
7742 createImage): Small fixes.
7744 2000-10-14 Werner LEMBERG <wl@gnu.org>
7746 Replace tmac.safer with a real secure solution.
7748 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
7749 system_request, pipe_output): Disable requests if in safer mode.
7750 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
7751 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
7752 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
7753 doc/groff.texinfo, src/roff/groff/groff.man,
7754 src/roff/troff/troff.man, arch/djgpp/README: Updated.
7756 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
7757 (resource_manager::output_prolog): Replace setenv() with putenv().
7759 2000-10-09 Werner LEMBERG <wl@gnu.org>
7761 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
7762 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
7763 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
7764 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
7765 compilation errors with some compilers. It seems that this code
7766 is no longer necessary -- if yes, it is easy to add some #ifdef's
7767 for that particular old-fashioned compiler.
7769 * MORE.STUFF: Added info about Meta-tbl.
7771 * doc/groff.texinfo: Added more info about `.if "..."..."'.
7773 2000-10-07 Werner LEMBERG <wl@gnu.org>
7775 Adding a new escape sequence \B'...': If the string between
7776 the delimiters is a valid numeric expression, return the character
7777 `1', and `0' otherwise. This is an analogon to \A.
7779 * src/roff/troff/input.cc (do_expr_test): Implement it.
7780 (token::next): Use it.
7781 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
7783 * tmac/tmac.trace: Made independent from escape character.
7785 2000-10-06 Werner LEMBERG <wl@gnu.org>
7787 Adding a new request .dei: define indirect. The first and second
7788 parameter of .dei are taken from string registers instead directly;
7789 this very special request is needed to make tmac.trace independent
7790 from the escape character (which might even be disabled).
7792 * src/roff/troff/input.cc (do_define_macro): Implement it.
7793 (define_macro_indirect): New function.
7794 (init_input_requests): Use it.
7796 Adding two requests .ecs and .ecr: Save and restore the escape
7797 character. These two requests are needed to make tmac.trace
7798 independent from the escape character (which might even be
7801 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
7803 (init_input_requests): Use it.
7805 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7807 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
7809 Adding a new option -P and new environment variable GROPS_PROLOGUE
7810 to grops, selecting a different prologue file (minor modifications
7813 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
7814 src/devices/grops/ps.cc (main): Implement it.
7815 * src/devices/grops/grops.man, NEWS: Document it.
7817 2000-09-22 Werner LEMBERG <wl@gnu.org>
7819 * INSTALL: Add info about selecting paper format.
7821 2000-09-21 Werner LEMBERG <wl@gnu.org>
7823 * src/roff/troff/input.cc (main): Fixing compiler warning.
7824 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
7825 strings.h from the former to the latter.
7826 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
7827 stuff from the former to the latter.
7829 2000-09-11 Werner LEMBERG <wl@gnu.org>
7831 Implementing two new requests .tm1 and .tmc: The former is similar
7832 to .tm but can output leading spaces; its syntax is similar to
7833 defining a string, i.e., a `"' can be used to mark the beginning of
7834 the string to be written to stderr: `.tm1 " test'. The latter is
7835 similar to .tm1 but doesn't write out a final newline character.
7837 * src/roff/troff/input.cc (terminal1, terminal_continue,
7838 do_terminal): New functions.
7839 (init_input_requests): Use them.
7840 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7842 2000-09-09 Werner LEMBERG <wl@gnu.org>
7844 * tmac/groff_mdoc.samples.man: Small fixes.
7846 2000-09-08 Werner LEMBERG <wl@gnu.org>
7848 * tmac/groff_mdoc.man: Fixing typo.
7850 2000-09-02 Werner LEMBERG <wl@gnu.org>
7852 Implementing a .nop request which does nothing.
7854 * src/roff/troff/input.cc (nop_request): New function.
7855 (init_input_requests): Use it.
7856 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7858 2000-09-01 Werner LEMBERG <wl@gnu.org>
7860 * doc/groff.texinfo: Added some comments.
7862 2000-08-30 Werner LEMBERG <wl@gnu.org>
7864 * src/roff/troff/TODO: Updated.
7866 2000-08-25 Werner LEMBERG <wl@gnu.org>
7868 * doc/groff.texinfo: Fix comment how to compile the DVI file.
7870 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
7872 * font/devps/generate/Makefile (SHELL): Define explicitly to
7873 "/bin/sh", for non-Unix platforms.
7874 (extraclean): Use a more portable "" quoting instead of a
7875 backslash (which doesn't work on DOS/Windows).
7877 * font/devlj4/generate/Makefile (extraclean): Ditto.
7879 * font/devdvi/generate/Makefile (extraclean): Ditto.
7881 2000-08-25 Werner LEMBERG <wl@gnu.org>
7883 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
7884 src/roff/troff/troff.man: Document Eli's latest changes.
7886 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
7888 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
7889 macro file names of the form NAME.tmac as well as tmac.NAME.
7891 2000-08-25 Werner LEMBERG <wl@gnu.org>
7893 * src/include/posix.h: Remove definition of FILENAME_MAX.
7895 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
7896 `sys_fatal' and `stop' function().
7898 * test-groff: Updated.
7900 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
7902 Added the new troff command .output <arg> to suppress output (while
7903 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
7904 registers (for passing the output dimensions to the output device).
7906 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
7908 * src/roff/troff/node.h, src/roff/troff/node.cc
7909 (troff_output_file::really_print_line,
7910 ascii_output_file::really_print_line,
7911 supress_output_file::really_print_line): Use `width' parameter.
7912 (troff_output_file::really_on, troff_output_file::really_off,
7913 output_file::on, output_file::off, real_output_file::on,
7914 real_output_file::off, real_output_file::really_on,
7915 real_output_file::really_off): New functions.
7916 (real_output_file:public output_file): New variable `output_on'.
7917 (real_output_file::begin_page, real_output_file::copy_file,
7918 real_output_file::transparent_char, real_output_file::print_line):
7920 (real_output_file::print_line): Use check_output_limits.
7921 * src/roff/troff/reg.h, src/roff/troff/request.h,
7922 src/roff/troff/input.cc (assign_registers): New function to remove
7924 (do_ps_file): Use it.
7925 (check_output_limits, reset_output_registers, output_request,
7926 init_output_requests): New functions.
7927 (init_input_requests): Updated.
7929 Added new grohtml2 device and html2 preprocessor (coding
7930 not yet finished) which will eventually replace grohtml.
7932 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
7934 * src/include/htmlindicate.h, src/include/htmlindicate
7935 (html_begin_suppress, html_end_suppress): New functions.
7936 * src/preproc/tbl/main.cc: Use it.
7937 * src/roff/groff/groff.cc: Add support for html2 device (which will
7938 automatically invoke the html2 preprocessor).
7939 * src/roff/troff/input.cc (is_html2): New variable.
7940 * src/roff/troff/troff.h, src/roff/troff/env.h,
7941 src/roff/troff/env.cc (environment::add_html_tag): New function
7943 (environment::do_break): Use it.
7944 * font/devhtml2/*: New files.
7945 * src/devices/grohtml2: New device.
7946 * src/preproc/html2: New preprocessor.
7947 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
7949 2000-08-23 Werner LEMBERG <wl@gnu.org>
7951 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
7953 2000-08-22 Werner LEMBERG <wl@gnu.org>
7955 * src/include/lib.h: Provide a fix for IRIX to not include
7958 2000-08-18 Werner LEMBERG <wl@gnu.org>
7960 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
7961 since some non-GNU sed programs can't handle null regexps.
7962 * configure, src/preproc/eqn/Makefile.sub,
7963 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
7965 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
7966 bug (string.h and strings.h are both needed according to latest
7969 * MORE.STUFF: Added info about unroff and troffcvt.
7971 2000-08-08 Werner LEMBERG <wl@gnu.org>
7973 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
7976 * tmac/tmac.man.old: Remove unused number register.
7978 * tmac.doc: Minor documentation fix.
7980 2000-08-07 Paul Eggert <eggert@twinsun.com>
7982 * src/roff/groff/pipeline.c (is_system_shell):
7983 Fix typo: "monocased_shell" no longer exists.
7985 2000-08-07 Paul Eggert <eggert@twinsun.com>
7987 Remove FILENAME_MAX limits.
7989 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
7990 that the argument length is less than FILENAME_MAX.
7991 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
7992 Use struct hack to allocate and free file name.
7993 (struct xtmpfile_list): fname is now part of the structure,
7994 not a pointer to another string.
7996 2000-08-07 Tom Schmidt <tschmidt@micron.com>
7998 * src/include/posix.h: Add a default value for FILENAME_MAX.
8000 2000-08-06 Paul Eggert <eggert@twinsun.com>
8002 Add support for new BSD-style man pages (with ".Dd" instead of
8003 ".TH"), so that "groff -man" understands both styles, even
8004 when running "groff -man" on a host whose system man page
8005 macros don't support ".Dd".
8007 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8008 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8009 in case the system man macros don't define Dd or TH.
8011 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8012 * tmac/tmac.an: New one-line file.
8013 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8015 2000-08-06 Werner LEMBERG <wl@gnu.org>
8017 * src/roff/troff/troff.man: Fixing typos.
8019 Version 1.16.1 released
8020 =======================
8022 2000-07-31 Werner LEMBERG <wl@gnu.org>
8024 Preparing release 1.16.1.
8026 * REVISION: Revision number set to 1.
8027 * MORE.STUFF: Added info about port to DOS.
8028 * NEWS, win32-diffs: Updated.
8030 * src/include/nonposix.h: Remove first line -- this file is used
8033 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8036 2000-07-30 Werner LEMBERG <wl@gnu.org>
8038 * doc/texinfo.tex: Update to latest version.
8040 2000-06-28 Paul Eggert <eggert@twinsun.com>
8042 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8043 commands that fail. Don't assume that "export a=b" is valid shell
8044 syntax. This is needed for Solaris 2.5.1.
8046 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8047 comment about missing Solaris headers.
8049 * PROBLEMS: Add section about problems with Sun Make and VPATH.
8051 2000-06-25 Werner LEMBERG <wl@gnu.org>
8053 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8056 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8058 * win32-diffs: Updated.
8059 * README.WIN32: Added CRs to make all Windows editors happy.
8061 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8062 src/roff/groff/pipeline.c).
8064 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8066 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8067 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8069 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
8071 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8072 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8074 (main): Support non-Posix systems with several different styles of
8075 slash characters in file names.
8077 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8078 (main) [SET_BINARY]: Switch stdin into binary mode.
8080 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8081 (main): Support file names with several possible slash-type
8082 characters, as given by DIR_SEPS[] in nonposix.h.
8083 (main) [__MSDOS__]: If renaming the temporary index file fails
8084 because it has more than one dot in its trunk, replace the dot
8085 with an underscore and try again.
8086 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
8088 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8090 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8091 (File::File): Open the input file in binary mode. Strip CR
8092 characters from each CR-LF pair.
8093 (xbasename): Support file names with several possible slash-type
8094 characters, as given by DIR_SEPS[] in nonposix.h.
8096 * src/include/Makefile.sub (HDRS): Add nonposix.h.
8098 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8099 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8100 [!_POSIX_VERSION]: Define for traditional Unix systems.
8101 (real_output_file::real_output_file): Remove the MSVC-specific
8102 call to popen, use instead POPEN_WT, appropriately defined on
8103 nonposix.h. #include nonposix.h.
8104 (real_output_file::~real_output_file): Remove the MSVC-specific
8105 call to pclose, a suitable macro is now defined on nonposix.h.
8106 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8107 and WEXITSTATUS instead of assuming traditional Unix
8108 interpretation of the status returned by pclose.
8110 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8111 call to popen, use POPEN_RT instead (appropriately defined on
8112 nonposix.h). #include nonposix.h.
8113 (ps_bbox_request): Open the PostScript file in binary mode.
8114 Close the file after processing it.
8115 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8118 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8119 A version of run_pipeline that doesn't use `fork'.
8120 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8121 (system_shell_name, system_shell_dash_c)
8122 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8123 the ugliness of testing DOS/Windows file names for equality, and
8124 support both stock shells and ports of Unix shells.
8126 * src/roff/groff/groff.cc: #include nonposix.h.
8127 (BSHELL): Definition moved to nonposix.h.
8128 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
8129 instead of a literal "-c".
8130 (xbasename): Support file names with several possible slash-type
8131 characters, as given by DIR_SEPS[] in nonposix.h.
8132 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8135 * src/preproc/soelim/soelim.cc: #include nonposix.h.
8136 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8138 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8141 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8143 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8146 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8148 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8149 P_tmpdir is defined, use it instead of the literal "/tmp".
8150 (remove_tmp_files, add_tmp_file): New functions.
8151 (xtmpfile): Record temporary files and register an atexit function
8152 to delete them explicitly, instead of relying on the OS to do
8153 that, which doesn't work on non-Unix systems.
8155 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8156 (search_path::search_path): Use PATH_SEP instead of a literal
8158 (search_path::command_line_dir): Ditto.
8159 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8160 to support non-Posix systems.
8162 * src/libs/libbib/search.cc: #include nonposix.h.
8163 (search_list::add_file): Open the file in binary mode.
8165 * src/libs/libbib/linear.cc: #include nonposix.h.
8166 (file_buffer::load): Remove \r characters preceding \n from the
8169 * src/libs/libbib/index.cc: #include nonposix.h.
8170 (make_index_search_item): Open index_filename in O_BINARY mode.
8171 (index_search_item_iterator::get_tag): Ditto. Remove \r
8172 characters before \n characters.
8173 (index_search_item::check_files): Open files in binary mode.
8174 (index_search_item::munge_filename): Support DOS-style file names
8175 with backslashes and drive letters, use IS_ABSOLUTE.
8177 * src/devices/grops/ps.cc: #include nonposix.h.
8178 (main) [SET_BINARY]: Switch stdout to binary mode.
8180 * src/devices/grolj4/lj4.cc: #include nonposix.h.
8181 (main) [SET_BINARY]: Switch stdout to binary mode.
8183 * src/devices/grolbp/lbp.cc: #include nonposix.h
8184 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8186 * src/devices/grodvi/dvi.cc: #include nonposix.h.
8187 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8189 (main) [SET_BINARY]: Switch stdout to binary mode.
8190 [_MSC_VER]: Remove an explicit call to _setmode.
8192 * src/include/nonposix.h: New file.
8194 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8195 operation when building with DJGPP.
8196 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8197 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8200 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8202 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8203 etc. can include a semi-colon on DOS/Windows.
8204 (depend.temp): Use depend1.temp instead of depend.temp1, to
8205 prevent files from overerwiting each other on 8+3 filesystems.
8207 * gendef.sh (t): Change definition to work with DOS/Windows.
8209 doc/groff.texinfo: Apart of some typo corrections, I also changed
8210 some index entris, to make them more non-ambiguous, and also put
8211 @ignore around some parts that are not yet written, to allow the
8212 Info output be readable.
8214 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
8216 Replaced specific checks for function declarations with a generic
8217 routine taken from GNU bfd.
8219 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8220 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8221 * configure.in: Use it.
8222 * src/devices/grolbp/lbp.cc, src/include/lib.h,
8223 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8224 src/roff/groff/groff.cc: Use it.
8225 * Makefile.in, configure: Updated.
8227 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
8229 * src/devides/grolbp/lbp.h: Removed unused variables.
8231 2000-05-31 Keith Thompson <kst@sdsc.edu>
8233 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8236 2000-05-31 Werner LEMBERG <wl@gnu.org>
8238 * aclocal.m4 (GROFF_SRAND): New function to test the return value
8239 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8240 * configure.in: Use it.
8241 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8242 * configure, Makefile.in: Updated.
8244 * configure.in: Add test for strncasecmp().
8245 * src/include/lib.h: Use it.
8247 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
8249 * src/preproc/grn/Makefile.sub: Add MLIB.
8251 2000-05-29 Nix <nix@esperi.demon.co.uk>
8253 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8255 2000-05-29 Werner LEMBERG <wl@gnu.org>
8257 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8259 * PROBLEMS: Small update.
8261 * src/devices/grolbp/lbp.cc: Various small fixes.
8263 2000-05-28 Keith Thompson <kst@sdsc.edu>
8265 * src/roff/nroff/nroff.sh: Fix main loop syntax.
8267 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8269 2000-05-25 Werner LEMBERG <wl@gnu.org>
8271 * man/roff.man: Removed unused macro.
8273 2000-05-24 Werner LEMBERG <wl@gnu.org>
8275 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
8276 This is needed e.g. if you do
8277 `make distclean; ./configure; make dist'.
8279 Version 1.16 released
8280 =====================
8282 2000-05-23 Werner LEMBERG <wl@gnu.org>
8284 Adding font CWI (constant width italic) to devdvi.
8286 * font/devdvi/CWI: New file.
8287 * font/devdvi/generate/Makefile: Add generating rule.
8288 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8289 tmac/tmac.dvi: Use it.
8290 * NEWS: Announce it.
8292 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8293 * font/devlj4/generate/Makefile: Cosmetic changes only.
8295 * man/groff.man: Removed most of the redundant description of
8296 special characters (which is in groff_char.man). Added font
8297 translation CB->CR for devdvi. Other minor fixes.
8299 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8300 (registered) symbols.
8302 2000-05-22 Werner LEMBERG <wl@gnu.org>
8304 * doc/Makefile: Added rule for creating info files.
8306 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
8308 * font/devdvi/generate/Makefile: Fixed dependencies.
8310 * font/devps/*: Regenerated. Heavy changes for Bookman and
8311 NewCentury Schoolbook!
8312 * font/devps/generate/afmname: Will now run with GNU awk.
8313 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8314 * font/devps/generate/Makefile: Cosmetic changes only.
8316 2000-05-21 Werner LEMBERG <wl@gnu.org>
8318 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8319 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
8320 `.SS' now produces a heading with a smaller size than `.SH'.
8321 Completely formatted.
8322 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8324 * man/groff.man: Improved table appearance. Use of `eo' request
8325 to reduce number of doubled backslashes in macro definitions.
8326 Replacing `\e' with `\(rs'. Other minor fixes.
8328 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8329 to have correct line number.
8331 * INSTALL: Small improvement.
8333 2000-05-20 Bernd Warken <bwarken@mayn.de>
8335 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8338 2000-05-19 Bernd Warken <bwarken@mayn.de>
8340 * man/groff.man: Complete update (with a lot of corrections by WL).
8342 2000-05-18 Werner LEMBERG <wl@gnu.org>
8344 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8346 * font/*/*: Implement it.
8347 * man/groff_char.man, NEWS: Document it.
8349 * src/include/unix.h: Removed. It isn't used.
8351 * doc/groff.texinfo: Slight improvements.
8353 2000-05-17 Werner LEMBERG <wl@gnu.org>
8355 * README, win32-diffs: Small fixes and improvements.
8357 2000-05-16 Werner LEMBERG <wl@gnu.org>
8359 * FDL: New file (the Free Documentation License version 1.1).
8361 * doc/groff.texinfo: Added many start-up values for gtroff.
8362 Some structural improvements of the source code.
8364 2000-05-15 Werner LEMBERG <wl@gnu.org>
8366 * src/roff/troff/input.cc: Added small comment about troffrc-end.
8367 * src/roff/troff/troff.man: Added info about troffrc-end.
8369 2000-05-14 Werner LEMBERG <wl@gnu.org>
8371 * Makefile.in (EXTRADIRS): Fix typos.
8372 (dist): Handle deletion of old .tar.gz file correctly.
8373 (DISTDIRS): Include all tty output devices.
8375 * doc/groff.texinfo: Adding more cross references; countless other
8378 2000-05-13 Werner LEMBERG <wl@gnu.org>
8380 * MORE.STUFF: Added Robert Marks's utilities.
8382 2000-05-12 Werner LEMBERG <wl@gnu.org>
8384 Added win32 port contributed by Blake McBride
8385 <blake@florida-software.com>.
8387 * README.WIN32, win32-diffs: New files.
8390 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8391 (tmove, tmove2): Added parentheses to avoid compiler warnings.
8392 (change): Removed unused variables.
8394 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8395 (savebounds): Changed return value from `int' to `void'.
8396 * src/preproc/grn/hdb.cc: Ditto.
8398 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8399 final backslash in comment to avoid compiler warning.
8401 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8403 * doc/groff.texinfo: More fixes.
8405 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
8407 * tmac/tmac.doc: Documentation fix.
8409 2000-05-11 Werner LEMBERG <wl@gnu.org>
8411 * doc/groff.texinfo: Reading the source code shows up a lot of
8412 omissions and incorrect data... More conversion to @Deffn macros.
8414 2000-05-10 Werner LEMBERG <wl@gnu.org>
8416 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8419 * src/roff/troff/request.h: Removing unused `no_break_flag'.
8421 2000-05-09 Werner LEMBERG <wl@gnu.org>
8423 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8426 * doc/groff.texinfo: Extended history section. More conversion to
8427 @Deffn macros. More .tr documentation.
8429 2000-05-07 Werner LEMBERG <wl@gnu.org>
8431 * doc/groff.texinfo: Completed tab section. Added info about
8434 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
8436 * PROBLEMS: Describe configure script fix for OS/390 Unix.
8438 2000-05-05 Werner LEMBERG <wl@gnu.org>
8440 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8442 * NEWS: Document it.
8444 * man/troff.man: Minor optical improvements.
8446 2000-05-03 Werner LEMBERG <wl@gnu.org>
8448 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8450 * font/*/*: Implement it.
8451 * man/groff_char.man, NEWS: Document it.
8453 2000-05-02 Werner LEMBERG <wl@gnu.org>
8455 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8457 * NEWS: Document the three new man pages.
8459 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8460 * configure: Updated.
8462 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8464 2000-05-01 Werner LEMBERG <wl@gnu.org>
8466 Added grap support to grog.
8468 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8469 * src/roff/grog/grog.man: Document it.
8471 * doc/groff.texinfo, NEWS: Add info about grap support.
8473 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8474 (with slight fixes by me).
8476 * tmac/groff_tmac.man: New file documenting tmac mechanism.
8477 * tmac/Makefile.sub: Add groff_tmac.man.
8478 * man/roff.man: New file giving overview of roff system.
8479 * man/troff.man: A short reference of troff.
8480 * man/Makefile.sub: Add roff.man and troff.man.
8482 2000-04-30 Werner LEMBERG <wl@gnu.org>
8484 Added grap support to groff.
8486 * src/roff/groff/groff.cc: Implement it.
8487 * src/roff/groff/groff.man: Document it.
8489 * src/devices/grotty/grotty.man: Add cp1047 device.
8490 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8492 * src/roff/groff/groff.man: Ditto.
8493 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8494 * doc/groff.texinfo: Ditto.
8496 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8499 2000-04-29 Werner LEMBERG <wl@gnu.org>
8501 * man/groff_char.man: Add `pc' glyph.
8502 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8503 * tmac/tmac.tty: Add `pc' glyph.
8504 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
8505 we use cp1047 output device.
8507 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8508 there are still hardcoded latin1->unicode values in utf8's font
8510 * configure: Updated.
8511 * NEWS: Minor clarification. Updated.
8513 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
8516 2000-04-28 Werner LEMBERG <wl@gnu.org>
8518 Adding EBCDIC code page 1047.
8520 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8521 font/devcp1047/DESC.proto: New files.
8523 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8524 either ascii/latin1 or cp1047.
8525 * Makefile.in: Use it.
8526 * configure: Updated.
8528 Replacing and/or adding `md' (mathdot) glyph with `pc'
8529 (periodcentered) in all text fonts.
8531 * font/*/*: Change it.
8533 2000-04-27 Werner LEMBERG <wl@gnu.org>
8535 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8537 * configure.in: Add check for strings.h.
8538 * src/include/driver.h: Use HAVE_STRINGS_H.
8539 * src/devices/grolbp/lpb.cc: Remove string.h.
8541 * src/include/groff-getopt.h: New file. It will be used instead of
8542 getopt.h (to be included in lib.h) to avoid endless problems with
8543 picky C++ compilers.
8544 * src/include/lib.h: Use groff-getopt.h.
8545 * src/include/Makefile.sub: Updated.
8547 * configure: Updated.
8548 * Makefile.in: Updated.
8550 * NEWS: Mention EBCDIC support.
8552 2000-04-26 Werner LEMBERG <wl@gnu.org>
8554 * TODO: Some additions.
8556 2000-04-25 Werner LEMBERG <wl@gnu.org>
8558 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
8561 2000-04-23 Werner LEMBERG <wl@gnu.org>
8563 * src/roff/troff/troff.man: Minor fixes.
8565 2000-04-22 Werner LEMBERG <wl@gnu.org>
8567 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
8568 `.T' string register and the incompatible definition of the `.T'
8569 number register (compared to Unix troff).
8571 * man/groff_char.man: Add some missing characters.
8572 * font/devutf8/NOTES: Update.
8574 2000-04-21 Werner LEMBERG <wl@gnu.org>
8576 * src/include/htmlindicate.h, src/include/lib.h,
8577 src/include/posix.h: Fix copyright.
8579 * src/include/Makefile.sub: Update.
8581 2000-04-20 Werner LEMBERG <wl@gnu.org>
8583 * src/roff/troff/input.cc (input_char_description): Removing
8584 superfluous space char.
8586 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
8588 * doc/groff.texinfo: Document EBCDIC.
8590 2000-04-19 Werner LEMBERG <wl@gnu.org>
8592 Introducing `shc' as the glyph name for the soft hyphen character.
8594 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
8595 font/devlatin1/R.proto: Use it.
8599 2000-04-18 Werner LEMBERG <wl@gnu.org>
8601 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
8602 dependency on ASCII order.
8604 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
8606 * src/libs/libgroff/illegal.c: Added EBCDIC table.
8607 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
8609 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
8610 to increase portability.
8612 2000-04-15 Werner LEMBERG <wl@gnu.org>
8614 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
8615 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
8616 the generic `\n' if under OS/390 Unix.
8618 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
8620 * configure: Regenerated.
8622 2000-04-14 Werner LEMBERG <wl@gnu.org>
8624 * doc/groff.texinfo: More conversions to @Deffn.
8626 2000-04-12 Werner LEMBERG <wl@gnu.org>
8628 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
8631 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
8633 2000-04-10 Werner LEMBERG <wl@gnu.org>
8635 * doc/groff.texinfo: More conversions to @Deffn.
8637 2000-04-08 Werner LEMBERG <wl@gnu.org>
8639 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
8640 Updated to latest version (glibc 2.1.3).
8642 2000-04-07 Werner LEMBERG <wl@gnu.org>
8644 * doc/Makefile (clean): Include more index files.
8645 Add rule texinfo->dvi.
8647 2000-04-05 Werner LEMBERG <wl@gnu.org>
8649 * doc/groff.texinfo: Added new index `op' for operators. More
8650 info on end of sentence characters. More use of @Deffn.
8652 2000-03-30 Werner LEMBERG <wl@gnu.org>
8654 * */*.man: Adding a note that a whitespace can be inserted between
8655 a command line option and its parameter -- we are using GNU getopt.
8657 * src/roff/groff/groff.man: Add example of `-m mandoc'.
8659 2000-03-28 Werner LEMBERG <wl@gnu.org>
8661 Correct anachronism of calling the man macro file with `-man'
8662 instead of `-m man' etc.
8664 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
8665 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
8666 load tmac.<package>.
8668 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
8672 * doc/groff.texinfo: Updated.
8674 * tmac/groff_man.man: Copyright added.
8676 2000-03-27 Werner LEMBERG <wl@gnu.org>
8678 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
8679 typeset the request resp. escape name with a tt font -- due to a
8680 bug in texinfo.tex it is necessary to use the `-e' switch with
8683 Improving info about usage of groff units.
8687 2000-03-20 Werner LEMBERG <wl@gnu.org>
8689 * doc/groff.texinfo: Added section about man macro package
8690 (I've basically taken groff_man.man). Introducing new indices `ma'
8691 for macros/strings and `gl' for glyph names. Other minor fixes.
8693 * tmac/groff_man.man: Fixed some typos.
8695 2000-03-19 Werner LEMBERG <wl@gnu.org>
8697 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
8700 * doc/texinfo.tex: New file.
8702 2000-03-18 Werner LEMBERG <wl@gnu.org>
8704 * doc/groff.texinfo: Improved section on number registers. Other
8707 2000-03-16 Werner LEMBERG <wl@gnu.org>
8709 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
8712 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
8713 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
8714 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
8715 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
8717 * src/preproc/grn/grn.man: Better synopsis; added copyright.
8719 * src/roff/grog/grog.man: Updated copyright date.
8721 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
8723 * configure.in: Added test for strdup.
8725 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
8728 Replaced dynamic allocation of arrays `[...]' with `new' operator.
8732 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
8734 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
8736 2000-03-11 Werner LEMBERG <wl@gnu.org>
8738 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
8740 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
8741 * src/include/lib.h: Remove some spaces.
8743 2000-03-10 Werner LEMBERG <wl@gnu.org>
8745 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
8746 initializers from arguments (some compilers don't like this).
8748 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
8750 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
8751 used by pic and eqn to tell grohtml where the graphic regions start
8753 * src/libs/libgroff/Makefile.sub: Use it.
8754 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
8755 graphic_start() and graphic_end() from htmlindicate.cc.
8757 2000-03-09 Werner LEMBERG <wl@gnu.org>
8759 * tmac/tmac.safer: Will now work correctly in compatibility mode.
8760 * tmac/groff_man.man: More fixes.
8762 2000-03-08 Werner LEMBERG <wl@gnu.org>
8764 * doc/Makefile: Added texput.log to the `clean' target.
8765 * doc/groff.texinfo: Added info about delimiters for escapes.
8767 2000-03-08 Bernd Warken <bwarken@mayn.de>
8769 * src/preproc/pic/pic.man: Add info on conversion of pic images to
8770 other graphic formats.
8772 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
8774 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
8775 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
8776 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
8779 2000-03-07 Werner LEMBERG <wl@gnu.org>
8781 * doc/groff.texinfo: Spelling fixes.
8783 2000-03-06 Werner LEMBERG <wl@gnu.org>
8785 * tmac/groff_man.man: Completely revised to cover everything in
8788 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
8789 Other minor fixings.
8790 * src/roff/troff/env.cc (environment_copy): Improve error message and
8792 * src/roff/troff/TODO: Updated.
8794 * doc/Makefile: Bug fixes -- this is still provisional, though...
8796 * tmac/eqnrc: Small fixes.
8798 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
8800 Adding a request `evc' to copy environments.
8802 * src/roff/troff/env.cc (environment::copy, environment_copy):
8804 * src/roff/troff/env.h: Add prototype.
8806 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
8808 Adding strsep() -- Solaris 8 doesn't have it.
8810 * configure.in: Test it.
8811 * src/devices/grolbp/lbp.cc: Add code.
8813 2000-03-05 Werner LEMBERG <wl@gnu.org>
8815 * src/roff/troff/div.cc (macro_diversion::output,
8816 top_level_diversion::output): Fixing an incompatibility with
8817 original troff: \x'0' updates the .a register also. Thanks to
8818 <Andries.Brouwer@cwi.nl> for pointing this out.
8819 * doc/groff.texinfo: Document it.
8821 * Makefile.in: Create Makefile.dep if necessary before calling the
8822 submake process to avoid warning about nonexistent file.
8824 * NEWS, PROJECTS: Updated.
8826 2000-03-04 Werner LEMBERG <wl@gnu.org>
8828 * tmac/troffrc: Add tmac.lbp.
8830 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
8832 * tmac/tmac.lbp: New file.
8833 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
8836 2000-03-03 Werner LEMBERG <wl@gnu.org>
8838 * Makefile.in: Fixing $(subdir).
8840 * README, NEWS: Small fixes.
8842 * test-groff: Adding path to grolbp.
8844 * configure.in: The (new) file src/xditview/Imakefile.in will be
8845 also configured -- it is now possible to build gxditview in a
8846 directory different from $srcdir.
8848 2000-03-02 Blake McBride <blake@florida-software.com>
8850 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
8852 * MORE.STUFF: Added website of bell labs and info about plot2dev.
8854 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
8856 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
8859 2000-02-29 Werner LEMBERG <wl@gnu.org>
8861 Adding GNU getopt to the groff distribution.
8863 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
8865 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
8866 * aclocal.a4: Remove GROFF_GETOPT function.
8867 * configure.in, Makefile.in, PROBLEMS: Update.
8868 * src/include/lib.h: Replace getopt tests with getopt.h.
8869 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
8871 * doc/groff.texinfo: Further checking/updating. Adding more index
8874 * man/groff_out.man: Fix nroff mode activation (for emacs).
8875 * man/groff_font.man: Add missing ligature.
8877 2000-02-28 Werner LEMBERG <wl@gnu.org>
8879 * doc/groff.texinfo: Further checking/updating. Adding more index
8882 * src/devices/grolbp/grolbp.man: Added a comment line at the
8883 beginning of the file (similar to shell scripts) which indicates
8884 that `tbl' should be used as a preprocessor.
8886 2000-02-27 Blake McBride <blake@florida-software.com>
8888 Adapting groff to MS Visual C++ 6.0 compiler (tested with
8889 Windows NT 4.0). Uses _MSC_VER define where necessary.
8891 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
8892 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
8893 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
8894 src/include/lib.h, src/libs/libgroff/errarg.cc,
8895 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
8896 src/preproc/refer/label.y, src/preproc/refer/label.cc,
8897 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
8898 src/roff/troff/div.cc, src/roff/troff/env.cc,
8899 src/roff/troff/input.cc, src/roff/troff/node.cc,
8900 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
8901 if_to_a() to avoid name clashes.
8902 * src/include/posix.h: Don't use unistd.h.
8903 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
8904 clause for integrating non-Unix xtmpfile() code.
8905 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
8906 structure; use "rt" for popen() in pipe_source(); add getpid()
8908 * src/roff/troff/node.cc: Use special versions of popen() in
8909 real_output_file() and pclose() in ~real_output_file().
8911 2000-02-27 Werner LEMBERG <wl@gnu.org>
8913 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
8914 LBP-8 series laser printers). This code has been contributed by
8915 Francisco Andrés Verdú <pandres@dragonet.es>.
8917 * src/devices/grolbp/*: The grolbp output device.
8918 * font/devlpb/*: The font description files.
8919 * Makefile.in: Add grolpb and devlbp subdirectories.
8921 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
8922 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
8925 * doc/groff.texinfo: Further checking/updating. Adding more index
8930 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
8932 * man/groff_font.man: Adding info about obsolete DESC keywords.
8933 * src/devices/grolj4/grolj4.man: Documenting additional DESC
8936 2000-02-26 Werner LEMBERG <wl@gnu.org>
8938 * src/preproc/grn/grn.man: Added info about the gremlin file format
8939 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
8941 2000-02-25 Werner LEMBERG <wl@gnu.org>
8943 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
8944 friends to be non-integer.
8946 * src/preproc/grn/grn.man: Document it.
8948 * doc/groff.texinfo: Further checking/updating. Adding more index
8951 2000-02-24 Werner LEMBERG <wl@gnu.org>
8953 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
8954 line thicknesses to be integer multiples of this value.
8956 * src/preproc/grn/grn.man: Commenting out the -s option -- the
8957 corresponding code doesn't work (yet).
8959 * doc/groff.texinfo: Further checking/updating. Adding more index
8962 2000-02-23 Werner LEMBERG <wl@gnu.org>
8964 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
8965 specify line thickness instead of base units. The new default
8966 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
8967 thick lines respectively.
8969 Removed unused variable `prevval'.
8971 * src/preproc/grn/grn.man: Updated.
8973 2000-02-22 Werner LEMBERG <wl@gnu.org>
8975 * src/preproc/grn/main.cc: Slight formatting.
8977 * src/roff/groff/groff.man: Formatting fix.
8978 * src/preproc/grn/grn.man: Ditto.
8980 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
8982 * doc/groff.texinfo: Further checking/updating.
8984 2000-02-21 Werner LEMBERG <wl@gnu.org>
8986 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
8988 * test-groff: Added grn subdir to path.
8990 * doc/groff.texinfo: Some restructing and other small improvements.
8992 * src/roff/groff/groff.cc (help): Fixed info string.
8994 2000-02-20 Werner LEMBERG <wl@gnu.org>
8996 * doc/meref.me: Fix description of .GS request.
8998 * src/roff/troff/troff.man: Fixing typo.
9000 Adding the `grn' preprocessor for gremlin graphic files.
9002 * src/preproc/grn/*: This is the Berkeley distribution written by
9003 David Slattengren and Barry Roitblat, adapted to groff by Daniel
9004 Senderowicz and Werner Lemberg.
9006 * doc/grnexampl.{me,g}: A sample for grn.
9008 * Makefile.in: Added subdirectory entry for grn.
9010 * src/roff/groff/groff.cc: Added support for grn. It can be now
9011 called with the switch `-g'.
9013 * src/roff/groff/groff.man: Updated.
9015 * src/roff/grog/grog.{man,pl,sh}: Updated.
9019 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
9021 * src/include/lib.h: Added xtmptemplate and made xtmpfile
9022 parametrically polymorphic.
9024 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9025 and the alterations to xtmpfile.
9026 xtmpfile can be requested to return the filename created
9027 and asked not to unlink the temp file. The default behaviour
9028 if parameters are absent is exactly the same as before.
9030 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
9032 A new request `length' is available which returns the length of a
9033 string in a number register:
9035 * src/roff/troff/input.cc (length_macro): Implement it.
9036 * src/roff/troff/input.cc (init_input_requests): Register it.
9038 2000-02-11 Werner LEMBERG <wl@gnu.org>
9040 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9041 of the `substring' request.
9043 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9046 * src/roff/troff/TODO, NEWS: Updated.
9048 2000-02-09 Werner LEMBERG <wl@gnu.org>
9050 * src/roff/groff/groff.man: Added an example.
9052 2000-02-06 Werner LEMBERG <wl@gnu.org>
9054 I've considerably modified the directory structure of the
9055 distribution to get a more vertical layout. For example, the number
9056 of top level directories has been reduced from 42 to 6.
9058 As a consequence, many changes, especially to the makefiles, were
9061 * The makefile variables `top_builddir' and `top_srcdir' have been
9062 introduced. Virtually all relative paths have been replaced with
9063 absolute ones using these two variables.
9065 * Dependencies (in the files `Makefile.dep') are no longer part of
9066 the distribution. Instead, they are created during a `make install'
9067 in the build directory.
9069 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9070 make `top_srcdir' and `top_builddir' absolute.
9074 * Man pages now depend on the files `VERSION' and `REVISION'.
9076 * The added shell script `mkinstalldirs' will replace `mkdir' in
9079 * VERSION: Version number increased to 1.16.
9081 2000-02-04 Werner LEMBERG <wl@gnu.org>
9083 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9085 * Makefile.in: Removed $(tmac_m) since it is no longer needed
9086 (after an update of the mm stuff).
9088 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9090 2000-02-03 Werner LEMBERG <wl@gnu.org>
9092 The .psbb request will now also accept Mac PS images (i.e. using LF
9093 as the EOL character).
9095 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9096 (with slight modifications).
9097 * troff/input.cc (do_ps_file): Use it.
9099 * test-groff: Add grohtml and grolj4 output devices to PATH.
9101 2000-01-30 Werner LEMBERG <wl@gnu.org>
9103 * NEWS, MORE.STUFF: Updated.
9105 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
9107 Add the `srand' command to pic.
9109 * pic/lex.cc, pic/pic.y: Implement it.
9110 * pic/pic.man: Document it.
9111 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9113 2000-01-30 Werner LEMBERG <wl@gnu.org>
9115 Add a new request `.psbb'. This does exactly what the external
9116 program psbb did. It scans a PostScript image file for a
9117 %%BoundingBox comment and extracts the bounding box values (in
9118 PostScript units) which are then stored in the four new (read-only)
9119 number registers `llx', `lly', `urx', and `ury'.
9121 This will allow the usage of the .PSPIC macro without worrying
9122 about unsafe behaviour of groff, i.e., it will work without the
9123 `-U' switch of groff.
9125 * troff/input.cc: Implement it.
9126 * tmac/tmac.pspic: Use it.
9127 * troff/troff.man, grops/grops.man, NEWS: Document it.
9128 * psbb/*, Makefile.in: Remove it since it is no longer needed.
9130 This is bloody C code simply adapted from psbb.c! Any improvements
9133 2000-01-29 Werner LEMBERG <wl@gnu.org>
9135 * man/groff_font.man: Minor clarifications.
9139 2000-01-28 Werner LEMBERG <wl@gnu.org>
9141 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9143 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
9145 * man/groff_font.man: Brought up to date regarding tcommand
9147 * libgroff/font.cc: Handle everything after `--' as a comment
9149 * devps/*: Added comment delimiter inside devps font files.
9151 2000-01-28 Werner LEMBERG <wl@gnu.org>
9153 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9154 \fC...\fP (which now works as expected).
9156 * troff/troff.man: Fix typo.
9158 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
9160 Completed the pass_filenames implementation in troff.
9162 * libdriver/input.cc: Will read the new `F' tcommand.
9163 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9164 * troff/input.cc: Use it.
9166 2000-01-26 Werner LEMBERG <wl@gnu.org>
9168 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
9169 font will now be updated even if an invalid font is selected.
9171 2000-01-24 Werner LEMBERG <wl@gnu.org>
9173 * doc/homepage.ms: Updated for new tmac.arkup.
9175 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9177 * tmac/tmac.arkup: Cleanup.
9179 Added `\&' to .HTML macro to `leave vertical mode', so to say.
9181 Removed obsolete .LINK macro completely.
9183 The macros .URL, .FTP, and .MAILTO now accept a third argument which
9184 will be immediately appended to the second argument (to be used with
9185 punctuation, for example).
9187 Disabled .CDFTP macro temporarily for security reasons.
9189 * tmac/groff_markup.man: Complete revision for latest changes in
9190 tmac.arkup -- note that it does not yet format correctly with
9193 2000-01-23 Bruno Haible <haible@clisp.cons.org>
9195 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9196 * devutf8/R.proto: Add mappings for wp, lh, rh.
9197 * devutf8/NOTES: Updated.
9199 2000-01-23 Werner LEMBERG <wl@gnu.org>
9201 * doc/groff.texinfo: Updated version/copyright info.
9203 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
9205 Added support for two new directives in device descriptions:
9206 `pass_filenames' (to pass the input file name to the output device)
9207 and `use_charnames_in_special' (to support e.g. accented characters
9208 in the `X' request).
9210 * include/font.h, troff/charinfo.h: Declare it.
9212 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9214 * devhtml/DESC: Use it.
9216 * troff/input.cc: New function encoded_char.
9218 * troff/token.h: Add test for `specialness'.
9220 2000-01-21 Werner LEMBERG <wl@gnu.org>
9222 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9223 mistake from the list of files to be installed.
9225 2000-01-18 Werner LEMBERG <wl@gnu.org>
9227 * README: Added info how to apply patches.
9229 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
9231 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
9233 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
9235 * troff/input.cc: Add support for troffrc-end.
9237 * tbl/main.cc: Altered to issue table-start and table-end special
9238 characters if using the html device.
9240 * devhtml/*: Modified font files to incorporate html encoding of
9243 * tmac/groff_markup.man: New file documenting tmac.arkup.
9245 * tmac/troffrc-end: New file. This is invoked after all user
9246 specified macros. Currently used by the html device to include
9247 tmac.html. Thus no need for users to specify -mhtml anymore.
9249 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9250 (MAN7): Add groff_markup.man.
9252 * tmac/tmac.an, tmac/tmac.html: Small html updates.
9254 * tmac/troffrc: tmac.arkup will now be called for the html device.
9256 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9257 extra device specific information about fonts.
9259 * doc/homepage.ms: New file. It is an example how an HTML home page
9260 could look like with grohtml.
9262 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
9264 2000-01-12 Bruno Haible <haible@clisp.cons.org>
9266 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
9269 * devutf8/NOTES: Updated.
9271 2000-01-08 Bruno Haible <haible@clisp.cons.org>
9273 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9274 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9275 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9276 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9277 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9278 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9279 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9280 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9283 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9285 2000-01-12 Fabrizio Polacco <fab@prosa.it>
9287 grolj4: Paper size will be searched case-insensitively.
9289 * include/lib.h: Add check for strcasecmp().
9290 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9291 * configure.in: Check for strcasecmp().
9293 2000-01-11 Werner LEMBERG <wl@gnu.org>
9295 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9298 2000-01-10 Werner LEMBERG <wl@gnu.org>
9300 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9303 Add a new read-only register, `.Y', which contains the groff
9306 * troff/input.cc (init_input_requests): Define it.
9307 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9308 * doc/groff.texinfo, troff/troff.man: Document it.
9310 * libgroff/Makefile.sub (version.cc): Add definition of
9311 `Version_string[]', consisting of `<major>.<minor>.<revision>'
9312 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9313 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9314 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9315 troff/input.cc, pfbtops/pfbtops.c: Use it.
9317 2000-01-10 Fabrizio Polacco <fab@prosa.it>
9319 Add a revision scheme to the groff package.
9321 * REVISION: New file.
9322 * libgroff/Makefile.sub (version.cc): Use it to define
9323 `revision_string[]'.
9324 * grops/psrm.cc: Use revision_string (converted to an unsigned
9325 integer) in constructor of resource_manager.
9327 2000-01-10 Bruno Haible <haible@clisp.cons.org>
9329 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9331 * Makefile.in (DEVDIRS): Add devutf8.
9332 * grotty/tty.cc: Include device.h.
9333 (glyph): Change type of `code' to `unsigned int'.
9334 (tty_printer): New field is_utf8. Constructor takes device argument.
9335 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9336 (tty_printer::add_char): Change type of first arg to `unsigned int'.
9337 (tty_printer::put_char): New function.
9338 (tty_printer::end_page): Use put_char() instead of ::putchar().
9339 (make_printer): Pass device to tty_printer constructor.
9340 * nroff.sh: Determine default device by calling 'locale'. As a
9341 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9342 Recognize UTF-8 locales.
9343 * tmac/eqnrc: Recognize utf8 like latin1.
9344 * tmac/troffrc: Device utf8 needs tmac.tty.
9346 2000-01-07 Werner LEMBERG <wl@gnu.org>
9348 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9350 2000-01-07 Paul Eggert <eggert@twinsun.com>
9352 Add a new predefined writeable number register, `year',
9353 which contains the current year.
9355 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9356 * tmac/tmac.s: Use it.
9357 * troff/input.cc (init_registers): Initialize it.
9359 2000-01-06 Werner LEMBERG <wl@gnu.org>
9361 * PROBLEMS: Fixed typo.
9363 2000-01-04 Paul Eggert <eggert@twinsun.com>
9365 * PROBLEMS: Add Y2k advice for the yr number register.
9367 2000-01-03 Paul Eggert <eggert@twinsun.com>
9369 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9371 2000-01-02 Werner LEMBERG <wl@gnu.org>
9373 * tmac/tmac.arkup: Slight modification of macros to provide better
9374 appearance for non-HTML formats.
9376 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
9378 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9379 does not automatically translate to malloc(n) on all OSes
9380 (e.g., SunOS) so do it explicitly. Also, check the returned
9383 2000-01-01 Werner LEMBERG <wl@gnu.org>
9385 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
9387 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9388 expects this variable
9390 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
9392 * doc/Makefile: Added instructions to create HTML and text
9393 versions of some files.
9395 1999-12-31 Werner LEMBERG <wl@gnu.org>
9397 * Updated INSTALL.gen.
9399 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9400 better resp. correctly with non-HTML devices.
9402 Version 1.15 released
9403 =====================
9405 1999-12-28 Werner LEMBERG <wl@gnu.org>
9407 * NEWS, VERSION: Changed to 1.15
9409 1999-12-27 Paul Eggert <eggert@twinsun.com>
9411 * nroff/nroff.man: -S is safer, not safe.
9413 * groff/groff.cc (main): Use `safer', not `safe', in variable
9414 names. This does not change the behavior.
9416 * troff/input.cc (main): Likewise.
9418 * nroff/nroff.sh: Likewise.
9420 * troff/input.cc (prepend_string): New function.
9421 (main): Prepend -msafer, so that we check macro libraries for
9424 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9426 Version 1.14 released
9427 =====================
9429 1999-12-26 Werner LEMBERG <wl@gnu.org>
9431 * NEWS, VERSION: Changed to 1.14.
9433 1999-12-24 Werner LEMBERG <wl@gnu.org>
9435 * refer/refer.cc: Fixing the last fix.
9437 Version 1.13 released
9438 =====================
9440 1999-12-23 Werner LEMBERG <wl@gnu.org>
9442 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9447 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9449 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9450 document conventions, the version number must be a real.
9452 Version 1.12.1 released
9453 =======================
9455 1999-12-22 Werner LEMBERG <wl@gnu.org>
9457 * VERSION: Changed to 1.12.1.
9459 1999-12-22 Alan Rooks <arooks@istar.ca>
9461 * refer/refer.cc (do_file): Slight modification to satisfy the
9462 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9465 1999-12-20 Werner LEMBERG <wl@gnu.org>
9467 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9470 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9471 list of unsafe requests.
9473 * pic/pic.man: Fixed a typo.
9475 * man/groff_out.man: Fixed a typo.
9477 1999-12-18 Werner LEMBERG <wl@gnu.org>
9479 * Makefile.in: Doc fixes.
9481 1999-12-17 Fabrizio Polacco <fab@prosa.it>
9483 * groff/groff.cc: Missing `U' option added to getopt().
9485 * troff/troff.man: Missing `U' option added to synopsis.
9487 Version 1.12 released
9488 =====================
9490 1999-12-14 Werner LEMBERG <wl@gnu.org>
9492 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9495 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9496 with the more appropriate terms `safer' and `unsafe'.
9498 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9499 sys_nerr and sys_errlist[].
9501 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9503 * pic/pic.y, pic/pic.cc: Added check for fmod().
9505 1999-12-13 Werner LEMBERG <wl@gnu.org>
9507 * VERSION: Changed to 1.12.
9509 Here some patches from various sources; most of them taken from
9510 the Debian distribution.
9512 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9513 tmac/Makefile.sub: New files copied directly from the NetBSD
9514 distribution. Probably, some additional adaptation later on is
9517 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9520 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9521 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9522 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
9523 (`-S') is now the default.
9525 * README, NEWS: Updated.
9527 1999-12-09 Werner LEMBERG <wl@gnu.org>
9529 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9531 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9533 1999-12-06 Werner LEMBERG <wl@gnu.org>
9535 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9536 grief than relief today. Additionally, it is against the GNU
9539 * configure: Recreated.
9541 1999-12-05 Werner LEMBERG <wl@gnu.org>
9543 * configure.in: Added GROFF_LIBM.
9545 * configure: Recreated.
9547 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
9550 * Makefile.in: Added definition of $(LIBM).
9552 * Makefile.comm (LIBM): Removed.
9554 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
9556 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
9558 * doc/Makefile: Added rule for generation pic.html.
9560 (clean): Files produced by grohtml will be removed also.
9562 * doc/pic.ms: Small fix.
9564 * tmac/tmac.html: Fixed suppression of headers.
9566 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
9568 * tmac/tmac.html: Fixing horizontal arrows.
9570 Turning off hyphenation.
9572 * tmac/tmac.an: Improved support for grohtml; better indentation,
9575 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
9577 * tmac/tmac.arkup: Added CDFTP macro
9579 * tmac/tmac.html: All headers are turned off for ms, me, and mm
9582 * tmac/troffrc: Some additions for HTML stuff.
9584 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
9586 * tmac/tmac.html: Small changes.
9588 1999-09-26 Werner LEMBERG <wl@gnu.org>
9590 * doc/groff.texinfo: Minor fixes.
9592 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
9594 * devhtml/TR: Changed spacewidth to 3.
9596 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
9598 * tmac/tmac.html: Moved markup macros to tmap.arkup.
9600 * tmac/tmac.arkup: New file.
9602 * grohtml/ChangeLog: New file.
9604 1999-09-16 Werner LEMBERG <wl@gnu.org>
9606 * doc/groff.texinfo (Common Features): Added Copying chapter.
9607 Changed format to @smallbook.
9609 1999-09-15 Werner LEMBERG <wl@gnu.org>
9611 * NEWS: Added info about groff.texinfo.
9613 * doc/groff.texinfo: Will now compile (using texi2dvi) without
9616 1999-09-14 Werner LEMBERG <wl@gnu.org>
9618 * groff/groff.man: More updates.
9620 1999-09-13 Werner LEMBERG <wl@gnu.org>
9622 * doc/groff.texinfo: New file. This manual is still very
9623 rudimentary. It has been originally contributed by Trent
9624 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
9627 * INSTALL: Added information about the `doc' subdir
9629 * troff/troff.man: Minor fixes.
9631 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
9634 * troff/input.cc (usage): Added missing `-ffam' to usage message.
9636 * Makefile.in (dist): groff-$(version).tar.gz must be removed
9637 also, otherwise it is included itself in another call of `make
9640 * groff/groff.cc (synopsis): Removed superfluous space.
9642 * PROJECTS, PROBLEMS, NEWS: Updated.
9644 * VERSION: Updated to 1.12beta.
9646 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
9648 * README: Updated: Included documentation about CVS repository,
9649 mailing lists, and daily snapshots.
9651 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
9653 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
9655 * tmac/tmac.an: If the tag didn't fit into the space that the
9656 macro `TP' specifies, the rest of the tag went into the space for
9659 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
9661 * grolj4/lj4.cc: Added duplex printing (option `-d').
9663 * grolj4/grolj4.man: Document duplex printing.
9665 1999-09-12 Werner LEMBERG <wl@gnu.org>
9667 * doc/Makefile (pic.ps): Fixed rule which caused problems with
9668 non-GNUish sed programs.
9670 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
9673 * configure.in (LIBS): Added `-lc'
9675 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
9677 * pic/tex.cc (solid_arc): Casting M_PI to double.
9679 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
9681 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
9682 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
9683 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
9685 * groff/groff_man.man: New file. This manual page was originally
9686 written for the Debian GNU/Linux system by Susan G. Kleinmann
9689 * eqn/list.cc (list_box::compute_metrics,
9690 list_box::compute_sublist_width): Removed variable declaration to
9691 avoid shadowing warnings.
9693 * grops/psrm.cc (resource_manager::process_file): Ditto.
9695 * tfmtodit/tfmtodit.cc (main): Ditto.
9697 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
9698 to avoid shadowing warnings.
9700 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
9701 shadowing loop variable.
9703 * groff/groff.man, troff/troff.man: Added doc about grohtml.
9705 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
9707 New grohtml frontend to convert groff input to html.
9709 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
9711 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
9713 * tmac/eqnrc: Added html device.
9715 * tmac/tmac.html: New file.
9717 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
9718 (troff_output::start_picture, troff_output::finish_picture),
9719 tbl/main.cc (process_input_file):
9720 Surrounded output with `graphics_start' and `graphics_end' so that
9721 the html driver can identify non-text portions.
9723 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
9724 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
9725 grotty/tty.ps (tty_printer::set_char): Additional parameter
9728 * include/printer.h: Class printer: New function
9729 set_char_and_width; new variables (is_char_named, is_named_set,
9730 named_command, named_char_s, named_char_n) to hold information
9731 about named characters -- needed by the html driver.
9733 * libdriver/printer.cc (printer::set_ascii_char,
9734 printer::set_special_char): Use set_char_and_width.
9736 * devhtml/*: New device files for html driver.
9738 * grohtml/*: New driver grohtml.
9740 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
9742 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
9745 1999-09-11 Luke Mewburn <lukem@netbsd.org>
9747 * libgroff/string.cc (search): Small fix to test against NULL
9750 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
9752 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
9753 \b'abc') were stacked in reverse order when processed in a
9756 * troff/node.h: Added `*last' to struct `node' to make the above
9759 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
9760 The default scale for the 'f' and 't' graphics functions were 'm'
9761 rather than 'u' (i.e., no scaling).
9763 1999-09-11 Peter Miller <peterm@jna.com.au>
9765 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
9766 do_file), soelim/soelim.man: Added `-I file' option to soelim,
9767 defining include paths.
9769 * soelim/soelim.cc (include_path_append): New function.
9771 1999-09-11 Larry Jones <larry.jones@sdrc.com>
9773 * tbl/main.cc (process_options): Unix (at least Documenter's
9774 Workbench) tbl allows arbitrary non-alpha characters between
9777 1999-09-11 Paul Eggert <eggert@twinsun.com>
9779 Y2k fixes. Don't assume that the current year precedes 2000.
9781 * doc/meref.me: Add \n(y2, \n(y4.
9783 * tmac/doc-common (Yr): New number register.
9784 (Dd): Don't assume current year precedes 2000.
9786 * tmac/tmac.e (td): Likewise.
9787 (y2, y4): New number registers.
9789 * pic/pic.man: Update reference for pic paper to May, 1991
9792 1999-09-11 Werner LEMBERG <wl@gnu.org>
9794 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9795 Removed quotation marks which prevented correct expansion of
9798 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
9800 1999-09-10 Werner LEMBERG <wl@gnu.org>
9802 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
9805 * Removed configure.old.
9807 1999-08-31 Werner LEMBERG <wl@gnu.org>
9809 * VERSION: Updated to 1.11.1
9811 1999-05-27 Werner LEMBERG <wl@gnu.org>
9813 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
9815 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9816 added quotations around $(tmac_wrap) to avoid syntax error if
9819 * configure: Newly generated using autoconf 2.13.
9821 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
9823 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
9825 * README, PROJECTS, NEWS, INSTALL, VERSION,
9826 doc/Makefile. doc/pic.ms, groff/groff.man:
9827 Prepare for 1.11 release. No code changes.
9828 Documentation for pic added (doc/pic.ms).
9830 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
9832 * Version 1.10 released.
9834 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
9836 * afmtodit/afmtodit.pl: Avoid comment on first line.
9838 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
9840 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
9841 * configure.in: Call it.
9843 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
9844 (distfiles): Doesn't depend on config.log or config.cache.
9846 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
9848 * grog/grog.sh: Use print "" rather than print in END rule.
9850 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
9852 * tbl/main.cc (process_data): Don't give error for excess data
9853 entries that are comments.
9855 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
9857 * tbl/main.cc (process_data): Fix case where new for-scope rules
9858 silently change meaning of code.
9860 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
9862 * troff/env.cc (hyphenate): Loop over all consecutive sequences
9863 of non-zero hyphenation codes.
9865 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
9867 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
9869 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
9871 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
9873 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
9875 * tmac/tmac.andoc: Make it work in compatibility mode.
9877 * refer/token.h (token_info::is_range_sep): New function.
9878 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
9879 * refer/ref.cc (reference::output): More sophisticated check for
9882 * devps/prologue.ps (MANUAL): New procedure.
9883 * grops/ps.cc (main): New -m option.
9884 (usage): Include -m.
9885 (ps_printer::~ps_printer): Implement -m.
9887 * aclocal.m4 (GROFF_G): New macro.
9888 * configure.in: Call it.
9889 * Makefile.in (g): Provided by configure.
9891 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
9893 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
9896 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
9897 (tmac_m, tmac_s): Deleted.
9898 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
9899 tmac_s_prefix): New variables.
9900 (MDEFINES): Change accordingly.
9901 * Makefile.comm (.man.n): Use new TMAC_* variables.
9902 * configure.in (GROFF_TMAC): Call.
9903 * aclocal.m4 (GROFF_TMAC): Define.
9904 * tmac/Makefile.sub (stamp_wrap): New target.
9905 (install_data, uninstall_sub): Handle macro wrapping.
9907 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
9909 * tbl/main.cc (main): Ignore -T option.
9911 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
9913 * devlj4/generate/special.map: Add definition of \(nb.
9915 * tmac/tmac.dvi: Add definition of \(nb.
9917 * troff/dictionary.c (dictionary::dictionary): association::v gets
9918 initialized by association::association.
9920 * tmac/Makefile.sub: Avoid using temporary files when installing.
9922 * troff/env.cc (environment::set_font): Make bad font number a
9925 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
9927 * Makefile.in (datadir): Use share rather than lib.
9929 * groff/groff.cc (basename): Rename to xbasename.
9931 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
9933 * Makefile (CCLIBS): Don't use.
9934 * Makefile.ccpg: Likewise.
9936 * acgroff.m4: Rename to...
9937 * aclocal.m4: Modify extensively for autoconf 2.
9938 * configure.in: Likewise.
9939 * Makefile.in: Likewise.
9941 * groff/pipeline.c (const): Declare as empty if __STDC__ not
9943 (xstrsignal): Check for definition of NSIG. Conditionalize
9944 on SYS_SIGLIST_DECLARED. Make return type const.
9946 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
9948 * troff/input.cc (interpolate_macro): Rephrase missing space
9951 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9953 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
9954 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
9955 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
9956 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9957 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
9958 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
9959 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
9960 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
9961 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
9962 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
9963 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
9966 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
9968 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
9970 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
9972 (macro_iterator::macro_iterator): Add additional argument.
9974 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
9976 * troff/div.cc (vertical_size::vertical_size): In place of integer
9977 specifying line spacing use cunits specifying post vertical
9979 (macro_diversion::output, top_level_diversion::output): Likewise.
9980 * troff/div.h: Change declarations accordingly.
9981 * troff/env.cc (pending_output_line): Replace ls field by post_vs
9983 (pending_output_line::pending_output_line,
9984 pending_output_line::output, environment::output,
9985 environment::output_line, environment::output_title,
9986 environment::hyphenate_line): In place of
9987 integer specifying line spacing use cunits specifying post vertical
9989 (environment::environment): Add post_vertical_spacing and
9990 prev_post_vertical_spacing arguments.
9991 (environment::get_post_vertical_spacing): New function.
9992 (environment::total_post_vertical_spacing): New function.
9993 (environment::post_vertical_spacing): New function.
9994 (init_env_requests): Initialize pvs request and .pvs register.
9995 * troff/env.h: Change declarations.
9997 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
9999 * tmac/tmac.pspic: Immediately remove the temporary file.
10001 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
10003 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10004 height is specified.
10006 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
10008 * tbl/table.c (struct vertical rule, class table_entry): Use int
10009 not short for start_row and end_row.
10011 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
10013 * troff/input.cc (trapping_blank_line, blank_line_macro): New
10015 (diverted_space_node::reread, process_input_stack): Call
10016 trapping_blank_line() rather than blank_line().
10017 (init_input_requests): Bind "blm" to blank_line_macro().
10019 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10021 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
10023 * troff/env.cc (environment::possibly_break_line): Require that
10024 width total excluding width of final space node be greater than
10025 the target text length.
10027 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
10029 * troff/node.cc (kern_pair_node::vertical_extent): New function.
10031 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
10033 * troff/node.cc (charinfo_node): New class.
10034 (glyph_node, composite_node): Derive from charinfo_node. Change
10035 member functions accordingly.
10037 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
10039 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10041 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
10043 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10045 * devps/generate/textmap (notsubset): Add.
10047 * tmac/tmac.a4: New file.
10049 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
10051 * pic/main.cc (had_parse_error): New variable.
10052 (do_picture, do_whole_file): Set had_parse_error if yyparse()
10054 (main): Return 1 if had_parse_error is true.
10056 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
10058 * grolj4/lj4.cc (main): Avoid use of strtoul.
10060 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
10062 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10063 iso_8859_1 or $LESSCHARSET is latin1.
10065 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
10067 * hpftodit: New directory.
10068 * Makefile.in (CCPROGDIRS): Add hpftodit.
10069 * devlj4/generate: New directory.
10071 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
10073 * configure.in: Don't use AC_VFORK.
10074 * groff/pipeline.c (run_pipeline): Use fork() always.
10076 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
10078 * grops/ps.cc (main): Use %1 not %s in error message for -w.
10080 * Makefile.in (CCPROGDIRS): Add grolj4.
10081 (DEVDIRS): Add devlj4.
10082 * grolj4, devlj4: New directories.
10083 * tmac/troffrc: Handle lj4.
10084 * tmac/tmac.lj4: New file.
10086 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
10088 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10090 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
10092 * troff/input.cc (do_if_request): At end of second string, switch
10093 environments before getting next token.
10095 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
10097 * devps/psstrip.sed: Split rule that strips whitespace on either
10098 side of delimiters.
10100 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
10102 * troff/node.h (font_family::make_definition): Add return value to
10103 declaration. * troff/symbol.h (symbol::operator==,
10104 symbol::operator!=): Likewise.
10106 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
10108 * groff/groff.cc (main, help, synopsis): Handle -S.
10109 (possible_command::insert_arg): New function.
10111 * tmac/tmac.safer: New file.
10112 * tmac/msafer.man: New file.
10113 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10115 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
10117 * pic/pic.h, pic/main.cc (safer_flag): New variable.
10118 * pic/pic.y (placeless_element): Avoid unsafe operations if
10119 `safer_flag' is set.
10120 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10122 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
10124 * eqn/lex.cc (get_token): Put call to add_context() in block to
10125 work around Sun C++ 4.0 bug.
10127 * include/stringclass.h (operator +): Use ?: instead of `if' to
10128 work around Sun C++ 4.0 bug.
10130 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
10132 * tbl/main.cc (process_format): Accept - as a synonym for the _
10135 * libbib/index.cc (minus_one): Don't declare as const.
10137 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
10139 * troff/input.cc (get_char_for_escape_name): Push back a newline.
10141 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
10143 * troff/input.cc (write_macro_request): New function.
10144 (init_input_requests): Bind write_macro_request to writem.
10146 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
10148 * tmac/tmac.s (@EN): Turn filling back on even if there was no
10151 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10153 * tmac/tmac.s (@TS): Renamed from TS.
10154 (TS): Call LP then TS again.
10155 (cov*ab-init): Alias @TS to TS.
10157 * tmac/tmac.s: Allow QP or RS to initialize.
10159 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
10160 Move initializations of PS and LL here.
10161 (par@init): Don't initialize HY. Avoid changing environment 0.
10162 (par*env-init): Don't all par@reset.
10164 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
10166 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10168 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
10170 * Makefile.in (MDEFINES): Add LDFLAGS.
10171 (LDFLAGS): Add definition line.
10173 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
10175 * troff/input.cc (get_optional_char): Split off error check into...
10176 (check_missing_character): New function.
10177 * troff/token.h: Declare it.
10178 * troff/env.cc (margin_character): Don't call get_optional_char.
10179 Only call tok.next() after making the node.
10181 * include/lib.h (getopt): Make 2nd argument char *const *.
10183 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
10185 * nroff/conftest.sh: Deleted.
10187 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
10189 * pic/make-dos-dist: Deleted.
10191 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
10193 * devps/psstrip.sed: Strip comments before stripping trailing
10196 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
10198 * Version 1.09 released.
10200 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
10202 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10204 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
10206 * libgroff/font.cc (font::load_desc): Fix typo in error message.
10208 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
10210 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10211 about returning without a value.
10213 * troff/charinfo.h (charinfo::get_special_translation): Cast
10214 TRANSLATE_NONE to int.
10216 * refer/token.cc (lookup_token, store_token): Remove bogus loop
10217 test. Fix test so that it works with n unsigned.
10219 * pic/pic.y (defaults_table): Fully bracket initializer.
10220 * pic/lex.cc (lookup_keyword): Likewise.
10221 * eqn/lex.cc (token_table, def_table): Likewise.
10222 * eqn/box.cc (param_table): Likewise.
10223 * troff/input.cc (warning_table): Likewise.
10224 * libgroff/font.cc (table): Likewise.
10225 * grops/ps.cc (ps_printer::special): Likewise.
10226 * grops/psrm.cc (resource_manager::process_file): Likewise.
10227 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10228 * refer/command.cc (command_table): Likewise.
10229 * addftinfo/addftinfo.cc (param_table): Likewise.
10231 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10232 about temp's being unused.
10233 (unused): New function.
10235 * groff/pipeline.cc: Declare c_fatal.
10237 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10240 * libbib/index.cc (index_search_item::load): Prevent compiler
10241 warnings about fd_closer's being unused.
10242 (unused): New function.
10244 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
10246 * troff/input.cc (copy_mode_error): Make `prefix' static.
10249 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10251 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10252 HAVE_CC_OSFCN_H and modify accordingly.
10254 * troff/input.cc (init_charset_table): radicalex overlaps
10257 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10258 udodo!hans@relay.NL.net).
10259 * groff/configure.in: Call it.
10261 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10262 * groff/configure.in: Call it.
10263 * include/lib.h: Conditionalize declaration of pclose.
10265 * troff/div.cc (last_page_number): New global variable.
10266 (top_level_diversion::begin_page): Exit if we just printed the
10268 * troff/div.h (last_page_number): Declare it.
10269 * troff/input.cc (parse_output_page_list): Set last_page_number.
10271 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10272 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10273 tmac/tmac.X: Likewise.
10274 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10275 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10277 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
10279 * tmac/doc-ditroff (hK): Remove groff specific code which
10280 prevented page-breaks between separate manual entries. If this is
10281 the first page, don't set the page number to 1.
10283 * acgroff.m4 (GROFF_POSIX): New macro.
10284 * configure.in: Use it.
10286 * troff/node.cc (class real_output_file,
10287 real_output_file::real_output_file,
10288 real_output_file::~real_output_file): Conditionalize use of
10289 popen/pclose on POPEN_MISSING.
10290 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10291 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10292 (pipe_source): Similarily.
10294 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10296 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10297 presence of declarations by trying to compile example with
10298 conflicting declarations. (gcc only gives a warning for missing
10301 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
10303 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10304 (from Ulrich Lauther).
10306 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
10308 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10310 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
10312 * indxbib/indxbib.cc (write_hash_table): Add code for case where
10313 pointers and ints have different sizes.
10315 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
10317 * tmac/tmac.s (par*env-init): Call par@reset.
10319 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
10321 * tmac/tmac.s (@IP): Switch to a new environment when diverting
10323 (par*push-tag-env, par*pop-tag-env): New macros.
10325 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
10327 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10328 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
10330 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10331 comment. Include <time.h>.
10333 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
10335 * grops/ps.cc (is_small_h, is_small_v): Deleted.
10336 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10339 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
10341 * troff/input.cc (read_request): Only print a prompt if reading
10342 from the terminal. Also clearerr on EOF if reading from the
10343 terminal. Declare isatty.
10345 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
10347 * refer/label.y: Rename map_t to map_func and extractor_t to
10350 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
10352 * include/assert.h: Don't use volatile.
10353 * libgroff/assert.cc: Likewise.
10355 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
10357 * troff/input.cc (abort_request): Look at character in tok before
10358 calling get_copy().
10360 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
10362 * troff/troff.h (NO_RETURN): Deleted.
10363 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
10364 * troff/input.cc (exit_troff): Likewise
10366 * Makefile.in: Remove `Making ...' messages since GNU make now
10369 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10371 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
10373 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10374 to constant 1 inch.
10376 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
10378 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10380 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
10382 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10383 MARK_REG if there was no left delimiter.
10385 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
10387 * pic/troff.cc (troff_output::text): Set line thickness to
10388 relative before outputting text.
10390 * tmac/tmac.e (@k): Don't zero ?T.
10393 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
10395 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10397 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
10399 * troff/input.cc (decode_args): Warn about unquoted tabs (from
10402 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
10404 * troff/input.cc (ignoring): New variable.
10405 (ignore): Set ignoring during call to do_define_macro.
10406 (do_define_macro): Clear ignoring before interpolating terminating
10408 (copy_mode_error): New function.
10409 (get_char_for_escape_name, read_long_escape_name,
10410 interpolate_arg): Use copy_mode_error.
10411 (warning_table): Add WARN_IG.
10412 * troff/troff.h (WARN_IG): Declare.
10413 (WARN_TOTAL): Change accordingly.
10415 * groff/pipeline.c (strsignal): Rename to xstrsignal.
10416 * groff/groff.cc (strsignal): Delete declaration.
10418 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
10420 * troff/div.cc (page_offset): Use 'm' as default scaling.
10422 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
10424 * nroff/nroff.sh: Ignore -u.
10426 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
10428 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10430 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
10432 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10434 (B2): With -Tascii, leave additional vertical space before
10435 and after. Ensure that the left and right indent is restored to
10436 what it was even if the point size changes. Don't call
10437 par@finish. Change the indent, line length and title length
10438 directly. With -Tascii, make the width of the box 1n less.
10439 (B1): Remember 1n at the current point size. Don't call
10440 par@reset. Change the indent, line length and title length
10441 directly. Ensure that the temporary indent is preserved.
10442 (par*box-mark-top): Turn off no spacing mode.
10444 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
10446 * Makefile.in (dist): Use .gz suffix.
10448 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
10450 * troff/input.cc (main): Add return 0.
10451 * pic/main.cc (main): Use return instead of exit.
10452 * tbl/main.cc (main): Likewise.
10453 * eqn/main.cc (main): Likewise.
10454 * grops/ps.cc (main): Likewise.
10455 * grotty/tty.cc (main): Likewise.
10456 * groff/groff.cc (main): Likewise.
10457 * grodvi/dvi.cc (main): Likewise.
10458 * refer/refer.cc (main): Likewise.
10459 * indxbib/indxbib.cc (main): Likewise.
10460 * lkbib/lkbib.cc (main): Likewise.
10461 * soelim/soelim.cc (main): Likewise.
10462 * addftinfo/addftinfo.cc (main): Likewise.
10463 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10464 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10466 * troff/token.h (process_input_stack): Don't declare as static.
10467 * troff/input.cc: Likewise.
10469 * troff/node.c (invalidate_fontno): Make it a static member of
10470 class font_family. Change callers.
10471 * troff/node.c: Change declaration.
10473 * tbl/main.cc (struct input_entry_format): Add explicit public
10475 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10476 struct double_hline_stuff): Likewise.
10477 * tbl/table.h (struct entry_format): Likewise.
10478 * pic/object.h (struct saved_state): Likewise.
10480 * include/stringclass.h: Add forward declarations of friend
10481 functions that are later declared as inline. Don't include inline
10482 specifier in friend declaration.
10484 * libgroff/lib.h: Declare popen and pclose.
10485 * acgroff.m4 (GROFF_POPEN): New macro.
10486 * configure.in: Call it.
10488 * include/lib.h (PI): New constant. Undef first if necessary.
10489 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10490 * grops/ps.cc (degrees, radians): Likewise.
10491 * libgroff/font.cc (font::get_skew): Likewise.
10493 * grops/ps.cc (is_ascii): New function.
10494 (ps_output::put_string): Use is_ascii. Use csprint rather than
10496 (ps_printer::define_encoding): Use csspace.
10497 * libgroff/strtol.c (ISASCII): New macro.
10498 (strtol): Cast arguments to is*() and tolower() to unsigned char.
10499 Use ISASCII rather than isascii.
10500 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10501 * libgroff/cset.cc: Likewise.
10502 * libdriver/input.cc: Include cset.h.
10503 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10506 * refer/refer.cc (main): Use %ld rather than %d for longs.
10508 * libbib/index.cc (index_search_item_iterator::get_tag): Use
10511 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10513 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
10515 * troff/input.cc (hyphenation_code): Skip white space between
10518 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
10520 * tbl/table.h (table::entry_list_tailp): New member.
10521 (table::table): Initialize it.
10522 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10525 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
10527 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10528 with negative horizontal positions. Remove casts of glyph::hpos to
10530 (USHRT_MAX): Delete definition.
10531 (SHRT_MAX, SHRT_MIN): New definitions.
10532 (glyph::hpos): Change type to short.
10533 (tty_printer::end_page): Output multiple backspaces if necessary.
10534 Remove casts of glyph::hpos to int.
10536 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
10538 * tmac/tmac.s (@RT): New definition.
10540 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
10542 * refer/refer.cc (do_file): Make sure current_filename is set when
10545 * pic/common.cc (common_output::dot_line): Handle zero length
10548 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
10550 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
10551 (par@init): Initialize \n[HY].
10553 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
10555 * troff/dictionary.cc (dictionary::remove): Continue when
10558 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
10560 * Makefile.com (.y.cc): Avoid ending up with two versions of
10563 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
10565 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
10566 (\(,C): Likewise. Also fix typo.
10568 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
10570 * lib.h: Delete extraneous semi-colon.
10572 * Add pso request: `so' from a pipe.
10573 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
10574 (file_iterator::close): New function.
10575 (file_iterator::~file_iterator, file_iterator::next_file): Use
10576 file_iterator::close.
10577 (file_iterator::backtrace): Say `process' rather than `file' when
10578 the stream is popened.
10579 (pipe_source): New function.
10580 (init_input_requests): Bind ".pso" to pipe_source.
10582 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
10584 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
10586 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
10587 digits in lower case.
10589 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
10591 * Version 1.08 released.
10593 * Makefile.in (dist): Insert || true after ln -s commands that
10596 * mm: Update to mm 1.16.
10598 * acgroff.m4 (GROFF_CSH_HACK): New macro.
10599 * configure.in: Call GROFF_CSH_HACK. Substitute for
10601 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
10603 * nroff/Makefile.sub (nroff): New target.
10604 (install_data): Install nroff.
10605 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
10606 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
10608 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
10610 * eqn/Makefile.sub (neqn): Add chmod +x.
10612 * grog/Makefile.sub (grog): Remove spurious semi-colon.
10614 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
10616 * troff/input.cc (string_iterator::string_iterator()): Initialize
10619 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
10621 * troff/div.cc (macro_diversion::space,
10622 top_level_diversion::space): Don't set high_water_mark.
10623 (macro_diversion::output, top_level_diversion::output): Don't
10624 include post line space in high water mark.
10626 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
10628 * eqn/eqn.y: Don't define YYDEBUG.
10629 * pic/pic.y: Likewise.
10631 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
10633 * tmac/tmac.e ([3): Add space after comma following editors.
10634 Change double spaces to single spaces.
10635 ([4): Change double spaces to single spaces.
10637 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
10638 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
10639 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
10640 after %!PS-Adobe- (for Newsprint).
10642 * troff/div.cc (top_level_diversion::begin_page): When
10643 before_first_page is 1, set page_number to 1.
10645 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
10647 * eqn/box.cc (box::top_level): Protect equation with \&.
10649 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
10651 * groff/groff.cc (possible_command::set_name): Delete old name.
10653 * groff/groff.cc (possible_command::~possible_command): Use
10656 * troff/node.cc (troff_output_file::begun_page): New member.
10657 (troff_output_file::troff_output_file): Initialize it.
10658 (troff_output_file::really_begin_page): Only output V command if a
10659 page has been begun.
10661 * pic/pic.y (placeless_element): Delete argument to PRINT after
10664 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
10666 * Make wrapman work.
10667 * troff/div.h (class top_level_diversion): Replace
10668 first_page_begun by before_first_page (with opposite sense).
10669 * Change first_page_begun to before_first_page inverting sense.
10670 * troff/div.cc (class nl_reg): New class.
10671 (init_div_requests): Use class nl_reg for \n(nl.
10672 (top_level_diversion::begin_page): Don't call
10673 output_file::begin_page if before_first_page is 2;
10674 reset before_first_page afterwards. If have_next_page_number is
10675 false, then always increment page_number.
10676 * tmac/tmac.an: Set traps within TH rather than at the top-level.
10677 Restore compatibility mode after loading, and then disable
10678 compatibility mode in TH.
10680 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
10682 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
10684 * troff/node.h (output_file::trailer): Declare.
10685 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
10686 * troff/node.cc (output_file::trailer): New function.
10687 (troff_output_file::~troff_output_file): Move most code into...
10688 (troff_output_file::trailer): New function.
10689 (class troff_output_file): Delete page_length member. Declare
10691 (troff_output_file::really_begin_page): Use current page length
10692 for final V command.
10694 * tbl/main.cc (struct options): New decimal_point_char member.
10695 (options::options): Initialize this.
10696 (process_options): Implement decimalpoint option.
10697 (process_data): Pass decimal_point_char option to table::table.
10698 * tbl/table.h (class table): New decimal_point_char member.
10699 (table::table): Add additional argument.
10700 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
10701 second argument specifying decimal point character. Use this
10703 (table::table): Initialize decimal_point_char.
10704 (table::add_entry): Change call to find_dot.
10706 * troff/input.cc (get_copy, token::next): Implement \V.
10707 (interpolate_environment_variable): New function.
10709 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
10711 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
10712 * pic/pic.y: Likewise.
10714 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
10716 * refer/ref.cc (reference::insert_field, reference::delete_field):
10718 * troff/number.cc (parse_term): Likewise.
10720 * acgroff.m4 (GROFF_PROG_YACC): New macro.
10721 * configure.in: Use GROFF_PROG_YACC.
10723 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
10725 * Makefile.in (OPTIMIZE): New define.
10726 (DEBUG): Empty by default.
10727 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
10729 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
10730 (GROFF_ARRAY_DELETE): Likewise.
10731 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
10733 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
10735 * devps/psstrip.sed: Use different delimiter on last line (so that
10736 it works with BSD 4.4 sed.)
10738 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
10740 * devps/psstrip.sed: Delete comments.
10742 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
10743 optind, opterr, optarg.
10744 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
10747 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
10749 * Makefile.in (check): Dummy target.
10751 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
10753 * Version 1.07 released.
10755 * Integrate mm 1.11.
10757 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
10758 where start_col was meant.
10760 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
10762 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
10764 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
10766 * troff/input.cc (token::next): Make \z\o'...' and similar things
10769 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
10771 (environment): Add margin_character_flags member.
10772 * env.cc (environment::environment(symbol),
10773 environment::environment(const environment *): Initialize
10774 margin_character_flags.
10775 (margin_character): Rewrite.
10776 (environment::output_line): Add a margin character if
10777 margin_character_flags is non-zero. Turn off the
10778 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
10779 zero, use margin_character_node without copying and then set
10780 margin_character_node to 0.
10782 * devps/DESC.in: Change minimum size to 1000.
10784 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
10786 * troff/symbol.h (symbol::hash): Change return type to unsigned
10788 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
10791 * test-groff: Use -r rather than -x.
10793 * grops/psfig.diff: Include in distribution again.
10795 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
10797 * Makefile.in (dist): Use gzip.
10799 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
10801 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
10802 unistd.h as well as in stdlib.h.
10803 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
10804 defined; otherwise include <sys/types.h> and <unistd.h> if
10805 UNISTD_H_DECLARES_GETOPT is defined.
10807 * configure.in: use builtin(include, ... rather than include(...
10808 * configure: Regenerate with autoconf 1.3.
10810 * libdriver/print.cc (printer::adjust_arc_center): Use new
10811 algorithm suggested by Andy Fyfe.
10813 * libdriver/printer.cc (printer::adjust_arc_center): New function.
10814 * include/printer.h: Declare this.
10815 * grops/ps.cc (ps_printer::draw): Use it.
10816 * grodvi/dvi.cc (dvi_printer::draw): Use it.
10818 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
10820 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
10822 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
10824 * eqn/main.cc (main): Handle "eqn -".
10826 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
10828 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
10830 * mm: Integrate version 1.08.
10832 * pic/troff.cc (troff_output::finish_picture): Set
10833 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
10834 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
10835 if it's not defined. Check whether the register is non-zero rather
10836 than whether it's not defined.
10837 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
10839 * indxbib/indxbib.cc: Move all signal handling into...
10840 * indxbib/signal.c: New file.
10841 * configure.in: Call AC_RETSIGTYPE.
10843 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
10844 * configure.in: Call GROFF_STRUCT_EXCEPTION.
10845 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
10847 * troff/input.cc (token::token, token::operator=): Work round SGI
10849 * pic/object.cc (position::position): Likewise.
10851 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
10853 * pic/pic.h: Move declaration of hypot().
10855 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
10857 * pic/pic.h: Declare hypot().
10859 * pic/pic.h: Define M_PI if necessary.
10861 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
10863 * tmac/tmac.e (re): Add alternative version that doesn't use groff
10866 * devps/prologue.ps (RE): Handle the possibility that the old font
10867 doesn't have a FontName entry.
10869 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
10871 * tmac/tmac.e (fam): Redefine to set family in environment 2.
10872 (@C): Use @fam not fam.
10874 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
10876 * lookbib/lookbib.cc (main): Change type of start to const char *.
10877 * lkbib/lkbib.cc (main): Likewise.
10879 * eqn/lex.cc (definition::definition): Don't use member
10880 initializer syntax for members of anonymous unions.
10882 * troff/input.cc (input_stack::backtrace): Change type of to const
10885 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
10887 * include/stringclass.h (class string): Declare inline friend
10888 functions as inline in class declaration.
10889 * troff/hvunits.h (class hunits, class vunits): Likewise.
10890 * include/refid.h (class reference_id): Likewise
10891 * troff/troff.h (points_to_units(units), scale(units, double)):
10892 Delete declarations.
10893 * libdriver/input.cc (get_char): Delete declaration.
10894 * include/lib.h: Change 2nd argument of getopt from const char **
10896 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
10897 char **' before assigning to a `const char **'.
10898 * tbl/table.cc: Delete extra declarations of prints().
10900 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
10902 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
10903 char **' before assigning to a `const char **'.
10905 * libgroff/errarg.cc (errarg::errarg): Don't use member
10906 initializer syntax for members of anonymous unions.
10908 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
10910 * mm: Integrate version 1.07.
10912 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
10914 * troff/input.c (translate2): Rename to
10915 (translate_no_transparent).
10916 (init_input_requests): Rename tr2 to trnt.
10918 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
10920 * troff/charinfo.h (class charinfo): Add transparent_translate field.
10921 (charinfo::set_translation, charinfo::set_special_translation):
10922 Add second argument that specifies value for
10923 transparent_translate.
10924 (charinfo::get_translation, charinfo::get_special_translation):
10925 Add optional second argument that specifies whether translation is
10926 being used for transparent throughput.
10927 * troff/input.cc (charinfo::set_translation,
10928 charinfo::set_special_translation): Handle second argument.
10929 (charinfo::charinfo): Initialize transparent_translate.
10930 (translate): Split main part off into
10931 (do_translate): New function. Pass argument saying whether
10932 translation applies to transparent throughput.
10933 (translate2): New request.
10934 (init_input_requests): Bind translate2 to `tr2'.
10936 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
10938 * tbl/table.h (class table): Add `nokeep' flag.
10939 * tbl/main.cc (process_options): Handle `nokeep' option.
10940 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
10941 table::do_bottom): Don't output keep/release macro definitions or
10942 calls when `nokeep' option has been specified.
10944 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
10946 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
10948 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
10950 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
10951 block_entry::divert, alphabetic_block_entry::divert): Add extra
10952 argument giving column separation.
10953 (table::compute_widths): Pass column separation to
10954 table_entry::divert().
10955 (block_entry::do_divert): If an entry spans multiple columns and a
10956 minimumum width has been specified for each column, then set the
10957 line length to the sum of the widths (plus possibly the column
10960 * troff/input.cc (set_escape_char): Don't set the escape_char
10961 until after calling has_arg().
10963 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
10965 * tbl/table.cc (table::do_top): Add missing \s0 for double box
10968 * tbl/table.cc (table::print_double_hline): Avoid extra new line
10969 in case where r > nrows - 1.
10971 * tbl/table.cc (BODY_HEIGHT): Deleted.
10972 (LINE_SEP): New definition.
10973 (table::print_single_hline, table::print_double_hline,
10974 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
10975 table::do_row, table::do_top): Use LINE_SEP space before a line
10976 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
10978 * tbl/table.cc (text_entry::print_contents): New function.
10979 (text_string_name, right_text_string_name): Deleted.
10980 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
10981 (simple_text_entry::do_width, numeric_text_entry::do_width,
10982 alphabetic_text_entry::do_width): Don't store the contents of the
10984 (left_text_entry::simple_print, right_text_entry::simple_print,
10985 center_text_entry::simple_print,
10986 alphabetic_text_entry::simple_print,
10987 numeric_text_entry::simple_print): Print the entry directly
10988 instead of using the stored string.
10990 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
10992 * devps/Makefile: Strip PostScript files.
10993 * devps/prologue: Rename to...
10994 * devps/prologue.ps.
10995 * devps/psstrip.sed: New file.
10996 * devps/download: Use .pfa rather than .ps for installed versions
10999 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
11001 * troff/env.cc (input_trap): Give a warning if the argument is out
11004 * troff/env.cc (adjust): Treat negative argument as missing. Round
11005 argument > 5 down to 5.
11007 * troff/env.cc (center, right_justify): Make negative argument zero.
11009 * troff/div.cc (page_offset, vertical_position_traps): Treat
11010 invalid argument as missing.
11011 * troff/env.cc (line_spacing, line_length, title_length, indent,
11012 underline, hyphen_line_max_request, control_char,
11013 no_break_control_char, widow_control_request, adjust, input_trap,
11014 point_size): Likewise.
11015 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11016 constant_space): Likewise.
11017 * troff/input.cc (compatible, shift, warn_request,
11018 set_escape_char): Likewise.
11020 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11021 * tbl/table.cc (table::table): Likewise.
11023 * Makefile.dev (install_dev): depends on $(DEVFILES).
11025 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
11027 * devX75, devX75-12, devX100, devX100-12: New directories.
11028 * Makefile.in: Add these to DEVDIRS.
11030 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11031 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11032 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11033 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11035 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11036 (uninstall): New target.
11037 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11038 uninstall_prog, uninstall_dev): New targets.
11040 * troff/div.cc (return_request): Treat an invalid argument as
11043 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
11045 * tmac/tmac.e ((f): Set up the environment even when there's a
11046 current diversion. Transperently throughput a call to @N.
11049 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
11051 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11052 up to vertical resolution.
11054 * tbl/table.cc (table::do_row): Change row number after printing
11057 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11059 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
11061 * Rename CHANGES to NEWS.
11063 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
11065 * libgroff/new.cc (operator new): Avoid calling malloc(0).
11067 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
11069 * man.ultrix: Removed.
11071 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
11073 * Makefile.comm (extraclean): Delete files whose names begin with
11076 * pic/troff.cc (troff_output::text): Fix typo in implementation of
11079 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
11081 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11082 * troff/div.cc (page_length, need_space, space_request): Treat
11083 invalid optional argument as missing.
11084 * troff/env.cc (number_lines): If the first argument is present
11085 but not a number, turn on line numbering, don't change the next
11086 line number and parse the remaining arguments.
11088 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11090 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
11092 * eqn/box.h: Change declaration accordingly.
11093 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
11094 the specified size was bad but don't give an error. Check for
11096 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11097 * eqn/lex (do_size): Likewise.
11099 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
11101 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11102 compatible headers.
11104 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
11106 * tbl/table.cc (table::init_output): Improve error message when
11107 table won't fit on one page.
11109 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
11111 * pic/troff.cc (troff_output::start_picture): Generate line
11112 containing a horizontal motion equal to the width of the picture.
11114 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11115 using GROFF_COMMAND_PREFIX environment variable.
11117 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
11119 * mdate.sh: Use $NF rather than $(NF).
11121 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
11123 * pic/main.cc (main): Use %1 not %c in argument to warning.
11125 * eqn/main.cc (main): Output code to check that geqn was given the
11128 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
11130 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11131 `ln -s ../Makefile .; make; rm -f Makefile'.
11133 * troff/hyphen: Rename to...
11135 * troff/input.cc (main): Delete -H option. Don't call
11136 read_hyphen_file().
11137 * troff/env.cc: Include searchpath.h and macropath.h.
11138 (exception_dictionary): Deleted.
11140 (read_hyphen_file): Deleted.
11141 (hyphenation_language): New struct.
11142 (class trie, class hyphen_trie): Move declarations up.
11143 (trie_node::~trie_node): Deleted.
11144 (trie::delete_trie_node): New function.
11145 (trie::do_delete): New pure virtual function.
11146 (hyphen_trie::do_delete): New function.
11147 (trie::~trie): New function.
11148 (hyphen_trie::~hyphen_trie): New function.
11149 (trie::clear): No need to chcek that tp is not 0.
11150 (current_language, language_dictionary): New variables.
11151 (hyphen_word): Give an error if no current language. Use
11152 exceptions dictionary in current language.
11153 (hyphen_trie::read_patterns_file): Find file using macro_path.
11154 Allow comments (starting with %) in patterns file. Don't make it
11155 a fatal error if the file can't be found.
11156 (hyphenate): Return if no current language. Get the exceptions
11157 dictionary and the hyphenation patterns from the current language.
11158 (set_hyphenation_language): New variable.
11159 (hyphenation_patterns_file): New function.
11160 (hyphenation_language_reg): New class.
11161 (hyphenation_language_reg::get_string): New function.
11162 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11163 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
11165 * groff/groff.cc (main, help, synopsis): Delete -H option.
11166 * include/Makefile.sub: Don't define HYPHENFILE.
11167 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11168 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11169 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11170 hyphenation patterns.
11172 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
11174 * eqn/neqn.sh: New file.
11175 * eqn/Makefile.sub: Handle neqn.sh.
11177 * eqn/eqn.h: Declare `nroff' variable.
11178 * eqn/box.cc (param_table): Add `nroff' param.
11179 (nroff): Define it.
11180 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11182 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11184 * troff/troff.h (WARN_FONT): New warning.
11185 (WARN_TOTAL): Change accordingly.
11186 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11187 (warning_table): Add WARN_FONT.
11188 * troff/node.cc (mount_font_no_translate): Pass argument to
11189 font::load_font. If this is non-zero, give a warning.
11190 Don't give an error message when accessing a font that has already
11191 been found to be invalid.
11192 * include/font.h (font::load, font::load_font): Add additional
11193 optional argument which suppresses error message if the font is
11195 * libgroff/font.cc (font::load_font): Handle additional argument.
11196 (font::load): Add additional argument. If this is non-null, set it
11197 to 1 and don't give error message.
11199 * include/printer.h (printer::end_page): Add argument giving
11201 * libdriver/input.cc (do_file): Pass this.
11202 * grops/ps.cc (ps_printer::end_page): Add argument.
11203 * grodvi/dvi.cc (dvi_printer::end_page,
11204 draw_dvi_printer::end_page): Add argument.
11205 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11206 columns_per_page members. New member nlines.
11207 (DEFAULT_LINES_PER_PAGE): Deleted.
11208 (tty_printer::tty_printer): Don't compute lines_per_page from
11209 font::paperlength. Don't compute columns_per_page from
11211 (tty_printer::add_char): Don't check horizontal position against
11212 columns_per_page. Grow glyphs vector if neccessary.
11213 (tty_printer::end_page): Add argument giving page_length in units.
11214 Discard lines past end of page.
11216 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
11218 * tmac/tmac.tty-char: Fix definition of \(/l.
11220 * tmac/tmac.X: Define \(en.
11222 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
11224 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11225 lpq, then use lp rather than lpr.
11227 * tmac/tmac.s (par@reset): Don't call `ad'.
11228 (par*env-init): Call `ad'.
11230 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
11232 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11235 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11236 * indxbib/indxbib.cc: Likewise.
11238 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
11240 * libgroff/putenv.c: New file.
11241 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11242 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11243 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11244 stdlib.h with AC_HAVE_HEADERS.
11246 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
11248 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11251 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
11253 * eqn/box.cc (gsize): Make it an int.
11254 (set_gsize): Parse argument handling increment or decrement.
11255 (box::top_level): Convert gsize to a string.
11257 * troff/input.cc (exit_troff): Make buf unsigned char [].
11258 Call to make_temp_iterator casts buf to char*.
11260 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11262 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11263 * Makefile.cpg (depend.temp): Likewise.
11265 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11267 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11269 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
11271 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11273 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
11275 * Version 1.06 released.
11277 * Integrate mm 1.04.
11279 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
11281 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11283 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
11285 * afmtodit/afmtodit.pl: Add -n option that disables generation of
11287 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11288 afmtodit. Regenerate.
11290 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11291 @f back past the current position.
11293 * tmac/tmac.e: Change calls to @R so that comments are not part of
11296 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
11298 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11300 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11301 check that we can link a call to a function declared in <stdio.h>.
11302 (GROFF_UNISTD_H): New macro.
11303 * configure.in: Call it.
11304 * Makefile.in: Document it.
11305 * include/posix.h: New file.
11306 * troff/troff.h: Don't include <osfcn.h>
11307 * troff/input.cc: Include posix.h.
11308 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11310 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11311 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11313 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11314 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11315 * libbib/search.cc (O_RDONLY): Delete definition.
11316 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11317 Don't include <osfcn.h>.
11319 * acgroff.m4 (GROFF_TIME_T): New macro.
11320 * configure.in: Call it.
11321 * Makefile.in: Document it.
11323 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11324 * configure.in: Call it.
11325 * Makefile.in: Document -DTRADITIONAL_CPP.
11326 * include/ptable.h: Don't include generic.h.
11327 (name2): Define it.
11329 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11330 Afterwards remove [T1 and [T2.
11331 (ref*spec!0, ref*spec!2): Use T1 rather than T.
11332 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11333 (ref*add-T2): Renamed from ref*add-T.
11334 (ref*add-T1): New macro.
11336 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
11338 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11340 * libbib/index.cc: Include <fcntl.h>.
11341 (O_RDONLY): Define if necessary.
11342 (make_index_search_item, index_search_item_iterator::get_tag,
11343 index_search_item::check_files): Use O_RDONLY.
11344 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11345 (O_RDONLY): Define if necessary.
11346 (search_list::add_file): Use O_RDONLY.
11347 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11349 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11352 * libbib/index.cc (S_ISREG): Define it if necessary.
11353 (index_search_item::load): Use S_ISREG.
11355 * include/driver.h: Include <errno.h>.
11357 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
11359 * eqn/box.cc (body_height): Increase default value to 85.
11360 (body_depth): Increase default value to 35.
11362 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
11364 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11365 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11366 protected from expansion with \E.
11368 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11370 * Makefile (Makefile): New target.
11372 * Makefile.sub (configure, distfiles): New targets.
11374 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11377 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
11379 * eqn/box.cc (param_table): Add body_height and body_depth.
11381 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11383 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
11385 * psbb/Makefile.sub: Don't link with libgroff.a.
11387 * acgroff.m4 (GROFF_PUTENV): New macro.
11388 * configure.in: Call GROFF_PUTENV.
11389 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11390 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11393 * troff/env.cc (distribute_space): Rename force_forward argument
11394 to force_reverse. Reverse the list if force_reverse is true.
11396 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
11398 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11400 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11401 height or depth to be negative. Guard against SUP_RAISE quantity
11404 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
11406 * devps/generate/textmap: Add `an' (arrowhorizex).
11407 * tmac/tmac.ps: \(an overlaps horizontally.
11408 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11410 * devps/symbolchars: Add arrowverttp, arrowvertbt.
11411 * devps/textmap: Add arrowvertex.
11412 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11413 updownarrow delimiters.
11414 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11416 * tbl/table.cc (simple_entry::position_vertically,
11417 block_entry::position_vertically): For a centered entry, perform
11418 the motion in two stages.
11420 * refer/refer.cc (split_punct): Don't call lookup_token if there
11423 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
11425 * troff/input.cc (token::next): Delete token_node after copying
11428 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11431 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11433 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11435 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
11437 * grops/ps.cc (usage): -b option takes an argument.
11439 * devps/prologue (PLG): New procedure.
11440 * grops/ps.cc (main, usage): New -g option.
11441 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
11444 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
11446 * include/cset.h: Include <limits.h> if we have it.
11448 * libgroff/illegal.cc: New file.
11449 * include/lib.h (illegal_input_char): Use table.
11450 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11451 * pic/lex.cc (ARG1): Renumber to 14.
11452 * eqn/lex.cc (ARG1): Likewise.
11454 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11455 (eg 1.05.90) correctly.
11457 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
11459 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11460 Rename $r and $R registers to $v and $V.
11461 ($r, $R): Initialize to 0.
11462 (@v, @V): New macros.
11466 * troff/input.cc (main, usage): Add -R option that says not to
11468 * eqn/main.cc (main, usage): Rename -n to -R.
11470 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
11472 * devps/DESC.in: Leave font positions 5-9 blank.
11473 * devdvi/DESC.in: Likewise.
11475 * grog/grog.pl: Handle `.PS <file' correctly.
11477 * troff/input.cc (input_stack::push): Improve error message when
11478 input stack limit exceeded.
11480 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
11482 * refer/refer.cc (main): Fix typo in handling of `a' option.
11484 * refer/refer.cc (do_bib): In state START after a newline remain
11487 * groff/groff.sh: Deleted.
11488 * groff/Makefile.sub: Delete handling of groff.sh.
11490 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11491 to determine whether to use \X'ps:...'.
11492 * tmac/troffrc: Set 0p register to 0.
11493 * tmac/tmac.ps: Set 0p register to 1.
11495 * groff/groff.cc: Support -X option. Give warning for -TXps and
11496 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11497 * tmac/troffrc: Support -r.X=1.
11499 * pic/troff.cc (troff_output::dot): Don't test
11500 zero_length_line_flag.
11502 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
11504 * include/lib.h: Declare getopt() and friends unless
11505 STDLIB_H_DECLARES_GETOPT is defined.
11507 * doc/chars.tr: Delete.
11508 * man/groff_char.man: New file.
11510 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
11512 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11513 user has changed register format.
11515 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
11517 * groff/groff.cc: Get rid of device_table. Get postprocessor from
11518 `postpro' command in DESC file. Get spooler command from `print'
11519 command in DESC file. Execute spooler command with /bin/sh.
11521 * groff/groff.cc: Split Unix-specific parts into...
11522 * groff/pipeline.c: New file.
11525 * COPYING: New file.
11526 * all files: Update copyright notices.
11528 * Rearrange files. Redo Makefiles. Use autoconf.
11530 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
11532 * troff/input.c (charinfo_to_node_list): Interpret character
11533 definition with escape_char of `\'.
11535 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
11537 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11538 Define INT_DIGITS as big enough for 64-bit integer.
11539 * lib/strtol.c: Don't include lib.h.
11540 * lib/lib.h: Delete ifdef __cplusplus stuff.
11542 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
11544 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
11545 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
11546 get DESC from current directory.
11548 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
11550 * tbl/main.c (main): Always reset the line number when reading
11553 * tbl/table.c (table::print_single_hline, table::print_double_hline,
11554 table::define_bottom_macro, table::do_row, table::do_top): Round
11555 vertical spacing up to vertical resolution.
11557 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
11559 * ps/ps.h (enum resource_type): Avoid comma at end of
11561 * dvi/dvi.c (class dvi_printer): Likewise.
11562 * dvi/tfmtodit.c (gf::load): Likewise.
11563 * refer/label.y (struct expression): Likewise.
11564 * refer/refer.c (class label_processing_state): Likewise.
11565 * refer/indxbib.c (do_file): Likewise.
11566 * troff/troff.c (enum warning_type): Likewise.
11567 * tbl/main.c (process_data): Likewise.
11568 * troff/charinfo.h (class charinfo):
11570 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
11572 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
11574 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
11576 * groff.c: Move to new groff subdirectory.
11577 * groff/Makefile: New file.
11578 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
11580 * man/mdate.sh: Use ls -L if supported.
11582 * Consolidate all header files produced by gendef into lib/defs.h.
11583 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
11584 Don't include path.h.
11585 * lib/Makefile (path.h): Don't generate.
11586 * troff/input.c: Include defs.h. Don't include config.h.
11587 * troff/Makefile (config.h): Don't generate.
11588 * refer/index.h: Don't include suffix.h.
11589 * refer/index.c: Include defs.h.
11590 * refer/indxbib.c: Include defs.h.
11591 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
11593 * refer/Makefile (suffix.h, path.h): Don't generate.
11594 * groff.c: Don't include config.h. Include defs.h.
11595 * Makefile (config.h): Don't generate.
11596 (lib/defs.h): Generate.
11597 (topclean): Remove lib/defs.h.
11599 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
11601 * lib/malloc.c, lib/getpagesize.h: Deleted.
11602 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
11604 * lib/Makefile: Delete malloc-related stuff.
11605 * lib/new.c: Workaround COOKIE_BUG if necessary.
11607 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
11608 needed header files directly.
11609 * refer/refer.h: Omit definition of DEFAULT_INDEX.
11610 * Makefile: Include definition of DEFAULT_INDEX in path.h.
11612 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
11614 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
11616 * lib/font (font::load_desc, font::load): Don't split argument of
11618 (font::handle_unknown_font_command): Change type.
11619 * ps/ps.c (ps_font::handle_unknown_font_command,
11620 handle_unknown_desc_command): Change type.
11621 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
11623 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
11625 * lib/font.h (font::handle_unknown_font_command): Add file and
11627 * lib/font.c (font::handle_unknown_font_command):
11628 * ps/ps.c (ps_font::handle_unknown_font_command):
11629 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
11630 lineno arguments. Use _with_file_and_line functions for error
11633 * lib/fontfile.c (font::unknown_desc_command_handler): New static
11635 * lib/font.c (font::set_unknown_desc_command_handler): New
11637 (font::load_desc): For unknown commands, call
11638 unknown_desc_command_handler if not null.
11639 * lib/font.h (class font): Declare them.
11640 (FONT_COMMAND_HANDLER): New typedef.
11641 * ps/ps.c (handle_unknown_desc_command): New function.
11642 (main): Set bflag if we had a -b option. Call
11643 font::set_unknown_desc_command_handler.
11644 (broken.h): Don't include.
11645 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
11647 * ps/devps/Makefile: Add `broken' command to DESC file using
11648 BROKEN_SPOOLER_FLAGS.
11650 * macros/tmac.e ([, ]): Add as synonyms for { and }.
11652 * macros/tmac.e ($p): Only exdent if \$3 > 0.
11654 * macros/tmac.e (@R, @S): New macros.
11655 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
11656 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
11657 Declare $H, $[0-9], .. macros with @S.
11658 Declare |0, |1, |2, |3 strings with @S.
11660 * macros/tmac.e (@S): Rename to @U.
11662 * macros/tmac.e (@z): Define @b and bp as empty instead of
11665 * macros/tmac.e (@m): Deleted.
11666 (@h): Don't call @m.
11667 (@z): Don't set @m trap.
11669 * macros/tmac.e ($h, $f): Define |z as empty string.
11671 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
11674 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
11676 ()f): Likewise for * register.
11678 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
11679 argument is missing, don't change $R. Call sr with three
11680 arguments when initializing.
11682 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
11684 * macros/tmac.e (sr): New macro.
11685 Initialize $r and $R using sr.
11687 * macros/tmac.e (,): Delete \*(#[.
11689 * troff/env.c (set_tabs): Read the tab type even if the position
11690 is bad. Allow the position of the first tab stop to be negative.
11692 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
11694 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
11696 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
11697 rather than -DPATHCONF_MISSING.
11698 * Makefile: Get rid of PATHCONF_MISSING.
11700 * refer/map.c: New file.
11701 * refer/index.c: Interface to mmap through map.c. Rename map_size
11703 * refer/Makefile: Handle map.c.
11704 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
11706 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
11708 * Makefile: RANLIB should be `true' if there is no ranlib.
11709 * lib/Makefile (libgroff.a): Simplify.
11710 * driver/Makefile (libdriver.a): Simplify.
11712 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
11713 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
11716 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
11718 * troff/env.c (compare_ranges): Declare as extern "C".
11720 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
11722 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
11724 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
11726 * pic/troff.c (troff_output::text): Merge in grops_output::text,
11727 but conditionalize use of \X based on \*(.T.
11728 (grops_output::*): Deleted.
11729 * pic/output.h: Delete declaration of make_grops_output.
11730 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
11731 by default. -n sets it to 0.
11732 (usage): Corresponding changes.
11733 * groff.c (main): Don't pass -x or -p to pic.
11734 * groff.sh: Likewise.
11736 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
11739 * ps/devps/afmtodit: Change calculation of asc_boundary and
11740 desc_boundary. Make these bounds inclusive.
11741 * ps/devps: Regenerate font files.
11743 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
11745 * macros/tmac.latin1: New file.
11746 * macros/tmac.tty-char: Use tmac.latin1.
11747 (tmac.tty-tr): Deleted.
11748 * macros/Makefile: Install tmac.latin1.
11749 * macros/tmac.dvi: Use tmac.latin1.
11750 * macros/troffrc: Translate \[char160] onto no-break space here.
11751 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
11753 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
11755 * macros/tmac.Xps: Use `do' request.
11757 * macros/tmac.ps: Use `do' request.
11759 * macros/tmac.e (@C): Use `do' request.
11761 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
11762 * macros/Makefile: Install tmac.X*.
11764 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
11765 * tty/Makefile: Don't install tmac.tty*.
11766 * macros/Makefile: Install tmac.tty*.
11768 * dvi/tmac.dvi: Move to macros.
11769 * dvi/Makefile: Don't install tmac.dvi.
11770 * macros/Makefile: Install tmac.dvi.
11772 * ps/tmac.ps*: Move to macros.
11773 * ps/Makefile: Don't install tmac.ps*.
11774 * macros/Makefile: Install tmac.ps*.
11776 * eqn/box.c: Provide draw_lines parameter corresponding to -D
11778 * macros/eqnrc: Set draw_lines parameter based on device.
11779 * groff.c: Don't pass -D flag to eqn.
11780 * groff.sh: Likewise.
11781 * eqn/main.c: Warn about use of -D.
11783 * troff/input.c (process_startup_file): New function.
11784 (main): Call process_startup_file().
11785 * macros/troffrc: New file.
11786 * macros/Makefile: Install troffrc.
11787 * groff.c (main): Don't pass extra -m option to troff. For a
11788 pseudo device pass the name of the pseudo device to troff using
11790 * groff.sh: Likewise.
11791 * groff.c (possible_command::prepend_arg): Deleted.
11793 * troff/input.c (do_request): New function.
11794 (init_input_requests): Bind "do" to do_request.
11796 * eqn/main.c (main): Instead of loading eqnchar from device directory,
11797 load eqnrc from macro directory.
11798 * macros/eqnrc: New file.
11799 * macros/Makefile: Install eqnrc.
11800 * ps/devps/eqnchar: Deleted.
11801 * ps/devps/Makefile: Don't install eqnchar.
11802 * dvi/devdvi/eqnchar: Deleted.
11803 * dvi/devdvi/Makefile: Don't install eqnchar.
11804 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
11807 * lib/device.[ch]: New files.
11808 * lib/font.h (font::set_device_name, font::get_device_name):
11810 * lib/fontfile.c: Use device.h.
11811 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
11812 * troff/input.c: Delete definition of `device'.
11813 (main): Don't initialize device.
11814 * troff/troff.h: Include device.h rather than declaring device.
11815 * troff/Makefile: No need to handle DEVICE.
11816 * driver/input.c: Include device.h. Don't use
11817 font::{set,get}_device_name.
11818 * groff.c, Makefile: Rename device.h to config.h.
11819 * groff.c: Use library device variable.
11820 * eqn/main.c: Use library device variable.
11821 * eqn/Makefile: No need to handle DEVICE.
11823 * lib/searchpath.[ch]: New files.
11824 * lib/Makefile: Handle searchpath.[ch].
11825 * troff/input.c (open_file, init_dirs): Deleted.
11826 (macro_dirs): Deleted.
11827 (open_mac_file, macro_source): Use class search_path.
11828 (add_string, struct string_list): Move definition.
11829 (main): Change -M option to use macro_path. Delete call to
11831 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
11832 Rewrite to use class search_path.
11833 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
11834 * lib/Makefile: fontfile.c depends on searchpath.h.
11835 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
11837 * lib/macropath.[ch]: New files.
11838 * troff/Makefile: No need to handle MACROPATH.
11840 * troff/input.c: Delete DUMP code.
11841 * lib/fontfile.c, lib/font.h: Delete
11842 font::forget_command_line_font_dirs.
11844 * troff/input.c (push_token): New function.
11845 (handle_first_page_transition): Use push_token().
11846 (process_input_stack): Change handling of a space at the beginning
11849 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
11851 * troff/input.c (font_dirs): Delete unused variable.
11853 * eqn/lex.c (do_set): Correct error messages.
11855 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
11857 * troff/input.c (do_define_string): Allow the string name to be
11858 followed immediately by a tab.
11859 (define_character): Likewise.
11861 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
11863 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
11866 * troff/input.c (input_iterator::is_file): New virtual function.
11867 (file_iterator::is_file): New function.
11868 (input_stack::end_file): New function.
11869 (input_stack::next_file): Handle the situation where there is no
11870 file on the input stack correctly. Avoid making two passes over
11872 (next_file): Make the filename optional; in this case call
11873 input_stack::end_file().
11875 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
11877 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
11878 produce a real _ charater when the current font is CW and _
11881 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
11882 expression to work around gcc 2.2 bug.
11884 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
11886 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
11888 * troff/env.c (environment::add_padding): New function.
11889 (environment::add_char): Use add_padding().
11890 (environment::space): Likewise.
11891 (environment::wrap_up_field): Add some padding if there is none
11892 and there's no current tab.
11893 * troff/env.h: Declare environment::add_padding.
11895 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
11897 * pic/pic.y: undef fmod and rand before declaring them.
11899 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
11901 * troff/input.c (main): If the DESC file specifies a font name of
11902 0, then leave the corresponding font position empty.
11904 * nroff.sh: New file.
11905 * Makefile (install.nobin): Install nroff.sh.
11907 * tty/devlatin1/R.proto: Add ao as synonym for de.
11908 * tty/tmac.tty-char: Define ao as o.
11910 * tty/dev{ascii,latin1}/R.proto: Add aq.
11911 * tty/tmac.tty-char: Delete definition of aq.
11913 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
11915 * troff/input.c (init_charset_table): Don't translate 0240.
11916 * ps/tmac.ps: Translate char160 to space.
11917 * dvi/tmac.dvi: Likewise.
11918 * tty/tmac.tty: Likewise.
11920 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
11922 * dvi/tmac.dvi: Add support for all Latin-1 characters.
11924 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
11925 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
11928 * tty/tmac.tty-char: Add \(ah.
11930 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
11931 No need to define \(FM and \(!/. Conditionalize all character
11934 * ps/devps/lgreekmap: Add +h, +f, +p.
11936 * ps/tmac.psnew: New file.
11937 * ps/Makefile: Install tmac.psnew.
11939 * troff/input.c (charinfo_to_node_list): Don't ever interpret
11940 character definitions in compatible mode.
11942 * troff/input.c (remove_character): New function.
11943 (init_input_requests): Bind remove_character to "rchar".
11945 * ps/tmac.psold: New file.
11946 * ps/Makefile: Install tmac.psold.
11947 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
11948 characters into tmac.psold. Make these definitions unconditional.
11950 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
11952 * ps/tmac.ps: Don't define \('c and \('C.
11954 * ps/devps/textmap: Move Greek characters to...
11955 * ps/devps/symbolchars:
11957 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
11959 * ps/devps/text.enc: Add quotesingle.
11960 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
11961 * tty/tmac.tty-char: Likewise.
11962 * dvi/devdvi/texmi.map: Add +h, +f, +p.
11963 * dvi/devdvi/texi.map: Add Fn.
11964 * dvi/devdvi/msam.map: Add lz.
11965 * dvi/tmac.dvi: Handle Bq, bq, aq.
11967 * pic/lex.c (get_token): Recognize 'th.
11968 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
11970 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
11972 * ps/devps/textmap: Move di, mu, +- to...
11973 * ps/devps/symbolchars:
11975 * macros/tmac.s (@XS): Don't call par@reset or fi.
11976 (XA): Call LP. Turn off adjustment. Reduce line length.
11978 * macros/tmac.s: Initially alias XS to LP.
11979 (XS): Rename to @XS.
11980 (cov*ab-init): Alias XS to @XS.
11982 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
11984 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
11985 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
11986 (token::is_size, token::changes_env): Deleted.
11987 * troff/number.c (parse_term): No need to process \s explicitly.
11988 Call tok.next() only after scale indicator has been processed.
11989 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
11991 (token::next): Handle \s, \f, \S, \H immediately rather than
11992 returning them as tokens.
11993 (token::operator==, token::description, token::add_to_node_list,
11994 token::process): Remove handling of deleted tokens.
11996 * troff/env.c (environment::add_char): When adding padding
11997 indicator character, call start_line() if necessary.
11999 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
12001 * ps/devps/afmtodit: Don't output 0 kerns.
12003 * ps/devps/afmtodit: Remove directory from name of encoding in
12004 font description file.
12006 * ps/devps/afmtodit: Improve error messages.
12008 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12010 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12011 * ps/devps/FontMakefile: Deleted.
12012 * ps/devps/afmname: New file.
12014 * ps/devps/symbol.sed: New file.
12015 * ps/devps/symbol.diff: Deleted.
12016 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12017 Generate zapfdr.afm from zapfd.afm.
12019 * tty/tmac.tty (tty-char): Prefix definition with ".
12021 * macros/tmac.an (TP): Don't start a diversion if one has already
12024 * tty/tmac.tty-char: Add Latin-1 characters.
12026 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12028 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
12030 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12031 Move declaration of struct horizontal_span.
12033 * tbl/table.c (table::table): Initialize span_list.
12034 (table::~table): Delete span_list.
12036 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12038 * ps/devps/Makefile: Avoid dependency on GNU make.
12040 * ps/tmac.ps: Check that character does not already exist before
12043 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12044 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12045 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12048 * tty/tmac.tty-char: New file.
12049 * tty/Makefile: Install tmac.tty-char.
12050 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12053 * tty/tmac.tty: Fix definition of \(34.
12055 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12056 bracket-drawing characters onto |. Add *o.
12058 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12059 only if current_field.
12061 * troff/dictionary.c (dictionary::lookup): Free old_table after
12064 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
12066 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12067 whose glyphs are identical to glyphs of some Roman character.
12069 * tty/devlatin1/R.proto (bu): Deleted.
12070 * tty/devascii/R.proto (bu): Deleted.
12071 * tty/tmac.tty: Add definition of \(bu.
12073 * eqn/main.c (do_file): Pass FILE as argument.
12074 (main): Automatically load eqnchar. New options -F and -n.
12075 Pass do_file an opened FILE.
12076 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12077 No need to include font.h.
12078 * groff.sh: Likewise. Don't need to use - for standard input.
12079 Prefix files with -- if first file starts with -.
12081 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12083 * troff/env.c (environment::possibly_break_line): Don't set line
12084 to 0 across call to output_line(). Don't call output_line() until
12085 after discarding nodes after break.
12087 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
12089 * request.h (macro::empty): Declare it.
12090 * input.c (macro::empty): New method.
12091 (interpolate_macro): Don't give a WARN_SPACE if the two-character
12094 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
12096 * troff/env.c (environment::start_field): Decrement space_total
12097 when a space is frozen.
12099 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
12101 * macros/tmac.an (R): Delete macro.
12103 * troff/input.c (get_copy, token::next): Support \# (like \" but
12104 newline is ignored).
12106 * troff/input.c (token::next): Fix error message in 'Y' case.
12108 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
12110 * eqn/delim.c (define_extensible_string): Recognize any prefix of
12113 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
12115 * c++test.c: Include <osfcn.h>.
12117 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12120 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
12122 * tbl/table.c (table::divide_span): Don't count column separation
12123 if expand was specified.
12125 * tbl/main.c (process_format): Don't ignore width specs in
12126 continued format. Give warning for changing equal widths or
12127 column separation in continued format.
12128 (process_data): Set column separation, minimum width, equal
12129 columns at end of table.
12131 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
12133 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12134 node::add_discretionary_hyphen): Use soft_hyphen_char.
12135 (set_soft_hyphen_char): New function.
12136 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
12138 * Makefile (c++tested): Give more helpful message if test fails.
12140 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
12142 * troff/input.c (init_charset_table): Translate 0240 to
12143 an unbreakable space.
12145 * troff/token.h (token::hyphen_indicator): New function.
12146 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12148 * troff/input.c (translate): Allow translation to \%.
12149 * troff/node.c (node::add_char): Handle
12150 TRANSLATE_HYPHEN_INDICATOR.
12151 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12153 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12156 * tty/devlatin1/R.proto: \(hy and - should print as 055.
12158 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
12160 * groff.c (run_commands): If the last command gets a SIGPIPE send
12161 a SIGPIPE to all children than haven't yet terminated. When
12162 command terminates, set pid field to -1.
12164 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
12166 * groff.c (main): Pass an appropriate -filename option to gxditview.
12168 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
12170 * Makefile.bd (install): Remove existing program before copying.
12172 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12173 programs which have Unix counterparts to be installed with
12174 user-specified prefix.
12176 * troff/input.c (exit_troff): Don't check if exit_started.
12177 (exit_request): Don't call exit_troff if exit_started.
12179 * Makefile.bd (install.mm): Rename to install.dwbmm.
12181 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
12183 * driver/input.c (do_file): Add missing break for '#' case.
12185 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
12187 * troff/input.c (input_stack::clear): Clear past any boundaries and
12188 then add the boundaries back.
12190 * troff/input.c (exit_troff): Return immediately if already
12193 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
12195 (pg*end-page): If the text has ended and there are no more
12196 footnotes or keeps, exit.
12198 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12200 * troff/input.c (init_charset_table): Make \(rq transparent by
12203 * macros/tmac.an: Define lq and rq strings.
12205 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12207 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
12209 * troff/env.c (environment::final_break): New function.
12210 (environment::newline): Set prev_line_interrupted to 2 if
12212 * troff/env.h: Declare environment::final_break.
12213 * troff/input.c (exit_troff): Call environment::final_break()
12214 instead of environment::do_break().
12216 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12217 doesn't already exist.
12218 * macros/man.local: New file.
12219 * macros/tmac.an: Load man.local.
12220 * macros/man.ultrix: New file.
12222 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
12224 * troff/input.c (exit_groff): Rename to...
12225 (exit_troff): New function.
12227 * troff/div.c (exit_started, done_end_macro,
12228 seen_last_page_ejector): New global variables.
12229 (began_page_in_end_macro): New static variable.
12230 (exit_flag): Deleted.
12231 (top_level_diversion::top_level_diversion): Initialize
12233 (top_level_diversion): More elaborate test for whether
12234 cleanup_and_exit() should be called.
12235 Set began_page_in_end_macro if the end macro isn't yet finished.
12236 * troff/div.h (top_level_diversion::last_page_count): New data
12238 (top_level_diversion::set_last_page): New function.
12239 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12240 * troff/env.c (do_break): Zero prev_line_interrupted.
12241 * troff/input.c (exit_flag): Delete declaration.
12242 (LAST_PAGE_EJECTOR): New magic cookie.
12243 (token::next): Handle LAST_PAGE_EJECTOR.
12244 (exit_groff): Set exit_started and done_end_macro instead of
12245 exit_flag. Call top_level_diversion::set_last_page. Push a
12246 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
12247 another ejection after setting seen_last_page_ejector.
12249 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
12251 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12253 * macros/tmac.e (TH): Make sure there's room for the initial
12256 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12257 Set FVS in points rather than units.
12259 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
12261 * troff/div.c (top_level_diversion::add_trap): Don't consider the
12262 position of empty slots.
12264 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
12266 * ps/devps/S: Fix height and depth of parenrightex.
12267 * ps/devps/symbol.diff: Regenerate.
12269 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
12271 * tmac.e (u): Do underlining as in -mgs.
12273 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
12275 * tty/tty.c (tty_printer::end_page): If overstriking is
12276 suppressed, still turn overstruck horizontal and vertical lines
12279 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12282 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12284 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
12286 * Version 1.05 released.
12288 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
12290 * tty/tty.c: Instead of keeping an array of glyphs and then
12291 sorting it, keep a ordered linked list of glyphs for each line.
12293 * driver/driver.h: Include stddef.h.
12295 * tty/tty.c (compare_glyph):
12296 * refer/refer.c (rcompare):
12297 * troff/env.c (compare_ranges): Arguments of qsort comparison
12298 function should be const void *.
12300 * troff/number.c (parse_term):
12301 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12304 * refer/label.y (consider_authors): Don't access variables
12305 constructed under a condition outside that condition: put braces
12306 round for statement containing declaration; redeclare use of same
12309 * pic/pic.y (text_expr): Delete production that allows
12310 parenthesised text_expr.
12311 (expr): Allow a conditional_expr to appear in parentheses.
12312 (conditional_expr): Rename to any_expr.
12314 * mm: Install new version 1.01 from jh.
12316 * lib/font.c (font::get_width): Cache scaled widths.
12317 (font::font): Initialize widths_cache.
12318 (font::~font): Destroy widths_cache.
12319 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12321 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
12323 * c++test.c, c++test.ref: New files.
12324 * Makefile: Check that the C++ compiler works.
12326 * ps/tmac.pspic (PSPIC): Do a break.
12328 * ps/tmac.ps: Move definition of PSPIC into...
12329 * ps/tmac.pspic: New file.
12330 (PSPIC): Draw box around picture, but make it invisible to grops.
12331 * ps/tmac.ps: Load tmac.pspic.
12332 * ps/Makefile: Install tmac.pspic.
12334 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
12336 * lib/font.c (scale_round): If n is negative,
12337 subtract .5 before truncating floating point result.
12339 * lib/fontfile.c: Include <errno.h>.
12341 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
12343 * driver/input.c (get_char): Inline. Don't update current_lineno.
12344 Change callers to up date current_lineno if necessary.
12345 Use get_char() instead of getc(current_file).
12347 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
12349 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12351 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
12353 * tty/tty.c (tmac.tty): Define \(rg as (R).
12355 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
12357 * lib/lib.h: New define a_delete.
12358 * Use a_delete instead of delete when deleting an array of objects
12359 without destructors.
12361 * lib/lib.h: Rename adelete to ad_delete.
12362 * Change uses of adelete.
12364 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
12366 * eqn/eqn.y: Include lib.h.
12368 * troff/node.c (grow_font_table): Delete old_font_table.
12370 * mm: Install new version from jh.
12372 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
12374 * tbl/table.h (format_type): Make global instead of local to class
12375 entry_format. Prefix enumerators with FORMAT_.
12376 * tbl/table.c, tbl/main.c: Corresponding changes.
12377 * refer/token.h (token_type): Make global. Prefix enumerators
12379 * refer/token.[ch]: Corresponding changes.
12380 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12382 * troff/div.c (node::set_vertical_size): Don't name argument.
12384 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
12386 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12387 * lib/lib.h: Define adelete accordingly.
12388 * pic/object.c (graphic_object::graphic_object):
12389 * tbl/main.c (format::~format):
12390 * tbl/table.c (table::~table):
12391 * refer/ref.c (reference::~reference, reference::merge,
12392 reference::insert_field, reference::delete_field): Use adelete.
12394 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12396 * tbl/table.h: Corresponding changes.
12398 * common.c (common_output::dashed_arc, common_output::dotted_arc):
12399 Ensure total_angle is positive.
12401 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
12403 * refer/ref.c (reference::merge, reference::insert_field,
12404 reference::delete_field): Avoid delete[0].
12406 * refer/token.c (init_special_chars): Move calls to cmupper
12407 outside calls to init_two_char_letter to work around bug in gcc
12410 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
12412 * lib/new.c (operator new): Use __builtin_new for g++.
12414 * pic/object.c (graphic_object::~graphic_object): Don't use
12417 * pic/object.c (output::compute_scale): Initialize max_width and
12420 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
12422 * troff/input.c (write_request): Call fflush.
12424 * troff/node.h (class composite_node): Move declaration to node.c
12425 * troff/input.c (charinfo_to_node): Rename to ...
12426 (charinfo_to_node_list): Return node list rather than composite
12428 * troff/node.c (make_composite_node): New function.
12429 (make_node, add_char): Call make_composite_node instead of
12431 (class composite_node): Add a tfont * member. Delete font_size
12433 (composite_node::composite_node, composite_node::copy,
12434 composite_node::size): Corresponding changes.
12435 (composite_node::tprint): Provide constant spacing, emboldening
12436 and track kerning as specified in tfont.
12437 (composite_node::width): Change width calculation accordingly.
12438 * troff/env.h (environment::composite): New member.
12439 (environment::is_composite, environment::set_composite): New
12441 * troff/env.c (environment::environment): Initialize composite.
12442 * troff/input.c (charinfo_to_node): Call
12443 environment::set_composite.
12444 * troff/node.c (make_composite_node, make_glyph_node): Use the
12445 plain version of the tfont if the environment is composite.
12447 * troff/node.c (font_info::get_space_width): Additional argument
12448 giving space_size. Handle constant space correctly. Scale by
12449 space_size unless constant spaced.
12450 (env_sentence_space_width): New function.
12451 * troff/node.h: Declare it.
12452 * troff/env.h (environment::get_space_size,
12453 environment::get_sentence_space_size,
12454 environment::get_narrow_space_width,
12455 environment::get_half_narrow_space_width): Make inline.
12456 (environment::get_space_width): Make inline. Just call
12458 * troff/env.c: Delete definitions for funtions made inline.
12459 (environment::space_newline, environment::space): Use
12460 env_sentence_space_width(). Don't scale by space_size.
12461 * troff/node.h: Move declarations of env*space_width() functions
12464 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
12466 * macros/tmac.s (PS): Don't try to set negative indent.
12468 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
12470 * pic/pic.y: Fix min function.
12472 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
12474 * man/mdate.sh: Clear LANGUAGE.
12476 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
12478 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12479 * pic/lex.c: New COMMAND keyword.
12480 * pic/pic.y (print_args, print_arg): New rules.
12481 (placeless_element): Use print_args for PRINT.
12482 New COMMAND element.
12484 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
12486 * troff/input.c (terminal): Handle missing argument correctly.
12488 * pic/pic.y (text_expr): New rule.
12490 * pic/pic.y: Implement := operator.
12492 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
12494 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12497 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
12499 * ps/devps/dingbatsrmap: Include this in the distribution.
12501 * macros/tmac.doc: Replace with new version from 2nd Networking
12502 Release. Fix loading of doc-* files.
12503 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12504 * macros/tmac.doc.old: New file. Apply fixes that had been
12505 applied to old tmac.doc.
12506 * macros/tmac.andoc: Check that we're running under groff.
12507 * macros/Makefile: Rework.
12509 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
12511 * tbl/table.h (format_type):
12512 * refer/token.h (token_type): If NESTED_TYPES is defined, use
12513 typedef to make these types visible at file scope.
12514 * Makefile: Add NESTED_TYPES configuration option.
12516 * troff/div.c (mark): At the top level use the value of
12517 nl_reg_contents rather than the current vertical position.
12519 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
12521 * tty/tty.c: Implement \D for horizontal or vertical lines.
12522 (tty_printer::set_char): Use vec_used+2 as serial number.
12523 Don't allow size of vector to exceed USHRT_MAX-2.
12524 Split off part into...
12525 (tty_printer::add_char): New function.
12526 (tty_printer::draw): New function.
12527 (compare_glyph): Handle equal serial numbers.
12528 (tty_printer::end_page): Handle overstruck characters from \D.
12529 (main, usage): Implement -d option.
12531 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
12533 * tbl/main.c (process_format):
12534 * eqn/text.c (split_text):
12535 * troff/input.c (token::next): Use inner block for declarations
12536 with initializers in switch statement.
12538 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
12540 * pic/common.c (common_output::dash_line): Cope with zero-length
12543 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
12545 * Version 1.04 released.
12547 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
12549 * macros/tmac.an (TH): Define a macro an-init to define variables
12550 based on command line arguments.
12551 (an-header): Call it.
12553 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
12555 * Makefile (install.mm): Rename to install.dwbmm.
12557 * Makefile: Integrate mm.
12558 * mm: New directory.
12560 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
12562 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
12565 * pic/troff.c (troff_output::simple_spline,
12566 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
12567 shadowing parameter.
12569 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
12571 * lib/ptable.h: Add explicit casts when converting from unsigned
12574 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
12575 * dvi/devdvi/Makefile: Install SA, SB.
12577 * refer/indxbib.c: Add declaration of mktemp.
12579 * refer/lookbib.c: Add declaration of isatty.
12581 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
12583 * pic/lex.c (interpolate_macro_with_args): While collecting
12584 arguments, keep track of whether we're in a string.
12586 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
12588 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
12589 down with \v, so as to avoid problems with top of page trap
12590 setting no space mode.
12592 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
12594 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
12596 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
12598 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
12599 Improve error message.
12601 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
12603 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
12606 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
12608 * groff.c (possible_command::execp): Always use _exit() after a
12611 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
12612 NO_SYS_WAIT_H configuration options.
12613 * groff.c: Use these options. Use POSIX-style macros to extract
12614 fields from the status returned by wait().
12616 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
12618 * tbl/table.c (table::compute_separation_factor): Allow the
12619 separation factor to drop to 0.
12621 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
12623 * refer/search.c: Include <errno.h>.
12625 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
12627 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
12629 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
12632 * pic/lex.c (input_stack::bol): Move definition out of class body.
12634 * pic/main.c: On MSDOS munge argv[0].
12636 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
12638 * lib/ptable.c (hash_string): Use unsigned long rather than
12640 (next_ptable_size): Use unsigned rather than int. Give an error
12641 message if we've hit the largest table size.
12642 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
12645 * pic/object.h (object_spec): Make flags unsigned long. Declare
12646 flags as const unisgned long rather than as enums.
12648 * pic/output.c: Deleted.
12650 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
12652 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
12653 Add additional argument.
12654 (line_entry::note_double_vrule_on_{left,right}): Set value of
12655 douvle_vrule_on_{right,left} flag according to argument.
12656 (simple_line_entry::simple_print,
12657 simple_line_entry::double_line_print): If adjacent to double vrule
12658 on a corner extend rather than shorten the rule by half the double
12661 * troff/number.c (parse_term): In checking for overflow, handle the
12662 case where the current horizontal position is negative.
12664 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
12666 * pic/object.c (draw_arrow): Check for object having zero length.
12668 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
12670 * eqn/main.c (do_file): Split off inline equation handling into...
12671 (inline_equation): New function. Search for starting delimiter
12673 (delim_search): New function. Don't recognize a delimiter that
12674 occurs in the name of an escape sequence, number register, string
12677 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
12679 * eqn/delim.c (delim_box::compute_metrics): Don't call
12680 define_extensible_string if left is 0.
12681 (delim_box::output): Don't print the left delimiter if left is 0.
12682 (delim_box::debug_print): Check for left == 0 before calling printf.
12684 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
12686 * troff/Makefile (majorminor.c): Include only digits in
12689 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
12691 * refer/dirnamemax.c: new file.
12692 * refer/genlimits.c: Deleted.
12693 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
12694 Don't check path length.
12695 * refer/Makefile: Add dir_name_max.o; delete genlimits.
12696 * Makefile: Add PATHCONF_MISSING option.
12698 * refer/indxbib.c (get_cwd): New function.
12699 (main): Use get_cwd().
12700 * lib/getcwd.c: New file.
12701 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
12702 GETCWD in SUBFLAGS.
12703 * lib/Makefile: Compile getcwd.o.
12705 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
12708 * refer/indxbib.c (main): Check success of mktemp.
12710 * lib/tmpfile.c: New file.
12711 * lib/Makefile: Add tmpfile.c.
12712 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
12713 * ps/ps.h: Delete declaration of mktemp().
12714 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
12715 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
12716 * driver/driver.h: No need now to include errno.h.
12718 * everywhere: Set errno to 0 before calling fopen().
12720 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
12721 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
12722 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
12724 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
12726 * troff/env.h (translate_space_to_dummy): Declare it.
12727 * troff/env.c (environment::space_newline, environment::space):
12728 If translate_space_to_dummy is set then make the width of spaces 0.
12729 * troff/input.c (translate): If the second character of a
12730 translation is a space, translate to unbreakable space. If the
12731 first character is a space, set or clear translate_space_to_dummy
12732 according to whether the second character is \&. Weird!
12734 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
12736 * groff.c (run_commands): Don't use non-zero exit code because a
12737 command gets SIGPIPE.
12739 * groff.c, groff.sh: Use -mXps with -TXps.
12741 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
12742 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
12743 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
12744 (ps_printer::special): New specials invis and endinvis.
12745 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
12746 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
12747 (ps_printer::end_page): Check that invis_count == 0.
12748 (ps_printer::invis_count): New member.
12749 (ps_printer::ps_printer): Initialize invis_count to 0.
12751 * troff/env.c (environment::hyphenate_line): Hyphenation
12752 indicator at beginning of word inhibits splitting after -, \(em
12755 * pic/pic.y (element): Allow another element to follow } without
12756 any intervening separator.
12758 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
12760 * pic/lex.c (get_delimited): Allow tabs before delimiter.
12762 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
12764 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
12765 declaration of wait() in header files.
12766 * Makefile: Get rid of -DHAVE_UNION_WAIT.
12768 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
12770 * lib/lib.h: Declare return type of strerror as char *.
12772 * man/Makefile: Add g flag to sed substitutions.
12773 * Makefile (shgroff, bindist): Likewise.
12775 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
12777 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
12778 * ps/devps/prologue (PBEGIN): Define showpage after pushing
12781 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
12783 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
12786 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
12788 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
12791 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
12793 * troff/input.c (define_number_reg): If currently undefined,
12794 don't define it if the argument is an invalid expression.
12796 * Makefile: Ignore return value of `if' commands without `else'
12799 * Makefile: Split up CPPDEFINES into a series of separate
12800 configuration options.
12802 * troff/input.c (init_registers): Use time_t instead of long
12803 unless LONG_FOR_TIME_T is defined. Use returned result rather
12804 than passing pointer.
12805 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
12807 * lib/Makefile (fontpath.h): Use gendef.
12809 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
12811 * troff/input.c (input_iterator::shift): Delete argument name.
12812 * troff/node.c (suppress_output_file::really_begin_page,
12813 suppress_output_file::really_transparent_char, node::ascii_print,
12814 node::tprint): Delete names of unused arguments.
12816 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
12818 * refer/label.y (string): Pass $4 to command_error.
12820 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
12822 * Version 1.03 released.
12824 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
12826 * Makefile: Pass definition of SHELL in SUBFLAGS.
12828 * gendef: New file.
12829 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
12830 ps/Makefile: Use gendef to construct header files that are
12831 constructed from the Makefile.
12833 * macros/Makefile: make all should build stripped version of tmac.e.
12835 * refer/Makefile (clean): Remove y.output.
12837 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
12839 * ps/pfbtops.c (main): Add -v option which prints out a version
12841 * ps/Makefile (pfbtops): Link with libgroff.a.
12843 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
12845 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
12846 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
12848 * refer/lkbib.c (main): Always terminate reference with blank
12850 * refer/lookbib.c (main): Likewise.
12852 * refer/linear.c (file_buffer::load): Check that the file is not a
12855 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
12856 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
12857 Delete second inclusion of <sys/param.h>.
12859 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
12861 * troff/token.h (token::special): Deleted.
12863 * tbl/main.c (process_format): Rework so that opt->tab_char is
12864 recognized only when appropriate.
12866 * ps/Makefile (clean): Remove pfbtops.
12868 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
12870 * lib/font.c (text_file::next): Don't return if we have got a
12873 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
12875 * refer/refer.c (store_reference): Get hash code from old_table[i]
12876 when rehashing the table.
12878 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
12880 * eqn/box.c (box::top_level): Save size and prev size using \R and
12881 restore it afterwards. Set the size to the size at the beginning
12883 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
12884 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
12886 * refer/Makefile (limits.h): Use ./genlimits.
12888 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
12890 * refer/index.c: Delete declarations of stat() and fstat().
12892 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
12894 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
12896 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
12898 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
12900 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
12902 * troff/input.c (token::get_char): Handle \e.
12904 * refer/linear.c: Delete declarations of fstat() and stat().
12906 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
12908 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
12909 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
12911 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
12913 * troff/input.c (do_define_macro): Improve error handling for end
12914 of file while defining macro.
12916 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
12918 * eqn/box.h: Fix declaration of set_gsize.
12919 * eqn/box.c (set_gsize): Make argument const char *.
12920 (gsize): Declare as char *.
12921 * eqn/main.c (main): Don't convert gsize to int.
12922 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
12924 * Version 1.02 released.
12926 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
12928 * macros/tmac.andoc: New file.
12929 * macros/Makefile: Install tmac.andoc.
12931 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
12932 operator new and delete on OP_DELETE_BROKEN not being defined.
12933 * Makefile: Mention OP_DELETE_BROKEN.
12935 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
12937 * Makefile (bindist): Pass SUBFLAGS.
12939 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
12941 * Makefile, groff.c: Pass definitions to groff.c via device.h.
12943 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
12946 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
12948 * ps/ps.h, ps/psrm.c: Make comment_table and
12949 header_comment_table local to resource_manager::process_file.
12951 * groff.sh: With -TXps pass -printCommand option to gxditview.
12953 * groff.c (possible_command::print): Implement using
12954 append_arg_to_string.
12956 * xditview: Merge in new implementation with own ChangeLog.
12958 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
12960 * groff.c (main): Implement PRINT_OPTION.
12961 (append_arg_to_string): New command.
12962 (device_table): Set PRINT_OPTION flag for Xps.
12964 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
12966 * troff/groff.h: Rename to troff.h.
12968 * pic/lex.c (lookup_keyword, docmp): New functions.
12969 (get_token): Use new lookup_keyword.
12970 Don't include key.h.
12971 * pic/key.[ch], pic/pic.gperf: Deleted.
12972 * pic/Makefile: Remove gperf stuff.
12974 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
12976 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
12978 * troff/Makefile, troff/node.c: Move definition of
12979 STORE_WIDTH into node.c.
12981 * etc/grog.pl, etc/grog.sh: Support -mdoc.
12983 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
12985 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
12986 dvi/devdvi/texb.map: Add lq and rq.
12987 dvi/devdvi: Regenerate fonts.
12988 * ps/devps/textmap: Add lq and rq.
12989 * ps/devps: Regenerate fonts.
12990 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
12991 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
12993 * pic/object.c (position_rectangle): When checking radius
12994 cope with possiblity that width or height is negative.
12995 (box_object::box_object): Have separate xrad and yrad with
12996 signs matching signs of dim components.
12997 (box_object::{north,south}_{east,west}): Use xrad and yrad.
12998 (box_object::print): With rounded boxes use absolute values
12999 for dim and rad arguments.
13001 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13004 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13006 * various files: Add explicit destructors to keep Saber CC +d
13009 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
13011 * eqn/box.c (box::top_level): Restore fonts correctly after
13012 font changes in line containing inline equation. Also
13013 restore previous font as well as current font.
13014 * eqn/pbox.h: Define necessary string and register names.
13016 * troff/input.c (token::next): Case 'R' calls do_register.
13017 (do_register): New function.
13019 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
13021 * groff.c, groff.sh: Support Xps device. Allow each device
13022 to have a pseudo_name and a real_name.
13024 * groff.c (run_commands): Don't print `Broken pipe' messages.
13026 * ps/pfbtops.c: New file.
13027 * ps/Makefile: Add pfbtops.
13029 * troff/number.c (parse_term): Improved error message.
13031 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
13033 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13035 * Makefile: Integrate refer.
13036 * refer: New directory.
13037 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13038 man/lkbib.man: New files.
13039 * man/Makefile: Support refer man pages.
13041 * lib/lib.h: Declare is_prime.
13042 * lib/prime.c: New file.
13044 * troff/input.c (macro_source): New function.
13045 (init_input_requests): Bind "mso" to macro_source.
13047 * troff/env.c (environment::possibly_break_line): Maintain
13048 pointer to pointer to node to be split in ndp so as to avoid
13049 using address of freed node.
13051 * troff/env.c (environment::hyphenate_line): Maintain pointer to
13052 pointer to first node to be hyphenated in startp so as to
13053 avoid using address of freed node.
13055 * troff/env.c (class trie, class hyphen_trie): Make the
13056 elements of the trie be of type char not unsigned char.
13057 Declare arguments to be const char* instead of unsigned char *.
13059 * troff/env.c (hyphenate): Initialize hbuf[0].
13061 * troff/input.c (set_string): Declare p to be char * and cast
13062 *p to unsigned char when necessary.
13064 * troff/input.c (do_define_macro): Declare s to be const
13065 char*. Cast element to unisgned char when necessary, Declare
13066 d to be an int. Handle EOF better.
13068 * troff/Makefile, troff/input.c: Different scheme for passing
13069 definitions of MACROPATH, HYPHENFILE and DEVICE.
13071 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
13073 * tty/devascii/R.proto: Delete entry for em.
13074 * tty/devlatin1/R.proto: Likewise.
13076 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
13078 * troff/input.c (translate): Stop when we get a space. Treat eof
13081 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13083 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
13085 * tbl/main.c (process_format): A font name following a `f'
13086 modifier that starts with a digit can be only one character long.
13087 Also deal with EOF on the second character of the font name.
13089 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
13091 * troff/input.c (token::next): Turn \~ into an
13092 unbreakable_space_node.
13093 * troff/node.c (unbreakable_space_node): New class.
13094 * troff/node.h: Declare it.
13096 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
13098 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
13099 it's >= 0, before outputting it as a single byte.
13101 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
13103 * lib/font.c: Make font_char_metric::code an int.
13104 (font::get_code): Change return type to int.
13105 (font::load): Allow code to be arbitrary integer.
13106 * lib/font.h (font::get_code): Change return type to int.
13107 (font::number_to_index): Change argument type to int.
13108 * troff/input.c (token::next): In case 'N', allow any value.
13109 Store value in token::val.
13110 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13111 (token::get_char, token::add_to_node_list, token::process): Get
13113 (charinfo::set_number): Change argument to int.
13114 (charinfo::get_number): Require that NUMBERED flag be set.
13115 (get_charinfo_by_number): Store numbered characters not between 0
13116 and 255 in a dictionary.
13117 * troff/charinfo.h (get_charinfo_by_number): Change argument type
13119 (charinfo::number): Change type to int.
13120 (charinfo::set_number): Change type of set_number to int.
13121 * troff/node.c (troff_output_file::put_char_width,
13122 troff_output_file::put_char): Test whether character is numbered
13123 using charinfo::numbered().
13124 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13126 * lib/nametoindex.c: New implementation to cope with arbitrary
13129 * troff/input.c (token::operator==): Test val for
13130 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13133 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13134 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
13136 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
13138 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
13141 * all Makefiles: rm targets of cp and >.
13143 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13146 * eqn/lex.c (def_table): Add dollar.
13148 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
13150 * troff/input.c (do_width): Push back newline before closing delim
13153 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
13155 * groff.c (possible_command::prepend_arg): New function.
13156 (main): Prepend device -m option.
13157 * groff.sh: Put device -m options before command-line options.
13159 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
13161 * macros/tmac.an (IP): Quote argument to TP.
13163 * ps/ps.c (main): New option -b, which sets...
13164 (broken_flags): New variable.
13165 (ps_printer::~ps_printer): Incorporate the setup section in the
13166 prolog if (broken_flags & NO_SETUP_SECTION).
13167 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13168 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13169 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13170 ps_printer::print_needed_font_comment,
13171 ps_printer::print_supplied_font_comment,
13172 ps_printer::print_include_font_comments,
13173 ps_printer::lookup_doc_font, ps_printer::download_fonts,
13174 ps_printer::read_download_file, read_document_fonts, add_font,
13175 skip_line, parse_fonts_arg, document_font::document_font,
13176 document_font::~document_font, document_font::download,
13177 ps_output::include_file): Deleted.
13178 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13179 rather than %!PS-Adobe-2.0. Make calls to
13180 resource_manager::need_font for each font that we used. Replace
13181 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13182 print_supplied_font_comment, print_needed_font_comment by call to
13183 resource_manager::print_header_comments. Output %%Orientation
13184 comment. Output %%Requirements: numcopies comment if ncopies > 1.
13185 Don't output the prolog directly. Instead call
13186 resource_manager::output_prolog. Only define #copies when ncopies
13187 > 1. Delete calls to print_include_font_comments and
13188 download_fonts. Add call to resource_manager::document_setup.
13189 (ps_printer::do_file): Call resource_manager::import_file instead
13190 of including it ourselves.
13191 (ps_printer::do_import): Likewise. Also don't call
13192 merge_import_fonts. Push userdict on the dictionary stack before
13193 and pop it afterwards.
13194 Move declaration of ps_output into ps.h.
13195 * ps/psrm.c: New file implementing resource_manager class.
13196 * ps/ps.h: New file declaring ps_output and resource_manager
13198 * ps/devps/zapfdr.ps:
13199 * ps/devps/symbolsl.ps:
13200 * ps/devps/prologue: Use 3.0 conventions.
13201 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13202 Add default definition of BROKEN_SPOOLER_FLAGS.
13203 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
13204 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13206 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
13208 * etc/grog.pl: New file.
13209 * Makefile (GROG): New variable.
13210 Add GROG to SUBFLAGS.
13211 * etc/Makefile (GROG): New variable.
13212 (install.nobin): Install $(GROG) rather than grog.sh.
13214 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
13216 * eqn/special.c (special_box::compute_metrics): Make the input and
13217 output strings the same. Get the new height and depth from the
13218 predefined height and depth registers. Also make subscript kern
13219 and skew available.
13220 (special_box::compute_subscript_kern, special_box::compute_skew):
13223 * eqn/box.c (pointer_box::compute_skew,
13224 simple_box::compute_metrics, box::top_level)
13225 * eqn/text.c (prime_box::compute_metrics,
13226 prime_box::comput_subscript_kern)
13227 * eqn/limit.c (limit_box::compute_metrics):
13228 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13229 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13230 negative numbers in `nr' requests with a leading 0.
13232 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
13234 * eqn/special.c: New file.
13235 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
13236 Add new rule for simple.
13237 * eqn/lex.c (token_table): Add SPECIAL.
13238 * eqn/box.h: Declare make_special_box.
13239 * eqn/Makefile: Add special.[co].
13241 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
13243 * ps/devps/prologue: Possibly set packing to true while defining.
13244 Create grops dictionary here. Initialize local variables before
13245 defining procedures.
13246 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13247 the dictionary stack. Set strokeadjust and overprint to false if
13248 the relevant operators are defined.
13249 (PEND): New procedure.
13250 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13251 prologue. Do everything else in the setup section.
13252 (ps_printer::do_import): Just call PBEGIN and PEND around the
13253 picture. Also push userdict before, and pop it afterwards.
13255 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
13257 * troff/node.c (bracket_node::tprint): Brackets were being printed
13260 * macros/tmac.an (SH, SS): Set fill mode.
13262 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
13264 * troff/div.c (top_level_diversion::begin_page): Set
13265 high_water_mark to 0.
13267 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
13269 * man/mdate.sh: New file.
13270 * man/mdate.c: Deleted.
13271 * man/Makefile: Use mdate.sh instead of mdate.
13274 * eqn/lex.c (do_gsize): Supply missing argument to error message.
13276 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
13278 * man/mdate.c: New file.
13279 * man/*.man: Replace modification date by @MDATE@.
13280 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13281 (mdate): New target.
13283 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13284 Remove illegal input characters.
13286 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
13288 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13290 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
13292 * troff/div.c (begin_page): Change behaviour when
13293 !first_page_begun and !break_flag.
13295 * troff/input.c (do_name_test): Return 0 if argument is empty.
13297 * troff/input.c (read_long_escape_name): Require closing ] to be
13298 at same input level as opening [.
13300 * troff/input.c (read_increment_and_escape_name): New function.
13301 (get_copy, process_input_stack): Use this for \n.
13303 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
13305 * troff/div.c (top_level_diversion::begin_page): Ignore the
13306 current value of page_number if !first_page_begun.
13308 * groff.c (main): Fix declaration of buf.
13310 * troff/input.c (do_name_test): New function.
13311 (token::next): Implement \A.
13312 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13313 (token::description, token::add_to_node_list, token::process):
13314 Handle TOKEN_ESCAPE.
13315 * troff/token.h: New token TOKEN_ESCAPE.
13317 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
13319 * pic/main.c (do_picture): Allow space before and after filename
13320 following `<'. Check that the filename is not empty.
13322 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
13324 * Version 1.01 released.
13326 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13328 * dvi/tmac.dvi: ftr HR to H.
13330 * macros/tmac.e: Round up computation of $r.
13332 * xditview/tmac.X: Don't give up completely in compatibility mode.
13333 Use \n(.s instead of \n[.s].
13335 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13336 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13337 Add u to factors inside \s[...]. Rename frac to dvi-frac.
13338 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13339 short names in the char definitions.
13341 * ps/tmac.ps: Don't give up completely in compatibility mode.
13342 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13343 quote in front of \n(.s. Add u to factors inside \s[...].
13345 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
13347 * tty/tmac.tty: Call the nroff request.
13349 * macros/tmac.e ((x, )x): Better definitions that work properly
13351 (@0, @1): Helper macros for (x.
13353 * macros/tmac.e ($s, hl): Use \l rather than \D.
13355 * tty/tmac.tty: Make it work better in compatibility mode.
13356 (pchar): Rename to tty-char.
13358 * macros/tmac.e (@E): New macro.
13359 (r, i, b, rb, bi): Use @E.
13361 * macros/tmac.e (@F): Don't use (;...) syntax.
13363 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
13364 it was modified for groff.
13366 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13368 * macros/tmac.e (<., .>): Removed.
13369 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13371 * macros/tmac.e: Remove check that groff is being used.
13373 * macros/tmac.e (@C): Change families only if using groff; turn
13374 compatibility mode off while changing familes. Save compatibility
13375 mode before changing families and restore it afterwards.
13377 * macros/tmac.e (@h): Remove test for offset + line length.
13379 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
13380 (lo, th, ac): Define to call @S instead of using als.
13382 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13383 the ratio of the vertical spacing to the point size in units
13384 expressed as a percentage. Use these instead of $10r and $10R,
13385 Delete $10r and $10R.
13387 * lib/font.c (font::load): In default computation of space_width,
13388 divide by sizescale. Use scale_round.
13390 * macros/tmac.an (TP): Don't call `nf'.
13391 (an-do-tag): Don't call `fi'.
13393 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
13395 * troff/input.c (process_input_stack): Handle the case where
13396 spaces at the beginning of an input line are followed by a
13399 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
13401 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13402 * groff.sh: Use pic -x with the dvi device.
13404 * dvi/devdvi/FontMakefile (H): Don't use -s.
13406 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13407 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13408 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13411 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
13413 * ps/psfig.diff: New file.
13414 * ps/tmac.psfig: New file.
13416 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
13418 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13419 (]-): Don't call ref*do-tl.
13421 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13423 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13424 (fn@do-FS): Rename to fn*do-FS.
13426 * troff/input.c (transparent_translate): New function.
13427 (process_input_stack): Apply transparent_translate before calling
13428 diversion::transparent_output(unsigned char).
13430 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
13432 * troff/input.c (do_define_macro): Define the macro before calling
13435 * xditview/Makefile: Add DEVICES variable. Change install target
13438 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
13440 * groff.c (run_commands): Handle the possibility that there are
13441 child processes other than those forked by us.
13443 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
13445 * lib/string.c (string::append): New function.
13446 * lib/stringclass.h: Declare it.
13448 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
13450 * eqn/main.c (main): New option -N which sets
13451 no_newline_in_delim_flag.
13452 (do_file): If no_newline_in_delim_flag is set don't allow newlines
13454 * groff.c (main): Pass -N on to eqn.
13455 (help, synopsis): Mention -N.
13456 * groff.sh: Implement -N.
13458 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
13460 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13461 (]-): Call ref*do-tl if ref*need-tl is non-zero.
13462 (XP): Allow as initializer.
13464 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
13466 * troff/env.c (environment::wrap_up_field): If field_spaces are
13467 non-zero and we have a current_tab, subtract padding from
13468 tab_distance. If this makes tab_distance <= 0, use the next tab
13469 stop instead. If there isn't any next tab or it's a left tab,
13470 wrap up the current tab.
13471 (environment::start_field): Initialize tab_precedes_field.
13472 (environment::wrap_up_tab): If there's a current field, update
13473 pre_field_width, field_distance and tab_precedes_field.
13474 * troff/env.h (environment::tab_precedes_field): New member.
13476 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
13478 * ps/ps.c (ps_printer::do_file): New function.
13479 (ps_printer::special): Bind to `file' special.
13480 (ps_printer::do_exec): Set ndefined_styles to 0.
13482 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
13484 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13485 Avoid stripping first character from the start of unrecognized
13486 escapes. Use lex_error instead of error to report errors.
13487 * eqn/lex.c (get_token): Rework handling of escapes.
13488 (lex_error): Move declaration into...
13491 * xditview/xditview.c (main): Make -page option work.
13493 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13495 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
13497 * macros/tmac.s (B2): Correct size of box.
13499 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
13501 * macros/tmac.s (B2): Postpone drawing the box until in the
13502 top-level diversion.
13504 * tty/tmac.tty: Add font translations for C, CR, CW.
13506 * groff.c (synopsis, help): Document -i.
13507 * groff.sh: Implement -i.
13509 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13510 Simplify the construction of SN.
13512 * troff/number.c (parse_term): Give `|' a higher precedence.
13513 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13516 * macros/tmac.s (B2): Use par@finish instead of par@reset.
13518 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
13520 * lib/string.c (string::move): New function.
13521 * lib/stringclass.h: Declare it.
13523 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
13525 * troff/env.c (distribute_space): Add optional argument
13527 (environment::wrap_up_field): Call distribute_space with
13528 `force_forward' argument of 1.
13530 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
13532 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13533 Inline it. Move reallocation into...
13534 (string::grow1): New function.
13535 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13536 dependencies to include library header files.
13537 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13539 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
13541 * macros/tmac.s (@NH): Use the same number registers than -ms does
13542 for the heading level counters. Use the same string that -ms does
13543 for the number for this heading.
13545 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
13547 * lib/new.c (operator new): Cast result of malloc to char *.
13549 * troff/input.c (spring_trap, lookup_request): Add assert that nm
13552 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
13554 * groff.c (main): Support -i.
13556 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
13558 * pic/pic.h: Include <osfcn.h>.
13560 * ps/ps.c: Add declaration of mktemp.
13562 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
13563 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
13564 argument as union wait *.
13565 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
13566 argument to union wait *.
13568 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
13570 * tty/tmac.tty: Add definition of \(co.
13572 * pic/object.c (make_arc): Only increase radius when radius
13573 strictly less than d.
13574 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
13577 * troff/env.c (environment::environment(symbol),
13578 environment::environment(const environment *)): Initialize
13581 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
13583 * tbl/main.c (main): Add exit(0).
13585 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
13587 * pic/main.c (main):
13588 * eqn/main.c (main):
13589 * tbl/main.c (main):
13590 * etc/soelim.c (main):
13591 * driver/printer.c (printer::~printer):
13592 * troff/node.c (real_output_file::~real_output_file,
13593 real_output_file::flush): Check for errors on stdout.
13595 * most files: Add 1991 to copyright notice.
13597 * macros/tmac.s: Don't test \n(.x and \n(.y.
13599 * troff/input.c (token::next): Rename `escape_char' label to
13600 `handle_escape_char' and `normal_char' label to
13601 `handle_normal_char'.
13603 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
13605 * groff.c (main, synopsis, help): Support -a option.
13606 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
13607 to trflags while parsing options.
13609 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
13611 * troff/number.c (parse_term): With `m', `M' and `n' scale
13612 indicators, convert scale factor to hunits before scaling.
13614 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
13616 * lib/font.c (scale_round): Better test for overflow when n is
13619 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
13621 * tbl/main.c (process_format): Add second argument of type
13622 options*. Change callers. Allow opt->tab_char as well as '\t'
13623 between format items.
13625 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
13627 * macros/tmac.an (PD): With no arguments, make sure register PD is
13629 (TH): Call PD with no argument, instead of setting register PD
13632 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
13634 * Version 1.00 released.
13636 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
13638 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
13640 * dvi/devdvi/DESC: Mount CW instead of CR.
13642 * dvi/tmac.dvi: Add definition of \(tm.
13644 * dvi/devdvi/texsy.map: Add lh, and rh.
13645 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
13646 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
13648 * dvi/devdvi/FontMakefile: Generate H from cmss10.
13649 * dvi/devdvi/Makefile: Install H.
13650 * dvi/devdvi/H: New file.
13652 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
13654 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
13657 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
13659 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
13661 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
13663 * macros/tmac.s (@EN): Handle the case where the equation is empty
13664 but the label is not.
13666 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
13668 * troff/groff.h: New warning category WARN_SPACE.
13669 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
13670 WARN_SPACE to warning_table.
13671 (interpolate_macro): Give a warning of type WARN_SPACE if the name
13672 is longer than two characters and is not defined, but the first
13673 two characters do make a defined name.
13675 * PROBLEMS: New file.
13677 * CHANGES: New file.
13678 * README-0.6, README-1.00: Deleted.
13680 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
13681 * xditview/devX75/Makefile: Make devX75-12.
13682 * xditview/devX100/Makefile: Make devX100-12.
13684 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
13685 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
13687 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
13689 * README-0.7: Rename to README-1.00.
13691 * macros/tmac.pic: New file.
13692 * macros/Makefile (install.nobin): Install tmac.pic.
13694 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
13696 * troff/env.c (hyphen_word): Correct the test for whether the
13697 token is a hyphen. Reset npos to 0.
13699 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
13701 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
13703 * macros/tmac.s (ds*common-end): Call par*reset.
13705 (par@reset-indent): Deleted.
13707 * macros/tmac.s (@IP): Divert the label.
13709 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
13711 * xditview/draw.c (setGC): Use a line width of .1m rather than
13712 .04m by default; round rather than truncate value.
13714 * tbl/table.c (class empty_entry): New class.
13715 (empty_entry::empty_entry, empty_entry::line_type): New functions.
13716 (table::add_entry): Represent empty entries by objects of type
13718 (table_entry::line_type): Return -1.
13719 (table::determine_row_type): Ignore entries with line_type 0.
13720 Treat type -1 as non-lines.
13722 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
13724 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
13725 macros/tmac.s: Rename \(-d to \(Sd.
13727 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
13729 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
13730 * xditview/libXdvi/DviChar.c: Likewise.
13731 * dvi/devdvi/texsy.map: Add `<<', `>>'.
13733 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
13735 * troff/div.c (top_level_diversion::begin_page): Call
13736 init_output() if the_output is 0.
13738 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
13740 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
13742 (get_copy): Turn \E into ESCAPE_E.
13743 (token::process, asciify): Handle ESCAPE_E.
13745 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
13747 (DS): Implement `.DS R'.
13749 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
13751 * macros/tmac.s (FS): New macro.
13753 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
13755 * macros/tmac.s (cov*tl-init): Remove after first execution
13756 instead of aliasing to @nop. Call top of page macro explicitly
13757 instead of setting trap; call @init first. Set pg@top as top of
13759 (cov*auto-init): Deleted. Set cov*tl-init instead of
13760 cov*auto-init as top of page trap.
13761 (TL, LP): Do a break instead of calling cov*tl-init.
13762 (cov*print): With RP format but no TL, alias FS and FE to @FS and
13763 @FE; in this case also give a warning and always start another
13764 page. No need to set pg@top here.
13765 (cov*tl-init): Rename to cov*first-page-init.
13767 * macros/tmac.s (RP): Do `.pn 0'.
13768 (cov*tl-init): With RP format don't do `.pn 0'.
13770 * macros/tmac.s (pg@cs-top): Set no space mode.
13772 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
13773 (cov*ab-init): Alias TL, AU and AI to these.
13775 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
13777 * macros/tmac.s (@EQ): Move the space before the equation into @EN
13778 (@EN): Do nothing unless \n[dl] is > 0.
13780 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
13782 * pic/object.c (ellipse_object::radius): New function.
13784 * VERSION: Change version to 0.7.
13786 * tbl/table.c (block_entry::do_divert): Declare return type as
13788 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
13790 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
13792 * troff/column.c: New file.
13793 * troff/Makefile: Corresponding changes.
13795 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
13798 * troff/div.c (top_level_diversion::space): If the space causes
13799 the first-page transition and springs a trap, truncate the space
13802 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
13804 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
13807 * pic/troff.c (troff_output::line_thickness,
13808 troff_output::set_fill): Do a horizontal motion to compensate for
13809 the width of the \D escape sequence.
13811 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
13813 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
13816 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
13819 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
13820 Supply empty definition.
13821 (text_entry::simple_print, simple_text_entry::simple_print):
13822 Delete declarations.
13823 (table::add_entry): Represent empty entries by objects of type
13826 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
13828 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
13830 * tbl/table.c (left_text_entry::add_tab): New function.
13832 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
13833 initialize like LP.
13835 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
13837 * troff/env.c (environment::start_field): Give an error message if
13838 there is no next tab.
13840 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
13842 * troff/env.c (hyphenate): Skip initial elements with zero
13845 * macros/tmac.s (par@init): Keep VS in points rather than units.
13847 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
13849 * pic/main.c (main): Implement `-c' option.
13850 * pic/output.h: Declare make_tpic_output().
13851 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
13853 (tpic_output): New class.
13854 (tpic_output::tpic_output, tpic_output::set_pen_size,
13855 tpic_output::command, make_tpic_output): New functions.
13857 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
13859 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
13860 if they're not already defined.
13861 * tbl/table.c (init_output): Don't test \n(.g.
13863 * troff/input.c (do_if_request): Delete `g' condition. Recognize
13864 `d', `r' and `c' conditions even in compatibility mode.
13866 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
13868 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
13871 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
13873 * troff/env.h (environment::prev_line_interrupted): New member.
13874 (environment::get_prev_line_interrupted): New function.
13875 * troff/env.c (environment::newline): Set prev_line_interrupted.
13876 (environment::environment(const environment *),
13877 environment::environment(symbol)): Initialize
13878 prev_line_interrupted.
13879 * troff/input.c (process_input_stack): Don't give special
13880 treatment to space and newline at the beginning of the line if the
13881 previous line was interrupted.
13883 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
13885 * eqn/eqn.y: Disallow PRIME by itself.
13886 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
13888 (def_table): Remove definition of '. Define prime to be `.
13890 * eqn/eqn.y: Split off part of rule `script' into a new rule
13893 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
13895 * macros/tmac.s ({, }): New string aliases.
13897 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
13899 * README-0.7: New file.
13901 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
13903 * macros/tmac.s: New file.
13904 * man/groff_ms.man: New file.
13905 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
13906 * Makefile.bd: Similarily.
13907 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
13908 definition of TMAC_S.
13909 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
13910 * macros/TODO: New file.
13912 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
13914 * troff/env.c (right_justify): New function.
13915 (init_env_requests): Bind this to request "rj".
13916 (center_lines): Set right_justify_lines to 0. If we get a bad
13917 integer, center 1 line.
13918 (environment::environment(symbol), environment::environment(const
13919 environment *)): Initialize right_justify_lines.
13920 (environment::get_right_justify_lines): New function.
13921 (init_env_requests): Bind this to number_register ".rj".
13923 * troff/env.c (environment::choose_breakpoint): Implement
13924 hyphenation_margin and hyphenation_space.
13925 (environment::get_hyphenation_space,
13926 environment::get_hyphenation_margin): New functions.
13927 (init_env_requests): Bind these to .hys and .hym.
13928 (hyphenation_space_request, hyphenation_margin_request): New
13930 (init_env_requests): Bind these to hys and hym.
13931 (environment::environment(symbol), environment::environment(const
13932 environment *)): Initialize hyphenation_margin and
13934 * troff/env.h: Corresponding changes to class environment.
13936 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
13938 * troff/div.c (blank_line): Always do a break.
13940 * eqn/box.c (do_text): Turn off escapes while appending text to
13943 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
13945 * troff/input.c (while_break_request, while_continue_request): New
13947 (init_input_requests): Bind these to "break" and "continue".
13948 (while_depth, while_break_flag): New variables.
13949 (while_request): Update while_depth. Break out of loop if
13950 while_break_flag is set.
13952 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
13954 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
13957 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
13959 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
13961 * stringify: New file.
13962 * Makefile (groff.o): Use stringify.
13964 * xditview/tmac.X: Remove definition of \(rn.
13965 * xditview/libXdvi/DviChar.c: Remove radicalex from
13968 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
13970 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
13971 (alphabetic_block_entry::alphabetic_block_entry,
13972 alphabetic_block_entry::divert, alphabetic_block_entry::print):
13974 (block_entry::divert): Split off body into ...
13975 (block_entry::do_divert): If the block is alphabetic, subtract 2n
13976 from the line length; also update the span width to dl+2n, and the
13977 alphabetic span width to dl.
13979 * driver/input.c (do_file): While reading argument to D command,
13980 when expanding buffer, multiply szp by sizeof(int) rather than 2
13981 in the argument to memcpy.
13983 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
13984 width of alphabetic columns.
13986 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
13988 * troff/node.c (lookup_family): Supply second argument to lookup.
13990 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
13991 search, return immediately if v is 0.
13993 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
13994 (troff_output::start_picture): Set this reg.
13995 (troff_output::end_picture): Remove this reg
13996 * eqn/box.c (box::extra_space): Don't produce `\x's if
13997 EQN_NO_EXTRA_SPACE_REG is defined.
13999 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14000 * eqn/text.c (split_text): Map ' to \(fm when it's the first
14003 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
14005 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14008 * troff/div.c (top_level_diversion::top_level_diversion):
14009 Initialize page_number to 0.
14011 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
14013 * groff/troff (environment::environment(const environment *)):
14014 Initialize name to e->name, rather than "anonymous".
14016 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
14018 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14019 requested_page. Split middle part into ...
14020 (FindPage): New function.
14021 (SetValues): If we don't yet know the last page, and the requested
14022 page is greater than the current page, call FindPage.
14023 Update the font_map_string before doing this.
14025 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14026 Translate \(lh and \(rh into left and right double arrows.
14028 * troff/node.c (class hyphen_inhibitor_node): New class.
14029 (hyphen_inhibitor_node::hyphen_inhibitor_node,
14030 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14031 hyphen_inhibitor_node::type,
14032 hyphen_inhibitor_node::get_hyphenation_type): New functions.
14033 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14034 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14037 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
14039 * troff/node.h (dummy_node::get_hyphenation_type,
14040 transparent_dummy_node::get_hyphenation_type): Declare them.
14041 * troff/node.c: (dummy_node::get_hyphenation_type,
14042 transparent_dummy_node::get_hyphenation_type): New functions.
14044 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
14046 * xditview/libXdvi/draw.c: If M_PI not defined after including
14047 math.h, then define it.
14049 * xditview/Makefile: Add definition of AR. Pass it to the submake
14051 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14053 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
14055 * troff/dictionary.h (object_dictionary::alias): Declare return
14057 * troff/dictionary.c (object_dictionary::alias): Return non-zero
14058 if the old name was defined.
14059 * troff/input.c (alias_macro): Give a warning if the old name was
14061 * troff/reg.c (alias_reg): Likewise.
14063 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
14065 * troff/input.c (token::next): Delete implementation of \R.
14067 * macros/Makefile: Strip comments from tmac.e while installing it.
14069 * troff/input.c: New variable `nroff_mode'.
14070 (troff_request, nroff_request): New functions.
14071 (init_input_requests): Bind `troff' and `nroff' to troff_request
14073 (do_if_request): Compute results of t and n conditions from
14076 * text/text.c (split_text): Fix typo in >=.
14078 * eqn/lex.c: Add definition of `==' to def_table.
14080 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
14082 * pic/tex.c (tex_output::start_picture): Change the definitions of
14083 \graph and \graphtemp so that they work properly with Plain TeX.
14085 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14086 argument to `ar' is not less than the first.
14088 * pic/pic.y: Allow a comma between elements of the variable list
14089 in the argument to `reset'.
14091 * pic/object.c (arc_object::arc_object): Fix computation of
14094 * eqn/main.c (main): Add exit(0).
14096 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
14098 * troff/div.c (begin_page): Test no_space_mode after doing the
14099 break, but still push the page ejector cookie before doing the
14100 break. Also set the next page number after doing the break.
14102 * xditview/xditview.c (NewFile): Don't set the title and icon name
14103 if this is the first file and its name is `-'.
14104 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
14105 the X75 and X100 devices.
14106 (main): If a device has the XT_OPTION flag set and there's exactly
14107 one file argument, pass the driver -xrm and -title options to set
14108 the icon name and window title to the name of the file.
14110 * troff/env.c (environment_switch): If there was an argument but
14111 it wasn't a valid number or name, then pop an environment but
14112 don't give an error message on underflow.
14114 * troff/number.c (start_number): Correct spelling in error message.
14116 * troff/input.c (token::delimiter): Don't print an error message
14119 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14120 ParseDrawFunction if dw->display_enable is true.
14122 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
14124 * pic/pic.y: Parse text positioning like normal attributes, so as
14125 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
14126 positioning attribute.
14128 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
14130 * tbl/main.c (process_data): When in state START while reading a
14131 text block, don't change to state MIDDLE if c is a newline.
14133 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
14135 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14136 so as to avoid shadowing parameter.
14138 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
14140 * tbl/table.c (trim_space): Deleted.
14141 (table::add_entry): Don't call trim_space.
14143 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
14145 * VERSION: Change version to 0.6.
14147 * troff/number.c (parse_expr): Make == work.
14149 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
14151 * man/grog.man: New file.
14152 * man/Makefile: Add grog.n to MAN1PAGES.
14153 * etc/grog.sh: New file.
14154 * etc/Makefile: Install grog.sh as grog.
14156 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
14158 * troff/input.c (token::next): Implement \E.
14160 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
14162 * xditview/tmac.X: Change font translations to match tmac.ps.
14164 * troff/input.c (non_empty_name_warning): Don't give a warning if
14165 `\{' terminates the name.
14167 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
14169 * ps/devps/symbol.diff: New file.
14170 * ps/devps/FontMakefile: Mention symbol.diff.
14172 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
14174 * troff/node.c (font_position): Use get_long_name to read the
14177 * troff/env.c (environment_switch): If we get a number that's < 0
14178 or >= NENVIRONMENTS, treat it like a name.
14179 Change NENVIRONMENTS to 10.
14181 * troff/groff.h: Remove definition of FONTS_MAX.
14182 * troff/node.h (class font_family): Make map a pointer instead of
14183 an array. Add a map_size member. Make it a class. Make nm const
14184 and public. Make invalidate_fontno a friend.
14185 * troff/node.c: Define font_table_size. Make font_info a pointer
14186 rather than an array.
14187 (class troff_output_file): Allocate font_position dynamically. Add
14188 nfont_positions member.
14189 (troff_output_file::set_font): Grow font_position if necessary.
14190 (troff_output_file::~troff_output_file): Delete font_position.
14191 (troff_output_file::troff_output_file): Allocate font_position.
14192 (grow_font_table): New function.
14193 (troff_output_file::really_begin_page,
14194 troff_output_file:really_copy_page): Use nfont_positions rather
14196 (mount_font_no_translate, mount_style): Call grow_font_table if
14198 (font_family::font_family): Allocate map.
14199 (font_family::make_definite): Grow map if necessary. Use
14200 font_table_size instead of FONTS_MAX.
14201 (font_family::~font_family): New function.
14202 (invalidate_fontno): Use font_family::map_size.
14203 (get_fontno, env_space_width, env_half_narrow_space_width,
14204 env_narrow_space_width, symbol_fotno, is_good_fontno,
14205 get_bold_fontno, make_glyph_node): Use font_table_size rather than
14207 (next_available_font_position): Never return 0.
14209 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
14211 * ps/tmac.ps: Add font translations for compatibility with dpost.
14213 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
14215 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14216 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14217 Move definitions baseline_sep, shift_down, column_sep,
14218 matrix_side_sep into...
14219 * eqn/box.c: Add them to param_table.
14220 * eqn/pbox.h: Add declarations to pbox.h.
14222 * troff/input.c (set_string): Cast value to unsigned char *.
14224 * troff/token.h (process_input_stack): Declare it static before
14225 declaring it a friend.
14227 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
14229 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14231 * dvi/devdvi/EX: Regenerate.
14233 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14236 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
14238 * eqn/lex.c: In defaults_table, make definition of `dot' call
14239 `dot_def'. Don't explicitly make it roman. Similarily for other
14242 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14244 (for_input::get, for_input::peek): Use this.
14245 (do_for): Add by_is_multiplicative argument.
14246 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14247 Change semantic value of optional_by to be a double plus a flag
14248 saying whethet the by clause is multiplicative.
14250 * eqn/lex.c (get_delimited_text): Remember location of start of
14251 definition. Improve error handling when EOF is encountered.
14253 * lib/font.h: Rename handle_x_command to
14254 handle_unknown_font_command.
14255 * lib/font.c (font::load): Call handle_unknown_font_command for
14256 any unknown command in the font description file. Don't call
14257 handle_x_command. Include the name of the command in the argv.
14258 Improve message for unknown command after kernpairs or charset
14260 * ps/ps.c (ps_font::handle_x_command): Rename to
14261 handle_unknown_font_command. Remove message about `x download'
14262 command. Give error message for wrong number of arguments.
14263 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14264 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14265 handle_unknown_font_command. Give an error message for wrong
14266 number of arguments. Rename design_size to designsize.
14267 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14268 checksum', `designsize' instead of `design_size'.
14270 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
14272 * eqn/*.[chy]: Change underaccent to uaccent.
14274 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
14275 give it the same precedence as ACCENT.
14276 * eqn/other.c (make_underaccent_box): New function.
14277 * eqn/box.h: Declare it.
14278 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14281 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
14283 * pic/pic.y (reset_all): New function. Called in rule for RESET.
14284 (parse_init): Call reset_all.
14285 (define_variable): When defining scale reset only those
14286 pre-defined variables that are scaled.
14287 (defaults_table): Add `scale' as non-scaled value.
14289 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14290 together with the text; allow any number of positioning words;
14291 allow center as a positioning word.
14293 * pic/object.c (output::compute_scale): Get picture maximum height
14294 and width from variables called maxpswid and maxpsht.
14295 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14297 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
14299 * pic/object.c (object_spec::make_text): Multiply textht by number
14302 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14304 (do_sprintf): New function.
14305 (pic.gperf): Add sprintf token.
14306 (text, sprintf): New rules.
14308 * pic/pic.y: `rand()' with no arguments returns a random number
14309 in the range [0,1).
14311 * pic/pic.y: Allow a bare expression to be an attribute: change
14312 precedences to support this. Change optional_ordinal rule to
14313 optional_ordinal_last to avoid reduce/reduce conflict.
14314 * pic/object.c (object_spec::object_spec): Initialize direction.
14316 * pic/pic.y: Implement ^ operator meaning exponentiation.
14318 * troff/node.h: Add default argument to mount_font.
14319 * troff/node.c (font_position): Read an optional third argument
14320 giving the external_name.
14321 (mount_font): Add optional argument giving the external_name.
14322 (mount_font_not_translate): Have additional argument giving
14323 external name. Use this name to load the font. Pass both names
14324 to font_info::font_info.
14325 (font_info::font_info): Have additional argument giving
14327 (class tfont): New member external_name.
14328 (font_info::get_tfont): Use external name to construct tfont_spec.
14330 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
14332 * eqn/lex.c (init_table): Add argument giving device. Define
14333 name of device to be "1".
14334 (do_ifdef): Counts as true if the argument has been defined with
14336 * eqn/main.c (main): Call init_table with device argument. Make
14337 device local to main.
14338 * eqn/eqn.h: Change declaration of init_table. Remove declaration
14341 * pic/lex.c (get_delimited): Allow text to be delimited by
14342 matching {}s. Don't recognize ending delimiter within a string.
14344 * troff/input.c (get_delim_name): New function.
14345 (token::next): Implement \C.
14347 * lib/font.c (font::load): Grok ---. Add an alias for each
14348 character based on its code.
14349 (font::get_code_width): Deleted.
14350 * lib/font.h (class font): Declare font::number_to_index().
14351 Remove declaration of font::get_code_width.
14352 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14353 to indices of named characters.
14354 (font::number_to_index): New function.
14355 * troff/input.c (font::number_to_index): New function.
14356 (get_charinfo_by_number, charinfo::get_number,
14357 charinfo::set_number): New functions.
14358 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14359 (token::process, token::description, token::get_char,
14360 token::add_to_node_list, token::operator==): Handle
14361 TOKEN_NUMBERED_CHAR.
14362 * troff/charinfo.h: Declare get_charinfo_by_number,
14363 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
14365 (charinfo::numbered): New function.
14366 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14367 * troff/env.h (class environment): Remove declaration of ...
14368 * troff/env.c (environment::make_numbered_char_node): Deleted.
14369 * troff/node.c (make_numbered_node): Deleted.
14370 (class numbered_glyph_node): Remove.
14371 (troff_output_file::put_char_width, troff_output_file::put_char):
14372 Handle numbered chars.
14373 (troff_output_file::numbered_char): Removed.
14374 (tfont::get_code_width): Removed.
14375 (make_glyph_node): Don't search special fonts for numbered
14377 * troff/node.h: Remove declaration of make_numbered_node.
14378 * driver/input.c (do_file): Handle N command.
14379 * driver/printer.h: Add declaration of ...
14380 * driver/printer.c (printer::set_numbered_char): New function.
14381 * dvi/tfmtodit.c (main): Generate unnamed entries.
14382 * ps/devps/afmtodit: Likewise.
14383 * xditview/xtotroff.c (MapFont): Likewise.
14384 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14386 * tbl/main.c (process_format): If multiple widths are specified
14387 for a column but all the widths are the same, don't give an error
14390 * tbl/table.c (table::do_row): If the current row is all lines and
14391 the stuff doesn't contains a line, mark the top of the row after
14392 printing stuff before the row. If the current row is not all
14393 lines and the stuff doesn't contain a line, don't unnecessarily
14394 mark the top of the row before printing the stuff.
14396 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
14398 * troff/groff.h: Remove MAX_PATH.
14399 * troff/input.c (open_file): Dynamically allocate space for the
14401 (open_mac_file, process_macro_file): Corresponding changes.
14403 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
14405 * troff/node.h (class output_file): Make copy_file pure. Add
14406 vspace method ifdef COLUMN. Add is_printing method.
14407 * troff/node.c: Add class printing_reg. Add class
14408 real_output_file. Derive other output_file classes from
14409 real_output_file; in these classes rename begin_page to
14410 really_begin_page, print_line to really_print_line, copy_file to
14411 really_copy_file, transparent_char to really_transparent_char.
14412 Move output_file::flush to real_output_file. Add printing member
14413 to class output_file.
14414 * troff/div.h: Remove printing member from top_level_diversion.
14415 Add vspace member function to class diversion ifdef COLUMN. Add
14416 some declarations ifdef COLUMN.
14417 * troff/div.c (top_level_diversion::copy_file,
14418 top_level_diversion::transparent_output,
14419 top_level_diversion::output): Don't test printing member before
14421 * troff/input.c: Handle initial variable_space_request ifdef
14423 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14424 but comment it out.
14426 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
14428 * troff/div.c (diversion::need): Make any space forced. If we
14429 sprung a trap, set truncated_space to minus the distance to the
14430 trap and set needed_space to the amount that was needed.
14431 (top_level_diversion::space): A forced space turns no_space_mode
14433 (class constant_vunits_reg): New class.
14434 (init_div_requests): Implement number registers .trunc and .ne
14435 using constant_vunits_reg.
14436 (class truncated_space_reg): Deleted.
14438 * troff/div.h: Don't have a no_space_mode member in diversion.
14439 Instead have it in top_level_diversion.
14440 * troff/div.c (diversion::diversion): Don't initialize
14442 (top_level_diversion::top_level_diversion): Initialize
14444 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14445 (macro_diversion::output): Don't clear no_space_mode.
14447 * troff/input.c (diverted_space_node::reread): Don't call
14448 environment::do_break. In fill mode, act like a blank line.
14449 (diverted_copy_file_node::reread): Don't call
14450 environment::do_break.
14452 * troff/div.c (blank_line): New function.
14453 * troff/div.h: Declare it.
14454 * troff/input.c (process_input_stack): Call it.
14456 * troff/div.c (truncated_space_reg::get_string): New function.
14457 (init_div_requests): Bind to .trunc.
14458 (space_request, top_level_diversion::space,
14459 top_level_diversion::output, macro_diversion::space,
14460 macro_diversion::output): Update truncated_space.
14461 (macro_diversion::output): Redo calculations when trap sprung.
14462 (macro_diversion::output, macro_diversion::space): No need for
14465 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14466 after truncating post line spacing.
14468 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
14470 * ps/devps/prologue (MF, SF): Make them work even if setfont is
14471 defined as a procedure rather than as an operator.
14473 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
14475 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14477 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
14479 * troff/div.c (top_level_diversion::output): Merge
14480 output_file::print_line and output_file::end_of_line member
14482 * troff/div.h (class output_file):
14483 * troff/node.c (troff_output_file::print_line,
14484 troff_output_file::end_of_line, output_file::end_of_line,
14485 ascii_output_file::print_line, suppress_output_file::print_line):
14486 Corresponding changes.
14488 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
14490 * troff/input.c (token::next): Don't give a warning for `\.'.
14492 * troff/env.c (environment::get_center_lines): New function.
14493 (init_env_requests): Bind number register .ce to it.
14494 * troff/env.h: Declare it.
14495 * tbl/table.c (table::init_output): Define reset macro to restore
14496 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
14498 (table::print): If center option not given, then imply center
14499 option if SAVED_CENTER_REG > 0.
14501 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
14503 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14504 Troff.ps from DOWNLOAD.
14506 * troff/Makefile: Change comment in DEFINES to avoid confusing
14509 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14510 code. Don't try to catch errors with stopped.
14511 (check_line_lengths): New function.
14512 * ps/devps/prologue (EXEC): Deleted.
14513 (EBEGIN, EEND): New procedures.
14515 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
14517 * troff/input.c: Include request.h before node.h.
14518 * troff/node.c: Likewise.
14519 * troff/env.c: Likewise.
14520 * troff/div.c: Likewise.
14521 * troff/node.h (class special_node): Store argument as a macro
14522 rather than a char *.
14523 * troff/node.c (special_node::special_node, special_node::copy):
14525 (special_node::~special_node): Deleted.
14526 (special_node::tprint): Deleted.
14527 (special_node::tprint_start, special_node::tprint_end,
14528 special_node::tprint_char): New functions.
14529 (troff_output_file::special): Deleted.
14530 (troff_output_file::start_special, troff_output_file::end_special,
14531 troff_output_file::special_char): New functions.
14532 * troff/input.c (special_node::tprint): New function.
14533 (do_special): Use macro not char *.
14534 (do_transparent_macro): Deleted.
14535 (token::next): Don't call do_transparent_macro.
14537 * troff/input.c (token::next): Add 'Y' case.
14538 (do_transparent_macro): New function.
14539 * troff/node.c (troff_output_file::special): Handle newlines with
14540 argument using new continuation convention.
14541 * driver/input.c (get_string): Cope with continuation convention.
14542 (do_file): Don't call skip_line after calling get_string(1).
14543 * ps/ps.c (ps_printer::special, ps_printer::do_import,
14544 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
14546 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
14549 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
14551 * troff/input.c (asciify): By default, illegal input characters
14552 should return empty string.
14554 * troff/input.c (copy_file): Handle first page transition like title.
14555 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
14557 * troff/input.c (token::next): Improve error message for EOF after
14559 (input_char_description): New function.
14560 (get_char_for_escape_name): Use input_char_description.
14561 (token::next): Warn about unrecognized escape sequences.
14562 (warning_table): Add WARN_ESCAPE.
14563 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
14566 * troff/token.h: Remove declaration of process_input_stack.
14568 * troff/input.c: Remove declaration of init_hyphen_requests.
14569 * troff/request.h: Correct spelling in declaration of same.
14571 * troff/input.c (token::next): Check whether escape_char is 0.
14573 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
14575 * groff.c (main, usage, help): Implement -P and -L options.
14576 * groff.sh: Likewise.
14578 * troff/input.c (token::next): Use some gotos to avoid code
14581 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
14582 Avoid calling symbol::symbol if name empty.
14584 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
14586 * troff/input.c (init_input_requests): Make \n(.x return the major
14587 version number and \n(.y return the minor version number.
14588 * troff/Makefile: Construct file majorminor.c defining
14589 major_version and minor_version automatically from ../VERSION.
14591 * troff/node.c (class glyph_node): Make operator new and operator
14593 (class ligature_node): Similarily.
14595 * troff/input.c (operator==(const macro &, const macro &)): New
14597 (non_interpreted_node::same): Use this.
14598 (string_iterator::string_iterator): Make macro& argument const.
14600 * troff/input.c (input_iterator::get): New function. Don't make
14601 asciify_macro or class non_interpreted_node friends of class
14603 (non_interpreted_node::interpret): Use input_iterator::get.
14604 (asciify_macro): Likewise.
14606 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
14607 ~non_interpreted_node): Deleted.
14608 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
14611 * troff/symbol.h: Make all symbol member functions const.
14613 * lib/strtol.c: New file.
14614 * lib/Makefile: Add strtol.c.
14615 * Makefile: Define STRTOL as strtol.o to include strtol in
14618 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
14620 * pic/troff.c (troff_output::simple_circle): Divide by scale.
14622 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
14624 * troff/input.c (do_special): Use input_level.
14626 * troff/token.h (TOKEN_BACKSPACE): New token.
14627 (token::backspace): New function.
14628 * troff/input.c (token::description, token::next, token::process):
14629 Grok TOKEN_BACKSPACE.
14630 (do_special): Turn TOKEN_BACKSPACE back into \b.
14632 * troff/token.h (token::leader): New function.
14633 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
14635 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
14637 * troff/input.c (do_special): Use token::description in error
14640 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
14642 * troff/input.c (decode_args): Combine quoted and
14643 quote_input_level variables. Make it a for (;;) loop.
14645 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
14647 * troff/input.c (read_long_escape_name): The test for whether to
14648 expand buffer was off by 1.
14649 (read_string): Similarily.
14651 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
14653 * troff/input.c: Use `const int' rather than `static const int'.
14655 * troff/div.h (diversion::copy_file): Declare as pure virtual.
14656 (macro_diversion::copy_file): New function.
14657 * troff/node.h: New class diverted_copy_file_node.
14658 * troff/node.c: Implement it.
14659 * troff/input.c (copy_file): Use diversion::copy_file. Handle
14660 first page transition by pushing a diverted_copy_file_node.
14661 * troff/input.c (token::next, process_input_stack): Don't handle
14664 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
14666 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
14667 whether space widths need adjusting.
14669 * troff/charinfo.h: Generalize translated_to_space to
14670 special_translation so as to allow translation to \&.
14671 * troff/input.c (translate): Allow translation to \&.
14672 (charinfo::*): Corresponding changes.
14673 * troff/node.c (make_node, node::add_char): Corresponding changes.
14674 * troff/node.h (dummy_node::dummy_node): Allow optional first
14677 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
14678 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
14680 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
14681 TOKEN_REQUEST with an argument of TITLE_REQUEST.
14682 (token::process): Grok that.
14683 * troff/input.c (copy_file): Handle first page transition like
14684 title by pushing a COPY_FILE_REQUEST cookie.
14685 (token::next, process_input_stack): Grok that.
14686 * troff/node.h (output_file::copy_file): Add x and y arguments.
14688 * troff/div.c (top_level_diversion::copy_file): Supply them.
14689 * troff/node.c (troff_output_file::copy_file): Add x and y
14690 arguments; moveto specified position. Invalidate font_position
14691 array after copying file.
14692 (output_file::copy_file): New function.
14693 (suppressed_output_file::copy_file, ascii_output::copy_file):
14695 * troff/input.c (transparent_file): New function.
14696 (init_input_requests): Bind to "trf".
14697 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
14698 (process_input_stack): Likewise.
14700 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
14702 * troff/node.c (init_node_requests): New number registers .kern
14703 pointing to global_kern_mode, and .lg pointing to
14704 global_ligature_mode.
14706 * troff/node.c (ligature): Don't change it if we get a bad
14709 * troff/input.c (do_define_string): Don't strip tabs.
14711 * troff/input.c (asciify_macro): Make the string_iterator auto.
14713 * troff/node.c (init_font_requests): Rename to...
14714 (init_node_requests):
14715 * troff/node.h: Change declaration.
14716 * troff/input.c (main): Change call.
14718 * troff/input.c (node::reread, diverted_space_node::reread): New
14720 (process_input_stack): Call reread rather than
14721 get_diverted_space_node.
14722 * troff/node.c (node::get_diverted_space_node,
14723 diverted_space_node::get_diverted_space_node): Removed.
14724 * troff/node.h: Declare reread methods instead of
14725 get_diverted_space_node methods. Make `n' member private.
14726 * troff/input.c: (token::diverted_space): Removed.
14727 * troff/token.h: Removed declaration.
14730 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
14732 * eqn/script.c (script_box::compute_metrics): Don't let
14733 SUP_RAISE_FORMAT become negative.
14735 * tbl/table.c (table::do_row): Entries that don't end in the
14736 this row shouldn't make the row non-blank.
14738 * tbl/table.c (table::make_columns_equal): Only set the width of
14739 columns which are marked as equal.
14741 * tbl/main.c (process_data): Before issuing excess data error,
14742 if last character was a newline unget it; then get it again after
14743 the error. Also include the contents of the entry in the message.
14745 * groff.c: New file.
14746 * Makefile: Build groff from groff.c. Make it possible to use
14747 either groff.sh or groff.c as groff.
14748 * Makefile.bd: Similarily.
14750 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
14752 * groff.sh: Don't delay expansion of $@ in assignment to files.
14753 Remove occurrences of \".
14755 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
14757 * all Makefiles: Simplify and rearrange.
14759 * Makefile: Handle fmod like malloc.
14760 * lib/Makefile: Similarily.
14761 * lib/fmod.c: Remove #ifdef NEED_FMOD.
14763 * Makefile: Rename OPTIMISE to OPTIMIZE.
14765 * groff.sh: Remove assignment to PATH.
14766 * Makefile: Remove SHPATH variable.
14767 * Makefile.bd: Similarily.
14769 * groff.sh: Add -V option to print the pipeline instead of
14772 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
14774 * lib/font.c: Split off file searching into ...
14775 * lib/fontfile.c: New file.
14777 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
14779 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
14781 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
14782 Also change misleading comment.
14783 (table::do_vspan): Change similarily misleading comment.
14784 * tbl/main.c (process_data): A format row with an explicit `s'
14785 uses up a data line, even if all the other columns are `_' or `='.
14787 * troff/input.c (token::description): Fix description of
14788 TOKEN_DUMMY and TOKEN_EMPTY.
14790 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
14792 * groff.sh: Fix description of -Z in help message.
14794 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
14796 * pic/object.c (object_spec::make_object): Allow negative and zero
14798 * pic/pic.y: Give linethick default value of -1.0.
14799 * pic/troff.c (troff_output::troff_output): Initialize
14800 last_line_thickness to BAD_THICKNESS.
14801 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
14802 (troff_output::line_thickness): Canonicalize negative thicknesses
14803 to RELATIVE_THICKNESS.
14804 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
14805 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
14807 (tex_output::start_picture): Set pen_size to -2.0.
14809 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
14810 0, then use 0 linewidth.
14811 (ps_printer::ps_printer): Initialize line_thickness to -1.
14813 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
14815 * ps/devps/symbolchars: Remove `or'.
14816 * ps/tmac.ps: Implement \(or with .char.
14818 * ps/devps/symbolchars: Move most characters into textmap.
14819 * ps/devps/textmap: Add names for troff bracket characters. Remove
14822 * ps/devps/TSymbol.ps: Removed.
14823 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
14824 * ps/tmac.ps: Do with .char what TSymbol did.
14825 * ps/devps/download: Remove TSymbol.
14827 * ps/devps/T: Removed.
14828 * ps/devps/Troff.ps: Removed.
14829 * ps/devps/Troff.afm: Removed.
14830 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
14831 * ps/devps/download: Remove Troff.
14832 * ps/devps/FontMakefile: Remove T target.
14833 * ps/devps/DESC-A4: Remove T from font list.
14834 * ps/devps/DESC-letter: Likewise.
14836 * troff/input.c (macro_to_node): Rename to ...
14837 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
14838 character's definition while processing it.
14839 * troff/node.c (node::add_char, make_node): Change calls to
14840 macro_to_node accordingly.
14842 * troff/input.c (token::next): Translate \_ to \(ul.
14844 * tty/devascii/R.proto: Add `|'.
14845 * tty/devlatin1/R.proto: Likewise.
14847 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
14849 * man: Put the version number in all the man pages.
14851 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
14853 * Makefile.bd: New file.
14854 * README.bd: New file.
14856 * VERSION: New file.
14857 * lib/version.c: Removed.
14858 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
14861 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
14862 environment variable.
14864 * all Makefiles: Split install target into install.bin for
14865 binaries, and install.nobin for everything else.
14866 * Makefile: Add bindist target.
14868 * man/afmtodit.man: New file.
14869 * man/Makefile: Add afmtodit.n to MAN1PAGES.
14870 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
14872 * ps/Makefile: Pass BINDIR to make install in devps.
14874 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
14875 the space character.
14877 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
14879 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
14881 * ps/ps.c: Redo font downloading.
14882 * ps/devps/download: New file.
14883 * ps/devps/Makefile: Add download to DEVICEFILES.
14884 * ps/devps/afmtodit: Remove -d option.
14885 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
14886 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
14887 * ps/devps/zapfdr.ps: Likewise.
14888 * ps/devps/TSymbol.ps: Likewise.
14890 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
14892 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
14894 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
14896 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
14897 then strip the first line if it starts with %.
14898 * Makefile: Add a comment about this.
14900 * man/tfmtodit.man: New file.
14901 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
14902 * dvi/Makefile: Install tfmtodit in BINDIR.
14904 * dvi/tfmtodit.c (usage): Mention -v option.
14906 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
14908 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
14909 * troff/node.c (troff_output_file::transparent_char): Don't call
14912 * eqn: Add check_tabs method to most box classes.
14913 * eqn/box.c (box::top_level): Call check_tabs.
14915 * eqn/script.c (script_box::output): Use \Z.
14916 * eqn/limit.c (limit_box::output): Use \Z.
14918 * eqn/box.c (box::top_level): Use itoa.
14920 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
14922 * dvi/tmac.dvi: Add font translations for CR, C, TT.
14923 * dvi/devdvi/Makefile: Don't make links to CW.
14925 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
14927 * xditview/tmac.X: Likewise.
14929 * troff/node.c: Add font translation feature.
14930 (get_font_translation): New function.
14931 (symbol_fontno): Translate the font name.
14932 (mount_font_no_translate): Rename to mount_font to this.
14933 (mount_font): New function.
14934 (font_family::make_definite): Call mount_font_no_translate instead
14936 (mount_style): Translate the font name.
14937 (font_translate): New function.
14938 (init_font_requests): Bind "ftr" to font_translate.
14940 * ps/devps/prologue (SN): New procedure that rounds a position to
14941 the nearest (pixel + (.25,.25)).
14942 (DL): Use SN to round endpoints.
14944 * lib/version.c: Changed version to 0.5.
14946 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
14948 * Makefile: Move definition of PAGE to the very beginning, so that
14949 people are less likely to miss it.
14951 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
14953 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
14955 * troff/env.c (environment::choose_breakpoint): Make `can't find
14956 breakpoint' error a warning of type WARN_BREAK. Change message to
14957 `can't break line'.
14958 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
14960 * troff/input.c: Add WARN_BREAK to warning_table. Include
14961 WARN_BREAK in DEFAULT_WARNING_MASK.
14963 * tty/tmac.tty: Add definition of \(+-.
14965 * groff.sh: Remove `--' option to set command.
14967 * dvi/devdvi/texsy.map: Remove duplicate md entry.
14969 * ps/devps/eqnchar: Better definition of cdot using md.
14970 * dvi/devdvi/eqnchar: Likewise.
14971 * xditview/devX100/eqnchar: Likewise.
14972 * xditview/devX75/eqnchar: Likewise.
14973 * eqn/lex.c: Add definition of cdot.
14975 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
14977 * troff/input.c (get_optional_char): New function.
14978 * troff/input.c (set_page_character): Use get_optional_char(),
14979 rather than has_arg() and tok.get_char(1).
14980 * troff/env.c (tab_character, leader_character, hyphen_char,
14981 field_characters): Likewise.
14982 (margin_character): Likewise. Also always delete the
14983 margin_character_node.
14985 * troff/input.c (token::get_char): Use token::description.
14987 * troff/input.c (has_arg): Don't skip over tab and \}.
14988 * troff/number.c (start_number): Give a warning if the number
14989 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
14991 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
14993 * troff/input.c (empty_name_warning, non_empty_name_warning): New
14995 (get_name, get_long_name): Use these. Rename `warn' argument to
14998 * troff/node.c (get_fontno): Test that the symbol is not null.
15000 * troff/input.c (token::description): New function.
15001 * troff/number.c (parse_term): Use token::description in `numeric
15002 expression expected' message.
15003 * troff/groff.h: Add WARN_MISSING.
15004 * troff/number.c (start_number): New function.
15005 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15006 get_incr_number): Use start_number().
15007 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15009 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15010 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15012 * troff/input.c (token::get_char): Use WARN_MISSING.
15013 * troff/input.c (token::delimiter): Use token::description.
15014 * troff/env.c (environment_switch): Back out Aug 3 change.
15015 * troff/input.c (has_arg): Skip over \}s and tabs but give a
15017 * troff/token.h (token::tab): New function.
15018 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15019 * troff/reg.c (alter_format): Likewise.
15020 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15022 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
15024 * troff (most files): Redo warnings. Divide warnings into various
15025 categories; warning() has an additional first argument indicating
15026 the category it falls into.
15027 * troff/input.c (main): -w now takes an argument. New option -W.
15028 (enable_warning, disable_warning): New functions.
15030 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15031 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15033 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
15035 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15036 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15037 * xditview/devX75/eqnchar: Likewise.
15038 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15040 * eqn/other.c: When bar or over applies to a single character
15041 don't produce an overline_box or an underline_box. Instead produce
15042 an accent_box or an underaccent_box, with the accent a line
15043 whose width is accent_width. New classes underaccent_box,
15044 overline_char_box and underline_char_box.
15045 * eqn/box.h: Move overline_box, underline_box, accent_box class
15046 declarations into eqn/other.c. Add declarations of
15047 make_underline_box, make_overline_box, make_accent_box.
15048 * eqn/eqn.y: Call make_overline_box, make_underline_box
15049 make_accent_box instead of constructors.
15050 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15052 * eqn/other.c: Add accent_box::~accent_box.
15053 * eqn/box.h: Declare it.
15055 * groff.sh: With -Tps, use eqn -D.
15057 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15059 (underline_box::output): Similarily.
15060 (accent_box::output): Use \Z.
15062 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15065 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
15067 * troff/div.c (top_level_diversion::transparent_output(unsigned
15068 char)): Use asciify.
15069 * troff/input.c (asciify): Don't make it static.
15070 * troff/token.h (asciify): Declare it.
15072 * troff/input.c (get_name, get_long_name, token::get_char,
15073 token::delimiter): Add an extra default argument which says
15074 whether a warning should be printed.
15075 * troff: Pass a non-zero argument to one of these rather than
15076 printing a warning directly.
15078 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
15080 * troff: Consistently use symbol::is_null.
15082 * troff/dictionary.h: Move some inline functions into
15085 * troff/request.h: Move inline functions into input.c.
15086 (request_or_macro::invoke): Make it pure.
15088 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15089 * troff/input.c (init_input_requests): Use class constant_int_reg.
15090 (class compatible_reg): Deleted.
15091 * troff/div.c (init_div_requests): Use class constant_int_reg.
15092 (class last_post_line_extra_space_reg): Deleted.
15094 * troff/env.c (tab_character): Don't change the tab character if
15095 we get an invalid argument.
15096 (hyphen_char): Similarily.
15098 * troff/reg.c (alter_format): Check that nm is not null.
15100 * Makefile, groff.sh: Make it possible to customize the commands
15101 used for printing PostScript and dvi files. Also make it possible
15102 to customize the path used by groff.sh.
15104 * eqn/eqn.y: Make `left' right associative.
15106 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
15108 * pic/pic.h: Added definition of M_SQRT2 for those systems that
15111 * pic/pic.h: Removed definition of INT_MAX.
15113 * troff/node.c (italic_corrected_node::vertical_extent): Omit
15116 * troff/input.c (token::next): Handle \R like \n.
15118 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
15120 * ps/tmac.pc (PSPIC): Simplify.
15122 * troff/env.c (tab_stops::to_string):
15123 * pic/pic.y (object_type_name):
15124 * pic/troff.c (simple_output::line):
15125 * pic/tex.c (tex_output::spline):
15126 * pic/object.c (object_spec::make_object):
15127 * tbl/main.c (process_data): Add cases to switch statements to
15128 avoid cfront warnings. (Some of these are spurious, since the
15129 switch already has a default case.)
15131 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
15132 `ps-'. Don't test systat; instead check number of arguments to
15135 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
15137 * macros/tmac.e: Do not decrease the page offset by 0.5i.
15139 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15140 Unlink the file as soon as we have opened it, so that we don't
15141 have to bother with signal handlers.
15142 (handler): Deleted.
15143 (fatal_error_exit): Deleted.
15144 (main): Don't call signal.
15146 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15148 * dvi/devdvi/Makefile: Use the -k option with S and MI.
15150 * pic/pic.y: If there is a label, or an nth construction before
15151 the first `.' in the argument to `with', ignore it and generate a
15153 * pic/lex.c (lex_warning): New function.
15155 * tbl/table.c (table::init_output): In section keep and release
15156 macro, use 0 indent when diverting and the correct indent when
15159 * troff/input.c (interpolate_number_format): Do not interpolate
15160 anything if the number register is not defined.
15162 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15164 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
15166 * ps/devps/prologue (PICTURE): Set components of graphics state to
15167 their default values.
15169 * ps/devps/text.enc: Add trademark
15170 * ps/devps/textmap: Add names for club, spade, heart, diamond,
15171 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15172 * ps/devps/symbolchars: Add names for summation and product.
15174 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15175 suchthat. Add pp. Add upper-case letters.
15177 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15178 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15181 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15182 rA (right angle bracket) to ra. Introduce names for double-headed
15183 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15184 * ps/devps/textmap: Likewise for ps device.
15185 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15186 * tty/devascii/R.proto: Rename lA to la and rA to ra.
15187 * tty/devascii/R.proto: Likewise.
15188 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15190 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15192 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15194 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15197 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
15199 * troff/div.c (when_request): Use symbol::is_null rather than
15200 has_arg to determine whether we have an argument.
15201 (change_trap): Remove the trap if we get an invalid number. Give
15202 an error if we don't get at least the macro name.
15203 (diversion_trap): Remove trap if we get an invalid name or number.
15205 * troff/env.c (environment_switch): Pop if we get an invalid
15206 symbol or numeric expression.
15208 * troff/input.c (do_define_macro): If EOF is encoutered while
15209 defining the macro, do tok.next() before returning.
15211 * troff/token.h (has_arg): Move definition from here, to ...
15212 * troff/input.c (has_arg): ... here
15214 * troff/env.c (space_size): Do nothing if we get an invalid argument.
15215 * troff/input.c (shift): Likewise.
15217 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
15220 * pic/troff.c (troff_output::start_picture): Comment out calls to
15223 * eqn/main.c (do_file): Subtract 1 from current_lineno if
15224 interpret_lf_args succeeds.
15226 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15227 \\. This avoids problems with \$N.
15229 * groff.sh: Pass -C to preprocessors.
15231 * lib/lf.c (interpret_lf_args): Be more flexible.
15233 * tbl/main.c (main): Add -C option.
15234 (table_input::get): Do not recognize TE if followed by character
15235 other than a space or newline unless -C option given.
15236 (process_input_file): Likewise for lf, TS.
15237 (process_data): Likewise for lf in text blocks.
15239 * eqn/main.c (main): Add -C option.
15240 (do_file): Don't recognize EQ, EN or lf if followed by character
15241 other than space or newline unless -C option given.
15242 * eqn/lex.c (file_input::read_line): Similarily.
15243 * eqn/eqn.h: Declare compatible_flag.
15245 * etc/soelim.c (main): Add -C option.
15246 (interpret_lf_args): Use version in libgroff.
15249 * pic/main.c (main): Add -C option, which sets compatible_flag.
15250 (top_input::get), (top_input::peek): If -C option not given,
15251 do not recognize .PS/.PE/.PF/.lf if followed by a character
15252 other than space or newline.
15253 * pic/lex.c (file_input::read_line): Similarily.
15254 * pic/pic.h: Add declaration of compatible_flag.
15256 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
15258 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15260 * troff/node.c, troff/node.h: Add `asciify' methods to classes
15261 derived from node. New class space_char_hmotion_node.
15262 * troff/input.c (asciify_macro): New function.
15263 * troff/input.c (init_input_requests): New request `asciify' bound
15265 * macros/mm.diff: New file.
15266 * Makefile: In install.mm target use `patch' to apply
15269 * troff/input.c (macro::print_size): Just print the size in bytes.
15271 * troff/div.c (return_request): Correct the argument
15274 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
15276 * troff/node.h (class composite_node): Add sz member.
15277 * troff/node.c (composite_node::size): Return sz.
15278 * troff/input.c (macro_to_node): Use the initial size in the
15279 environment as the size of the composite_node.
15281 * troff/node.c (node::zero_width_tprint): Provide a reasonable
15284 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
15286 * troff/div.c (change_trap): If we get a bad number expression,
15289 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
15291 * lib/matherr.c (matherr): Define this only if math.h defines
15294 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
15296 * troff/div.c (macro_diversion::distance_to_next_trap): If there
15297 no diversion trap return vunits(INT_MAX - vresolution).
15299 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
15301 * troff/input.c (do_zero_width): New implementation that doesn't
15302 use a temporary environment. Use instead:
15303 (token::add_to_node_list): New function.
15304 * troff/env.c (environment::get_prev_char_height),
15305 (environment::get_prev_char_height),
15306 (environment::get_prev_char_skew): New functions.
15307 (environment::get_prev_char): New function.
15308 (environment::get_prev_char_width): Change to use get_prev_char.
15309 (init_env_request): Implement new registers .cht, .cdp, .csk.
15310 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15311 \Z being processed in a separate environment.
15313 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
15315 * tbl/table.c: Removed TABLE_BOTTOM_REG.
15317 * tbl/table.c (table::init_output): In the section release macro,
15318 give a warning message if the section won't fit on one page.
15320 * tbl/table.c (table::do_top): Emit table keep only if table is
15322 (table::do_bottom): Likewise for table release.
15323 (table::table), (table::add_vertical_rule): Remove reference to
15325 * tbl/table.h: Remove keep member.
15327 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15328 SECTION_RELEASE_MACRO, if there's not enough space before the next
15329 trap to output the diversion, call T# ourselves, set
15330 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15331 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
15332 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
15333 vertical position and return to it before turning traps on again.
15335 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
15337 * troff/node.c, troff/node.h: In classes derived from node,
15338 replace prev_char_width method by last_char_node method.
15339 * troff/env.c (environment::get_prev_char_width): Use
15340 node::last_char_node rather than node::get_prev_char_width.
15342 * Makefile: Added comment about -fno-inline on 68030-based
15345 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15346 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15347 expressions using sizeof to int.
15348 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15350 * macros/tmac.e (TS): Don't move @f back past the current
15353 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
15355 * ps/ps.c (main): Buffer stderr.
15356 * dvi/dvi.c (main): Likewise.
15357 * tty/tty.c (main): Likewise.
15359 * ps/ps.c (ps_printer::do_import): Improve error handling.
15361 * troff/input.c (abort_request): Use asciify.
15363 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15364 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15365 type of first argument int rather than char. This works around a
15366 bug on the 68030 based Apollo using g++ 1.37.1.
15368 * tbl/table.h (class table): Add `keep' member.
15369 * tbl/table.c (table::table): Initialize `keep'.
15370 (table::add_vertical_rule): Set `keep' to 1.
15371 (table::do_top): Only emit table keep macro is `keep' is non-zero.
15372 (table::do_bottom): Likewise for table release macro.
15373 (table::do_row): Emit section keep macro even if the row is 0.
15375 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
15377 * macros/tmac.e (@C): Preserve the font family across the change
15380 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
15382 * lib/font.c: Initialize font::hor and font::vert to 1.
15383 (font::load_desc): Check the values of font::hor and font::vert.
15385 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15386 be included in a C compilation.
15387 (iftoa): Use INT_DIGITS. Include lib.h.
15389 (as_string): Likewise.
15390 * tbl/table.c: Removed definition of INT_DIGITS.
15391 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15392 * troff/input.c (input_input_requests): Likewise.
15393 * ps/ps.c (make_encoding_name): Likewise.
15394 (ps_printer::set_style): Likewise.
15395 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15397 * tty/devascii/R.proto: Map fm onto '.
15398 * tty/devlatin1/R.proto: Likewise.
15400 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
15402 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15403 argument to \w is at a different input level.
15405 * tbl/table.c (table::init_output): Define a new macro
15406 REPEATED_VPT_MACRO, like vpt but if in a diversion also
15407 transparently outputs itself.
15408 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15410 (table::do_row): Likewise.
15412 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15413 TRANSPARENT_STRING_NAME.
15415 * tbl/table.c (table::init_output): In the table release macro
15416 print an error message and don't produce any output if after
15417 issuing the need request the table still will not fit. Also
15418 remove the diversion after bringing it back.
15420 * tbl/table.c (table::init_output): Define a new macro
15421 REPEATED_MARK_MACRO, like mk but if in a diversion also
15422 transparently outputs itself.
15423 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15424 is necessary because .TH might not call .T#.
15425 (table::do_top): Likewise TOP_REG.
15426 (table::define_bottom_macro): If TOP_REG is no longer valid, use
15427 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15428 table header might contain just the two top rules.
15430 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
15432 * troff/div.c: Implement new request `ptr' to print all traps.
15434 * troff/env.c (init_env_requests): Implement `.tabs' reg with
15435 init_string_env_reg.
15436 * troff/env.c (class tab_reg): Deleted.
15438 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
15440 * troff/div.c: New number register .pn returns the number of the
15441 next page as set by the pn request.
15443 * macros/tmac.an: Redid headers and footers. Number each manual
15444 entry starting from 1 unless \nC is > 0, like Sun. Added an
15445 optional 5th argument to .TH which specifies the manual name and
15446 appears in the center of the header. Understand the X, P and D
15447 registers like Sun.
15449 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
15451 * troff/env.c (init_env_requests): New number register `.lt' to
15452 return the title length.
15454 * troff/node.h (class transparent_dummy_node): New class.
15455 * troff/node.c (class transparent_dummy_node): Provide member
15457 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15460 * troff/input.c (token::next): New escape sequence \).
15461 * troff/input.c (get_copy): Recognize \) in copy mode.
15463 * troff/input.c (input_stack::clear): New function.
15464 * troff/input.c (exit_request): Use input_stack::clear.
15466 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15467 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15469 * troff/env.c: Move set_page_character to input.c. Move
15470 page_character to input.c also.
15471 * troff/env.c (title): Split off the reading of the parts of the
15472 title into read_title_parts.
15473 * troff/input.c (read_title_parts): New function. Check the
15474 input_level when testing whether a token matches the delimiter.
15476 * troff/input.c (exit_request): New function.
15477 * troff/input.c (init_input_requests): Bind ex request to
15478 exit_request rather than exit_groff.
15480 * troff/input.c (exit_groff): Call tok.next() before
15481 process_input_stack().
15483 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
15485 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15486 * troff/env.h: ditto.
15487 * troff/input.c: ditto.
15489 * troff/env.c (environment::is_empty): Test pending_lines.
15491 * troff/env.c (environment::have_pending_lines): Removed.
15493 * troff/input.c: Add request to flush pending lines from the
15496 * troff/env.c, troff/env.h: Add automatic widow control feature.
15498 * troff/input.c (exit_groff): Do process_input_stack() after
15499 do_break() but before setting exit_flag to 2.
15501 * troff/input.c: Remove FLUSH_PENDING_LINES and
15502 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15503 environment after END_TRAP token seen, but only if there aren't
15504 any more traps still unfinished.
15505 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15507 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
15509 * troff/env.c: Rename the `retain_size' member of class
15510 pending_output_line to `no_fill'.
15512 * troff/env.c (title): When the line is output, make the
15513 retain_size argument !fill.
15515 * troff/node.h: Add `hyphenated' member to struct breakpoint.
15516 * troff/node.c (space_node::get_breakpoints),
15517 (dbreak_node::get_breakpoints): Fill this in.
15518 * troff/env.c: Allow specification of maximum number of
15519 consecutive hyphenated lines.
15521 * troff/env.c (environment::is_empty): Add test for !current_tab.
15523 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
15525 * troff/env.c (environment::hyphenate_line): Don't completely give
15526 up if the word is not to be hyphenated; continue so that breaks
15527 can be made at break_char_node's.
15529 * lib/lib.h: Only define INT_MAX if it's not already defined;
15530 undef INT_MIN if it's already defined.
15532 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15534 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15535 This works around a bug in AT&T C++ 2.0 used with an ANSI C
15538 * macros/tmac.an (an-header): Set no-space mode.
15540 * macros/tmac.an (TH): Start a new page if necessary.
15542 * Started using ChangeLog at version 0.4.
15545 version-control: never