1 2003-08-23 Werner LEMBERG <wl@gnu.org>
3 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
4 g++ linker is used. Reported by Mark J. Reed
5 <mark.reed@turner.com>.
7 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
9 Add key character `x' to tbl which makes tbl call a user-defined
10 macro on a table cell.
12 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
13 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
14 `set_modifier' after printing the compatibility request.
15 (set_modifier): Print call to `m->macro' if not empty.
16 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
18 (process_format): Implement cases `x' and `X'.
19 * src/preproc/tbl/tbl.man, NEWS: Updated.
21 2003-08-15 Werner LEMBERG <wl@gnu.org>
23 * doc/groff.texinfo: Minor fixes.
25 2003-08-09 Werner LEMBERG <wl@gnu.org>
27 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
29 2003-08-07 Werner LEMBERG <wl@gnu.org>
31 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
32 argument list. Use `ls' to expand, similar to autoconf.
34 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
37 * doc/groff.texinfo: Improve documentation how vertical spacing
38 and line breaks interact.
41 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
43 2003-08-03 Werner LEMBERG <wl@gnu.org>
45 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
46 EPS (using eps2eps or similar programs to compute the bounding box).
48 2003-07-24 Werner LEMBERG <wl@gnu.org>
50 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
51 * doc/texinfo.tex: Updated from texinfo 4.6.
52 * README.CVS: From now on we need texinfo 4.6.
54 2003-07-23 Werner LEMBERG <wl@gnu.org>
56 Add requests `dei1' and `ami1' for completeness.
58 * src/roff/troff/input.cc (calling_mode): Remove
60 (comp_mode): New enumeration.
61 (do_define_string, define_string, define_nocomp_string,
62 append_string, append_nocomp_string): Updated.
63 (do_define_macro): Add third parameter.
64 (define_macro, define_nocomp_macro, define_indirect_macro,
65 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
66 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
69 (init_input_requests): Add `dei1' and `ami1'.
71 * tmac/trace.tmac: Handle de1 and am1.
72 (de): Improve tracing message.
73 (am): Add missing `do'.
76 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
77 Document new requests.
79 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
81 Add option -G to .MPIMG to insert a gap between text and the image.
83 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
84 www-finish-left-ll): Updated.
85 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
86 (MPIMG): Make option -L and -R optional.
89 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
91 * src/devices/grohtml/post-html.cpp
92 (html_printer::do_file_components): Don't use `stdout' as lvalue
93 since it can be a macro.
95 2003-07-22 Werner LEMBERG <wl@gnu.org>
97 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
98 the corresponding test in aclocal.m4.
100 2003-07-21 Werner LEMBERG <wl@gnu.org>
102 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
103 names but RGB values directly. Otherwise pnmtopng depends on
104 an external file `rgb.txt' which maps colour names to values.
106 2003-07-20 Werner LEMBERG <wl@gnu.org>
108 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
109 * configure, src/include/config.hin: Regenerated.
111 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
113 2003-07-19 Werner LEMBERG <wl@gnu.org>
115 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
117 2003-07-18 Werner LEMBERG <wl@gnu.org>
119 * *.man: Switch to non-compatibility mode temporarily if GNU
120 syntax extensions are used in the particular man page.
122 * PROBLEMS: Add solutions for SGR problems.
124 2003-07-17 Werner LEMBERG <wl@gnu.org>
126 Don't ignore grotty's command line options if \X'tty: sgr ...' is
127 used to change the drawing scheme.
129 * src/devives/grotty/tty.cpp (bold_flag_option,
130 underline_flag_option, italic_flag_option, reverse_flag_option,
131 bold_underline_mode_option): New global variables.
132 (update_options): New function.
133 (tty_printer::special): Call update_options.
134 (main): Don't set xxx_flag but xxx_flag_option, then call
137 2003-07-14 Werner LEMBERG <wl@gnu.org>
139 Make grotty emit proper Unicode box drawing characters for -Tutf8.
141 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
143 (hline_char, vline_char): New global variables.
144 (tty_printer::tty_printer): Initialize them.
145 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
146 horizontal and vertical lines.
147 (crossings): New global array.
148 (tty_printer::end_page): Use it to determine the proper crossing
149 character for -Tutf8.
151 2003-07-12 Werner LEMBERG <wl@gnu.org>
153 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
154 (HTMLDOCFILES): Revert to `pic.html'.
155 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
157 2003-07-11 Werner LEMBERG <wl@gnu.org>
159 * doc/pic.ms: Improve documentation of absolute coordinates.
160 Document absolute positioning of pictures.
162 * NEWS: Add new pic capability.
164 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
166 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
169 2003-07-07 Werner LEMBERG <wl@gnu.org>
171 Implement support for dashed and dotted ellipses in pic. Based on
172 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
174 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
175 common_output::dashed_ellipse, common_output::dotted_ellipse): New
176 functions. Ellipse arcs are approximated with circle arcs.
177 * src/preproc/pic/common.h (common_output): Updated.
178 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
180 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
182 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
184 2003-07-06 Werner LEMBERG <wl@gnu.org>
186 Make grotty work on platforms which have unsigned char as the
187 default for char. Based on a patch by Thomas Klausner
190 * src/devices/grotty/tty.cpp (schar): New typedef.
191 Updated calls to declare_ptable and implement_ptable.
192 (glyph): Use schar for back_color_idx and fore_color_idx.
193 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
194 (tty_printer::tty_color, tty_printer::tty_printer,
195 tty_printer::color_to_idx, tty_printer::put_color): Updated.
197 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
199 * src/roff/nroff/nroff.sh: Add option -d for completeness.
200 * src/roff/nroff/nroff.man: Updated.
202 2003-07-05 Werner LEMBERG <wl@gnu.org>
204 * NEWS, tmac/groff_www.man: Updated.
205 * doc/Makefile.sub: Updated.
207 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
209 Implement support for multiple HTML output files.
211 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
212 -j command line option.
214 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
216 (file): New fields `new_output_file', `require_links',
218 (file::file): Updated.
219 (files::set_file_name, files::set_links_required,
220 files::are_links_required, files::is_new_output_file,
221 files::file_name, files::next_file_name): New functions.
222 (header_desc): New fields `no_of_level_one_headings',
224 (header_desc::header_desc): Updated.
225 (header_desc::write_headings): Handle multiple files.
226 (html_printer::write_header): Save file name in which header occurs.
227 (html_printer::determine_header_level): Possibly split files on
229 (html_printer::do_links, html_printer::troff_tag): Updated.
230 (html_printer::insert_split_file, html_printer::do_job_name,
231 html_printer::emit_link, html_printer::write_navigation,
232 html_printer::do_file_components): New functions.
233 (html_printer::~html_printer): Handle multiple files.
234 (main): Handle command line option `-j'.
236 * src/devices/grohtml/grohtml.man: Updated.
238 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
241 * tmac/www.tmac (JOBNAME): New macro.
242 * tmac/s.tmac (SH-NO-TAG): New macro.
243 (@SH): Call SH-NO-TAG.
246 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
248 * tmac/groff_mdoc.man: Improve documentation of punctuation
251 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
253 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
255 2003-07-03 Werner LEMBERG <wl@gnu.org>
257 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
259 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
261 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
264 (Fn, Fo): Reduce indentation in synopsis.
266 * tmac/doc-common (doc-check-depth): New macro.
267 (doc-end-macro, Sh, Ss): Use it.
268 (Cd): Fix behaviour in synopsis.
269 (In): Make it parsed and callable.
270 If not in the synopsis, represent the C header file enclosed in
272 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
273 Use minus, not hyphen.
275 * tmc/groff_mdoc.man: Updated.
277 2003-07-01 Werner LEMBERG <wl@gnu.org>
279 Integrated grap2graph, contributed by Eric S. Raymond.
281 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
283 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
284 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
286 2003-07-01 Colin Watson <cjwatson@debian.org>
288 * src/xditview/*.c: Add prototypes, fix return types, add includes.
289 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
291 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
293 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
295 2003-06-31 Werner LEMBERG <wl@gnu.org>
297 * doc/Makefile.sub (CLEANADD): Remove all files created by
298 running `make groff.{pdf,dvi}'.
300 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
303 2003-06-30 Werner LEMBERG <wl@gnu.org>
305 * Makefile.in (SHELL): Define as @SHELL@.
306 (mkinstalldirs): Use $(SHELL).
307 (MDEFINES): Add $(SHELL).
308 * Makefile.comm (SHELL): Removed.
310 2003-06-29 Werner LEMBERG <wl@gnu.org>
312 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
313 The X11 documentation files use them.
314 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
316 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
318 * tmac/e.tmac (@C): Handle .ad also.
320 2003-06-12 Werner LEMBERG <wl@gnu.org>
322 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
324 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
325 Assign `n' even here. It is possible to construct a node
326 immediately following an escape character:
334 2003-06-10 Werner LEMBERG <wl@gnu.org>
336 * README.WIN32: Removed.
339 2003-06-07 Werner LEMBERG <wl@gnu.org>
341 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
343 2003-06-05 Werner LEMBERG <wl@gnu.org>
345 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
346 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
348 2003-06-03 Werner LEMBERG <wl@gnu.org>
350 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
351 is done by the calling function.
353 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
355 * tmac/X.tmac: Fix definition of `em'.
357 2003-05-22 Werner LEMBERG <wl@gnu.org>
359 * src/roff/troff/input.cc (return_macro_request): Fix detection of
362 2003-05-18 Werner LEMBERG <wl@gnu.org>
364 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
365 to make items work which consist only of a tag.
367 2003-05-17 Werner LEMBERG <wl@gnu.org>
369 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
370 aren't stretched in a tag (this can fail with unformatted boxes).
371 Instead, insert a break and go back one line.
373 2003-05-16 Werner LEMBERG <wl@gnu.org>
375 * src/roff/troff/input.cc (return_macro_request): If called with
376 argument pop macro twice. We need this to trace `return'.
378 * tmac/trace.tmac: Handle `return'.
381 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
384 2003-05-15 Larry Kollar <kollar@alltel.net>
386 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
387 registers `FPS', `FVS', and `FPD'.
389 2003-05-15 Werner LEMBERG <wl@gnu.org>
391 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
394 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
396 * tmac/groff_mdoc.man: Slight improvements.
398 2003-05-03 Werner LEMBERG <wl@gnu.org>
400 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
401 `doc-header-space' after header line if register `cR' is set.
403 2003-05-02 Werner LEMBERG <wl@gnu.org>
407 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
409 * tmac/doc-common (Nd): Use \[em].
411 2003-05-01 Werner LEMBERG <wl@gnu.org>
413 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
414 doc-footer-space): Initialize to 0.5i.
415 (doc-setup-page-layout): Don't set doc-header-space and
418 2003-04-30 Werner LEMBERG <wl@gnu.org>
420 * REVISION: Set to 1.
422 * doc/pic.ms: Document possible problems with `figname'.
424 2003-04-29 Werner LEMBERG <wl@gnu.org>
426 Version 1.19 released
427 =====================
429 * VERSION: Set to 1.19.
430 * REVISION: Set to 0.
431 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
433 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
434 Define charset as `US-ASCII' in html output.
436 * tmac/www.tmac (ULE): Add missing scaling indicator.
438 * win32-diffs: Removed.
440 2003-04-28 Werner LEMBERG <wl@gnu.org>
442 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
444 Document how to insert discardable whitespace with `.ss'.
446 2003-04-27 Werner LEMBERG <wl@gnu.org>
448 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
449 work with plain TeX also.
451 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
453 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
455 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
458 2003-04-24 Werner LEMBERG <wl@gnu.org>
460 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
461 vbox with positive height and zero depth if in TeX mode.
463 * NEWS: Document glyph name changes for grodvi and grolj4.
465 2003-04-23 Werner LEMBERG <wl@gnu.org>
467 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
470 2003-04-21 Werner LEMBERG <wl@gnu.org>
472 HP-UX 10.20 has `snprintf' but it isn't declared.
474 * configure.ac: Add declaration test for snprintf.
475 * configure: Regenerated.
476 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
477 * src/include/config.hin: Regenerated.
479 2003-04-19 Werner LEMBERG <wl@gnu.org>
481 Add keyword `figname' to pic, specifying the name of the picture
482 box in TeX mode. Based on a patch from William J Poser
483 <wjposer@unagi.cis.upenn.edu>.
485 * src/preproc/pic/pic.y: New token `FIGNAME'.
486 (macro_name): New rule of type <str>.
487 (placeless_element): Handle `FIGNAME'.
488 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
489 * src/preproc/pic/main.cpp (graphname): New global variable.
490 (do_picture): Initialize `graphname'.
491 * src/preproc/pic/pic.h: Updated.
492 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
495 (tex_output::text): Beautify output.
496 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
497 `shaded' and `outlined' unconditionally.
498 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
501 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
502 greater is necessary.
504 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
506 Add option -r to soelim to avoid emission of `.lf' lines.
507 Add option -t to produces TeX comment lines instead of `.lf' lines.
509 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
512 (main): Handle `-r' and `-t'.
513 (set_location): Handle `raw_flag' and `tex_flag'.
514 * src/preproc/soelim/soelim.man, NEWS: Updated.
516 2003-04-17 Werner LEMBERG <wl@gnu.org>
518 * tmac/hyphenex.sh: Replaced with...
519 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
522 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
523 if --quiet is used for the configure script.
524 * configure: Regenerated.
526 2003-04-16 Werner LEMBERG <wl@gnu.org>
528 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
529 Add `const' to second argument.
530 (html_printer::add_table_end): Add `const' to argument.
531 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
532 `const' to arguments.
533 * src/devices/grohtml/html-text.h: Updated.
535 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
536 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
539 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
540 cast for integer constant.
542 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
543 (writeNbytes): Add `const' to first argument.
544 (writeString): Add `const' to argument.
545 (char_buffer::can_see): Add `const' to third argument.
546 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
548 * src/preproc/html/pushback.h: Updated.
550 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
551 (include_path_append): Add `const' to argument.
554 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
556 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
557 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
559 (unicode_decompose_init::unicode_decompose_init): Updated.
560 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
562 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
563 * src/roff/troff/input.cc (process_startup_file): Add `const' to
566 * tmac/hyphenex.sh: Make script more portable by using a here
569 2003-04-15 Werner LEMBERG <wl@gnu.org>
571 Renamed all `*.cc' files to `*.cpp'.
572 Updated all configuration files, makefiles, and documentation.
574 2003-04-14 Werner LEMBERG <wl@gnu.org>
576 * tmac/hyphenex.sh: Slight improvements.
578 2003-04-13 Werner LEMBERG <wl@gnu.org>
580 * font/devascii/R.proto, font/devcp1037/R.proto,
581 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
582 character slots with unnamed glyphs.
584 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
585 (an-first): New global variable.
586 (an-header): Emit vertical space between multiple man pages.
588 2003-04-11 Werner LEMBERG <wl@gnu.org>
590 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
593 2003-04-10 Werner LEMBERG <wl@gnu.org>
597 2003-04-10 Bernd Warken <bwarken@mayn.de>
599 * doc/webpage.ms: Improved.
601 2003-04-09 Werner LEMBERG <wl@gnu.org>
603 Add register \n[.height] which returns the value of \H.
604 Add register \n[.slant] which returns the value of \S.
606 * src/roff/troff/env.cc (init_env_requests): Implement.
607 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
610 2003-04-08 Werner LEMBERG <wl@gnu.org>
612 * tmac/html.tmac: Move some of the data into html-end.tmac.
613 Remove most of the character translations for eqn since html fonts
614 now cover those characters.
616 * tmac/html-end.tmac: New file.
617 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
618 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
619 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
621 2003-04-07 Werner LEMBERG <wl@gnu.org>
623 * man/groff_out.man: Document negative values of `N' if -Thtml is
626 2003-04-06 Werner LEMBERG <wl@gnu.org>
628 * Makefile.comm (depend.temp): Check location of YTABC.
630 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
632 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
634 (groff_bin_path): Rename to GROFF_BIN_PATH.
635 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
636 * doc/Makefile.in (TROFFBIN): New variable for troff
638 (GROFFBIN): New variable for groff binary path.
639 (groff_bin_path): Rename to GROFF_BIN_PATH.
640 (TROFF): Use TROFFBIN.
641 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
642 * doc/Makefile.sub (GROFFBIN): New variable for groff
644 (groff_bin_path): Rename to GROFF_BIN_PATH.
645 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
647 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
649 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
650 * Makefile.dev (all): Depend on DEVSCRIPTS.
651 (install_dev): Likewise.
652 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
654 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
655 (DEVGENSCRIPTS): New variable to hold generated scripts.
657 2003-04-05 Werner LEMBERG <wl@gnu.org>
659 * src/libs/libdriver/input.cc (IntArray::operator[],
660 IntArray::get_data): Remove meaningless `const' in return value.
662 * README.CVS: New file.
664 2003-04-04 Werner LEMBERG <wl@gnu.org>
666 Check for stdint.h in C++, not in C.
668 * aclocal.m4 (GROFF_STDINT_H): New function,
669 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
671 * configure, src/include/config.hin: Regenerated.
672 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
675 Fix handling of in grohtml. To do this, troff emits `N'
676 with a negative value, representing the width of the unbreakable
677 space (only for -Thtml). grohtml then converts this back to
678 and uses the value of N as its width.
680 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
681 unbreakable_space_node::tprint): Emit `N-<width>'.
682 * src/include/printer.h (printer::set_numbered_char): Make it
684 Make members `font_table' and `nfonts' protected instead of private.
685 * src/devices/grohtml/post-html.cc
686 (html_printer::set_numbered_char): New member function.
689 * src/libs/libgroff/maxfilename.cc:
690 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
692 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
695 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
697 * man/roff.man: Small fixes.
699 2003-04-03 Werner LEMBERG <wl@gnu.org>
701 Make groff independent from locale's numeric settings.
703 * configure.ac: Check for `setlocale'.
704 * configure, src/include/config.hin: Regenerated.
706 * src/include/lib.h: Handle HAVE_SETLOCALE.
708 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
709 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
710 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
713 * doc/groff.texinfo: Change dir category to `Typesetting'.
714 (Man font macros): Mention that there is no space between arguments
717 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
718 (*printer::change_color, *printer::change_fill_color): Add missing
721 2003-04-02 Werner LEMBERG <wl@gnu.org>
723 * src/devices/grohtml/html-table.cc (html_table::emit_col,
724 html_table::is_gap): Compute table widths after converting border
725 positions to avoid rounding errors.
727 2003-04-01 Werner LEMBERG <wl@gnu.org>
729 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
730 `space_emitted' properly.
732 2003-03-31 Werner LEMBERG <wl@gnu.org>
734 * src/devices/grohtml/html-table.cc: Fix column width calculation.
735 (html_table::set_linelength): Don't add 1.
736 (html_table::add_indent): Don't subtract 1.
738 * tmac/html.tmac: Set default page offset to zero.
740 2003-03-30 Werner LEMBERG <wl@gnu.org>
742 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
744 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
745 unbreakable_space_node::tprint): New functions.
746 (troff_output_file): Make space_char_hmotion_mode::tprint and
747 unbreakable_space_node::tprint to friends.
748 * src/roff/troff/node.h: Updated.
750 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
751 in the HTML standard).
753 2003-03-29 Werner LEMBERG <wl@gnu.org>
755 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
756 Otherwise, the following code
765 produces `x a' instead of `xa'. This is a temporary fix, disabling
766 font changes in diversions for -Thtml.
768 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
770 (an-do-tag-html): Merge with ...
771 (an-do-tag): This macro.
772 Change code slightly to circumvent grohtml bug.
773 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
775 * src/devices/grohtml/html-table.cc (html_table::emit_col,
776 html_table::is_gap): Round `width' properly.
778 * tmac/html.tmac: Provide some default layout parameters for
781 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
784 2003-03-28 Werner LEMBERG <wl@gnu.org>
786 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
788 2003-03-27 Werner LEMBERG <wl@gnu.org>
790 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
793 2003-03-20 Werner LEMBERG <wl@gnu.org>
795 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
797 * doc/groff.texinfo: Updated.
799 2003-03-19 Werner LEMBERG <wl@gnu.org>
801 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
802 TOKEN_END_TRAP>: Reset `have_input'.
804 2003-03-18 Werner LEMBERG <wl@gnu.org>
806 * src/roff/groff/groff.man: Mention groff_trace man page.
808 2003-03-16 Werner LEMBERG <wl@gnu.org>
810 * Makefile.in (LIBEXT): New variable to indicate the file extension
811 of library files. Computed heuristically from $(OBJEXT).
812 (MDEFINES): Add $(LIBEXT).
813 * Makefile.lib, Makefile.comm: Use it.
815 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
816 overlong lines into smaller chunks.
817 (get_binary): New function.
819 * src/utils/pfbtops/pfbtops.man: Updated.
821 2003-03-15 Colin Watson <cjwatson@debian.org>
823 * src/roff/groff/groff.man: Minor syntax fix.
825 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
827 * src/devices/grops/ps.cc (ps_printer::media_set,
828 ps_printer::~ps_printer): Handle zero paper width and length.
830 2003-03-13 Werner LEMBERG <wl@gnu.org>
832 Add options -p and -l to grodvi.
834 * src/devices/grodvi/dvi.cc: Include paper.h.
835 (landscape_flag, user_paper_length, user_paper_width): New global
837 (dvi_printer::begin_page): Emit `papersize' special.
838 Set color after initialization of `cur_h' and `cur_v'.
839 (main): Add options `-l' and `-p'.
840 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
841 * src/devices/grodvi/grodvi.man, NEWS: Updated.
843 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
845 2003-03-12 Werner LEMBERG <wl@gnu.org>
847 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
848 * man/groff_tmac.man: This man page.
849 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
852 * tmac/X.tmac: Don't load pspic.tmac.
854 2003-03-11 Werner LEMBERG <wl@gnu.org>
856 Make variable `pr' local to libdriver/input.cc. Based on a patch
857 by Bernd Warken <bwarken@mayn.de>.
859 * src/include/driver.h (pr): Removed.
861 * src/libs/libdriver/input.cc (pr): New global variable.
862 (do_file): Deallocate `pr'.
863 * src/libs/libdriver/printer.cc (pr): Removed.
865 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
866 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
867 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
868 (main): Don't delete `pr'.
870 2003-03-10 Werner LEMBERG <wl@gnu.org>
872 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
873 * tmac/papersize.tmac: New file.
874 * tmac/troffrc: Include `papersize.tmac'.
875 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
876 * tmac/an-old.tmac: Set LT to LL by default.
878 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
879 doc/groff.texinfo: Updated.
881 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
882 bug which caused all odd iso papers to have wrong dimensions.
884 * src/devices/grops/ps.cc (user_paper_width): New global variable.
885 (main) <'p'>: Set `user_paper_width' also.
886 (ps_printer::media_width, ps_printer::media_height): Use values
887 given with option `-p'.
889 2003-03-09 Werner LEMBERG <wl@gnu.org>
891 * src/include/nonposix.h: Provide default for SET_BINARY.
893 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
894 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
897 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
898 (main): Treat \r\n as \n.
900 2003-03-08 Werner LEMBERG <wl@gnu.org>
902 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
903 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
905 2003-03-07 Werner LEMBERG <wl@gnu.org>
907 Added support to access more than 256 glyphs in Type 1 fonts.
909 * src/devices/grops/ps.cc (subencoding): New structure.
910 (style): Add `sub' field.
912 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
913 Add `set_subencoding', `get_subfont' and `encode_subfont' member
916 (ps_printer::set_char): Use `set_subencoding'.
917 (make_subencoding_name): New function.
918 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
919 (ps_printer::~ps_printer): Emit subencoding definitions.
921 * src/devices/grops/psrm.cc (valid_input_table): New array to
922 properly support EBCDIC.
923 (white_space): Add `\f'.
924 (ps_get_line): Change first argument to be of type `string &'.
926 This allows to get lines of arbitrary length.
927 Use `valid_input_table'.
928 Remove warning about non-conforming PS line length. This seems
929 not to be of great importance -- for example, dvips don't emit
931 (PS_LINE_MAX): Removed.
932 (matches_comment): Change first argument to be of type `string &'.
934 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
936 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
937 %AGL_to_unicode, %default_ligatures): New hash tables.
938 Read all map entries.
939 Add unencoded characters.
940 Check for default ligatures if there are no `L' entries.
941 Print all kern entries.
942 Print all characters in charset.
943 * src/utils/afmtodit/afmtodit.man: Updated.
945 * font/devps/*: Regerated all fonts.
947 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
948 of characters, just use `.trin'. Otherwise the mapping depends
949 on the font encoding.
950 * tmac/ps.tmac: Add `fi' and `fl'.
951 Improve `Fi' and `Fl'.
952 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
953 * tmac/Xps.tmac: Fix `em'.
957 2003-03-04 Werner LEMBERG <wl@gnu.org>
959 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
962 2003-03-03 Werner LEMBERG <wl@gnu.org>
964 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
966 * font/devps/generate/textmap: Remove entry `similarequal'.
967 * font/devps/symbolmap: Updated.
969 2003-03-02 Werner LEMBERG <wl@gnu.org>
971 * src/libs/libgroff/font.cc (font::load): Fix error message for
974 * src/devices/grops/grops.man: Improve documentation of the -b
977 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
978 `ascii' and `cp1047'.
980 2003-03-01 Werner LEMBERG <wl@gnu.org>
982 Document composite glyphs and the `composite' request.
984 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
986 2003-02-28 Werner LEMBERG <wl@gnu.org>
988 * font/devdvi/generate/ec.map: Add some more Unicode entities.
989 * font/devdvi/*EC: Updated.
991 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
992 * tmac/latin1 (latin1-tr): Undo any previous mapping.
993 * tmac/troffrc: Load `composite.tmac'.
994 * tmac/Makefile.sub (NORMALFILES): Updated.
996 * doc/groff.texinfo (Input Encodings): New section.
999 2003-02-27 Werner LEMBERG <wl@gnu.org>
1001 * doc/texinfo.tex: New version 2003-02-11.06.
1003 * tmac/doc-common (Dt): Don't emit warning for unknown section.
1004 * tmac/groff_mdoc.man: Fix description of `Dt'.
1006 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
1008 * font/devps/prologue.ps: Fix for included Postscript that does
1009 a setpagedevice -- which is now safely ignored.
1013 * src/devices/grops/ps.cc: Now sets the page size in the generated
1014 document. This is done in two ways: Via a %%-comment for gv and
1015 the like, and via a PageSize and setpagedevice for programs that
1016 understands Postscript proper, like ps2pdf.
1018 * src/devices/grops/ps.h: New broken-flag to avoid page size
1019 definition, if required.
1021 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1023 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1024 Not really necessary due to the fix in prologue.ps, but cleaner:
1025 Such information does not belong in an .eps file.
1027 * doc/Makefile.sub: See doc/Makefile.in.
1029 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
1031 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1032 instead of P1 since the latter is broken in some versions of netpbm.
1033 * configure: Updated.
1035 2003-02-26 Larry Kollar <kollar@alltel.net>
1037 Make man pages more customizable.
1039 * tmac/an-old.tmac (FT): New register holding footer distance from
1041 (HF): New string holding the default heading font.
1042 (TH): Handle registers `IN' and `SN' set on the command line.
1044 (PT, BT): New strings to customize header and footer lines.
1045 (an-header, an-footer): Use them.
1047 * tmac/groff_man.man: Document changes.
1049 * doc/groff.texinfo: Document man changes.
1050 Document Ultrix extensions of man.
1052 2003-02-26 Werner LEMBERG <wl@gnu.org>
1054 * src/roff/troff/input.cc (do_width, do_if_request): Reset
1055 `have_input' after changing back to old environment.
1057 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1058 function up to be defined before first call. This is necessary to
1059 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1061 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1062 the default font directory also. Based on a patch from James
1063 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1064 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1065 * src/utils/afmtodit/afmtodit.man: Document it.
1069 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1071 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
1073 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1074 (GROFF_PNMTOPS_NOSETPAGE): New macro.
1075 * configure.ac: Use it.
1076 * configure: Regenerated.
1077 * Makefile.in: Updated.
1079 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1080 (CLEANADD): Add www.tmac-sed.
1081 (pnmtops_nosetpage): Define default.
1082 (install_data): Handle www.tmac-sed and substitute
1083 @PNMTOPS_NOSETPAGE@.
1084 (stamp-sed): Add www.tmac.
1085 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1086 It now breaks URLs at suitable places.
1087 (www:substring_ok): New register set by...
1088 (www:@test_substring): New macro.
1089 (www:error): New alias to www-error.
1090 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1092 (URL): Use www:url_breaks.
1093 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1094 (CDS, CDE): New macros.
1096 2003-02-25 Werner LEMBERG <wl@gnu.org>
1098 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1101 2003-02-24 Werner LEMBERG <wl@gnu.org>
1103 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1104 can be negative also.
1106 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1108 (read_char_table): Avoid negative ascenders.
1109 (output_charset): Add cast.
1110 * font/devlj4/*: Regenerated.
1112 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1115 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1116 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1118 * font/devdvi/*: Regenerated.
1120 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
1121 normal width, while the previously used characters (U+2329 and
1122 U+232A) are classified as wide due to canonical equivalence with the
1123 CJK punctuation characters U+3008 and U+3009.
1125 * font/devutf8/R.proto: Updated.
1126 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1128 * man/groff_char.man: Simplify handling of table traps by
1129 introducing `start block' and `end block' macros.
1130 (Ns, Ne, 2s, 2e, Ds, De): New macros.
1131 (DL): Make it work with Unix troff also.
1132 Fix code values of `la' and `ra'.
1134 * tmac/dvi.tmac: Define `<>' for CW and CWI.
1136 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
1138 * src/devices/grohtml/post-html.cc (element_list::~element_list):
1139 New destructor, fixing a major memory leak.
1141 2003-02-22 Werner LEMBERG <wl@gnu.org>
1143 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1144 to be in conformance with Unicode 3.0 and newer.
1146 * font/devlj4/generate/text.map: Add `Eu'.
1147 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1148 * font/devlj4/S: Regenerated.
1150 * man/groff_char.man: Completely rewritten.
1152 * doc/groff.texinfo: Fix description of request and macro arguments.
1154 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
1158 * src/devices/grohtml/html-table.cc (html_table::~html_table):
1159 Deallocate `columns' list.
1160 * src/devices/grohtml/post-html.cc (char_block::~char_block):
1162 (text_glob::text_glob_html, text_glob::text_glob_special,
1163 text_glob::text_glob_line, text_glob::text_glob_auto_image,
1164 text_glob::text_glob_tag): Avoid memory leaks.
1165 (text_glob::remember_table): Free memory before reassigning.
1167 2003-02-19 Werner LEMBERG <wl@gnu.org>
1169 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1170 alias `hbar'), the Planck constant over two pi.
1172 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1173 `+e' for position 34.
1174 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1175 `u2662' and `u2661'.
1176 * font/devdvi/{MI,S}: Regenerated.
1177 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1178 * font/devlbp/*: Add `hbar' alias.
1179 * font/devlj4/generate/special.map: Ditto.
1180 * font/devlj4/S: Regenerated.
1181 * font/devps/generate/symbolchars: Add `+e'.
1182 * font/devps/generate/textmap: Fix PS name for `-h'.
1184 * font/devps/symbolmap: Regenerated.
1186 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1188 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1190 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1193 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1195 * tmac/tty-char.tmac: Add `+e'.
1197 2003-02-17 Werner LEMBERG <wl@gnu.org>
1199 Another round trying to really fix problems with `have_input'.
1201 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1202 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1204 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1205 handling if both foreground and background colors are default.
1207 * doc/groff.texinfo (Debugging): Document .lf differences to
1210 2003-02-16 Werner LEMBERG <wl@gnu.org>
1212 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1213 null-bytes in created string.
1215 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1216 alias_macro, lookup_request): Improve warning messages.
1218 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1220 Free `last_image_filename'.
1222 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1224 (imageList::createPage, imageList::createImage): Use `free', not
1226 (imageItem::~imageItem): Free `imageName'.
1227 (addRegDef): Use `strsave', not `strdup'.
1228 (get_resolution): Free `pathp'.
1230 2003-02-15 Werner LEMBERG <wl@gnu.org>
1232 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1235 2003-02-14 Werner LEMBERG <wl@gnu.org>
1237 Add memory management for colors to deallocate unnamed colors
1240 * src/include/color.h (color): New members `free_list' and `next'.
1241 New member functions `new' and `delete'.
1243 * src/libs/libgroff/color.cc: Implement it.
1245 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1246 for array size of new operator.
1248 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1249 redundant comparison.
1251 * src/roff/troff/input.cc (word_space_node::reread,
1252 hmotion_node::reread): Avoid warning about unused parameter.
1253 (reset_output_registers): Remove redundant parameter.
1254 (define_color): Undo change 2003-02-12.
1256 * src/roff/troff/reg.h: Updated.
1258 * src/roff/troff/node.cc (troff_output_file::really_print_line,
1259 output_file::put_filename, real_output_file::really_put_filename,
1260 ascii_output_file::really_print_line,
1261 break_char_node::get_hyphen_list): Avoid warning about unused
1263 (suppress_node::tprint): Updated.
1265 * configure.ac: Check declaration for rand() and srand().
1266 * configure: Regenerated.
1268 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1270 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1273 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1274 to avoid compiler warnings.
1276 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1279 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1281 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1283 Updated all callers.
1285 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1287 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1288 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1290 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1291 Parameter is unused.
1292 (html_printer::add_table_end): Define parameter conditionally.
1293 * src/devices/grohtml/output.cc (simple_output::special): Parameter
1296 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1297 (lbp_printer::set_char): Last parameter is unused.
1299 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1301 2003-02-13 Werner LEMBERG <wl@gnu.org>
1303 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1304 Make \D'f ...' move horizontally again for backwards compatibility.
1305 Replace it with \D'Fg ...' where appropriate to avoid dependency
1306 on horizontal resolution.
1308 * src/roff/troff/input.cc (do_get_long_name): New function.
1309 (get_long_name): Call it.
1311 (read_draw_node): Handle `\D'Fx ...' by calling ...
1312 (read_color_draw_node): New function.
1314 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1316 Pass it to `do_get_long_name' which is used instead of
1319 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1320 unnecessary value guard.
1321 (parse_D_command) <'f'>: Add horizontal shift.
1323 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1324 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1325 (FILL_MAX): Removed.
1327 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1330 2003-02-12 Werner LEMBERG <wl@gnu.org>
1332 * src/roff/troff/input.cc (do_name_test, do_expr_test,
1333 do_zero_width): Push `\n' if closing delimiter is missing.
1335 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1336 <'F'>: Make \F non-transparent at the beginning of line.
1337 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1338 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1341 (define_color): Free color in case of reassignment.
1343 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1344 @DefescListEnd): Use @Var, not @var.
1347 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1349 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1350 `shaded' and `outlined' arrays.
1351 (object_spec::object_spec): Initialize `shaded' and `outlined'.
1352 (graphic_object::set_fill_color, graphic_object::set_outline_color):
1354 (closed_object::set_fill_color): Ditto.
1355 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1357 (troff_output::reset_color): Use a_delete instead of free.
1358 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1360 2003-02-11 Werner LEMBERG <wl@gnu.org>
1362 * doc/groff.texinfo: Improve documentation of `ad'.
1363 Document that \D'f...' is dependent on the horizontal resolution.
1364 * man/groff_diff.man: Improve documentation of \D'f...'.
1366 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1367 compensating \h'...' for \D'f ...' since the latter no longer moves
1369 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1371 2003-02-10 Werner LEMBERG <wl@gnu.org>
1373 Improve error messages for `x F' (and `F') commands.
1375 * src/include/error.h: Add declaration for
1376 `current_source_filename'.
1377 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1378 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1379 parameter for source file string.
1380 Updated all callers.
1382 * src/libs/libdriver/input.cc: Add `current_source_filename'.
1383 (remember_source_filename): New function.
1384 (parse_x_command <'F'>, do_file <'F'>): Use it.
1386 2003-02-09 Werner LEMBERG <wl@gnu.org>
1388 Make grotty not emit warnings about unknown colors more than
1391 * src/devices/grotty/tty.cc: Include `ptable.h'.
1392 (TTY_MAX_COLORS): Removed.
1393 (DEFAULT_COLOR_IDX): Defined to -1.
1394 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1395 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1396 Change `tty_colors' to be a ptable.
1397 First arg of `put_color' is now `char'.
1398 New functions `make_rgb_string' and `tty_color'.
1399 (tty_printer::tty_printer): Use `tty_color'.
1400 (tty_printer::color_to_idx): Return value is now `char'.
1403 * src/include/color.h (color): Add `print_color' member function.
1404 * src/libs/libgroff/color.cc (color::print_color): Implement it.
1406 2003-02-08 Werner LEMBERG <wl@gnu.org>
1410 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1413 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1414 assume that value has been allocated with `new[]', thus use
1415 `a_delete' for deallocation.
1417 * src/libs/libdriver/input.cc (get_integer_arg,
1418 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1421 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1422 * src/libs/libgroff/nametoindex.cc
1423 (character_indexer::named_char_index): Use `new <type>[1]'.
1425 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1427 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1428 (split_text): Use `a_delete'.
1430 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1433 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1434 harmless memory leak.
1435 (hyphen_trie::read_patterns_file): Initialize `buf'.
1436 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1437 Initialize `current_fill_color'and `current_glyph_color'.
1438 * src/roff/troff/glyphuni.cc
1439 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1440 * src/roff/troff/uniuni.cc
1441 (unicode_decompose_init::unicode_decompose_init): Ditto.
1442 * src/roff/troff/uniglyph.cc
1443 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1445 2003-01-26 Werner LEMBERG <wl@gnu.org>
1447 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1448 `access' before calling `unlink'.
1449 (do_file): Handle __EMX__.
1451 * src/include/nonposix.h: Handle __EMX__.
1453 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1454 (fontpath,tmacpath): Use it.
1456 Sorted alphabetically.
1458 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1460 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1463 2003-01-27 Werner LEMBERG <wl@gnu.org>
1465 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1466 New files, copied from gnulib.
1467 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1468 * configure.ac: Updated.
1469 * configure: Regenerated.
1471 * src/include/config.hin: Regenerated.
1472 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1473 Don't define `strcasecmp' as `strcmp'.
1474 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1475 Dont define `strncasecmp' as `strncmp'.
1477 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1480 2003-01-26 Werner LEMBERG <wl@gnu.org>
1482 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1485 2003-01-25 Werner LEMBERG <wl@gnu.org>
1487 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1489 2003-01-24 Werner LEMBERG <wl@gnu.org>
1491 Add US-english hyphenation exceptions (converted from Barbara
1492 Beeton's hyphenation exception log reports which appear irregularly
1495 * tmac/hyphen.us: Updated to latest version.
1496 * tmac/README: Updated.
1497 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1498 * tmac/troffrc: Load `hyphenex.us'.
1499 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1500 * doc/groff.texinfo: Updated.
1502 2003-01-23 Werner LEMBERG <wl@gnu.org>
1504 Improve hyphenation slightly. This is a first step in redesigning
1505 the hyphenation algorithm to make it more flexible (e.g. allowing
1506 kerns and ligatures between the hyphenation character and the
1507 following character -- while not used normally in English, other
1508 languages like German would benefit).
1510 * src/roff/troff/env.cc (environment::hyphenate_line): Use
1511 assertion instead of if-clause.
1512 Let `get_hyphen_list' return the number of involved characters in
1513 the hyphenation pattern instead of computing it directly (which
1514 often yields too small values).
1515 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1516 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1519 2003-01-22 Werner LEMBERG <wl@gnu.org>
1521 Fixing a bug which caused groff to hang if the hyphenation exception
1522 dictionary tried to grow.
1524 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1525 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1526 pointer to dictionary.
1528 2003-01-20 Werner LEMBERG <wl@gnu.org>
1530 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1531 negative left italic correction.
1532 * src/utils/afmtodit/afmtodit.man: Document it.
1534 * font/devps/generate/Makefile (RFLAG): Add `-m'.
1535 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1536 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1540 2003-01-16 Werner LEMBERG <wl@gnu.org>
1544 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
1546 * src/preproc/refer/refer.man: Mention REFER environment variable.
1548 2003-01-05 Werner LEMBERG <wl@gnu.org>
1550 Similar to \[is], the square root glyph (\[sr]) and the square root
1551 extension glyph (\[radicalex]) are now text symbols. The new
1552 mathematical versions are called \[sqrt] and \[sqrtex],
1555 * font/devX*/S: Regenerated.
1556 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1557 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1558 * font/devdvi/EX, font/devdvi/S: Regenerated.
1559 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1560 * font/devlj4/generate/special.map: Add `sqrt'.
1561 * font/devlj4/S: Regenerated.
1562 * font/devps/generate/textmap: Add `sqrt'.
1563 * font/devps/S, font/devps/symbolmap: Regenerated.
1565 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1566 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1567 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1568 overlap horizontally.
1570 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1571 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1574 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1575 and `sqrtex' are overlapping glyphs.
1577 2003-01-04 Werner LEMBERG <wl@gnu.org>
1579 * font/devdvi/generate/texsy.map: Add `is'.
1580 * font/devps/symbolmap: Regenerated.
1581 * font/devdvi/*TC, MI, S: Regenerated.
1583 * tmac/dvi.tmac: Remove `is'.
1585 2003-01-03 Werner LEMBERG <wl@gnu.org>
1587 `is' is now a text symbol (only relevant for dvi). The math variant
1588 can be accessed with `integral'.
1590 * font/devX*/S: Regenerated.
1591 * font/devdvi/generate/texex.map: Remove `is'.
1592 * font/devdvi/EX: Updated.
1593 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1594 * font/devlj4/generate/special.map: Ditto.
1595 * font/devlj4/S: Regenerated.
1596 * font/devps/generate/textmap: Add `integral'.
1597 * font/devps/S: Regenerated.
1599 * tmac/dvi.tmac: Define `is'.
1601 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1603 * src/preproc/tbl/main.cc (process_format): Fix error message.
1605 2003-01-02 Werner LEMBERG <wl@gnu.org>
1607 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1608 * font/devps/textmap: Fix entries for `ne' and `nc'.
1609 * font/devps/symbolmap: Regenerated.
1611 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1612 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1613 `38', `58', `78', `-+', `|=', `nc', `ne'.
1615 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1616 Use `schar' for `aq'.
1617 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1618 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1619 * tmac/tty.tmac: Add `ne'.
1621 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1622 for fallback glyphs.
1624 2002-12-29 Werner LEMBERG <wl@gnu.org>
1628 * font/devX*/*: Regenerated.
1629 * font/devdvi/generate/ec.map: Remove `eq'.
1630 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1631 Assign `|=' to position 39.
1632 * font/devdvi/*EC, S: Regenerated.
1633 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1634 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1635 Assign `|=' to position 549.
1636 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1638 Add `uni2243' for `|='.
1640 * tmac/ec.tmac: Add `eq'.
1641 * tmac/dvi.tmac: Add `=~'.
1642 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1645 2002-12-21 Werner LEMBERG <wl@gnu.org>
1647 * font/devdvi/generate/tc.map: Remove `**'.
1648 * font/devdvi/*TC: Regenerated.
1649 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
1651 * font/devutf8/NOTES: Updated.
1653 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
1654 Don't give default parameter to `set_macro'.
1655 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
1656 instead of `set_macro'.
1657 (charinfo::setx_macro): Implement it.
1658 (charinfo::set_macro): Don't change `mode'.
1660 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
1661 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
1662 * tmac/dvi.tmac: Define `!=' with `.schar'.
1664 2002-12-20 Werner LEMBERG <wl@gnu.org>
1666 * font/devX*/S: Regenerated.
1667 * font/devdvi/generate/ec.map: Remove `pl'.
1668 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
1669 * font/devdvi/*{TC,EC}: Regenerated.
1670 * font/devhtml/R.proto: Add `-+'.
1671 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
1672 * font/devlbp/*: Remove `or'.
1673 * font/devlj4/generate/special.map: Remove `or'.
1674 * font/devlj4/S: Regenerated.
1675 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
1676 `seveneighths', `threeeighths'.
1678 Replace `minusplus' with `uni2213'.
1679 * font/devps/symbolmap: Regenerated.
1680 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
1683 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
1685 * src/roff/troff/node.cc (troff_output_file::put_char_width):
1686 Call glyph_color and fill_color even if tcommand_flag isn't set.
1687 (make_node, node::add_char): Check not ci->is_fallback but
1690 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
1691 * tmac/ec.tmac: Add .rchar entry for `f/'.
1692 Don't remove `12', `14', `34'.
1693 Define `pl' to be always roman.
1694 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
1695 Define `18', `38', `58', `78'.
1696 * tmac/tty.tmac: Add `-+'.
1697 * tmac/dvi.tmac: Define `f/'.
1698 (dvi-frac): Use `f/'.
1699 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
1700 Define `18', `38', `58', `78'.
1702 2002-12-15 Colin Watson <cjwatson@debian.org>
1704 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
1706 2002-12-10 Werner LEMBERG <wl@gnu.org>
1708 Add glyph `tno', a textual variant of `no'.
1710 * font/devX*/*: Regenerated.
1711 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
1712 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
1713 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
1714 * font/devdvi/*: Regenerated.
1715 * font/devlbp/*: Add `tno'.
1716 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
1717 * font/devlj4/*: Regenerated.
1718 * font/devps/generate/textmap: Replace `no' with `tno'.
1719 * font/devps/generate/symbolchars: Add `no'.
1720 * font/devps/*: Regenerated.
1722 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
1724 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
1725 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
1729 * tmac/dvi.tmac: Replace most `\\' with `\E'.
1730 Add definition for `sd'.
1731 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
1733 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
1735 2002-12-08 Werner LEMBERG <wl@gnu.org>
1737 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
1738 mode to avoid rounding errors.
1739 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
1741 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
1742 src/roff/troff/troff.man: Improve documentation of -T.
1744 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
1746 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
1747 (run_pipeline) [_WIN32]: Provide working function without `fork'.
1749 2002-12-06 Werner LEMBERG <wl@gnu.org>
1751 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
1752 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
1753 Scaling Euro.sansserif glyphs down to have the same height as
1755 Removed unnecessary points; added some extrema.
1757 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1760 2002-12-04 Werner LEMBERG <wl@gnu.org>
1762 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
1763 and `Euro.symbol.bold.slanted'.
1764 Improve some glyph offsets and widths.
1765 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1767 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
1769 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
1772 * tmac/europs.tmac: Updated to new glyph indices.
1773 Use Euro.symbol for font familiy `A'.
1775 * doc/groff.texinfo: Minor improvements.
1777 2002-12-02 Werner LEMBERG <wl@gnu.org>
1779 * font/devdvi/generate.tc.map: s/%O/%0/.
1780 * font/devdvi/*TC: Regenerated.
1782 * src/roff/troff/div.cc (init_div_requests): Sorted.
1784 * tmac/dvi.tmac: Remove `Ye'.
1785 * tmac/ec.tmac: Remove `Ye'.
1786 Add .rchar entry for `de'.
1788 * man/groff.man, man/groff_diff.man: Document register `.pe'.
1789 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
1792 2002-11-30 Werner LEMBERG <wl@gnu.org>
1794 Add PS font for various Euro glyphs.
1796 * font/devps/generate/freeeuro.sfd: New master font file for
1798 * font/devps/generate/sfdtopfa.pe: New conversion script for
1800 * font/devps/generate/Makefile (FONTS): Add `EURO'.
1801 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
1802 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
1804 * font/devps/EURO: Generated from `freeeuro.afm'.
1805 * font/devps/download: Add `freeuro.pfa'.
1806 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
1809 * tmac/europs.tmac: New file.
1810 * tmac/ps.tmac: Include `europs.tmac'.
1811 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
1813 2002-11-29 Werner LEMBERG <wl@gnu.org>
1815 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
1816 * font/devdvi/S: Regenerated.
1817 * font/devhtml/R.proto: Fix `CR' and `ci'.
1819 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
1821 * font/devps/symbolmap: Regenerated.
1822 * font/devutf8/R.proto: Fix `CR' and `ci'.
1824 * font/devutf8/NOTES: Updated.
1826 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
1829 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1831 * tmac/dvi.tmac: Add `lh' and `rh'.
1832 * tmac/Xps.tmac: Fix `lh' and `rh'.
1833 * tmac/X.tmac: Add `OK'.
1834 * tmac/lj4.tmac: Ditto.
1836 2002-11-24 Werner LEMBERG <wl@gnu.org>
1838 * font/devX*/S: Regenerated.
1839 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
1840 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
1841 * font/devdvi/generate/texsy.map: Remove `or' glyph.
1842 * font/devdvi/S: Regenerated.
1843 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
1844 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
1845 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
1846 `bracketleftbt', `bracketrighttp', `bracketrightex',
1847 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
1848 `braceex', `braceleftex', `bracerightex', `bracerighttp',
1849 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
1851 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
1852 * font/devutf8/NOTES: Updated.
1853 * font/devlj4/generate/special.map: Add glyph `braceex'.
1854 * font/devlj4/S: Regenerated.
1856 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
1858 2002-11-14 Werner LEMBERG <wl@gnu.org>
1860 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
1863 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1865 * doc/texinfo.tex: New version from texinfo 4.3.
1866 * doc/groff.texinfo: Updated for texinfo 4.3.
1867 Use @tie{} where appropriate.
1868 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
1869 * font/devdvi/generate/tc.map: Remove `rn'.
1870 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
1871 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
1873 * font/devX100/*, font/devX100-12/*, font/devX75/*,
1874 font/devX75-12/*: Regenerated.
1876 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
1877 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
1878 Improve definition of `an'.
1879 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
1881 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
1882 * tmac/X.tmac: Add definition for `or'.
1883 * tmac/Xps.tmac: Undo change 2002-11-05.
1884 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
1886 2002-11-11 Werner LEMBERG <wl@gnu.org>
1888 * src/roff/troff/node.cc (troff_output_file::put_char): Always
1891 2002-11-10 Werner LEMBERG <wl@gnu.org>
1893 Added three new requests `schar', `fschar', and `rfschar'. `schar'
1894 defines a glyph which is searched after the check for fonts declared
1895 with `.special' (and before the check for all mounted special
1896 fonts). `fschar' defines a glyph for a particular font which is
1897 searched after the check for fonts declared with `.fspecial' (and
1898 before the check for fonts declared with `.special'). `rfschar'
1899 removes glyphs defined with `fschar'.
1901 * src/roff/troff/token.h (char_mode): New enum.
1902 Declare do_define_character.
1903 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
1905 (charinfo::is_fallback): Updated.
1906 (charinfo::is_special): New method.
1907 * src/roff/troff/input.cc (do_define_character): Add and use
1908 optional second parameter used as a prefix for font-specific glyph
1910 (define_character, define_fallback_character): Updated.
1911 (define_special_character): New function.
1912 (init_input_requests): Add `schar'.
1913 (charinfo::charinfo, charinfo::set_macro): Updated.
1914 * src/roff/troff/node.cc: Include `stringclass.h'.
1915 (make_glyph_node): Handle special glyphs defined with `.schar' and
1917 (define_font_special_character, remove_font_special_character): New
1919 (init_node_requests): Sorted.
1920 Add `fschar' and `rfschar'.
1921 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1922 Document new requests.
1924 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
1925 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
1927 2002-11-08 Werner LEMBERG <wl@gnu.org>
1929 Added new font `SC' (cmtex10) to devdvi.
1931 * devdvi/generate/Makefile (FONTS): Add `SC'.
1933 * devdvi/generate/textex.map: New map file for cmtex.
1935 * devdvi/Makefile.sub (DEVFILES): Updated.
1936 * tmac/dvi.tmac: Add fspecial entries for SC.
1937 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
1938 found before `S' since the font position of `SC' is lower due to the
1939 gaps in DESC's `font' line.
1940 * tmac/ec.tmac: Add a `special' call.
1943 * font/devhtml/R.proto: Remove double entry for `ti'.
1944 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
1945 * tmac/tty-char.tmac: Remove entry for `bq'.
1946 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
1947 * tmac/ec.tmac: Don't remove `aq' glyph.
1948 * tmac/X.tmac: Fix entry for `em'.
1949 Add entries for `fo' and `fc'.
1950 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
1952 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
1953 documentation of `special' and `fspecial' requests.
1955 2002-11-05 Werner LEMBERG <wl@gnu.org>
1957 * font/devascii/R.proto, font/devcp1047/R.proto,
1958 font/devlatin1/R.proto: Remove entry for `.i'.
1959 * font/devdvi/generate/textt.map: Add entry for `ad'.
1960 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
1961 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
1962 We need this for getting kerning values to compose `/l' and `/L'.
1963 * font/devdvi: Regenerated font definition files for CM fonts.
1964 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
1965 * font/devutf8/R.proto: Ditto.
1966 Remove double entry for `ti'.
1968 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
1969 for (groff) ligatures, `la', and `ra'.
1970 Add "'C", "'c", `IJ', and `ij'.
1971 Remove double entry for `ti'.
1972 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
1974 Add "'C", "'c", `IJ', and `ij'.
1975 Fix entries for (groff) ligatures, `la', and `ra'.
1977 * tmac/ps.tmac (ps-achar): New macro.
1978 Define "'c" and "'C".
1979 * tmac/tty.tmac: Add entry for `.i'.
1980 * tmac/X.tmac (X-achar): New macro.
1981 Define "'c", "'C", and `:Y'.
1982 Add entries for `IJ' and `ij'.
1983 * tmac/Xps.tmac (Xps-achar): New macro.
1984 Define "'c" and "'C".
1985 Add entries for `IJ' and `ij'.
1986 * tmac/lbp.tmac (lbp-achar): New macro.
1987 Add fallback characters for all groff ligatures and many other
1989 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
1990 Add entries for `/l' and `/L'.
1991 Define "'c" and "'C".
1992 Add entries for `IJ' and `ij'.
1994 2002-11-02 Larry Kollar <kollar@alltel.net>
1996 * PROBLEMS: Document how to solve Mac OS X compilation problems.
1998 2002-11-02 Werner LEMBERG <wl@gnu.org>
2000 Adding support for composite glyphs: \[xxx yyy ...] and the
2001 `composite' request.
2003 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2004 to Unicode-based glyph names.
2005 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2006 glyph names to groff glyph names.
2007 * src/roff/troff/uniuni.cc: New file for canonically decomposing
2008 Unicode-based glyph names.
2009 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2010 for handling Unicode glyph names.
2011 * src/roff/troff/input.cc: Include unicode.h.
2012 (composite_glyph_name): New function.
2013 (token::next) <'['>: Handle Unicode glyph names and composite
2015 (composite_dictionary): New dictionary for the `composite' request.
2016 (composite_request): Implement `composite' request.
2017 (init_input_requests): Add `composite'.
2018 Alphabetically sorted.
2019 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2021 (init_env_requests): Alphabetically sorted.
2022 Removed `tas' and `tar' (already commented out).
2023 * src/roff/troff/Makefile.sub: Updated.
2025 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
2027 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2030 2002-10-29 Werner LEMBERG <wl@gnu.org>
2032 Fix computation of .trunc register. Additionally, its value (and
2033 the value of the .ne register) is now always set before entering the
2036 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2037 `needed_space' before calling `space'.
2038 (top_level_diversion::space): Remove special code for 'sp before the
2040 Call `begin_page' with the discarded space as a parameter.
2041 (top_level_diversion::begin_page): Add optional parameter to set
2043 * src/roff/troff/div.h: Updated.
2045 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2048 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2049 (LP): Remove superfluous call to `br'.
2050 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2051 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2053 2002-10-26 Werner LEMBERG <wl@gnu.org>
2055 * tmac/doc-ditroff: Remove useless switch/variable -rC.
2056 (doc-setup-header): Don't set page register `%'.
2057 * tmac/doc-nroff: Remove variable `C'.
2058 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2059 (doc-setup-header): Don't set page register `%'.
2061 * tmac/doc-common (doc-header): Call `ns'.
2062 (doc-paragraph): Protect .sp with .br so that it survives traps
2063 possibly set by the user.
2064 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2066 * tmac/doc*: Replace ' with . for consistency if no effect.
2068 2002-10-26 Werner LEMBERG <wl@gnu.org>
2070 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2071 so that it survives traps possibly set by the user.
2073 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2074 (troff_output_file::set_font): Call flush_tbuf if necessary.
2075 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2076 flush_tbuf and do_motion only if necessary.
2077 (troff_output_file::start_special,
2078 troff_output_file::put_char_width, troff_output_file::put_char,
2079 troff_output_file::draw): Updated.
2080 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2081 vmotion_node::tprint): Undo change 2002-10-23.
2083 2002-10-25 Werner LEMBERG <wl@gnu.org>
2085 * tmac/www.tmac (DC): Fix case of overlapping images.
2087 2002-10-23 Werner LEMBERG <wl@gnu.org>
2089 * src/roff/troff/node.cc (troff_output_file::fill_color,
2090 troff_output_file::glyph_color): Set current color before testing
2092 (troff_output_file::put_char_width, troff_output_file::put_char,
2093 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2095 (troff_output_file::file_color, troff_output_file::glyph_color):
2097 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2098 vmotion_node::tprint): Move first, then call fill_color.
2100 2002-10-20 Werner LEMBERG <wl@gnu.org>
2102 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2103 possible to use multiple main macro packages.
2105 2002-10-19 Werner LEMBERG <wl@gnu.org>
2107 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2108 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2109 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2111 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2112 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2114 2002-10-16 Werner LEMBERG <wl@gnu.org>
2116 * NEWS, doc/webpage.ms: Updated.
2118 2002-10-14 Werner LEMBERG <wl@gnu.org>
2120 * src/roff/troff/node.cc (troff_output_file::put_char_width,
2121 troff_output_file::put_char, troff_output_file::fill_color,
2122 troff_output_file::glyph_color): Handle case where color pointer
2125 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
2127 Add the new -r option to grotty. It is similar to the -i option
2128 except it tells grotty(1) to use the "reverse video" attribute to
2129 render italic fonts.
2131 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2132 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2133 (tty_printer::make_underline, tty_printer::put_color,
2134 tty_printer::end_page): Use it.
2135 (main): Add -r switch.
2137 * src/devices/grotty/grotty.man: Document it.
2139 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
2141 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2142 cast to `unsigned char' to properly read patterns with 8bit
2145 2002-10-08 Werner LEMBERG <wl@gnu.org>
2147 * REVISION: Increased to 2.
2149 Version 1.18.1 released
2150 =======================
2152 2002-10-08 Werner LEMBERG <wl@gnu.org>
2154 * doc/webpage.ms, NEWS: Updated.
2156 2002-10-07 Werner LEMBERG <wl@gnu.org>
2158 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2159 suppress additional whitespace after the header.
2161 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2164 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2166 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
2168 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2169 (Dt): Use it to improve language localization (especially Russian
2172 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
2174 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2175 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2177 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2179 Call `picurve' for BSPLINE.
2180 (HGPrintElt): Handle BSPLINE.
2181 * src/preproc/grn/README: Document it.
2183 2002-10-03 Werner LEMBERG <wl@gnu.org>
2185 * src/roff/troff/node.cc (break_char_node::col): New variable.
2186 Updated constructor.
2187 (space_node::tprint, word_space_node::tprint): Call `fill_color'
2189 (space_node::space_node): Remove assertion.
2190 (break_char_node::add_self): Pass color argument to space node.
2191 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2193 * src/roff/troff/env.cc (environment::do_break,
2194 environment::add_padding): Ditto.
2196 2002-10-02 Werner LEMBERG <wl@gnu.org>
2198 Redesigning color support in troff. Colors are no longer
2199 represented as separate nodes but are now part of glyph nodes and
2200 friends. This fixes the current formatting misbehaviour due to the
2201 changes introduced on 2002-09-20. Some extra code is necessary for
2202 proper grotty support: Without adding color variables to
2203 space-related nodes, the background color would be changed too late.
2205 * src/roff/troff/node.h, src/roff/troff/node.cc:
2206 s/current_pagecolor/current_fill_color/.
2207 s/current_glyphcolor/current_glyph_color/.
2208 (glyph_color_node, fill_color_node): Removed.
2209 (node::get_glyph_color, node::get_fill_color): New virtual member
2211 (space_node::col): New variable.
2212 Updated constructors of space_node and derived classes accordingly.
2213 (hmotion_node::col): New variable.
2214 Updated constructors of hmotion_node and space_char_hmotion_node
2216 (vmotion_node::col): New variable.
2217 Updated constructor accordingly.
2218 (draw_node::gcol, draw_node::fcol): New variables.
2219 Updated constructor accordingly.
2220 (special_node::gcol, special_node::fcol): New variables.
2221 Updated constructors accordingly.
2222 (troff_output_file::put_char, troff_output_file::put_charwidth,
2223 troff_output_file::draw): Set glyph and fill color.
2224 (troff_output_file::start_special): Set glyph and fill color.
2225 Always set current font.
2226 (troff_output_file::fill_color, troff_output_file::glyph_color):
2227 Don't call `do_motion'.
2228 (glyph_node::gcol, glyph_node::fcol): New variables.
2229 Updated constructors of glyph_node and ligature_node accordingly.
2230 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2232 (glyph_node::merge_glyph_node,
2233 kern_pair_node::add_discretionary_hyphen,
2234 node::add_discretionary_hyphen): Updated.
2235 (break_char_node::merge_self): Updated.
2236 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2237 vmotion_node::tprint): Handle color.
2238 (make_glyph_node, make_node, node::add_char): Updated.
2240 * src/roff/troff/env.cc (environment::space_newline,
2241 environment::space, environment::output_line, environment::do_break,
2242 environment::make_tab_node, environment::add_padding, title):
2244 (environment_switch, environment_copy): Don't add color nodes.
2246 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2248 (token::next): Updated.
2249 \m and \M now are as transparent as \s.
2250 (process_input_stack, token::add_to_node_list, token::process,
2251 read_draw_node): Updated.
2252 (charinfo_to_node_list): Don't add color nodes.
2254 * doc/groff.texinfo: Updated.
2256 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
2258 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2261 2002-09-27 Colin Watson <cjwatson@debian.org>
2263 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2265 2002-09-23 Werner LEMBERG <wl@gnu.org>
2267 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2269 (DEFAULT_LINEWIDTH_FACTOR): New macro.
2270 (linewidth_factor): New global variable.
2271 (lbp_printer::set_line_thickness): Fix case for size < 0, using
2273 (long_options): Add -w/--linewidth option.
2275 (main): Handle -w option to set linewidth_factor.
2276 (lbp_printer::lbp_printer): Initialize req_linethickness, not
2279 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2281 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
2283 Fixed a bug in the line thickness setting code.
2285 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2287 (lbp_printer::set_line_thickness): Pass environment as second
2289 Implement it actually.
2290 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2291 and `set_line_thickness, depending on the current font size.
2293 2002-09-21 Werner LEMBERG <wl@gnu.org>
2295 Some Debian patches.
2297 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2298 * src/roff/troff/node.cc (bracket_node::copy): Initialize
2301 2002-09-20 Werner LEMBERG <wl@gnu.org>
2303 * configure: Regenerated with autoconf 2.54.
2305 2002-09-20 Werner LEMBERG <wl@gnu.org>
2307 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2309 Rename cur_fill_color to fill_color.
2310 * src/roff/troff/env.cc: Updated.
2312 2002-09-20 Werner LEMBERG <wl@gnu.org>
2314 * src/roff/troff/env.cc (title): Copy color status after processing
2316 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2317 fill color nodes to reset colors properly.
2319 * tmac/www.tmac (DC): Fix color handling.
2321 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2322 * doc/groff.texinfo: Fixing documentation of `tl' request.
2323 * doc/webpage.ms: Updated.
2325 2002-09-19 Werner LEMBERG <wl@gnu.org>
2327 * src/roff/troff/env.cc (environent_switch, environment_copy):
2328 Emit glyph and fill color nodes to initialize colors properly.
2330 2002-09-17 Colin Watson <cjwatson@debian.org>
2332 * src/roff/troff/env.cc (environment::set_glyph_color,
2333 environment::set_fill_color): Fix typo which prevented \m[] work
2336 2002-09-17 Werner LEMBERG <wl@gnu.org>
2338 Add left and right italic correction to non-slanted PS fonts. This
2339 is an experimental feature to improve image rendering of grohtml.
2341 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2342 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2343 * font/devps/*: All non-slanted fonts regenerated.
2346 2002-09-16 Werner LEMBERG <wl@gnu.org>
2348 Add a site-specific font directory.
2350 * Makefile.in (localfontdir, legacyfontdir): New variables.
2351 (fontpath): Use them.
2352 (MDEFINES, uninstall_dirs): Updated.
2353 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2354 Remove `FONTPATH' and `MACROPATH'.
2356 * src/roff/troff/troff.man, NEWS: Updated.
2357 * doc/groff.texinfo (Font Directories): New section.
2360 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2361 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2362 src/preproc/grn/grn.man: Minor fixes.
2364 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2365 Remove unused variable.
2367 2002-09-11 Werner LEMBERG <wl@gnu.org>
2369 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2370 * man/groff_out.man: Fix documentation of 'N'.
2372 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
2374 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2375 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2377 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2378 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2379 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2380 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2381 PRE_TAG>: Call `begin' with `FALSE'.
2383 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2385 * src/libs/libgroff/string.cc (string::extract): Fix position of
2386 terminating null byte.
2388 2002-09-08 Werner LEMBERG <wl@gnu.org>
2390 Add global option `nospaces' to tbl so that leading and trailing
2391 spaces in data items are ignored.
2393 * src/libs/libgroff/string.cc (string::remove_spaces): New member
2394 function to remove leading and trailing spaces.
2395 * src/include/stringclass.h: Updated.
2397 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2399 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2401 Fix typo in error messages.
2402 (process_data): Implement `nospaces' option.
2403 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2405 2002-09-07 Werner LEMBERG <wl@gnu.org>
2407 * src/include/config.hin: Add `HAVE_ISATTY'.
2408 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2410 * src/libs/libgroff/tmpname.cc: Include `time.h'.
2411 * src/libs/libdriver/input.cc (Char): Add `operator==' and
2412 `operator!=' for `char'.
2413 * doc/groff.texinfo: Replace @ifnottex block for top node with
2416 2002-09-06 Werner LEMBERG <wl@gnu.org>
2418 * doc/Makefile.in (.texinfo.html): Add -I switch.
2419 * doc/groff.texinfo: Add @ifnottex block for top node to make
2420 translation to HTML work.
2422 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
2424 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2425 (get_papersize, determine_vertical_offset): Removed.
2426 (char_buffer::do_image): Always specify letter size.
2428 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2431 2002-09-05 Werner LEMBERG <wl@gnu.org>
2433 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2434 default indentation.
2436 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
2438 * src/preproc/html/pre-html.cc (imageList::createPage): Use
2440 (generateImages): Clean up push-back buffer.
2442 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2444 * doc/groff.texinfo: Minor fixes.
2446 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2448 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2449 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2451 (determine_vertical_offset): Use LETTER_LENGTH.
2452 (createPage): Moved to ...
2453 (imageList::createPage): This.
2454 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2455 (imageList::getMaxX): New function.
2456 (createImage): Moved to ...
2457 (imageList::createImage): This.
2458 (imageList::createImages): New function.
2459 (generateImages): Read `maxx' directly.
2461 (scanArguments): Don't specify `gsPaper' for `-o'.
2462 (makeTempFiles): Call `xtmpfile' with the last argument set to
2465 2002-08-24 Werner LEMBERG <wl@gnu.org>
2467 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2468 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2469 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2470 * src/preproc/html/pushback.cc: Include nonposix.h.
2471 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2474 2002-08-23 Werner LEMBERG <wl@gnu.org>
2476 Use $(OBJEXT) for the object file extension.
2478 * Makefile.comm (.SUFFIXES): Add .obj.
2479 (.cc.obj, .c.obj): New implicit rules.
2480 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2481 (MDEFINES): Add EXEEXT and OBJEXT.
2482 * */Makefile.sub: s/.o/.$(OBJEXT)/.
2484 2002-08-22 Werner LEMBERG <wl@gnu.org>
2486 * INSTALL: Mention texinfo 4.2 as a prerequisite.
2488 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2490 * src/devices/grohtml/post-html.cc (colType): Make enum global to
2492 (html_printer::update_min_max, html_printer::add_table_end): New
2494 (html_printer::lookahead_for_tables): Use them.
2495 Reset page offset correctly.
2496 (html_printer::~html_printer): Add creation of creator comment up.
2498 2002-08-20 Werner LEMBERG <wl@gnu.org>
2500 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2501 * man/groff_tmac.man: Fix typos.
2502 * man/groff_font.man: Minor reordering.
2503 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2504 * contrib/groffer/groffer.man: Fix typos.
2506 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2508 Avoid endless loops while scanning for tables.
2510 * src/devices/grohtml/post-html.cc (list::insert): Set
2512 (html_printer::next_horiz_pos): Add `text_glob' argument; update
2514 Return immediately if that argument is NULL.
2515 (html_printer::calc_nf): Don't test if `g' is NULL.
2516 (html_printer::lookahead_for_tables): Use
2517 `glyphs.move_right_get_data'.
2518 Don't test if `g' is NULL.
2520 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2522 A better fix, replacing fix 2002-08-15, for increasing SIZE.
2524 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2526 (char_block::char_block): Allocate `buffer'.
2527 (char_buffer::add_string): Use it.
2529 2002-08-15 Werner LEMBERG <wl@gnu.org>
2531 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2532 src/devices/grodvi/grodvi.man: Document default line thickness.
2534 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
2536 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2539 2002-08-14 Werner LEMBERG <wl@gnu.org>
2541 * doc/webpage.ms: Updated.
2543 2002-08-09 Werner LEMBERG <wl@gnu.org>
2545 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2548 2002-08-08 Aaron Campbell <aaron@monkey.org>
2550 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2553 2002-08-08 Werner LEMBERG <wl@gnu.org>
2555 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2558 Don't push back a space but a newline onto the stack.
2560 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
2562 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2565 * src/devices/grohtml/post-html.cc (html_printer::end_font,
2566 html_printer::start_font): Handle them.
2567 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2569 (html_text::do_bold): Don't reset italic and tt.
2570 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2571 * font/devhtml/DESC.proto: Add those fonts.
2572 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2574 2002-08-07 Werner LEMBERG <wl@gnu.org>
2576 * MORE.STUFF: Added gpresent.
2578 * tmac/trace.tmac: Show nesting level by a corresponding amount of
2579 whitespace before printing the logging message.
2581 2002-07-31 Colin Watson <cjwatson@debian.org>
2583 * src/devices/grohtml/html-table.cc (html_table::finish_row):
2584 Initialize `n' to zero. This fixes a segfault on ARM.
2586 2002-07-30 Werner LEMBERG <wl@gnu.org>
2588 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2590 2002-07-29 Werner LEMBERG <wl@gnu.org>
2592 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2595 2002-07-28 Colin Watson <cjwatson@debian.org>
2597 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2599 (html_printer::html_printer): Initialize `pointsize'.
2601 2002-07-26 Werner LEMBERG <wl@gnu.org>
2603 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2605 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2606 (gnu.eps): Add -rle switch to pnmtops.
2607 (distfiles): Add gnu.eps and gnu.png.
2609 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
2611 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2614 2002-07-24 Werner LEMBERG <wl@gnu.org>
2616 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2617 ' \+' but ' *' for sed.
2618 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2620 2002-07-23 Werner LEMBERG <wl@gnu.org>
2622 * doc/groff.texinfo: Document `papersize' keyword.
2623 * NEWS, man/groff_font.man: Updated.
2625 2002-07-23 Colin Watson <cjwatson@debian.org>
2627 Extend papersize keyword to accept more than a single entry. The
2628 first valid will be used.
2630 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2631 (font::scan_papersize): Really skip final newline.
2632 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2634 2002-07-23 Werner LEMBERG <wl@gnu.org>
2636 * configure.ac: Test for isatty.
2637 * configure: Regenerated.
2638 * src/include/posix.h: Check HAVE_ISATTY.
2639 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2640 * src/utils/lookbib/lookbib.cc: Include posix.h.
2641 Don't declare isatty.
2643 2002-07-21 Werner LEMBERG <wl@gnu.org>
2645 * NEWS: Add `output' request.
2647 * REVISION: Increased to 1.
2649 Version 1.18.0 released
2650 =======================
2652 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
2654 Allow internal glyph indices > 0xFF in grohtml for input characters.
2656 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
2658 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
2659 Updated all callers.
2660 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
2661 (html_printer): Updated.
2663 2002-07-19 Werner LEMBERG <wl@gnu.org>
2665 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
2666 * font/devutf8/R.proto: Adding some missing glyphs.
2667 * font/devutf8/NOTES: Updated.
2669 * tmac/dvi.tmac: Add more composite glyphs.
2670 * tmac/html.tmac: Updated.
2672 * man/groff_char.man: Add `sum' and `product' entities.
2676 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
2678 Improved table, tab, and indenting support.
2680 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
2681 string_iterator::suppress_newline_flag): Removed. Updated all
2682 function which have used it.
2684 * src/roff/troff/env.cc: Include `input.h'.
2685 (environment::add_node): Accept 0 as parameter.
2686 (environment::add_html_tag): Add `force' parameter.
2687 Updated all callers.
2688 (environment::add_html_tag_tabs): Ditto.
2689 For the moment, support left-aligned tabs only.
2690 (environment::make_html_tag): New function.
2691 (fill, no_fill): Set .br html tag additionally.
2692 (environment::newline): Emit `eol.ce' or `eol' tag for html.
2693 (environment::add_html_tag_eol): Removed.
2694 (tab_stops::distance_to_next_tab): Add variant for handling
2696 (environment::distance_to_next_tab): Ditto.
2697 Updated all callers.
2698 (environment::handle_tab): Handle tabs for html.
2700 * src/roff/troff/env.h: Updated.
2702 * src/roff/troff/div.cc: Updated all callers of
2703 `environment::add_html_tag'.
2705 * src/devices/grohtml/html-table.cc,
2706 src/devices/grohtml/html-table.h: New files.
2708 * src/devices/grohtml/html-text.cc (html_text): New members
2709 `blank_para' and `start_space'.
2710 (html_text::issue_tag): Don't emit TABLE_TAG.
2711 Handle indentation for PRE_TAG and P_TAG.
2712 (html_text::end_tag): Updated.
2713 (html_text::table_is_void, html_text::issue_table_begin,
2714 html_text::issue_table_end): Removed.
2715 (html_text::do_push): Simplified.
2716 [DEBUGGING]: Small fix.
2717 (html_text::push_para): Add new parameter for indentation; updated
2720 (html_text::do_indent, html_text::do_table, html_text::done_table,
2721 html_text::is_in_table): Removed.
2722 (html_text::do_pre): Handle P_TAG also.
2723 (html_text::shutdown): Handle p->indent.
2724 (html_text::check_emit_text): Simplified.
2725 (html_text::do_emittext): Reset `blank_para'.
2726 (html_text::do_para): Add new parameter for indentation; updated
2728 (html_text::remove_indent): New function.
2729 (html_text::do_space): Handle verbatim text properly.
2730 (html_text::ever_emitted_text, html_text::starts_with_space,
2731 html_text::remove_para_align): New functions.
2732 (html_text::dump_stack_element, html_text::dump_stack): Updated.
2734 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
2737 * src/devices/grohtml/post-html.cc: Include html-table.h.
2738 (INDENTATION): Removed.
2739 (text_glob): Added many `is_<foo>' functions.
2740 Added table description `tab'.
2741 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
2743 (list): Add `insert' and `move_to' member functions.
2744 (page): Add `insert_tag' member function.
2745 (page::dump_page) [DEBUG_TABLES]: Improved.
2746 (html_printer): Add `table' and `max_linelength' elements.
2747 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
2748 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
2749 `remove_tabs', `remove_courier_tabs'.
2750 (html_printer::emit_raw): Handle indentation.
2751 (html_printer::do_center, html_printer::write_header): Updated.
2752 (html_printer::is_courier_until_eol): Check for tag.
2753 (html_printer::do_linelength): Handle max_linelength.
2754 (html_printer::do_page_offset, html_printer::do_indentation): Handle
2756 (html_printer::do_tempindent): Updated.
2757 (html_printer::do_indentedparagraph): Removed.
2758 (html_printer::do_indent): Simplified.
2759 (html_printer::do_eol): Use `ever_emitted_text'.
2760 (html_printer::do_flush, html_printer::do_links): Don't call
2762 (html_printer::do_break): Handle end_tempindent.
2763 (html_printer::troff_tag): Get argument.
2765 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
2766 (html_printer::flush_page): Call `lookahead_for_tables'.
2767 Don't call `done_table'.
2768 (html_printer::add_to_sbuf): Always call do_indent.
2770 * src/devices/grohtml/Makefile.sub: Updated.
2772 * tmac/an-old.tmac (TP): Don't handle html device specially.
2773 (an-do-tag-html): New function which will be used instead of
2774 `an-do-tag' if html device is used.
2776 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
2778 * tmac/s.tmac (@IP): Don't handle html device specially.
2779 (@IP-html): New function which will be used instead of `@IP' if
2780 html device is used.
2782 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
2783 is a hack which will eventually vanish again.
2784 (PIMG): Handle `-C' option correctly if not html.
2787 2002-07-17 Werner LEMBERG <wl@gnu.org>
2789 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
2791 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
2793 * contrib/pic2graph/pic2graph.*: Use convert(1).
2794 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
2796 2002-07-14 Bernd Warken <bwarken@mayn.de>
2798 * tmac/groff_trace.man: New file.
2799 * tmac/Makefile.sub: Updated.
2802 2002-07-13 Werner LEMBERG <wl@gnu.org>
2804 * src/roff/groff/groff.man: Add some cross references.
2806 2002-07-12 Werner LEMBERG <wl@gnu.org>
2808 * src/roff/troff/input.cc (substring_request): Add warnings for
2809 string indices out of range.
2811 2002-07-11 Werner LEMBERG <wl@gnu.org>
2813 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
2814 * font/devdvi/*EC: Regenerated.
2816 2002-07-10 Bernd Warken <bwarken@mayn.de>
2818 * man/groff_char.man: Updated and extended.
2820 2002-07-10 Werner LEMBERG <wl@gnu.org>
2822 * src/roff/troff/input.cc (length_macro): Renamed to...
2823 (length_request): This.
2824 Move call of `tok.next()' to the very end, otherwise the register
2825 value hasn't been updated yet.
2826 (init_input_requests): Updated.
2828 2002-07-09 Werner LEMBERG <wl@gnu.org>
2830 * src/roff/troff/input.cc (substring_macro): Renamed to...
2831 (substring_request): This.
2832 (init_input_requests): Updated.
2833 * src/roff/troff/request.h: Updated.
2835 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
2837 * src/roff/grog/grog.sh: Fix typo.
2839 2002-07-08 Werner LEMBERG <wl@gnu.org>
2841 * win32-diffs: Updated.
2843 Handle `papersize' keyword properly in DESC.
2845 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
2847 Updated all callers.
2848 * src/libs/libgroff/paper.cc: Add four more paper formats used by
2850 * src/include/paper.h: Updated.
2852 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
2853 Other minor C syntax fixes.
2854 (papersize, paperlength, paperwidth): Renamed to `user_*'.
2855 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
2857 (lbp_printer::lbp_printer): Pass three arguments.
2858 Set paper dimensions properly.
2859 (make_printer, main): Updated.
2860 (handle_unknown_desc_command): Fix error messages.
2861 (main): Handle papersize keyword in DESC properly.
2863 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
2865 (lbp_printer::lbp_printer): Pass an argument.
2866 Set paper_size properly.
2867 (handle_unknown_desc_command): Removed.
2868 (make_printer, main): Updated.
2869 * src/devices/grolj4/grolj4.man: Minor documentation fix.
2871 * man/groff_font.man, NEWS: Updated.
2873 2002-07-07 Werner LEMBERG <wl@gnu.org>
2875 Integrated eqn2graph, contributed by Eric S. Raymond.
2877 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
2879 * Makefile.in, NEWS: Updated.
2881 2002-06-04 Werner LEMBERG <wl@gnu.org>
2883 Changing the substring request to make it fit better with other
2884 string manipulation functions in other programming languages:
2885 Index 0 is now the first character in the string, and index -1
2886 indicates the last character. Since this request didn't work
2887 properly anyway in the last release, it doesn't harm too much to
2890 * src/roff/troff/input.cc (substring_macro): Use loops to get
2891 the real string length (ignoring COMPATIBLE_SAVE and
2892 COMPATIBLE_RESTORE) and offsets.
2893 Implement change described above.
2895 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
2896 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
2898 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
2900 2002-06-03 Werner LEMBERG <wl@gnu.org>
2902 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
2903 COMPATIBLE_RESTORE are completely ignored.
2905 * src/roff/troff/input.cc (char_list::set, char_list::get): New
2907 (macro): `length' field renamed to `len'.
2908 Added new field `empty_macro' (1 if macro is empty), to be used
2909 instead of checking `len'.
2910 Updated all callers.
2911 (macro::empty): Updated.
2912 (macro::length, macro::set, macro::get): New functions.
2913 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2915 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
2916 COMPATIBLE_RESTORE pairs.
2917 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2918 * src/roff/troff/request.h: Updated.
2920 * doc/groff.texinfo: Document .chop's behaviour better.
2922 2002-06-02 Werner LEMBERG <wl@gnu.org>
2924 * doc/pic.ms: Fix documentation for the addition of positions.
2926 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
2928 2002-06-29 Werner LEMBERG <wl@gnu.org>
2930 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
2932 * src/roff/troff/input.cc (have_string_arg): New global variable.
2933 (read_mode): New enumeration.
2934 (read_escape_name): Use it. Update all calls.
2935 (read_long_escape_name): Use it. Update all calls.
2936 Set have_string_arg if appropriate.
2937 (get_char_for_escape_name): Add parameter for handling space
2939 (interpolate_string_with_args, decode_string_args): New functions.
2940 (get_copy, token::next): Call it if necessary.
2941 (interpolate_string): Fix error message.
2943 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2946 2002-06-24 Bernd Warken <bwarken@mayn.de>
2948 * man/groff_tmac.man: Updated and extended.
2950 2002-06-24 Werner LEMBERG <wl@gnu.org>
2952 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
2954 2002-06-23 Werner LEMBERG <wl@gnu.org>
2956 * doc/pic.ms: Improve documentation of composite block objects.
2958 2002-06-22 Werner LEMBERG <wl@gnu.org>
2960 * src/roff/troff/input.cc (init_registers): Add three registers
2961 `seconds', `minutes', and `hours' to hold the current time.
2963 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2966 2002-06-20 Werner LEMBERG <wl@gnu.org>
2968 Make \X accept both `\ ' and `\~', converting them to single space
2971 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
2972 (token::unstretchable_space): New inline function.
2973 * src/roff/troff/input.cc (token::next, token::delimiter,
2974 token::description, token::add_to_node_list, token::process): Handle
2975 TOKEN_UNSTRETCHABLE_NODE.
2976 (encode_char): Handle tok.stretchable_space and
2977 tok.unstretchable_space.
2979 * NEWS, doc/groff.texinfo: Document it..
2981 2002-06-19 Werner LEMBERG <wl@gnu.org>
2983 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
2985 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
2986 keyword to enable/disable SGR output.
2987 (tty_printer::change_fill_color): New function.
2988 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
2990 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
2993 2002-06-18 Werner LEMBERG <wl@gnu.org>
2995 Add a `color' request and a `.color' register to control usage of
2998 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
2999 (color_flag): This (which is the inverse).
3000 (activate_color): New function.
3001 (main, init_input_requests): Updated.
3002 * src/roff/troff/troff.h, src/roff/troff/node.cc
3003 (troff_output_file::fill_color, troff_output_file::glyph_color):
3006 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3007 Document the changes.
3009 2002-06-17 Colin Watson <cjwatson@debian.org>
3011 Circumvent bug in autoconf 2.53 regarding top_builddir.
3013 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3014 * Makefile.in, doc/Makefile.in:
3015 s/@top_builddir@/@groff_top_builddir@/.
3016 * configure: Regenerated (with autoconf 2.53).
3018 2002-06-17 Werner LEMBERG <wl@gnu.org>
3020 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3021 `paperwidth' and `paperlength' for the `papersize' keyword.
3023 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
3025 * src/devices/grops/grops.man: Add info about Type 42 fonts.
3027 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
3029 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3030 html_printer::do_linelength, html_printer::do_pageoffset,
3031 html_printer::do_indentation, html_printer::do_tempindent,
3032 html_printer::do_break, html_printer::begin_page): Clear indented
3034 * tmac/html.tmac: Disable hyphenation.
3036 2002-06-15 Werner LEMBERG <wl@gnu.org>
3038 Don't produce HTML files if utility programs are missing.
3040 * Makefile.in (make_html, make_install_html): New variables.
3041 (MDEFINES): Updated.
3043 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3045 * configure.ac: Use it.
3046 * configure: Regenerated.
3048 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3049 (HTMLEXAMPLESFILES): This new variable.
3050 (EXAMPLESIMAGEFILES): Renamed to...
3051 (HTMLEXAMPLEIMAGEFILES): This.
3052 (CLEANADD): Add HTMLEXAMPLEFILES.
3053 (all): Use `make_html'.
3055 (install_data): Use `make_install_html'.
3056 Move html stuff to...
3057 (install_html): This new target.
3058 (uninstall_sub): Updated.
3060 2002-06-14 Bernd Warken <bwarken@mayn.de>
3062 * src/roff/grog/Makefile.sub (grog): Renamed to...
3064 (grog): New rule to always install grog.sh as grog.
3066 2002-06-08 Bernd Warken <bwarken@mayn.de>
3068 * src/roff/grog/grog.pl: Fix typo.
3070 2002-06-07 Werner LEMBERG <wl@gnu.org>
3072 * doc/groff.texinfo: Add more info on .tr arguments.
3074 2002-06-05 Werner LEMBERG <wl@gnu.org>
3076 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3078 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3079 * configure: Regenerated.
3081 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3083 * src/roff/troff/symbol.cc (table_sizes): Add more values.
3085 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3087 2002-06-04 Werner LEMBERG <wl@gnu.org>
3089 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3090 is not initialized at the time we need it in case `--prefix' hasn't
3091 been set. Check for `ac_default_prefix' also.
3092 Test for `papersize' keyword also and generalize allowed whitespace.
3093 * configure: Regenerated.
3095 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3098 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3100 (src_version, src_revision): New variables to avoid overwriting
3101 from parent make process.
3102 (version.cc): Updated.
3104 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3105 (linebuf, linebufsize): New global variables.
3106 (sys_fatal): Use `fatal' to abort properly.
3107 (get_line): New function.
3108 (get_resolution): Use it.
3109 Improve error messages.
3110 (get_papersize): Check `papersize' also.
3112 Improve error messages.
3114 2002-06-03 Werner LEMBERG <wl@gnu.org>
3116 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3117 should be removed only if builddir is not srcdir.
3118 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3119 (clean): Depend on `mostlyclean'.
3120 (distclean): Depend on `clean'.
3121 (realclean, extraclean): Depend on `distclean'.
3122 (.y.cc, .y.o): Simplified. The output files are no longer written
3123 to srcdir but to builddir.
3124 * Makefile.in (MDEFINES): Add `version' and `revision'.
3125 (uninstall_dirs): Fix order of directories.
3126 * doc/Makefile.sub (version, revision): Removed.
3127 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3128 Added `HTMLDOCFILES'.
3129 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3130 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3131 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3134 * doc/texinfo.tex (\authortt): New macro.
3135 (\shortcontt): Define.
3136 (\titlepage): Set \tt to \authortt while defining \authorfont.
3137 (\appendixbox): New macro.
3138 (\chapmacro, \appendixentry): Use \appendixbox to get even
3139 indentation for letters.
3140 (\summarycontents): Set \tt.
3141 (\internalpagesize): Add two arguments for real paper width and
3142 height as needed by pdfTeX.
3143 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3145 (\tempdima, \tempdimb): New temporary dimensions.
3146 (\pagesizesyyy): Updated.
3148 2002-06-02 Werner LEMBERG <wl@gnu.org>
3150 Adding a new keyword `papersize' to the DESC file format (similar
3151 but not completely identical to grolbp's extension). grops now has
3152 a -p command line option to override `papersize'. Finally, grolbp
3153 has been adapted to the new syntax.
3155 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
3156 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3158 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3159 (CCSRCS): Add `paper.cc'.
3161 * src/include/font.h (font): Add `papersize' element.
3162 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3163 (font::scan_papersize): New function.
3164 (font::load_desc): Use it for handling `papersize' keyword.
3165 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3167 * src/devices/grops/ps.cc: Include paper.h.
3168 (user_paper_length): New global variable.
3169 (ps_printer): Use paper length as initializer.
3170 (make_printer): Updated.
3171 (main): Handle new `-p' option.
3172 * src/devices/grops/grops.man: Updated.
3174 * src/devices/grolbp/lbp.cc: Include paper.h.
3175 s/papersizes/lbp_papersizes/.
3176 (set_papersize): Use new `papersizes' array.
3177 (handle_unknown_desc_command): Don't handle `papersize'.
3178 (main): Use `font::scan_papersize' for handling `-p' option.
3179 * src/devices/grolbp/grolbp.man: Updated.
3181 * man/groff_font.man: Document `papersize'.
3184 2002-05-30 Werner LEMBERG <wl@gnu.org>
3186 * src/devices/grops/TODO: Updated.
3187 * src/devices/grops/grops.man: More info on paper formats.
3188 * man/groff_font.man: Document `paperheight' and `paperwidth'.
3190 2002-05-29 Werner LEMBERG <wl@gnu.org>
3192 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3193 to list only if srcdir != currdir.
3194 (distfiles): New target.
3196 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3197 (NOMAKEDIRS): New variable.
3200 2002-05-26 Werner LEMBERG <wl@gnu.org>
3202 Add .output request, similar to \! at top-level.
3204 * src/roff/troff/input.cc (transparent): Remove unused declaration.
3205 (output_request): New function.
3206 (init_input_requests): Add it.
3208 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3211 * Makefile.in (MDEFINES): Add INSTALL_INFO.
3212 (prepare_examples): Fix typo.
3213 * doc/groff.texinfo (@direntry): Fix it.
3215 2002-05-25 Werner LEMBERG <wl@gnu.org>
3217 Including the doc subdir into groff's Makefile system.
3219 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3220 * configure.ac: Use it.
3221 Generate `doc/Makefile'.
3222 * configure: Regenerated.
3224 * Makefile.in (infodir, INSTALL_INFO): New variables.
3225 (MDEFINES, uninstall_dirs): Updated.
3226 (OTHERDIRS): Add `doc'.
3227 * Makefile.comm (CLEANDIRADD): New variable.
3228 (mostlyclean): Use it.
3230 * doc/Makefile.sub, doc/Makefile.in: New files.
3231 * doc/Makefile: Removed.
3233 * NEWS, INSTALL: Updated.
3235 2002-05-24 Werner LEMBERG <wl@gnu.org>
3237 * doc/homepage.ms: Renamed to ...
3238 * doc/webpage.ms: This.
3241 2002-05-23 Werner LEMBERG <wl@gnu.org>
3243 Integrating the `mom' macro package, contributed by Peter Schaffter
3246 * contrib/mom/*: New subdirectory tree.
3247 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3248 be used for documentation files.
3249 (MDEFINES, uninstall_dirs): Use them.
3250 (OTHERDIRS): Add contrib/mom.
3251 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3253 * MANIFEST, NEWS: Updated.
3255 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
3257 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3258 if at outer level; at start-up we are at outer level.
3260 * src/roff/troff/input.cc (do_suppress): Implement it.
3263 Add option -p to show progress information.
3264 pre-grohtml will now render only one page at a time, reducing the
3265 size of needed disk resources enormously.
3267 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3268 (imagePageName): New global variable.
3269 (psPageName, show_progress, currentPageNo): New global variables.
3270 (html_system): Close saved stderr and stdout handles.
3271 (write_end_image): Accept a parameter to control \O escape.
3272 (write_start_image): Adapted to new \O meaning.
3273 (char_buffer::write_upto_newline): Updated.
3274 (createAllPages): Replaced with...
3275 (createPage): This new function to create a single page for images.
3276 It uses `psselect' from the psutils package.
3277 (removeAllPages): Removed.
3278 (createImage): Updated.
3279 Handle progress display.
3280 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3281 (scanArguments): Add option -p.
3282 (makeTempFiles): Updated to create temp files for psPageName and
3284 (removeTempFiles): Removed.
3287 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3288 html_printer::write_header): Append `\0' to `buffer'.
3289 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3291 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3292 Handle `text_emitted'.
3293 (html_text::table_is_void): Slightly rewritten.
3294 (stop): New external symbol.
3295 (html_text::do_push) [DEBUGGING]: Use it and simplify.
3296 (html_text::shutdown): Call `dump_stack'.
3297 (html_text::do_space): Rewritten.
3298 * src/devices/grohtml/grohtml.man: Document -p and the need of
3301 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3303 Call \O[0] if `ps4html' is active.
3304 * tmac/s.tmac (@EQ, @EN): Handle html better.
3306 * tmac/html.tmac: Don't use black for background colour.
3308 * src/roff/troff/node.cc: Include `div.h'.
3309 (troff_output_file::really_print_line): Don't use `is_on'.
3310 (troff_output_file::word_marker, troff_output_file::flush_tbuf
3311 troff_output_file::check_charinfo,
3312 troff_output_file::put_char_width, troff_output_file::put_char,
3313 troff_output_file::determine_line_limits, troff_output_file::draw,
3314 real_output_file::begin_page, glyph_color_node::tprintf,
3315 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3317 (troff_output_file::really_on): Call `do_motion'.
3318 (suppress_node::tprint): Use `get_page_number' instead of `%'
3320 Call `reset_output_registers' conditionally on `is_on'.
3322 * doc/groff.texinfo: Document new syntax of \O.
3323 * NEWS, man/groff_diff.man: Updated.
3325 2002-05-22 Werner LEMBERG <wl@gnu.org>
3327 * MORE.STUFF: Add info about David Frey's deroff implementation.
3330 2002-05-16 Werner LEMBERG <wl@gnu.org>
3332 Pic's `with' attribute now accepts positions.
3334 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3335 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3337 (object_spec): Add rule for `WITH' and `position'.
3338 (relative_path): Give `corner' the precedence of `CHOP'.
3339 * src/preproc/pic/object.h (path): New members `pos' and
3341 * src/preproc/pic/object.cc: Updated initializers of `path'.
3342 (path::follow): Handle `is_position'.
3344 * doc/pic.ms: Completely updated grammar description.
3345 Many typographical improvements.
3347 2002-05-15 Werner LEMBERG <wl@gnu.org>
3349 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3350 code of x in range 0-127) also.
3351 * doc/groff.texinfo, man/groff_diff.man: Updated.
3353 Added keywords `north', `south', `east', and `west' for corners
3356 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3358 (yylex): Handle them.
3359 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3360 (corner): Handle them.
3362 2002-05-14 Werner LEMBERG <wl@gnu.org>
3364 * src/devices/grops/grops.man: Clarify handling of `download' file.
3366 2002-05-11 Werner LEMBERG <wl@gnu.org>
3368 Adding `warnscale' and `spreadwarn' requests, based on a patch from
3369 Jeffrey Friedl <jfriedl@yahoo.com>.
3371 * src/roff/troff/input.cc (spread_limit, warn_scale,
3372 warn_scaling_indicator): New global variables.
3373 (warnscale_request, spreadwarn_requests): New functions.
3374 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3375 (init_input_requests): Updated.
3376 (error_type): Add `OUTPUT_WARNING'.
3377 (do_error): Handle it.
3378 (output_warning): New warning function which shows output location.
3379 * src/roff/troff/env.h (spread_limit): New external variable.
3380 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3382 (distribute_space): Emit warning if added space is larger than
3384 (environment::possibly_break_line): Emit warning if a line can't
3385 be adjusted on both sides.
3387 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3389 2002-05-08 Werner LEMBERG <wl@gnu.org>
3391 * src/roff/troff/node.cc (special_node::special_node): Use
3392 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
3393 \X''\% crashes, for example.
3395 * doc/groff.texinfo: Document \! and \? used at top-level.
3397 2002-05-06 Werner LEMBERG <wl@gnu.org>
3399 * src/preproc/pic/pic.man: Fix some keyword syntax.
3400 Other minor typographical fixes.
3402 * src/roff/groff/groff.man: Fix typos.
3404 2002-05-04 Werner LEMBERG <wl@gnu.org>
3406 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3407 (ShortOpt[]): This to avoid problems with refer.
3409 * doc/pic.ms: Fix typo.
3410 Fix pic grammar description.
3412 * tmac/an-old.tmac (ne): Use de1, not de.
3414 2002-05-03 Werner LEMBERG <wl@gnu.org>
3416 * doc/groff.texinfo: Finished separation of glyphs and characters.
3417 Don't use the string `Appendix' for appendix headers (both in
3418 the text and the table of contents).
3419 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3422 Use registers LL and LT (similar to -ms) for controlling the
3423 length of title and line, respectively, in the -man and -mdoc
3426 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3427 (doc-setup-page-layout): Use \n[LL] and \n[LT].
3428 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3430 (an-header, an-p-footer): Use \n[LT].
3431 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3432 doc/groff.texinfo: Document it.
3434 2002-05-02 Werner LEMBERG <wl@gnu.org>
3436 * doc/fdl.texi: New file.
3437 * doc/groff.texinfo: Include it.
3438 Define and use @copying.
3439 Starting with separating glyph, symbol, and character.
3441 2002-04-27 Werner LEMBERG <wl@gnu.org>
3443 * Makefile.in (EXEEXT): Set it.
3444 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3447 * src/include/nonposix.h: Define GS_NAME.
3448 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3450 Some preliminary changes for EMX support under OS/2.
3452 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3453 __EMX__ similar to __MSDOS__.
3454 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3456 2002-04-25 Werner LEMBERG <wl@gnu.org>
3458 * doc/groff.texinfo: Integrated groff_out.man.
3461 2002-04-23 Werner LEMBERG <wl@gnu.org>
3463 * man/groff_out.man: Minor fixes.
3465 2002-04-23 Werner LEMBERG <wl@gnu.org>
3467 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3468 correct page references.
3469 Fixed many index entries.
3471 2002-04-23 Bernd Warken <bwarken@mayn.de>
3473 * man/roff.man: Enlarged.
3475 2002-04-22 Werner LEMBERG <wl@gnu.org>
3477 * doc/groff.texinfo: More examples, other fixes.
3479 2002-04-20 Werner LEMBERG <wl@gnu.org>
3481 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3482 will now form a chain, e.g.
3491 This is for compatibility with plan 9's troff.
3493 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3497 * doc/groff.texinfo: Add documentation of remaining requests and
3500 2002-04-19 Werner LEMBERG <wl@gnu.org>
3502 * doc/groff.texinfo: Add documentation of remaining escapes.
3504 * font/devdvi/generate/tc.map: Remove entry for `sr'.
3505 * font/devdvi/*TC: Regenerated.
3507 2002-04-18 Werner LEMBERG <wl@gnu.org>
3509 * src/roff/troff/input.cc (token::next): Make \H behave consistently
3510 if not in compatibility mode, i.e., increment relative to the
3512 * doc/groff.texinfo: Updated accordingly.
3514 2002-04-17 Werner LEMBERG <wl@gnu.org>
3516 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3518 2002-04-16 Bernd Warken <bwarken@mayn.de>
3520 * src/roff/groff/groff.man: Improve documentation of -P option.
3523 2002-04-15 Werner LEMBERG <wl@gnu.org>
3525 Add new escape \F to switch font family.
3527 * src/roff/troff/input.cc (token::next): Handle \F.
3528 * src/roff/troff/env.cc (environment::set_family): Handle
3530 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3533 2002-04-14 Werner LEMBERG <wl@gnu.org>
3535 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3538 2002-04-13 Werner LEMBERG <wl@gnu.org>
3540 Implement \f[] as an alternative to \fP. Change \mP and \MP to
3541 \m[] and \M[], respectively.
3543 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3544 (symbol::symbol): Handle NULL string and empty string differently.
3545 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3546 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3547 Add optional parameter.
3548 Updated calling functions.
3549 (get_copy, do_glyph_color, do_fill_color, token::next): Use
3551 * src/roff/troff/env.cc (environment::set_font): Ditto.
3553 * src/preproc/pic/troff.cc (troff_output::set_fill,
3554 troff_output::reset_color: Updated.
3556 * tmac/www.tmac: Updated.
3558 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3559 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3562 * tmac/Xps.tmac: Remove some redundant code.
3564 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3565 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3566 man/groff_out.man, man/groff.man, man/groff_diff.man,
3567 src/roff/groff/groff.man: Replace \f[P] with \f[].
3569 2002-04-13 Bernd Warken <bwarken@mayn.de>
3571 * src/include/printer.h, src/libs/libdriver/printer.cc
3572 (printer::change_fill_color): New member function.
3573 * src/libs/libdriver/input.cc (parse_D_command): Use it.
3575 2002-04-12 Werner LEMBERG <wl@gnu.org>
3577 * doc/groff.texinfo: Completed pass on gtroff reference.
3579 2002-04-11 Werner LEMBERG <wl@gnu.org>
3581 * doc/groff.texinfo: More fixes.
3583 2002-04-11 Bernd Warken <bwarken@mayn.de>
3585 * src/include/color.h: Decorate with `const'.
3588 * src/libs/libgroff.color.cc: Decorate with `const'.
3590 (color::color): Initialize members.
3591 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3592 command according to the documentation.
3594 * man/groff_out.man: Updated.
3597 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
3599 * src/preproc/html/pre-html.cc (write_start_image): Remove
3601 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3603 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3604 \C'hy' caused an assertion failure.
3606 * src/roff/troff/env.cc (environment::environment): Initialize
3608 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3610 2002-04-10 Werner LEMBERG <wl@gnu.org>
3612 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3613 Document pvs request and .pvs register.
3615 2002-04-09 Werner LEMBERG <wl@gnu.org>
3617 * doc/groff.texinfo: Improve and fix documentation of diversions
3620 2002-04-08 Werner LEMBERG <wl@gnu.org>
3622 * doc/groff.texinfo: Fix documentation of drawing functions.
3625 2002-04-07 Werner LEMBERG <wl@gnu.org>
3627 * doc/groff.texinfo: Better documentation of double quotes as
3631 2002-04-06 Werner LEMBERG <wl@gnu.org>
3633 * man/groff_font.man: Document names of special characters better.
3634 * doc/groff.texinfo: Minor improvements.
3636 * tmac/lbp.tmac: Load latin1.tmac.
3637 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3639 * font/devX*/*: Regenerated (all chars > 0x80 removed).
3641 2002-04-05 Werner LEMBERG <wl@gnu.org>
3643 * tmac/tty.tmac: Don't use shc request.
3644 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3647 * man/groff_diff.man: Minor fixes.
3649 * font/devlbp/*: Remove all `charXXX' entities.
3651 * src/libs/libgroff/font.cc (font::~font): Deallocate
3652 `special_device_coding'.
3653 (font::load): Use `new' for allocating `special_device_coding'.
3654 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
3655 Removed unused member.
3657 2002-04-05 Werner LEMBERG <wl@gnu.org>
3659 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
3660 (resource_manager::do_begin_binary,
3661 resource_manager::do_begin_data): Use it.
3663 * doc/texinfo.tex: Updated to version 4.2.
3665 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
3666 (token::zero_width_break): New inline function.
3667 * src/roff/troff/input.cc (token::next): Use it.
3668 (token::description): Updated.
3669 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
3670 (token::add_to_node_list, token::process): Use it.
3671 * NEWS, doc/groff.texinfo: Updated.
3673 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
3674 * tmac/tty.tmac: Add missing backslash.
3676 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
3678 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
3679 `.ps' register instead of `.s' to handle fractional point sizes.
3680 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
3681 limit_box::output): Ditto.
3682 * src/preproc/eqn/other.cc (size_box::compute_metrics,
3683 size_box::output): Ditto.
3684 * src/preproc/eqn/over.cc (over_box::compute_metrics,
3685 over_box::output): Ditto.
3686 * src/preproc/eqn/script.cc (script_box::compute_metrics,
3687 script_box::output): Ditto.
3688 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
3689 sqrt_box::output): Ditto.
3691 2002-04-03 Michael Selway <mas@ssl.co.uk>
3693 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
3696 2002-04-03 Werner LEMBERG <wl@gnu.org>
3698 * doc/homepage.ms: Reduce title size.
3699 * doc/groff.texinfo: Fix documentation of .t register.
3700 Fix handling of colon.
3703 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
3704 only if page length is positive to avoid a loop.
3706 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
3709 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
3711 * src/include/nonposix.h, src/roff/groff/pipeline.c:
3712 s/__CYGWIN32__/__CYGWIN__/.
3714 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
3716 * doc/gnu.xpm: New image contributed by Emily Mulley.
3717 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
3718 (homepage.html): Be dependent on gnu.eps.
3719 * doc/homepage.ms: Updated to new image.
3721 * src/devices/grohtml/post-html.cc (html_printer): New member
3723 (html_printer::flush_sbuf, html_printer::set_char): Set it.
3724 (html_printer::sbuf_continuation): Use it.
3726 2002-03-28 Werner LEMBERG <wl@gnu.org>
3728 * src/libs/libgroff/getopt.c: Updated to latest version.
3730 * tmac/README: More on hyphen.tex license.
3732 2002-03-26 Larry Kollar <kollar@alltel.net>
3734 * doc/groff.texinfo: Add documentation of most missing requests.
3736 2002-03-25 Werner LEMBERG <wl@gnu.org>
3738 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
3739 of `+-', `mu', and `di', respectively.
3741 * font/devascii/R.proto, font/devutf8/R.proto,
3742 font/devlatin1/R.proto, font/devhtml/R.proto,
3743 font/devcp1047/R.proto, font/devlpb/*: Add them.
3744 * font/devps/generate/textmap: Ditto.
3745 * font/devps/*: Regenerated.
3746 * font/devlj4/generate/text.map: Add them.
3747 * font/devlj4/*: Regenerated.
3748 * font/devdvi/generate/tc.map: Use them.
3749 * font/devdvi/generate/texsy.map: Add them.
3750 * font/devdvi/*: Regenerated.
3751 * font/devX*/*: Regenerated.
3753 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
3754 tmac/tty-char.tmac: Updated.
3756 * NEWS, man/groff_char.man: Updated.
3758 2002-03-24 Werner LEMBERG <wl@gnu.org>
3760 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
3761 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
3762 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
3763 we use `.fchar' in dvi.tmac.
3764 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
3765 * tmac/Xps.tmac: Simplify some char definitions.
3766 Add definition for \[f/].
3767 * man/groff_char.man: Updated for new X.tmac.
3769 * tmac/README: New file.
3771 2002-03-23 Phil Lobbes <phil@perkpartners.com>
3773 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
3774 internal .y.o rule took precendence over the .y.cc rule, compiling
3775 the yacc files with gcc instead of g++.
3777 2002-03-23 Werner LEMBERG <wl@gnu.org>
3779 * tmac/dvi.tmac: Add replacement font for `CB'.
3781 * tmac/doc.tmac: s/request/macro/ in messages.
3782 (doc-generic-macro): Improve error message.
3783 * tmac/groff_mdoc.man: Minor improvements.
3785 2002-03-22 Werner LEMBERG <wl@gnu.org>
3787 * doc/groff.texinfo: Document possible conflict between `tr' and
3790 2002-03-21 Werner LEMBERG <wl@gnu.org>
3792 Improve handling of hyphenation patterns. It is now possible to
3793 use most of TeX's pattern files unmodified. To make the process
3794 more flexible, a new request `hpfcode' has been added which
3795 provides a character code mapping for the `hpf' request. See
3796 comment before hpf_getc() for more details.
3798 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
3800 (read_patterns_file): Additional parameter for exception dictionary.
3801 Extended to recognize \pattern, \hyphenation, and \endinput.
3802 (do_hyphenation_patterns_file): Updated.
3803 * src/roff/troff/env.h (hpf_code_table): New extern.
3805 * src/roff/troff/input.cc (hpf_code_table): New array.
3806 (init_hpf_code_table, hyphenation_patterns_file_code): New
3808 (hyphenation_code): Handle translation from `trin' correctly.
3809 (main, init_input_requests): Updated.
3810 (charinfo::set_translation): Handle hyphenation code also.
3812 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
3815 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
3816 char' is used for offsets in hyphenation exceptions.
3818 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
3820 * NEWS, man/groff_diff.man, man/groff.man: Document it.
3822 2002-03-20 Larry Kollar <kollar@alltel.net>
3824 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
3827 2002-03-18 Werner LEMBERG <wl@gnu.org>
3829 * tmac/html.tmac: Fix serious typo.
3831 2002-03-17 Larry Kollar <kollar@alltel.net>
3833 * doc/groff.texinfo: Add documentation for `writec' request.
3835 2002-03-17 Werner LEMBERG <wl@gnu.org>
3837 Added request `hpfa' to append hyphenation patterns.
3839 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3841 (hyphenation_patterns_file): Renamed to...
3842 (do_hyphenation_patterns_file): This.
3843 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
3845 (init_hyphen_requests): Updated.
3846 * NEWS, man/groff.man, man/groff_diff.man: Document it.
3848 2002-03-16 Werner LEMBERG <wl@gnu.org>
3850 Added request `writec' in analogy to `tmc'.
3852 * src/roff/troff/input.cc (write_request): Renamed to...
3853 (do_write_request): This.
3854 Added one parameter.
3855 (write_request, write_request_continue): New functions.
3856 (init_input_requests): Updated.
3857 * NEWS, man/groff.man, man/groff_diff.man: Document it.
3859 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
3861 * NEWS: Document it.
3863 2002-03-15 Werner LEMBERG <wl@gnu.org>
3865 * man/groff.man: Add writem request.
3867 Add request `trin' (translate input) to make `.asciify' work
3868 correctly. This is necessary since `charXXX' entity names are no
3869 longer hardcoded in font definition files.
3871 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
3872 `translate_input' members.
3873 (charinfo::set_asciify_code, charinfo::get_asciify_code,
3874 charinfo::set_translation_input): New methods.
3875 (charinfo::set_translation): Add third argument.
3876 * src/roff/troff/input.cc (charinfo:set_translation): Set
3878 (do_translate): Add second argument.
3879 (translate_input): New function.
3880 (init_input_requests): Updated.
3881 * src/roff/troff/node.cc (glyph_node::asciify,
3882 composite_node::asciify): Use `get_asciify_code'.
3884 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
3886 * NEWS, man/groff.man, man/groff_diff.man: Updated.
3888 2002-03-14 Larry Kollar <kollar@alltel.net>
3890 * doc/groff.texinfo: Improve documentation of .RS and .RE.
3892 2002-03-14 Werner LEMBERG <wl@gnu.org>
3894 Add a new request `sizes' similar to the `sizes' command in DESC
3897 * src/roff/troff/env.cc (override_sizes): New function.
3898 (init_env_requests): Use it.
3899 * src/roff/troff/token.h: Export `read_string'.
3900 * NEWS, man/groff_diff.man, man/groff.man: Document it.
3902 2002-03-12 Werner LEMBERG <wl@gnu.org>
3904 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
3906 2002-03-10 Werner LEMBERG <wl@gnu.org>
3908 * tmac/pspic.tmac: Add support for -Tdvi.
3909 * tmac/dvi.tmac: Include pspic.tmac.
3910 * src/devices/grodvi/grodvi.man: Document it.
3913 * font/devlj4/generate/Makefile: Fix URL of metric files.
3915 2002-03-09 Werner LEMBERG <wl@gnu.org>
3917 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
3919 2002-03-09 Larry Kollar <kollar@alltel.net>
3921 * tmac/groff_ms.man: Add documentation for RS and RE macros.
3923 2002-03-08 Werner LEMBERG <wl@gnu.org>
3925 * doc/groff.texinfo: Fixes for texinfo 4.1.
3927 2002-03-07 Werner LEMBERG <wl@gnu.org>
3929 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
3931 Handle CYGWIN properly.
3933 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
3935 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
3936 * tmac/lbp.tmac: Add some font translations.
3938 2002-03-02 Werner LEMBERG <wl@gnu.org>
3940 * font/devcp1047/R.proto, font/devlatin1/R.proto,
3941 font/devhtml/R.proto: Remove `charXXX' entries.
3942 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
3945 * font/devlj4/generate/text.map: Remove `charXXX' entries.
3946 * font/devlj4/*: Regenerated all font definition files.
3947 * tmac/lj4.tmac: Load latin1.tmac.
3949 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
3950 from 2000-06-17: LJ4 metric files are *not* text files.
3952 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
3953 register to test for EBCDIC.
3955 2002-03-01 Werner LEMBERG <wl@gnu.org>
3957 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
3958 files (as grops already does).
3959 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
3961 * src/devices/grops/grops.man: Document comment lines in encoding
3964 * tmac/cp1047.tmac: New file.
3965 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
3966 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
3967 * tmac/Makefile.sub (NORMALFILES): Updated.
3969 * tmac/ec.tmac: Don't load latin1.tmac again.
3971 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
3972 font/devps/generate/dingbats.map,
3973 font/devps/generate/dingbats.rmap, font/devps/text.enc,
3974 font/devps/generate/Makefile (symbolmap): Add header comment.
3975 * font/devps/generate/textmap: Ditto.
3976 Remove `charXXX' entries.
3977 * font/devps/symbolmap: Regenerated.
3978 * font/devps/*: Regenerated all font definition files.
3980 2002-02-28 Werner LEMBERG <wl@gnu.org>
3982 Add color support to grodvi (for drawing colors are currently
3983 translated to gray values).
3985 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
3986 (dvi_printer): Add `cur_color' member.
3987 (dvi_printer::set_color): New function.
3988 (draw_dvi_printer): Remove `fill'.
3989 (draw_dvi_printer::fill_next): Pass environment as parameter.
3990 Update code for new color support translated to gray.
3991 (dvi_printer::set_char): Updated.
3992 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
3993 changes crossing the page border.
3994 (dvi_printer::draw): Updated.
3995 Remove cases `f' and `F'.
3996 * tmac/dvi.tmac: Add color definitions.
3997 * NEWS, src/devices/grodvi/grodvi.man: Updated.
3999 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4002 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4003 versions of autoconf.
4004 * configure: Updated.
4006 * doc/homepage.ms: Use `.blm'.
4007 * tmac/www.tmac (www-depth): New auxiliary variable.
4008 (www-pop-level): Don't issue HTML tag.
4009 (ULS, ULE, LI): Use absolute indentation.
4011 * src/devices/grops/ps.cc (ps_printer::begin_page,
4012 ps_printer::end_page): Switch forth and back to default color while
4013 starting a new page.
4015 2002-02-27 Werner LEMBERG <wl@gnu.org>
4017 Add EC and TC fonts to devdvi.
4019 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4020 * font/devdvi/generate/cork.map: Renamed to...
4021 * font/devdvi/generate/ec.map: This.
4022 Remove entry for `aq'.
4023 * font/devdvi/generate/tc.map: New file.
4024 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4027 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4028 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4029 * tmac/ec.tmac: New file.
4030 * tmac/Makefile.sub (NORMALFILES): Updated.
4031 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4032 * man/groff_char.man: Check `ECFONTS' register.
4034 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4036 2002-02-26 Werner LEMBERG <wl@gnu.org>
4038 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4039 * font/devdvi/generate/cork.map: Add 'y and 'Y.
4040 * font/devdvi/*: Updated.
4041 * tmac/dvi.tmac: Formatting.
4043 Add font `HBI' for the dvi output.
4044 Add support for font families `T' and `H'.
4046 * font/devdvi/HBI: New file.
4047 * font/devdvi/B: Renamed to ...
4048 * font/devdvi/TB: This.
4049 * font/devdvi/BI: Renamed to ...
4050 * font/devdvi/TBI: This.
4051 * font/devdvi/I: Renamed to ...
4052 * font/devdvi/TI: This.
4053 * font/devdvi/R: Renamed to ...
4054 * font/devdvi/TR: This.
4055 * font/devdvi/H: Renamed to ...
4056 * font/devdvi/HR: This.
4057 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4058 * font/devdvi/generate/Makefile (HBI): New rule.
4060 (R, I, B, BI, H): Renamed to ...
4061 (TR, TI, TB, TBI, HR): This, respectively.
4063 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4064 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4065 Add `styles' and `family' keywords.
4066 * tmac/dvi.tmac: Alias `H' to `HR'.
4067 Add some fspecial requests for italic fonts.
4068 Add TR and TI as special.
4069 Add support for `_' with font CWI.
4071 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4072 operator `:'. Until now, the expression `0:1' would return 2
4075 2002-02-25 Werner LEMBERG <wl@gnu.org>
4077 * man/groff_char.man: Added some missing PS glyph names (from the
4079 * font/devps/generate/textmap, font/devps/symbolmap: Add
4082 * doc/groff.texinfo: Minor additions and fixes.
4083 * man/groff_diff.man: Remove documentation of fp request. This
4084 is already covered in the original troff manual.
4085 Updated to be consistent with other doc files.
4088 2002-02-24 Werner LEMBERG <wl@gnu.org>
4090 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4092 Define new variable OTHERDEVDIRS (containing `font/devlj4
4093 font/devlbp' if not EBCDIC).
4094 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4095 (OTHERDEVDIRS): New variable.
4096 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4097 * configure: Regenerated.
4099 * NEWS, src/devices/grotty/grotty.man: Updated.
4101 2002-02-23 Werner LEMBERG <wl@gnu.org>
4103 * src/roff/troff/input.cc (do_overstrike, do_bracket,
4104 get_line_arg): Honour input level.
4106 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4108 * font/*/*: Implement it in all font files.
4109 * font/devps/generate/textmap, font/devps/generate/symbolchars,
4110 * font/devps/symbolmap: Updated.
4111 * font/devlj4/generate/text.map: Updated.
4112 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4113 * font/devdvi/generate/texmi.map: Updated.
4115 * font/devutf8/R.proto: Remove all `charXXX' entries.
4116 * font/devutf8/NOTES: Updated.
4118 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4121 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4123 * NEWS, man/groff_char.man: Updated.
4125 2002-02-21 Phil Lobbes <phil@perkpartners.com>
4127 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4129 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4131 * src/roff/grog/grog.pl: Fix computation of $refer.
4133 2002-02-19 Werner LEMBERG <wl@gnu.org>
4135 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4136 `snprintf' and `vsnprintf'.
4138 * src/include/htmlindicate.h: Renamed to...
4139 * src/include/htmlhint.h: This.
4140 * src/include/Makefile.sub: Updated.
4141 * src/preproc/eqn/main.cc: Updated.
4143 2002-02-18 Werner LEMBERG <wl@gnu.org>
4145 * man/roff.man, man/groff_out.man, man/groff.man,
4146 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4147 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4149 * win32-diffs: Updated.
4151 2002-02-17 Werner LEMBERG <wl@gnu.org>
4153 * doc/Makefile (clean): Add *.eps.
4154 (MEMACROS): Removed.
4155 (TFLAG): New variable.
4158 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4160 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4162 * tmac/www.tmac: Use dummy diversion while resetting and disabling
4164 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4166 * src/roff/troff/troff.man: Fix order of parameter description.
4170 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
4172 Simplify image handling for grohtml.
4175 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4177 (html_text::dump_stack): Don't emit newline while debugging.
4178 (html_text::do_push) [DEBUGGING]: Print more info.
4179 (html_text::check_emit_text): Fix handling of <p>.
4180 * src/devices/grohtml/html.h: Updated.
4181 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4182 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
4183 send its data to stderr also.
4185 (simple_output::space_or_newline) [DEBUGGING]: Removed.
4186 * src/devices/grohtml/post-html.cc (html_printer::do_links,
4187 html_printer::html_printer): Remove `DEBUGGING' conditionals.
4189 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4191 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4192 is_inline_image): Removed.
4193 (html_begin_suppress, html_end_suppress): Don't take a parameter.
4194 (graphic_start, graphic_end): Removed.
4195 * src/include/htmlindicate.h: Updated.
4196 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4197 (macroset_template): New global variable.
4198 (makeFileName): Use `macroset_template'.
4199 (write_end_image): Don't take a parameter.
4201 (write_start_image: Don't emit newline.
4202 (char_buffer::write_upto_newline): Updated.
4203 (char_buffer::skip_to_newline): Renamed to ...
4204 (char_buffer::skip_until_newline): This.
4206 (char_buffer::write_file_troff, char_buffer::write_file_html):
4208 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4209 (removeAllPages): Remove `DEBUGGING' conditionals.
4210 (addRegDef, dump_args): New functions.
4211 (char_buffer::do_html, char_buffer::do_image): Handle
4212 `www-image-template' command line variable.
4213 Add more debugging code.
4214 (addps4html): Removed.
4215 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4217 * src/preproc/eqn/main.cc: Include `ctype.h'.
4218 (suppress_html): Removed.
4220 (inline_equation): Use `html_begin_suppress' and
4221 `html_end_suppress'.
4222 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4223 (troff_output::start_picture, troff_output::finish_picture):
4225 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4226 (process_input_file): Updated.
4228 * src/roff/troff/div.cc (page_number): Set page number only if the
4229 `ps4html' register isn't defined.
4230 * src/roff/troff/input.cc (image_no): New external variable.
4231 (do_suppress): Use it.
4232 * src/roff/troff/node.h (suppress_node::image_id): New member.
4233 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4234 (suppress_node::suppress_node): Initialize `image_id' member.
4235 (suppress_node::same): Handle `image_id' also.
4236 (suppress_node::copy): Updated.
4237 (last_image_id): New global variable.
4238 (suppress_node::tprint): Use it.
4240 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4242 * tmac/pspic.mac (PSPIC): Fix html support.
4243 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4244 * tmac/www.tmac (www-image-template): Set up.
4245 (HTMLINDEX): Renamed to...
4247 (BODYCOLOR): Renamed to...
4249 (BACKGROUND): Renamed to...
4251 (URL): Change order of parameters for consistency.
4252 (MAILTO): Renamed to...
4254 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4255 (IMG, PIMG, MPIMG): This.
4256 (HTML-H-BEGIN, HTML-H-END): Renamed to...
4258 (LINKS): Renamed to...
4260 (LINE): Renamed to...
4262 (NO-AUTO-RULE): Renamed to...
4264 (HTML-TL): Renamed to...
4266 (UL-BEGIN, UL-END): Renamed to...
4268 (DROPCAP): Renamed to...
4270 (TS, TE, EQ, EN): Provide default definitions.
4271 (www-make-unique-name): Updated.
4272 (HTML-IMAGE-INLINE): Fix typo.
4273 * tmac/groff_www.man: Updated.
4275 * doc/Makefile (homepage.html): Add option -r to grohtml.
4276 Use shortened image name.
4277 * doc/groff.texinfo: Updated info on grohtml strings and macros.
4278 * doc/homepage.ms: Updated and extended.
4280 2002-02-14 Werner LEMBERG <wl@gnu.org>
4282 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4284 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4285 SGR_BACK_DEFAULT_COLOR): Replaced with ...
4286 (tty_printer::put_color): Use it.
4287 (ttr_printer::end_page): Simplify.
4289 2002-02-13 Werner LEMBERG <wl@gnu.org>
4291 * tmac/groff_tmac.man: Moved to...
4292 * man/groff_tmac.man: This place.
4293 * tmac/Makefile.sub, man/Makefile.sub: Updated.
4295 2002-02-12 Werner LEMBERG <wl@gnu.org>
4297 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4298 $(COMPILE.c) to not include groff's assert.h.
4300 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4302 * NEWS, src/drivers/grotty/grotty.man: Document it.
4304 2002-02-11 Werner LEMBERG <wl@gnu.org>
4306 * src/libs/snprintf/snprintf.c: Updated to latest version
4309 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
4310 test whether there is `.]' also.
4311 Don't check for spaces after `.['.
4312 * src/roff/grog/grog.sh: Do the same.
4314 2002-02-10 Werner LEMBERG <wl@gnu.org>
4318 * src/libs/libgroff/illegal.cc: Renamed to ...
4319 * src/libs/libgroff/invalid.cc: This.
4320 (illegal_char_table): Renamed to ...
4321 (invalid_char_table): This.
4322 * src/libs/libgroff/Makefile.sub: Updated.
4323 * win32-diffs: Updated.
4325 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4326 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4327 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4328 font::load), src/preproc/eqn/main.cc (read_line, main),
4329 src/preproc/eqn/lex.cc (file_input::read_line),
4330 src/preproc/pic/lex.cc (file_input::read_line,
4331 simple_file_input::get, simple_file_input::peek),
4332 src/preproc/pic/main.cc (top_input::get, top_input::peek),
4333 src/preproc/pic/pic.man, src/preproc/refer/main.cc
4334 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4335 do_bib), src/preproc/tbl/main.cc (table_input::get),
4336 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4337 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4338 do_zero_width, read_request, encode_char, ps_get_line,
4339 transparent_file, get_char_for_escape_name, transparent_translate,
4340 asciify, input_char_description, read_string, set_string),
4341 src/roff/troff/env.cc (environment::add_html_tag),
4342 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4344 * src/include/lib.h: Updated.
4346 * src/preproc/eqn/eqn.cc: Removed.
4350 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4352 2002-02-09 Werner LEMBERG <wl@gnu.org>
4354 * doc/gnu.xpm: New image.
4355 * doc/Makefile (DOCS): Add homepage.ps.
4356 Add rules for converting xpm->png and xpm->eps.
4357 Use `gnu.{xpm,eps}' as image names.
4358 * doc/homepage.ms: Updated.
4360 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
4362 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4363 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4364 Remove calls to `B1' and `B2'
4365 (PNG-IMAGE): New macro for inclusion of images in PNG format.
4366 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4367 auxiliary variables for MARGIN-PNG-IMAGE.
4368 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4369 auxiliary macros for MARGIN-PNG-IMAGE.
4370 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4372 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4373 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4374 (DROPCAP): New macro to produce dropcap characters.
4375 (www-do-image): Renamed back to...
4376 (HTML-DO-IMAGE): This.
4377 Updated all callers.
4379 * doc/Makefile (gnubw.eps): Updated.
4380 * doc/homepage.ms: Updated.
4382 2002-02-08 Werner LEMBERG <wl@gnu.org>
4384 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4385 Added `linethick' to table in section `Style Variables'.
4387 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
4389 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4391 2002-02-07 Werner LEMBERG <wl@gnu.org>
4393 Adding options -C (compatibility mode) and -c (grotty's old output
4396 * src/roff/nroff/nroff.sh: Implement it.
4398 * NEWS, src/roff/nroff/nroff.man: Updated.
4400 * PROBLEMS: Document bison 1.32 bug.
4402 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4404 * src/roff/troff/node.cc (make_tfont): Define it earlier.
4405 * src/roff/troff/div.h: Add prototype for `end_diversions'.
4406 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4407 * src/roff/troff/env.h: Add prototype for `title'.
4409 Adding EBCDIC support to grotty.
4411 * src/devices/grotty/tty.cc (CSI): New macro.
4412 (SGR_*, tty_printer::put_color): Use it.
4414 2002-02-06 Werner LEMBERG <wl@gnu.org>
4416 Implementing color support in grotty. The new switch -c activates
4417 the old drawing scheme, disabling color at the same time. The new
4418 switch `-i' selects italic instead of underlining (SGR only).
4420 * src/devices/grotty/tty.cc (putstring): New define instead of
4421 `fputs'. Updated all callers.
4422 (old_drawing_scheme): New global variable.
4423 (COLOR_CHANGE): New enum value.
4424 (SGR_*): New defines containing color handling escape sequences.
4425 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4426 (glyph): New members `back_color_idx' and `fore_color_idx'.
4427 (glyph::order): Add COLOR_CHANGE.
4428 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4429 `is_underline', `is_bold', `cu_flag', `tty_colors'.
4430 New methods `make_underline', `make_bold', `color_to_idx',
4431 `change_color', `put_color'.
4432 (cu_flag): Moved into `tty_printer' class.
4433 (tty_printer::tty_printer): Initialize colors.
4434 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4435 tty_printer::draw, tty_printer::end_page): Handle colors also.
4436 (main): Add options `-c' and `-i'.
4438 * NEWS, src/devices/grotty/grotty.man: Updated.
4440 * src/include/errarg.h (errarg): Add support for `unsigned int'.
4441 * src/libs/libgroff/errarg.c: Implement it.
4443 * src/include/printer.h (printer): Add `change_color' method
4444 (currently used by grotty only).
4445 * src/libs/libdriver/printer.cc: Implement it.
4446 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4447 call to `pr->change_color'.
4449 * src/roff/troff/node.cc (troff_output_file::fill_color,
4450 troff_output_file::glyph_color): Call `do_motion'.
4452 * tmac/tty.tmac: Add color definitions.
4454 * src/roff/groff/groff.man: Minor fixes.
4456 2002-02-05 Bernd Warken <bwarken@mayn.de>
4458 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4459 it. This is a preparation for future changes.
4461 2002-02-05 Werner LEMBERG <wl@gnu.org>
4463 * src/roff/troff/input.cc (process_input_stack): Fix the case
4464 where leading spaces are followed by \f or \s; previously, an
4465 incorrect space width has been used.
4467 * doc/roff.man (quoted_char): Fix argument.
4468 (comment): Define string.
4470 2002-02-04 Larry Kollar <kollar@alltel.net>
4472 * doc/groff.texinfo: More fixes.
4474 2002-02-04 Werner LEMBERG <wl@gnu.org>
4476 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4477 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4478 `restore_compatibility' before `output_string' -- the LINE_STRING
4479 register now already contains proper switches from and to
4482 * man/groff_char.man: Add Euro symbol.
4483 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4484 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4485 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4488 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4490 (.texinfo.html): Add support for texinfo->html.
4492 2002-02-03 Werner LEMBERG <wl@gnu.org>
4494 Added three new requests `ds1', `as1', and `ami'. The former two
4495 are equivalent to `ds' and `as' with the difference that
4496 compatibility mode is saved on entry, switched off during string
4497 expansion, and restored on exit. The latter is the pendant to `dei'
4500 (do_define_string): Use `define_mode' and `calling mode'.
4501 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4502 end of string, respectively.
4503 (define_string, append_string): Use `calling_mode'.
4504 (define_nocomp_string, append_nocomp_string,
4505 define_string_indirect): New functions.
4506 (init_input_requests): Updated.
4507 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4509 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4510 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
4511 mm macro package accesses this string register directly.
4512 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4514 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
4517 2002-02-02 Larry Kollar <kollar@alltel.net>
4519 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4521 2002-01-31 Werner LEMBERG <wl@gnu.org>
4523 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4525 2002-01-31 Bernd Warken <bwarken@mayn.de>
4527 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4528 * man/groff_out.man: Revised and updated.
4530 2002-01-30 Bernd Warken <bwarken@mayn.de>
4532 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4533 out the unused `{' and `}' commands. Undefined by default.
4534 (IntArray): Make `data' private.
4535 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4536 new methods instead.
4537 (skip_line_D, skip_to_end_of_line): New functions.
4538 (get_D_fixed_args): Use `skip_line_D'.
4539 Changed to handle dummy odd arguments by ...
4540 (get_D_fixed_args_odd_dummy): This new function.
4541 (get_D_variable_args): Split some code into ...
4542 (get_possibly_integer_args): This new function.
4543 (send_draw): Use more `const'.
4544 (delete_current_env): New function.
4545 (position_to_end_of_args): Use `size_t'.
4547 (send_draw): Updated.
4548 (parse_D_command): Handle `c', `C', and `t' better.
4552 2002-01-29 Werner LEMBERG <wl@gnu.org>
4555 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4556 @Def...ListEnd which replaces @Def...x. This is necessary to get
4557 proper HTML output -- see the comment in the file for more
4561 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
4563 Fixes to make color changes of 2002-01-21 work with grohtml.
4565 * src/devices/grohtml/post-html.cc (style): Updated.
4566 (html_printer): Remove unused methods.
4567 (html_printer::do_font, html_printer::draw, html_printer::set_char,
4568 html_printer::special): Updated.
4569 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4570 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4571 Added some debugging code.
4572 (html_text::start_tag): Updated.
4573 (html_text::do_push): New method.
4574 (html_text::push_para): Call it.
4575 Add method for handling color.
4576 (html_text::do_color): Updated.
4577 (html_text::shutdown): Handle color.
4578 * src/devices/grohtml/html-text.h (tag_definition): New member
4582 2002-01-28 Werner LEMBERG <wl@gnu.org>
4584 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4586 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
4588 Add two switches -a and -g to control the antialiasing bits for
4589 text and graphics, respectively.
4591 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4593 * src/devices/grohtml/grohtml.man: Document them.
4594 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4596 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4597 (setupAntiAlias): New function.
4598 (createAllPages): Updated.
4599 (scanArguments): Handle `-a' and `-g'.
4600 (main): Call `setupAntiAlias'.
4603 2002-01-27 Werner LEMBERG <wl@gnu.org>
4605 * doc/groff.texinfo (Def*): Call index function after deffn.
4607 * tmac/html.tmac: Call `nroff' request.
4609 2002-01-26 Larry Kollar <kollar@alltel.net>
4611 * tmac/groff_ms.man: Add some omissions.
4613 2002-01-25 Larry Kollar <kollar@alltel.net>
4615 * tmac/groff_ms.man: Typographical improvements.
4617 2002-01-25 Werner LEMBERG <wl@gnu.org>
4619 * doc/groff.texinfo: Updated version and copyright.
4620 * src/devices/grops/grops.man: Updated.
4622 * tmac/groff_tmac.man: Fix `ig' macro.
4624 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4626 Use `.ne' unconditionally everywhere.
4627 (TS): Only insert some vertical space. Doing a page break is no
4628 longer necessary due to the redefinition of the `ne' request.
4630 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4631 warning for unknown subcommands but parse and pass them to the
4634 2002-01-24 Werner LEMBERG <wl@gnu.org>
4636 * tmac/groff_www.man, NEWS: Fix typos.
4638 2002-01-21 Werner LEMBERG <wl@gnu.org>
4640 Complete revision of color support:
4642 Adapt programs to the new libdriver/input.cc.
4644 Color spaces are no longer converted to RGB but transferred as-is
4645 in the troff intermediate output format.
4647 Handle default color gracefully. troff now supports a `default'
4648 color (which can't be changed).
4650 grops will now use the proper color space functions if available.
4654 Note that currently grohtml doesn't handle colors properly. This
4657 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
4658 (ui_to_a): New function.
4659 * src/include/lib.h: Updated.
4661 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
4662 (color): Simplified; removed all `double' members and methods.
4663 A new array `components' now holds the color parameters.
4664 (color::is_default, color::get_components): New methods.
4665 (color::operator==, color:operator!=): New.
4666 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
4667 to make access to the `components' array more comprehensible.
4668 * src/libs/libgroff/color.cc: Implement new color support.
4669 (atoh): Small fixes.
4670 (color::read_encoding): Simplified for new troff intermediate color
4672 (default_color): New global variable.
4674 * src/roff/troff/input.cc (default_symbol): New global variable.
4675 (lookup_color): Use it.
4676 (default_black): Removed.
4677 (do_glyph_color, do_fill_color): Simplified.
4678 (define_color): Handle default color.
4680 (do_if_request): Handle default color.
4681 * src/roff/troff/env.cc (environment::environment): Initialize
4682 colors with `default_color'.
4683 * src/roff/troff/node.cc (troff_output_file::put): Add method
4685 (troff_output_file::hex): Removed.
4686 (troff_output_file::fill_color, troff_output_file::glyph_color):
4687 Updated to include/color.h and libdriver/input.cc.
4689 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
4690 fill color properly (identically to the outline color). \D'f...'
4691 doesn't work any more.
4692 All function calls to it updated.
4694 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
4696 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
4699 * src/devices/grops/ps.cc (ps_output::put_color): New method.
4700 (ps_printer::sbuf_color): Make a real member instead of pointer.
4701 (ps_printer::fill_color, ps_printer::output_color): Removed.
4702 (ps_printer::ps_printer): Updated.
4703 (ps_printer::set_char): Ditto.
4704 (ps_printer::set_color): Use various color schemes.
4705 Use `put_color' method.
4706 (ps_printer::flush_sbuf): Don't set color.
4707 (ps_printer::fill_path): Take `environment' as parameter.
4708 Simplify color handling.
4709 (ps_printer::set_line_thickness): Renamed to ...
4710 (ps_printer::set_line_thickness_and_color): This (and updated).
4711 (ps_printer::set_color): Change second parameter from `complete'
4712 to `fill' which better describes what it does.
4713 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
4714 and text in the right order.
4716 Remove branches for `f' and `F'; this is handled by
4718 * src/devices/grops/ps.h: Updated.
4719 * font/devps/prologue (FL): Redefined.
4720 ({F,C}r,k,g: New color functions (with and without filling).
4722 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
4723 * man/groff_diff.man, man/groff.man, man/groff_out.man,
4724 doc/groff.texinfo, NEWS: Updated.
4726 2002-01-20 Bernd Warken <bwarken@mayn.de>
4728 * src/libs/libdriver/input.cc: Completely rewritten. See comments
4729 in this file for what has been changed.
4731 2002-01-19 Werner LEMBERG <wl@gnu.org>
4733 * test-groff: Fix GROFF_FONT_PATH.
4734 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
4735 is read before .TH or .Dd is parsed.
4737 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
4739 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
4740 quadrant boundaries.
4742 2002-01-18 Werner LEMBERG <wl@gnu.org>
4744 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
4747 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
4749 * tmac/doc.common: Initialize %I register for the %I macro to
4750 avoid (harmless) warning.
4751 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
4752 when in the SYNOPSIS section.
4754 2002-01-17 Bruno Haible <haible@clisp.cons.org>
4756 * src/preproc/pic/lex.cc (get_token): Fix typo.
4758 2002-01-17 Werner LEMBERG <wl@gnu.org>
4760 * devices/grops/ps.cc: Fix incorrectly applied last patch.
4762 2002-01-17 Larry Kollar <kollar@alltel.net>
4764 * tmac/groff_ms.man: Completely rewritten.
4766 2002-01-16 Werner LEMBERG <wl@gnu.org>
4768 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
4770 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
4772 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
4774 (ps_printer::draw): Ditto.
4776 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
4778 * tmac/groff_mdoc.man: Minor fixes.
4780 2002-01-13 Werner LEMBERG <wl@gnu.org>
4782 * man/groff_out.man: Some fixes.
4784 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
4786 * doc/pic.ms: Fix typos.
4788 2002-01-12 Werner LEMBERG <wl@gnu.org>
4790 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
4792 2002-01-10 Werner LEMBERG <wl@gnu.org>
4794 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
4798 2002-01-09 Bernd Warken <bwarken@mayn.de>
4800 * man/groff_out.man: Revised.
4801 * man/roff.man: Minor fixes.
4802 * src/roff/troff/troff.man: Some reordering.
4804 2002-01-09 Werner LEMBERG <wl@gnu.org>
4806 * tmac/an-old.tmac: Add dummy macros for equation support.
4808 2002-01-07 Werner LEMBERG <wl@gnu.org>
4810 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
4812 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
4814 * tmac/groff_man.man: Small improvements.
4816 2002-01-07 Bernd Warken <bwarken@mayn.de>
4818 * man/groff_diff.man: Revised.
4820 2002-01-06 Werner LEMBERG <wl@gnu.org>
4822 * tmac/www.tmac: Remove extraneous backslash.
4824 2002-01-06 Bernd Warken <bwarken@mayn.de>
4826 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
4828 2002-01-05 Werner LEMBERG <wl@gnu.org>
4830 Integrated groffer, contributed by Bernd Warken.
4832 * contrib/groffer/*: New.
4833 * Makefile.in, NEWS: Updated.
4835 2002-01-04 Werner LEMBERG <wl@gnu.org>
4837 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
4838 registers defined in macro packages.
4839 Revising the ms part.
4841 2002-01-04 Larry Kollar <kollar@alltel.net>
4843 * doc/groff.texinfo: Add documentation for ms macros.
4845 2002-01-02 Werner LEMBERG <wl@gnu.org>
4847 First step in adding PS support for the Euro symbol. `eu' is the
4848 official Euro logo, `Eu' is a font-specific glyph variant.
4850 * font/devps/text.enc: Add `Euro' at position 9.
4851 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
4852 * font/devps/symbolmap: Regenerated.
4856 2002-01-02 Bernd Warken <bwarken@mayn.de>
4858 * man/roff.man: Revised.
4860 2002-01-01 Bernd Warken <bwarken@mayn.de>
4862 * src/roff/groff/groff.man: Completely rewritten.
4864 2001-12-31 Werner LEMBERG <wl@gnu.org>
4866 * doc/Makefile: Updated.
4868 2001-12-30 Werner LEMBERG <wl@gnu.org>
4870 * tmac/www.tmac: Make all names of internal macros/registers/strings
4871 lowercase, and prepend `www-'.
4872 Other minor changes.
4873 * src/roff/troff/troff.man: Add preprocessor string at BOF.
4875 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
4877 Implement option `-b' in grohtml to set the HTML background colour.
4879 * src/devices/grohtml/post-html.cc (default_background): New global
4881 (html_printer::html_printer): Initialize `background' to
4882 `default_background'.
4883 (main): Implement option `-b'.
4885 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
4887 * src/devices/grohtml/grohtml.man: Updated.
4888 * doc/Makefile (.ms.html): Use `-b'.
4889 * tmac/html.tmac: Don't set background color.
4891 Add new grohtml tag `.html-tl'.
4893 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
4895 (title_desc::title_desc): Updated.
4896 (html_printer::troff_tag): Handle `.html-tl'.
4897 (html_printer::write_title): Use `with_h1'.
4898 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
4899 (HTML-TL): New macro.
4901 Add support for unordered lists in HTML.
4903 * tmac/www.tmac (www-level): New auxiliary register.
4904 (www-level1, www-level2, www-level3): New auxiliary strings.
4905 (www-push-level, www-pop-level): New auxiliary macros
4906 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
4910 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
4911 (DEFAULT_VERTICAL_OFFSET): Removed.
4912 (IMAGE_BOARDER_PIXELS): Set to 0.
4913 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
4914 (vertical_offset): Initialize with 0.
4915 (gsPaper): New global variable.
4916 (get_resolution): Scan for and return unsigned int.
4917 (get_papersize): New function to get paper length from devps/DESC.
4918 (determine_vertical_offset): New function.
4919 (createAllPages): Produce gray-level images and use proper page
4921 (createImage): Use `-quiet' option of pnmcrop.
4922 (addZ): Fix passing of `-Z'.
4923 (scanArguments): Fix handling of `-o'.
4924 (main): Call `determine_vertical_offset'.
4925 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
4928 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
4929 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
4930 glyph descenders properly.
4932 * doc/homepage.ms: Include `gnubw.eps'.
4933 * doc/Makefile (gnubw.eps): New rule.
4934 (homepage.html): Depend on `gnubw.eps'.
4936 2001-12-25 Werner LEMBERG <wl@gnu.org>
4938 * src/roff/troff/input.cc (default_black): Fix return value.
4940 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
4942 * tmac/doc-common (Dt): Change output of architecture strings.
4943 Do some syntax cleanup.
4944 * tmac/groff_mdoc.man: Updated.
4946 2001-12-23 Werner LEMBERG <wl@gnu.org>
4948 Adding an `itc' request (input line trap accepting \c).
4950 * src/roff/troff/env.h (environment): New member
4951 `continued_input_trap'.
4952 Make `do_input_trap' a friend function instead of `input_trap'.
4953 * src/roff/troff/env.cc (environment::environment,
4954 environment::copy): Updated.
4955 (environment::newline): Implement it.
4956 (do_input_trap): New function.
4957 (input_trap): Call `do_input_trap'.
4958 (input_trap_continued): New function.
4959 (init_env_requests): Updated.
4960 * src/roff/troff/TODO: Updated.
4962 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
4965 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
4967 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
4969 * tmac/doc-common, tmac/doc-syms: Small updates.
4971 2001-12-22 Colin Watson <cjwatson@debian.org>
4973 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
4975 2001-12-22 Bernd Warken <bwarken@mayn.de>
4977 * MANIFEST: New file.
4979 2001-12-22 Werner LEMBERG <wl@gnu.org>
4981 * src/preproc/grn/grn.man: Updated.
4983 2001-12-22 Solar Designer <solar@openwall.com>
4985 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
4988 2001-12-19 Werner LEMBERG <wl@gnu.org>
4990 Implement a fallback character request `.fchar'.
4992 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
4993 (is_fallback): New inline function.
4994 * src/roff/troff/input.cc (do_define_character): New function.
4995 (define_character): Call `do_define_character'.
4996 (define_fallback_character): New function.
4997 (init_input_requests): Add `fchar'.
4998 (charinfo::charinfo): Updated.
4999 (charinfo::set_macro): New argument to set `fallback' flag.
5000 * src/roff/troff/node.cc (make_glyph_node, make_node,
5001 node::add_char): Check `fallback' flag.
5002 * NEWS, man/groff_diff.man, man/groff_man: Updated.
5004 2001-12-16 Werner LEMBERG <wl@gnu.org>
5006 * groff.texinfo: Document exact search algorithm for glyphs.
5008 2001-12-15 Werner LEMBERG <wl@gnu.org>
5010 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5011 the left side of $(MANPAGES) rule to make it always non-empty.
5013 2001-12-14 Werner LEMBERG <wl@gnu.org>
5015 * src/roff/troff/input.cc (default_black): Define default color
5016 `black' if not yet defined.
5018 2001-12-13 Werner LEMBERG <wl@gnu.org>
5020 Implement new string-valued register `.fn' to return the current
5021 real (internal) font name.
5023 * env.cc (environment::get_font_name_string): New function.
5024 (init_env_requests): Add `.fn' register.
5025 * env.h (environment): Updated.
5026 * node.cc (font_info): Make `get_font_name' a friend.
5027 (get_font_name): New function.
5030 * man/groff_diff.man, man/groff.man, NEWS: Updated.
5032 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5034 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5036 2001-12-12 Werner LEMBERG <wl@gnu.org>
5038 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5040 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
5042 * man/groff_diff.man: Adding documentation for \O.
5044 2001-12-10 Werner LEMBERG <wl@gnu.org>
5046 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5047 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5049 2001-12-09 Werner LEMBERG <wl@gnu.org>
5051 * man/roff.man: Revised.
5052 * src/roff/groff/groff.man: Replace man page references with a
5053 pointer to roff.man.
5055 2001-12-09 Bernd Warken <bwarken@mayn.de>
5057 * man/roff.man: Completely rewritten.
5059 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5061 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5063 2001-12-05 Werner LEMBERG <wl@gnu.org>
5065 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5067 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5068 order of initializers.
5071 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
5073 * doc/groff.texinfo: Fix documentation of \O.
5075 * src/devices/grohtml/html-text.cc (html_text::do_indent,
5076 html_text::do_table, html_text::do_emittext, html_text::do_para):
5077 Use `const' for first argument.
5078 (html_text::do_table): Use cast.
5079 * src/devices/grohtml/html-text.h: Updated.
5080 * src/devices/grohtml/output.cc (simple_output::put_string): Add
5081 method for `const string &s'.
5082 * src/devices/grohtml/html.h: Updated.
5083 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5084 (ANCHOR_TEMPLATE): Modified.
5085 (manufacture_headings): New global variable to handle `-h' option.
5086 (is_subsection): Removed.
5087 (char_buffer::add_string): Add `const' to first argument.
5088 Protect against invalid string argument.
5089 Add method for `const string &s'.
5090 (text_glob): Completely redesigned.
5091 (page): Use `const' for strings and remove string length variable.
5092 (page::add_html): Removed.
5093 (page::add_end_encode): New member function.
5094 (to_unicode): Moved upwards.
5095 (title_desc, header_desc): Updated.
5096 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5098 (html_printer::is_bold, html_printer::make_bold): New member
5100 (html_printer::end_of_line): Updated.
5101 (generate_img_src, html_printer::do_auto_image,
5102 html_printer::do_title, html_printer::write_header,
5103 html_printer::determine_header_level, html_printer::do_heading,
5104 html_printer::do_linelength, html_printer::do_pageoffset,
5105 html_printer::do_indentation, html_printer::do_tempindent,
5106 html_printer::do_indentedparagraph, html_printer::do_break,
5107 html_printer::flush_sbuf, get_html_translation,
5108 html_printer::begin_page, html_printer::special): Rewritten to get
5109 rid of static string length limit.
5110 (html_printer::troff_tag): Added `.no-auto-rule'.
5111 (html_printer::flush_globs): Small fix.
5112 (html_printer::determine_space): Don't compute `space_width'.
5113 (html_printer::translate_to_html): Renamed to ...
5114 (html_printer::emit_html): This (with updates).
5115 (html_printer::write_header): Implement `-h' option.
5116 (html_printer::draw): Remove commented-out code. Handle `F'
5118 (html_printer::add_char_to_sbuf): Removed.
5119 (html_printer::add_to_sbuf): Rewritten.
5120 (html_printer::sbuf_continuation): Fixed.
5121 (html_printer::seen_backwards_escape, reverse,
5122 html_printer::remove_last_char_from_sbuf): Removed.
5123 (char_translate_to_html, str_translate_to_html): Removed.
5124 (html_printer::overstrike): New function member.
5125 (html_printer::set_char): Use it.
5126 (html_printer::do_body): New function member.
5127 (html_printer::~html_printer): Use it.
5128 (main): Handle `-h' option.
5130 * src/devices/grohtml/grohtml.man: Document -h switch.
5132 * src/preproc/html/pre-html.cc: Include searchpath.h
5133 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5134 (get_resolution): New function.
5135 (checkImageDir): Use `0777' permissions in mkdir()
5136 (write_start_image): Rewritten to use `\O[5...]'.
5137 (createImage, generateImages): Updated.
5138 (main): Handle `F' and `h' options.
5139 Use `get_resolution'.
5141 * src/roff/troff/input.cc (begin, end, image): Removed.
5142 (do_suppress): Take parameter.
5143 Handle modified syntax of `\O'.
5144 (token::next): Updated.
5145 (init_markup_requests): Removed.
5148 * src/roff/troff/div.h: Add declaration for begin_page().
5150 * tmac/color-html.tmac: Removed. Contents moved to...
5151 * tmac/html.tmac: Here. Set background color.
5152 * tmac/color.tmac: Removed. Contents moved to...
5153 * tmac/ps.tmac: Here.
5154 * tmac/www.tmac: Remove the title command when generating images
5156 (NO_AUTO_RULE): New macro.
5157 (HTML_DO_IMAGE): Use revised `\O' escapes.
5158 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5160 2001-12-02 Werner LEMBERG <wl@gnu.org>
5162 * tmac/groff_mdoc.man: Fix typo.
5164 2001-12-01 Colin Watson <cjwatson@debian.org>
5166 * man/roff.man: Fix typo.
5168 2001-11-29 Werner LEMBERG <wl@gnu.org>
5170 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5173 * src/roff/troff/input.cc (read_draw_node): Emit error message if
5174 more than one argument to \D'f ...'.
5176 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5178 2001-11-28 Werner LEMBERG <wl@gnu.org>
5180 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5183 * tmac/groff_man.man: Minor cosmetic fix.
5185 2001-11-27 Werner LEMBERG <wl@gnu.org>
5187 * src/roff/groff/groff.man, tmac/groff_tmac.man,
5188 tmac/groff_www.man: s/mwww/www/.
5190 2001-11-26 Werner LEMBERG <wl@gnu.org>
5192 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5193 * configure: Regenerated.
5194 * win32-diffs: Updated.
5196 * tmac/groff_mwww.tmac: Renamed to ...
5197 * tmac/groff_www.tmac: This.
5198 * tmac/mwww.tmac: Removed.
5199 * NEWS, tmac/Makefile.sub: Updated.
5201 2001-11-21 Werner LEMBERG <wl@gnu.org>
5203 * doc/groff.texinfo: Improve documentation of the `\v' escape.
5204 Fix explanation of `\D' and `rt'.
5206 2001-11-20 Werner LEMBERG <wl@gnu.org>
5208 * tmac/an-old.tmac (an-header): Set header length equal to page
5210 * doc/groff.texinfo: Improve documentation of `ne' request. Other
5214 2001-11-19 Werner LEMBERG <wl@gnu.org>
5216 * NEWS, man/Makefile.sub: Updated.
5218 2001-11-19 Bernd Warken <bwarken@mayn.de>
5220 * man/ditroff.man: New file.
5222 2001-11-17 Werner LEMBERG <wl@gnu.org>
5224 * man/groff_differences.man: Renamed to ...
5225 * man/groff_diff.man: This. Updated.
5226 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5228 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5229 * src/preproc/html/pushback.cc: This. Updated.
5230 * src/preproc/html/pushbackbuffer.h: Renamed to ...
5231 * src/preproc/html/pushback.h: This.
5232 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5235 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5236 * src/libs/libgroff/htmlhint.cc: This.
5237 * src/libs/libgroff/Makefile.sub: Updated.
5239 * tmac/an-old.tmac (an-end): Fix page length.
5241 2001-11-16 Werner LEMBERG <wl@gnu.org>
5243 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5244 * man/Makefile.sub: Include groff_differences.man.
5245 * VERSION: Set to 1.18.
5246 * REVISION: Set to 0.
5248 2001-11-16 Bernd Warken <bwarken@mayn.de>
5250 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5251 the second dot (or ending macro name) to end a macro.
5252 * doc/groff.texinfo: Doc fix.
5254 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
5256 * tmac/doc-common (doc-header): Handle very long document titles
5259 2001-11-16 Werner LEMBERG <wl@gnu.org>
5261 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5263 2001-11-15 Werner LEMBERG <wl@gnu.org>
5265 * src/roff/troff/troff.man: Revised and split into troff.man and...
5266 * man/groff_differences.man: New file.
5269 2001-11-13 Werner LEMBERG <wl@gnu.org>
5271 * tmac/an-old.tmac (TS, TE): New macros for table support.
5273 2001-11-12 Werner LEMBERG <wl@gnu.org>
5275 * src/include/lib.h: Provide a fix for emx to not include
5278 2001-10-27 Werner LEMBERG <wl@gnu.org>
5280 * src/roff/troff/input.cc (substring_macro): Fix computation of
5283 2001-10-20 Werner LEMBERG <wl@gnu.org>
5285 Undo change from 2001-08-28.
5287 * src/roff/troff/input.cc (have_input): New global variable.
5288 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5289 in compatibility mode.
5290 (process_input_stack): Use it.
5292 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
5294 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5295 being handled as end-of-sentence characters,
5297 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
5299 * src/roff/troff/input.cc (file_iterator): New members
5300 `suppress_newline_flag' and `seen_escape'.
5301 (file_iterator::next_file): Updated.
5302 (file_iterator::fill): Use it.
5303 (string_iterator): New member `suppress_newline_flag'.
5304 (string_iterator::fill): Set it.
5305 (get_color_element): Use MAX_COLOR_VAL.
5306 * src/roff/troff/env.cc (environment): Remove `need_eol'.
5307 (no_fill): Don't set `env->ignore_next_eol'.
5308 (environment::newline): Handle `eol' tag properly.
5310 (environment::add_html_tag): Set `env->ignore_next_eol'.
5312 * src/roff/troff/env.h (environment): Updated.
5314 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5316 (html_printer::outstanding_eol): New member function.
5317 (html_printer::do_title): Use new functions.
5318 (html_printer::troff_tag): Test `id_eol_ce'.
5320 2001-10-10 Werner LEMBERG <wl@gnu.org>
5322 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5323 files work with -C also.
5325 2001-10-05 Werner LEMBERG <wl@gnu.org>
5327 * doc/pic.ms: Minor fix.
5328 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5329 as a valid command line switch.
5330 * src/devices/grohtml/post-html.cc (main): Ditto.
5332 * src/devices/grohtml/grohtml.man: Updated.
5333 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5335 2001-10-04 Werner LEMBERG <wl@gnu.org>
5337 Implementing color support in troff, pic, grops, and grohtml. These
5338 changes are based on a major patch provided by Gaius Mulley
5341 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5342 definitions with both hex values and fractions.
5344 New escapes: \m and \M for drawing and background color,
5345 respectively. This corresponds to the troff output commands `m'
5348 groff and troff accept command line switch `-c' to disable color
5349 output (which is automatically disabled in compatibility mode).
5351 New scaling indicator `f' for fractions (1f = 65536u).
5353 New conditional operator `m' to test for defined colors with `if'
5356 New keywords `color' (or `colour', `colored', `coloured'), `outline'
5357 (or `outlined'), and `shaded' added to pic.
5359 * src/include/color.h: New file.
5360 * src/include/driver.h: Include it.
5361 * src/include/printer.h: Include color.h.
5362 (environment): New members `col' and `fill'.
5363 (printer): Remove `adjust_arc_center' member function.
5364 * src/include/Makefile.sub: Updated.
5366 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5368 Handle `m' and `DF' troff commands.
5369 * src/libs/libgroff/color.cc: New file.
5370 * src/libs/libgroff/Makefile.sub: Updated.
5372 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5374 (createImage): Fix computation of `y2'.
5376 (buffer::write_file_html): Remove calls to `stop'.
5378 * src/preproc/pic/common.h (common_output): New abstract function
5379 members `set_color', `reset_color', `get_last_filled', and
5380 `get_outline_color'.
5381 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5382 (object_spec): Add members `shaded' and `outlined'.
5383 * src/preproc/pic/output.h (output): `command' is now abstract.
5384 New function members `set_color', `reset_color', `get_last_filled',
5385 and `get_outline_color'.
5386 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5387 `outline[d]', and `shaded'.
5388 * src/preproc/pic/object.cc (output::command): Removed.
5389 (output::set_location): Moved to output.h.
5390 (graphic_object): Add protected members `outline_color' and
5392 Add member functions `set_outline_color', `get_outline_color', and
5394 (closed_object): Add member function `set_fill_color'.
5395 Add member `color_fill'.
5396 (graphic_object::print_text): Use `out->set_color' and
5398 (box_object::print, ellipse_object::print, circle_object::print,
5399 line_object::print, spline_object::print, arc_object::print): Ditto.
5400 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5401 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5402 `SHADED', making them `%left'.
5403 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5404 * src/preproc/pic/tex.cc (tex_output): New dummy function members
5405 `set_color', `reset_color', `get_last_filled', and
5406 `get_outline_color'.
5407 * src/preproc/pic/troff.cc (simple_output): New abstract function
5408 members `set_color', `reset_color', and `get_last_filled'.
5409 (simple_output::polygon, simple_output::circle,
5410 simple_output::ellipse): Use `get_last_filled'.
5411 (troff_output): New members `last_filled' and `last_outlined'.
5412 New function members `set_color', `reset_color', `get_last_filled',
5413 and `get_outline_color'.
5414 (troff_output::finish_picture): Use `reset_color'.
5415 (troff_output::set_fill): Test `last_filled'.
5416 * src/preproc/pic/pic.man: Updated.
5418 * src/roff/groff/groff.cc (main): Implement `-c' option.
5419 (synopsis, help): Updated.
5420 src/roff/groff/groff.man: Updated.
5422 * src/roff/troff/troff.h: Include color.h.
5423 (warning_type): Add WARN_COLOR.
5424 * src/roff/troff/env.h (environment): New members
5425 `{cur,prev}_{glyph,fill}_color'.
5426 New member functions `get_{prev_,}{glyph,fill}_color'.
5427 * src/roff/troff/env.cc: Initialize and implement them.
5428 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5429 Replace `NULL' with `0' everywhere for consistency.
5430 (lookup_color, default_black, do_glyph_color, do_fill_color,
5431 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5432 define_color): New functions.
5433 (token::next): Implement \M and \m escapes.
5434 (do_if_request): Implement `m' operator.
5436 (main): Implement `-c' option.
5437 (init_markup_requests): Add `defcolor' request.
5438 (warning_table): Add `color' warning.
5439 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5441 * src/roff/troff/node.cc (troff_output_file): New members
5442 `current_{page,glyph}color'. New member functions `put_hex',
5443 `glyph_color', and `fill_color'.
5444 (glyph_color_node::*, fill_color_node::*): Implement it.
5445 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5446 (parse_term): Add support for `f'.
5447 * src/roff/troff/troff.man: Updated.
5449 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5451 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5452 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5454 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5455 (tag_definition): Use `void *' for arg1.
5456 (html_text): New member functions `do_color' and `done_color'.
5457 Use `void *' for second parameter of `push_para' member function.
5458 New `push_para' member function with a single parameter.
5459 Use `char *' for parameter of `issue_table_begin' member funtion.
5460 New `issue_color_begin' member function.
5461 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5463 (html_text::issue_color_begin): New function.
5464 (html_text::issue_table_begin): Use `char *' for parameter.
5465 (html_text::start_tag, html_text::shutdown,
5466 html_text::check_emit_text): Updated.
5467 (html_text::push_para): Use `void *' for second parameter.
5468 Add same function with only one parameter.
5469 (html_text::do_*): Updated.
5470 (html_text::do_color, html_text::done_color): New functions.
5471 * src/devices/grohtml/post-html.cc (style): New member `col'.
5472 Mew member `style' with 6 parameters.
5473 (style::style, style::operator==): Updated.
5474 (html_printer::do_font): Use it.
5475 (html_printer::draw): Add dummy entry for `F'.
5476 (html_printer::set_char): Updated.
5477 * src/devices/grohtml/grohtml.man: Updated.
5479 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5480 trailing zeroes removed.
5481 (ps_printer): New members `sbuf_color', `fill_color', and
5483 Removed member `fill'.
5484 New member function `set_color'.
5485 (ps_printer::ps_printer, ps_printer::set_char): Updated.
5486 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5487 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5489 * tmac/color-html.tmac, tmac/color.tmac: New files.
5490 * tmac/troffrc: Include them.
5491 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5492 * tmac/Makefile.sub: Updated.
5494 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5495 man/groff.man: Updated.
5496 * font/devps/prologue.ps: Define FC and CO functions.
5498 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
5500 Fix incorrect cropping of images and incorrect handling of special
5501 characters. Fix handling of file names in \O.
5503 * src/include/geometry.h: New file.
5504 * src/libs/libgroff/geometry.cc: New file.
5505 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5507 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5509 (do_suppress): Updated.
5510 * src/roff/troff/node.cc: Include geometry.h.
5511 (troff_output_file::flush_tbuf): Fixed parameters to
5512 `check_output_limits'.
5513 (troff_output_file::check_charinfo): Ditto.
5514 (troff_output_file::determine_line_limits): Add support for `Da'
5517 * src/devices/grohtml/post-html.cc (str_translate_to_html):
5518 Add new parameter `is_special' to decode special characters from
5520 (html_printer::do_title, html_printer::do_heading,
5521 html_printer::do_indentedparagraph,
5522 html_printer::translate_to_html, html_printer::special): Updated.
5524 2001-10-03 Werner LEMBERG <wl@gnu.org>
5526 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5527 Fix entry for config.h.
5528 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5529 * tmac/troffrc: Translate nonbreakable space character to `\~'.
5530 * src/preproc/eqn/eqn.man: Document -d command line option.
5532 2001-09-27 Werner LEMBERG <wl@gnu.org>
5534 * man/groff.man: Use
5542 instead of the old code (`.ad .hy' after the table) to suppress
5543 incorrect hyphenation for grohtml output.
5545 2001-09-22 Werner LEMBERG <wl@gnu.org>
5547 * man/groff_font.man, man/groff_out.man: Minor fixes.
5549 2001-09-20 Werner LEMBERG <wl@gnu.org>
5551 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
5552 Arnold Robbins <arnold@skeeve.com>).
5554 2001-09-09 Werner LEMBERG <wl@gnu.org>
5556 * configure: Regenerated with autoconf 2.52.
5558 * doc/groff.texinfo: Complete revision of indices.
5560 2001-09-07 Werner LEMBERG <wl@gnu.org>
5562 * doc/Makefile (clean): Updated to delete all indices.
5564 2001-09-05 Werner LEMBERG <wl@gnu.org>
5566 * src/roff/troff/troff.man: Remove superfluous line.
5568 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5569 given on the command line (or rather, if only the default warnings
5572 2001-09-03 Werner LEMBERG <wl@gnu.org>
5574 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5575 use .ne for TTY devices.
5577 2001-08-31 Werner LEMBERG <wl@gnu.org>
5579 * src/roff/troff/token.h, src/roff/troff/input.cc:
5580 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5582 2001-08-28 Werner LEMBERG <wl@gnu.org>
5584 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5585 * src/roff/troff/input.cc (token::next): Return
5586 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5588 (token::description): Updated.
5589 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5590 (token::add_to_node_list, token::process): Ignore
5591 TOKEN_TRANSPARENT_ESCAPE.
5593 2001-08-27 Werner LEMBERG <wl@gnu.org>
5595 * tmac/an-old.tmac: Fix `S' string.
5597 2001-08-26 Werner LEMBERG <wl@gnu.org>
5599 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5601 2001-08-25 Werner LEMBERG <wl@gnu.org>
5603 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5605 Many other minor fixes.
5607 * configure.ac: Add message at end to inform how to compile
5609 * configure: Regenerated.
5611 2001-08-24 Werner LEMBERG <wl@gnu.org>
5613 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5614 Updated to latest version of libc.
5616 2001-08-23 Werner LEMBERG <wl@gnu.org>
5618 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5619 Autoconf 2.50 and newer can handle this.
5620 * configure: Regenerated.
5622 2001-08-21 Werner LEMBERG <wl@gnu.org>
5624 * doc/pic.ms: Fix typo.
5625 * src/preproc/tbl/tbl.man: Document case of global options.
5627 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
5629 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5630 handling of `CR' font.
5632 2001-08-20 Werner LEMBERG <wl@gnu.org>
5634 Use a config.h file.
5636 * src/include/lib.h: Include config.h.
5637 * All C files: Ditto (if necessary).
5638 * All C++ source and header files: Include lib.h first (if
5641 * src/include/config.hin: New file (autogenerated by autoheader).
5642 * stamp-h.in: New file.
5643 * configure.ac: Updated.
5644 * aclocal.m4: Add third parameters to AC_DEFINE macros.
5645 (GROFF_ARRAY_DELETE): Simplified.
5646 * Makefile.sub (DISTCLEANFILES): Updated.
5647 Added targets for remaking config.status, config.hin, config.h,
5648 stamp-h.in, and stamp-h.
5649 * configure: Regenerated.
5651 2001-08-19 Werner LEMBERG <wl@gnu.org>
5655 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
5657 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
5658 (do_sprintf): Use snprintf().
5660 2001-08-18 Werner LEMBERG <wl@gnu.org>
5662 * src/libs/snprintf/*: Added an snprintf module written by Mark
5664 * src/libs/libgroff/Makefile.sub: Updated.
5665 * configure.ac: Add test for snprintf().
5666 * Makefile.in: Updated.
5667 * configure: Regenerated.
5669 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
5672 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
5674 * tmac/doc.tmac (Ex): New implementation.
5675 * tmac/doc-common, tmac/groff_tmac.man: Updated.
5677 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
5679 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
5681 * tmac/groff_tmac.man: Updated.
5683 2001-08-13 Werner LEMBERG <wl@gnu.org>
5685 * src/preproc/tbl/tbl.man: Minor documentation update.
5687 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
5689 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
5690 * configure.ac: Add declaration test for gettimeofday().
5691 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
5692 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
5693 * configure: Regenerated.
5695 2001-08-11 Werner LEMBERG <wl@gnu.org>
5697 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
5698 * configure.ac: Add declaration test for strcasecmp().
5699 * Makefile.in: Updated.
5700 * configure: Regenerated.
5701 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
5702 this is necessary because groff's mkstemp.cc is C++.
5703 Add declaration conditionally for strcasecmp().
5705 2001-08-10 Werner LEMBERG <wl@gnu.org>
5707 Integrated pic2graph, contributed by Eric S. Raymond.
5709 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
5711 * Makefile.in, NEWS: Updated.
5713 * src/preproc/tbl/tbl.man: Revised.
5715 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
5717 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
5719 2001-08-09 Werner LEMBERG <wl@gnu.org>
5721 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
5724 2001-08-08 Paul Eggert <eggert@twinsun.com>
5726 * Makefile.sub (configure): Depend on configure.ac, not
5728 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
5730 2001-08-07 Werner LEMBERG <wl@gnu.org>
5732 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
5735 2001-08-06 Werner LEMBERG <wl@gnu.org>
5737 * src/roff/troff/troff.man: Improve documentation of -E option.
5739 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5741 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
5744 2001-07-27 Werner LEMBERG <wl@gnu.org>
5746 * src/preproc/refer/refer.cc: Undo last change.
5747 * src/devices/grohtml/post-html.cc: Ditto.
5749 2001-07-26 Werner LEMBERG <wl@gnu.org>
5751 * src/preproc/refer/refer.cc: Include `lib.h'.
5752 * src/devices/grohtml/post-html.cc: Ditto.
5754 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
5756 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
5757 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
5758 * Makefile.in: Comment updated.
5759 * configure: Regenerated.
5761 2001-07-25 Werner LEMBERG <wl@gnu.org>
5763 * src/preproc/pic/pic.cc: Removed.
5764 * src/preproc/pic/pic_tab.h: Removed.
5765 * src/preproc/refer/label.cc: Removed.
5767 * doc/Makefile (.ms.html): Don't use a file name extension in
5768 argument to grohtml's -I option.
5769 * Makefile.in (dist): Remove CVS directories.
5770 Call `distfiles' target.
5772 * src/devices/grohtml/grohtml.man: Add information about valid
5773 versions of pnmtopng.
5774 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
5775 name instead of number.
5777 2001-07-24 Werner LEMBERG <wl@gnu.org>
5779 * doc/groff.texinfo: Minor fixes.
5781 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
5783 * doc/Makefile (.ms.html): Put image files into a subdirectory.
5786 2001-07-20 Werner LEMBERG <wl@gnu.org>
5788 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
5789 * src/libs/libgroff/mkstemp.cc: New file.
5790 * src/libs/libgroff/mksdir.cc: New file.
5791 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
5792 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
5793 * src/libs/libgroff/Makefile.sub: Updated.
5794 * src/include/lib.h: Add mksdir() prototype.
5795 * src/include/posix.h: Define S_IXUSR if not yet defined.
5797 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
5798 (createAllPages): Use mksdir() instead of current code.
5799 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
5800 (main): [!HAVE_MKSTEMP]: Removed.
5802 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
5803 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
5805 * configure.ac: Add tests for stdint.h, sys/time.h, and
5807 Call new GROFF_xxx macros.
5808 * configure: Regenerated.
5809 * Makefile.in: Comments updated.
5811 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
5813 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
5814 instead of current code.
5815 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
5816 * src/roff/groff/groff.cc (possible_command::insert_args): New
5818 (main): Use it for predriver handling instead of insert_arg().
5820 2001-07-19 Werner LEMBERG <wl@gnu.org>
5822 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
5825 * src/include/posix.h: Define S_IWUSR if not yet defined.
5827 2001-07-18 Werner LEMBERG <wl@gnu.org>
5831 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
5833 * tmac/groff_mdoc.man: Document new -width and -column syntax.
5834 Some other minor fixes.
5835 * tmac/an-old.tmac: Add `AT' and `UC' macros.
5837 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
5839 Replace call to `troff' with `groff -Z' to make it aware of
5842 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
5843 (troff_command, command_prefix): Removed.
5844 (alterDeviceTo): Use groff.
5845 (addZ): New function.
5846 (char_buffer::do_html): Use it.
5847 (scanArguments): Use TROFF_COMMAND.
5848 (findPrefix): Removed.
5850 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
5852 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
5854 * doc/pic.ms: Documentation fixes.
5856 2001-07-17 Werner LEMBERG <wl@gnu.org>
5858 Replace atexit() with global destructor.
5860 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
5861 (xtmpfile_list_init): New global structure to deallocate
5862 xtmpfile_list on exit. Its destructor inherits most code from
5864 (remove_tmp_files): Deleted.
5865 (add_tmp_file): Simplified.
5867 2001-07-16 Werner LEMBERG <wl@gnu.org>
5869 Replace strdup() with strsave().
5871 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
5872 (set_papersize): Use strsave() and a_delete.
5873 (main): Use strsave().
5874 * src/preproc/html/pre-html.cc (make_message, createAllPages,
5875 removeAllPages): Use strsave() and a_delete.
5877 * configure.ac: Remove test for strdup.
5878 * Makefile.in: Comment updated.
5879 * configure: Regenerated.
5881 2001-07-15 Werner LEMBERG <wl@gnu.org>
5883 * win32-diffs: Updated.
5885 2001-07-14 Werner LEMBERG <wl@gnu.org>
5887 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
5888 removing the old one.
5889 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
5891 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5893 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
5895 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
5897 Merge -xwidth into -width. Add -xwidth functionality to -column
5900 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
5902 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
5903 string immediately following a leading dot starts with a valid mdoc
5905 Add similar code to the -column branch.
5906 (doc-Bl-usage): Updated.
5907 * groff_mdoc.man: s/-xwidth/-width/.
5909 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
5911 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
5912 running into centered or non-formatted text.
5914 2001-07-11 Werner LEMBERG <wl@gnu.org>
5916 Introduce short and long prefixes to have the selection at run-time
5917 whether there is a 8+3 limit for names of temporary files.
5919 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
5920 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
5921 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
5923 (temp_init): New global structure to initialize above three
5925 (xtmptemplate): Use two parameters for long and short prefix.
5926 Simplify code use above three variables.
5927 (xtmpfile): Use long and short prefixes as parameters.
5928 * src/include/lib.h: Updated.
5930 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
5932 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
5933 (createAllPages, makeTempFiles): Updated.
5935 2001-07-09 Werner LEMBERG <wl@gnu.org>
5937 * REVISION: Increased to 3.
5939 Version 1.17.2 released
5940 =======================
5942 2001-07-07 Werner LEMBERG <wl@gnu.org>
5944 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
5947 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
5949 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
5951 * tmac/groff_mdoc.man: Fix synopsis.
5953 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
5955 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
5956 Restore `doc-Pa-font'.
5958 2001-07-04 Werner LEMBERG <wl@gnu.org>
5960 * src/utils/indxbib/dirnamemax.c: Moved to ...
5961 * src/libs/libgroff/maxfilename.cc: Here.
5962 s/dir_name_max/file_name_max/.
5964 * src/include/lib.h: Add file_name_max.
5965 * src/utils/indxbib/indxbib.cc: Updated.
5966 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
5969 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
5971 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
5973 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
5974 REGION_TEMPLATE): New macros.
5975 (createAllPages, makeTempFiles): Use them.
5976 Include `nonposix.h'.
5977 (html_system): New function.
5978 (createAllPages, createImage): Use it.
5981 * tmac/www.tmac: Fix typos.
5983 2001-07-03 Werner LEMBERG <wl@gnu.org>
5985 * tmac/www.tmac: Disable hyphenation in normal text only if output
5987 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
5988 * tmac/groff_mwww.man, NEWS: Updated.
5990 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
5992 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
5995 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
5997 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
5998 doc-display-ps-stack): Implement font and font size stack for
6001 2001-07-02 Werner LEMBERG <wl@gnu.org>
6003 * REVISION: Increased to 2.
6004 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6006 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6007 beginning of a line.
6008 * src/groff/grog/grog.sh: Ditto.
6010 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
6012 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6015 2001-06-27 Werner LEMBERG <wl@gnu.org>
6017 Fix problems with preprocessor string for `man' program.
6019 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
6020 Updated/added copyright.
6021 Moved Emacs's local variable to identify nroff mode to the end of
6022 the file; add local variable if missing.
6024 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
6026 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6027 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6028 * configure: Regenerated.
6030 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
6032 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6033 * configure: Regenerated.
6035 2001-06-24 Werner LEMBERG <wl@gnu.org>
6037 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6039 * doc/pic.ms: Fix typos.
6041 Version 1.17.1 released
6042 =======================
6044 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
6046 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6047 * configure: Updated.
6049 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
6051 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6053 * src/roff/troff/dic.cc (blank_line): Add html tag.
6055 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
6057 * src/roff/troff/input.cc (do_suppress): Fix typo.
6059 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
6061 Added two new options (-D and -I) to specify image names and a
6062 subdirectory to place the images in.
6064 Change syntax from \\Ox to \\O[x].
6066 * src/devices/grohtml/post-html.cc (main): Add options.
6068 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6069 Use `NULL' instead of `0' for null string pointers.
6070 (MAX_RETRIES): New macro.
6071 (lengthOfintToStr, intToStr, make_message): New functions.
6072 (makeFileName): Make function static.
6073 Implement -D and -I options.
6074 (checkImageDir): New function.
6075 (write_end_image, write_start_image): Use new syntax of \O.
6076 (createAllPages, removeAllPages): Implement -D and -I options. Use
6078 (createImage): Use make_message().
6079 (addps4html): Add guard for malloc().
6080 (usage, scanArguments): Updated.
6081 (makeTempFiles): Use mkstemp().
6082 (removeTempFiles): Use unlink().
6083 (findPrefix): Add guard for malloc().
6085 * src/roff/troff/input.cc (get_delim_file_name): New function to
6087 (do_suppress): Updated to parse new syntax.
6088 * src/devices/grohtml/grohtml.man: Updated.
6089 * tmac/www.tmac: Updated to new syntax.
6093 2001-06-15 Werner LEMBERG <wl@gnu.org>
6095 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6097 * src/devices/grohtml/grohtml.man: Minor improvements.
6099 2001-06-14 Werner LEMBERG <wl@gnu.org>
6101 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6103 2001-06-11 Werner LEMBERG <wl@gnu.org>
6105 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6106 line to specify preprocessor options -- mandb 2.3.1 only recognizes
6108 * src/preproc/grn/grn.man: Add proper '\" string.
6110 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
6112 * test-groff: Don't use PATH but GROFF_BIN_PATH.
6114 2001-06-08 Werner LEMBERG <wl@gnu.org>
6116 Updated to autoconf 2.50.
6118 * configure.in: Renamed to...
6119 * configure.ac: This.
6120 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6121 (GROFF_OS390): Updated.
6122 * configure: Regenerated.
6124 2001-05-18 Werner LEMBERG <wl@gnu.org>
6126 * src/roff/troff/env.c, src/roff/troff/env.h,
6127 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6130 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
6132 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6134 2001-05-16 Werner LEMBERG <wl@gnu.org>
6136 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6137 less than or equal zero; set it to 1 then.
6138 * src/roff/troff/node.h (node::node): Initialize `last'.
6140 2001-05-08 Werner LEMBERG <wl@gnu.org>
6142 * tmac/an-old.tmac: Make predefined strings work in compatibility
6144 Add troff version guard.
6145 * tmac/doc.tmac: Simplify version guard.
6147 2001-05-07 Werner LEMBERG <wl@gnu.org>
6149 The .ns and .rs requests are now honoured not only in the top-level
6150 but in all diversions (similar to UNIX troff).
6152 This change is based on a patch from Tadziu Hoffmann
6153 <hoffmann@usm.uni-muenchen.de>.
6155 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6156 (top_level_diversion): Remove `no_space_mode' member.
6157 * src/roff/troff/div.cc (diversion::diversion,
6158 top_level_diversion::top_level_diversion): Updated.
6159 (macro_diversion::output): Reset `no_space_mode'.
6160 (no_space, restore_spacing): Use `curdiv' unconditionally.
6161 (space_request, blank_line): Check `curdiv->no_space_mode'.
6162 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6163 `curdiv' unconditionally.
6164 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6167 2001-05-06 Werner LEMBERG <wl@gnu.org>
6169 Added two new requests `de1' and `am1' which are similar to `de' and
6170 `am' with the difference that compatibility mode is saved on entry,
6171 switched off during macro execution, and restored on exit.
6173 * src/roff/troff/input.h: Added two new special characters
6174 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6175 * src/roff/troff/input.cc (input_iterator): Added two member
6176 functions `save_compatible_flag' and `get_compatible_flag'.
6177 (input_stack): Ditto.
6178 (string_iterator): Ditto. Also add private member
6179 `saved_compatible_flag'.
6180 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6181 (calling_mode): New enumeration.
6182 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
6183 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6184 (define_macro, define_indirect_macro, append_macro, ignore): Use
6186 (define_nocomp_macro, append_nocomp_macro): New functions.
6187 (init_input_requests): Updated.
6188 (do_request): Rename local variable `saved_compatible_flag' to
6189 `old_compatible_flag'.
6190 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6192 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6193 public and trap-invoked macros. As a consequence, the man macros
6194 work in compatibility mode also.
6196 2001-05-06 Solar Designer <solar@openwall.com>
6198 * Makefile.in: Use $(mandir).
6200 2001-05-06 Alexios Zavras <zvr@pobox.com>
6202 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6204 2001-05-05 Werner LEMBERG <wl@gnu.org>
6206 Added `.ns' number register: Returns 1 in no-space mode (if in
6207 top-level diversion), 0 otherwise.
6209 * src/roff/troff/div.cc (no_space_mode_reg): New class.
6210 (init_div_requests): Updated.
6211 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6214 2001-05-04 Werner LEMBERG <wl@gnu.org>
6216 * src/roff/nroff/nroff.man: Improved documentation (especially
6219 2001-05-02 Werner LEMBERG <wl@gnu.org>
6221 Added `brp' request: This is \p as a request.
6223 * src/roff/troff/env.cc (environment::do_break): Add parameter
6225 (do_break_request): New function (was `break_request').
6226 (break_request): Calls `do_break_request'.
6227 (break_spread_request): New; calls `do_break_request'.
6228 (init_env_requests): Updated.
6229 * src/roff/troff/env.h: Updated.
6230 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6232 * REVISION: Increased to 1.
6233 * win32-diffs: Updated.
6235 2001-05-01 Werner LEMBERG <wl@gnu.org>
6237 * tmac/an-old.tmac: Fix minor compatibility mode issue.
6238 * tmac/troffrc-end: Make it really work in compatibility mode.
6240 2001-04-27 Werner LEMBERG <wl@gnu.org>
6242 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6245 2001-04-22 Werner LEMBERG <wl@gnu.org>
6247 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6248 latest versions from glibc CVS archive.
6250 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6251 <c.zeelenberg@hccnet.nl>.
6253 2001-04-21 Werner LEMBERG <wl@gnu.org>
6255 * configure.in: Move check for mkstemp() to...
6256 * aclocal.m4 (GROFF_MKSTEMP): This new function.
6257 * configure: Regenerated.
6259 * src/include/groff-getopt.h: Don't use variable names in
6262 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
6263 * src/devices/grohtml/Makefile.sub,
6264 src/devices/grohtml/post-html.cc: Updated.
6266 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
6268 * configure.in: Add special check for mkstemp().
6269 * src/libs/libgroff/tmpfile.cc: Use it.
6270 * src/utils/indxbib/indxbib.cc: Ditto.
6271 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6272 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6275 2001-04-20 Bruce Lilly <blilly@erols.com>
6277 `Version_string' as C++ object was not visible to linker from C
6279 Add `const' to `Version_string'.
6281 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6282 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6283 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6284 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6285 (scanArguments), src/preproc/refer/refer.cc (main),
6286 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6287 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6288 (main), src/devices/grohtml/post-html.cc (main),
6289 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6290 (main), src/utils/hpftodit/hpftodit.cc (main),
6291 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6292 (main), src/utils/lkbib/lkbib.cc (main),
6293 src/utils/addftinfo/addftinfo.cc (main): Implement it.
6295 * src/roff/groff/pipeline.c: Add _UWIN.
6296 * src/include/nonposix.h: Ditto.
6298 2001-04-20 Werner LEMBERG <wl@gnu.org>
6300 * src/include/lib.h: Use HAVE_STRERROR.
6301 * src/roff/groff/pipeline.c: Ditto.
6302 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6303 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6304 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6305 * win32-diffs: Updated.
6306 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6308 2001-04-19 Werner LEMBERG <wl@gnu.org>
6310 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6311 instead of hardwired `"troff"'.
6312 (char_buffer::read_file): Remove unused variables.
6313 (char_buffer::write_file_troff): Ditto.
6314 (char_buffer::write_file_html): Ditto.
6315 (generateImages): Ditto.
6317 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6319 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6321 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6322 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6323 index_search_item::search1): Ditto.
6324 * src/roff/troff/node.h (width_list): Reorder members.
6325 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6326 (lookup_warning): Ditto.
6327 (prepend_string): Commented out.
6328 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6329 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6330 * src/preproc/tbl/main.cc (process_format): Ditto.
6331 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6333 * src/preproc/pic/pic.cc: Updated.
6334 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6335 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6336 * src/preproc/refer/command.cc (execute_command): Ditto.
6337 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6338 * src/preproc/refer/token.cc (lookup_token): Ditto.
6339 * src/preproc/soelim/soelim.cc: Ditto.
6340 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6341 (isHexDigit): Commented out.
6342 (pushBackBuffer::isString): Remove unused variable.
6343 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6345 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6346 resource_manager::read_resource_arg, read_one_of, parse_extensions):
6348 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6349 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6350 lookup_paper_size): Ditto.
6351 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6352 (text_glob, element_list): Reorder members.
6353 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6355 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6356 return value to `void'.
6357 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6359 * src/devices/grohtml/html.h (simple_output::check_newline,
6360 simple_output::space_or_newline, simple_output::enable_newlines):
6362 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6364 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6365 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6366 output_ligatures, output_charset, read_map): Ditto.
6367 * src/utils/lookbib/lookbib.cc (main): Ditto.
6368 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6369 (do_file): Fix typo (`=' -> `==').
6370 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6371 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6373 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
6375 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6376 Fix usage of GROFF_BIN_PATH.
6377 * src/roff/nroff/nroff.man: Updated.
6379 2001-04-18 Werner LEMBERG <wl@gnu.org>
6381 * NEWS: Fixing typos.
6384 Version 1.17 released
6385 =====================
6387 2001-04-17 Werner LEMBERG <wl@gnu.org>
6389 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6390 directory, not in $(srcdir).
6392 2001-04-16 Werner LEMBERG <wl@gnu.org>
6394 * doc/groff.texinfo: More info on conditionals.
6396 2001-04-15 Werner LEMBERG <wl@gnu.org>
6398 * doc/groff.texinfo: Added some info about groff internals.
6400 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6401 about missing special character only if the name is non-null.
6403 2001-04-14 Werner LEMBERG <wl@gnu.org>
6405 Removing the grohtml-old device driver which is now obsolete.
6407 * src/devices/grohtml-old/*: Removed.
6408 * font/devhtml-old/*: Removed.
6409 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6411 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6412 * test-groff (PATH): Updated.
6413 * tmac/Makefile.sub (NORMALFILES): Updated.
6414 * tmac/an-old.tmac: Remove special code for html-old device.
6415 Replace `html-or-html-old' register with `an-html'.
6416 * tmac/eqnrc: Updated.
6417 * tmac/html-old.tmac: Removed.
6418 * tmac/troffrc, tmac/troffrc-end: Updated.
6419 * tmac/www.tmac: Remove special code for html-old device.
6420 Replace `html-or-html-old' register with `www-html'.
6422 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6423 src/libs/libgroff/htmlindicate.cc (graphic_end),
6424 include/htmlindicate.h, src/preproc/grn/*.cc,
6425 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6426 single argument for consistency with rest of source code.
6428 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6430 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
6432 * src/roff/troff/troff.man: Fixing typos.
6434 2001-04-13 Werner LEMBERG <wl@gnu.org>
6436 * doc/pic.ms: Fixing many font switches.
6437 * doc/groff.texinfo: Fixes, additions.
6438 * MORE.STUFF: Updated.
6440 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
6442 * src/devices/grohtml/grohtml.man: Updated manual page regarding
6444 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6446 (removeTempFiles): New function to tidy up temporary files.
6447 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6448 Many fixes to do with the new inline suppress node and image regions
6450 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6451 (generate_img_src): New function.
6452 (html_printer::do_auto_image): Utilizes it.
6453 (do_heading, do_title): Include inline images within their contents.
6454 (html_printer::begin_page): Tidied up comments that are issued to
6455 the html output file.
6456 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6458 (text_glob::is_br): New method used by do_heading.
6459 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6460 equivalent diversion.
6461 * src/include/html-strings.h: Altered image tags to reflect the
6463 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6465 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6466 it is already inside a pic image. Only emit tags if the argument
6467 `-Tps:html' is present.
6468 * src/preproc/tbl/main.cc: Changes to reflect additional
6469 `html_end_suppress' parameter.
6470 * src/roff/troff/env.cc: Only emit eol tag if a node has been
6471 emitted since the last eol tag was written.
6472 * src/roff/troff/env.h: New boolean `emitted_node'.
6473 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6474 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
6475 * src/roff/troff/node.cc (check_charinfo): New method.
6476 (troff_output_file::determine_line_limits): Alterations to limit
6478 * tmac/www.tmac: Changes to reflect new suppress nodes.
6480 2001-04-12 Bruno Haible <haible@clisp.cons.org>
6482 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6483 Escape the html_glyph in the buffer.
6484 (str_translate_to_html): Output the unescaped escaped_char.
6485 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6486 `frame=void', not `frame=none'. Add `border=0'.
6488 2001-04-12 Werner LEMBERG <wl@gnu.org>
6490 * PROBLEMS: Add some words on how to avoid wrapper macros.
6492 2001-04-11 Blake McBride <blake@florida-software.com>
6494 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6496 2001-04-11 Werner LEMBERG <wl@gnu.org>
6498 * font/devlbp/Makefile.sub (CLEANADD): Set it.
6499 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6500 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6501 * Makefile.sub (DISTCLEANFILES): Here.
6503 * libs/libgroff/new.cc: Include `nonposix.h'.
6504 * win32-diffs: Updated.
6506 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
6508 Added skeleton macro for defunct macros.
6510 Updated documentation.
6512 When inside displays, an empty input line warning should be
6513 suppressed. If another macro call is put inside a display,
6514 all subsequent empty lines found in that display caused a
6515 warning to be emitted.
6517 * tmac/doc.tmac (doc-defunct-macro): New macro.
6518 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6519 (doc-restore-global-vars): Fixed typo.
6520 (doc-empty-line): Check the `doc-display-depth' register to
6521 determine whether we are inside display or not.
6523 * tmac/doc-common: Removed `Or' and `Sf' registers.
6524 Moved obsolete `Ds' macro to doc.tmac.
6526 * tmac/groff_mdoc.man: Bump document date.
6527 Document `.Vt' under ``Variable Types''.
6528 Removed documentation for obsolete `.Or' macro.
6530 2001-04-10 Werner LEMBERG <wl@gnu.org>
6533 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6535 2001-04-10 Bruno Haible <haible@clisp.cons.org>
6537 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6538 (usage): Add stream argument. Don't exit.
6539 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6540 Write --version output to stdout, not stderr.
6541 (usage): Add stream argument. Don't exit.
6542 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6543 (usage): Add stream argument. Don't exit.
6544 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6546 (usage): Add stream argument. Don't exit.
6547 (main): Write --help output to stdout, not stderr.
6548 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6549 (usage): Add stream argument. Don't exit.
6550 * src/devices/grops/ps.cc (main): Accept --help and --version.
6551 (usage): Add stream argument. Don't exit.
6552 * src/devices/grotty/tty.cc (main): Accept --help and --version.
6553 (usage): Add stream argument. Don't exit.
6554 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6555 (main): Accept --help and --version.
6556 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6557 (main): Accept --help and --version.
6558 * src/preproc/html/pre-html.cc (usage): Add stream argument.
6559 (scanArguments): Accept --help and --version.
6560 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6561 (main): Accept --help and --version.
6562 * src/preproc/refer/refer.cc (main): Accept --help and --version.
6563 (usage): Add stream argument. Don't exit.
6564 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6566 (main): Accept --help and --version.
6567 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6568 (main): Accept --help and --version.
6569 * src/roff/groff/groff.cc (main): Accept --help and --version.
6570 (synopsis): Add stream argument.
6571 (help): Write --help output to stdout, not stderr.
6572 (usage): Add stream argument. Don't exit.
6573 * src/roff/grog/grog.pl: Accept --help and --version.
6575 * src/roff/grog/grog.sh: Accept --help and --version.
6576 * src/roff/nroff/nroff.sh: Accept --help and --version.
6577 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6578 (usage): Add stream argument. Don't exit.
6579 (main): Accept --help and --version.
6580 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6581 (usage): New function with stream argument, doesn't exit.
6582 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6583 (usage): New function with stream argument, doesn't exit.
6584 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6585 (usage): Add stream argument. Don't exit.
6586 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6587 (main): Accept --help and --version.
6588 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6590 (main): Accept --help and --version.
6591 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6592 (main): Accept --help and --version.
6593 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6594 (usage): Add stream argument. Don't exit.
6596 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
6598 Fix indentation in SYNOPSIS.
6600 Updated to include changes of latest BSD mdoc version (basically,
6601 the only change is that `.Fn' and `.Fc' put a final semicolon after
6602 a function declaration in the SYNOPSIS section).
6604 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6605 (doc-in-synopsis-section): New variable. Updated all related
6607 (doc-indent-synopsis-active): New register.
6608 (Nd, Fn, Fo): Use it.
6609 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6610 `.Cd' with long argument line produces indented wrapped lines.
6611 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6612 undesirable line break to be output.
6613 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6615 (Fn, Fc): Add final `;' to output.
6616 (doc-save-global-vars, doc-restore-global-vars): Updated.
6617 * tmac/doc-common: Remove `Ex' register.
6619 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6622 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
6624 * tmac/doc.tmac (Cd): Simplify code.
6625 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6627 2001-04-06 Werner LEMBERG <wl@gnu.org>
6629 Implement continuous underlining for nroff mode. To do that, a new
6630 request in the ditroff language has been added: `x u N' (N is 0
6633 \X and \Y are now transparent to end-of-sentence recognition.
6635 * src/include/printer.h (printer): Add `type' parameter to `special'
6637 * src/libs/libdriver/printer.cc (printer::special): Updated.
6638 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6640 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6641 specials of type `p'.
6642 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6643 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6644 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6645 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6646 (glyph::order): New method.
6647 (tty_printer::add_char): Use it.
6648 (tty_printer::special): New method.
6649 (tty_printer::end_page): Implement it.
6651 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
6652 * src/roff/troff/node.cc (special_node::special_node): Add parameter
6653 to set `no_init_string'.
6654 (special_node::tprint_start): Use it.
6655 (special_node::same, special_node::copy): Updated.
6656 (special_node::ends_sentence): New method.
6657 (troff_output_file::start_special): Add parameter to include
6658 inititialization of special conditionally.
6660 * src/roff/troff/env.h (environment): New member `underline_spaces'.
6661 * src/roff/troff/env.cc (do_underline_special): New function.
6662 (environment::set_font): Use it.
6663 (do_underline): Use it. This was `underline()'.
6664 (underline): Call `do_underline()'.
6665 (continuous_underline): New function which calls `do_underline()'.
6666 (environment::newline): Use `do_underline_special()'.
6667 (init_env_requests): Updated.
6669 * NEWS, man/troff_out.man: Updated.
6671 2001-04-06 Bruno Haible <haible@clisp.cons.org>
6673 * font/devutf8/R.proto: Fix code of 'shc'.
6675 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
6677 Many fixes. Diag lists can now be nested also; additionally,
6678 `-compact' and `-offset' are supported.
6680 * tmac/doc.tmac (doc-have-indent): Replaced with ...
6681 (doc-list-have-indent-stackXXX): A new register stack.
6682 (doc-have-diag-list): Removed.
6683 (Bl): Use `doc-list-have-indent-stackXXX'.
6685 (doc-diag-list): Use `doc-compact-list-stackXXX'.
6686 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
6687 (doc-set-vertical-and-indent): Ditto.
6688 (doc-next-list-depth): Removed.
6689 (doc-increment-list-stack): Updated.
6690 (doc-decrement-list-stack): Use `doc-list-depth' instead of
6691 `doc-next-list-depth'.
6692 (doc-end-list, doc-end-column-list): Don't use
6693 `doc-increment-list-stack'.
6694 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
6695 (doc-save-global-vars, doc-restore-global-vars): Updated.
6696 * tmac/doc-common: Updated.
6697 * tmac/groff_mdoc.man: Updated.
6700 2001-04-02 Werner LEMBERG <wl@gnu.org>
6702 * src/devices/grotty/grotty.man: Fix grammatical error.
6704 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
6706 Remove .Ld from mdoc package; replace it with special handling of
6709 * tmac/doc-common: Remove `Ld' register.
6710 Uncomment `doc-volume-ds-*' strings.
6711 Remove `doc-operating-system-default'.
6713 * tmac/doc-syms (Ld): Removed.
6714 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
6718 * tmac/groff_mdoc.man: Many fixes and updates.
6720 2001-03-29 Werner LEMBERG <wl@gnu.org>
6722 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
6723 Bond <tkb@tkb.mpl.com>.
6724 * tmac/www.tmac: Save compatibility mode.
6726 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
6728 * tmac/groff_mdoc.man: Many fixes.
6730 2001-03-28 Werner LEMBERG <wl@gnu.org>
6732 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
6735 2001-03-27 Werner LEMBERG <wl@gnu.org>
6737 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
6738 diversion. This fixes overlong tags.
6740 2001-03-26 Werner LEMBERG <wl@gnu.org>
6742 * doc/groff.texinfo: Fixed and improved documentation of fonts.
6743 * tmac/doc-syms: Fix error messages.
6744 * tmac/an-old.tmac: Remove incorrect double backslashes.
6746 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
6748 * tmac/Makefile.sub: Strip mdoc.local also
6749 * tmac/strip.sed: Fixed.
6751 2001-03-24 Werner LEMBERG <wl@gnu.org>
6753 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
6754 selecting the font size.
6755 * tmac/groff_mdoc.man, NEWS: Document it.
6757 2001-03-23 Werner LEMBERG <wl@gnu.org>
6759 * src/roff/troff/div.cc (save_vertical_space): Add default argument
6761 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
6762 argument to restore previous font family.
6763 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
6765 * doc/groff.texinfo: More fixes and additions (mainly for font
6766 manipulating commands).
6768 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
6769 * tmac/groff_mdoc.man: This. The quick reference has been removed.
6770 * tmac/Makefile.sub, NEWS: Updated.
6772 2001-03-23 Werner LEMBERG <wl@gnu.org>
6774 Replaced mdoc implementation. The new version is `state of the
6775 art', using almost all new features of groff 1.17 -- it won't run
6776 with older versions.
6778 * tmac/doc.tmac: Completely rewritten.
6779 * tmac/doc-common: Ditto.
6780 * tmac/doc-nroff: Ditto.
6781 * tmac/doc-ditroff: Ditto.
6782 * tmac/doc-syms: Ditto.
6783 * tmac/mdoc.local: New file.
6784 * tmac/groff_mdoc.samples.man: Replaced with ...
6785 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
6786 * tmac/strip.sed: Updated.
6787 * tmac/Makefile.sub: Updated.
6790 * tmac/groff_man.man: Add `man.local' to the FILES section.
6792 2001-03-22 Werner LEMBERG <wl@gnu.org>
6794 * doc/groff.texinfo: Added many @noindent.
6795 Replaced @end_Example -> @endExample.
6796 Added info whether registers are r/o.
6797 Many other additions and fixes.
6799 2001-03-21 Werner LEMBERG <wl@gnu.org>
6801 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
6802 in makeinfo of texinfo 4.0) to be used in @Def* macros.
6803 Improved @Def* macros: Now the exact syntax of request, register,
6804 and escapes is shown.
6805 Added macros for parentheses and brackets to be used in @Def*.
6806 Many fixes and improvements of the documentation.
6808 2001-03-20 Werner LEMBERG <wl@gnu.org>
6810 * doc/groff.texinfo: Added new index: `st' (for strings).
6811 Added macros @Defstr(x).
6812 Added macro @Example (adding @group).
6813 Other minor improvements.
6815 2001-03-19 Werner LEMBERG <wl@gnu.org>
6817 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
6818 `rq' for requests. `fn' is no longer used.
6819 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
6822 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
6823 number with name of man page.
6825 2001-03-19 Larry Kollar <kollar@alltel.net>
6827 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
6830 2001-03-19 Werner LEMBERG <wl@gnu.org>
6832 * man/groff_font.man: Document `prepro', `postpro', and `print'.
6833 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
6834 * src/devices/grohtml/grohtml.man: Fixing typos.
6836 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
6838 * tmac/s.tmac (@IP): Pass `.ip' html tag.
6839 * tmac/groff_mwww.man: Remove .LINE macro
6840 * tmac/www.tmac (LINE): Add `.ti'.
6842 * src/devices/grohtml/post-html.cc (html_printer): New member
6844 (html_printer::emit_raw): Use it.
6845 (html_printer::do_linelength): Ditto.
6846 (html_printer::do_pageoffset): Ditto.
6847 (html_printer::do_indentation): Ditto.
6848 (html_printer::do_tempindent): Ditto.
6849 (html_printer::do_break): Ditto.
6850 (html_printer::begin_page): Ditto.
6851 (html_printer::do_indentedparagraph): New function.
6852 (html_printer::troff_tag): Handle `.ip'.
6853 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
6854 Add `<td width=...>' handling.
6855 (html_text::do_table): Add parameter.
6856 (html_text::do_indent): Updated.
6857 * src/devices/groohtml/html-text.h: Updated.
6859 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
6861 Introduced simple html tables to implement indentation.
6863 * src/devices/grohtml/html.h (word, word_list): New structures.
6864 (simple_output): Use it.
6865 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
6866 (html_printer): Improve indentation handling.
6867 (html_printer::emit_raw): Set `in_table' element. Handle
6869 (html_printer::write_header): Move conditional downwards.
6870 Don't allow whitespace in tags.
6871 (html_printer::do_linelength): Handle line length and indentation
6873 (html_printer::do_pageoffset): Handle indentation conditionally.
6874 (html_printer::do_indentation): Ditto.
6875 (html_printer::do_tempindent): New function member.
6876 (html_printer::do_fill): Take care of indentation.
6877 (html_printer::do_flush): Finish table.
6878 (html_printer::do_links): Ditto.
6879 (html_printer::do_break): New function for handling `.br' and `.ti'.
6880 (html_printer::troff_tag): Use it.
6882 (html_printer::flush_globs): Fix.
6883 (html_printer::flush_page): Finish table.
6884 (html_printer::html_printer): Fix error message. Set up
6886 (html_printer::add_to_sbuf): Remove special handling of character
6888 (to_unicode): Remove `stop()'.
6889 (html_printer::write_title): Cleanup.
6890 (html_printer::begin_page): Use `put_string()'. Handle indentation.
6891 (html_printer::~html_printer): Flush text and end the line.
6893 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
6894 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
6896 (html_text::start_tag): Disable newlines.
6897 (html_text::table_is_void): New function.
6898 (html_text::issue_table_begin): Ditto.
6899 (html_text::issue_table_end): Ditto.
6900 (html_text::push_para): Better table handling.
6901 (html_text::do_indent): New function.
6902 (html_text::do_table): Ditto.
6903 (html_text::done_table): Ditto.
6904 (html_text::do_tt): Handle PRE_TAG.
6905 (html_text::is_in_table): New function.
6906 (html_text::check_emit_text): Handle tables.
6907 (html_text::do_emittext): Use `nl()'.
6908 (html_text::do_para): Handle table.
6909 (html_text::remove_def): New function.
6910 * src/devices/grohtml/output.cc (word, word_list): Implement
6912 (simple_output::end_line): Flush last word.
6913 (simple_output::simple_comment): Ditto.
6914 (simple_output::begin_comment): Recoded.
6915 (simple_output::end_comment): Ditto.
6916 (simple_output::comment_arg): Removed.
6917 (simple_output::check_newline): Improve test and flush last word.
6918 (simple_output::space_or_newline): Improved.
6919 (simple_output::write_newline): Replaced with...
6920 (simple_output::nl): This.
6921 (simple_output::put_raw_char): Flush last word.
6922 (simple_output::check_space): Removed.
6923 (simple_output::put_translated_string): Ditto.
6924 (simple_output::put_string): Simplified.
6925 (simple_output::put_number): Updated.
6926 (simple_output::put_float): Ditto.
6927 (simple_output::put_symbol): Removed.
6928 (simple_output::enable_newlines): Add `check_newline()'.
6929 (simple_output::flush_last_word): New function.
6931 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
6932 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
6934 * tmac/s.tmac (@PP, @IP): Add html conditional code.
6935 * tmac/an-old.tmac (TP): Ditto.
6937 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
6939 * mdate.sh: Make it POSIX compliant.
6941 2001-03-09 Werner LEMBERG <wl@gnu.org>
6943 Added the `return' request to end a macro immediately. It simply
6944 pops iterators from the input stack until a macro iterator is found.
6946 * src/roff/troff/input.cc (input_iterator::is_macro,
6947 macro_iterator::is_macro): New member.
6948 (input_return_boundary): New class to signal an immediate return
6950 (input_stack::add_return_boundary, input_stack::is_return_boundary):
6952 (input_stack::clear): Use it.
6953 (input_stack::pop_macro): New function.
6954 (while_request): Use `is_return_boundary()'.
6955 (return_macro_request): New function.
6956 (init_input_requests): Use it.
6958 * src/roff/troff/TODO: Updated.
6959 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6961 2001-03-08 Werner LEMBERG <wl@gnu.org>
6963 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
6966 2001-03-07 Werner LEMBERG <wl@gnu.org>
6968 Make `\B' more rigid.
6970 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
6972 (get_number_rigidly): New function.
6973 * src/roff/troff/input.cc (do_expr_test): Use it.
6974 * src/roff/troff/token.h: Updated.
6976 * src/roff/troff/request.h: Fix typo (init_html_request ->
6977 init_markup_request).
6979 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
6981 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
6982 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
6983 are now `.begin', `.end', `.image'.
6985 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
6986 (html_printer::add_to_sbuf): Changing type of `code' parameter.
6987 Use add_char_to_sbuf().
6988 (to_unicode): New function.
6989 (char_translate_to_html): Changing type of `ch' parameter.
6991 (html_printer::~html_printer): Comment out doctype string.
6992 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
6993 instead of `.html-end'.
6994 (write_start_image): Use `.begin' and `.image' instead of
6995 `.html-begin' and `.html-image'.
6996 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
6997 (html_begin): Renamed to ...
6999 (html_end): Renamed to ...
7001 (html_image): Renamed to ...
7003 (init_html_requests): Renamed to ...
7004 (init_markup_requests): This.
7005 * tmac/www.tmac: Updated.
7007 2001-02-28 Bram <bram@avontuur.org>
7009 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7012 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
7014 * doc/meref.me: Fixing some typos.
7016 2001-02-16 Werner LEMBERG <wl@gnu.org>
7018 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7019 method. Return `HYPHEN_MIDDLE' if it was `\:'.
7020 * src/roff/troff/node.h: Updated.
7022 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
7024 * tmac/groff_tmac.man: Fix typo.
7026 2001-02-16 Werner LEMBERG <wl@gnu.org>
7028 Fixing a bug which prevented proper end-of-sentence recognition
7029 between an `unformatted' box and the following text. As a
7030 consequence, vertical line distances are no longer preserved in
7031 boxes after a call to `.unformat' -- because boxes aren't
7032 line-oriented (contrary to diversions), this doesn't make sense
7035 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7037 (vertical_size_node::set_unformat_flag): New method.
7038 * src/roff/troff/node.hh: Updated.
7039 * src/roff/troff/input.cc (word_space_node::reread,
7040 hmotion_node::reread): Reset `unformat' flag after usage.
7041 (unformat_macro): Append only if `set_unformat_flag()' returns
7043 * src/roff/troff/troff.man: Updated.
7045 2001-02-15 Werner LEMBERG <wl@gnu.org>
7047 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7048 documentation of `asciify' and `unformat' requests.
7050 2001-02-13 Werner LEMBERG <wl@gnu.org>
7052 Redesigned the `unformat' request. It is no longer connected with
7053 `asciify' but rather uses new `reread()' methods if the `unformat'
7054 flag is set. Additionally, the handling of space characters after
7055 unformatting has been fixed so that they retain their width.
7057 * src/roff/troff/node.h (width_list): New structure to store
7058 original widths of spaces.
7059 (node): Added `unformat' member.
7060 Replaced `num_spaces' variable with `orig_width' list.
7061 * src/roff/troff/node.cc (*node::asciify,
7062 asciify_reverse_node_list): Removed `unformat_only' flag and related
7064 (word_space_node::asciify, word_space_node::word_space_node): Use
7066 (word_space_node::~word_space_node): New destructor.
7067 (word_space_node::copy): Updated to handle `orig_width'.
7068 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7069 (*node::merge_space): Update `orig_width' list if necessary.
7070 (*node::set_unformat_flag): New methods to set the `unformat' flag.
7071 * src/roff/troff/enc.cc (environment::space_newline): Use
7073 (environment::space): Added method to handle space width and
7074 sentence space width as parameters. Use `width_list'.
7075 (environment::make_tab_node): Updated.
7076 * src/roff/troff/env.h: Updated.
7077 * src/roff/troff/input.cc (word_space_node::reread,
7078 unbreakable_space_node::reread, hmotion_node::reread): New methods
7079 to handle nodes specially if `unformat' flag is set.
7080 (do_asciify_macro): Renamed back to ...
7081 (asciify_macro): This.
7082 (unformat_macro): New implementation to simply set the `unformat'
7085 * MORE.STUFF: Added more info about deroff.
7087 2001-02-08 Werner LEMBERG <wl@gnu.org>
7089 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7090 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7091 and `add_self()' methods to avoid hyphenation. For example, the
7092 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7093 soft hyphen after `foo'. Now the hyphen list is correctly
7094 `foo<ignore><ignore>bar'.
7096 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
7098 * tmac/groff_tmac.man: Fix `BIR' macro.
7100 2001-02-04 Werner LEMBERG <wl@gnu.org>
7102 A new escape sequence `\:', inserting a zero-width break point.
7104 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7105 * src/roff/troff/input.cc (get_copy, token::next, asciify):
7107 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7109 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
7110 and `asciify()' methods.
7111 * src/roff/troff/node.cc (space_node::space_node): Updated.
7112 (space_node::asciify): Handle `was_escape_colon'.
7113 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7115 Handle `\~' similar to other comparable requests.
7117 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7119 (token::next): Move creation of an unbreakable_space_node to...
7120 (token::add_to_node_list): Here.
7122 Fix a bug which sometimes prevented hyphenation of words connected
7123 with `\~' or `\ ' (and other escape sequences handled as
7124 TOKEN_NODE). This also fixes a hyphenation problem with boxes
7125 (after a call to the `unformat' request).
7127 * src/roff/troff/env.h (environment::possibly_break_line,
7128 environment::hyphenate_line): Introducing `start_here' parameter.
7129 * src/roff/troff/env.cc (environment::space_newline,
7130 environment::space): Use it.
7131 (environment::possibly_break_line, environment::hyphenate_line):
7133 * src/roff/troff/input.cc (process_input_stack): Use it.
7134 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7135 space_char_hmotion_node, overstrike_node): Add
7136 `get_hyphenation_type()' method.
7137 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7138 if `unformat_only' is active.
7140 2001-01-30 Werner LEMBERG <wl@gnu.org>
7142 Implemented new read-only number register `.linetabs' which
7143 returns 1 if in line-tabs mode, 0 otherwise.
7145 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7146 * src/roff/troff/env.cc (get_line_tabs): New function.
7147 (init_env_requests): Use it.
7148 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7150 * VERSION, REVISION: Changing to 1.17.0.
7152 2001-01-28 Werner LEMBERG <wl@gnu.org>
7154 Fixed a bug which prevented hyphenation of words which are finished
7157 * src/roff/troff/token.h (token): Add enum type
7158 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7159 * src/roff/troff/input.cc (token::next, token::description,
7160 get_line_arg, token::add_to_node_list, token::process): Use it.
7162 2001-01-27 Werner LEMBERG <wl@gnu.org>
7164 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7165 * src/roff/troff/div.cc (do_divert): Use it.
7167 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7169 2001-01-25 Werner LEMBERG <wl@gnu.org>
7171 Adding the `linetabs' request. If set, tab distances are not
7172 computed relative to the input line but relative to the output line.
7174 * src/roff/troff/env.h (environment): New member `line_tabs'.
7175 * src/roff/troff/env.cc (line_tabs_request): Implement request.
7176 (environment::environment, environment::copy): Updated.
7177 (environment::distance_to_next_tab): Use `line_tabs'.
7178 (init_env_requests): Register request.
7179 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
7182 2001-01-24 Werner LEMBERG <wl@gnu.org>
7184 Introducing a new read-only register `.int' which is set to a
7185 positive value if the last output line is interrupted (i.e., if it
7188 * src/roff/troff/env.cc (init_env_requests): Add it.
7189 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7191 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
7193 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7194 * src/preproc/html/pre-html.cc (findPrefix): New function which
7195 generates the troff executable name via the system prefix.
7196 * src/preproc/eqn/main.cc: Modified warning message.
7198 2001-01-23 Werner LEMBERG <wl@gnu.org>
7200 troff's `box' and `boxa' requests didn't preserve temporary
7203 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7204 `saved_target_text_length' members.
7205 * src/roff/troff/div.cc (do_divert): Use them.
7207 Tabs (but not yet leaders and fields) are now handled correctly by
7210 * node.h (hmotion_node): Add field `was_tab'.
7211 * env.cc (environment::make_tab_node): Set it.
7212 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7214 Added new request `unformat' which will, contrary to `asciify',
7215 preserve font information after unformatting (i.e., only nodes
7216 dealing with horizontal space are converted back to input
7219 * input.cc (asciify_macro): Renamed to ...
7220 (do_asciify_macro): this, having a new parameter `unformat_only'.
7221 (asciify_macro, unformat_macro): New; using do_asciify_macro.
7222 (init_input_requests): Added `unformat'.
7223 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7224 parameter to control asciification process.
7225 * node.h (*_node::asciify): Ditto.
7226 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7228 2001-01-20 Werner LEMBERG <wl@gnu.org>
7230 * doc/groff.texinfo: Minor improvement of `.in' documentation.
7232 2001-01-18 Werner LEMBERG <wl@gnu.org>
7234 * tmac/ps.tmac: Remove call of psold.tmac.
7235 * tmac/psold.tmac: Comment updated.
7236 * tmac/psnew.tmac: Removed since no longer needed.
7237 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7239 * font/devutf8/R.proto: Adding `shc' glyph.
7240 * font/devutf8/NOTES: Updated.
7242 * test-groff: Updated.
7244 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
7246 First cut of the new html device driver. Changes to pre-html and
7247 the new grohtml are too numerous to be documented here.
7249 Stuff related to `html' has been renamed to `html-old' and `html2'
7250 stuff has been renamed to `html' (including directories). The new
7251 html device driver is therefore invoked as `-Thtml'.
7253 Added new `\O' escape to suppress output (needed by html driver).
7255 Added functions and code to pass info about input-level commands
7256 (`.in', `.fl', etc.) to html driver.
7258 Three new functions (.html-begin, .html-end, and .html-image) for
7259 better html handling: `html-begin' will execute the remaining line
7260 if at the outermost nesting level, increasing an internal counter.
7261 `html-end' does the same but decreases the internal counter.
7262 `html_image' puts its arguments into a special node (suppress_node)
7263 to define an image region.
7265 The `output' request has been removed.
7267 * tmac/html-tags.tmac: Removed.
7268 * tmac/arkup.tmac: Updated and renamed to ...
7269 * tmac/www.tmac: New file.
7270 * tmac/markup.tmac Updated and renamed to ...
7271 * tmac/mwww.tmac: New file.
7272 * tmac/Makefile.sub: Updated.
7273 * tmac/an-old.tmac: Updated.
7274 * tmac/eqnrc: Updated.
7275 * tmac/groff_man.man
7276 * tmac/groff_markup.man: Updated and renamed to ...
7277 * tmac/groff_mwww.man: New file.
7278 * tmac/groff_tmac.man: Updated.
7279 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7280 * tmac/html.tmac: Updated and renamed from html2.tmac.
7281 * tmac/pspic.tmac: Updated html support.
7282 * tmac/s.tmac: Added html output support.
7283 * tmac/troffrc, tmac/troffrc-end: Updated.
7285 * Makefile.in, doc/Makefile: Updated.
7286 * doc/groff.texinfo: Added info about new `\O' escape.
7287 * doc/homepage.ms: Use `MAILTO' macro.
7289 * font/devhtml/DESC.proto: Add `C' font.
7290 * font/devhtml/Makefile.sub: Updated.
7291 * font/devhtml/R.proto: Minor fixes.
7292 * font/devhtml-old/Makefile.sub: Updated.
7294 * src/devices/grohtml-old/Makefile.sub: Updated.
7296 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7298 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7299 graphic_start): Add `inline' parameter. Update.
7300 (html_end_suppress, graphic_end): Update.
7302 * src/include/html-strings.h: New file.
7303 * src/include/htmlindicate.h: Comments updated.
7304 * src/include/printer.h: Updated.
7306 * src/preproc/eqn/main.cc (do_file, main): Updated.
7307 * src/preproc/pic/troff.cc (troff_output::start_picture,
7308 troff_output::finish_picture): Updated.
7309 * src/preproc/tbl/main.cc (process_input_file): Updated.
7311 * src/roff/groff/groff.cc (main): Updated.
7312 Pass device arguments to predrivers also.
7313 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7314 * src/roff/troff/env.h (environment): Updated.
7315 New elements `need_eol' and `ignore_next_eol' (for html output).
7316 * src/roff/troff/env.cc (environment::environment): Add initializers
7317 for `need_eol' and `ignore_next_eol'.
7318 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7320 (point_size, fill, no_fill, center, right_justify, line_length,
7321 indent, temporary_indent, break_request, handle_tab): Use
7323 (set_tabs): Use `add_html_tag_tabs()'.
7324 (environment::add_html_tag): Updated.
7325 (environment::do_break): Updated.
7326 * src/roff/troff/div.cc (space_request, flush_output): Use
7327 `environment::add_html_tag()'.
7328 * src/roff/troff/input.cc: Updated.
7329 New variable `html_level' to indicate nested `html-begin' requests.
7330 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7331 (non_interpreted_char_node, token_node, non_interpreted_node): Add
7332 `force_tprint()' method.
7333 (token::next): Handle `\O'.
7334 (do_suppress): Implement it.
7335 (html_begin, html_end, html_image): New functions.
7336 (init_output_requests): Renamed to ...
7337 (init_html_requests): this.
7339 (macro::append_str, macro::append_unsigned, macro::append_int): New
7341 New variable `output_low_mark_miny' to limit minimal value of y.
7342 (reset_output_registers): Use it.
7343 (output_request): Removed.
7344 (get_output_registers): New function.
7345 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7346 (*_node): Added `force_tprint()' if necessary.
7347 (special_node): New elements `tf' and `get_tfont()'.
7348 (suppress_node): New class.
7349 * src/roff/troff/node.cc:
7350 New global variables `image_no' and `suppress_start_page'.
7351 (real_output_file): New method `is_on()'.
7352 (troff_output_file): New method `start_special(tfont)'.
7353 (troff_output_file::really_print_line): Use `tprint' conditionally.
7354 (real_output_file::print_line): Updated.
7355 (real_output_file::on): Updated.
7356 (*_node): Added `force_tprint()'.
7357 (special_node::special_node): Initializer updated.
7358 (special_node::same, special_node::copy, special_node::tprint_start):
7360 (get_reg_int, get_reg_str): New functions.
7361 (suppress_node::*): New methods.
7362 New global variables last_position, last_image_filename;
7363 (min): New inline function.
7364 * src/roff/troff/reg.h, src/roff/troff/request.h,
7365 src/roff/troff/troff.h: Updated.
7367 2001-01-13 Werner LEMBERG <wl@gnu.org>
7369 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7370 documentation of `asciify' request.
7372 2001-01-12 Werner LEMBERG <wl@gnu.org>
7374 * src/roff/troff/input.cc: Move definition of special characters
7375 like `ESCAPE_TILDE' to ...
7376 * src/roff/troff/input.h: New file.
7377 * src/roff/troff/Makefile.sub (HDRS): Add it.
7379 Extending the .asciify request to `unformat' space characters also.
7381 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7382 to count input space characters.
7383 Update constructors to take care of it.
7384 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7385 `ESCAPE_SPACE' instead of normal space.
7386 (word_space_node::asciify): New method.
7387 (unbreakable_space_node::asciify): New method.
7388 (word_space_node::merge_space): New method.
7389 * src/roff/troff/env.cc (environment::space_newline,
7390 environment::space): Add code to initialize `num_spaces' (using the
7391 constructor of `word_space_node').
7392 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7395 2001-01-09 Werner LEMBERG <wl@gnu.org>
7397 * man/groff_char.man: Use table header traps only conditionally.
7399 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
7401 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7403 2001-01-08 Werner LEMBERG <wl@gnu.org>
7405 Introducing the `box' and `boxa' requests which are similar to
7406 `di' resp. `da' but omitting a partially filled line (which is
7407 restored after ending the diversion).
7409 * src/roff/troff/div.h (diversion): Add elements to save partially
7411 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7412 partially filled line.
7413 (divert, divert_append): Updated.
7414 (box, box_append): New functions.
7415 (init_div_requests): Use them.
7416 * src/roff/troff/env.h (environment): do_divert() is now a friend.
7417 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7419 * doc/groff.texinfo: Fix documentation of `lf' request.
7421 2000-12-25 Werner LEMBERG <wl@gnu.org>
7423 * src/roff/troff/troff.man, NEWS: Document `writem' request.
7425 2000-12-21 Werner LEMBERG <wl@gnu.org>
7427 Ignore `ss' request if in compatibility mode.
7429 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7430 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7431 * src/roff/troff/env.cc (space_size): Use it.
7433 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7434 `ss' request in nroff mode.
7436 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7439 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
7441 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7443 2000-12-13 Werner LEMBERG <wl@gnu.org>
7445 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7446 * src/preproc/eqn/neqn.man: Small fixes and additions.
7448 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
7450 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7453 * src/preproc/eqn/neqn.man: New file.
7455 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7458 * tmac/e.tmac: Add `T&' macro.
7459 Fix `indent cannot be negative' warning.
7460 * tmac/s.tmac: Fix `indent cannot be negative' warning.
7462 2000-12-07 Werner LEMBERG <wl@gnu.org>
7464 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7466 2000-12-06 Werner LEMBERG <wl@gnu.org>
7468 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7471 * MORE.STUFF: Added info about deroff for djgpp.
7473 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7474 documentation of -rcR switch.
7476 2000-12-03 Werner LEMBERG <wl@gnu.org>
7478 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7479 if -rcR=1 (which is now the default in nroff mode), a single, very
7480 long page is created instead of multiple pages: All `ne' and `wh'
7481 requests are put into conditionals; a new macro `an-end' is added to
7482 be called with `em'.
7484 Some other minor cleanups.
7486 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7488 2000-12-02 Werner LEMBERG <wl@gnu.org>
7490 Fixing a bug which prevented hyphenation in words followed
7491 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7493 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7494 Adding possibly_break_line().
7495 * src/roff/troff/env.h (environment): Make possibly_break_line()
7498 Make `\~' usable in .tr request.
7500 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7501 (token): Add stretchable_space().
7502 * src/roff/troff/input.cc (token::next, token::delimiter,
7503 token::description, process_input_stack, do_translate,
7504 add_to_node_list, token::process): Use it.
7505 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7506 for adjusting the space.
7507 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
7508 for stretchable space.
7509 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7510 (make_node): Add code for stretchable space.
7511 * src/roff/troff/env.cc (environment::add_char): Use it.
7512 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7513 (get_copy, token::next, transparent_translate, asciify): Use it.
7515 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7516 doc/groff.texinfo: Updated.
7517 * man/groff.man: Small reorderings.
7519 2000-11-23 Werner LEMBERG <wl@gnu.org>
7522 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7524 * src/roff/troff/input.cc (main): Add `config_macro_path' and
7525 `safer_macro_path' to -M option.
7526 * src/roff/troff/troff.man: Fixes.
7528 2000-11-22 Werner LEMBERG <wl@gnu.org>
7530 Use safer path (except for config files) if -U isn't specified. Add
7531 a special macro path (without home and current directory) for config
7532 files. Add home directory to unsafe path for consistency. Don't
7533 include the home directory in the font path.
7535 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7537 * src/include/macropath.h: Add `config_macrp_path'.
7538 * src/libs/libgroff/fontfile.cc: Fix font path.
7539 * src/roff/troff/input.cc (process_startup_file): Use
7540 `config_macro_path'.
7541 (main): Select unsafe path if -U is given.
7543 * src/preproc/eqn/main.cc (main): Fixing search path for
7545 * src/preproc/eqn/eqn.man: Updated.
7547 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7550 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7551 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7552 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7553 src/devices/grotty/grotty.man: Updated.
7555 * Makefile.in: Fix comments.
7557 2000-11-17 Werner LEMBERG <wl@gnu.org>
7559 * tmac/safer.tmac: Empty file added (again) for compatibility
7561 * tmac/Makefile.sub: Updated.
7563 2000-11-16 Werner LEMBERG <wl@gnu.org>
7565 * src/devices/grodvi/dvi.cc (main),
7566 src/devices/grohtml2/post-html.cc (main),
7567 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7568 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7569 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7570 (main), src/preproc/html2/pre-html.cc (main),
7571 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7572 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7573 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7574 (main), src/utils/hpftodit/hpftodit.cc (main),
7575 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7576 (main), src/utils/lookbib/lookbib.cc (main),
7577 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7578 (main): Use stdout for -v.
7579 * src/roff/groff/groff.cc (run_commands),
7580 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7581 to make direct printing to stdout possible.
7582 * src/roff/groff/pipeline.h: Updated.
7584 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7585 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7586 * src/utils/afmtodit/afmtodit.man: Updated.
7588 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7589 (version): New function.
7591 * src/utils/addftinfo/addftinfo.man: Updated.
7593 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7594 Fixing copyright dates.
7596 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7599 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7602 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7604 2000-11-15 Werner LEMBERG <wl@gnu.org>
7606 In all programs, make -v return immediately with exit status 0 to
7607 be compliant with the GNU standard.
7609 * src/devices/grodvi/dvi.cc (main),
7610 src/devices/grohtml2/post-html.cc (main),
7611 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7612 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7613 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7614 (main), src/preproc/html2/pre-html.cc (main),
7615 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7616 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7617 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7618 (main): Implement it.
7621 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
7622 and postprocessors to the -v option.
7624 * src/roff/grog/grog.pl: Implement -v.
7625 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7626 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7628 * src/roff/nroff/nroff.sh: Implement -v.
7629 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7630 * src/roff/nroff/nroff.man: Updated.
7632 * src/preproc/eqn/main.cc (main): Fix comment typo.
7634 * MORE.STUFF: Added info about djgpp port of grap.
7636 2000-11-14 Werner LEMBERG <wl@gnu.org>
7638 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7639 mode (or rather, implemented non-compatibility mode).
7640 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7642 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7643 replacing it -- we don't find gxditview otherwise.
7644 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7646 * src/preproc/pic/depend: Removed. Unnecessary.
7648 Implemented dummy keyword `solid' in pic for compatibility with
7651 * lex.cc (lookup_keyword): Added `solid'.
7652 * pic.y: Added SOLID with dummy rule.
7653 * pic.cc, pic_tab.h: Regenerated.
7654 * doc/pic.ms: Updated.
7656 2000-11-13 Werner LEMBERG <wl@gnu.org>
7658 For security reasons, don't use the current directory but the home
7659 directory while searching and scanning troffrc and troffrc-end.
7660 Similarly, replace the current directory with the home directory
7663 * Makefile.in (fontpath, tmacpath): Remove current directory.
7665 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
7666 two parameters `add_home' and `add_current'.
7667 (search_path::~search_path, search_path::command_line_dir,
7668 search_path::open_file): Remove tests for `dirs' being zero.
7669 * src/include/searchpath.h: Adjust.
7670 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
7672 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
7674 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
7675 * src/roff/troff/input.cc: Use `mac_path', initialized with
7677 (process_startup_file): Set `mac_path' to `safer_macro_path'.
7678 * src/roff/troff/env.cc: Use `mac_path'.
7680 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
7682 * NEWS, man/roff.man, src/roff/troff/troff.man,
7683 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
7686 2000-11-12 Werner LEMBERG <wl@gnu.org>
7688 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
7690 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
7691 * configure.in: Fix typo in comment.
7692 * configure: Regenerated.
7694 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
7697 2000-11-08 Werner LEMBERG <wl@gnu.org>
7699 Add system tmac directory (/usr/local/lib/groff/site-tmac).
7701 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
7702 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
7705 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
7706 * tmac/Makefile.sub (install_data): Create
7707 $(systemtmacdir) and $(localtmacdir).
7708 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
7709 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
7710 NEWS, doc/groff.texinfo: Updated and minor fixes.
7712 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
7713 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
7714 $(systemtmacdir) since the wrapper files are platform-dependent.
7716 2000-11-01 Werner LEMBERG <wl@gnu.org>
7718 * doc/groff.texinfo: Fix typo.
7720 2000-10-26 Werner LEMBERG <wl@gnu.org>
7722 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
7723 tmac.doc.old -> doc-old.tmac
7724 tmac.an.old -> an-old.tmac
7726 * tmac/tmac.*: Moved to ...
7727 * tmac/*.tmac: this.
7728 * tmac/man.local: Fix comment.
7729 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
7730 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
7731 Added some `FILES' sections. More use of @...@ directives. Other
7733 * arch/djgpp/README, font/devutf8/NOTES: Updated.
7734 * doc/homepage.ms, doc/groff.texinfo: Updated.
7735 * man/groff.man, man/roff.man: Updated.
7736 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
7737 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7738 src/devices/grotty/grotty.man: Updated.
7739 * src/preproc/pic/pic.man: Updated.
7740 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
7741 instead of -mdoc.old.
7742 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
7743 * src/roff/nroff/nroff.man: Updated.
7746 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
7748 * tmac/mm.diff: Removed -- it has no use now since the mm package
7751 * tmac/*: Removed trailing spaces.
7753 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
7754 the tmac subdirectory also).
7756 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
7757 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
7758 stuff since it is no longer needed.
7760 * README, PROBLEMS: Updated.
7762 2000-10-25 Werner LEMBERG <wl@gnu.org>
7764 Invert current behaviour: Search first FOOBAR.tmac, then
7767 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
7768 (open_mac_file, macro_source): Implement it.
7769 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
7770 doc/groff.texinfo, NEWS: Document it.
7772 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
7773 Small documentation improvements.
7775 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
7778 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
7780 2000-10-24 Werner LEMBERG <wl@gnu.org>
7782 Add local tmac directory (groff/site-tmac).
7784 * Makefile.in: Add $(localtmacdir).
7785 (uninstall_dirs): Add $(localtmacdir).
7786 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
7787 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
7788 in $(localtmacdir). Create $(localtmacdir).
7789 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
7790 Updated and minor fixes.
7792 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
7794 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
7796 2000-10-23 Werner LEMBERG <wl@gnu.org>
7798 Move hyphen.us to tmac directory.
7800 * src/roff/troff/hyphen.us: Removed.
7801 * src/tmac/hyphen.us: Added.
7802 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
7804 Change installation structure for data files from .../groff/... to
7805 .../groff/<version><revision>/... to be conform with other GNU
7808 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
7809 doc/Makefile: Implement it.
7810 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
7811 * configure: Updated.
7812 * arch/djgpp/README, font/devutf8/NOTES: Use it.
7813 * NEWS: Document it.
7814 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
7815 @MACRODIR@ instead of hard-coded directories.
7817 2000-10-22 Werner LEMBERG <wl@gnu.org>
7819 Implement $GROFF_BIN_PATH environment variable (which defaults to
7820 $bindir) used for child programs of groff and similar wrappers.
7822 * gendefs.sh: Improve documentation.
7823 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
7824 src/preproc/eqn/Makefile.sub (neqn),
7825 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
7826 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
7828 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
7829 $GROFF_PATH__ (the latter for communication with troff).
7830 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
7832 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
7833 doc/groff.texinfo: Document it.
7835 * doc/groff.texinfo: Improve documentation of troff's -a option.
7837 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
7839 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
7840 non-intrusive eol marker.
7841 (troff_output_file::determine_line_limits): New function.
7842 (troff_output_file::draw): Use it.
7843 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
7844 output_pending_lines() instead of output_line().
7845 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
7846 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
7847 createImage): Small fixes.
7849 2000-10-14 Werner LEMBERG <wl@gnu.org>
7851 Replace tmac.safer with a real secure solution.
7853 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
7854 system_request, pipe_output): Disable requests if in safer mode.
7855 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
7856 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
7857 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
7858 doc/groff.texinfo, src/roff/groff/groff.man,
7859 src/roff/troff/troff.man, arch/djgpp/README: Updated.
7861 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
7862 (resource_manager::output_prolog): Replace setenv() with putenv().
7864 2000-10-09 Werner LEMBERG <wl@gnu.org>
7866 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
7867 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
7868 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
7869 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
7870 compilation errors with some compilers. It seems that this code
7871 is no longer necessary -- if yes, it is easy to add some #ifdef's
7872 for that particular old-fashioned compiler.
7874 * MORE.STUFF: Added info about Meta-tbl.
7876 * doc/groff.texinfo: Added more info about `.if "..."..."'.
7878 2000-10-07 Werner LEMBERG <wl@gnu.org>
7880 Adding a new escape sequence \B'...': If the string between
7881 the delimiters is a valid numeric expression, return the character
7882 `1', and `0' otherwise. This is an analogon to \A.
7884 * src/roff/troff/input.cc (do_expr_test): Implement it.
7885 (token::next): Use it.
7886 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
7888 * tmac/tmac.trace: Made independent from escape character.
7890 2000-10-06 Werner LEMBERG <wl@gnu.org>
7892 Adding a new request .dei: define indirect. The first and second
7893 parameter of .dei are taken from string registers instead directly;
7894 this very special request is needed to make tmac.trace independent
7895 from the escape character (which might even be disabled).
7897 * src/roff/troff/input.cc (do_define_macro): Implement it.
7898 (define_macro_indirect): New function.
7899 (init_input_requests): Use it.
7901 Adding two requests .ecs and .ecr: Save and restore the escape
7902 character. These two requests are needed to make tmac.trace
7903 independent from the escape character (which might even be
7906 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
7908 (init_input_requests): Use it.
7910 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7912 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
7914 Adding a new option -P and new environment variable GROPS_PROLOGUE
7915 to grops, selecting a different prologue file (minor modifications
7918 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
7919 src/devices/grops/ps.cc (main): Implement it.
7920 * src/devices/grops/grops.man, NEWS: Document it.
7922 2000-09-22 Werner LEMBERG <wl@gnu.org>
7924 * INSTALL: Add info about selecting paper format.
7926 2000-09-21 Werner LEMBERG <wl@gnu.org>
7928 * src/roff/troff/input.cc (main): Fixing compiler warning.
7929 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
7930 strings.h from the former to the latter.
7931 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
7932 stuff from the former to the latter.
7934 2000-09-11 Werner LEMBERG <wl@gnu.org>
7936 Implementing two new requests .tm1 and .tmc: The former is similar
7937 to .tm but can output leading spaces; its syntax is similar to
7938 defining a string, i.e., a `"' can be used to mark the beginning of
7939 the string to be written to stderr: `.tm1 " test'. The latter is
7940 similar to .tm1 but doesn't write out a final newline character.
7942 * src/roff/troff/input.cc (terminal1, terminal_continue,
7943 do_terminal): New functions.
7944 (init_input_requests): Use them.
7945 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7947 2000-09-09 Werner LEMBERG <wl@gnu.org>
7949 * tmac/groff_mdoc.samples.man: Small fixes.
7951 2000-09-08 Werner LEMBERG <wl@gnu.org>
7953 * tmac/groff_mdoc.man: Fixing typo.
7955 2000-09-02 Werner LEMBERG <wl@gnu.org>
7957 Implementing a .nop request which does nothing.
7959 * src/roff/troff/input.cc (nop_request): New function.
7960 (init_input_requests): Use it.
7961 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7963 2000-09-01 Werner LEMBERG <wl@gnu.org>
7965 * doc/groff.texinfo: Added some comments.
7967 2000-08-30 Werner LEMBERG <wl@gnu.org>
7969 * src/roff/troff/TODO: Updated.
7971 2000-08-25 Werner LEMBERG <wl@gnu.org>
7973 * doc/groff.texinfo: Fix comment how to compile the DVI file.
7975 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
7977 * font/devps/generate/Makefile (SHELL): Define explicitly to
7978 "/bin/sh", for non-Unix platforms.
7979 (extraclean): Use a more portable "" quoting instead of a
7980 backslash (which doesn't work on DOS/Windows).
7982 * font/devlj4/generate/Makefile (extraclean): Ditto.
7984 * font/devdvi/generate/Makefile (extraclean): Ditto.
7986 2000-08-25 Werner LEMBERG <wl@gnu.org>
7988 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
7989 src/roff/troff/troff.man: Document Eli's latest changes.
7991 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
7993 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
7994 macro file names of the form NAME.tmac as well as tmac.NAME.
7996 2000-08-25 Werner LEMBERG <wl@gnu.org>
7998 * src/include/posix.h: Remove definition of FILENAME_MAX.
8000 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8001 `sys_fatal' and `stop' function().
8003 * test-groff: Updated.
8005 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
8007 Added the new troff command .output <arg> to suppress output (while
8008 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8009 registers (for passing the output dimensions to the output device).
8011 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8013 * src/roff/troff/node.h, src/roff/troff/node.cc
8014 (troff_output_file::really_print_line,
8015 ascii_output_file::really_print_line,
8016 supress_output_file::really_print_line): Use `width' parameter.
8017 (troff_output_file::really_on, troff_output_file::really_off,
8018 output_file::on, output_file::off, real_output_file::on,
8019 real_output_file::off, real_output_file::really_on,
8020 real_output_file::really_off): New functions.
8021 (real_output_file:public output_file): New variable `output_on'.
8022 (real_output_file::begin_page, real_output_file::copy_file,
8023 real_output_file::transparent_char, real_output_file::print_line):
8025 (real_output_file::print_line): Use check_output_limits.
8026 * src/roff/troff/reg.h, src/roff/troff/request.h,
8027 src/roff/troff/input.cc (assign_registers): New function to remove
8029 (do_ps_file): Use it.
8030 (check_output_limits, reset_output_registers, output_request,
8031 init_output_requests): New functions.
8032 (init_input_requests): Updated.
8034 Added new grohtml2 device and html2 preprocessor (coding
8035 not yet finished) which will eventually replace grohtml.
8037 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8039 * src/include/htmlindicate.h, src/include/htmlindicate
8040 (html_begin_suppress, html_end_suppress): New functions.
8041 * src/preproc/tbl/main.cc: Use it.
8042 * src/roff/groff/groff.cc: Add support for html2 device (which will
8043 automatically invoke the html2 preprocessor).
8044 * src/roff/troff/input.cc (is_html2): New variable.
8045 * src/roff/troff/troff.h, src/roff/troff/env.h,
8046 src/roff/troff/env.cc (environment::add_html_tag): New function
8048 (environment::do_break): Use it.
8049 * font/devhtml2/*: New files.
8050 * src/devices/grohtml2: New device.
8051 * src/preproc/html2: New preprocessor.
8052 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8054 2000-08-23 Werner LEMBERG <wl@gnu.org>
8056 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8058 2000-08-22 Werner LEMBERG <wl@gnu.org>
8060 * src/include/lib.h: Provide a fix for IRIX to not include
8063 2000-08-18 Werner LEMBERG <wl@gnu.org>
8065 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8066 since some non-GNU sed programs can't handle null regexps.
8067 * configure, src/preproc/eqn/Makefile.sub,
8068 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8070 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8071 bug (string.h and strings.h are both needed according to latest
8074 * MORE.STUFF: Added info about unroff and troffcvt.
8076 2000-08-08 Werner LEMBERG <wl@gnu.org>
8078 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8081 * tmac/tmac.man.old: Remove unused number register.
8083 * tmac.doc: Minor documentation fix.
8085 2000-08-07 Paul Eggert <eggert@twinsun.com>
8087 * src/roff/groff/pipeline.c (is_system_shell):
8088 Fix typo: "monocased_shell" no longer exists.
8090 2000-08-07 Paul Eggert <eggert@twinsun.com>
8092 Remove FILENAME_MAX limits.
8094 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8095 that the argument length is less than FILENAME_MAX.
8096 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8097 Use struct hack to allocate and free file name.
8098 (struct xtmpfile_list): fname is now part of the structure,
8099 not a pointer to another string.
8101 2000-08-07 Tom Schmidt <tschmidt@micron.com>
8103 * src/include/posix.h: Add a default value for FILENAME_MAX.
8105 2000-08-06 Paul Eggert <eggert@twinsun.com>
8107 Add support for new BSD-style man pages (with ".Dd" instead of
8108 ".TH"), so that "groff -man" understands both styles, even
8109 when running "groff -man" on a host whose system man page
8110 macros don't support ".Dd".
8112 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8113 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8114 in case the system man macros don't define Dd or TH.
8116 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8117 * tmac/tmac.an: New one-line file.
8118 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8120 2000-08-06 Werner LEMBERG <wl@gnu.org>
8122 * src/roff/troff/troff.man: Fixing typos.
8124 Version 1.16.1 released
8125 =======================
8127 2000-07-31 Werner LEMBERG <wl@gnu.org>
8129 Preparing release 1.16.1.
8131 * REVISION: Revision number set to 1.
8132 * MORE.STUFF: Added info about port to DOS.
8133 * NEWS, win32-diffs: Updated.
8135 * src/include/nonposix.h: Remove first line -- this file is used
8138 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8141 2000-07-30 Werner LEMBERG <wl@gnu.org>
8143 * doc/texinfo.tex: Update to latest version.
8145 2000-06-28 Paul Eggert <eggert@twinsun.com>
8147 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8148 commands that fail. Don't assume that "export a=b" is valid shell
8149 syntax. This is needed for Solaris 2.5.1.
8151 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8152 comment about missing Solaris headers.
8154 * PROBLEMS: Add section about problems with Sun Make and VPATH.
8156 2000-06-25 Werner LEMBERG <wl@gnu.org>
8158 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8161 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8163 * win32-diffs: Updated.
8164 * README.WIN32: Added CRs to make all Windows editors happy.
8166 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8167 src/roff/groff/pipeline.c).
8169 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8171 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8172 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8174 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
8176 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8177 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8179 (main): Support non-Posix systems with several different styles of
8180 slash characters in file names.
8182 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8183 (main) [SET_BINARY]: Switch stdin into binary mode.
8185 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8186 (main): Support file names with several possible slash-type
8187 characters, as given by DIR_SEPS[] in nonposix.h.
8188 (main) [__MSDOS__]: If renaming the temporary index file fails
8189 because it has more than one dot in its trunk, replace the dot
8190 with an underscore and try again.
8191 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
8193 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8195 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8196 (File::File): Open the input file in binary mode. Strip CR
8197 characters from each CR-LF pair.
8198 (xbasename): Support file names with several possible slash-type
8199 characters, as given by DIR_SEPS[] in nonposix.h.
8201 * src/include/Makefile.sub (HDRS): Add nonposix.h.
8203 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8204 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8205 [!_POSIX_VERSION]: Define for traditional Unix systems.
8206 (real_output_file::real_output_file): Remove the MSVC-specific
8207 call to popen, use instead POPEN_WT, appropriately defined on
8208 nonposix.h. #include nonposix.h.
8209 (real_output_file::~real_output_file): Remove the MSVC-specific
8210 call to pclose, a suitable macro is now defined on nonposix.h.
8211 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8212 and WEXITSTATUS instead of assuming traditional Unix
8213 interpretation of the status returned by pclose.
8215 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8216 call to popen, use POPEN_RT instead (appropriately defined on
8217 nonposix.h). #include nonposix.h.
8218 (ps_bbox_request): Open the PostScript file in binary mode.
8219 Close the file after processing it.
8220 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8223 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8224 A version of run_pipeline that doesn't use `fork'.
8225 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8226 (system_shell_name, system_shell_dash_c)
8227 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8228 the ugliness of testing DOS/Windows file names for equality, and
8229 support both stock shells and ports of Unix shells.
8231 * src/roff/groff/groff.cc: #include nonposix.h.
8232 (BSHELL): Definition moved to nonposix.h.
8233 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
8234 instead of a literal "-c".
8235 (xbasename): Support file names with several possible slash-type
8236 characters, as given by DIR_SEPS[] in nonposix.h.
8237 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8240 * src/preproc/soelim/soelim.cc: #include nonposix.h.
8241 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8243 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8246 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8248 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8251 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8253 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8254 P_tmpdir is defined, use it instead of the literal "/tmp".
8255 (remove_tmp_files, add_tmp_file): New functions.
8256 (xtmpfile): Record temporary files and register an atexit function
8257 to delete them explicitly, instead of relying on the OS to do
8258 that, which doesn't work on non-Unix systems.
8260 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8261 (search_path::search_path): Use PATH_SEP instead of a literal
8263 (search_path::command_line_dir): Ditto.
8264 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8265 to support non-Posix systems.
8267 * src/libs/libbib/search.cc: #include nonposix.h.
8268 (search_list::add_file): Open the file in binary mode.
8270 * src/libs/libbib/linear.cc: #include nonposix.h.
8271 (file_buffer::load): Remove \r characters preceding \n from the
8274 * src/libs/libbib/index.cc: #include nonposix.h.
8275 (make_index_search_item): Open index_filename in O_BINARY mode.
8276 (index_search_item_iterator::get_tag): Ditto. Remove \r
8277 characters before \n characters.
8278 (index_search_item::check_files): Open files in binary mode.
8279 (index_search_item::munge_filename): Support DOS-style file names
8280 with backslashes and drive letters, use IS_ABSOLUTE.
8282 * src/devices/grops/ps.cc: #include nonposix.h.
8283 (main) [SET_BINARY]: Switch stdout to binary mode.
8285 * src/devices/grolj4/lj4.cc: #include nonposix.h.
8286 (main) [SET_BINARY]: Switch stdout to binary mode.
8288 * src/devices/grolbp/lbp.cc: #include nonposix.h
8289 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8291 * src/devices/grodvi/dvi.cc: #include nonposix.h.
8292 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8294 (main) [SET_BINARY]: Switch stdout to binary mode.
8295 [_MSC_VER]: Remove an explicit call to _setmode.
8297 * src/include/nonposix.h: New file.
8299 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8300 operation when building with DJGPP.
8301 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8302 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8305 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8307 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8308 etc. can include a semi-colon on DOS/Windows.
8309 (depend.temp): Use depend1.temp instead of depend.temp1, to
8310 prevent files from overerwiting each other on 8+3 filesystems.
8312 * gendef.sh (t): Change definition to work with DOS/Windows.
8314 doc/groff.texinfo: Apart of some typo corrections, I also changed
8315 some index entris, to make them more non-ambiguous, and also put
8316 @ignore around some parts that are not yet written, to allow the
8317 Info output be readable.
8319 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
8321 Replaced specific checks for function declarations with a generic
8322 routine taken from GNU bfd.
8324 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8325 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8326 * configure.in: Use it.
8327 * src/devices/grolbp/lbp.cc, src/include/lib.h,
8328 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8329 src/roff/groff/groff.cc: Use it.
8330 * Makefile.in, configure: Updated.
8332 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
8334 * src/devides/grolbp/lbp.h: Removed unused variables.
8336 2000-05-31 Keith Thompson <kst@sdsc.edu>
8338 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8341 2000-05-31 Werner LEMBERG <wl@gnu.org>
8343 * aclocal.m4 (GROFF_SRAND): New function to test the return value
8344 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8345 * configure.in: Use it.
8346 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8347 * configure, Makefile.in: Updated.
8349 * configure.in: Add test for strncasecmp().
8350 * src/include/lib.h: Use it.
8352 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
8354 * src/preproc/grn/Makefile.sub: Add MLIB.
8356 2000-05-29 Nix <nix@esperi.demon.co.uk>
8358 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8360 2000-05-29 Werner LEMBERG <wl@gnu.org>
8362 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8364 * PROBLEMS: Small update.
8366 * src/devices/grolbp/lbp.cc: Various small fixes.
8368 2000-05-28 Keith Thompson <kst@sdsc.edu>
8370 * src/roff/nroff/nroff.sh: Fix main loop syntax.
8372 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8374 2000-05-25 Werner LEMBERG <wl@gnu.org>
8376 * man/roff.man: Removed unused macro.
8378 2000-05-24 Werner LEMBERG <wl@gnu.org>
8380 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
8381 This is needed e.g. if you do
8382 `make distclean; ./configure; make dist'.
8384 Version 1.16 released
8385 =====================
8387 2000-05-23 Werner LEMBERG <wl@gnu.org>
8389 Adding font CWI (constant width italic) to devdvi.
8391 * font/devdvi/CWI: New file.
8392 * font/devdvi/generate/Makefile: Add generating rule.
8393 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8394 tmac/tmac.dvi: Use it.
8395 * NEWS: Announce it.
8397 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8398 * font/devlj4/generate/Makefile: Cosmetic changes only.
8400 * man/groff.man: Removed most of the redundant description of
8401 special characters (which is in groff_char.man). Added font
8402 translation CB->CR for devdvi. Other minor fixes.
8404 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8405 (registered) symbols.
8407 2000-05-22 Werner LEMBERG <wl@gnu.org>
8409 * doc/Makefile: Added rule for creating info files.
8411 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
8413 * font/devdvi/generate/Makefile: Fixed dependencies.
8415 * font/devps/*: Regenerated. Heavy changes for Bookman and
8416 NewCentury Schoolbook!
8417 * font/devps/generate/afmname: Will now run with GNU awk.
8418 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8419 * font/devps/generate/Makefile: Cosmetic changes only.
8421 2000-05-21 Werner LEMBERG <wl@gnu.org>
8423 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8424 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
8425 `.SS' now produces a heading with a smaller size than `.SH'.
8426 Completely formatted.
8427 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8429 * man/groff.man: Improved table appearance. Use of `eo' request
8430 to reduce number of doubled backslashes in macro definitions.
8431 Replacing `\e' with `\(rs'. Other minor fixes.
8433 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8434 to have correct line number.
8436 * INSTALL: Small improvement.
8438 2000-05-20 Bernd Warken <bwarken@mayn.de>
8440 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8443 2000-05-19 Bernd Warken <bwarken@mayn.de>
8445 * man/groff.man: Complete update (with a lot of corrections by WL).
8447 2000-05-18 Werner LEMBERG <wl@gnu.org>
8449 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8451 * font/*/*: Implement it.
8452 * man/groff_char.man, NEWS: Document it.
8454 * src/include/unix.h: Removed. It isn't used.
8456 * doc/groff.texinfo: Slight improvements.
8458 2000-05-17 Werner LEMBERG <wl@gnu.org>
8460 * README, win32-diffs: Small fixes and improvements.
8462 2000-05-16 Werner LEMBERG <wl@gnu.org>
8464 * FDL: New file (the Free Documentation License version 1.1).
8466 * doc/groff.texinfo: Added many start-up values for gtroff.
8467 Some structural improvements of the source code.
8469 2000-05-15 Werner LEMBERG <wl@gnu.org>
8471 * src/roff/troff/input.cc: Added small comment about troffrc-end.
8472 * src/roff/troff/troff.man: Added info about troffrc-end.
8474 2000-05-14 Werner LEMBERG <wl@gnu.org>
8476 * Makefile.in (EXTRADIRS): Fix typos.
8477 (dist): Handle deletion of old .tar.gz file correctly.
8478 (DISTDIRS): Include all tty output devices.
8480 * doc/groff.texinfo: Adding more cross references; countless other
8483 2000-05-13 Werner LEMBERG <wl@gnu.org>
8485 * MORE.STUFF: Added Robert Marks's utilities.
8487 2000-05-12 Werner LEMBERG <wl@gnu.org>
8489 Added win32 port contributed by Blake McBride
8490 <blake@florida-software.com>.
8492 * README.WIN32, win32-diffs: New files.
8495 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8496 (tmove, tmove2): Added parentheses to avoid compiler warnings.
8497 (change): Removed unused variables.
8499 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8500 (savebounds): Changed return value from `int' to `void'.
8501 * src/preproc/grn/hdb.cc: Ditto.
8503 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8504 final backslash in comment to avoid compiler warning.
8506 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8508 * doc/groff.texinfo: More fixes.
8510 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
8512 * tmac/tmac.doc: Documentation fix.
8514 2000-05-11 Werner LEMBERG <wl@gnu.org>
8516 * doc/groff.texinfo: Reading the source code shows up a lot of
8517 omissions and incorrect data... More conversion to @Deffn macros.
8519 2000-05-10 Werner LEMBERG <wl@gnu.org>
8521 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8524 * src/roff/troff/request.h: Removing unused `no_break_flag'.
8526 2000-05-09 Werner LEMBERG <wl@gnu.org>
8528 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8531 * doc/groff.texinfo: Extended history section. More conversion to
8532 @Deffn macros. More .tr documentation.
8534 2000-05-07 Werner LEMBERG <wl@gnu.org>
8536 * doc/groff.texinfo: Completed tab section. Added info about
8539 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
8541 * PROBLEMS: Describe configure script fix for OS/390 Unix.
8543 2000-05-05 Werner LEMBERG <wl@gnu.org>
8545 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8547 * NEWS: Document it.
8549 * man/troff.man: Minor optical improvements.
8551 2000-05-03 Werner LEMBERG <wl@gnu.org>
8553 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8555 * font/*/*: Implement it.
8556 * man/groff_char.man, NEWS: Document it.
8558 2000-05-02 Werner LEMBERG <wl@gnu.org>
8560 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8562 * NEWS: Document the three new man pages.
8564 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8565 * configure: Updated.
8567 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8569 2000-05-01 Werner LEMBERG <wl@gnu.org>
8571 Added grap support to grog.
8573 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8574 * src/roff/grog/grog.man: Document it.
8576 * doc/groff.texinfo, NEWS: Add info about grap support.
8578 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8579 (with slight fixes by me).
8581 * tmac/groff_tmac.man: New file documenting tmac mechanism.
8582 * tmac/Makefile.sub: Add groff_tmac.man.
8583 * man/roff.man: New file giving overview of roff system.
8584 * man/troff.man: A short reference of troff.
8585 * man/Makefile.sub: Add roff.man and troff.man.
8587 2000-04-30 Werner LEMBERG <wl@gnu.org>
8589 Added grap support to groff.
8591 * src/roff/groff/groff.cc: Implement it.
8592 * src/roff/groff/groff.man: Document it.
8594 * src/devices/grotty/grotty.man: Add cp1047 device.
8595 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8597 * src/roff/groff/groff.man: Ditto.
8598 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8599 * doc/groff.texinfo: Ditto.
8601 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8604 2000-04-29 Werner LEMBERG <wl@gnu.org>
8606 * man/groff_char.man: Add `pc' glyph.
8607 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8608 * tmac/tmac.tty: Add `pc' glyph.
8609 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
8610 we use cp1047 output device.
8612 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8613 there are still hardcoded latin1->unicode values in utf8's font
8615 * configure: Updated.
8616 * NEWS: Minor clarification. Updated.
8618 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
8621 2000-04-28 Werner LEMBERG <wl@gnu.org>
8623 Adding EBCDIC code page 1047.
8625 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8626 font/devcp1047/DESC.proto: New files.
8628 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8629 either ascii/latin1 or cp1047.
8630 * Makefile.in: Use it.
8631 * configure: Updated.
8633 Replacing and/or adding `md' (mathdot) glyph with `pc'
8634 (periodcentered) in all text fonts.
8636 * font/*/*: Change it.
8638 2000-04-27 Werner LEMBERG <wl@gnu.org>
8640 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8642 * configure.in: Add check for strings.h.
8643 * src/include/driver.h: Use HAVE_STRINGS_H.
8644 * src/devices/grolbp/lpb.cc: Remove string.h.
8646 * src/include/groff-getopt.h: New file. It will be used instead of
8647 getopt.h (to be included in lib.h) to avoid endless problems with
8648 picky C++ compilers.
8649 * src/include/lib.h: Use groff-getopt.h.
8650 * src/include/Makefile.sub: Updated.
8652 * configure: Updated.
8653 * Makefile.in: Updated.
8655 * NEWS: Mention EBCDIC support.
8657 2000-04-26 Werner LEMBERG <wl@gnu.org>
8659 * TODO: Some additions.
8661 2000-04-25 Werner LEMBERG <wl@gnu.org>
8663 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
8666 2000-04-23 Werner LEMBERG <wl@gnu.org>
8668 * src/roff/troff/troff.man: Minor fixes.
8670 2000-04-22 Werner LEMBERG <wl@gnu.org>
8672 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
8673 `.T' string register and the incompatible definition of the `.T'
8674 number register (compared to Unix troff).
8676 * man/groff_char.man: Add some missing characters.
8677 * font/devutf8/NOTES: Update.
8679 2000-04-21 Werner LEMBERG <wl@gnu.org>
8681 * src/include/htmlindicate.h, src/include/lib.h,
8682 src/include/posix.h: Fix copyright.
8684 * src/include/Makefile.sub: Update.
8686 2000-04-20 Werner LEMBERG <wl@gnu.org>
8688 * src/roff/troff/input.cc (input_char_description): Removing
8689 superfluous space char.
8691 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
8693 * doc/groff.texinfo: Document EBCDIC.
8695 2000-04-19 Werner LEMBERG <wl@gnu.org>
8697 Introducing `shc' as the glyph name for the soft hyphen character.
8699 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
8700 font/devlatin1/R.proto: Use it.
8704 2000-04-18 Werner LEMBERG <wl@gnu.org>
8706 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
8707 dependency on ASCII order.
8709 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
8711 * src/libs/libgroff/illegal.c: Added EBCDIC table.
8712 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
8714 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
8715 to increase portability.
8717 2000-04-15 Werner LEMBERG <wl@gnu.org>
8719 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
8720 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
8721 the generic `\n' if under OS/390 Unix.
8723 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
8725 * configure: Regenerated.
8727 2000-04-14 Werner LEMBERG <wl@gnu.org>
8729 * doc/groff.texinfo: More conversions to @Deffn.
8731 2000-04-12 Werner LEMBERG <wl@gnu.org>
8733 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
8736 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
8738 2000-04-10 Werner LEMBERG <wl@gnu.org>
8740 * doc/groff.texinfo: More conversions to @Deffn.
8742 2000-04-08 Werner LEMBERG <wl@gnu.org>
8744 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
8745 Updated to latest version (glibc 2.1.3).
8747 2000-04-07 Werner LEMBERG <wl@gnu.org>
8749 * doc/Makefile (clean): Include more index files.
8750 Add rule texinfo->dvi.
8752 2000-04-05 Werner LEMBERG <wl@gnu.org>
8754 * doc/groff.texinfo: Added new index `op' for operators. More
8755 info on end of sentence characters. More use of @Deffn.
8757 2000-03-30 Werner LEMBERG <wl@gnu.org>
8759 * */*.man: Adding a note that a whitespace can be inserted between
8760 a command line option and its parameter -- we are using GNU getopt.
8762 * src/roff/groff/groff.man: Add example of `-m mandoc'.
8764 2000-03-28 Werner LEMBERG <wl@gnu.org>
8766 Correct anachronism of calling the man macro file with `-man'
8767 instead of `-m man' etc.
8769 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
8770 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
8771 load tmac.<package>.
8773 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
8777 * doc/groff.texinfo: Updated.
8779 * tmac/groff_man.man: Copyright added.
8781 2000-03-27 Werner LEMBERG <wl@gnu.org>
8783 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
8784 typeset the request resp. escape name with a tt font -- due to a
8785 bug in texinfo.tex it is necessary to use the `-e' switch with
8788 Improving info about usage of groff units.
8792 2000-03-20 Werner LEMBERG <wl@gnu.org>
8794 * doc/groff.texinfo: Added section about man macro package
8795 (I've basically taken groff_man.man). Introducing new indices `ma'
8796 for macros/strings and `gl' for glyph names. Other minor fixes.
8798 * tmac/groff_man.man: Fixed some typos.
8800 2000-03-19 Werner LEMBERG <wl@gnu.org>
8802 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
8805 * doc/texinfo.tex: New file.
8807 2000-03-18 Werner LEMBERG <wl@gnu.org>
8809 * doc/groff.texinfo: Improved section on number registers. Other
8812 2000-03-16 Werner LEMBERG <wl@gnu.org>
8814 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
8817 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
8818 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
8819 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
8820 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
8822 * src/preproc/grn/grn.man: Better synopsis; added copyright.
8824 * src/roff/grog/grog.man: Updated copyright date.
8826 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
8828 * configure.in: Added test for strdup.
8830 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
8833 Replaced dynamic allocation of arrays `[...]' with `new' operator.
8837 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
8839 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
8841 2000-03-11 Werner LEMBERG <wl@gnu.org>
8843 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
8845 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
8846 * src/include/lib.h: Remove some spaces.
8848 2000-03-10 Werner LEMBERG <wl@gnu.org>
8850 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
8851 initializers from arguments (some compilers don't like this).
8853 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
8855 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
8856 used by pic and eqn to tell grohtml where the graphic regions start
8858 * src/libs/libgroff/Makefile.sub: Use it.
8859 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
8860 graphic_start() and graphic_end() from htmlindicate.cc.
8862 2000-03-09 Werner LEMBERG <wl@gnu.org>
8864 * tmac/tmac.safer: Will now work correctly in compatibility mode.
8865 * tmac/groff_man.man: More fixes.
8867 2000-03-08 Werner LEMBERG <wl@gnu.org>
8869 * doc/Makefile: Added texput.log to the `clean' target.
8870 * doc/groff.texinfo: Added info about delimiters for escapes.
8872 2000-03-08 Bernd Warken <bwarken@mayn.de>
8874 * src/preproc/pic/pic.man: Add info on conversion of pic images to
8875 other graphic formats.
8877 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
8879 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
8880 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
8881 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
8884 2000-03-07 Werner LEMBERG <wl@gnu.org>
8886 * doc/groff.texinfo: Spelling fixes.
8888 2000-03-06 Werner LEMBERG <wl@gnu.org>
8890 * tmac/groff_man.man: Completely revised to cover everything in
8893 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
8894 Other minor fixings.
8895 * src/roff/troff/env.cc (environment_copy): Improve error message and
8897 * src/roff/troff/TODO: Updated.
8899 * doc/Makefile: Bug fixes -- this is still provisional, though...
8901 * tmac/eqnrc: Small fixes.
8903 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
8905 Adding a request `evc' to copy environments.
8907 * src/roff/troff/env.cc (environment::copy, environment_copy):
8909 * src/roff/troff/env.h: Add prototype.
8911 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
8913 Adding strsep() -- Solaris 8 doesn't have it.
8915 * configure.in: Test it.
8916 * src/devices/grolbp/lbp.cc: Add code.
8918 2000-03-05 Werner LEMBERG <wl@gnu.org>
8920 * src/roff/troff/div.cc (macro_diversion::output,
8921 top_level_diversion::output): Fixing an incompatibility with
8922 original troff: \x'0' updates the .a register also. Thanks to
8923 <Andries.Brouwer@cwi.nl> for pointing this out.
8924 * doc/groff.texinfo: Document it.
8926 * Makefile.in: Create Makefile.dep if necessary before calling the
8927 submake process to avoid warning about nonexistent file.
8929 * NEWS, PROJECTS: Updated.
8931 2000-03-04 Werner LEMBERG <wl@gnu.org>
8933 * tmac/troffrc: Add tmac.lbp.
8935 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
8937 * tmac/tmac.lbp: New file.
8938 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
8941 2000-03-03 Werner LEMBERG <wl@gnu.org>
8943 * Makefile.in: Fixing $(subdir).
8945 * README, NEWS: Small fixes.
8947 * test-groff: Adding path to grolbp.
8949 * configure.in: The (new) file src/xditview/Imakefile.in will be
8950 also configured -- it is now possible to build gxditview in a
8951 directory different from $srcdir.
8953 2000-03-02 Blake McBride <blake@florida-software.com>
8955 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
8957 * MORE.STUFF: Added website of bell labs and info about plot2dev.
8959 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
8961 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
8964 2000-02-29 Werner LEMBERG <wl@gnu.org>
8966 Adding GNU getopt to the groff distribution.
8968 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
8970 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
8971 * aclocal.a4: Remove GROFF_GETOPT function.
8972 * configure.in, Makefile.in, PROBLEMS: Update.
8973 * src/include/lib.h: Replace getopt tests with getopt.h.
8974 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
8976 * doc/groff.texinfo: Further checking/updating. Adding more index
8979 * man/groff_out.man: Fix nroff mode activation (for emacs).
8980 * man/groff_font.man: Add missing ligature.
8982 2000-02-28 Werner LEMBERG <wl@gnu.org>
8984 * doc/groff.texinfo: Further checking/updating. Adding more index
8987 * src/devices/grolbp/grolbp.man: Added a comment line at the
8988 beginning of the file (similar to shell scripts) which indicates
8989 that `tbl' should be used as a preprocessor.
8991 2000-02-27 Blake McBride <blake@florida-software.com>
8993 Adapting groff to MS Visual C++ 6.0 compiler (tested with
8994 Windows NT 4.0). Uses _MSC_VER define where necessary.
8996 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
8997 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
8998 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
8999 src/include/lib.h, src/libs/libgroff/errarg.cc,
9000 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9001 src/preproc/refer/label.y, src/preproc/refer/label.cc,
9002 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9003 src/roff/troff/div.cc, src/roff/troff/env.cc,
9004 src/roff/troff/input.cc, src/roff/troff/node.cc,
9005 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9006 if_to_a() to avoid name clashes.
9007 * src/include/posix.h: Don't use unistd.h.
9008 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9009 clause for integrating non-Unix xtmpfile() code.
9010 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9011 structure; use "rt" for popen() in pipe_source(); add getpid()
9013 * src/roff/troff/node.cc: Use special versions of popen() in
9014 real_output_file() and pclose() in ~real_output_file().
9016 2000-02-27 Werner LEMBERG <wl@gnu.org>
9018 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9019 LBP-8 series laser printers). This code has been contributed by
9020 Francisco Andrés Verdú <pandres@dragonet.es>.
9022 * src/devices/grolbp/*: The grolbp output device.
9023 * font/devlpb/*: The font description files.
9024 * Makefile.in: Add grolpb and devlbp subdirectories.
9026 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9027 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9030 * doc/groff.texinfo: Further checking/updating. Adding more index
9035 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9037 * man/groff_font.man: Adding info about obsolete DESC keywords.
9038 * src/devices/grolj4/grolj4.man: Documenting additional DESC
9041 2000-02-26 Werner LEMBERG <wl@gnu.org>
9043 * src/preproc/grn/grn.man: Added info about the gremlin file format
9044 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9046 2000-02-25 Werner LEMBERG <wl@gnu.org>
9048 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9049 friends to be non-integer.
9051 * src/preproc/grn/grn.man: Document it.
9053 * doc/groff.texinfo: Further checking/updating. Adding more index
9056 2000-02-24 Werner LEMBERG <wl@gnu.org>
9058 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9059 line thicknesses to be integer multiples of this value.
9061 * src/preproc/grn/grn.man: Commenting out the -s option -- the
9062 corresponding code doesn't work (yet).
9064 * doc/groff.texinfo: Further checking/updating. Adding more index
9067 2000-02-23 Werner LEMBERG <wl@gnu.org>
9069 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9070 specify line thickness instead of base units. The new default
9071 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9072 thick lines respectively.
9074 Removed unused variable `prevval'.
9076 * src/preproc/grn/grn.man: Updated.
9078 2000-02-22 Werner LEMBERG <wl@gnu.org>
9080 * src/preproc/grn/main.cc: Slight formatting.
9082 * src/roff/groff/groff.man: Formatting fix.
9083 * src/preproc/grn/grn.man: Ditto.
9085 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9087 * doc/groff.texinfo: Further checking/updating.
9089 2000-02-21 Werner LEMBERG <wl@gnu.org>
9091 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9093 * test-groff: Added grn subdir to path.
9095 * doc/groff.texinfo: Some restructing and other small improvements.
9097 * src/roff/groff/groff.cc (help): Fixed info string.
9099 2000-02-20 Werner LEMBERG <wl@gnu.org>
9101 * doc/meref.me: Fix description of .GS request.
9103 * src/roff/troff/troff.man: Fixing typo.
9105 Adding the `grn' preprocessor for gremlin graphic files.
9107 * src/preproc/grn/*: This is the Berkeley distribution written by
9108 David Slattengren and Barry Roitblat, adapted to groff by Daniel
9109 Senderowicz and Werner Lemberg.
9111 * doc/grnexampl.{me,g}: A sample for grn.
9113 * Makefile.in: Added subdirectory entry for grn.
9115 * src/roff/groff/groff.cc: Added support for grn. It can be now
9116 called with the switch `-g'.
9118 * src/roff/groff/groff.man: Updated.
9120 * src/roff/grog/grog.{man,pl,sh}: Updated.
9124 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
9126 * src/include/lib.h: Added xtmptemplate and made xtmpfile
9127 parametrically polymorphic.
9129 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9130 and the alterations to xtmpfile.
9131 xtmpfile can be requested to return the filename created
9132 and asked not to unlink the temp file. The default behaviour
9133 if parameters are absent is exactly the same as before.
9135 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
9137 A new request `length' is available which returns the length of a
9138 string in a number register:
9140 * src/roff/troff/input.cc (length_macro): Implement it.
9141 * src/roff/troff/input.cc (init_input_requests): Register it.
9143 2000-02-11 Werner LEMBERG <wl@gnu.org>
9145 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9146 of the `substring' request.
9148 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9151 * src/roff/troff/TODO, NEWS: Updated.
9153 2000-02-09 Werner LEMBERG <wl@gnu.org>
9155 * src/roff/groff/groff.man: Added an example.
9157 2000-02-06 Werner LEMBERG <wl@gnu.org>
9159 I've considerably modified the directory structure of the
9160 distribution to get a more vertical layout. For example, the number
9161 of top level directories has been reduced from 42 to 6.
9163 As a consequence, many changes, especially to the makefiles, were
9166 * The makefile variables `top_builddir' and `top_srcdir' have been
9167 introduced. Virtually all relative paths have been replaced with
9168 absolute ones using these two variables.
9170 * Dependencies (in the files `Makefile.dep') are no longer part of
9171 the distribution. Instead, they are created during a `make install'
9172 in the build directory.
9174 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9175 make `top_srcdir' and `top_builddir' absolute.
9179 * Man pages now depend on the files `VERSION' and `REVISION'.
9181 * The added shell script `mkinstalldirs' will replace `mkdir' in
9184 * VERSION: Version number increased to 1.16.
9186 2000-02-04 Werner LEMBERG <wl@gnu.org>
9188 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9190 * Makefile.in: Removed $(tmac_m) since it is no longer needed
9191 (after an update of the mm stuff).
9193 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9195 2000-02-03 Werner LEMBERG <wl@gnu.org>
9197 The .psbb request will now also accept Mac PS images (i.e. using LF
9198 as the EOL character).
9200 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9201 (with slight modifications).
9202 * troff/input.cc (do_ps_file): Use it.
9204 * test-groff: Add grohtml and grolj4 output devices to PATH.
9206 2000-01-30 Werner LEMBERG <wl@gnu.org>
9208 * NEWS, MORE.STUFF: Updated.
9210 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
9212 Add the `srand' command to pic.
9214 * pic/lex.cc, pic/pic.y: Implement it.
9215 * pic/pic.man: Document it.
9216 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9218 2000-01-30 Werner LEMBERG <wl@gnu.org>
9220 Add a new request `.psbb'. This does exactly what the external
9221 program psbb did. It scans a PostScript image file for a
9222 %%BoundingBox comment and extracts the bounding box values (in
9223 PostScript units) which are then stored in the four new (read-only)
9224 number registers `llx', `lly', `urx', and `ury'.
9226 This will allow the usage of the .PSPIC macro without worrying
9227 about unsafe behaviour of groff, i.e., it will work without the
9228 `-U' switch of groff.
9230 * troff/input.cc: Implement it.
9231 * tmac/tmac.pspic: Use it.
9232 * troff/troff.man, grops/grops.man, NEWS: Document it.
9233 * psbb/*, Makefile.in: Remove it since it is no longer needed.
9235 This is bloody C code simply adapted from psbb.c! Any improvements
9238 2000-01-29 Werner LEMBERG <wl@gnu.org>
9240 * man/groff_font.man: Minor clarifications.
9244 2000-01-28 Werner LEMBERG <wl@gnu.org>
9246 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9248 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
9250 * man/groff_font.man: Brought up to date regarding tcommand
9252 * libgroff/font.cc: Handle everything after `--' as a comment
9254 * devps/*: Added comment delimiter inside devps font files.
9256 2000-01-28 Werner LEMBERG <wl@gnu.org>
9258 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9259 \fC...\fP (which now works as expected).
9261 * troff/troff.man: Fix typo.
9263 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
9265 Completed the pass_filenames implementation in troff.
9267 * libdriver/input.cc: Will read the new `F' tcommand.
9268 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9269 * troff/input.cc: Use it.
9271 2000-01-26 Werner LEMBERG <wl@gnu.org>
9273 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
9274 font will now be updated even if an invalid font is selected.
9276 2000-01-24 Werner LEMBERG <wl@gnu.org>
9278 * doc/homepage.ms: Updated for new tmac.arkup.
9280 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9282 * tmac/tmac.arkup: Cleanup.
9284 Added `\&' to .HTML macro to `leave vertical mode', so to say.
9286 Removed obsolete .LINK macro completely.
9288 The macros .URL, .FTP, and .MAILTO now accept a third argument which
9289 will be immediately appended to the second argument (to be used with
9290 punctuation, for example).
9292 Disabled .CDFTP macro temporarily for security reasons.
9294 * tmac/groff_markup.man: Complete revision for latest changes in
9295 tmac.arkup -- note that it does not yet format correctly with
9298 2000-01-23 Bruno Haible <haible@clisp.cons.org>
9300 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9301 * devutf8/R.proto: Add mappings for wp, lh, rh.
9302 * devutf8/NOTES: Updated.
9304 2000-01-23 Werner LEMBERG <wl@gnu.org>
9306 * doc/groff.texinfo: Updated version/copyright info.
9308 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
9310 Added support for two new directives in device descriptions:
9311 `pass_filenames' (to pass the input file name to the output device)
9312 and `use_charnames_in_special' (to support e.g. accented characters
9313 in the `X' request).
9315 * include/font.h, troff/charinfo.h: Declare it.
9317 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9319 * devhtml/DESC: Use it.
9321 * troff/input.cc: New function encoded_char.
9323 * troff/token.h: Add test for `specialness'.
9325 2000-01-21 Werner LEMBERG <wl@gnu.org>
9327 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9328 mistake from the list of files to be installed.
9330 2000-01-18 Werner LEMBERG <wl@gnu.org>
9332 * README: Added info how to apply patches.
9334 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
9336 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
9338 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
9340 * troff/input.cc: Add support for troffrc-end.
9342 * tbl/main.cc: Altered to issue table-start and table-end special
9343 characters if using the html device.
9345 * devhtml/*: Modified font files to incorporate html encoding of
9348 * tmac/groff_markup.man: New file documenting tmac.arkup.
9350 * tmac/troffrc-end: New file. This is invoked after all user
9351 specified macros. Currently used by the html device to include
9352 tmac.html. Thus no need for users to specify -mhtml anymore.
9354 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9355 (MAN7): Add groff_markup.man.
9357 * tmac/tmac.an, tmac/tmac.html: Small html updates.
9359 * tmac/troffrc: tmac.arkup will now be called for the html device.
9361 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9362 extra device specific information about fonts.
9364 * doc/homepage.ms: New file. It is an example how an HTML home page
9365 could look like with grohtml.
9367 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
9369 2000-01-12 Bruno Haible <haible@clisp.cons.org>
9371 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
9374 * devutf8/NOTES: Updated.
9376 2000-01-08 Bruno Haible <haible@clisp.cons.org>
9378 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9379 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9380 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9381 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9382 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9383 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9384 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9385 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9388 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9390 2000-01-12 Fabrizio Polacco <fab@prosa.it>
9392 grolj4: Paper size will be searched case-insensitively.
9394 * include/lib.h: Add check for strcasecmp().
9395 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9396 * configure.in: Check for strcasecmp().
9398 2000-01-11 Werner LEMBERG <wl@gnu.org>
9400 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9403 2000-01-10 Werner LEMBERG <wl@gnu.org>
9405 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9408 Add a new read-only register, `.Y', which contains the groff
9411 * troff/input.cc (init_input_requests): Define it.
9412 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9413 * doc/groff.texinfo, troff/troff.man: Document it.
9415 * libgroff/Makefile.sub (version.cc): Add definition of
9416 `Version_string[]', consisting of `<major>.<minor>.<revision>'
9417 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9418 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9419 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9420 troff/input.cc, pfbtops/pfbtops.c: Use it.
9422 2000-01-10 Fabrizio Polacco <fab@prosa.it>
9424 Add a revision scheme to the groff package.
9426 * REVISION: New file.
9427 * libgroff/Makefile.sub (version.cc): Use it to define
9428 `revision_string[]'.
9429 * grops/psrm.cc: Use revision_string (converted to an unsigned
9430 integer) in constructor of resource_manager.
9432 2000-01-10 Bruno Haible <haible@clisp.cons.org>
9434 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9436 * Makefile.in (DEVDIRS): Add devutf8.
9437 * grotty/tty.cc: Include device.h.
9438 (glyph): Change type of `code' to `unsigned int'.
9439 (tty_printer): New field is_utf8. Constructor takes device argument.
9440 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9441 (tty_printer::add_char): Change type of first arg to `unsigned int'.
9442 (tty_printer::put_char): New function.
9443 (tty_printer::end_page): Use put_char() instead of ::putchar().
9444 (make_printer): Pass device to tty_printer constructor.
9445 * nroff.sh: Determine default device by calling 'locale'. As a
9446 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9447 Recognize UTF-8 locales.
9448 * tmac/eqnrc: Recognize utf8 like latin1.
9449 * tmac/troffrc: Device utf8 needs tmac.tty.
9451 2000-01-07 Werner LEMBERG <wl@gnu.org>
9453 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9455 2000-01-07 Paul Eggert <eggert@twinsun.com>
9457 Add a new predefined writeable number register, `year',
9458 which contains the current year.
9460 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9461 * tmac/tmac.s: Use it.
9462 * troff/input.cc (init_registers): Initialize it.
9464 2000-01-06 Werner LEMBERG <wl@gnu.org>
9466 * PROBLEMS: Fixed typo.
9468 2000-01-04 Paul Eggert <eggert@twinsun.com>
9470 * PROBLEMS: Add Y2k advice for the yr number register.
9472 2000-01-03 Paul Eggert <eggert@twinsun.com>
9474 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9476 2000-01-02 Werner LEMBERG <wl@gnu.org>
9478 * tmac/tmac.arkup: Slight modification of macros to provide better
9479 appearance for non-HTML formats.
9481 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
9483 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9484 does not automatically translate to malloc(n) on all OSes
9485 (e.g., SunOS) so do it explicitly. Also, check the returned
9488 2000-01-01 Werner LEMBERG <wl@gnu.org>
9490 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
9492 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9493 expects this variable
9495 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
9497 * doc/Makefile: Added instructions to create HTML and text
9498 versions of some files.
9500 1999-12-31 Werner LEMBERG <wl@gnu.org>
9502 * Updated INSTALL.gen.
9504 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9505 better resp. correctly with non-HTML devices.
9507 Version 1.15 released
9508 =====================
9510 1999-12-28 Werner LEMBERG <wl@gnu.org>
9512 * NEWS, VERSION: Changed to 1.15
9514 1999-12-27 Paul Eggert <eggert@twinsun.com>
9516 * nroff/nroff.man: -S is safer, not safe.
9518 * groff/groff.cc (main): Use `safer', not `safe', in variable
9519 names. This does not change the behavior.
9521 * troff/input.cc (main): Likewise.
9523 * nroff/nroff.sh: Likewise.
9525 * troff/input.cc (prepend_string): New function.
9526 (main): Prepend -msafer, so that we check macro libraries for
9529 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9531 Version 1.14 released
9532 =====================
9534 1999-12-26 Werner LEMBERG <wl@gnu.org>
9536 * NEWS, VERSION: Changed to 1.14.
9538 1999-12-24 Werner LEMBERG <wl@gnu.org>
9540 * refer/refer.cc: Fixing the last fix.
9542 Version 1.13 released
9543 =====================
9545 1999-12-23 Werner LEMBERG <wl@gnu.org>
9547 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9552 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9554 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9555 document conventions, the version number must be a real.
9557 Version 1.12.1 released
9558 =======================
9560 1999-12-22 Werner LEMBERG <wl@gnu.org>
9562 * VERSION: Changed to 1.12.1.
9564 1999-12-22 Alan Rooks <arooks@istar.ca>
9566 * refer/refer.cc (do_file): Slight modification to satisfy the
9567 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9570 1999-12-20 Werner LEMBERG <wl@gnu.org>
9572 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9575 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9576 list of unsafe requests.
9578 * pic/pic.man: Fixed a typo.
9580 * man/groff_out.man: Fixed a typo.
9582 1999-12-18 Werner LEMBERG <wl@gnu.org>
9584 * Makefile.in: Doc fixes.
9586 1999-12-17 Fabrizio Polacco <fab@prosa.it>
9588 * groff/groff.cc: Missing `U' option added to getopt().
9590 * troff/troff.man: Missing `U' option added to synopsis.
9592 Version 1.12 released
9593 =====================
9595 1999-12-14 Werner LEMBERG <wl@gnu.org>
9597 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9600 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9601 with the more appropriate terms `safer' and `unsafe'.
9603 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9604 sys_nerr and sys_errlist[].
9606 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9608 * pic/pic.y, pic/pic.cc: Added check for fmod().
9610 1999-12-13 Werner LEMBERG <wl@gnu.org>
9612 * VERSION: Changed to 1.12.
9614 Here some patches from various sources; most of them taken from
9615 the Debian distribution.
9617 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9618 tmac/Makefile.sub: New files copied directly from the NetBSD
9619 distribution. Probably, some additional adaptation later on is
9622 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9625 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9626 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9627 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
9628 (`-S') is now the default.
9630 * README, NEWS: Updated.
9632 1999-12-09 Werner LEMBERG <wl@gnu.org>
9634 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9636 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9638 1999-12-06 Werner LEMBERG <wl@gnu.org>
9640 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9641 grief than relief today. Additionally, it is against the GNU
9644 * configure: Recreated.
9646 1999-12-05 Werner LEMBERG <wl@gnu.org>
9648 * configure.in: Added GROFF_LIBM.
9650 * configure: Recreated.
9652 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
9655 * Makefile.in: Added definition of $(LIBM).
9657 * Makefile.comm (LIBM): Removed.
9659 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
9661 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
9663 * doc/Makefile: Added rule for generation pic.html.
9665 (clean): Files produced by grohtml will be removed also.
9667 * doc/pic.ms: Small fix.
9669 * tmac/tmac.html: Fixed suppression of headers.
9671 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
9673 * tmac/tmac.html: Fixing horizontal arrows.
9675 Turning off hyphenation.
9677 * tmac/tmac.an: Improved support for grohtml; better indentation,
9680 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
9682 * tmac/tmac.arkup: Added CDFTP macro
9684 * tmac/tmac.html: All headers are turned off for ms, me, and mm
9687 * tmac/troffrc: Some additions for HTML stuff.
9689 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
9691 * tmac/tmac.html: Small changes.
9693 1999-09-26 Werner LEMBERG <wl@gnu.org>
9695 * doc/groff.texinfo: Minor fixes.
9697 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
9699 * devhtml/TR: Changed spacewidth to 3.
9701 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
9703 * tmac/tmac.html: Moved markup macros to tmap.arkup.
9705 * tmac/tmac.arkup: New file.
9707 * grohtml/ChangeLog: New file.
9709 1999-09-16 Werner LEMBERG <wl@gnu.org>
9711 * doc/groff.texinfo (Common Features): Added Copying chapter.
9712 Changed format to @smallbook.
9714 1999-09-15 Werner LEMBERG <wl@gnu.org>
9716 * NEWS: Added info about groff.texinfo.
9718 * doc/groff.texinfo: Will now compile (using texi2dvi) without
9721 1999-09-14 Werner LEMBERG <wl@gnu.org>
9723 * groff/groff.man: More updates.
9725 1999-09-13 Werner LEMBERG <wl@gnu.org>
9727 * doc/groff.texinfo: New file. This manual is still very
9728 rudimentary. It has been originally contributed by Trent
9729 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
9732 * INSTALL: Added information about the `doc' subdir
9734 * troff/troff.man: Minor fixes.
9736 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
9739 * troff/input.cc (usage): Added missing `-ffam' to usage message.
9741 * Makefile.in (dist): groff-$(version).tar.gz must be removed
9742 also, otherwise it is included itself in another call of `make
9745 * groff/groff.cc (synopsis): Removed superfluous space.
9747 * PROJECTS, PROBLEMS, NEWS: Updated.
9749 * VERSION: Updated to 1.12beta.
9751 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
9753 * README: Updated: Included documentation about CVS repository,
9754 mailing lists, and daily snapshots.
9756 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
9758 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
9760 * tmac/tmac.an: If the tag didn't fit into the space that the
9761 macro `TP' specifies, the rest of the tag went into the space for
9764 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
9766 * grolj4/lj4.cc: Added duplex printing (option `-d').
9768 * grolj4/grolj4.man: Document duplex printing.
9770 1999-09-12 Werner LEMBERG <wl@gnu.org>
9772 * doc/Makefile (pic.ps): Fixed rule which caused problems with
9773 non-GNUish sed programs.
9775 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
9778 * configure.in (LIBS): Added `-lc'
9780 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
9782 * pic/tex.cc (solid_arc): Casting M_PI to double.
9784 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
9786 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
9787 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
9788 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
9790 * groff/groff_man.man: New file. This manual page was originally
9791 written for the Debian GNU/Linux system by Susan G. Kleinmann
9794 * eqn/list.cc (list_box::compute_metrics,
9795 list_box::compute_sublist_width): Removed variable declaration to
9796 avoid shadowing warnings.
9798 * grops/psrm.cc (resource_manager::process_file): Ditto.
9800 * tfmtodit/tfmtodit.cc (main): Ditto.
9802 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
9803 to avoid shadowing warnings.
9805 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
9806 shadowing loop variable.
9808 * groff/groff.man, troff/troff.man: Added doc about grohtml.
9810 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
9812 New grohtml frontend to convert groff input to html.
9814 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
9816 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
9818 * tmac/eqnrc: Added html device.
9820 * tmac/tmac.html: New file.
9822 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
9823 (troff_output::start_picture, troff_output::finish_picture),
9824 tbl/main.cc (process_input_file):
9825 Surrounded output with `graphics_start' and `graphics_end' so that
9826 the html driver can identify non-text portions.
9828 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
9829 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
9830 grotty/tty.ps (tty_printer::set_char): Additional parameter
9833 * include/printer.h: Class printer: New function
9834 set_char_and_width; new variables (is_char_named, is_named_set,
9835 named_command, named_char_s, named_char_n) to hold information
9836 about named characters -- needed by the html driver.
9838 * libdriver/printer.cc (printer::set_ascii_char,
9839 printer::set_special_char): Use set_char_and_width.
9841 * devhtml/*: New device files for html driver.
9843 * grohtml/*: New driver grohtml.
9845 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
9847 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
9850 1999-09-11 Luke Mewburn <lukem@netbsd.org>
9852 * libgroff/string.cc (search): Small fix to test against NULL
9855 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
9857 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
9858 \b'abc') were stacked in reverse order when processed in a
9861 * troff/node.h: Added `*last' to struct `node' to make the above
9864 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
9865 The default scale for the 'f' and 't' graphics functions were 'm'
9866 rather than 'u' (i.e., no scaling).
9868 1999-09-11 Peter Miller <peterm@jna.com.au>
9870 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
9871 do_file), soelim/soelim.man: Added `-I file' option to soelim,
9872 defining include paths.
9874 * soelim/soelim.cc (include_path_append): New function.
9876 1999-09-11 Larry Jones <larry.jones@sdrc.com>
9878 * tbl/main.cc (process_options): Unix (at least Documenter's
9879 Workbench) tbl allows arbitrary non-alpha characters between
9882 1999-09-11 Paul Eggert <eggert@twinsun.com>
9884 Y2k fixes. Don't assume that the current year precedes 2000.
9886 * doc/meref.me: Add \n(y2, \n(y4.
9888 * tmac/doc-common (Yr): New number register.
9889 (Dd): Don't assume current year precedes 2000.
9891 * tmac/tmac.e (td): Likewise.
9892 (y2, y4): New number registers.
9894 * pic/pic.man: Update reference for pic paper to May, 1991
9897 1999-09-11 Werner LEMBERG <wl@gnu.org>
9899 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9900 Removed quotation marks which prevented correct expansion of
9903 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
9905 1999-09-10 Werner LEMBERG <wl@gnu.org>
9907 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
9910 * Removed configure.old.
9912 1999-08-31 Werner LEMBERG <wl@gnu.org>
9914 * VERSION: Updated to 1.11.1
9916 1999-05-27 Werner LEMBERG <wl@gnu.org>
9918 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
9920 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9921 added quotations around $(tmac_wrap) to avoid syntax error if
9924 * configure: Newly generated using autoconf 2.13.
9926 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
9928 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
9930 * README, PROJECTS, NEWS, INSTALL, VERSION,
9931 doc/Makefile. doc/pic.ms, groff/groff.man:
9932 Prepare for 1.11 release. No code changes.
9933 Documentation for pic added (doc/pic.ms).
9935 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
9937 * Version 1.10 released.
9939 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
9941 * afmtodit/afmtodit.pl: Avoid comment on first line.
9943 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
9945 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
9946 * configure.in: Call it.
9948 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
9949 (distfiles): Doesn't depend on config.log or config.cache.
9951 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
9953 * grog/grog.sh: Use print "" rather than print in END rule.
9955 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
9957 * tbl/main.cc (process_data): Don't give error for excess data
9958 entries that are comments.
9960 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
9962 * tbl/main.cc (process_data): Fix case where new for-scope rules
9963 silently change meaning of code.
9965 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
9967 * troff/env.cc (hyphenate): Loop over all consecutive sequences
9968 of non-zero hyphenation codes.
9970 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
9972 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
9974 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
9976 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
9978 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
9980 * tmac/tmac.andoc: Make it work in compatibility mode.
9982 * refer/token.h (token_info::is_range_sep): New function.
9983 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
9984 * refer/ref.cc (reference::output): More sophisticated check for
9987 * devps/prologue.ps (MANUAL): New procedure.
9988 * grops/ps.cc (main): New -m option.
9989 (usage): Include -m.
9990 (ps_printer::~ps_printer): Implement -m.
9992 * aclocal.m4 (GROFF_G): New macro.
9993 * configure.in: Call it.
9994 * Makefile.in (g): Provided by configure.
9996 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
9998 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
10001 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10002 (tmac_m, tmac_s): Deleted.
10003 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10004 tmac_s_prefix): New variables.
10005 (MDEFINES): Change accordingly.
10006 * Makefile.comm (.man.n): Use new TMAC_* variables.
10007 * configure.in (GROFF_TMAC): Call.
10008 * aclocal.m4 (GROFF_TMAC): Define.
10009 * tmac/Makefile.sub (stamp_wrap): New target.
10010 (install_data, uninstall_sub): Handle macro wrapping.
10012 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
10014 * tbl/main.cc (main): Ignore -T option.
10016 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
10018 * devlj4/generate/special.map: Add definition of \(nb.
10020 * tmac/tmac.dvi: Add definition of \(nb.
10022 * troff/dictionary.c (dictionary::dictionary): association::v gets
10023 initialized by association::association.
10025 * tmac/Makefile.sub: Avoid using temporary files when installing.
10027 * troff/env.cc (environment::set_font): Make bad font number a
10030 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10032 * Makefile.in (datadir): Use share rather than lib.
10034 * groff/groff.cc (basename): Rename to xbasename.
10036 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
10038 * Makefile (CCLIBS): Don't use.
10039 * Makefile.ccpg: Likewise.
10041 * acgroff.m4: Rename to...
10042 * aclocal.m4: Modify extensively for autoconf 2.
10043 * configure.in: Likewise.
10044 * Makefile.in: Likewise.
10046 * groff/pipeline.c (const): Declare as empty if __STDC__ not
10048 (xstrsignal): Check for definition of NSIG. Conditionalize
10049 on SYS_SIGLIST_DECLARED. Make return type const.
10051 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
10053 * troff/input.cc (interpolate_macro): Rephrase missing space
10056 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10058 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10059 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10060 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10061 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10062 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10063 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10064 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10065 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10066 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10067 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10068 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10071 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
10073 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10075 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10077 (macro_iterator::macro_iterator): Add additional argument.
10079 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
10081 * troff/div.cc (vertical_size::vertical_size): In place of integer
10082 specifying line spacing use cunits specifying post vertical
10084 (macro_diversion::output, top_level_diversion::output): Likewise.
10085 * troff/div.h: Change declarations accordingly.
10086 * troff/env.cc (pending_output_line): Replace ls field by post_vs
10088 (pending_output_line::pending_output_line,
10089 pending_output_line::output, environment::output,
10090 environment::output_line, environment::output_title,
10091 environment::hyphenate_line): In place of
10092 integer specifying line spacing use cunits specifying post vertical
10094 (environment::environment): Add post_vertical_spacing and
10095 prev_post_vertical_spacing arguments.
10096 (environment::get_post_vertical_spacing): New function.
10097 (environment::total_post_vertical_spacing): New function.
10098 (environment::post_vertical_spacing): New function.
10099 (init_env_requests): Initialize pvs request and .pvs register.
10100 * troff/env.h: Change declarations.
10102 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
10104 * tmac/tmac.pspic: Immediately remove the temporary file.
10106 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
10108 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10109 height is specified.
10111 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
10113 * tbl/table.c (struct vertical rule, class table_entry): Use int
10114 not short for start_row and end_row.
10116 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
10118 * troff/input.cc (trapping_blank_line, blank_line_macro): New
10120 (diverted_space_node::reread, process_input_stack): Call
10121 trapping_blank_line() rather than blank_line().
10122 (init_input_requests): Bind "blm" to blank_line_macro().
10124 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10126 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
10128 * troff/env.cc (environment::possibly_break_line): Require that
10129 width total excluding width of final space node be greater than
10130 the target text length.
10132 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
10134 * troff/node.cc (kern_pair_node::vertical_extent): New function.
10136 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
10138 * troff/node.cc (charinfo_node): New class.
10139 (glyph_node, composite_node): Derive from charinfo_node. Change
10140 member functions accordingly.
10142 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
10144 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10146 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
10148 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10150 * devps/generate/textmap (notsubset): Add.
10152 * tmac/tmac.a4: New file.
10154 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
10156 * pic/main.cc (had_parse_error): New variable.
10157 (do_picture, do_whole_file): Set had_parse_error if yyparse()
10159 (main): Return 1 if had_parse_error is true.
10161 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
10163 * grolj4/lj4.cc (main): Avoid use of strtoul.
10165 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
10167 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10168 iso_8859_1 or $LESSCHARSET is latin1.
10170 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
10172 * hpftodit: New directory.
10173 * Makefile.in (CCPROGDIRS): Add hpftodit.
10174 * devlj4/generate: New directory.
10176 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
10178 * configure.in: Don't use AC_VFORK.
10179 * groff/pipeline.c (run_pipeline): Use fork() always.
10181 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
10183 * grops/ps.cc (main): Use %1 not %s in error message for -w.
10185 * Makefile.in (CCPROGDIRS): Add grolj4.
10186 (DEVDIRS): Add devlj4.
10187 * grolj4, devlj4: New directories.
10188 * tmac/troffrc: Handle lj4.
10189 * tmac/tmac.lj4: New file.
10191 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
10193 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10195 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
10197 * troff/input.cc (do_if_request): At end of second string, switch
10198 environments before getting next token.
10200 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
10202 * devps/psstrip.sed: Split rule that strips whitespace on either
10203 side of delimiters.
10205 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
10207 * troff/node.h (font_family::make_definition): Add return value to
10208 declaration. * troff/symbol.h (symbol::operator==,
10209 symbol::operator!=): Likewise.
10211 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
10213 * groff/groff.cc (main, help, synopsis): Handle -S.
10214 (possible_command::insert_arg): New function.
10216 * tmac/tmac.safer: New file.
10217 * tmac/msafer.man: New file.
10218 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10220 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
10222 * pic/pic.h, pic/main.cc (safer_flag): New variable.
10223 * pic/pic.y (placeless_element): Avoid unsafe operations if
10224 `safer_flag' is set.
10225 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10227 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
10229 * eqn/lex.cc (get_token): Put call to add_context() in block to
10230 work around Sun C++ 4.0 bug.
10232 * include/stringclass.h (operator +): Use ?: instead of `if' to
10233 work around Sun C++ 4.0 bug.
10235 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
10237 * tbl/main.cc (process_format): Accept - as a synonym for the _
10240 * libbib/index.cc (minus_one): Don't declare as const.
10242 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
10244 * troff/input.cc (get_char_for_escape_name): Push back a newline.
10246 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
10248 * troff/input.cc (write_macro_request): New function.
10249 (init_input_requests): Bind write_macro_request to writem.
10251 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
10253 * tmac/tmac.s (@EN): Turn filling back on even if there was no
10256 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10258 * tmac/tmac.s (@TS): Renamed from TS.
10259 (TS): Call LP then TS again.
10260 (cov*ab-init): Alias @TS to TS.
10262 * tmac/tmac.s: Allow QP or RS to initialize.
10264 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
10265 Move initializations of PS and LL here.
10266 (par@init): Don't initialize HY. Avoid changing environment 0.
10267 (par*env-init): Don't all par@reset.
10269 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
10271 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10273 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
10275 * Makefile.in (MDEFINES): Add LDFLAGS.
10276 (LDFLAGS): Add definition line.
10278 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
10280 * troff/input.cc (get_optional_char): Split off error check into...
10281 (check_missing_character): New function.
10282 * troff/token.h: Declare it.
10283 * troff/env.cc (margin_character): Don't call get_optional_char.
10284 Only call tok.next() after making the node.
10286 * include/lib.h (getopt): Make 2nd argument char *const *.
10288 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
10290 * nroff/conftest.sh: Deleted.
10292 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
10294 * pic/make-dos-dist: Deleted.
10296 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
10298 * devps/psstrip.sed: Strip comments before stripping trailing
10301 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
10303 * Version 1.09 released.
10305 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
10307 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10309 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
10311 * libgroff/font.cc (font::load_desc): Fix typo in error message.
10313 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
10315 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10316 about returning without a value.
10318 * troff/charinfo.h (charinfo::get_special_translation): Cast
10319 TRANSLATE_NONE to int.
10321 * refer/token.cc (lookup_token, store_token): Remove bogus loop
10322 test. Fix test so that it works with n unsigned.
10324 * pic/pic.y (defaults_table): Fully bracket initializer.
10325 * pic/lex.cc (lookup_keyword): Likewise.
10326 * eqn/lex.cc (token_table, def_table): Likewise.
10327 * eqn/box.cc (param_table): Likewise.
10328 * troff/input.cc (warning_table): Likewise.
10329 * libgroff/font.cc (table): Likewise.
10330 * grops/ps.cc (ps_printer::special): Likewise.
10331 * grops/psrm.cc (resource_manager::process_file): Likewise.
10332 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10333 * refer/command.cc (command_table): Likewise.
10334 * addftinfo/addftinfo.cc (param_table): Likewise.
10336 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10337 about temp's being unused.
10338 (unused): New function.
10340 * groff/pipeline.cc: Declare c_fatal.
10342 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10345 * libbib/index.cc (index_search_item::load): Prevent compiler
10346 warnings about fd_closer's being unused.
10347 (unused): New function.
10349 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
10351 * troff/input.cc (copy_mode_error): Make `prefix' static.
10354 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10356 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10357 HAVE_CC_OSFCN_H and modify accordingly.
10359 * troff/input.cc (init_charset_table): radicalex overlaps
10362 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10363 udodo!hans@relay.NL.net).
10364 * groff/configure.in: Call it.
10366 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10367 * groff/configure.in: Call it.
10368 * include/lib.h: Conditionalize declaration of pclose.
10370 * troff/div.cc (last_page_number): New global variable.
10371 (top_level_diversion::begin_page): Exit if we just printed the
10373 * troff/div.h (last_page_number): Declare it.
10374 * troff/input.cc (parse_output_page_list): Set last_page_number.
10376 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10377 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10378 tmac/tmac.X: Likewise.
10379 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10380 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10382 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
10384 * tmac/doc-ditroff (hK): Remove groff specific code which
10385 prevented page-breaks between separate manual entries. If this is
10386 the first page, don't set the page number to 1.
10388 * acgroff.m4 (GROFF_POSIX): New macro.
10389 * configure.in: Use it.
10391 * troff/node.cc (class real_output_file,
10392 real_output_file::real_output_file,
10393 real_output_file::~real_output_file): Conditionalize use of
10394 popen/pclose on POPEN_MISSING.
10395 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10396 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10397 (pipe_source): Similarily.
10399 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10401 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10402 presence of declarations by trying to compile example with
10403 conflicting declarations. (gcc only gives a warning for missing
10406 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
10408 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10409 (from Ulrich Lauther).
10411 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
10413 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10415 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
10417 * indxbib/indxbib.cc (write_hash_table): Add code for case where
10418 pointers and ints have different sizes.
10420 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
10422 * tmac/tmac.s (par*env-init): Call par@reset.
10424 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
10426 * tmac/tmac.s (@IP): Switch to a new environment when diverting
10428 (par*push-tag-env, par*pop-tag-env): New macros.
10430 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
10432 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10433 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
10435 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10436 comment. Include <time.h>.
10438 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
10440 * grops/ps.cc (is_small_h, is_small_v): Deleted.
10441 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10444 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
10446 * troff/input.cc (read_request): Only print a prompt if reading
10447 from the terminal. Also clearerr on EOF if reading from the
10448 terminal. Declare isatty.
10450 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
10452 * refer/label.y: Rename map_t to map_func and extractor_t to
10455 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
10457 * include/assert.h: Don't use volatile.
10458 * libgroff/assert.cc: Likewise.
10460 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
10462 * troff/input.cc (abort_request): Look at character in tok before
10463 calling get_copy().
10465 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
10467 * troff/troff.h (NO_RETURN): Deleted.
10468 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
10469 * troff/input.cc (exit_troff): Likewise
10471 * Makefile.in: Remove `Making ...' messages since GNU make now
10474 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10476 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
10478 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10479 to constant 1 inch.
10481 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
10483 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10485 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
10487 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10488 MARK_REG if there was no left delimiter.
10490 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
10492 * pic/troff.cc (troff_output::text): Set line thickness to
10493 relative before outputting text.
10495 * tmac/tmac.e (@k): Don't zero ?T.
10498 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
10500 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10502 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
10504 * troff/input.cc (decode_args): Warn about unquoted tabs (from
10507 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
10509 * troff/input.cc (ignoring): New variable.
10510 (ignore): Set ignoring during call to do_define_macro.
10511 (do_define_macro): Clear ignoring before interpolating terminating
10513 (copy_mode_error): New function.
10514 (get_char_for_escape_name, read_long_escape_name,
10515 interpolate_arg): Use copy_mode_error.
10516 (warning_table): Add WARN_IG.
10517 * troff/troff.h (WARN_IG): Declare.
10518 (WARN_TOTAL): Change accordingly.
10520 * groff/pipeline.c (strsignal): Rename to xstrsignal.
10521 * groff/groff.cc (strsignal): Delete declaration.
10523 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
10525 * troff/div.cc (page_offset): Use 'm' as default scaling.
10527 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
10529 * nroff/nroff.sh: Ignore -u.
10531 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
10533 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10535 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
10537 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10539 (B2): With -Tascii, leave additional vertical space before
10540 and after. Ensure that the left and right indent is restored to
10541 what it was even if the point size changes. Don't call
10542 par@finish. Change the indent, line length and title length
10543 directly. With -Tascii, make the width of the box 1n less.
10544 (B1): Remember 1n at the current point size. Don't call
10545 par@reset. Change the indent, line length and title length
10546 directly. Ensure that the temporary indent is preserved.
10547 (par*box-mark-top): Turn off no spacing mode.
10549 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
10551 * Makefile.in (dist): Use .gz suffix.
10553 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
10555 * troff/input.cc (main): Add return 0.
10556 * pic/main.cc (main): Use return instead of exit.
10557 * tbl/main.cc (main): Likewise.
10558 * eqn/main.cc (main): Likewise.
10559 * grops/ps.cc (main): Likewise.
10560 * grotty/tty.cc (main): Likewise.
10561 * groff/groff.cc (main): Likewise.
10562 * grodvi/dvi.cc (main): Likewise.
10563 * refer/refer.cc (main): Likewise.
10564 * indxbib/indxbib.cc (main): Likewise.
10565 * lkbib/lkbib.cc (main): Likewise.
10566 * soelim/soelim.cc (main): Likewise.
10567 * addftinfo/addftinfo.cc (main): Likewise.
10568 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10569 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10571 * troff/token.h (process_input_stack): Don't declare as static.
10572 * troff/input.cc: Likewise.
10574 * troff/node.c (invalidate_fontno): Make it a static member of
10575 class font_family. Change callers.
10576 * troff/node.c: Change declaration.
10578 * tbl/main.cc (struct input_entry_format): Add explicit public
10580 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10581 struct double_hline_stuff): Likewise.
10582 * tbl/table.h (struct entry_format): Likewise.
10583 * pic/object.h (struct saved_state): Likewise.
10585 * include/stringclass.h: Add forward declarations of friend
10586 functions that are later declared as inline. Don't include inline
10587 specifier in friend declaration.
10589 * libgroff/lib.h: Declare popen and pclose.
10590 * acgroff.m4 (GROFF_POPEN): New macro.
10591 * configure.in: Call it.
10593 * include/lib.h (PI): New constant. Undef first if necessary.
10594 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10595 * grops/ps.cc (degrees, radians): Likewise.
10596 * libgroff/font.cc (font::get_skew): Likewise.
10598 * grops/ps.cc (is_ascii): New function.
10599 (ps_output::put_string): Use is_ascii. Use csprint rather than
10601 (ps_printer::define_encoding): Use csspace.
10602 * libgroff/strtol.c (ISASCII): New macro.
10603 (strtol): Cast arguments to is*() and tolower() to unsigned char.
10604 Use ISASCII rather than isascii.
10605 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10606 * libgroff/cset.cc: Likewise.
10607 * libdriver/input.cc: Include cset.h.
10608 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10611 * refer/refer.cc (main): Use %ld rather than %d for longs.
10613 * libbib/index.cc (index_search_item_iterator::get_tag): Use
10616 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10618 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
10620 * troff/input.cc (hyphenation_code): Skip white space between
10623 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
10625 * tbl/table.h (table::entry_list_tailp): New member.
10626 (table::table): Initialize it.
10627 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10630 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
10632 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10633 with negative horizontal positions. Remove casts of glyph::hpos to
10635 (USHRT_MAX): Delete definition.
10636 (SHRT_MAX, SHRT_MIN): New definitions.
10637 (glyph::hpos): Change type to short.
10638 (tty_printer::end_page): Output multiple backspaces if necessary.
10639 Remove casts of glyph::hpos to int.
10641 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
10643 * tmac/tmac.s (@RT): New definition.
10645 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
10647 * refer/refer.cc (do_file): Make sure current_filename is set when
10650 * pic/common.cc (common_output::dot_line): Handle zero length
10653 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
10655 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
10656 (par@init): Initialize \n[HY].
10658 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
10660 * troff/dictionary.cc (dictionary::remove): Continue when
10663 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
10665 * Makefile.com (.y.cc): Avoid ending up with two versions of
10668 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
10670 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
10671 (\(,C): Likewise. Also fix typo.
10673 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
10675 * lib.h: Delete extraneous semi-colon.
10677 * Add pso request: `so' from a pipe.
10678 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
10679 (file_iterator::close): New function.
10680 (file_iterator::~file_iterator, file_iterator::next_file): Use
10681 file_iterator::close.
10682 (file_iterator::backtrace): Say `process' rather than `file' when
10683 the stream is popened.
10684 (pipe_source): New function.
10685 (init_input_requests): Bind ".pso" to pipe_source.
10687 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
10689 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
10691 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
10692 digits in lower case.
10694 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
10696 * Version 1.08 released.
10698 * Makefile.in (dist): Insert || true after ln -s commands that
10701 * mm: Update to mm 1.16.
10703 * acgroff.m4 (GROFF_CSH_HACK): New macro.
10704 * configure.in: Call GROFF_CSH_HACK. Substitute for
10706 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
10708 * nroff/Makefile.sub (nroff): New target.
10709 (install_data): Install nroff.
10710 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
10711 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
10713 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
10715 * eqn/Makefile.sub (neqn): Add chmod +x.
10717 * grog/Makefile.sub (grog): Remove spurious semi-colon.
10719 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
10721 * troff/input.cc (string_iterator::string_iterator()): Initialize
10724 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
10726 * troff/div.cc (macro_diversion::space,
10727 top_level_diversion::space): Don't set high_water_mark.
10728 (macro_diversion::output, top_level_diversion::output): Don't
10729 include post line space in high water mark.
10731 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
10733 * eqn/eqn.y: Don't define YYDEBUG.
10734 * pic/pic.y: Likewise.
10736 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
10738 * tmac/tmac.e ([3): Add space after comma following editors.
10739 Change double spaces to single spaces.
10740 ([4): Change double spaces to single spaces.
10742 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
10743 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
10744 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
10745 after %!PS-Adobe- (for Newsprint).
10747 * troff/div.cc (top_level_diversion::begin_page): When
10748 before_first_page is 1, set page_number to 1.
10750 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
10752 * eqn/box.cc (box::top_level): Protect equation with \&.
10754 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
10756 * groff/groff.cc (possible_command::set_name): Delete old name.
10758 * groff/groff.cc (possible_command::~possible_command): Use
10761 * troff/node.cc (troff_output_file::begun_page): New member.
10762 (troff_output_file::troff_output_file): Initialize it.
10763 (troff_output_file::really_begin_page): Only output V command if a
10764 page has been begun.
10766 * pic/pic.y (placeless_element): Delete argument to PRINT after
10769 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
10771 * Make wrapman work.
10772 * troff/div.h (class top_level_diversion): Replace
10773 first_page_begun by before_first_page (with opposite sense).
10774 * Change first_page_begun to before_first_page inverting sense.
10775 * troff/div.cc (class nl_reg): New class.
10776 (init_div_requests): Use class nl_reg for \n(nl.
10777 (top_level_diversion::begin_page): Don't call
10778 output_file::begin_page if before_first_page is 2;
10779 reset before_first_page afterwards. If have_next_page_number is
10780 false, then always increment page_number.
10781 * tmac/tmac.an: Set traps within TH rather than at the top-level.
10782 Restore compatibility mode after loading, and then disable
10783 compatibility mode in TH.
10785 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
10787 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
10789 * troff/node.h (output_file::trailer): Declare.
10790 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
10791 * troff/node.cc (output_file::trailer): New function.
10792 (troff_output_file::~troff_output_file): Move most code into...
10793 (troff_output_file::trailer): New function.
10794 (class troff_output_file): Delete page_length member. Declare
10796 (troff_output_file::really_begin_page): Use current page length
10797 for final V command.
10799 * tbl/main.cc (struct options): New decimal_point_char member.
10800 (options::options): Initialize this.
10801 (process_options): Implement decimalpoint option.
10802 (process_data): Pass decimal_point_char option to table::table.
10803 * tbl/table.h (class table): New decimal_point_char member.
10804 (table::table): Add additional argument.
10805 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
10806 second argument specifying decimal point character. Use this
10808 (table::table): Initialize decimal_point_char.
10809 (table::add_entry): Change call to find_dot.
10811 * troff/input.cc (get_copy, token::next): Implement \V.
10812 (interpolate_environment_variable): New function.
10814 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
10816 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
10817 * pic/pic.y: Likewise.
10819 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
10821 * refer/ref.cc (reference::insert_field, reference::delete_field):
10823 * troff/number.cc (parse_term): Likewise.
10825 * acgroff.m4 (GROFF_PROG_YACC): New macro.
10826 * configure.in: Use GROFF_PROG_YACC.
10828 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
10830 * Makefile.in (OPTIMIZE): New define.
10831 (DEBUG): Empty by default.
10832 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
10834 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
10835 (GROFF_ARRAY_DELETE): Likewise.
10836 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
10838 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
10840 * devps/psstrip.sed: Use different delimiter on last line (so that
10841 it works with BSD 4.4 sed.)
10843 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
10845 * devps/psstrip.sed: Delete comments.
10847 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
10848 optind, opterr, optarg.
10849 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
10852 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
10854 * Makefile.in (check): Dummy target.
10856 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
10858 * Version 1.07 released.
10860 * Integrate mm 1.11.
10862 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
10863 where start_col was meant.
10865 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
10867 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
10869 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
10871 * troff/input.cc (token::next): Make \z\o'...' and similar things
10874 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
10876 (environment): Add margin_character_flags member.
10877 * env.cc (environment::environment(symbol),
10878 environment::environment(const environment *): Initialize
10879 margin_character_flags.
10880 (margin_character): Rewrite.
10881 (environment::output_line): Add a margin character if
10882 margin_character_flags is non-zero. Turn off the
10883 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
10884 zero, use margin_character_node without copying and then set
10885 margin_character_node to 0.
10887 * devps/DESC.in: Change minimum size to 1000.
10889 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
10891 * troff/symbol.h (symbol::hash): Change return type to unsigned
10893 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
10896 * test-groff: Use -r rather than -x.
10898 * grops/psfig.diff: Include in distribution again.
10900 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
10902 * Makefile.in (dist): Use gzip.
10904 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
10906 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
10907 unistd.h as well as in stdlib.h.
10908 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
10909 defined; otherwise include <sys/types.h> and <unistd.h> if
10910 UNISTD_H_DECLARES_GETOPT is defined.
10912 * configure.in: use builtin(include, ... rather than include(...
10913 * configure: Regenerate with autoconf 1.3.
10915 * libdriver/print.cc (printer::adjust_arc_center): Use new
10916 algorithm suggested by Andy Fyfe.
10918 * libdriver/printer.cc (printer::adjust_arc_center): New function.
10919 * include/printer.h: Declare this.
10920 * grops/ps.cc (ps_printer::draw): Use it.
10921 * grodvi/dvi.cc (dvi_printer::draw): Use it.
10923 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
10925 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
10927 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
10929 * eqn/main.cc (main): Handle "eqn -".
10931 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
10933 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
10935 * mm: Integrate version 1.08.
10937 * pic/troff.cc (troff_output::finish_picture): Set
10938 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
10939 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
10940 if it's not defined. Check whether the register is non-zero rather
10941 than whether it's not defined.
10942 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
10944 * indxbib/indxbib.cc: Move all signal handling into...
10945 * indxbib/signal.c: New file.
10946 * configure.in: Call AC_RETSIGTYPE.
10948 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
10949 * configure.in: Call GROFF_STRUCT_EXCEPTION.
10950 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
10952 * troff/input.cc (token::token, token::operator=): Work round SGI
10954 * pic/object.cc (position::position): Likewise.
10956 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
10958 * pic/pic.h: Move declaration of hypot().
10960 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
10962 * pic/pic.h: Declare hypot().
10964 * pic/pic.h: Define M_PI if necessary.
10966 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
10968 * tmac/tmac.e (re): Add alternative version that doesn't use groff
10971 * devps/prologue.ps (RE): Handle the possibility that the old font
10972 doesn't have a FontName entry.
10974 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
10976 * tmac/tmac.e (fam): Redefine to set family in environment 2.
10977 (@C): Use @fam not fam.
10979 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
10981 * lookbib/lookbib.cc (main): Change type of start to const char *.
10982 * lkbib/lkbib.cc (main): Likewise.
10984 * eqn/lex.cc (definition::definition): Don't use member
10985 initializer syntax for members of anonymous unions.
10987 * troff/input.cc (input_stack::backtrace): Change type of to const
10990 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
10992 * include/stringclass.h (class string): Declare inline friend
10993 functions as inline in class declaration.
10994 * troff/hvunits.h (class hunits, class vunits): Likewise.
10995 * include/refid.h (class reference_id): Likewise
10996 * troff/troff.h (points_to_units(units), scale(units, double)):
10997 Delete declarations.
10998 * libdriver/input.cc (get_char): Delete declaration.
10999 * include/lib.h: Change 2nd argument of getopt from const char **
11001 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11002 char **' before assigning to a `const char **'.
11003 * tbl/table.cc: Delete extra declarations of prints().
11005 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
11007 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11008 char **' before assigning to a `const char **'.
11010 * libgroff/errarg.cc (errarg::errarg): Don't use member
11011 initializer syntax for members of anonymous unions.
11013 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
11015 * mm: Integrate version 1.07.
11017 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
11019 * troff/input.c (translate2): Rename to
11020 (translate_no_transparent).
11021 (init_input_requests): Rename tr2 to trnt.
11023 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
11025 * troff/charinfo.h (class charinfo): Add transparent_translate field.
11026 (charinfo::set_translation, charinfo::set_special_translation):
11027 Add second argument that specifies value for
11028 transparent_translate.
11029 (charinfo::get_translation, charinfo::get_special_translation):
11030 Add optional second argument that specifies whether translation is
11031 being used for transparent throughput.
11032 * troff/input.cc (charinfo::set_translation,
11033 charinfo::set_special_translation): Handle second argument.
11034 (charinfo::charinfo): Initialize transparent_translate.
11035 (translate): Split main part off into
11036 (do_translate): New function. Pass argument saying whether
11037 translation applies to transparent throughput.
11038 (translate2): New request.
11039 (init_input_requests): Bind translate2 to `tr2'.
11041 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
11043 * tbl/table.h (class table): Add `nokeep' flag.
11044 * tbl/main.cc (process_options): Handle `nokeep' option.
11045 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11046 table::do_bottom): Don't output keep/release macro definitions or
11047 calls when `nokeep' option has been specified.
11049 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
11051 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11053 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
11055 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11056 block_entry::divert, alphabetic_block_entry::divert): Add extra
11057 argument giving column separation.
11058 (table::compute_widths): Pass column separation to
11059 table_entry::divert().
11060 (block_entry::do_divert): If an entry spans multiple columns and a
11061 minimumum width has been specified for each column, then set the
11062 line length to the sum of the widths (plus possibly the column
11065 * troff/input.cc (set_escape_char): Don't set the escape_char
11066 until after calling has_arg().
11068 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
11070 * tbl/table.cc (table::do_top): Add missing \s0 for double box
11073 * tbl/table.cc (table::print_double_hline): Avoid extra new line
11074 in case where r > nrows - 1.
11076 * tbl/table.cc (BODY_HEIGHT): Deleted.
11077 (LINE_SEP): New definition.
11078 (table::print_single_hline, table::print_double_hline,
11079 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11080 table::do_row, table::do_top): Use LINE_SEP space before a line
11081 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11083 * tbl/table.cc (text_entry::print_contents): New function.
11084 (text_string_name, right_text_string_name): Deleted.
11085 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11086 (simple_text_entry::do_width, numeric_text_entry::do_width,
11087 alphabetic_text_entry::do_width): Don't store the contents of the
11089 (left_text_entry::simple_print, right_text_entry::simple_print,
11090 center_text_entry::simple_print,
11091 alphabetic_text_entry::simple_print,
11092 numeric_text_entry::simple_print): Print the entry directly
11093 instead of using the stored string.
11095 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
11097 * devps/Makefile: Strip PostScript files.
11098 * devps/prologue: Rename to...
11099 * devps/prologue.ps.
11100 * devps/psstrip.sed: New file.
11101 * devps/download: Use .pfa rather than .ps for installed versions
11104 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
11106 * troff/env.cc (input_trap): Give a warning if the argument is out
11109 * troff/env.cc (adjust): Treat negative argument as missing. Round
11110 argument > 5 down to 5.
11112 * troff/env.cc (center, right_justify): Make negative argument zero.
11114 * troff/div.cc (page_offset, vertical_position_traps): Treat
11115 invalid argument as missing.
11116 * troff/env.cc (line_spacing, line_length, title_length, indent,
11117 underline, hyphen_line_max_request, control_char,
11118 no_break_control_char, widow_control_request, adjust, input_trap,
11119 point_size): Likewise.
11120 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11121 constant_space): Likewise.
11122 * troff/input.cc (compatible, shift, warn_request,
11123 set_escape_char): Likewise.
11125 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11126 * tbl/table.cc (table::table): Likewise.
11128 * Makefile.dev (install_dev): depends on $(DEVFILES).
11130 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
11132 * devX75, devX75-12, devX100, devX100-12: New directories.
11133 * Makefile.in: Add these to DEVDIRS.
11135 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11136 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11137 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11138 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11140 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11141 (uninstall): New target.
11142 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11143 uninstall_prog, uninstall_dev): New targets.
11145 * troff/div.cc (return_request): Treat an invalid argument as
11148 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
11150 * tmac/tmac.e ((f): Set up the environment even when there's a
11151 current diversion. Transperently throughput a call to @N.
11154 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
11156 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11157 up to vertical resolution.
11159 * tbl/table.cc (table::do_row): Change row number after printing
11162 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11164 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
11166 * Rename CHANGES to NEWS.
11168 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
11170 * libgroff/new.cc (operator new): Avoid calling malloc(0).
11172 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
11174 * man.ultrix: Removed.
11176 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
11178 * Makefile.comm (extraclean): Delete files whose names begin with
11181 * pic/troff.cc (troff_output::text): Fix typo in implementation of
11184 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
11186 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11187 * troff/div.cc (page_length, need_space, space_request): Treat
11188 invalid optional argument as missing.
11189 * troff/env.cc (number_lines): If the first argument is present
11190 but not a number, turn on line numbering, don't change the next
11191 line number and parse the remaining arguments.
11193 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11195 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
11197 * eqn/box.h: Change declaration accordingly.
11198 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
11199 the specified size was bad but don't give an error. Check for
11201 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11202 * eqn/lex (do_size): Likewise.
11204 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
11206 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11207 compatible headers.
11209 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
11211 * tbl/table.cc (table::init_output): Improve error message when
11212 table won't fit on one page.
11214 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
11216 * pic/troff.cc (troff_output::start_picture): Generate line
11217 containing a horizontal motion equal to the width of the picture.
11219 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11220 using GROFF_COMMAND_PREFIX environment variable.
11222 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
11224 * mdate.sh: Use $NF rather than $(NF).
11226 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
11228 * pic/main.cc (main): Use %1 not %c in argument to warning.
11230 * eqn/main.cc (main): Output code to check that geqn was given the
11233 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
11235 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11236 `ln -s ../Makefile .; make; rm -f Makefile'.
11238 * troff/hyphen: Rename to...
11240 * troff/input.cc (main): Delete -H option. Don't call
11241 read_hyphen_file().
11242 * troff/env.cc: Include searchpath.h and macropath.h.
11243 (exception_dictionary): Deleted.
11245 (read_hyphen_file): Deleted.
11246 (hyphenation_language): New struct.
11247 (class trie, class hyphen_trie): Move declarations up.
11248 (trie_node::~trie_node): Deleted.
11249 (trie::delete_trie_node): New function.
11250 (trie::do_delete): New pure virtual function.
11251 (hyphen_trie::do_delete): New function.
11252 (trie::~trie): New function.
11253 (hyphen_trie::~hyphen_trie): New function.
11254 (trie::clear): No need to chcek that tp is not 0.
11255 (current_language, language_dictionary): New variables.
11256 (hyphen_word): Give an error if no current language. Use
11257 exceptions dictionary in current language.
11258 (hyphen_trie::read_patterns_file): Find file using macro_path.
11259 Allow comments (starting with %) in patterns file. Don't make it
11260 a fatal error if the file can't be found.
11261 (hyphenate): Return if no current language. Get the exceptions
11262 dictionary and the hyphenation patterns from the current language.
11263 (set_hyphenation_language): New variable.
11264 (hyphenation_patterns_file): New function.
11265 (hyphenation_language_reg): New class.
11266 (hyphenation_language_reg::get_string): New function.
11267 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11268 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
11270 * groff/groff.cc (main, help, synopsis): Delete -H option.
11271 * include/Makefile.sub: Don't define HYPHENFILE.
11272 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11273 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11274 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11275 hyphenation patterns.
11277 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
11279 * eqn/neqn.sh: New file.
11280 * eqn/Makefile.sub: Handle neqn.sh.
11282 * eqn/eqn.h: Declare `nroff' variable.
11283 * eqn/box.cc (param_table): Add `nroff' param.
11284 (nroff): Define it.
11285 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11287 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11289 * troff/troff.h (WARN_FONT): New warning.
11290 (WARN_TOTAL): Change accordingly.
11291 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11292 (warning_table): Add WARN_FONT.
11293 * troff/node.cc (mount_font_no_translate): Pass argument to
11294 font::load_font. If this is non-zero, give a warning.
11295 Don't give an error message when accessing a font that has already
11296 been found to be invalid.
11297 * include/font.h (font::load, font::load_font): Add additional
11298 optional argument which suppresses error message if the font is
11300 * libgroff/font.cc (font::load_font): Handle additional argument.
11301 (font::load): Add additional argument. If this is non-null, set it
11302 to 1 and don't give error message.
11304 * include/printer.h (printer::end_page): Add argument giving
11306 * libdriver/input.cc (do_file): Pass this.
11307 * grops/ps.cc (ps_printer::end_page): Add argument.
11308 * grodvi/dvi.cc (dvi_printer::end_page,
11309 draw_dvi_printer::end_page): Add argument.
11310 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11311 columns_per_page members. New member nlines.
11312 (DEFAULT_LINES_PER_PAGE): Deleted.
11313 (tty_printer::tty_printer): Don't compute lines_per_page from
11314 font::paperlength. Don't compute columns_per_page from
11316 (tty_printer::add_char): Don't check horizontal position against
11317 columns_per_page. Grow glyphs vector if neccessary.
11318 (tty_printer::end_page): Add argument giving page_length in units.
11319 Discard lines past end of page.
11321 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
11323 * tmac/tmac.tty-char: Fix definition of \(/l.
11325 * tmac/tmac.X: Define \(en.
11327 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
11329 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11330 lpq, then use lp rather than lpr.
11332 * tmac/tmac.s (par@reset): Don't call `ad'.
11333 (par*env-init): Call `ad'.
11335 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
11337 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11340 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11341 * indxbib/indxbib.cc: Likewise.
11343 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
11345 * libgroff/putenv.c: New file.
11346 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11347 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11348 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11349 stdlib.h with AC_HAVE_HEADERS.
11351 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
11353 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11356 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
11358 * eqn/box.cc (gsize): Make it an int.
11359 (set_gsize): Parse argument handling increment or decrement.
11360 (box::top_level): Convert gsize to a string.
11362 * troff/input.cc (exit_troff): Make buf unsigned char [].
11363 Call to make_temp_iterator casts buf to char*.
11365 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11367 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11368 * Makefile.cpg (depend.temp): Likewise.
11370 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11372 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11374 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
11376 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11378 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
11380 * Version 1.06 released.
11382 * Integrate mm 1.04.
11384 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
11386 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11388 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
11390 * afmtodit/afmtodit.pl: Add -n option that disables generation of
11392 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11393 afmtodit. Regenerate.
11395 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11396 @f back past the current position.
11398 * tmac/tmac.e: Change calls to @R so that comments are not part of
11401 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
11403 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11405 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11406 check that we can link a call to a function declared in <stdio.h>.
11407 (GROFF_UNISTD_H): New macro.
11408 * configure.in: Call it.
11409 * Makefile.in: Document it.
11410 * include/posix.h: New file.
11411 * troff/troff.h: Don't include <osfcn.h>
11412 * troff/input.cc: Include posix.h.
11413 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11415 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11416 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11418 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11419 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11420 * libbib/search.cc (O_RDONLY): Delete definition.
11421 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11422 Don't include <osfcn.h>.
11424 * acgroff.m4 (GROFF_TIME_T): New macro.
11425 * configure.in: Call it.
11426 * Makefile.in: Document it.
11428 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11429 * configure.in: Call it.
11430 * Makefile.in: Document -DTRADITIONAL_CPP.
11431 * include/ptable.h: Don't include generic.h.
11432 (name2): Define it.
11434 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11435 Afterwards remove [T1 and [T2.
11436 (ref*spec!0, ref*spec!2): Use T1 rather than T.
11437 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11438 (ref*add-T2): Renamed from ref*add-T.
11439 (ref*add-T1): New macro.
11441 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
11443 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11445 * libbib/index.cc: Include <fcntl.h>.
11446 (O_RDONLY): Define if necessary.
11447 (make_index_search_item, index_search_item_iterator::get_tag,
11448 index_search_item::check_files): Use O_RDONLY.
11449 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11450 (O_RDONLY): Define if necessary.
11451 (search_list::add_file): Use O_RDONLY.
11452 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11454 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11457 * libbib/index.cc (S_ISREG): Define it if necessary.
11458 (index_search_item::load): Use S_ISREG.
11460 * include/driver.h: Include <errno.h>.
11462 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
11464 * eqn/box.cc (body_height): Increase default value to 85.
11465 (body_depth): Increase default value to 35.
11467 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
11469 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11470 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11471 protected from expansion with \E.
11473 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11475 * Makefile (Makefile): New target.
11477 * Makefile.sub (configure, distfiles): New targets.
11479 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11482 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
11484 * eqn/box.cc (param_table): Add body_height and body_depth.
11486 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11488 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
11490 * psbb/Makefile.sub: Don't link with libgroff.a.
11492 * acgroff.m4 (GROFF_PUTENV): New macro.
11493 * configure.in: Call GROFF_PUTENV.
11494 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11495 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11498 * troff/env.cc (distribute_space): Rename force_forward argument
11499 to force_reverse. Reverse the list if force_reverse is true.
11501 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
11503 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11505 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11506 height or depth to be negative. Guard against SUP_RAISE quantity
11509 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
11511 * devps/generate/textmap: Add `an' (arrowhorizex).
11512 * tmac/tmac.ps: \(an overlaps horizontally.
11513 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11515 * devps/symbolchars: Add arrowverttp, arrowvertbt.
11516 * devps/textmap: Add arrowvertex.
11517 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11518 updownarrow delimiters.
11519 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11521 * tbl/table.cc (simple_entry::position_vertically,
11522 block_entry::position_vertically): For a centered entry, perform
11523 the motion in two stages.
11525 * refer/refer.cc (split_punct): Don't call lookup_token if there
11528 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
11530 * troff/input.cc (token::next): Delete token_node after copying
11533 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11536 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11538 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11540 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
11542 * grops/ps.cc (usage): -b option takes an argument.
11544 * devps/prologue (PLG): New procedure.
11545 * grops/ps.cc (main, usage): New -g option.
11546 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
11549 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
11551 * include/cset.h: Include <limits.h> if we have it.
11553 * libgroff/illegal.cc: New file.
11554 * include/lib.h (illegal_input_char): Use table.
11555 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11556 * pic/lex.cc (ARG1): Renumber to 14.
11557 * eqn/lex.cc (ARG1): Likewise.
11559 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11560 (eg 1.05.90) correctly.
11562 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
11564 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11565 Rename $r and $R registers to $v and $V.
11566 ($r, $R): Initialize to 0.
11567 (@v, @V): New macros.
11571 * troff/input.cc (main, usage): Add -R option that says not to
11573 * eqn/main.cc (main, usage): Rename -n to -R.
11575 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
11577 * devps/DESC.in: Leave font positions 5-9 blank.
11578 * devdvi/DESC.in: Likewise.
11580 * grog/grog.pl: Handle `.PS <file' correctly.
11582 * troff/input.cc (input_stack::push): Improve error message when
11583 input stack limit exceeded.
11585 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
11587 * refer/refer.cc (main): Fix typo in handling of `a' option.
11589 * refer/refer.cc (do_bib): In state START after a newline remain
11592 * groff/groff.sh: Deleted.
11593 * groff/Makefile.sub: Delete handling of groff.sh.
11595 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11596 to determine whether to use \X'ps:...'.
11597 * tmac/troffrc: Set 0p register to 0.
11598 * tmac/tmac.ps: Set 0p register to 1.
11600 * groff/groff.cc: Support -X option. Give warning for -TXps and
11601 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11602 * tmac/troffrc: Support -r.X=1.
11604 * pic/troff.cc (troff_output::dot): Don't test
11605 zero_length_line_flag.
11607 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
11609 * include/lib.h: Declare getopt() and friends unless
11610 STDLIB_H_DECLARES_GETOPT is defined.
11612 * doc/chars.tr: Delete.
11613 * man/groff_char.man: New file.
11615 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
11617 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11618 user has changed register format.
11620 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
11622 * groff/groff.cc: Get rid of device_table. Get postprocessor from
11623 `postpro' command in DESC file. Get spooler command from `print'
11624 command in DESC file. Execute spooler command with /bin/sh.
11626 * groff/groff.cc: Split Unix-specific parts into...
11627 * groff/pipeline.c: New file.
11630 * COPYING: New file.
11631 * all files: Update copyright notices.
11633 * Rearrange files. Redo Makefiles. Use autoconf.
11635 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
11637 * troff/input.c (charinfo_to_node_list): Interpret character
11638 definition with escape_char of `\'.
11640 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
11642 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11643 Define INT_DIGITS as big enough for 64-bit integer.
11644 * lib/strtol.c: Don't include lib.h.
11645 * lib/lib.h: Delete ifdef __cplusplus stuff.
11647 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
11649 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
11650 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
11651 get DESC from current directory.
11653 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
11655 * tbl/main.c (main): Always reset the line number when reading
11658 * tbl/table.c (table::print_single_hline, table::print_double_hline,
11659 table::define_bottom_macro, table::do_row, table::do_top): Round
11660 vertical spacing up to vertical resolution.
11662 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
11664 * ps/ps.h (enum resource_type): Avoid comma at end of
11666 * dvi/dvi.c (class dvi_printer): Likewise.
11667 * dvi/tfmtodit.c (gf::load): Likewise.
11668 * refer/label.y (struct expression): Likewise.
11669 * refer/refer.c (class label_processing_state): Likewise.
11670 * refer/indxbib.c (do_file): Likewise.
11671 * troff/troff.c (enum warning_type): Likewise.
11672 * tbl/main.c (process_data): Likewise.
11673 * troff/charinfo.h (class charinfo):
11675 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
11677 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
11679 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
11681 * groff.c: Move to new groff subdirectory.
11682 * groff/Makefile: New file.
11683 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
11685 * man/mdate.sh: Use ls -L if supported.
11687 * Consolidate all header files produced by gendef into lib/defs.h.
11688 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
11689 Don't include path.h.
11690 * lib/Makefile (path.h): Don't generate.
11691 * troff/input.c: Include defs.h. Don't include config.h.
11692 * troff/Makefile (config.h): Don't generate.
11693 * refer/index.h: Don't include suffix.h.
11694 * refer/index.c: Include defs.h.
11695 * refer/indxbib.c: Include defs.h.
11696 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
11698 * refer/Makefile (suffix.h, path.h): Don't generate.
11699 * groff.c: Don't include config.h. Include defs.h.
11700 * Makefile (config.h): Don't generate.
11701 (lib/defs.h): Generate.
11702 (topclean): Remove lib/defs.h.
11704 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
11706 * lib/malloc.c, lib/getpagesize.h: Deleted.
11707 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
11709 * lib/Makefile: Delete malloc-related stuff.
11710 * lib/new.c: Workaround COOKIE_BUG if necessary.
11712 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
11713 needed header files directly.
11714 * refer/refer.h: Omit definition of DEFAULT_INDEX.
11715 * Makefile: Include definition of DEFAULT_INDEX in path.h.
11717 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
11719 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
11721 * lib/font (font::load_desc, font::load): Don't split argument of
11723 (font::handle_unknown_font_command): Change type.
11724 * ps/ps.c (ps_font::handle_unknown_font_command,
11725 handle_unknown_desc_command): Change type.
11726 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
11728 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
11730 * lib/font.h (font::handle_unknown_font_command): Add file and
11732 * lib/font.c (font::handle_unknown_font_command):
11733 * ps/ps.c (ps_font::handle_unknown_font_command):
11734 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
11735 lineno arguments. Use _with_file_and_line functions for error
11738 * lib/fontfile.c (font::unknown_desc_command_handler): New static
11740 * lib/font.c (font::set_unknown_desc_command_handler): New
11742 (font::load_desc): For unknown commands, call
11743 unknown_desc_command_handler if not null.
11744 * lib/font.h (class font): Declare them.
11745 (FONT_COMMAND_HANDLER): New typedef.
11746 * ps/ps.c (handle_unknown_desc_command): New function.
11747 (main): Set bflag if we had a -b option. Call
11748 font::set_unknown_desc_command_handler.
11749 (broken.h): Don't include.
11750 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
11752 * ps/devps/Makefile: Add `broken' command to DESC file using
11753 BROKEN_SPOOLER_FLAGS.
11755 * macros/tmac.e ([, ]): Add as synonyms for { and }.
11757 * macros/tmac.e ($p): Only exdent if \$3 > 0.
11759 * macros/tmac.e (@R, @S): New macros.
11760 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
11761 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
11762 Declare $H, $[0-9], .. macros with @S.
11763 Declare |0, |1, |2, |3 strings with @S.
11765 * macros/tmac.e (@S): Rename to @U.
11767 * macros/tmac.e (@z): Define @b and bp as empty instead of
11770 * macros/tmac.e (@m): Deleted.
11771 (@h): Don't call @m.
11772 (@z): Don't set @m trap.
11774 * macros/tmac.e ($h, $f): Define |z as empty string.
11776 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
11779 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
11781 ()f): Likewise for * register.
11783 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
11784 argument is missing, don't change $R. Call sr with three
11785 arguments when initializing.
11787 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
11789 * macros/tmac.e (sr): New macro.
11790 Initialize $r and $R using sr.
11792 * macros/tmac.e (,): Delete \*(#[.
11794 * troff/env.c (set_tabs): Read the tab type even if the position
11795 is bad. Allow the position of the first tab stop to be negative.
11797 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
11799 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
11801 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
11802 rather than -DPATHCONF_MISSING.
11803 * Makefile: Get rid of PATHCONF_MISSING.
11805 * refer/map.c: New file.
11806 * refer/index.c: Interface to mmap through map.c. Rename map_size
11808 * refer/Makefile: Handle map.c.
11809 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
11811 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
11813 * Makefile: RANLIB should be `true' if there is no ranlib.
11814 * lib/Makefile (libgroff.a): Simplify.
11815 * driver/Makefile (libdriver.a): Simplify.
11817 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
11818 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
11821 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
11823 * troff/env.c (compare_ranges): Declare as extern "C".
11825 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
11827 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
11829 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
11831 * pic/troff.c (troff_output::text): Merge in grops_output::text,
11832 but conditionalize use of \X based on \*(.T.
11833 (grops_output::*): Deleted.
11834 * pic/output.h: Delete declaration of make_grops_output.
11835 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
11836 by default. -n sets it to 0.
11837 (usage): Corresponding changes.
11838 * groff.c (main): Don't pass -x or -p to pic.
11839 * groff.sh: Likewise.
11841 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
11844 * ps/devps/afmtodit: Change calculation of asc_boundary and
11845 desc_boundary. Make these bounds inclusive.
11846 * ps/devps: Regenerate font files.
11848 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
11850 * macros/tmac.latin1: New file.
11851 * macros/tmac.tty-char: Use tmac.latin1.
11852 (tmac.tty-tr): Deleted.
11853 * macros/Makefile: Install tmac.latin1.
11854 * macros/tmac.dvi: Use tmac.latin1.
11855 * macros/troffrc: Translate \[char160] onto no-break space here.
11856 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
11858 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
11860 * macros/tmac.Xps: Use `do' request.
11862 * macros/tmac.ps: Use `do' request.
11864 * macros/tmac.e (@C): Use `do' request.
11866 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
11867 * macros/Makefile: Install tmac.X*.
11869 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
11870 * tty/Makefile: Don't install tmac.tty*.
11871 * macros/Makefile: Install tmac.tty*.
11873 * dvi/tmac.dvi: Move to macros.
11874 * dvi/Makefile: Don't install tmac.dvi.
11875 * macros/Makefile: Install tmac.dvi.
11877 * ps/tmac.ps*: Move to macros.
11878 * ps/Makefile: Don't install tmac.ps*.
11879 * macros/Makefile: Install tmac.ps*.
11881 * eqn/box.c: Provide draw_lines parameter corresponding to -D
11883 * macros/eqnrc: Set draw_lines parameter based on device.
11884 * groff.c: Don't pass -D flag to eqn.
11885 * groff.sh: Likewise.
11886 * eqn/main.c: Warn about use of -D.
11888 * troff/input.c (process_startup_file): New function.
11889 (main): Call process_startup_file().
11890 * macros/troffrc: New file.
11891 * macros/Makefile: Install troffrc.
11892 * groff.c (main): Don't pass extra -m option to troff. For a
11893 pseudo device pass the name of the pseudo device to troff using
11895 * groff.sh: Likewise.
11896 * groff.c (possible_command::prepend_arg): Deleted.
11898 * troff/input.c (do_request): New function.
11899 (init_input_requests): Bind "do" to do_request.
11901 * eqn/main.c (main): Instead of loading eqnchar from device directory,
11902 load eqnrc from macro directory.
11903 * macros/eqnrc: New file.
11904 * macros/Makefile: Install eqnrc.
11905 * ps/devps/eqnchar: Deleted.
11906 * ps/devps/Makefile: Don't install eqnchar.
11907 * dvi/devdvi/eqnchar: Deleted.
11908 * dvi/devdvi/Makefile: Don't install eqnchar.
11909 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
11912 * lib/device.[ch]: New files.
11913 * lib/font.h (font::set_device_name, font::get_device_name):
11915 * lib/fontfile.c: Use device.h.
11916 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
11917 * troff/input.c: Delete definition of `device'.
11918 (main): Don't initialize device.
11919 * troff/troff.h: Include device.h rather than declaring device.
11920 * troff/Makefile: No need to handle DEVICE.
11921 * driver/input.c: Include device.h. Don't use
11922 font::{set,get}_device_name.
11923 * groff.c, Makefile: Rename device.h to config.h.
11924 * groff.c: Use library device variable.
11925 * eqn/main.c: Use library device variable.
11926 * eqn/Makefile: No need to handle DEVICE.
11928 * lib/searchpath.[ch]: New files.
11929 * lib/Makefile: Handle searchpath.[ch].
11930 * troff/input.c (open_file, init_dirs): Deleted.
11931 (macro_dirs): Deleted.
11932 (open_mac_file, macro_source): Use class search_path.
11933 (add_string, struct string_list): Move definition.
11934 (main): Change -M option to use macro_path. Delete call to
11936 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
11937 Rewrite to use class search_path.
11938 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
11939 * lib/Makefile: fontfile.c depends on searchpath.h.
11940 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
11942 * lib/macropath.[ch]: New files.
11943 * troff/Makefile: No need to handle MACROPATH.
11945 * troff/input.c: Delete DUMP code.
11946 * lib/fontfile.c, lib/font.h: Delete
11947 font::forget_command_line_font_dirs.
11949 * troff/input.c (push_token): New function.
11950 (handle_first_page_transition): Use push_token().
11951 (process_input_stack): Change handling of a space at the beginning
11954 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
11956 * troff/input.c (font_dirs): Delete unused variable.
11958 * eqn/lex.c (do_set): Correct error messages.
11960 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
11962 * troff/input.c (do_define_string): Allow the string name to be
11963 followed immediately by a tab.
11964 (define_character): Likewise.
11966 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
11968 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
11971 * troff/input.c (input_iterator::is_file): New virtual function.
11972 (file_iterator::is_file): New function.
11973 (input_stack::end_file): New function.
11974 (input_stack::next_file): Handle the situation where there is no
11975 file on the input stack correctly. Avoid making two passes over
11977 (next_file): Make the filename optional; in this case call
11978 input_stack::end_file().
11980 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
11982 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
11983 produce a real _ charater when the current font is CW and _
11986 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
11987 expression to work around gcc 2.2 bug.
11989 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
11991 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
11993 * troff/env.c (environment::add_padding): New function.
11994 (environment::add_char): Use add_padding().
11995 (environment::space): Likewise.
11996 (environment::wrap_up_field): Add some padding if there is none
11997 and there's no current tab.
11998 * troff/env.h: Declare environment::add_padding.
12000 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
12002 * pic/pic.y: undef fmod and rand before declaring them.
12004 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
12006 * troff/input.c (main): If the DESC file specifies a font name of
12007 0, then leave the corresponding font position empty.
12009 * nroff.sh: New file.
12010 * Makefile (install.nobin): Install nroff.sh.
12012 * tty/devlatin1/R.proto: Add ao as synonym for de.
12013 * tty/tmac.tty-char: Define ao as o.
12015 * tty/dev{ascii,latin1}/R.proto: Add aq.
12016 * tty/tmac.tty-char: Delete definition of aq.
12018 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
12020 * troff/input.c (init_charset_table): Don't translate 0240.
12021 * ps/tmac.ps: Translate char160 to space.
12022 * dvi/tmac.dvi: Likewise.
12023 * tty/tmac.tty: Likewise.
12025 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
12027 * dvi/tmac.dvi: Add support for all Latin-1 characters.
12029 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12030 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12033 * tty/tmac.tty-char: Add \(ah.
12035 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12036 No need to define \(FM and \(!/. Conditionalize all character
12039 * ps/devps/lgreekmap: Add +h, +f, +p.
12041 * ps/tmac.psnew: New file.
12042 * ps/Makefile: Install tmac.psnew.
12044 * troff/input.c (charinfo_to_node_list): Don't ever interpret
12045 character definitions in compatible mode.
12047 * troff/input.c (remove_character): New function.
12048 (init_input_requests): Bind remove_character to "rchar".
12050 * ps/tmac.psold: New file.
12051 * ps/Makefile: Install tmac.psold.
12052 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12053 characters into tmac.psold. Make these definitions unconditional.
12055 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12057 * ps/tmac.ps: Don't define \('c and \('C.
12059 * ps/devps/textmap: Move Greek characters to...
12060 * ps/devps/symbolchars:
12062 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
12064 * ps/devps/text.enc: Add quotesingle.
12065 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12066 * tty/tmac.tty-char: Likewise.
12067 * dvi/devdvi/texmi.map: Add +h, +f, +p.
12068 * dvi/devdvi/texi.map: Add Fn.
12069 * dvi/devdvi/msam.map: Add lz.
12070 * dvi/tmac.dvi: Handle Bq, bq, aq.
12072 * pic/lex.c (get_token): Recognize 'th.
12073 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12075 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
12077 * ps/devps/textmap: Move di, mu, +- to...
12078 * ps/devps/symbolchars:
12080 * macros/tmac.s (@XS): Don't call par@reset or fi.
12081 (XA): Call LP. Turn off adjustment. Reduce line length.
12083 * macros/tmac.s: Initially alias XS to LP.
12084 (XS): Rename to @XS.
12085 (cov*ab-init): Alias XS to @XS.
12087 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
12089 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12090 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12091 (token::is_size, token::changes_env): Deleted.
12092 * troff/number.c (parse_term): No need to process \s explicitly.
12093 Call tok.next() only after scale indicator has been processed.
12094 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12096 (token::next): Handle \s, \f, \S, \H immediately rather than
12097 returning them as tokens.
12098 (token::operator==, token::description, token::add_to_node_list,
12099 token::process): Remove handling of deleted tokens.
12101 * troff/env.c (environment::add_char): When adding padding
12102 indicator character, call start_line() if necessary.
12104 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
12106 * ps/devps/afmtodit: Don't output 0 kerns.
12108 * ps/devps/afmtodit: Remove directory from name of encoding in
12109 font description file.
12111 * ps/devps/afmtodit: Improve error messages.
12113 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12115 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12116 * ps/devps/FontMakefile: Deleted.
12117 * ps/devps/afmname: New file.
12119 * ps/devps/symbol.sed: New file.
12120 * ps/devps/symbol.diff: Deleted.
12121 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12122 Generate zapfdr.afm from zapfd.afm.
12124 * tty/tmac.tty (tty-char): Prefix definition with ".
12126 * macros/tmac.an (TP): Don't start a diversion if one has already
12129 * tty/tmac.tty-char: Add Latin-1 characters.
12131 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12133 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
12135 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12136 Move declaration of struct horizontal_span.
12138 * tbl/table.c (table::table): Initialize span_list.
12139 (table::~table): Delete span_list.
12141 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12143 * ps/devps/Makefile: Avoid dependency on GNU make.
12145 * ps/tmac.ps: Check that character does not already exist before
12148 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12149 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12150 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12153 * tty/tmac.tty-char: New file.
12154 * tty/Makefile: Install tmac.tty-char.
12155 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12158 * tty/tmac.tty: Fix definition of \(34.
12160 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12161 bracket-drawing characters onto |. Add *o.
12163 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12164 only if current_field.
12166 * troff/dictionary.c (dictionary::lookup): Free old_table after
12169 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
12171 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12172 whose glyphs are identical to glyphs of some Roman character.
12174 * tty/devlatin1/R.proto (bu): Deleted.
12175 * tty/devascii/R.proto (bu): Deleted.
12176 * tty/tmac.tty: Add definition of \(bu.
12178 * eqn/main.c (do_file): Pass FILE as argument.
12179 (main): Automatically load eqnchar. New options -F and -n.
12180 Pass do_file an opened FILE.
12181 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12182 No need to include font.h.
12183 * groff.sh: Likewise. Don't need to use - for standard input.
12184 Prefix files with -- if first file starts with -.
12186 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12188 * troff/env.c (environment::possibly_break_line): Don't set line
12189 to 0 across call to output_line(). Don't call output_line() until
12190 after discarding nodes after break.
12192 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
12194 * request.h (macro::empty): Declare it.
12195 * input.c (macro::empty): New method.
12196 (interpolate_macro): Don't give a WARN_SPACE if the two-character
12199 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
12201 * troff/env.c (environment::start_field): Decrement space_total
12202 when a space is frozen.
12204 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
12206 * macros/tmac.an (R): Delete macro.
12208 * troff/input.c (get_copy, token::next): Support \# (like \" but
12209 newline is ignored).
12211 * troff/input.c (token::next): Fix error message in 'Y' case.
12213 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
12215 * eqn/delim.c (define_extensible_string): Recognize any prefix of
12218 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
12220 * c++test.c: Include <osfcn.h>.
12222 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12225 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
12227 * tbl/table.c (table::divide_span): Don't count column separation
12228 if expand was specified.
12230 * tbl/main.c (process_format): Don't ignore width specs in
12231 continued format. Give warning for changing equal widths or
12232 column separation in continued format.
12233 (process_data): Set column separation, minimum width, equal
12234 columns at end of table.
12236 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
12238 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12239 node::add_discretionary_hyphen): Use soft_hyphen_char.
12240 (set_soft_hyphen_char): New function.
12241 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
12243 * Makefile (c++tested): Give more helpful message if test fails.
12245 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
12247 * troff/input.c (init_charset_table): Translate 0240 to
12248 an unbreakable space.
12250 * troff/token.h (token::hyphen_indicator): New function.
12251 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12253 * troff/input.c (translate): Allow translation to \%.
12254 * troff/node.c (node::add_char): Handle
12255 TRANSLATE_HYPHEN_INDICATOR.
12256 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12258 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12261 * tty/devlatin1/R.proto: \(hy and - should print as 055.
12263 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
12265 * groff.c (run_commands): If the last command gets a SIGPIPE send
12266 a SIGPIPE to all children than haven't yet terminated. When
12267 command terminates, set pid field to -1.
12269 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
12271 * groff.c (main): Pass an appropriate -filename option to gxditview.
12273 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
12275 * Makefile.bd (install): Remove existing program before copying.
12277 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12278 programs which have Unix counterparts to be installed with
12279 user-specified prefix.
12281 * troff/input.c (exit_troff): Don't check if exit_started.
12282 (exit_request): Don't call exit_troff if exit_started.
12284 * Makefile.bd (install.mm): Rename to install.dwbmm.
12286 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
12288 * driver/input.c (do_file): Add missing break for '#' case.
12290 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
12292 * troff/input.c (input_stack::clear): Clear past any boundaries and
12293 then add the boundaries back.
12295 * troff/input.c (exit_troff): Return immediately if already
12298 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
12300 (pg*end-page): If the text has ended and there are no more
12301 footnotes or keeps, exit.
12303 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12305 * troff/input.c (init_charset_table): Make \(rq transparent by
12308 * macros/tmac.an: Define lq and rq strings.
12310 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12312 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
12314 * troff/env.c (environment::final_break): New function.
12315 (environment::newline): Set prev_line_interrupted to 2 if
12317 * troff/env.h: Declare environment::final_break.
12318 * troff/input.c (exit_troff): Call environment::final_break()
12319 instead of environment::do_break().
12321 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12322 doesn't already exist.
12323 * macros/man.local: New file.
12324 * macros/tmac.an: Load man.local.
12325 * macros/man.ultrix: New file.
12327 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
12329 * troff/input.c (exit_groff): Rename to...
12330 (exit_troff): New function.
12332 * troff/div.c (exit_started, done_end_macro,
12333 seen_last_page_ejector): New global variables.
12334 (began_page_in_end_macro): New static variable.
12335 (exit_flag): Deleted.
12336 (top_level_diversion::top_level_diversion): Initialize
12338 (top_level_diversion): More elaborate test for whether
12339 cleanup_and_exit() should be called.
12340 Set began_page_in_end_macro if the end macro isn't yet finished.
12341 * troff/div.h (top_level_diversion::last_page_count): New data
12343 (top_level_diversion::set_last_page): New function.
12344 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12345 * troff/env.c (do_break): Zero prev_line_interrupted.
12346 * troff/input.c (exit_flag): Delete declaration.
12347 (LAST_PAGE_EJECTOR): New magic cookie.
12348 (token::next): Handle LAST_PAGE_EJECTOR.
12349 (exit_groff): Set exit_started and done_end_macro instead of
12350 exit_flag. Call top_level_diversion::set_last_page. Push a
12351 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
12352 another ejection after setting seen_last_page_ejector.
12354 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
12356 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12358 * macros/tmac.e (TH): Make sure there's room for the initial
12361 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12362 Set FVS in points rather than units.
12364 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
12366 * troff/div.c (top_level_diversion::add_trap): Don't consider the
12367 position of empty slots.
12369 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
12371 * ps/devps/S: Fix height and depth of parenrightex.
12372 * ps/devps/symbol.diff: Regenerate.
12374 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
12376 * tmac.e (u): Do underlining as in -mgs.
12378 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
12380 * tty/tty.c (tty_printer::end_page): If overstriking is
12381 suppressed, still turn overstruck horizontal and vertical lines
12384 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12387 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12389 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
12391 * Version 1.05 released.
12393 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
12395 * tty/tty.c: Instead of keeping an array of glyphs and then
12396 sorting it, keep a ordered linked list of glyphs for each line.
12398 * driver/driver.h: Include stddef.h.
12400 * tty/tty.c (compare_glyph):
12401 * refer/refer.c (rcompare):
12402 * troff/env.c (compare_ranges): Arguments of qsort comparison
12403 function should be const void *.
12405 * troff/number.c (parse_term):
12406 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12409 * refer/label.y (consider_authors): Don't access variables
12410 constructed under a condition outside that condition: put braces
12411 round for statement containing declaration; redeclare use of same
12414 * pic/pic.y (text_expr): Delete production that allows
12415 parenthesised text_expr.
12416 (expr): Allow a conditional_expr to appear in parentheses.
12417 (conditional_expr): Rename to any_expr.
12419 * mm: Install new version 1.01 from jh.
12421 * lib/font.c (font::get_width): Cache scaled widths.
12422 (font::font): Initialize widths_cache.
12423 (font::~font): Destroy widths_cache.
12424 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12426 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
12428 * c++test.c, c++test.ref: New files.
12429 * Makefile: Check that the C++ compiler works.
12431 * ps/tmac.pspic (PSPIC): Do a break.
12433 * ps/tmac.ps: Move definition of PSPIC into...
12434 * ps/tmac.pspic: New file.
12435 (PSPIC): Draw box around picture, but make it invisible to grops.
12436 * ps/tmac.ps: Load tmac.pspic.
12437 * ps/Makefile: Install tmac.pspic.
12439 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
12441 * lib/font.c (scale_round): If n is negative,
12442 subtract .5 before truncating floating point result.
12444 * lib/fontfile.c: Include <errno.h>.
12446 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
12448 * driver/input.c (get_char): Inline. Don't update current_lineno.
12449 Change callers to up date current_lineno if necessary.
12450 Use get_char() instead of getc(current_file).
12452 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
12454 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12456 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
12458 * tty/tty.c (tmac.tty): Define \(rg as (R).
12460 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
12462 * lib/lib.h: New define a_delete.
12463 * Use a_delete instead of delete when deleting an array of objects
12464 without destructors.
12466 * lib/lib.h: Rename adelete to ad_delete.
12467 * Change uses of adelete.
12469 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
12471 * eqn/eqn.y: Include lib.h.
12473 * troff/node.c (grow_font_table): Delete old_font_table.
12475 * mm: Install new version from jh.
12477 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
12479 * tbl/table.h (format_type): Make global instead of local to class
12480 entry_format. Prefix enumerators with FORMAT_.
12481 * tbl/table.c, tbl/main.c: Corresponding changes.
12482 * refer/token.h (token_type): Make global. Prefix enumerators
12484 * refer/token.[ch]: Corresponding changes.
12485 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12487 * troff/div.c (node::set_vertical_size): Don't name argument.
12489 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
12491 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12492 * lib/lib.h: Define adelete accordingly.
12493 * pic/object.c (graphic_object::graphic_object):
12494 * tbl/main.c (format::~format):
12495 * tbl/table.c (table::~table):
12496 * refer/ref.c (reference::~reference, reference::merge,
12497 reference::insert_field, reference::delete_field): Use adelete.
12499 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12501 * tbl/table.h: Corresponding changes.
12503 * common.c (common_output::dashed_arc, common_output::dotted_arc):
12504 Ensure total_angle is positive.
12506 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
12508 * refer/ref.c (reference::merge, reference::insert_field,
12509 reference::delete_field): Avoid delete[0].
12511 * refer/token.c (init_special_chars): Move calls to cmupper
12512 outside calls to init_two_char_letter to work around bug in gcc
12515 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
12517 * lib/new.c (operator new): Use __builtin_new for g++.
12519 * pic/object.c (graphic_object::~graphic_object): Don't use
12522 * pic/object.c (output::compute_scale): Initialize max_width and
12525 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
12527 * troff/input.c (write_request): Call fflush.
12529 * troff/node.h (class composite_node): Move declaration to node.c
12530 * troff/input.c (charinfo_to_node): Rename to ...
12531 (charinfo_to_node_list): Return node list rather than composite
12533 * troff/node.c (make_composite_node): New function.
12534 (make_node, add_char): Call make_composite_node instead of
12536 (class composite_node): Add a tfont * member. Delete font_size
12538 (composite_node::composite_node, composite_node::copy,
12539 composite_node::size): Corresponding changes.
12540 (composite_node::tprint): Provide constant spacing, emboldening
12541 and track kerning as specified in tfont.
12542 (composite_node::width): Change width calculation accordingly.
12543 * troff/env.h (environment::composite): New member.
12544 (environment::is_composite, environment::set_composite): New
12546 * troff/env.c (environment::environment): Initialize composite.
12547 * troff/input.c (charinfo_to_node): Call
12548 environment::set_composite.
12549 * troff/node.c (make_composite_node, make_glyph_node): Use the
12550 plain version of the tfont if the environment is composite.
12552 * troff/node.c (font_info::get_space_width): Additional argument
12553 giving space_size. Handle constant space correctly. Scale by
12554 space_size unless constant spaced.
12555 (env_sentence_space_width): New function.
12556 * troff/node.h: Declare it.
12557 * troff/env.h (environment::get_space_size,
12558 environment::get_sentence_space_size,
12559 environment::get_narrow_space_width,
12560 environment::get_half_narrow_space_width): Make inline.
12561 (environment::get_space_width): Make inline. Just call
12563 * troff/env.c: Delete definitions for funtions made inline.
12564 (environment::space_newline, environment::space): Use
12565 env_sentence_space_width(). Don't scale by space_size.
12566 * troff/node.h: Move declarations of env*space_width() functions
12569 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
12571 * macros/tmac.s (PS): Don't try to set negative indent.
12573 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
12575 * pic/pic.y: Fix min function.
12577 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
12579 * man/mdate.sh: Clear LANGUAGE.
12581 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
12583 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12584 * pic/lex.c: New COMMAND keyword.
12585 * pic/pic.y (print_args, print_arg): New rules.
12586 (placeless_element): Use print_args for PRINT.
12587 New COMMAND element.
12589 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
12591 * troff/input.c (terminal): Handle missing argument correctly.
12593 * pic/pic.y (text_expr): New rule.
12595 * pic/pic.y: Implement := operator.
12597 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
12599 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12602 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
12604 * ps/devps/dingbatsrmap: Include this in the distribution.
12606 * macros/tmac.doc: Replace with new version from 2nd Networking
12607 Release. Fix loading of doc-* files.
12608 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12609 * macros/tmac.doc.old: New file. Apply fixes that had been
12610 applied to old tmac.doc.
12611 * macros/tmac.andoc: Check that we're running under groff.
12612 * macros/Makefile: Rework.
12614 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
12616 * tbl/table.h (format_type):
12617 * refer/token.h (token_type): If NESTED_TYPES is defined, use
12618 typedef to make these types visible at file scope.
12619 * Makefile: Add NESTED_TYPES configuration option.
12621 * troff/div.c (mark): At the top level use the value of
12622 nl_reg_contents rather than the current vertical position.
12624 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
12626 * tty/tty.c: Implement \D for horizontal or vertical lines.
12627 (tty_printer::set_char): Use vec_used+2 as serial number.
12628 Don't allow size of vector to exceed USHRT_MAX-2.
12629 Split off part into...
12630 (tty_printer::add_char): New function.
12631 (tty_printer::draw): New function.
12632 (compare_glyph): Handle equal serial numbers.
12633 (tty_printer::end_page): Handle overstruck characters from \D.
12634 (main, usage): Implement -d option.
12636 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
12638 * tbl/main.c (process_format):
12639 * eqn/text.c (split_text):
12640 * troff/input.c (token::next): Use inner block for declarations
12641 with initializers in switch statement.
12643 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
12645 * pic/common.c (common_output::dash_line): Cope with zero-length
12648 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
12650 * Version 1.04 released.
12652 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
12654 * macros/tmac.an (TH): Define a macro an-init to define variables
12655 based on command line arguments.
12656 (an-header): Call it.
12658 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
12660 * Makefile (install.mm): Rename to install.dwbmm.
12662 * Makefile: Integrate mm.
12663 * mm: New directory.
12665 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
12667 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
12670 * pic/troff.c (troff_output::simple_spline,
12671 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
12672 shadowing parameter.
12674 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
12676 * lib/ptable.h: Add explicit casts when converting from unsigned
12679 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
12680 * dvi/devdvi/Makefile: Install SA, SB.
12682 * refer/indxbib.c: Add declaration of mktemp.
12684 * refer/lookbib.c: Add declaration of isatty.
12686 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
12688 * pic/lex.c (interpolate_macro_with_args): While collecting
12689 arguments, keep track of whether we're in a string.
12691 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
12693 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
12694 down with \v, so as to avoid problems with top of page trap
12695 setting no space mode.
12697 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
12699 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
12701 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
12703 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
12704 Improve error message.
12706 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
12708 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
12711 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
12713 * groff.c (possible_command::execp): Always use _exit() after a
12716 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
12717 NO_SYS_WAIT_H configuration options.
12718 * groff.c: Use these options. Use POSIX-style macros to extract
12719 fields from the status returned by wait().
12721 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
12723 * tbl/table.c (table::compute_separation_factor): Allow the
12724 separation factor to drop to 0.
12726 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
12728 * refer/search.c: Include <errno.h>.
12730 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
12732 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
12734 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
12737 * pic/lex.c (input_stack::bol): Move definition out of class body.
12739 * pic/main.c: On MSDOS munge argv[0].
12741 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
12743 * lib/ptable.c (hash_string): Use unsigned long rather than
12745 (next_ptable_size): Use unsigned rather than int. Give an error
12746 message if we've hit the largest table size.
12747 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
12750 * pic/object.h (object_spec): Make flags unsigned long. Declare
12751 flags as const unisgned long rather than as enums.
12753 * pic/output.c: Deleted.
12755 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
12757 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
12758 Add additional argument.
12759 (line_entry::note_double_vrule_on_{left,right}): Set value of
12760 douvle_vrule_on_{right,left} flag according to argument.
12761 (simple_line_entry::simple_print,
12762 simple_line_entry::double_line_print): If adjacent to double vrule
12763 on a corner extend rather than shorten the rule by half the double
12766 * troff/number.c (parse_term): In checking for overflow, handle the
12767 case where the current horizontal position is negative.
12769 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
12771 * pic/object.c (draw_arrow): Check for object having zero length.
12773 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
12775 * eqn/main.c (do_file): Split off inline equation handling into...
12776 (inline_equation): New function. Search for starting delimiter
12778 (delim_search): New function. Don't recognize a delimiter that
12779 occurs in the name of an escape sequence, number register, string
12782 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
12784 * eqn/delim.c (delim_box::compute_metrics): Don't call
12785 define_extensible_string if left is 0.
12786 (delim_box::output): Don't print the left delimiter if left is 0.
12787 (delim_box::debug_print): Check for left == 0 before calling printf.
12789 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
12791 * troff/Makefile (majorminor.c): Include only digits in
12794 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
12796 * refer/dirnamemax.c: new file.
12797 * refer/genlimits.c: Deleted.
12798 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
12799 Don't check path length.
12800 * refer/Makefile: Add dir_name_max.o; delete genlimits.
12801 * Makefile: Add PATHCONF_MISSING option.
12803 * refer/indxbib.c (get_cwd): New function.
12804 (main): Use get_cwd().
12805 * lib/getcwd.c: New file.
12806 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
12807 GETCWD in SUBFLAGS.
12808 * lib/Makefile: Compile getcwd.o.
12810 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
12813 * refer/indxbib.c (main): Check success of mktemp.
12815 * lib/tmpfile.c: New file.
12816 * lib/Makefile: Add tmpfile.c.
12817 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
12818 * ps/ps.h: Delete declaration of mktemp().
12819 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
12820 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
12821 * driver/driver.h: No need now to include errno.h.
12823 * everywhere: Set errno to 0 before calling fopen().
12825 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
12826 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
12827 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
12829 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
12831 * troff/env.h (translate_space_to_dummy): Declare it.
12832 * troff/env.c (environment::space_newline, environment::space):
12833 If translate_space_to_dummy is set then make the width of spaces 0.
12834 * troff/input.c (translate): If the second character of a
12835 translation is a space, translate to unbreakable space. If the
12836 first character is a space, set or clear translate_space_to_dummy
12837 according to whether the second character is \&. Weird!
12839 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
12841 * groff.c (run_commands): Don't use non-zero exit code because a
12842 command gets SIGPIPE.
12844 * groff.c, groff.sh: Use -mXps with -TXps.
12846 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
12847 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
12848 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
12849 (ps_printer::special): New specials invis and endinvis.
12850 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
12851 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
12852 (ps_printer::end_page): Check that invis_count == 0.
12853 (ps_printer::invis_count): New member.
12854 (ps_printer::ps_printer): Initialize invis_count to 0.
12856 * troff/env.c (environment::hyphenate_line): Hyphenation
12857 indicator at beginning of word inhibits splitting after -, \(em
12860 * pic/pic.y (element): Allow another element to follow } without
12861 any intervening separator.
12863 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
12865 * pic/lex.c (get_delimited): Allow tabs before delimiter.
12867 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
12869 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
12870 declaration of wait() in header files.
12871 * Makefile: Get rid of -DHAVE_UNION_WAIT.
12873 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
12875 * lib/lib.h: Declare return type of strerror as char *.
12877 * man/Makefile: Add g flag to sed substitutions.
12878 * Makefile (shgroff, bindist): Likewise.
12880 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
12882 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
12883 * ps/devps/prologue (PBEGIN): Define showpage after pushing
12886 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
12888 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
12891 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
12893 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
12896 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
12898 * troff/input.c (define_number_reg): If currently undefined,
12899 don't define it if the argument is an invalid expression.
12901 * Makefile: Ignore return value of `if' commands without `else'
12904 * Makefile: Split up CPPDEFINES into a series of separate
12905 configuration options.
12907 * troff/input.c (init_registers): Use time_t instead of long
12908 unless LONG_FOR_TIME_T is defined. Use returned result rather
12909 than passing pointer.
12910 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
12912 * lib/Makefile (fontpath.h): Use gendef.
12914 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
12916 * troff/input.c (input_iterator::shift): Delete argument name.
12917 * troff/node.c (suppress_output_file::really_begin_page,
12918 suppress_output_file::really_transparent_char, node::ascii_print,
12919 node::tprint): Delete names of unused arguments.
12921 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
12923 * refer/label.y (string): Pass $4 to command_error.
12925 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
12927 * Version 1.03 released.
12929 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
12931 * Makefile: Pass definition of SHELL in SUBFLAGS.
12933 * gendef: New file.
12934 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
12935 ps/Makefile: Use gendef to construct header files that are
12936 constructed from the Makefile.
12938 * macros/Makefile: make all should build stripped version of tmac.e.
12940 * refer/Makefile (clean): Remove y.output.
12942 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
12944 * ps/pfbtops.c (main): Add -v option which prints out a version
12946 * ps/Makefile (pfbtops): Link with libgroff.a.
12948 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
12950 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
12951 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
12953 * refer/lkbib.c (main): Always terminate reference with blank
12955 * refer/lookbib.c (main): Likewise.
12957 * refer/linear.c (file_buffer::load): Check that the file is not a
12960 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
12961 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
12962 Delete second inclusion of <sys/param.h>.
12964 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
12966 * troff/token.h (token::special): Deleted.
12968 * tbl/main.c (process_format): Rework so that opt->tab_char is
12969 recognized only when appropriate.
12971 * ps/Makefile (clean): Remove pfbtops.
12973 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
12975 * lib/font.c (text_file::next): Don't return if we have got a
12978 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
12980 * refer/refer.c (store_reference): Get hash code from old_table[i]
12981 when rehashing the table.
12983 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
12985 * eqn/box.c (box::top_level): Save size and prev size using \R and
12986 restore it afterwards. Set the size to the size at the beginning
12988 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
12989 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
12991 * refer/Makefile (limits.h): Use ./genlimits.
12993 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
12995 * refer/index.c: Delete declarations of stat() and fstat().
12997 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
12999 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13001 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
13003 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13005 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
13007 * troff/input.c (token::get_char): Handle \e.
13009 * refer/linear.c: Delete declarations of fstat() and stat().
13011 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
13013 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13014 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13016 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
13018 * troff/input.c (do_define_macro): Improve error handling for end
13019 of file while defining macro.
13021 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
13023 * eqn/box.h: Fix declaration of set_gsize.
13024 * eqn/box.c (set_gsize): Make argument const char *.
13025 (gsize): Declare as char *.
13026 * eqn/main.c (main): Don't convert gsize to int.
13027 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13029 * Version 1.02 released.
13031 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
13033 * macros/tmac.andoc: New file.
13034 * macros/Makefile: Install tmac.andoc.
13036 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13037 operator new and delete on OP_DELETE_BROKEN not being defined.
13038 * Makefile: Mention OP_DELETE_BROKEN.
13040 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
13042 * Makefile (bindist): Pass SUBFLAGS.
13044 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
13046 * Makefile, groff.c: Pass definitions to groff.c via device.h.
13048 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13051 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13053 * ps/ps.h, ps/psrm.c: Make comment_table and
13054 header_comment_table local to resource_manager::process_file.
13056 * groff.sh: With -TXps pass -printCommand option to gxditview.
13058 * groff.c (possible_command::print): Implement using
13059 append_arg_to_string.
13061 * xditview: Merge in new implementation with own ChangeLog.
13063 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
13065 * groff.c (main): Implement PRINT_OPTION.
13066 (append_arg_to_string): New command.
13067 (device_table): Set PRINT_OPTION flag for Xps.
13069 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
13071 * troff/groff.h: Rename to troff.h.
13073 * pic/lex.c (lookup_keyword, docmp): New functions.
13074 (get_token): Use new lookup_keyword.
13075 Don't include key.h.
13076 * pic/key.[ch], pic/pic.gperf: Deleted.
13077 * pic/Makefile: Remove gperf stuff.
13079 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13081 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13083 * troff/Makefile, troff/node.c: Move definition of
13084 STORE_WIDTH into node.c.
13086 * etc/grog.pl, etc/grog.sh: Support -mdoc.
13088 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
13090 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13091 dvi/devdvi/texb.map: Add lq and rq.
13092 dvi/devdvi: Regenerate fonts.
13093 * ps/devps/textmap: Add lq and rq.
13094 * ps/devps: Regenerate fonts.
13095 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13096 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13098 * pic/object.c (position_rectangle): When checking radius
13099 cope with possiblity that width or height is negative.
13100 (box_object::box_object): Have separate xrad and yrad with
13101 signs matching signs of dim components.
13102 (box_object::{north,south}_{east,west}): Use xrad and yrad.
13103 (box_object::print): With rounded boxes use absolute values
13104 for dim and rad arguments.
13106 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13109 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13111 * various files: Add explicit destructors to keep Saber CC +d
13114 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
13116 * eqn/box.c (box::top_level): Restore fonts correctly after
13117 font changes in line containing inline equation. Also
13118 restore previous font as well as current font.
13119 * eqn/pbox.h: Define necessary string and register names.
13121 * troff/input.c (token::next): Case 'R' calls do_register.
13122 (do_register): New function.
13124 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
13126 * groff.c, groff.sh: Support Xps device. Allow each device
13127 to have a pseudo_name and a real_name.
13129 * groff.c (run_commands): Don't print `Broken pipe' messages.
13131 * ps/pfbtops.c: New file.
13132 * ps/Makefile: Add pfbtops.
13134 * troff/number.c (parse_term): Improved error message.
13136 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
13138 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13140 * Makefile: Integrate refer.
13141 * refer: New directory.
13142 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13143 man/lkbib.man: New files.
13144 * man/Makefile: Support refer man pages.
13146 * lib/lib.h: Declare is_prime.
13147 * lib/prime.c: New file.
13149 * troff/input.c (macro_source): New function.
13150 (init_input_requests): Bind "mso" to macro_source.
13152 * troff/env.c (environment::possibly_break_line): Maintain
13153 pointer to pointer to node to be split in ndp so as to avoid
13154 using address of freed node.
13156 * troff/env.c (environment::hyphenate_line): Maintain pointer to
13157 pointer to first node to be hyphenated in startp so as to
13158 avoid using address of freed node.
13160 * troff/env.c (class trie, class hyphen_trie): Make the
13161 elements of the trie be of type char not unsigned char.
13162 Declare arguments to be const char* instead of unsigned char *.
13164 * troff/env.c (hyphenate): Initialize hbuf[0].
13166 * troff/input.c (set_string): Declare p to be char * and cast
13167 *p to unsigned char when necessary.
13169 * troff/input.c (do_define_macro): Declare s to be const
13170 char*. Cast element to unisgned char when necessary, Declare
13171 d to be an int. Handle EOF better.
13173 * troff/Makefile, troff/input.c: Different scheme for passing
13174 definitions of MACROPATH, HYPHENFILE and DEVICE.
13176 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
13178 * tty/devascii/R.proto: Delete entry for em.
13179 * tty/devlatin1/R.proto: Likewise.
13181 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
13183 * troff/input.c (translate): Stop when we get a space. Treat eof
13186 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13188 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
13190 * tbl/main.c (process_format): A font name following a `f'
13191 modifier that starts with a digit can be only one character long.
13192 Also deal with EOF on the second character of the font name.
13194 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
13196 * troff/input.c (token::next): Turn \~ into an
13197 unbreakable_space_node.
13198 * troff/node.c (unbreakable_space_node): New class.
13199 * troff/node.h: Declare it.
13201 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
13203 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
13204 it's >= 0, before outputting it as a single byte.
13206 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
13208 * lib/font.c: Make font_char_metric::code an int.
13209 (font::get_code): Change return type to int.
13210 (font::load): Allow code to be arbitrary integer.
13211 * lib/font.h (font::get_code): Change return type to int.
13212 (font::number_to_index): Change argument type to int.
13213 * troff/input.c (token::next): In case 'N', allow any value.
13214 Store value in token::val.
13215 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13216 (token::get_char, token::add_to_node_list, token::process): Get
13218 (charinfo::set_number): Change argument to int.
13219 (charinfo::get_number): Require that NUMBERED flag be set.
13220 (get_charinfo_by_number): Store numbered characters not between 0
13221 and 255 in a dictionary.
13222 * troff/charinfo.h (get_charinfo_by_number): Change argument type
13224 (charinfo::number): Change type to int.
13225 (charinfo::set_number): Change type of set_number to int.
13226 * troff/node.c (troff_output_file::put_char_width,
13227 troff_output_file::put_char): Test whether character is numbered
13228 using charinfo::numbered().
13229 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13231 * lib/nametoindex.c: New implementation to cope with arbitrary
13234 * troff/input.c (token::operator==): Test val for
13235 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13238 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13239 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
13241 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
13243 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
13246 * all Makefiles: rm targets of cp and >.
13248 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13251 * eqn/lex.c (def_table): Add dollar.
13253 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
13255 * troff/input.c (do_width): Push back newline before closing delim
13258 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
13260 * groff.c (possible_command::prepend_arg): New function.
13261 (main): Prepend device -m option.
13262 * groff.sh: Put device -m options before command-line options.
13264 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
13266 * macros/tmac.an (IP): Quote argument to TP.
13268 * ps/ps.c (main): New option -b, which sets...
13269 (broken_flags): New variable.
13270 (ps_printer::~ps_printer): Incorporate the setup section in the
13271 prolog if (broken_flags & NO_SETUP_SECTION).
13272 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13273 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13274 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13275 ps_printer::print_needed_font_comment,
13276 ps_printer::print_supplied_font_comment,
13277 ps_printer::print_include_font_comments,
13278 ps_printer::lookup_doc_font, ps_printer::download_fonts,
13279 ps_printer::read_download_file, read_document_fonts, add_font,
13280 skip_line, parse_fonts_arg, document_font::document_font,
13281 document_font::~document_font, document_font::download,
13282 ps_output::include_file): Deleted.
13283 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13284 rather than %!PS-Adobe-2.0. Make calls to
13285 resource_manager::need_font for each font that we used. Replace
13286 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13287 print_supplied_font_comment, print_needed_font_comment by call to
13288 resource_manager::print_header_comments. Output %%Orientation
13289 comment. Output %%Requirements: numcopies comment if ncopies > 1.
13290 Don't output the prolog directly. Instead call
13291 resource_manager::output_prolog. Only define #copies when ncopies
13292 > 1. Delete calls to print_include_font_comments and
13293 download_fonts. Add call to resource_manager::document_setup.
13294 (ps_printer::do_file): Call resource_manager::import_file instead
13295 of including it ourselves.
13296 (ps_printer::do_import): Likewise. Also don't call
13297 merge_import_fonts. Push userdict on the dictionary stack before
13298 and pop it afterwards.
13299 Move declaration of ps_output into ps.h.
13300 * ps/psrm.c: New file implementing resource_manager class.
13301 * ps/ps.h: New file declaring ps_output and resource_manager
13303 * ps/devps/zapfdr.ps:
13304 * ps/devps/symbolsl.ps:
13305 * ps/devps/prologue: Use 3.0 conventions.
13306 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13307 Add default definition of BROKEN_SPOOLER_FLAGS.
13308 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
13309 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13311 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
13313 * etc/grog.pl: New file.
13314 * Makefile (GROG): New variable.
13315 Add GROG to SUBFLAGS.
13316 * etc/Makefile (GROG): New variable.
13317 (install.nobin): Install $(GROG) rather than grog.sh.
13319 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
13321 * eqn/special.c (special_box::compute_metrics): Make the input and
13322 output strings the same. Get the new height and depth from the
13323 predefined height and depth registers. Also make subscript kern
13324 and skew available.
13325 (special_box::compute_subscript_kern, special_box::compute_skew):
13328 * eqn/box.c (pointer_box::compute_skew,
13329 simple_box::compute_metrics, box::top_level)
13330 * eqn/text.c (prime_box::compute_metrics,
13331 prime_box::comput_subscript_kern)
13332 * eqn/limit.c (limit_box::compute_metrics):
13333 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13334 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13335 negative numbers in `nr' requests with a leading 0.
13337 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
13339 * eqn/special.c: New file.
13340 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
13341 Add new rule for simple.
13342 * eqn/lex.c (token_table): Add SPECIAL.
13343 * eqn/box.h: Declare make_special_box.
13344 * eqn/Makefile: Add special.[co].
13346 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
13348 * ps/devps/prologue: Possibly set packing to true while defining.
13349 Create grops dictionary here. Initialize local variables before
13350 defining procedures.
13351 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13352 the dictionary stack. Set strokeadjust and overprint to false if
13353 the relevant operators are defined.
13354 (PEND): New procedure.
13355 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13356 prologue. Do everything else in the setup section.
13357 (ps_printer::do_import): Just call PBEGIN and PEND around the
13358 picture. Also push userdict before, and pop it afterwards.
13360 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
13362 * troff/node.c (bracket_node::tprint): Brackets were being printed
13365 * macros/tmac.an (SH, SS): Set fill mode.
13367 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
13369 * troff/div.c (top_level_diversion::begin_page): Set
13370 high_water_mark to 0.
13372 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
13374 * man/mdate.sh: New file.
13375 * man/mdate.c: Deleted.
13376 * man/Makefile: Use mdate.sh instead of mdate.
13379 * eqn/lex.c (do_gsize): Supply missing argument to error message.
13381 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
13383 * man/mdate.c: New file.
13384 * man/*.man: Replace modification date by @MDATE@.
13385 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13386 (mdate): New target.
13388 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13389 Remove illegal input characters.
13391 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
13393 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13395 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
13397 * troff/div.c (begin_page): Change behaviour when
13398 !first_page_begun and !break_flag.
13400 * troff/input.c (do_name_test): Return 0 if argument is empty.
13402 * troff/input.c (read_long_escape_name): Require closing ] to be
13403 at same input level as opening [.
13405 * troff/input.c (read_increment_and_escape_name): New function.
13406 (get_copy, process_input_stack): Use this for \n.
13408 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
13410 * troff/div.c (top_level_diversion::begin_page): Ignore the
13411 current value of page_number if !first_page_begun.
13413 * groff.c (main): Fix declaration of buf.
13415 * troff/input.c (do_name_test): New function.
13416 (token::next): Implement \A.
13417 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13418 (token::description, token::add_to_node_list, token::process):
13419 Handle TOKEN_ESCAPE.
13420 * troff/token.h: New token TOKEN_ESCAPE.
13422 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
13424 * pic/main.c (do_picture): Allow space before and after filename
13425 following `<'. Check that the filename is not empty.
13427 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
13429 * Version 1.01 released.
13431 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13433 * dvi/tmac.dvi: ftr HR to H.
13435 * macros/tmac.e: Round up computation of $r.
13437 * xditview/tmac.X: Don't give up completely in compatibility mode.
13438 Use \n(.s instead of \n[.s].
13440 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13441 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13442 Add u to factors inside \s[...]. Rename frac to dvi-frac.
13443 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13444 short names in the char definitions.
13446 * ps/tmac.ps: Don't give up completely in compatibility mode.
13447 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13448 quote in front of \n(.s. Add u to factors inside \s[...].
13450 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
13452 * tty/tmac.tty: Call the nroff request.
13454 * macros/tmac.e ((x, )x): Better definitions that work properly
13456 (@0, @1): Helper macros for (x.
13458 * macros/tmac.e ($s, hl): Use \l rather than \D.
13460 * tty/tmac.tty: Make it work better in compatibility mode.
13461 (pchar): Rename to tty-char.
13463 * macros/tmac.e (@E): New macro.
13464 (r, i, b, rb, bi): Use @E.
13466 * macros/tmac.e (@F): Don't use (;...) syntax.
13468 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
13469 it was modified for groff.
13471 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13473 * macros/tmac.e (<., .>): Removed.
13474 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13476 * macros/tmac.e: Remove check that groff is being used.
13478 * macros/tmac.e (@C): Change families only if using groff; turn
13479 compatibility mode off while changing familes. Save compatibility
13480 mode before changing families and restore it afterwards.
13482 * macros/tmac.e (@h): Remove test for offset + line length.
13484 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
13485 (lo, th, ac): Define to call @S instead of using als.
13487 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13488 the ratio of the vertical spacing to the point size in units
13489 expressed as a percentage. Use these instead of $10r and $10R,
13490 Delete $10r and $10R.
13492 * lib/font.c (font::load): In default computation of space_width,
13493 divide by sizescale. Use scale_round.
13495 * macros/tmac.an (TP): Don't call `nf'.
13496 (an-do-tag): Don't call `fi'.
13498 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
13500 * troff/input.c (process_input_stack): Handle the case where
13501 spaces at the beginning of an input line are followed by a
13504 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
13506 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13507 * groff.sh: Use pic -x with the dvi device.
13509 * dvi/devdvi/FontMakefile (H): Don't use -s.
13511 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13512 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13513 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13516 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
13518 * ps/psfig.diff: New file.
13519 * ps/tmac.psfig: New file.
13521 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
13523 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13524 (]-): Don't call ref*do-tl.
13526 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13528 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13529 (fn@do-FS): Rename to fn*do-FS.
13531 * troff/input.c (transparent_translate): New function.
13532 (process_input_stack): Apply transparent_translate before calling
13533 diversion::transparent_output(unsigned char).
13535 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
13537 * troff/input.c (do_define_macro): Define the macro before calling
13540 * xditview/Makefile: Add DEVICES variable. Change install target
13543 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
13545 * groff.c (run_commands): Handle the possibility that there are
13546 child processes other than those forked by us.
13548 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
13550 * lib/string.c (string::append): New function.
13551 * lib/stringclass.h: Declare it.
13553 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
13555 * eqn/main.c (main): New option -N which sets
13556 no_newline_in_delim_flag.
13557 (do_file): If no_newline_in_delim_flag is set don't allow newlines
13559 * groff.c (main): Pass -N on to eqn.
13560 (help, synopsis): Mention -N.
13561 * groff.sh: Implement -N.
13563 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
13565 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13566 (]-): Call ref*do-tl if ref*need-tl is non-zero.
13567 (XP): Allow as initializer.
13569 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
13571 * troff/env.c (environment::wrap_up_field): If field_spaces are
13572 non-zero and we have a current_tab, subtract padding from
13573 tab_distance. If this makes tab_distance <= 0, use the next tab
13574 stop instead. If there isn't any next tab or it's a left tab,
13575 wrap up the current tab.
13576 (environment::start_field): Initialize tab_precedes_field.
13577 (environment::wrap_up_tab): If there's a current field, update
13578 pre_field_width, field_distance and tab_precedes_field.
13579 * troff/env.h (environment::tab_precedes_field): New member.
13581 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
13583 * ps/ps.c (ps_printer::do_file): New function.
13584 (ps_printer::special): Bind to `file' special.
13585 (ps_printer::do_exec): Set ndefined_styles to 0.
13587 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
13589 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13590 Avoid stripping first character from the start of unrecognized
13591 escapes. Use lex_error instead of error to report errors.
13592 * eqn/lex.c (get_token): Rework handling of escapes.
13593 (lex_error): Move declaration into...
13596 * xditview/xditview.c (main): Make -page option work.
13598 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13600 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
13602 * macros/tmac.s (B2): Correct size of box.
13604 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
13606 * macros/tmac.s (B2): Postpone drawing the box until in the
13607 top-level diversion.
13609 * tty/tmac.tty: Add font translations for C, CR, CW.
13611 * groff.c (synopsis, help): Document -i.
13612 * groff.sh: Implement -i.
13614 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13615 Simplify the construction of SN.
13617 * troff/number.c (parse_term): Give `|' a higher precedence.
13618 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13621 * macros/tmac.s (B2): Use par@finish instead of par@reset.
13623 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
13625 * lib/string.c (string::move): New function.
13626 * lib/stringclass.h: Declare it.
13628 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
13630 * troff/env.c (distribute_space): Add optional argument
13632 (environment::wrap_up_field): Call distribute_space with
13633 `force_forward' argument of 1.
13635 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
13637 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13638 Inline it. Move reallocation into...
13639 (string::grow1): New function.
13640 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13641 dependencies to include library header files.
13642 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13644 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
13646 * macros/tmac.s (@NH): Use the same number registers than -ms does
13647 for the heading level counters. Use the same string that -ms does
13648 for the number for this heading.
13650 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
13652 * lib/new.c (operator new): Cast result of malloc to char *.
13654 * troff/input.c (spring_trap, lookup_request): Add assert that nm
13657 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
13659 * groff.c (main): Support -i.
13661 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
13663 * pic/pic.h: Include <osfcn.h>.
13665 * ps/ps.c: Add declaration of mktemp.
13667 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
13668 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
13669 argument as union wait *.
13670 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
13671 argument to union wait *.
13673 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
13675 * tty/tmac.tty: Add definition of \(co.
13677 * pic/object.c (make_arc): Only increase radius when radius
13678 strictly less than d.
13679 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
13682 * troff/env.c (environment::environment(symbol),
13683 environment::environment(const environment *)): Initialize
13686 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
13688 * tbl/main.c (main): Add exit(0).
13690 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
13692 * pic/main.c (main):
13693 * eqn/main.c (main):
13694 * tbl/main.c (main):
13695 * etc/soelim.c (main):
13696 * driver/printer.c (printer::~printer):
13697 * troff/node.c (real_output_file::~real_output_file,
13698 real_output_file::flush): Check for errors on stdout.
13700 * most files: Add 1991 to copyright notice.
13702 * macros/tmac.s: Don't test \n(.x and \n(.y.
13704 * troff/input.c (token::next): Rename `escape_char' label to
13705 `handle_escape_char' and `normal_char' label to
13706 `handle_normal_char'.
13708 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
13710 * groff.c (main, synopsis, help): Support -a option.
13711 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
13712 to trflags while parsing options.
13714 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
13716 * troff/number.c (parse_term): With `m', `M' and `n' scale
13717 indicators, convert scale factor to hunits before scaling.
13719 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
13721 * lib/font.c (scale_round): Better test for overflow when n is
13724 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
13726 * tbl/main.c (process_format): Add second argument of type
13727 options*. Change callers. Allow opt->tab_char as well as '\t'
13728 between format items.
13730 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
13732 * macros/tmac.an (PD): With no arguments, make sure register PD is
13734 (TH): Call PD with no argument, instead of setting register PD
13737 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
13739 * Version 1.00 released.
13741 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
13743 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
13745 * dvi/devdvi/DESC: Mount CW instead of CR.
13747 * dvi/tmac.dvi: Add definition of \(tm.
13749 * dvi/devdvi/texsy.map: Add lh, and rh.
13750 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
13751 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
13753 * dvi/devdvi/FontMakefile: Generate H from cmss10.
13754 * dvi/devdvi/Makefile: Install H.
13755 * dvi/devdvi/H: New file.
13757 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
13759 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
13762 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
13764 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
13766 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
13768 * macros/tmac.s (@EN): Handle the case where the equation is empty
13769 but the label is not.
13771 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
13773 * troff/groff.h: New warning category WARN_SPACE.
13774 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
13775 WARN_SPACE to warning_table.
13776 (interpolate_macro): Give a warning of type WARN_SPACE if the name
13777 is longer than two characters and is not defined, but the first
13778 two characters do make a defined name.
13780 * PROBLEMS: New file.
13782 * CHANGES: New file.
13783 * README-0.6, README-1.00: Deleted.
13785 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
13786 * xditview/devX75/Makefile: Make devX75-12.
13787 * xditview/devX100/Makefile: Make devX100-12.
13789 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
13790 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
13792 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
13794 * README-0.7: Rename to README-1.00.
13796 * macros/tmac.pic: New file.
13797 * macros/Makefile (install.nobin): Install tmac.pic.
13799 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
13801 * troff/env.c (hyphen_word): Correct the test for whether the
13802 token is a hyphen. Reset npos to 0.
13804 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
13806 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
13808 * macros/tmac.s (ds*common-end): Call par*reset.
13810 (par@reset-indent): Deleted.
13812 * macros/tmac.s (@IP): Divert the label.
13814 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
13816 * xditview/draw.c (setGC): Use a line width of .1m rather than
13817 .04m by default; round rather than truncate value.
13819 * tbl/table.c (class empty_entry): New class.
13820 (empty_entry::empty_entry, empty_entry::line_type): New functions.
13821 (table::add_entry): Represent empty entries by objects of type
13823 (table_entry::line_type): Return -1.
13824 (table::determine_row_type): Ignore entries with line_type 0.
13825 Treat type -1 as non-lines.
13827 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
13829 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
13830 macros/tmac.s: Rename \(-d to \(Sd.
13832 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
13834 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
13835 * xditview/libXdvi/DviChar.c: Likewise.
13836 * dvi/devdvi/texsy.map: Add `<<', `>>'.
13838 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
13840 * troff/div.c (top_level_diversion::begin_page): Call
13841 init_output() if the_output is 0.
13843 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
13845 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
13847 (get_copy): Turn \E into ESCAPE_E.
13848 (token::process, asciify): Handle ESCAPE_E.
13850 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
13852 (DS): Implement `.DS R'.
13854 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
13856 * macros/tmac.s (FS): New macro.
13858 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
13860 * macros/tmac.s (cov*tl-init): Remove after first execution
13861 instead of aliasing to @nop. Call top of page macro explicitly
13862 instead of setting trap; call @init first. Set pg@top as top of
13864 (cov*auto-init): Deleted. Set cov*tl-init instead of
13865 cov*auto-init as top of page trap.
13866 (TL, LP): Do a break instead of calling cov*tl-init.
13867 (cov*print): With RP format but no TL, alias FS and FE to @FS and
13868 @FE; in this case also give a warning and always start another
13869 page. No need to set pg@top here.
13870 (cov*tl-init): Rename to cov*first-page-init.
13872 * macros/tmac.s (RP): Do `.pn 0'.
13873 (cov*tl-init): With RP format don't do `.pn 0'.
13875 * macros/tmac.s (pg@cs-top): Set no space mode.
13877 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
13878 (cov*ab-init): Alias TL, AU and AI to these.
13880 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
13882 * macros/tmac.s (@EQ): Move the space before the equation into @EN
13883 (@EN): Do nothing unless \n[dl] is > 0.
13885 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
13887 * pic/object.c (ellipse_object::radius): New function.
13889 * VERSION: Change version to 0.7.
13891 * tbl/table.c (block_entry::do_divert): Declare return type as
13893 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
13895 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
13897 * troff/column.c: New file.
13898 * troff/Makefile: Corresponding changes.
13900 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
13903 * troff/div.c (top_level_diversion::space): If the space causes
13904 the first-page transition and springs a trap, truncate the space
13907 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
13909 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
13912 * pic/troff.c (troff_output::line_thickness,
13913 troff_output::set_fill): Do a horizontal motion to compensate for
13914 the width of the \D escape sequence.
13916 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
13918 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
13921 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
13924 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
13925 Supply empty definition.
13926 (text_entry::simple_print, simple_text_entry::simple_print):
13927 Delete declarations.
13928 (table::add_entry): Represent empty entries by objects of type
13931 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
13933 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
13935 * tbl/table.c (left_text_entry::add_tab): New function.
13937 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
13938 initialize like LP.
13940 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
13942 * troff/env.c (environment::start_field): Give an error message if
13943 there is no next tab.
13945 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
13947 * troff/env.c (hyphenate): Skip initial elements with zero
13950 * macros/tmac.s (par@init): Keep VS in points rather than units.
13952 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
13954 * pic/main.c (main): Implement `-c' option.
13955 * pic/output.h: Declare make_tpic_output().
13956 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
13958 (tpic_output): New class.
13959 (tpic_output::tpic_output, tpic_output::set_pen_size,
13960 tpic_output::command, make_tpic_output): New functions.
13962 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
13964 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
13965 if they're not already defined.
13966 * tbl/table.c (init_output): Don't test \n(.g.
13968 * troff/input.c (do_if_request): Delete `g' condition. Recognize
13969 `d', `r' and `c' conditions even in compatibility mode.
13971 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
13973 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
13976 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
13978 * troff/env.h (environment::prev_line_interrupted): New member.
13979 (environment::get_prev_line_interrupted): New function.
13980 * troff/env.c (environment::newline): Set prev_line_interrupted.
13981 (environment::environment(const environment *),
13982 environment::environment(symbol)): Initialize
13983 prev_line_interrupted.
13984 * troff/input.c (process_input_stack): Don't give special
13985 treatment to space and newline at the beginning of the line if the
13986 previous line was interrupted.
13988 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
13990 * eqn/eqn.y: Disallow PRIME by itself.
13991 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
13993 (def_table): Remove definition of '. Define prime to be `.
13995 * eqn/eqn.y: Split off part of rule `script' into a new rule
13998 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
14000 * macros/tmac.s ({, }): New string aliases.
14002 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
14004 * README-0.7: New file.
14006 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
14008 * macros/tmac.s: New file.
14009 * man/groff_ms.man: New file.
14010 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14011 * Makefile.bd: Similarily.
14012 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14013 definition of TMAC_S.
14014 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14015 * macros/TODO: New file.
14017 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
14019 * troff/env.c (right_justify): New function.
14020 (init_env_requests): Bind this to request "rj".
14021 (center_lines): Set right_justify_lines to 0. If we get a bad
14022 integer, center 1 line.
14023 (environment::environment(symbol), environment::environment(const
14024 environment *)): Initialize right_justify_lines.
14025 (environment::get_right_justify_lines): New function.
14026 (init_env_requests): Bind this to number_register ".rj".
14028 * troff/env.c (environment::choose_breakpoint): Implement
14029 hyphenation_margin and hyphenation_space.
14030 (environment::get_hyphenation_space,
14031 environment::get_hyphenation_margin): New functions.
14032 (init_env_requests): Bind these to .hys and .hym.
14033 (hyphenation_space_request, hyphenation_margin_request): New
14035 (init_env_requests): Bind these to hys and hym.
14036 (environment::environment(symbol), environment::environment(const
14037 environment *)): Initialize hyphenation_margin and
14039 * troff/env.h: Corresponding changes to class environment.
14041 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
14043 * troff/div.c (blank_line): Always do a break.
14045 * eqn/box.c (do_text): Turn off escapes while appending text to
14048 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
14050 * troff/input.c (while_break_request, while_continue_request): New
14052 (init_input_requests): Bind these to "break" and "continue".
14053 (while_depth, while_break_flag): New variables.
14054 (while_request): Update while_depth. Break out of loop if
14055 while_break_flag is set.
14057 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
14059 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14062 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
14064 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
14066 * stringify: New file.
14067 * Makefile (groff.o): Use stringify.
14069 * xditview/tmac.X: Remove definition of \(rn.
14070 * xditview/libXdvi/DviChar.c: Remove radicalex from
14073 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
14075 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14076 (alphabetic_block_entry::alphabetic_block_entry,
14077 alphabetic_block_entry::divert, alphabetic_block_entry::print):
14079 (block_entry::divert): Split off body into ...
14080 (block_entry::do_divert): If the block is alphabetic, subtract 2n
14081 from the line length; also update the span width to dl+2n, and the
14082 alphabetic span width to dl.
14084 * driver/input.c (do_file): While reading argument to D command,
14085 when expanding buffer, multiply szp by sizeof(int) rather than 2
14086 in the argument to memcpy.
14088 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14089 width of alphabetic columns.
14091 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
14093 * troff/node.c (lookup_family): Supply second argument to lookup.
14095 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14096 search, return immediately if v is 0.
14098 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14099 (troff_output::start_picture): Set this reg.
14100 (troff_output::end_picture): Remove this reg
14101 * eqn/box.c (box::extra_space): Don't produce `\x's if
14102 EQN_NO_EXTRA_SPACE_REG is defined.
14104 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14105 * eqn/text.c (split_text): Map ' to \(fm when it's the first
14108 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
14110 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14113 * troff/div.c (top_level_diversion::top_level_diversion):
14114 Initialize page_number to 0.
14116 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
14118 * groff/troff (environment::environment(const environment *)):
14119 Initialize name to e->name, rather than "anonymous".
14121 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
14123 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14124 requested_page. Split middle part into ...
14125 (FindPage): New function.
14126 (SetValues): If we don't yet know the last page, and the requested
14127 page is greater than the current page, call FindPage.
14128 Update the font_map_string before doing this.
14130 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14131 Translate \(lh and \(rh into left and right double arrows.
14133 * troff/node.c (class hyphen_inhibitor_node): New class.
14134 (hyphen_inhibitor_node::hyphen_inhibitor_node,
14135 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14136 hyphen_inhibitor_node::type,
14137 hyphen_inhibitor_node::get_hyphenation_type): New functions.
14138 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14139 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14142 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
14144 * troff/node.h (dummy_node::get_hyphenation_type,
14145 transparent_dummy_node::get_hyphenation_type): Declare them.
14146 * troff/node.c: (dummy_node::get_hyphenation_type,
14147 transparent_dummy_node::get_hyphenation_type): New functions.
14149 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
14151 * xditview/libXdvi/draw.c: If M_PI not defined after including
14152 math.h, then define it.
14154 * xditview/Makefile: Add definition of AR. Pass it to the submake
14156 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14158 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
14160 * troff/dictionary.h (object_dictionary::alias): Declare return
14162 * troff/dictionary.c (object_dictionary::alias): Return non-zero
14163 if the old name was defined.
14164 * troff/input.c (alias_macro): Give a warning if the old name was
14166 * troff/reg.c (alias_reg): Likewise.
14168 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
14170 * troff/input.c (token::next): Delete implementation of \R.
14172 * macros/Makefile: Strip comments from tmac.e while installing it.
14174 * troff/input.c: New variable `nroff_mode'.
14175 (troff_request, nroff_request): New functions.
14176 (init_input_requests): Bind `troff' and `nroff' to troff_request
14178 (do_if_request): Compute results of t and n conditions from
14181 * text/text.c (split_text): Fix typo in >=.
14183 * eqn/lex.c: Add definition of `==' to def_table.
14185 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
14187 * pic/tex.c (tex_output::start_picture): Change the definitions of
14188 \graph and \graphtemp so that they work properly with Plain TeX.
14190 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14191 argument to `ar' is not less than the first.
14193 * pic/pic.y: Allow a comma between elements of the variable list
14194 in the argument to `reset'.
14196 * pic/object.c (arc_object::arc_object): Fix computation of
14199 * eqn/main.c (main): Add exit(0).
14201 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
14203 * troff/div.c (begin_page): Test no_space_mode after doing the
14204 break, but still push the page ejector cookie before doing the
14205 break. Also set the next page number after doing the break.
14207 * xditview/xditview.c (NewFile): Don't set the title and icon name
14208 if this is the first file and its name is `-'.
14209 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
14210 the X75 and X100 devices.
14211 (main): If a device has the XT_OPTION flag set and there's exactly
14212 one file argument, pass the driver -xrm and -title options to set
14213 the icon name and window title to the name of the file.
14215 * troff/env.c (environment_switch): If there was an argument but
14216 it wasn't a valid number or name, then pop an environment but
14217 don't give an error message on underflow.
14219 * troff/number.c (start_number): Correct spelling in error message.
14221 * troff/input.c (token::delimiter): Don't print an error message
14224 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14225 ParseDrawFunction if dw->display_enable is true.
14227 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
14229 * pic/pic.y: Parse text positioning like normal attributes, so as
14230 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
14231 positioning attribute.
14233 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
14235 * tbl/main.c (process_data): When in state START while reading a
14236 text block, don't change to state MIDDLE if c is a newline.
14238 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
14240 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14241 so as to avoid shadowing parameter.
14243 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
14245 * tbl/table.c (trim_space): Deleted.
14246 (table::add_entry): Don't call trim_space.
14248 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
14250 * VERSION: Change version to 0.6.
14252 * troff/number.c (parse_expr): Make == work.
14254 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
14256 * man/grog.man: New file.
14257 * man/Makefile: Add grog.n to MAN1PAGES.
14258 * etc/grog.sh: New file.
14259 * etc/Makefile: Install grog.sh as grog.
14261 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
14263 * troff/input.c (token::next): Implement \E.
14265 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
14267 * xditview/tmac.X: Change font translations to match tmac.ps.
14269 * troff/input.c (non_empty_name_warning): Don't give a warning if
14270 `\{' terminates the name.
14272 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
14274 * ps/devps/symbol.diff: New file.
14275 * ps/devps/FontMakefile: Mention symbol.diff.
14277 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
14279 * troff/node.c (font_position): Use get_long_name to read the
14282 * troff/env.c (environment_switch): If we get a number that's < 0
14283 or >= NENVIRONMENTS, treat it like a name.
14284 Change NENVIRONMENTS to 10.
14286 * troff/groff.h: Remove definition of FONTS_MAX.
14287 * troff/node.h (class font_family): Make map a pointer instead of
14288 an array. Add a map_size member. Make it a class. Make nm const
14289 and public. Make invalidate_fontno a friend.
14290 * troff/node.c: Define font_table_size. Make font_info a pointer
14291 rather than an array.
14292 (class troff_output_file): Allocate font_position dynamically. Add
14293 nfont_positions member.
14294 (troff_output_file::set_font): Grow font_position if necessary.
14295 (troff_output_file::~troff_output_file): Delete font_position.
14296 (troff_output_file::troff_output_file): Allocate font_position.
14297 (grow_font_table): New function.
14298 (troff_output_file::really_begin_page,
14299 troff_output_file:really_copy_page): Use nfont_positions rather
14301 (mount_font_no_translate, mount_style): Call grow_font_table if
14303 (font_family::font_family): Allocate map.
14304 (font_family::make_definite): Grow map if necessary. Use
14305 font_table_size instead of FONTS_MAX.
14306 (font_family::~font_family): New function.
14307 (invalidate_fontno): Use font_family::map_size.
14308 (get_fontno, env_space_width, env_half_narrow_space_width,
14309 env_narrow_space_width, symbol_fotno, is_good_fontno,
14310 get_bold_fontno, make_glyph_node): Use font_table_size rather than
14312 (next_available_font_position): Never return 0.
14314 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
14316 * ps/tmac.ps: Add font translations for compatibility with dpost.
14318 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
14320 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14321 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14322 Move definitions baseline_sep, shift_down, column_sep,
14323 matrix_side_sep into...
14324 * eqn/box.c: Add them to param_table.
14325 * eqn/pbox.h: Add declarations to pbox.h.
14327 * troff/input.c (set_string): Cast value to unsigned char *.
14329 * troff/token.h (process_input_stack): Declare it static before
14330 declaring it a friend.
14332 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
14334 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14336 * dvi/devdvi/EX: Regenerate.
14338 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14341 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
14343 * eqn/lex.c: In defaults_table, make definition of `dot' call
14344 `dot_def'. Don't explicitly make it roman. Similarily for other
14347 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14349 (for_input::get, for_input::peek): Use this.
14350 (do_for): Add by_is_multiplicative argument.
14351 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14352 Change semantic value of optional_by to be a double plus a flag
14353 saying whethet the by clause is multiplicative.
14355 * eqn/lex.c (get_delimited_text): Remember location of start of
14356 definition. Improve error handling when EOF is encountered.
14358 * lib/font.h: Rename handle_x_command to
14359 handle_unknown_font_command.
14360 * lib/font.c (font::load): Call handle_unknown_font_command for
14361 any unknown command in the font description file. Don't call
14362 handle_x_command. Include the name of the command in the argv.
14363 Improve message for unknown command after kernpairs or charset
14365 * ps/ps.c (ps_font::handle_x_command): Rename to
14366 handle_unknown_font_command. Remove message about `x download'
14367 command. Give error message for wrong number of arguments.
14368 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14369 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14370 handle_unknown_font_command. Give an error message for wrong
14371 number of arguments. Rename design_size to designsize.
14372 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14373 checksum', `designsize' instead of `design_size'.
14375 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
14377 * eqn/*.[chy]: Change underaccent to uaccent.
14379 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
14380 give it the same precedence as ACCENT.
14381 * eqn/other.c (make_underaccent_box): New function.
14382 * eqn/box.h: Declare it.
14383 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14386 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
14388 * pic/pic.y (reset_all): New function. Called in rule for RESET.
14389 (parse_init): Call reset_all.
14390 (define_variable): When defining scale reset only those
14391 pre-defined variables that are scaled.
14392 (defaults_table): Add `scale' as non-scaled value.
14394 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14395 together with the text; allow any number of positioning words;
14396 allow center as a positioning word.
14398 * pic/object.c (output::compute_scale): Get picture maximum height
14399 and width from variables called maxpswid and maxpsht.
14400 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14402 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
14404 * pic/object.c (object_spec::make_text): Multiply textht by number
14407 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14409 (do_sprintf): New function.
14410 (pic.gperf): Add sprintf token.
14411 (text, sprintf): New rules.
14413 * pic/pic.y: `rand()' with no arguments returns a random number
14414 in the range [0,1).
14416 * pic/pic.y: Allow a bare expression to be an attribute: change
14417 precedences to support this. Change optional_ordinal rule to
14418 optional_ordinal_last to avoid reduce/reduce conflict.
14419 * pic/object.c (object_spec::object_spec): Initialize direction.
14421 * pic/pic.y: Implement ^ operator meaning exponentiation.
14423 * troff/node.h: Add default argument to mount_font.
14424 * troff/node.c (font_position): Read an optional third argument
14425 giving the external_name.
14426 (mount_font): Add optional argument giving the external_name.
14427 (mount_font_not_translate): Have additional argument giving
14428 external name. Use this name to load the font. Pass both names
14429 to font_info::font_info.
14430 (font_info::font_info): Have additional argument giving
14432 (class tfont): New member external_name.
14433 (font_info::get_tfont): Use external name to construct tfont_spec.
14435 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
14437 * eqn/lex.c (init_table): Add argument giving device. Define
14438 name of device to be "1".
14439 (do_ifdef): Counts as true if the argument has been defined with
14441 * eqn/main.c (main): Call init_table with device argument. Make
14442 device local to main.
14443 * eqn/eqn.h: Change declaration of init_table. Remove declaration
14446 * pic/lex.c (get_delimited): Allow text to be delimited by
14447 matching {}s. Don't recognize ending delimiter within a string.
14449 * troff/input.c (get_delim_name): New function.
14450 (token::next): Implement \C.
14452 * lib/font.c (font::load): Grok ---. Add an alias for each
14453 character based on its code.
14454 (font::get_code_width): Deleted.
14455 * lib/font.h (class font): Declare font::number_to_index().
14456 Remove declaration of font::get_code_width.
14457 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14458 to indices of named characters.
14459 (font::number_to_index): New function.
14460 * troff/input.c (font::number_to_index): New function.
14461 (get_charinfo_by_number, charinfo::get_number,
14462 charinfo::set_number): New functions.
14463 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14464 (token::process, token::description, token::get_char,
14465 token::add_to_node_list, token::operator==): Handle
14466 TOKEN_NUMBERED_CHAR.
14467 * troff/charinfo.h: Declare get_charinfo_by_number,
14468 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
14470 (charinfo::numbered): New function.
14471 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14472 * troff/env.h (class environment): Remove declaration of ...
14473 * troff/env.c (environment::make_numbered_char_node): Deleted.
14474 * troff/node.c (make_numbered_node): Deleted.
14475 (class numbered_glyph_node): Remove.
14476 (troff_output_file::put_char_width, troff_output_file::put_char):
14477 Handle numbered chars.
14478 (troff_output_file::numbered_char): Removed.
14479 (tfont::get_code_width): Removed.
14480 (make_glyph_node): Don't search special fonts for numbered
14482 * troff/node.h: Remove declaration of make_numbered_node.
14483 * driver/input.c (do_file): Handle N command.
14484 * driver/printer.h: Add declaration of ...
14485 * driver/printer.c (printer::set_numbered_char): New function.
14486 * dvi/tfmtodit.c (main): Generate unnamed entries.
14487 * ps/devps/afmtodit: Likewise.
14488 * xditview/xtotroff.c (MapFont): Likewise.
14489 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14491 * tbl/main.c (process_format): If multiple widths are specified
14492 for a column but all the widths are the same, don't give an error
14495 * tbl/table.c (table::do_row): If the current row is all lines and
14496 the stuff doesn't contains a line, mark the top of the row after
14497 printing stuff before the row. If the current row is not all
14498 lines and the stuff doesn't contain a line, don't unnecessarily
14499 mark the top of the row before printing the stuff.
14501 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
14503 * troff/groff.h: Remove MAX_PATH.
14504 * troff/input.c (open_file): Dynamically allocate space for the
14506 (open_mac_file, process_macro_file): Corresponding changes.
14508 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
14510 * troff/node.h (class output_file): Make copy_file pure. Add
14511 vspace method ifdef COLUMN. Add is_printing method.
14512 * troff/node.c: Add class printing_reg. Add class
14513 real_output_file. Derive other output_file classes from
14514 real_output_file; in these classes rename begin_page to
14515 really_begin_page, print_line to really_print_line, copy_file to
14516 really_copy_file, transparent_char to really_transparent_char.
14517 Move output_file::flush to real_output_file. Add printing member
14518 to class output_file.
14519 * troff/div.h: Remove printing member from top_level_diversion.
14520 Add vspace member function to class diversion ifdef COLUMN. Add
14521 some declarations ifdef COLUMN.
14522 * troff/div.c (top_level_diversion::copy_file,
14523 top_level_diversion::transparent_output,
14524 top_level_diversion::output): Don't test printing member before
14526 * troff/input.c: Handle initial variable_space_request ifdef
14528 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14529 but comment it out.
14531 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
14533 * troff/div.c (diversion::need): Make any space forced. If we
14534 sprung a trap, set truncated_space to minus the distance to the
14535 trap and set needed_space to the amount that was needed.
14536 (top_level_diversion::space): A forced space turns no_space_mode
14538 (class constant_vunits_reg): New class.
14539 (init_div_requests): Implement number registers .trunc and .ne
14540 using constant_vunits_reg.
14541 (class truncated_space_reg): Deleted.
14543 * troff/div.h: Don't have a no_space_mode member in diversion.
14544 Instead have it in top_level_diversion.
14545 * troff/div.c (diversion::diversion): Don't initialize
14547 (top_level_diversion::top_level_diversion): Initialize
14549 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14550 (macro_diversion::output): Don't clear no_space_mode.
14552 * troff/input.c (diverted_space_node::reread): Don't call
14553 environment::do_break. In fill mode, act like a blank line.
14554 (diverted_copy_file_node::reread): Don't call
14555 environment::do_break.
14557 * troff/div.c (blank_line): New function.
14558 * troff/div.h: Declare it.
14559 * troff/input.c (process_input_stack): Call it.
14561 * troff/div.c (truncated_space_reg::get_string): New function.
14562 (init_div_requests): Bind to .trunc.
14563 (space_request, top_level_diversion::space,
14564 top_level_diversion::output, macro_diversion::space,
14565 macro_diversion::output): Update truncated_space.
14566 (macro_diversion::output): Redo calculations when trap sprung.
14567 (macro_diversion::output, macro_diversion::space): No need for
14570 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14571 after truncating post line spacing.
14573 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
14575 * ps/devps/prologue (MF, SF): Make them work even if setfont is
14576 defined as a procedure rather than as an operator.
14578 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
14580 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14582 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
14584 * troff/div.c (top_level_diversion::output): Merge
14585 output_file::print_line and output_file::end_of_line member
14587 * troff/div.h (class output_file):
14588 * troff/node.c (troff_output_file::print_line,
14589 troff_output_file::end_of_line, output_file::end_of_line,
14590 ascii_output_file::print_line, suppress_output_file::print_line):
14591 Corresponding changes.
14593 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
14595 * troff/input.c (token::next): Don't give a warning for `\.'.
14597 * troff/env.c (environment::get_center_lines): New function.
14598 (init_env_requests): Bind number register .ce to it.
14599 * troff/env.h: Declare it.
14600 * tbl/table.c (table::init_output): Define reset macro to restore
14601 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
14603 (table::print): If center option not given, then imply center
14604 option if SAVED_CENTER_REG > 0.
14606 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
14608 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14609 Troff.ps from DOWNLOAD.
14611 * troff/Makefile: Change comment in DEFINES to avoid confusing
14614 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14615 code. Don't try to catch errors with stopped.
14616 (check_line_lengths): New function.
14617 * ps/devps/prologue (EXEC): Deleted.
14618 (EBEGIN, EEND): New procedures.
14620 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
14622 * troff/input.c: Include request.h before node.h.
14623 * troff/node.c: Likewise.
14624 * troff/env.c: Likewise.
14625 * troff/div.c: Likewise.
14626 * troff/node.h (class special_node): Store argument as a macro
14627 rather than a char *.
14628 * troff/node.c (special_node::special_node, special_node::copy):
14630 (special_node::~special_node): Deleted.
14631 (special_node::tprint): Deleted.
14632 (special_node::tprint_start, special_node::tprint_end,
14633 special_node::tprint_char): New functions.
14634 (troff_output_file::special): Deleted.
14635 (troff_output_file::start_special, troff_output_file::end_special,
14636 troff_output_file::special_char): New functions.
14637 * troff/input.c (special_node::tprint): New function.
14638 (do_special): Use macro not char *.
14639 (do_transparent_macro): Deleted.
14640 (token::next): Don't call do_transparent_macro.
14642 * troff/input.c (token::next): Add 'Y' case.
14643 (do_transparent_macro): New function.
14644 * troff/node.c (troff_output_file::special): Handle newlines with
14645 argument using new continuation convention.
14646 * driver/input.c (get_string): Cope with continuation convention.
14647 (do_file): Don't call skip_line after calling get_string(1).
14648 * ps/ps.c (ps_printer::special, ps_printer::do_import,
14649 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
14651 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
14654 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
14656 * troff/input.c (asciify): By default, illegal input characters
14657 should return empty string.
14659 * troff/input.c (copy_file): Handle first page transition like title.
14660 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
14662 * troff/input.c (token::next): Improve error message for EOF after
14664 (input_char_description): New function.
14665 (get_char_for_escape_name): Use input_char_description.
14666 (token::next): Warn about unrecognized escape sequences.
14667 (warning_table): Add WARN_ESCAPE.
14668 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
14671 * troff/token.h: Remove declaration of process_input_stack.
14673 * troff/input.c: Remove declaration of init_hyphen_requests.
14674 * troff/request.h: Correct spelling in declaration of same.
14676 * troff/input.c (token::next): Check whether escape_char is 0.
14678 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
14680 * groff.c (main, usage, help): Implement -P and -L options.
14681 * groff.sh: Likewise.
14683 * troff/input.c (token::next): Use some gotos to avoid code
14686 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
14687 Avoid calling symbol::symbol if name empty.
14689 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
14691 * troff/input.c (init_input_requests): Make \n(.x return the major
14692 version number and \n(.y return the minor version number.
14693 * troff/Makefile: Construct file majorminor.c defining
14694 major_version and minor_version automatically from ../VERSION.
14696 * troff/node.c (class glyph_node): Make operator new and operator
14698 (class ligature_node): Similarily.
14700 * troff/input.c (operator==(const macro &, const macro &)): New
14702 (non_interpreted_node::same): Use this.
14703 (string_iterator::string_iterator): Make macro& argument const.
14705 * troff/input.c (input_iterator::get): New function. Don't make
14706 asciify_macro or class non_interpreted_node friends of class
14708 (non_interpreted_node::interpret): Use input_iterator::get.
14709 (asciify_macro): Likewise.
14711 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
14712 ~non_interpreted_node): Deleted.
14713 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
14716 * troff/symbol.h: Make all symbol member functions const.
14718 * lib/strtol.c: New file.
14719 * lib/Makefile: Add strtol.c.
14720 * Makefile: Define STRTOL as strtol.o to include strtol in
14723 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
14725 * pic/troff.c (troff_output::simple_circle): Divide by scale.
14727 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
14729 * troff/input.c (do_special): Use input_level.
14731 * troff/token.h (TOKEN_BACKSPACE): New token.
14732 (token::backspace): New function.
14733 * troff/input.c (token::description, token::next, token::process):
14734 Grok TOKEN_BACKSPACE.
14735 (do_special): Turn TOKEN_BACKSPACE back into \b.
14737 * troff/token.h (token::leader): New function.
14738 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
14740 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
14742 * troff/input.c (do_special): Use token::description in error
14745 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
14747 * troff/input.c (decode_args): Combine quoted and
14748 quote_input_level variables. Make it a for (;;) loop.
14750 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
14752 * troff/input.c (read_long_escape_name): The test for whether to
14753 expand buffer was off by 1.
14754 (read_string): Similarily.
14756 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
14758 * troff/input.c: Use `const int' rather than `static const int'.
14760 * troff/div.h (diversion::copy_file): Declare as pure virtual.
14761 (macro_diversion::copy_file): New function.
14762 * troff/node.h: New class diverted_copy_file_node.
14763 * troff/node.c: Implement it.
14764 * troff/input.c (copy_file): Use diversion::copy_file. Handle
14765 first page transition by pushing a diverted_copy_file_node.
14766 * troff/input.c (token::next, process_input_stack): Don't handle
14769 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
14771 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
14772 whether space widths need adjusting.
14774 * troff/charinfo.h: Generalize translated_to_space to
14775 special_translation so as to allow translation to \&.
14776 * troff/input.c (translate): Allow translation to \&.
14777 (charinfo::*): Corresponding changes.
14778 * troff/node.c (make_node, node::add_char): Corresponding changes.
14779 * troff/node.h (dummy_node::dummy_node): Allow optional first
14782 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
14783 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
14785 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
14786 TOKEN_REQUEST with an argument of TITLE_REQUEST.
14787 (token::process): Grok that.
14788 * troff/input.c (copy_file): Handle first page transition like
14789 title by pushing a COPY_FILE_REQUEST cookie.
14790 (token::next, process_input_stack): Grok that.
14791 * troff/node.h (output_file::copy_file): Add x and y arguments.
14793 * troff/div.c (top_level_diversion::copy_file): Supply them.
14794 * troff/node.c (troff_output_file::copy_file): Add x and y
14795 arguments; moveto specified position. Invalidate font_position
14796 array after copying file.
14797 (output_file::copy_file): New function.
14798 (suppressed_output_file::copy_file, ascii_output::copy_file):
14800 * troff/input.c (transparent_file): New function.
14801 (init_input_requests): Bind to "trf".
14802 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
14803 (process_input_stack): Likewise.
14805 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
14807 * troff/node.c (init_node_requests): New number registers .kern
14808 pointing to global_kern_mode, and .lg pointing to
14809 global_ligature_mode.
14811 * troff/node.c (ligature): Don't change it if we get a bad
14814 * troff/input.c (do_define_string): Don't strip tabs.
14816 * troff/input.c (asciify_macro): Make the string_iterator auto.
14818 * troff/node.c (init_font_requests): Rename to...
14819 (init_node_requests):
14820 * troff/node.h: Change declaration.
14821 * troff/input.c (main): Change call.
14823 * troff/input.c (node::reread, diverted_space_node::reread): New
14825 (process_input_stack): Call reread rather than
14826 get_diverted_space_node.
14827 * troff/node.c (node::get_diverted_space_node,
14828 diverted_space_node::get_diverted_space_node): Removed.
14829 * troff/node.h: Declare reread methods instead of
14830 get_diverted_space_node methods. Make `n' member private.
14831 * troff/input.c: (token::diverted_space): Removed.
14832 * troff/token.h: Removed declaration.
14835 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
14837 * eqn/script.c (script_box::compute_metrics): Don't let
14838 SUP_RAISE_FORMAT become negative.
14840 * tbl/table.c (table::do_row): Entries that don't end in the
14841 this row shouldn't make the row non-blank.
14843 * tbl/table.c (table::make_columns_equal): Only set the width of
14844 columns which are marked as equal.
14846 * tbl/main.c (process_data): Before issuing excess data error,
14847 if last character was a newline unget it; then get it again after
14848 the error. Also include the contents of the entry in the message.
14850 * groff.c: New file.
14851 * Makefile: Build groff from groff.c. Make it possible to use
14852 either groff.sh or groff.c as groff.
14853 * Makefile.bd: Similarily.
14855 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
14857 * groff.sh: Don't delay expansion of $@ in assignment to files.
14858 Remove occurrences of \".
14860 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
14862 * all Makefiles: Simplify and rearrange.
14864 * Makefile: Handle fmod like malloc.
14865 * lib/Makefile: Similarily.
14866 * lib/fmod.c: Remove #ifdef NEED_FMOD.
14868 * Makefile: Rename OPTIMISE to OPTIMIZE.
14870 * groff.sh: Remove assignment to PATH.
14871 * Makefile: Remove SHPATH variable.
14872 * Makefile.bd: Similarily.
14874 * groff.sh: Add -V option to print the pipeline instead of
14877 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
14879 * lib/font.c: Split off file searching into ...
14880 * lib/fontfile.c: New file.
14882 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
14884 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
14886 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
14887 Also change misleading comment.
14888 (table::do_vspan): Change similarily misleading comment.
14889 * tbl/main.c (process_data): A format row with an explicit `s'
14890 uses up a data line, even if all the other columns are `_' or `='.
14892 * troff/input.c (token::description): Fix description of
14893 TOKEN_DUMMY and TOKEN_EMPTY.
14895 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
14897 * groff.sh: Fix description of -Z in help message.
14899 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
14901 * pic/object.c (object_spec::make_object): Allow negative and zero
14903 * pic/pic.y: Give linethick default value of -1.0.
14904 * pic/troff.c (troff_output::troff_output): Initialize
14905 last_line_thickness to BAD_THICKNESS.
14906 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
14907 (troff_output::line_thickness): Canonicalize negative thicknesses
14908 to RELATIVE_THICKNESS.
14909 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
14910 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
14912 (tex_output::start_picture): Set pen_size to -2.0.
14914 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
14915 0, then use 0 linewidth.
14916 (ps_printer::ps_printer): Initialize line_thickness to -1.
14918 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
14920 * ps/devps/symbolchars: Remove `or'.
14921 * ps/tmac.ps: Implement \(or with .char.
14923 * ps/devps/symbolchars: Move most characters into textmap.
14924 * ps/devps/textmap: Add names for troff bracket characters. Remove
14927 * ps/devps/TSymbol.ps: Removed.
14928 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
14929 * ps/tmac.ps: Do with .char what TSymbol did.
14930 * ps/devps/download: Remove TSymbol.
14932 * ps/devps/T: Removed.
14933 * ps/devps/Troff.ps: Removed.
14934 * ps/devps/Troff.afm: Removed.
14935 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
14936 * ps/devps/download: Remove Troff.
14937 * ps/devps/FontMakefile: Remove T target.
14938 * ps/devps/DESC-A4: Remove T from font list.
14939 * ps/devps/DESC-letter: Likewise.
14941 * troff/input.c (macro_to_node): Rename to ...
14942 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
14943 character's definition while processing it.
14944 * troff/node.c (node::add_char, make_node): Change calls to
14945 macro_to_node accordingly.
14947 * troff/input.c (token::next): Translate \_ to \(ul.
14949 * tty/devascii/R.proto: Add `|'.
14950 * tty/devlatin1/R.proto: Likewise.
14952 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
14954 * man: Put the version number in all the man pages.
14956 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
14958 * Makefile.bd: New file.
14959 * README.bd: New file.
14961 * VERSION: New file.
14962 * lib/version.c: Removed.
14963 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
14966 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
14967 environment variable.
14969 * all Makefiles: Split install target into install.bin for
14970 binaries, and install.nobin for everything else.
14971 * Makefile: Add bindist target.
14973 * man/afmtodit.man: New file.
14974 * man/Makefile: Add afmtodit.n to MAN1PAGES.
14975 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
14977 * ps/Makefile: Pass BINDIR to make install in devps.
14979 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
14980 the space character.
14982 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
14984 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
14986 * ps/ps.c: Redo font downloading.
14987 * ps/devps/download: New file.
14988 * ps/devps/Makefile: Add download to DEVICEFILES.
14989 * ps/devps/afmtodit: Remove -d option.
14990 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
14991 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
14992 * ps/devps/zapfdr.ps: Likewise.
14993 * ps/devps/TSymbol.ps: Likewise.
14995 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
14997 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
14999 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
15001 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15002 then strip the first line if it starts with %.
15003 * Makefile: Add a comment about this.
15005 * man/tfmtodit.man: New file.
15006 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15007 * dvi/Makefile: Install tfmtodit in BINDIR.
15009 * dvi/tfmtodit.c (usage): Mention -v option.
15011 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
15013 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15014 * troff/node.c (troff_output_file::transparent_char): Don't call
15017 * eqn: Add check_tabs method to most box classes.
15018 * eqn/box.c (box::top_level): Call check_tabs.
15020 * eqn/script.c (script_box::output): Use \Z.
15021 * eqn/limit.c (limit_box::output): Use \Z.
15023 * eqn/box.c (box::top_level): Use itoa.
15025 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
15027 * dvi/tmac.dvi: Add font translations for CR, C, TT.
15028 * dvi/devdvi/Makefile: Don't make links to CW.
15030 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15032 * xditview/tmac.X: Likewise.
15034 * troff/node.c: Add font translation feature.
15035 (get_font_translation): New function.
15036 (symbol_fontno): Translate the font name.
15037 (mount_font_no_translate): Rename to mount_font to this.
15038 (mount_font): New function.
15039 (font_family::make_definite): Call mount_font_no_translate instead
15041 (mount_style): Translate the font name.
15042 (font_translate): New function.
15043 (init_font_requests): Bind "ftr" to font_translate.
15045 * ps/devps/prologue (SN): New procedure that rounds a position to
15046 the nearest (pixel + (.25,.25)).
15047 (DL): Use SN to round endpoints.
15049 * lib/version.c: Changed version to 0.5.
15051 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
15053 * Makefile: Move definition of PAGE to the very beginning, so that
15054 people are less likely to miss it.
15056 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
15058 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15060 * troff/env.c (environment::choose_breakpoint): Make `can't find
15061 breakpoint' error a warning of type WARN_BREAK. Change message to
15062 `can't break line'.
15063 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15065 * troff/input.c: Add WARN_BREAK to warning_table. Include
15066 WARN_BREAK in DEFAULT_WARNING_MASK.
15068 * tty/tmac.tty: Add definition of \(+-.
15070 * groff.sh: Remove `--' option to set command.
15072 * dvi/devdvi/texsy.map: Remove duplicate md entry.
15074 * ps/devps/eqnchar: Better definition of cdot using md.
15075 * dvi/devdvi/eqnchar: Likewise.
15076 * xditview/devX100/eqnchar: Likewise.
15077 * xditview/devX75/eqnchar: Likewise.
15078 * eqn/lex.c: Add definition of cdot.
15080 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
15082 * troff/input.c (get_optional_char): New function.
15083 * troff/input.c (set_page_character): Use get_optional_char(),
15084 rather than has_arg() and tok.get_char(1).
15085 * troff/env.c (tab_character, leader_character, hyphen_char,
15086 field_characters): Likewise.
15087 (margin_character): Likewise. Also always delete the
15088 margin_character_node.
15090 * troff/input.c (token::get_char): Use token::description.
15092 * troff/input.c (has_arg): Don't skip over tab and \}.
15093 * troff/number.c (start_number): Give a warning if the number
15094 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15096 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
15098 * troff/input.c (empty_name_warning, non_empty_name_warning): New
15100 (get_name, get_long_name): Use these. Rename `warn' argument to
15103 * troff/node.c (get_fontno): Test that the symbol is not null.
15105 * troff/input.c (token::description): New function.
15106 * troff/number.c (parse_term): Use token::description in `numeric
15107 expression expected' message.
15108 * troff/groff.h: Add WARN_MISSING.
15109 * troff/number.c (start_number): New function.
15110 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15111 get_incr_number): Use start_number().
15112 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15114 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15115 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15117 * troff/input.c (token::get_char): Use WARN_MISSING.
15118 * troff/input.c (token::delimiter): Use token::description.
15119 * troff/env.c (environment_switch): Back out Aug 3 change.
15120 * troff/input.c (has_arg): Skip over \}s and tabs but give a
15122 * troff/token.h (token::tab): New function.
15123 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15124 * troff/reg.c (alter_format): Likewise.
15125 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15127 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
15129 * troff (most files): Redo warnings. Divide warnings into various
15130 categories; warning() has an additional first argument indicating
15131 the category it falls into.
15132 * troff/input.c (main): -w now takes an argument. New option -W.
15133 (enable_warning, disable_warning): New functions.
15135 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15136 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15138 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
15140 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15141 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15142 * xditview/devX75/eqnchar: Likewise.
15143 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15145 * eqn/other.c: When bar or over applies to a single character
15146 don't produce an overline_box or an underline_box. Instead produce
15147 an accent_box or an underaccent_box, with the accent a line
15148 whose width is accent_width. New classes underaccent_box,
15149 overline_char_box and underline_char_box.
15150 * eqn/box.h: Move overline_box, underline_box, accent_box class
15151 declarations into eqn/other.c. Add declarations of
15152 make_underline_box, make_overline_box, make_accent_box.
15153 * eqn/eqn.y: Call make_overline_box, make_underline_box
15154 make_accent_box instead of constructors.
15155 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15157 * eqn/other.c: Add accent_box::~accent_box.
15158 * eqn/box.h: Declare it.
15160 * groff.sh: With -Tps, use eqn -D.
15162 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15164 (underline_box::output): Similarily.
15165 (accent_box::output): Use \Z.
15167 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15170 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
15172 * troff/div.c (top_level_diversion::transparent_output(unsigned
15173 char)): Use asciify.
15174 * troff/input.c (asciify): Don't make it static.
15175 * troff/token.h (asciify): Declare it.
15177 * troff/input.c (get_name, get_long_name, token::get_char,
15178 token::delimiter): Add an extra default argument which says
15179 whether a warning should be printed.
15180 * troff: Pass a non-zero argument to one of these rather than
15181 printing a warning directly.
15183 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
15185 * troff: Consistently use symbol::is_null.
15187 * troff/dictionary.h: Move some inline functions into
15190 * troff/request.h: Move inline functions into input.c.
15191 (request_or_macro::invoke): Make it pure.
15193 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15194 * troff/input.c (init_input_requests): Use class constant_int_reg.
15195 (class compatible_reg): Deleted.
15196 * troff/div.c (init_div_requests): Use class constant_int_reg.
15197 (class last_post_line_extra_space_reg): Deleted.
15199 * troff/env.c (tab_character): Don't change the tab character if
15200 we get an invalid argument.
15201 (hyphen_char): Similarily.
15203 * troff/reg.c (alter_format): Check that nm is not null.
15205 * Makefile, groff.sh: Make it possible to customize the commands
15206 used for printing PostScript and dvi files. Also make it possible
15207 to customize the path used by groff.sh.
15209 * eqn/eqn.y: Make `left' right associative.
15211 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
15213 * pic/pic.h: Added definition of M_SQRT2 for those systems that
15216 * pic/pic.h: Removed definition of INT_MAX.
15218 * troff/node.c (italic_corrected_node::vertical_extent): Omit
15221 * troff/input.c (token::next): Handle \R like \n.
15223 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
15225 * ps/tmac.pc (PSPIC): Simplify.
15227 * troff/env.c (tab_stops::to_string):
15228 * pic/pic.y (object_type_name):
15229 * pic/troff.c (simple_output::line):
15230 * pic/tex.c (tex_output::spline):
15231 * pic/object.c (object_spec::make_object):
15232 * tbl/main.c (process_data): Add cases to switch statements to
15233 avoid cfront warnings. (Some of these are spurious, since the
15234 switch already has a default case.)
15236 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
15237 `ps-'. Don't test systat; instead check number of arguments to
15240 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
15242 * macros/tmac.e: Do not decrease the page offset by 0.5i.
15244 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15245 Unlink the file as soon as we have opened it, so that we don't
15246 have to bother with signal handlers.
15247 (handler): Deleted.
15248 (fatal_error_exit): Deleted.
15249 (main): Don't call signal.
15251 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15253 * dvi/devdvi/Makefile: Use the -k option with S and MI.
15255 * pic/pic.y: If there is a label, or an nth construction before
15256 the first `.' in the argument to `with', ignore it and generate a
15258 * pic/lex.c (lex_warning): New function.
15260 * tbl/table.c (table::init_output): In section keep and release
15261 macro, use 0 indent when diverting and the correct indent when
15264 * troff/input.c (interpolate_number_format): Do not interpolate
15265 anything if the number register is not defined.
15267 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15269 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
15271 * ps/devps/prologue (PICTURE): Set components of graphics state to
15272 their default values.
15274 * ps/devps/text.enc: Add trademark
15275 * ps/devps/textmap: Add names for club, spade, heart, diamond,
15276 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15277 * ps/devps/symbolchars: Add names for summation and product.
15279 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15280 suchthat. Add pp. Add upper-case letters.
15282 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15283 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15286 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15287 rA (right angle bracket) to ra. Introduce names for double-headed
15288 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15289 * ps/devps/textmap: Likewise for ps device.
15290 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15291 * tty/devascii/R.proto: Rename lA to la and rA to ra.
15292 * tty/devascii/R.proto: Likewise.
15293 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15295 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15297 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15299 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15302 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
15304 * troff/div.c (when_request): Use symbol::is_null rather than
15305 has_arg to determine whether we have an argument.
15306 (change_trap): Remove the trap if we get an invalid number. Give
15307 an error if we don't get at least the macro name.
15308 (diversion_trap): Remove trap if we get an invalid name or number.
15310 * troff/env.c (environment_switch): Pop if we get an invalid
15311 symbol or numeric expression.
15313 * troff/input.c (do_define_macro): If EOF is encoutered while
15314 defining the macro, do tok.next() before returning.
15316 * troff/token.h (has_arg): Move definition from here, to ...
15317 * troff/input.c (has_arg): ... here
15319 * troff/env.c (space_size): Do nothing if we get an invalid argument.
15320 * troff/input.c (shift): Likewise.
15322 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
15325 * pic/troff.c (troff_output::start_picture): Comment out calls to
15328 * eqn/main.c (do_file): Subtract 1 from current_lineno if
15329 interpret_lf_args succeeds.
15331 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15332 \\. This avoids problems with \$N.
15334 * groff.sh: Pass -C to preprocessors.
15336 * lib/lf.c (interpret_lf_args): Be more flexible.
15338 * tbl/main.c (main): Add -C option.
15339 (table_input::get): Do not recognize TE if followed by character
15340 other than a space or newline unless -C option given.
15341 (process_input_file): Likewise for lf, TS.
15342 (process_data): Likewise for lf in text blocks.
15344 * eqn/main.c (main): Add -C option.
15345 (do_file): Don't recognize EQ, EN or lf if followed by character
15346 other than space or newline unless -C option given.
15347 * eqn/lex.c (file_input::read_line): Similarily.
15348 * eqn/eqn.h: Declare compatible_flag.
15350 * etc/soelim.c (main): Add -C option.
15351 (interpret_lf_args): Use version in libgroff.
15354 * pic/main.c (main): Add -C option, which sets compatible_flag.
15355 (top_input::get), (top_input::peek): If -C option not given,
15356 do not recognize .PS/.PE/.PF/.lf if followed by a character
15357 other than space or newline.
15358 * pic/lex.c (file_input::read_line): Similarily.
15359 * pic/pic.h: Add declaration of compatible_flag.
15361 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
15363 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15365 * troff/node.c, troff/node.h: Add `asciify' methods to classes
15366 derived from node. New class space_char_hmotion_node.
15367 * troff/input.c (asciify_macro): New function.
15368 * troff/input.c (init_input_requests): New request `asciify' bound
15370 * macros/mm.diff: New file.
15371 * Makefile: In install.mm target use `patch' to apply
15374 * troff/input.c (macro::print_size): Just print the size in bytes.
15376 * troff/div.c (return_request): Correct the argument
15379 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
15381 * troff/node.h (class composite_node): Add sz member.
15382 * troff/node.c (composite_node::size): Return sz.
15383 * troff/input.c (macro_to_node): Use the initial size in the
15384 environment as the size of the composite_node.
15386 * troff/node.c (node::zero_width_tprint): Provide a reasonable
15389 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
15391 * troff/div.c (change_trap): If we get a bad number expression,
15394 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
15396 * lib/matherr.c (matherr): Define this only if math.h defines
15399 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
15401 * troff/div.c (macro_diversion::distance_to_next_trap): If there
15402 no diversion trap return vunits(INT_MAX - vresolution).
15404 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
15406 * troff/input.c (do_zero_width): New implementation that doesn't
15407 use a temporary environment. Use instead:
15408 (token::add_to_node_list): New function.
15409 * troff/env.c (environment::get_prev_char_height),
15410 (environment::get_prev_char_height),
15411 (environment::get_prev_char_skew): New functions.
15412 (environment::get_prev_char): New function.
15413 (environment::get_prev_char_width): Change to use get_prev_char.
15414 (init_env_request): Implement new registers .cht, .cdp, .csk.
15415 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15416 \Z being processed in a separate environment.
15418 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
15420 * tbl/table.c: Removed TABLE_BOTTOM_REG.
15422 * tbl/table.c (table::init_output): In the section release macro,
15423 give a warning message if the section won't fit on one page.
15425 * tbl/table.c (table::do_top): Emit table keep only if table is
15427 (table::do_bottom): Likewise for table release.
15428 (table::table), (table::add_vertical_rule): Remove reference to
15430 * tbl/table.h: Remove keep member.
15432 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15433 SECTION_RELEASE_MACRO, if there's not enough space before the next
15434 trap to output the diversion, call T# ourselves, set
15435 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15436 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
15437 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
15438 vertical position and return to it before turning traps on again.
15440 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
15442 * troff/node.c, troff/node.h: In classes derived from node,
15443 replace prev_char_width method by last_char_node method.
15444 * troff/env.c (environment::get_prev_char_width): Use
15445 node::last_char_node rather than node::get_prev_char_width.
15447 * Makefile: Added comment about -fno-inline on 68030-based
15450 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15451 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15452 expressions using sizeof to int.
15453 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15455 * macros/tmac.e (TS): Don't move @f back past the current
15458 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
15460 * ps/ps.c (main): Buffer stderr.
15461 * dvi/dvi.c (main): Likewise.
15462 * tty/tty.c (main): Likewise.
15464 * ps/ps.c (ps_printer::do_import): Improve error handling.
15466 * troff/input.c (abort_request): Use asciify.
15468 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15469 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15470 type of first argument int rather than char. This works around a
15471 bug on the 68030 based Apollo using g++ 1.37.1.
15473 * tbl/table.h (class table): Add `keep' member.
15474 * tbl/table.c (table::table): Initialize `keep'.
15475 (table::add_vertical_rule): Set `keep' to 1.
15476 (table::do_top): Only emit table keep macro is `keep' is non-zero.
15477 (table::do_bottom): Likewise for table release macro.
15478 (table::do_row): Emit section keep macro even if the row is 0.
15480 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
15482 * macros/tmac.e (@C): Preserve the font family across the change
15485 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
15487 * lib/font.c: Initialize font::hor and font::vert to 1.
15488 (font::load_desc): Check the values of font::hor and font::vert.
15490 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15491 be included in a C compilation.
15492 (iftoa): Use INT_DIGITS. Include lib.h.
15494 (as_string): Likewise.
15495 * tbl/table.c: Removed definition of INT_DIGITS.
15496 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15497 * troff/input.c (input_input_requests): Likewise.
15498 * ps/ps.c (make_encoding_name): Likewise.
15499 (ps_printer::set_style): Likewise.
15500 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15502 * tty/devascii/R.proto: Map fm onto '.
15503 * tty/devlatin1/R.proto: Likewise.
15505 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
15507 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15508 argument to \w is at a different input level.
15510 * tbl/table.c (table::init_output): Define a new macro
15511 REPEATED_VPT_MACRO, like vpt but if in a diversion also
15512 transparently outputs itself.
15513 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15515 (table::do_row): Likewise.
15517 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15518 TRANSPARENT_STRING_NAME.
15520 * tbl/table.c (table::init_output): In the table release macro
15521 print an error message and don't produce any output if after
15522 issuing the need request the table still will not fit. Also
15523 remove the diversion after bringing it back.
15525 * tbl/table.c (table::init_output): Define a new macro
15526 REPEATED_MARK_MACRO, like mk but if in a diversion also
15527 transparently outputs itself.
15528 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15529 is necessary because .TH might not call .T#.
15530 (table::do_top): Likewise TOP_REG.
15531 (table::define_bottom_macro): If TOP_REG is no longer valid, use
15532 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15533 table header might contain just the two top rules.
15535 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
15537 * troff/div.c: Implement new request `ptr' to print all traps.
15539 * troff/env.c (init_env_requests): Implement `.tabs' reg with
15540 init_string_env_reg.
15541 * troff/env.c (class tab_reg): Deleted.
15543 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
15545 * troff/div.c: New number register .pn returns the number of the
15546 next page as set by the pn request.
15548 * macros/tmac.an: Redid headers and footers. Number each manual
15549 entry starting from 1 unless \nC is > 0, like Sun. Added an
15550 optional 5th argument to .TH which specifies the manual name and
15551 appears in the center of the header. Understand the X, P and D
15552 registers like Sun.
15554 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
15556 * troff/env.c (init_env_requests): New number register `.lt' to
15557 return the title length.
15559 * troff/node.h (class transparent_dummy_node): New class.
15560 * troff/node.c (class transparent_dummy_node): Provide member
15562 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15565 * troff/input.c (token::next): New escape sequence \).
15566 * troff/input.c (get_copy): Recognize \) in copy mode.
15568 * troff/input.c (input_stack::clear): New function.
15569 * troff/input.c (exit_request): Use input_stack::clear.
15571 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15572 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15574 * troff/env.c: Move set_page_character to input.c. Move
15575 page_character to input.c also.
15576 * troff/env.c (title): Split off the reading of the parts of the
15577 title into read_title_parts.
15578 * troff/input.c (read_title_parts): New function. Check the
15579 input_level when testing whether a token matches the delimiter.
15581 * troff/input.c (exit_request): New function.
15582 * troff/input.c (init_input_requests): Bind ex request to
15583 exit_request rather than exit_groff.
15585 * troff/input.c (exit_groff): Call tok.next() before
15586 process_input_stack().
15588 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
15590 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15591 * troff/env.h: ditto.
15592 * troff/input.c: ditto.
15594 * troff/env.c (environment::is_empty): Test pending_lines.
15596 * troff/env.c (environment::have_pending_lines): Removed.
15598 * troff/input.c: Add request to flush pending lines from the
15601 * troff/env.c, troff/env.h: Add automatic widow control feature.
15603 * troff/input.c (exit_groff): Do process_input_stack() after
15604 do_break() but before setting exit_flag to 2.
15606 * troff/input.c: Remove FLUSH_PENDING_LINES and
15607 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15608 environment after END_TRAP token seen, but only if there aren't
15609 any more traps still unfinished.
15610 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15612 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
15614 * troff/env.c: Rename the `retain_size' member of class
15615 pending_output_line to `no_fill'.
15617 * troff/env.c (title): When the line is output, make the
15618 retain_size argument !fill.
15620 * troff/node.h: Add `hyphenated' member to struct breakpoint.
15621 * troff/node.c (space_node::get_breakpoints),
15622 (dbreak_node::get_breakpoints): Fill this in.
15623 * troff/env.c: Allow specification of maximum number of
15624 consecutive hyphenated lines.
15626 * troff/env.c (environment::is_empty): Add test for !current_tab.
15628 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
15630 * troff/env.c (environment::hyphenate_line): Don't completely give
15631 up if the word is not to be hyphenated; continue so that breaks
15632 can be made at break_char_node's.
15634 * lib/lib.h: Only define INT_MAX if it's not already defined;
15635 undef INT_MIN if it's already defined.
15637 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15639 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15640 This works around a bug in AT&T C++ 2.0 used with an ANSI C
15643 * macros/tmac.an (an-header): Set no-space mode.
15645 * macros/tmac.an (TH): Start a new page if necessary.
15647 * Started using ChangeLog at version 0.4.
15650 version-control: never