1 2003-08-23 Stephen Gildea <gildea@stop.mail-abuse.org>
3 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
4 insert SORT_SEP. With certain combinations of sort specifications,
5 refer sorted entries in the wrong order. In particular, entries
6 with a missing field should be be sorted before all entries that
7 have that field, before refer looks to the next field.
9 2003-08-23 Werner LEMBERG <wl@gnu.org>
11 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
12 g++ linker is used. Reported by Mark J. Reed
13 <mark.reed@turner.com>.
15 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
17 Add key character `x' to tbl which makes tbl call a user-defined
18 macro on a table cell.
20 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
21 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
22 `set_modifier' after printing the compatibility request.
23 (set_modifier): Print call to `m->macro' if not empty.
24 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
26 (process_format): Implement cases `x' and `X'.
27 * src/preproc/tbl/tbl.man, NEWS: Updated.
29 2003-08-15 Werner LEMBERG <wl@gnu.org>
31 * doc/groff.texinfo: Minor fixes.
33 2003-08-09 Werner LEMBERG <wl@gnu.org>
35 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
37 2003-08-07 Werner LEMBERG <wl@gnu.org>
39 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
40 argument list. Use `ls' to expand, similar to autoconf.
42 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
45 * doc/groff.texinfo: Improve documentation how vertical spacing
46 and line breaks interact.
49 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
51 2003-08-03 Werner LEMBERG <wl@gnu.org>
53 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
54 EPS (using eps2eps or similar programs to compute the bounding box).
56 2003-07-24 Werner LEMBERG <wl@gnu.org>
58 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
59 * doc/texinfo.tex: Updated from texinfo 4.6.
60 * README.CVS: From now on we need texinfo 4.6.
62 2003-07-23 Werner LEMBERG <wl@gnu.org>
64 Add requests `dei1' and `ami1' for completeness.
66 * src/roff/troff/input.cc (calling_mode): Remove
68 (comp_mode): New enumeration.
69 (do_define_string, define_string, define_nocomp_string,
70 append_string, append_nocomp_string): Updated.
71 (do_define_macro): Add third parameter.
72 (define_macro, define_nocomp_macro, define_indirect_macro,
73 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
74 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
77 (init_input_requests): Add `dei1' and `ami1'.
79 * tmac/trace.tmac: Handle de1 and am1.
80 (de): Improve tracing message.
81 (am): Add missing `do'.
84 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
85 Document new requests.
87 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
89 Add option -G to .MPIMG to insert a gap between text and the image.
91 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
92 www-finish-left-ll): Updated.
93 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
94 (MPIMG): Make option -L and -R optional.
97 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
99 * src/devices/grohtml/post-html.cpp
100 (html_printer::do_file_components): Don't use `stdout' as lvalue
101 since it can be a macro.
103 2003-07-22 Werner LEMBERG <wl@gnu.org>
105 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
106 the corresponding test in aclocal.m4.
108 2003-07-21 Werner LEMBERG <wl@gnu.org>
110 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
111 names but RGB values directly. Otherwise pnmtopng depends on
112 an external file `rgb.txt' which maps colour names to values.
114 2003-07-20 Werner LEMBERG <wl@gnu.org>
116 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
117 * configure, src/include/config.hin: Regenerated.
119 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
121 2003-07-19 Werner LEMBERG <wl@gnu.org>
123 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
125 2003-07-18 Werner LEMBERG <wl@gnu.org>
127 * *.man: Switch to non-compatibility mode temporarily if GNU
128 syntax extensions are used in the particular man page.
130 * PROBLEMS: Add solutions for SGR problems.
132 2003-07-17 Werner LEMBERG <wl@gnu.org>
134 Don't ignore grotty's command line options if \X'tty: sgr ...' is
135 used to change the drawing scheme.
137 * src/devives/grotty/tty.cpp (bold_flag_option,
138 underline_flag_option, italic_flag_option, reverse_flag_option,
139 bold_underline_mode_option): New global variables.
140 (update_options): New function.
141 (tty_printer::special): Call update_options.
142 (main): Don't set xxx_flag but xxx_flag_option, then call
145 2003-07-14 Werner LEMBERG <wl@gnu.org>
147 Make grotty emit proper Unicode box drawing characters for -Tutf8.
149 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
151 (hline_char, vline_char): New global variables.
152 (tty_printer::tty_printer): Initialize them.
153 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
154 horizontal and vertical lines.
155 (crossings): New global array.
156 (tty_printer::end_page): Use it to determine the proper crossing
157 character for -Tutf8.
159 2003-07-12 Werner LEMBERG <wl@gnu.org>
161 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
162 (HTMLDOCFILES): Revert to `pic.html'.
163 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
165 2003-07-11 Werner LEMBERG <wl@gnu.org>
167 * doc/pic.ms: Improve documentation of absolute coordinates.
168 Document absolute positioning of pictures.
170 * NEWS: Add new pic capability.
172 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
174 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
177 2003-07-07 Werner LEMBERG <wl@gnu.org>
179 Implement support for dashed and dotted ellipses in pic. Based on
180 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
182 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
183 common_output::dashed_ellipse, common_output::dotted_ellipse): New
184 functions. Ellipse arcs are approximated with circle arcs.
185 * src/preproc/pic/common.h (common_output): Updated.
186 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
188 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
190 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
192 2003-07-06 Werner LEMBERG <wl@gnu.org>
194 Make grotty work on platforms which have unsigned char as the
195 default for char. Based on a patch by Thomas Klausner
198 * src/devices/grotty/tty.cpp (schar): New typedef.
199 Updated calls to declare_ptable and implement_ptable.
200 (glyph): Use schar for back_color_idx and fore_color_idx.
201 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
202 (tty_printer::tty_color, tty_printer::tty_printer,
203 tty_printer::color_to_idx, tty_printer::put_color): Updated.
205 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
207 * src/roff/nroff/nroff.sh: Add option -d for completeness.
208 * src/roff/nroff/nroff.man: Updated.
210 2003-07-05 Werner LEMBERG <wl@gnu.org>
212 * NEWS, tmac/groff_www.man: Updated.
213 * doc/Makefile.sub: Updated.
215 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
217 Implement support for multiple HTML output files.
219 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
220 -j command line option.
222 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
224 (file): New fields `new_output_file', `require_links',
226 (file::file): Updated.
227 (files::set_file_name, files::set_links_required,
228 files::are_links_required, files::is_new_output_file,
229 files::file_name, files::next_file_name): New functions.
230 (header_desc): New fields `no_of_level_one_headings',
232 (header_desc::header_desc): Updated.
233 (header_desc::write_headings): Handle multiple files.
234 (html_printer::write_header): Save file name in which header occurs.
235 (html_printer::determine_header_level): Possibly split files on
237 (html_printer::do_links, html_printer::troff_tag): Updated.
238 (html_printer::insert_split_file, html_printer::do_job_name,
239 html_printer::emit_link, html_printer::write_navigation,
240 html_printer::do_file_components): New functions.
241 (html_printer::~html_printer): Handle multiple files.
242 (main): Handle command line option `-j'.
244 * src/devices/grohtml/grohtml.man: Updated.
246 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
249 * tmac/www.tmac (JOBNAME): New macro.
250 * tmac/s.tmac (SH-NO-TAG): New macro.
251 (@SH): Call SH-NO-TAG.
254 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
256 * tmac/groff_mdoc.man: Improve documentation of punctuation
259 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
261 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
263 2003-07-03 Werner LEMBERG <wl@gnu.org>
265 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
267 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
269 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
272 (Fn, Fo): Reduce indentation in synopsis.
274 * tmac/doc-common (doc-check-depth): New macro.
275 (doc-end-macro, Sh, Ss): Use it.
276 (Cd): Fix behaviour in synopsis.
277 (In): Make it parsed and callable.
278 If not in the synopsis, represent the C header file enclosed in
280 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
281 Use minus, not hyphen.
283 * tmc/groff_mdoc.man: Updated.
285 2003-07-01 Werner LEMBERG <wl@gnu.org>
287 Integrated grap2graph, contributed by Eric S. Raymond.
289 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
291 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
292 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
294 2003-07-01 Colin Watson <cjwatson@debian.org>
296 * src/xditview/*.c: Add prototypes, fix return types, add includes.
297 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
299 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
301 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
303 2003-06-31 Werner LEMBERG <wl@gnu.org>
305 * doc/Makefile.sub (CLEANADD): Remove all files created by
306 running `make groff.{pdf,dvi}'.
308 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
311 2003-06-30 Werner LEMBERG <wl@gnu.org>
313 * Makefile.in (SHELL): Define as @SHELL@.
314 (mkinstalldirs): Use $(SHELL).
315 (MDEFINES): Add $(SHELL).
316 * Makefile.comm (SHELL): Removed.
318 2003-06-29 Werner LEMBERG <wl@gnu.org>
320 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
321 The X11 documentation files use them.
322 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
324 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
326 * tmac/e.tmac (@C): Handle .ad also.
328 2003-06-12 Werner LEMBERG <wl@gnu.org>
330 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
332 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
333 Assign `n' even here. It is possible to construct a node
334 immediately following an escape character:
342 2003-06-10 Werner LEMBERG <wl@gnu.org>
344 * README.WIN32: Removed.
347 2003-06-07 Werner LEMBERG <wl@gnu.org>
349 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
351 2003-06-05 Werner LEMBERG <wl@gnu.org>
353 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
354 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
356 2003-06-03 Werner LEMBERG <wl@gnu.org>
358 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
359 is done by the calling function.
361 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
363 * tmac/X.tmac: Fix definition of `em'.
365 2003-05-22 Werner LEMBERG <wl@gnu.org>
367 * src/roff/troff/input.cc (return_macro_request): Fix detection of
370 2003-05-18 Werner LEMBERG <wl@gnu.org>
372 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
373 to make items work which consist only of a tag.
375 2003-05-17 Werner LEMBERG <wl@gnu.org>
377 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
378 aren't stretched in a tag (this can fail with unformatted boxes).
379 Instead, insert a break and go back one line.
381 2003-05-16 Werner LEMBERG <wl@gnu.org>
383 * src/roff/troff/input.cc (return_macro_request): If called with
384 argument pop macro twice. We need this to trace `return'.
386 * tmac/trace.tmac: Handle `return'.
389 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
392 2003-05-15 Larry Kollar <kollar@alltel.net>
394 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
395 registers `FPS', `FVS', and `FPD'.
397 2003-05-15 Werner LEMBERG <wl@gnu.org>
399 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
402 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
404 * tmac/groff_mdoc.man: Slight improvements.
406 2003-05-03 Werner LEMBERG <wl@gnu.org>
408 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
409 `doc-header-space' after header line if register `cR' is set.
411 2003-05-02 Werner LEMBERG <wl@gnu.org>
415 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
417 * tmac/doc-common (Nd): Use \[em].
419 2003-05-01 Werner LEMBERG <wl@gnu.org>
421 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
422 doc-footer-space): Initialize to 0.5i.
423 (doc-setup-page-layout): Don't set doc-header-space and
426 2003-04-30 Werner LEMBERG <wl@gnu.org>
428 * REVISION: Set to 1.
430 * doc/pic.ms: Document possible problems with `figname'.
432 2003-04-29 Werner LEMBERG <wl@gnu.org>
434 Version 1.19 released
435 =====================
437 * VERSION: Set to 1.19.
438 * REVISION: Set to 0.
439 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
441 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
442 Define charset as `US-ASCII' in html output.
444 * tmac/www.tmac (ULE): Add missing scaling indicator.
446 * win32-diffs: Removed.
448 2003-04-28 Werner LEMBERG <wl@gnu.org>
450 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
452 Document how to insert discardable whitespace with `.ss'.
454 2003-04-27 Werner LEMBERG <wl@gnu.org>
456 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
457 work with plain TeX also.
459 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
461 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
463 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
466 2003-04-24 Werner LEMBERG <wl@gnu.org>
468 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
469 vbox with positive height and zero depth if in TeX mode.
471 * NEWS: Document glyph name changes for grodvi and grolj4.
473 2003-04-23 Werner LEMBERG <wl@gnu.org>
475 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
478 2003-04-21 Werner LEMBERG <wl@gnu.org>
480 HP-UX 10.20 has `snprintf' but it isn't declared.
482 * configure.ac: Add declaration test for snprintf.
483 * configure: Regenerated.
484 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
485 * src/include/config.hin: Regenerated.
487 2003-04-19 Werner LEMBERG <wl@gnu.org>
489 Add keyword `figname' to pic, specifying the name of the picture
490 box in TeX mode. Based on a patch from William J Poser
491 <wjposer@unagi.cis.upenn.edu>.
493 * src/preproc/pic/pic.y: New token `FIGNAME'.
494 (macro_name): New rule of type <str>.
495 (placeless_element): Handle `FIGNAME'.
496 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
497 * src/preproc/pic/main.cpp (graphname): New global variable.
498 (do_picture): Initialize `graphname'.
499 * src/preproc/pic/pic.h: Updated.
500 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
503 (tex_output::text): Beautify output.
504 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
505 `shaded' and `outlined' unconditionally.
506 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
509 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
510 greater is necessary.
512 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
514 Add option -r to soelim to avoid emission of `.lf' lines.
515 Add option -t to produces TeX comment lines instead of `.lf' lines.
517 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
520 (main): Handle `-r' and `-t'.
521 (set_location): Handle `raw_flag' and `tex_flag'.
522 * src/preproc/soelim/soelim.man, NEWS: Updated.
524 2003-04-17 Werner LEMBERG <wl@gnu.org>
526 * tmac/hyphenex.sh: Replaced with...
527 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
530 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
531 if --quiet is used for the configure script.
532 * configure: Regenerated.
534 2003-04-16 Werner LEMBERG <wl@gnu.org>
536 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
537 Add `const' to second argument.
538 (html_printer::add_table_end): Add `const' to argument.
539 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
540 `const' to arguments.
541 * src/devices/grohtml/html-text.h: Updated.
543 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
544 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
547 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
548 cast for integer constant.
550 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
551 (writeNbytes): Add `const' to first argument.
552 (writeString): Add `const' to argument.
553 (char_buffer::can_see): Add `const' to third argument.
554 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
556 * src/preproc/html/pushback.h: Updated.
558 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
559 (include_path_append): Add `const' to argument.
562 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
564 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
565 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
567 (unicode_decompose_init::unicode_decompose_init): Updated.
568 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
570 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
571 * src/roff/troff/input.cc (process_startup_file): Add `const' to
574 * tmac/hyphenex.sh: Make script more portable by using a here
577 2003-04-15 Werner LEMBERG <wl@gnu.org>
579 Renamed all `*.cc' files to `*.cpp'.
580 Updated all configuration files, makefiles, and documentation.
582 2003-04-14 Werner LEMBERG <wl@gnu.org>
584 * tmac/hyphenex.sh: Slight improvements.
586 2003-04-13 Werner LEMBERG <wl@gnu.org>
588 * font/devascii/R.proto, font/devcp1037/R.proto,
589 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
590 character slots with unnamed glyphs.
592 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
593 (an-first): New global variable.
594 (an-header): Emit vertical space between multiple man pages.
596 2003-04-11 Werner LEMBERG <wl@gnu.org>
598 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
601 2003-04-10 Werner LEMBERG <wl@gnu.org>
605 2003-04-10 Bernd Warken <bwarken@mayn.de>
607 * doc/webpage.ms: Improved.
609 2003-04-09 Werner LEMBERG <wl@gnu.org>
611 Add register \n[.height] which returns the value of \H.
612 Add register \n[.slant] which returns the value of \S.
614 * src/roff/troff/env.cc (init_env_requests): Implement.
615 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
618 2003-04-08 Werner LEMBERG <wl@gnu.org>
620 * tmac/html.tmac: Move some of the data into html-end.tmac.
621 Remove most of the character translations for eqn since html fonts
622 now cover those characters.
624 * tmac/html-end.tmac: New file.
625 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
626 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
627 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
629 2003-04-07 Werner LEMBERG <wl@gnu.org>
631 * man/groff_out.man: Document negative values of `N' if -Thtml is
634 2003-04-06 Werner LEMBERG <wl@gnu.org>
636 * Makefile.comm (depend.temp): Check location of YTABC.
638 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
640 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
642 (groff_bin_path): Rename to GROFF_BIN_PATH.
643 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
644 * doc/Makefile.in (TROFFBIN): New variable for troff
646 (GROFFBIN): New variable for groff binary path.
647 (groff_bin_path): Rename to GROFF_BIN_PATH.
648 (TROFF): Use TROFFBIN.
649 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
650 * doc/Makefile.sub (GROFFBIN): New variable for groff
652 (groff_bin_path): Rename to GROFF_BIN_PATH.
653 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
655 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
657 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
658 * Makefile.dev (all): Depend on DEVSCRIPTS.
659 (install_dev): Likewise.
660 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
662 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
663 (DEVGENSCRIPTS): New variable to hold generated scripts.
665 2003-04-05 Werner LEMBERG <wl@gnu.org>
667 * src/libs/libdriver/input.cc (IntArray::operator[],
668 IntArray::get_data): Remove meaningless `const' in return value.
670 * README.CVS: New file.
672 2003-04-04 Werner LEMBERG <wl@gnu.org>
674 Check for stdint.h in C++, not in C.
676 * aclocal.m4 (GROFF_STDINT_H): New function,
677 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
679 * configure, src/include/config.hin: Regenerated.
680 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
683 Fix handling of in grohtml. To do this, troff emits `N'
684 with a negative value, representing the width of the unbreakable
685 space (only for -Thtml). grohtml then converts this back to
686 and uses the value of N as its width.
688 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
689 unbreakable_space_node::tprint): Emit `N-<width>'.
690 * src/include/printer.h (printer::set_numbered_char): Make it
692 Make members `font_table' and `nfonts' protected instead of private.
693 * src/devices/grohtml/post-html.cc
694 (html_printer::set_numbered_char): New member function.
697 * src/libs/libgroff/maxfilename.cc:
698 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
700 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
703 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
705 * man/roff.man: Small fixes.
707 2003-04-03 Werner LEMBERG <wl@gnu.org>
709 Make groff independent from locale's numeric settings.
711 * configure.ac: Check for `setlocale'.
712 * configure, src/include/config.hin: Regenerated.
714 * src/include/lib.h: Handle HAVE_SETLOCALE.
716 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
717 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
718 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
721 * doc/groff.texinfo: Change dir category to `Typesetting'.
722 (Man font macros): Mention that there is no space between arguments
725 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
726 (*printer::change_color, *printer::change_fill_color): Add missing
729 2003-04-02 Werner LEMBERG <wl@gnu.org>
731 * src/devices/grohtml/html-table.cc (html_table::emit_col,
732 html_table::is_gap): Compute table widths after converting border
733 positions to avoid rounding errors.
735 2003-04-01 Werner LEMBERG <wl@gnu.org>
737 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
738 `space_emitted' properly.
740 2003-03-31 Werner LEMBERG <wl@gnu.org>
742 * src/devices/grohtml/html-table.cc: Fix column width calculation.
743 (html_table::set_linelength): Don't add 1.
744 (html_table::add_indent): Don't subtract 1.
746 * tmac/html.tmac: Set default page offset to zero.
748 2003-03-30 Werner LEMBERG <wl@gnu.org>
750 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
752 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
753 unbreakable_space_node::tprint): New functions.
754 (troff_output_file): Make space_char_hmotion_mode::tprint and
755 unbreakable_space_node::tprint to friends.
756 * src/roff/troff/node.h: Updated.
758 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
759 in the HTML standard).
761 2003-03-29 Werner LEMBERG <wl@gnu.org>
763 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
764 Otherwise, the following code
773 produces `x a' instead of `xa'. This is a temporary fix, disabling
774 font changes in diversions for -Thtml.
776 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
778 (an-do-tag-html): Merge with ...
779 (an-do-tag): This macro.
780 Change code slightly to circumvent grohtml bug.
781 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
783 * src/devices/grohtml/html-table.cc (html_table::emit_col,
784 html_table::is_gap): Round `width' properly.
786 * tmac/html.tmac: Provide some default layout parameters for
789 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
792 2003-03-28 Werner LEMBERG <wl@gnu.org>
794 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
796 2003-03-27 Werner LEMBERG <wl@gnu.org>
798 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
801 2003-03-20 Werner LEMBERG <wl@gnu.org>
803 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
805 * doc/groff.texinfo: Updated.
807 2003-03-19 Werner LEMBERG <wl@gnu.org>
809 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
810 TOKEN_END_TRAP>: Reset `have_input'.
812 2003-03-18 Werner LEMBERG <wl@gnu.org>
814 * src/roff/groff/groff.man: Mention groff_trace man page.
816 2003-03-16 Werner LEMBERG <wl@gnu.org>
818 * Makefile.in (LIBEXT): New variable to indicate the file extension
819 of library files. Computed heuristically from $(OBJEXT).
820 (MDEFINES): Add $(LIBEXT).
821 * Makefile.lib, Makefile.comm: Use it.
823 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
824 overlong lines into smaller chunks.
825 (get_binary): New function.
827 * src/utils/pfbtops/pfbtops.man: Updated.
829 2003-03-15 Colin Watson <cjwatson@debian.org>
831 * src/roff/groff/groff.man: Minor syntax fix.
833 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
835 * src/devices/grops/ps.cc (ps_printer::media_set,
836 ps_printer::~ps_printer): Handle zero paper width and length.
838 2003-03-13 Werner LEMBERG <wl@gnu.org>
840 Add options -p and -l to grodvi.
842 * src/devices/grodvi/dvi.cc: Include paper.h.
843 (landscape_flag, user_paper_length, user_paper_width): New global
845 (dvi_printer::begin_page): Emit `papersize' special.
846 Set color after initialization of `cur_h' and `cur_v'.
847 (main): Add options `-l' and `-p'.
848 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
849 * src/devices/grodvi/grodvi.man, NEWS: Updated.
851 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
853 2003-03-12 Werner LEMBERG <wl@gnu.org>
855 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
856 * man/groff_tmac.man: This man page.
857 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
860 * tmac/X.tmac: Don't load pspic.tmac.
862 2003-03-11 Werner LEMBERG <wl@gnu.org>
864 Make variable `pr' local to libdriver/input.cc. Based on a patch
865 by Bernd Warken <bwarken@mayn.de>.
867 * src/include/driver.h (pr): Removed.
869 * src/libs/libdriver/input.cc (pr): New global variable.
870 (do_file): Deallocate `pr'.
871 * src/libs/libdriver/printer.cc (pr): Removed.
873 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
874 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
875 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
876 (main): Don't delete `pr'.
878 2003-03-10 Werner LEMBERG <wl@gnu.org>
880 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
881 * tmac/papersize.tmac: New file.
882 * tmac/troffrc: Include `papersize.tmac'.
883 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
884 * tmac/an-old.tmac: Set LT to LL by default.
886 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
887 doc/groff.texinfo: Updated.
889 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
890 bug which caused all odd iso papers to have wrong dimensions.
892 * src/devices/grops/ps.cc (user_paper_width): New global variable.
893 (main) <'p'>: Set `user_paper_width' also.
894 (ps_printer::media_width, ps_printer::media_height): Use values
895 given with option `-p'.
897 2003-03-09 Werner LEMBERG <wl@gnu.org>
899 * src/include/nonposix.h: Provide default for SET_BINARY.
901 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
902 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
905 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
906 (main): Treat \r\n as \n.
908 2003-03-08 Werner LEMBERG <wl@gnu.org>
910 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
911 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
913 2003-03-07 Werner LEMBERG <wl@gnu.org>
915 Added support to access more than 256 glyphs in Type 1 fonts.
917 * src/devices/grops/ps.cc (subencoding): New structure.
918 (style): Add `sub' field.
920 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
921 Add `set_subencoding', `get_subfont' and `encode_subfont' member
924 (ps_printer::set_char): Use `set_subencoding'.
925 (make_subencoding_name): New function.
926 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
927 (ps_printer::~ps_printer): Emit subencoding definitions.
929 * src/devices/grops/psrm.cc (valid_input_table): New array to
930 properly support EBCDIC.
931 (white_space): Add `\f'.
932 (ps_get_line): Change first argument to be of type `string &'.
934 This allows to get lines of arbitrary length.
935 Use `valid_input_table'.
936 Remove warning about non-conforming PS line length. This seems
937 not to be of great importance -- for example, dvips don't emit
939 (PS_LINE_MAX): Removed.
940 (matches_comment): Change first argument to be of type `string &'.
942 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
944 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
945 %AGL_to_unicode, %default_ligatures): New hash tables.
946 Read all map entries.
947 Add unencoded characters.
948 Check for default ligatures if there are no `L' entries.
949 Print all kern entries.
950 Print all characters in charset.
951 * src/utils/afmtodit/afmtodit.man: Updated.
953 * font/devps/*: Regerated all fonts.
955 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
956 of characters, just use `.trin'. Otherwise the mapping depends
957 on the font encoding.
958 * tmac/ps.tmac: Add `fi' and `fl'.
959 Improve `Fi' and `Fl'.
960 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
961 * tmac/Xps.tmac: Fix `em'.
965 2003-03-04 Werner LEMBERG <wl@gnu.org>
967 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
970 2003-03-03 Werner LEMBERG <wl@gnu.org>
972 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
974 * font/devps/generate/textmap: Remove entry `similarequal'.
975 * font/devps/symbolmap: Updated.
977 2003-03-02 Werner LEMBERG <wl@gnu.org>
979 * src/libs/libgroff/font.cc (font::load): Fix error message for
982 * src/devices/grops/grops.man: Improve documentation of the -b
985 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
986 `ascii' and `cp1047'.
988 2003-03-01 Werner LEMBERG <wl@gnu.org>
990 Document composite glyphs and the `composite' request.
992 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
994 2003-02-28 Werner LEMBERG <wl@gnu.org>
996 * font/devdvi/generate/ec.map: Add some more Unicode entities.
997 * font/devdvi/*EC: Updated.
999 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1000 * tmac/latin1 (latin1-tr): Undo any previous mapping.
1001 * tmac/troffrc: Load `composite.tmac'.
1002 * tmac/Makefile.sub (NORMALFILES): Updated.
1004 * doc/groff.texinfo (Input Encodings): New section.
1007 2003-02-27 Werner LEMBERG <wl@gnu.org>
1009 * doc/texinfo.tex: New version 2003-02-11.06.
1011 * tmac/doc-common (Dt): Don't emit warning for unknown section.
1012 * tmac/groff_mdoc.man: Fix description of `Dt'.
1014 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
1016 * font/devps/prologue.ps: Fix for included Postscript that does
1017 a setpagedevice -- which is now safely ignored.
1021 * src/devices/grops/ps.cc: Now sets the page size in the generated
1022 document. This is done in two ways: Via a %%-comment for gv and
1023 the like, and via a PageSize and setpagedevice for programs that
1024 understands Postscript proper, like ps2pdf.
1026 * src/devices/grops/ps.h: New broken-flag to avoid page size
1027 definition, if required.
1029 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1031 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1032 Not really necessary due to the fix in prologue.ps, but cleaner:
1033 Such information does not belong in an .eps file.
1035 * doc/Makefile.sub: See doc/Makefile.in.
1037 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
1039 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1040 instead of P1 since the latter is broken in some versions of netpbm.
1041 * configure: Updated.
1043 2003-02-26 Larry Kollar <kollar@alltel.net>
1045 Make man pages more customizable.
1047 * tmac/an-old.tmac (FT): New register holding footer distance from
1049 (HF): New string holding the default heading font.
1050 (TH): Handle registers `IN' and `SN' set on the command line.
1052 (PT, BT): New strings to customize header and footer lines.
1053 (an-header, an-footer): Use them.
1055 * tmac/groff_man.man: Document changes.
1057 * doc/groff.texinfo: Document man changes.
1058 Document Ultrix extensions of man.
1060 2003-02-26 Werner LEMBERG <wl@gnu.org>
1062 * src/roff/troff/input.cc (do_width, do_if_request): Reset
1063 `have_input' after changing back to old environment.
1065 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1066 function up to be defined before first call. This is necessary to
1067 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1069 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1070 the default font directory also. Based on a patch from James
1071 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1072 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1073 * src/utils/afmtodit/afmtodit.man: Document it.
1077 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1079 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
1081 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1082 (GROFF_PNMTOPS_NOSETPAGE): New macro.
1083 * configure.ac: Use it.
1084 * configure: Regenerated.
1085 * Makefile.in: Updated.
1087 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1088 (CLEANADD): Add www.tmac-sed.
1089 (pnmtops_nosetpage): Define default.
1090 (install_data): Handle www.tmac-sed and substitute
1091 @PNMTOPS_NOSETPAGE@.
1092 (stamp-sed): Add www.tmac.
1093 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1094 It now breaks URLs at suitable places.
1095 (www:substring_ok): New register set by...
1096 (www:@test_substring): New macro.
1097 (www:error): New alias to www-error.
1098 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1100 (URL): Use www:url_breaks.
1101 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1102 (CDS, CDE): New macros.
1104 2003-02-25 Werner LEMBERG <wl@gnu.org>
1106 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1109 2003-02-24 Werner LEMBERG <wl@gnu.org>
1111 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1112 can be negative also.
1114 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1116 (read_char_table): Avoid negative ascenders.
1117 (output_charset): Add cast.
1118 * font/devlj4/*: Regenerated.
1120 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1123 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1124 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1126 * font/devdvi/*: Regenerated.
1128 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
1129 normal width, while the previously used characters (U+2329 and
1130 U+232A) are classified as wide due to canonical equivalence with the
1131 CJK punctuation characters U+3008 and U+3009.
1133 * font/devutf8/R.proto: Updated.
1134 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1136 * man/groff_char.man: Simplify handling of table traps by
1137 introducing `start block' and `end block' macros.
1138 (Ns, Ne, 2s, 2e, Ds, De): New macros.
1139 (DL): Make it work with Unix troff also.
1140 Fix code values of `la' and `ra'.
1142 * tmac/dvi.tmac: Define `<>' for CW and CWI.
1144 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
1146 * src/devices/grohtml/post-html.cc (element_list::~element_list):
1147 New destructor, fixing a major memory leak.
1149 2003-02-22 Werner LEMBERG <wl@gnu.org>
1151 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1152 to be in conformance with Unicode 3.0 and newer.
1154 * font/devlj4/generate/text.map: Add `Eu'.
1155 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1156 * font/devlj4/S: Regenerated.
1158 * man/groff_char.man: Completely rewritten.
1160 * doc/groff.texinfo: Fix description of request and macro arguments.
1162 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
1166 * src/devices/grohtml/html-table.cc (html_table::~html_table):
1167 Deallocate `columns' list.
1168 * src/devices/grohtml/post-html.cc (char_block::~char_block):
1170 (text_glob::text_glob_html, text_glob::text_glob_special,
1171 text_glob::text_glob_line, text_glob::text_glob_auto_image,
1172 text_glob::text_glob_tag): Avoid memory leaks.
1173 (text_glob::remember_table): Free memory before reassigning.
1175 2003-02-19 Werner LEMBERG <wl@gnu.org>
1177 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1178 alias `hbar'), the Planck constant over two pi.
1180 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1181 `+e' for position 34.
1182 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1183 `u2662' and `u2661'.
1184 * font/devdvi/{MI,S}: Regenerated.
1185 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1186 * font/devlbp/*: Add `hbar' alias.
1187 * font/devlj4/generate/special.map: Ditto.
1188 * font/devlj4/S: Regenerated.
1189 * font/devps/generate/symbolchars: Add `+e'.
1190 * font/devps/generate/textmap: Fix PS name for `-h'.
1192 * font/devps/symbolmap: Regenerated.
1194 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1196 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1198 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1201 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1203 * tmac/tty-char.tmac: Add `+e'.
1205 2003-02-17 Werner LEMBERG <wl@gnu.org>
1207 Another round trying to really fix problems with `have_input'.
1209 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1210 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1212 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1213 handling if both foreground and background colors are default.
1215 * doc/groff.texinfo (Debugging): Document .lf differences to
1218 2003-02-16 Werner LEMBERG <wl@gnu.org>
1220 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1221 null-bytes in created string.
1223 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1224 alias_macro, lookup_request): Improve warning messages.
1226 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1228 Free `last_image_filename'.
1230 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1232 (imageList::createPage, imageList::createImage): Use `free', not
1234 (imageItem::~imageItem): Free `imageName'.
1235 (addRegDef): Use `strsave', not `strdup'.
1236 (get_resolution): Free `pathp'.
1238 2003-02-15 Werner LEMBERG <wl@gnu.org>
1240 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1243 2003-02-14 Werner LEMBERG <wl@gnu.org>
1245 Add memory management for colors to deallocate unnamed colors
1248 * src/include/color.h (color): New members `free_list' and `next'.
1249 New member functions `new' and `delete'.
1251 * src/libs/libgroff/color.cc: Implement it.
1253 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1254 for array size of new operator.
1256 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1257 redundant comparison.
1259 * src/roff/troff/input.cc (word_space_node::reread,
1260 hmotion_node::reread): Avoid warning about unused parameter.
1261 (reset_output_registers): Remove redundant parameter.
1262 (define_color): Undo change 2003-02-12.
1264 * src/roff/troff/reg.h: Updated.
1266 * src/roff/troff/node.cc (troff_output_file::really_print_line,
1267 output_file::put_filename, real_output_file::really_put_filename,
1268 ascii_output_file::really_print_line,
1269 break_char_node::get_hyphen_list): Avoid warning about unused
1271 (suppress_node::tprint): Updated.
1273 * configure.ac: Check declaration for rand() and srand().
1274 * configure: Regenerated.
1276 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1278 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1281 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1282 to avoid compiler warnings.
1284 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1287 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1289 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1291 Updated all callers.
1293 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1295 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1296 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1298 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1299 Parameter is unused.
1300 (html_printer::add_table_end): Define parameter conditionally.
1301 * src/devices/grohtml/output.cc (simple_output::special): Parameter
1304 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1305 (lbp_printer::set_char): Last parameter is unused.
1307 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1309 2003-02-13 Werner LEMBERG <wl@gnu.org>
1311 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1312 Make \D'f ...' move horizontally again for backwards compatibility.
1313 Replace it with \D'Fg ...' where appropriate to avoid dependency
1314 on horizontal resolution.
1316 * src/roff/troff/input.cc (do_get_long_name): New function.
1317 (get_long_name): Call it.
1319 (read_draw_node): Handle `\D'Fx ...' by calling ...
1320 (read_color_draw_node): New function.
1322 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1324 Pass it to `do_get_long_name' which is used instead of
1327 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1328 unnecessary value guard.
1329 (parse_D_command) <'f'>: Add horizontal shift.
1331 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1332 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1333 (FILL_MAX): Removed.
1335 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1338 2003-02-12 Werner LEMBERG <wl@gnu.org>
1340 * src/roff/troff/input.cc (do_name_test, do_expr_test,
1341 do_zero_width): Push `\n' if closing delimiter is missing.
1343 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1344 <'F'>: Make \F non-transparent at the beginning of line.
1345 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1346 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1349 (define_color): Free color in case of reassignment.
1351 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1352 @DefescListEnd): Use @Var, not @var.
1355 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1357 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1358 `shaded' and `outlined' arrays.
1359 (object_spec::object_spec): Initialize `shaded' and `outlined'.
1360 (graphic_object::set_fill_color, graphic_object::set_outline_color):
1362 (closed_object::set_fill_color): Ditto.
1363 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1365 (troff_output::reset_color): Use a_delete instead of free.
1366 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1368 2003-02-11 Werner LEMBERG <wl@gnu.org>
1370 * doc/groff.texinfo: Improve documentation of `ad'.
1371 Document that \D'f...' is dependent on the horizontal resolution.
1372 * man/groff_diff.man: Improve documentation of \D'f...'.
1374 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1375 compensating \h'...' for \D'f ...' since the latter no longer moves
1377 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1379 2003-02-10 Werner LEMBERG <wl@gnu.org>
1381 Improve error messages for `x F' (and `F') commands.
1383 * src/include/error.h: Add declaration for
1384 `current_source_filename'.
1385 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1386 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1387 parameter for source file string.
1388 Updated all callers.
1390 * src/libs/libdriver/input.cc: Add `current_source_filename'.
1391 (remember_source_filename): New function.
1392 (parse_x_command <'F'>, do_file <'F'>): Use it.
1394 2003-02-09 Werner LEMBERG <wl@gnu.org>
1396 Make grotty not emit warnings about unknown colors more than
1399 * src/devices/grotty/tty.cc: Include `ptable.h'.
1400 (TTY_MAX_COLORS): Removed.
1401 (DEFAULT_COLOR_IDX): Defined to -1.
1402 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1403 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1404 Change `tty_colors' to be a ptable.
1405 First arg of `put_color' is now `char'.
1406 New functions `make_rgb_string' and `tty_color'.
1407 (tty_printer::tty_printer): Use `tty_color'.
1408 (tty_printer::color_to_idx): Return value is now `char'.
1411 * src/include/color.h (color): Add `print_color' member function.
1412 * src/libs/libgroff/color.cc (color::print_color): Implement it.
1414 2003-02-08 Werner LEMBERG <wl@gnu.org>
1418 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1421 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1422 assume that value has been allocated with `new[]', thus use
1423 `a_delete' for deallocation.
1425 * src/libs/libdriver/input.cc (get_integer_arg,
1426 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1429 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1430 * src/libs/libgroff/nametoindex.cc
1431 (character_indexer::named_char_index): Use `new <type>[1]'.
1433 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1435 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1436 (split_text): Use `a_delete'.
1438 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1441 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1442 harmless memory leak.
1443 (hyphen_trie::read_patterns_file): Initialize `buf'.
1444 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1445 Initialize `current_fill_color'and `current_glyph_color'.
1446 * src/roff/troff/glyphuni.cc
1447 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1448 * src/roff/troff/uniuni.cc
1449 (unicode_decompose_init::unicode_decompose_init): Ditto.
1450 * src/roff/troff/uniglyph.cc
1451 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1453 2003-01-26 Werner LEMBERG <wl@gnu.org>
1455 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1456 `access' before calling `unlink'.
1457 (do_file): Handle __EMX__.
1459 * src/include/nonposix.h: Handle __EMX__.
1461 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1462 (fontpath,tmacpath): Use it.
1464 Sorted alphabetically.
1466 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1468 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1471 2003-01-27 Werner LEMBERG <wl@gnu.org>
1473 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1474 New files, copied from gnulib.
1475 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1476 * configure.ac: Updated.
1477 * configure: Regenerated.
1479 * src/include/config.hin: Regenerated.
1480 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1481 Don't define `strcasecmp' as `strcmp'.
1482 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1483 Dont define `strncasecmp' as `strncmp'.
1485 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1488 2003-01-26 Werner LEMBERG <wl@gnu.org>
1490 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1493 2003-01-25 Werner LEMBERG <wl@gnu.org>
1495 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1497 2003-01-24 Werner LEMBERG <wl@gnu.org>
1499 Add US-english hyphenation exceptions (converted from Barbara
1500 Beeton's hyphenation exception log reports which appear irregularly
1503 * tmac/hyphen.us: Updated to latest version.
1504 * tmac/README: Updated.
1505 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1506 * tmac/troffrc: Load `hyphenex.us'.
1507 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1508 * doc/groff.texinfo: Updated.
1510 2003-01-23 Werner LEMBERG <wl@gnu.org>
1512 Improve hyphenation slightly. This is a first step in redesigning
1513 the hyphenation algorithm to make it more flexible (e.g. allowing
1514 kerns and ligatures between the hyphenation character and the
1515 following character -- while not used normally in English, other
1516 languages like German would benefit).
1518 * src/roff/troff/env.cc (environment::hyphenate_line): Use
1519 assertion instead of if-clause.
1520 Let `get_hyphen_list' return the number of involved characters in
1521 the hyphenation pattern instead of computing it directly (which
1522 often yields too small values).
1523 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1524 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1527 2003-01-22 Werner LEMBERG <wl@gnu.org>
1529 Fixing a bug which caused groff to hang if the hyphenation exception
1530 dictionary tried to grow.
1532 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1533 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1534 pointer to dictionary.
1536 2003-01-20 Werner LEMBERG <wl@gnu.org>
1538 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1539 negative left italic correction.
1540 * src/utils/afmtodit/afmtodit.man: Document it.
1542 * font/devps/generate/Makefile (RFLAG): Add `-m'.
1543 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1544 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1548 2003-01-16 Werner LEMBERG <wl@gnu.org>
1552 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
1554 * src/preproc/refer/refer.man: Mention REFER environment variable.
1556 2003-01-05 Werner LEMBERG <wl@gnu.org>
1558 Similar to \[is], the square root glyph (\[sr]) and the square root
1559 extension glyph (\[radicalex]) are now text symbols. The new
1560 mathematical versions are called \[sqrt] and \[sqrtex],
1563 * font/devX*/S: Regenerated.
1564 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1565 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1566 * font/devdvi/EX, font/devdvi/S: Regenerated.
1567 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1568 * font/devlj4/generate/special.map: Add `sqrt'.
1569 * font/devlj4/S: Regenerated.
1570 * font/devps/generate/textmap: Add `sqrt'.
1571 * font/devps/S, font/devps/symbolmap: Regenerated.
1573 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1574 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1575 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1576 overlap horizontally.
1578 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1579 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1582 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1583 and `sqrtex' are overlapping glyphs.
1585 2003-01-04 Werner LEMBERG <wl@gnu.org>
1587 * font/devdvi/generate/texsy.map: Add `is'.
1588 * font/devps/symbolmap: Regenerated.
1589 * font/devdvi/*TC, MI, S: Regenerated.
1591 * tmac/dvi.tmac: Remove `is'.
1593 2003-01-03 Werner LEMBERG <wl@gnu.org>
1595 `is' is now a text symbol (only relevant for dvi). The math variant
1596 can be accessed with `integral'.
1598 * font/devX*/S: Regenerated.
1599 * font/devdvi/generate/texex.map: Remove `is'.
1600 * font/devdvi/EX: Updated.
1601 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1602 * font/devlj4/generate/special.map: Ditto.
1603 * font/devlj4/S: Regenerated.
1604 * font/devps/generate/textmap: Add `integral'.
1605 * font/devps/S: Regenerated.
1607 * tmac/dvi.tmac: Define `is'.
1609 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1611 * src/preproc/tbl/main.cc (process_format): Fix error message.
1613 2003-01-02 Werner LEMBERG <wl@gnu.org>
1615 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1616 * font/devps/textmap: Fix entries for `ne' and `nc'.
1617 * font/devps/symbolmap: Regenerated.
1619 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1620 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1621 `38', `58', `78', `-+', `|=', `nc', `ne'.
1623 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1624 Use `schar' for `aq'.
1625 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1626 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1627 * tmac/tty.tmac: Add `ne'.
1629 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1630 for fallback glyphs.
1632 2002-12-29 Werner LEMBERG <wl@gnu.org>
1636 * font/devX*/*: Regenerated.
1637 * font/devdvi/generate/ec.map: Remove `eq'.
1638 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1639 Assign `|=' to position 39.
1640 * font/devdvi/*EC, S: Regenerated.
1641 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1642 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1643 Assign `|=' to position 549.
1644 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1646 Add `uni2243' for `|='.
1648 * tmac/ec.tmac: Add `eq'.
1649 * tmac/dvi.tmac: Add `=~'.
1650 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1653 2002-12-21 Werner LEMBERG <wl@gnu.org>
1655 * font/devdvi/generate/tc.map: Remove `**'.
1656 * font/devdvi/*TC: Regenerated.
1657 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
1659 * font/devutf8/NOTES: Updated.
1661 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
1662 Don't give default parameter to `set_macro'.
1663 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
1664 instead of `set_macro'.
1665 (charinfo::setx_macro): Implement it.
1666 (charinfo::set_macro): Don't change `mode'.
1668 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
1669 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
1670 * tmac/dvi.tmac: Define `!=' with `.schar'.
1672 2002-12-20 Werner LEMBERG <wl@gnu.org>
1674 * font/devX*/S: Regenerated.
1675 * font/devdvi/generate/ec.map: Remove `pl'.
1676 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
1677 * font/devdvi/*{TC,EC}: Regenerated.
1678 * font/devhtml/R.proto: Add `-+'.
1679 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
1680 * font/devlbp/*: Remove `or'.
1681 * font/devlj4/generate/special.map: Remove `or'.
1682 * font/devlj4/S: Regenerated.
1683 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
1684 `seveneighths', `threeeighths'.
1686 Replace `minusplus' with `uni2213'.
1687 * font/devps/symbolmap: Regenerated.
1688 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
1691 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
1693 * src/roff/troff/node.cc (troff_output_file::put_char_width):
1694 Call glyph_color and fill_color even if tcommand_flag isn't set.
1695 (make_node, node::add_char): Check not ci->is_fallback but
1698 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
1699 * tmac/ec.tmac: Add .rchar entry for `f/'.
1700 Don't remove `12', `14', `34'.
1701 Define `pl' to be always roman.
1702 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
1703 Define `18', `38', `58', `78'.
1704 * tmac/tty.tmac: Add `-+'.
1705 * tmac/dvi.tmac: Define `f/'.
1706 (dvi-frac): Use `f/'.
1707 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
1708 Define `18', `38', `58', `78'.
1710 2002-12-15 Colin Watson <cjwatson@debian.org>
1712 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
1714 2002-12-10 Werner LEMBERG <wl@gnu.org>
1716 Add glyph `tno', a textual variant of `no'.
1718 * font/devX*/*: Regenerated.
1719 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
1720 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
1721 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
1722 * font/devdvi/*: Regenerated.
1723 * font/devlbp/*: Add `tno'.
1724 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
1725 * font/devlj4/*: Regenerated.
1726 * font/devps/generate/textmap: Replace `no' with `tno'.
1727 * font/devps/generate/symbolchars: Add `no'.
1728 * font/devps/*: Regenerated.
1730 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
1732 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
1733 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
1737 * tmac/dvi.tmac: Replace most `\\' with `\E'.
1738 Add definition for `sd'.
1739 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
1741 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
1743 2002-12-08 Werner LEMBERG <wl@gnu.org>
1745 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
1746 mode to avoid rounding errors.
1747 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
1749 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
1750 src/roff/troff/troff.man: Improve documentation of -T.
1752 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
1754 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
1755 (run_pipeline) [_WIN32]: Provide working function without `fork'.
1757 2002-12-06 Werner LEMBERG <wl@gnu.org>
1759 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
1760 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
1761 Scaling Euro.sansserif glyphs down to have the same height as
1763 Removed unnecessary points; added some extrema.
1765 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1768 2002-12-04 Werner LEMBERG <wl@gnu.org>
1770 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
1771 and `Euro.symbol.bold.slanted'.
1772 Improve some glyph offsets and widths.
1773 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1775 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
1777 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
1780 * tmac/europs.tmac: Updated to new glyph indices.
1781 Use Euro.symbol for font familiy `A'.
1783 * doc/groff.texinfo: Minor improvements.
1785 2002-12-02 Werner LEMBERG <wl@gnu.org>
1787 * font/devdvi/generate.tc.map: s/%O/%0/.
1788 * font/devdvi/*TC: Regenerated.
1790 * src/roff/troff/div.cc (init_div_requests): Sorted.
1792 * tmac/dvi.tmac: Remove `Ye'.
1793 * tmac/ec.tmac: Remove `Ye'.
1794 Add .rchar entry for `de'.
1796 * man/groff.man, man/groff_diff.man: Document register `.pe'.
1797 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
1800 2002-11-30 Werner LEMBERG <wl@gnu.org>
1802 Add PS font for various Euro glyphs.
1804 * font/devps/generate/freeeuro.sfd: New master font file for
1806 * font/devps/generate/sfdtopfa.pe: New conversion script for
1808 * font/devps/generate/Makefile (FONTS): Add `EURO'.
1809 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
1810 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
1812 * font/devps/EURO: Generated from `freeeuro.afm'.
1813 * font/devps/download: Add `freeuro.pfa'.
1814 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
1817 * tmac/europs.tmac: New file.
1818 * tmac/ps.tmac: Include `europs.tmac'.
1819 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
1821 2002-11-29 Werner LEMBERG <wl@gnu.org>
1823 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
1824 * font/devdvi/S: Regenerated.
1825 * font/devhtml/R.proto: Fix `CR' and `ci'.
1827 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
1829 * font/devps/symbolmap: Regenerated.
1830 * font/devutf8/R.proto: Fix `CR' and `ci'.
1832 * font/devutf8/NOTES: Updated.
1834 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
1837 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1839 * tmac/dvi.tmac: Add `lh' and `rh'.
1840 * tmac/Xps.tmac: Fix `lh' and `rh'.
1841 * tmac/X.tmac: Add `OK'.
1842 * tmac/lj4.tmac: Ditto.
1844 2002-11-24 Werner LEMBERG <wl@gnu.org>
1846 * font/devX*/S: Regenerated.
1847 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
1848 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
1849 * font/devdvi/generate/texsy.map: Remove `or' glyph.
1850 * font/devdvi/S: Regenerated.
1851 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
1852 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
1853 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
1854 `bracketleftbt', `bracketrighttp', `bracketrightex',
1855 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
1856 `braceex', `braceleftex', `bracerightex', `bracerighttp',
1857 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
1859 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
1860 * font/devutf8/NOTES: Updated.
1861 * font/devlj4/generate/special.map: Add glyph `braceex'.
1862 * font/devlj4/S: Regenerated.
1864 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
1866 2002-11-14 Werner LEMBERG <wl@gnu.org>
1868 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
1871 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1873 * doc/texinfo.tex: New version from texinfo 4.3.
1874 * doc/groff.texinfo: Updated for texinfo 4.3.
1875 Use @tie{} where appropriate.
1876 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
1877 * font/devdvi/generate/tc.map: Remove `rn'.
1878 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
1879 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
1881 * font/devX100/*, font/devX100-12/*, font/devX75/*,
1882 font/devX75-12/*: Regenerated.
1884 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
1885 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
1886 Improve definition of `an'.
1887 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
1889 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
1890 * tmac/X.tmac: Add definition for `or'.
1891 * tmac/Xps.tmac: Undo change 2002-11-05.
1892 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
1894 2002-11-11 Werner LEMBERG <wl@gnu.org>
1896 * src/roff/troff/node.cc (troff_output_file::put_char): Always
1899 2002-11-10 Werner LEMBERG <wl@gnu.org>
1901 Added three new requests `schar', `fschar', and `rfschar'. `schar'
1902 defines a glyph which is searched after the check for fonts declared
1903 with `.special' (and before the check for all mounted special
1904 fonts). `fschar' defines a glyph for a particular font which is
1905 searched after the check for fonts declared with `.fspecial' (and
1906 before the check for fonts declared with `.special'). `rfschar'
1907 removes glyphs defined with `fschar'.
1909 * src/roff/troff/token.h (char_mode): New enum.
1910 Declare do_define_character.
1911 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
1913 (charinfo::is_fallback): Updated.
1914 (charinfo::is_special): New method.
1915 * src/roff/troff/input.cc (do_define_character): Add and use
1916 optional second parameter used as a prefix for font-specific glyph
1918 (define_character, define_fallback_character): Updated.
1919 (define_special_character): New function.
1920 (init_input_requests): Add `schar'.
1921 (charinfo::charinfo, charinfo::set_macro): Updated.
1922 * src/roff/troff/node.cc: Include `stringclass.h'.
1923 (make_glyph_node): Handle special glyphs defined with `.schar' and
1925 (define_font_special_character, remove_font_special_character): New
1927 (init_node_requests): Sorted.
1928 Add `fschar' and `rfschar'.
1929 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1930 Document new requests.
1932 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
1933 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
1935 2002-11-08 Werner LEMBERG <wl@gnu.org>
1937 Added new font `SC' (cmtex10) to devdvi.
1939 * devdvi/generate/Makefile (FONTS): Add `SC'.
1941 * devdvi/generate/textex.map: New map file for cmtex.
1943 * devdvi/Makefile.sub (DEVFILES): Updated.
1944 * tmac/dvi.tmac: Add fspecial entries for SC.
1945 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
1946 found before `S' since the font position of `SC' is lower due to the
1947 gaps in DESC's `font' line.
1948 * tmac/ec.tmac: Add a `special' call.
1951 * font/devhtml/R.proto: Remove double entry for `ti'.
1952 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
1953 * tmac/tty-char.tmac: Remove entry for `bq'.
1954 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
1955 * tmac/ec.tmac: Don't remove `aq' glyph.
1956 * tmac/X.tmac: Fix entry for `em'.
1957 Add entries for `fo' and `fc'.
1958 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
1960 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
1961 documentation of `special' and `fspecial' requests.
1963 2002-11-05 Werner LEMBERG <wl@gnu.org>
1965 * font/devascii/R.proto, font/devcp1047/R.proto,
1966 font/devlatin1/R.proto: Remove entry for `.i'.
1967 * font/devdvi/generate/textt.map: Add entry for `ad'.
1968 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
1969 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
1970 We need this for getting kerning values to compose `/l' and `/L'.
1971 * font/devdvi: Regenerated font definition files for CM fonts.
1972 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
1973 * font/devutf8/R.proto: Ditto.
1974 Remove double entry for `ti'.
1976 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
1977 for (groff) ligatures, `la', and `ra'.
1978 Add "'C", "'c", `IJ', and `ij'.
1979 Remove double entry for `ti'.
1980 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
1982 Add "'C", "'c", `IJ', and `ij'.
1983 Fix entries for (groff) ligatures, `la', and `ra'.
1985 * tmac/ps.tmac (ps-achar): New macro.
1986 Define "'c" and "'C".
1987 * tmac/tty.tmac: Add entry for `.i'.
1988 * tmac/X.tmac (X-achar): New macro.
1989 Define "'c", "'C", and `:Y'.
1990 Add entries for `IJ' and `ij'.
1991 * tmac/Xps.tmac (Xps-achar): New macro.
1992 Define "'c" and "'C".
1993 Add entries for `IJ' and `ij'.
1994 * tmac/lbp.tmac (lbp-achar): New macro.
1995 Add fallback characters for all groff ligatures and many other
1997 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
1998 Add entries for `/l' and `/L'.
1999 Define "'c" and "'C".
2000 Add entries for `IJ' and `ij'.
2002 2002-11-02 Larry Kollar <kollar@alltel.net>
2004 * PROBLEMS: Document how to solve Mac OS X compilation problems.
2006 2002-11-02 Werner LEMBERG <wl@gnu.org>
2008 Adding support for composite glyphs: \[xxx yyy ...] and the
2009 `composite' request.
2011 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2012 to Unicode-based glyph names.
2013 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2014 glyph names to groff glyph names.
2015 * src/roff/troff/uniuni.cc: New file for canonically decomposing
2016 Unicode-based glyph names.
2017 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2018 for handling Unicode glyph names.
2019 * src/roff/troff/input.cc: Include unicode.h.
2020 (composite_glyph_name): New function.
2021 (token::next) <'['>: Handle Unicode glyph names and composite
2023 (composite_dictionary): New dictionary for the `composite' request.
2024 (composite_request): Implement `composite' request.
2025 (init_input_requests): Add `composite'.
2026 Alphabetically sorted.
2027 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2029 (init_env_requests): Alphabetically sorted.
2030 Removed `tas' and `tar' (already commented out).
2031 * src/roff/troff/Makefile.sub: Updated.
2033 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
2035 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2038 2002-10-29 Werner LEMBERG <wl@gnu.org>
2040 Fix computation of .trunc register. Additionally, its value (and
2041 the value of the .ne register) is now always set before entering the
2044 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2045 `needed_space' before calling `space'.
2046 (top_level_diversion::space): Remove special code for 'sp before the
2048 Call `begin_page' with the discarded space as a parameter.
2049 (top_level_diversion::begin_page): Add optional parameter to set
2051 * src/roff/troff/div.h: Updated.
2053 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2056 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2057 (LP): Remove superfluous call to `br'.
2058 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2059 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2061 2002-10-26 Werner LEMBERG <wl@gnu.org>
2063 * tmac/doc-ditroff: Remove useless switch/variable -rC.
2064 (doc-setup-header): Don't set page register `%'.
2065 * tmac/doc-nroff: Remove variable `C'.
2066 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2067 (doc-setup-header): Don't set page register `%'.
2069 * tmac/doc-common (doc-header): Call `ns'.
2070 (doc-paragraph): Protect .sp with .br so that it survives traps
2071 possibly set by the user.
2072 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2074 * tmac/doc*: Replace ' with . for consistency if no effect.
2076 2002-10-26 Werner LEMBERG <wl@gnu.org>
2078 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2079 so that it survives traps possibly set by the user.
2081 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2082 (troff_output_file::set_font): Call flush_tbuf if necessary.
2083 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2084 flush_tbuf and do_motion only if necessary.
2085 (troff_output_file::start_special,
2086 troff_output_file::put_char_width, troff_output_file::put_char,
2087 troff_output_file::draw): Updated.
2088 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2089 vmotion_node::tprint): Undo change 2002-10-23.
2091 2002-10-25 Werner LEMBERG <wl@gnu.org>
2093 * tmac/www.tmac (DC): Fix case of overlapping images.
2095 2002-10-23 Werner LEMBERG <wl@gnu.org>
2097 * src/roff/troff/node.cc (troff_output_file::fill_color,
2098 troff_output_file::glyph_color): Set current color before testing
2100 (troff_output_file::put_char_width, troff_output_file::put_char,
2101 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2103 (troff_output_file::file_color, troff_output_file::glyph_color):
2105 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2106 vmotion_node::tprint): Move first, then call fill_color.
2108 2002-10-20 Werner LEMBERG <wl@gnu.org>
2110 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2111 possible to use multiple main macro packages.
2113 2002-10-19 Werner LEMBERG <wl@gnu.org>
2115 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2116 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2117 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2119 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2120 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2122 2002-10-16 Werner LEMBERG <wl@gnu.org>
2124 * NEWS, doc/webpage.ms: Updated.
2126 2002-10-14 Werner LEMBERG <wl@gnu.org>
2128 * src/roff/troff/node.cc (troff_output_file::put_char_width,
2129 troff_output_file::put_char, troff_output_file::fill_color,
2130 troff_output_file::glyph_color): Handle case where color pointer
2133 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
2135 Add the new -r option to grotty. It is similar to the -i option
2136 except it tells grotty(1) to use the "reverse video" attribute to
2137 render italic fonts.
2139 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2140 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2141 (tty_printer::make_underline, tty_printer::put_color,
2142 tty_printer::end_page): Use it.
2143 (main): Add -r switch.
2145 * src/devices/grotty/grotty.man: Document it.
2147 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
2149 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2150 cast to `unsigned char' to properly read patterns with 8bit
2153 2002-10-08 Werner LEMBERG <wl@gnu.org>
2155 * REVISION: Increased to 2.
2157 Version 1.18.1 released
2158 =======================
2160 2002-10-08 Werner LEMBERG <wl@gnu.org>
2162 * doc/webpage.ms, NEWS: Updated.
2164 2002-10-07 Werner LEMBERG <wl@gnu.org>
2166 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2167 suppress additional whitespace after the header.
2169 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2172 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2174 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
2176 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2177 (Dt): Use it to improve language localization (especially Russian
2180 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
2182 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2183 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2185 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2187 Call `picurve' for BSPLINE.
2188 (HGPrintElt): Handle BSPLINE.
2189 * src/preproc/grn/README: Document it.
2191 2002-10-03 Werner LEMBERG <wl@gnu.org>
2193 * src/roff/troff/node.cc (break_char_node::col): New variable.
2194 Updated constructor.
2195 (space_node::tprint, word_space_node::tprint): Call `fill_color'
2197 (space_node::space_node): Remove assertion.
2198 (break_char_node::add_self): Pass color argument to space node.
2199 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2201 * src/roff/troff/env.cc (environment::do_break,
2202 environment::add_padding): Ditto.
2204 2002-10-02 Werner LEMBERG <wl@gnu.org>
2206 Redesigning color support in troff. Colors are no longer
2207 represented as separate nodes but are now part of glyph nodes and
2208 friends. This fixes the current formatting misbehaviour due to the
2209 changes introduced on 2002-09-20. Some extra code is necessary for
2210 proper grotty support: Without adding color variables to
2211 space-related nodes, the background color would be changed too late.
2213 * src/roff/troff/node.h, src/roff/troff/node.cc:
2214 s/current_pagecolor/current_fill_color/.
2215 s/current_glyphcolor/current_glyph_color/.
2216 (glyph_color_node, fill_color_node): Removed.
2217 (node::get_glyph_color, node::get_fill_color): New virtual member
2219 (space_node::col): New variable.
2220 Updated constructors of space_node and derived classes accordingly.
2221 (hmotion_node::col): New variable.
2222 Updated constructors of hmotion_node and space_char_hmotion_node
2224 (vmotion_node::col): New variable.
2225 Updated constructor accordingly.
2226 (draw_node::gcol, draw_node::fcol): New variables.
2227 Updated constructor accordingly.
2228 (special_node::gcol, special_node::fcol): New variables.
2229 Updated constructors accordingly.
2230 (troff_output_file::put_char, troff_output_file::put_charwidth,
2231 troff_output_file::draw): Set glyph and fill color.
2232 (troff_output_file::start_special): Set glyph and fill color.
2233 Always set current font.
2234 (troff_output_file::fill_color, troff_output_file::glyph_color):
2235 Don't call `do_motion'.
2236 (glyph_node::gcol, glyph_node::fcol): New variables.
2237 Updated constructors of glyph_node and ligature_node accordingly.
2238 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2240 (glyph_node::merge_glyph_node,
2241 kern_pair_node::add_discretionary_hyphen,
2242 node::add_discretionary_hyphen): Updated.
2243 (break_char_node::merge_self): Updated.
2244 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2245 vmotion_node::tprint): Handle color.
2246 (make_glyph_node, make_node, node::add_char): Updated.
2248 * src/roff/troff/env.cc (environment::space_newline,
2249 environment::space, environment::output_line, environment::do_break,
2250 environment::make_tab_node, environment::add_padding, title):
2252 (environment_switch, environment_copy): Don't add color nodes.
2254 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2256 (token::next): Updated.
2257 \m and \M now are as transparent as \s.
2258 (process_input_stack, token::add_to_node_list, token::process,
2259 read_draw_node): Updated.
2260 (charinfo_to_node_list): Don't add color nodes.
2262 * doc/groff.texinfo: Updated.
2264 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
2266 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2269 2002-09-27 Colin Watson <cjwatson@debian.org>
2271 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2273 2002-09-23 Werner LEMBERG <wl@gnu.org>
2275 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2277 (DEFAULT_LINEWIDTH_FACTOR): New macro.
2278 (linewidth_factor): New global variable.
2279 (lbp_printer::set_line_thickness): Fix case for size < 0, using
2281 (long_options): Add -w/--linewidth option.
2283 (main): Handle -w option to set linewidth_factor.
2284 (lbp_printer::lbp_printer): Initialize req_linethickness, not
2287 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2289 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
2291 Fixed a bug in the line thickness setting code.
2293 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2295 (lbp_printer::set_line_thickness): Pass environment as second
2297 Implement it actually.
2298 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2299 and `set_line_thickness, depending on the current font size.
2301 2002-09-21 Werner LEMBERG <wl@gnu.org>
2303 Some Debian patches.
2305 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2306 * src/roff/troff/node.cc (bracket_node::copy): Initialize
2309 2002-09-20 Werner LEMBERG <wl@gnu.org>
2311 * configure: Regenerated with autoconf 2.54.
2313 2002-09-20 Werner LEMBERG <wl@gnu.org>
2315 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2317 Rename cur_fill_color to fill_color.
2318 * src/roff/troff/env.cc: Updated.
2320 2002-09-20 Werner LEMBERG <wl@gnu.org>
2322 * src/roff/troff/env.cc (title): Copy color status after processing
2324 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2325 fill color nodes to reset colors properly.
2327 * tmac/www.tmac (DC): Fix color handling.
2329 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2330 * doc/groff.texinfo: Fixing documentation of `tl' request.
2331 * doc/webpage.ms: Updated.
2333 2002-09-19 Werner LEMBERG <wl@gnu.org>
2335 * src/roff/troff/env.cc (environent_switch, environment_copy):
2336 Emit glyph and fill color nodes to initialize colors properly.
2338 2002-09-17 Colin Watson <cjwatson@debian.org>
2340 * src/roff/troff/env.cc (environment::set_glyph_color,
2341 environment::set_fill_color): Fix typo which prevented \m[] work
2344 2002-09-17 Werner LEMBERG <wl@gnu.org>
2346 Add left and right italic correction to non-slanted PS fonts. This
2347 is an experimental feature to improve image rendering of grohtml.
2349 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2350 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2351 * font/devps/*: All non-slanted fonts regenerated.
2354 2002-09-16 Werner LEMBERG <wl@gnu.org>
2356 Add a site-specific font directory.
2358 * Makefile.in (localfontdir, legacyfontdir): New variables.
2359 (fontpath): Use them.
2360 (MDEFINES, uninstall_dirs): Updated.
2361 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2362 Remove `FONTPATH' and `MACROPATH'.
2364 * src/roff/troff/troff.man, NEWS: Updated.
2365 * doc/groff.texinfo (Font Directories): New section.
2368 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2369 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2370 src/preproc/grn/grn.man: Minor fixes.
2372 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2373 Remove unused variable.
2375 2002-09-11 Werner LEMBERG <wl@gnu.org>
2377 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2378 * man/groff_out.man: Fix documentation of 'N'.
2380 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
2382 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2383 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2385 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2386 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2387 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2388 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2389 PRE_TAG>: Call `begin' with `FALSE'.
2391 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2393 * src/libs/libgroff/string.cc (string::extract): Fix position of
2394 terminating null byte.
2396 2002-09-08 Werner LEMBERG <wl@gnu.org>
2398 Add global option `nospaces' to tbl so that leading and trailing
2399 spaces in data items are ignored.
2401 * src/libs/libgroff/string.cc (string::remove_spaces): New member
2402 function to remove leading and trailing spaces.
2403 * src/include/stringclass.h: Updated.
2405 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2407 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2409 Fix typo in error messages.
2410 (process_data): Implement `nospaces' option.
2411 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2413 2002-09-07 Werner LEMBERG <wl@gnu.org>
2415 * src/include/config.hin: Add `HAVE_ISATTY'.
2416 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2418 * src/libs/libgroff/tmpname.cc: Include `time.h'.
2419 * src/libs/libdriver/input.cc (Char): Add `operator==' and
2420 `operator!=' for `char'.
2421 * doc/groff.texinfo: Replace @ifnottex block for top node with
2424 2002-09-06 Werner LEMBERG <wl@gnu.org>
2426 * doc/Makefile.in (.texinfo.html): Add -I switch.
2427 * doc/groff.texinfo: Add @ifnottex block for top node to make
2428 translation to HTML work.
2430 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
2432 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2433 (get_papersize, determine_vertical_offset): Removed.
2434 (char_buffer::do_image): Always specify letter size.
2436 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2439 2002-09-05 Werner LEMBERG <wl@gnu.org>
2441 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2442 default indentation.
2444 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
2446 * src/preproc/html/pre-html.cc (imageList::createPage): Use
2448 (generateImages): Clean up push-back buffer.
2450 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2452 * doc/groff.texinfo: Minor fixes.
2454 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2456 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2457 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2459 (determine_vertical_offset): Use LETTER_LENGTH.
2460 (createPage): Moved to ...
2461 (imageList::createPage): This.
2462 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2463 (imageList::getMaxX): New function.
2464 (createImage): Moved to ...
2465 (imageList::createImage): This.
2466 (imageList::createImages): New function.
2467 (generateImages): Read `maxx' directly.
2469 (scanArguments): Don't specify `gsPaper' for `-o'.
2470 (makeTempFiles): Call `xtmpfile' with the last argument set to
2473 2002-08-24 Werner LEMBERG <wl@gnu.org>
2475 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2476 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2477 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2478 * src/preproc/html/pushback.cc: Include nonposix.h.
2479 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2482 2002-08-23 Werner LEMBERG <wl@gnu.org>
2484 Use $(OBJEXT) for the object file extension.
2486 * Makefile.comm (.SUFFIXES): Add .obj.
2487 (.cc.obj, .c.obj): New implicit rules.
2488 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2489 (MDEFINES): Add EXEEXT and OBJEXT.
2490 * */Makefile.sub: s/.o/.$(OBJEXT)/.
2492 2002-08-22 Werner LEMBERG <wl@gnu.org>
2494 * INSTALL: Mention texinfo 4.2 as a prerequisite.
2496 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2498 * src/devices/grohtml/post-html.cc (colType): Make enum global to
2500 (html_printer::update_min_max, html_printer::add_table_end): New
2502 (html_printer::lookahead_for_tables): Use them.
2503 Reset page offset correctly.
2504 (html_printer::~html_printer): Add creation of creator comment up.
2506 2002-08-20 Werner LEMBERG <wl@gnu.org>
2508 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2509 * man/groff_tmac.man: Fix typos.
2510 * man/groff_font.man: Minor reordering.
2511 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2512 * contrib/groffer/groffer.man: Fix typos.
2514 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2516 Avoid endless loops while scanning for tables.
2518 * src/devices/grohtml/post-html.cc (list::insert): Set
2520 (html_printer::next_horiz_pos): Add `text_glob' argument; update
2522 Return immediately if that argument is NULL.
2523 (html_printer::calc_nf): Don't test if `g' is NULL.
2524 (html_printer::lookahead_for_tables): Use
2525 `glyphs.move_right_get_data'.
2526 Don't test if `g' is NULL.
2528 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2530 A better fix, replacing fix 2002-08-15, for increasing SIZE.
2532 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2534 (char_block::char_block): Allocate `buffer'.
2535 (char_buffer::add_string): Use it.
2537 2002-08-15 Werner LEMBERG <wl@gnu.org>
2539 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2540 src/devices/grodvi/grodvi.man: Document default line thickness.
2542 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
2544 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2547 2002-08-14 Werner LEMBERG <wl@gnu.org>
2549 * doc/webpage.ms: Updated.
2551 2002-08-09 Werner LEMBERG <wl@gnu.org>
2553 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2556 2002-08-08 Aaron Campbell <aaron@monkey.org>
2558 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2561 2002-08-08 Werner LEMBERG <wl@gnu.org>
2563 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2566 Don't push back a space but a newline onto the stack.
2568 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
2570 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2573 * src/devices/grohtml/post-html.cc (html_printer::end_font,
2574 html_printer::start_font): Handle them.
2575 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2577 (html_text::do_bold): Don't reset italic and tt.
2578 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2579 * font/devhtml/DESC.proto: Add those fonts.
2580 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2582 2002-08-07 Werner LEMBERG <wl@gnu.org>
2584 * MORE.STUFF: Added gpresent.
2586 * tmac/trace.tmac: Show nesting level by a corresponding amount of
2587 whitespace before printing the logging message.
2589 2002-07-31 Colin Watson <cjwatson@debian.org>
2591 * src/devices/grohtml/html-table.cc (html_table::finish_row):
2592 Initialize `n' to zero. This fixes a segfault on ARM.
2594 2002-07-30 Werner LEMBERG <wl@gnu.org>
2596 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2598 2002-07-29 Werner LEMBERG <wl@gnu.org>
2600 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2603 2002-07-28 Colin Watson <cjwatson@debian.org>
2605 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2607 (html_printer::html_printer): Initialize `pointsize'.
2609 2002-07-26 Werner LEMBERG <wl@gnu.org>
2611 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2613 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2614 (gnu.eps): Add -rle switch to pnmtops.
2615 (distfiles): Add gnu.eps and gnu.png.
2617 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
2619 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2622 2002-07-24 Werner LEMBERG <wl@gnu.org>
2624 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2625 ' \+' but ' *' for sed.
2626 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2628 2002-07-23 Werner LEMBERG <wl@gnu.org>
2630 * doc/groff.texinfo: Document `papersize' keyword.
2631 * NEWS, man/groff_font.man: Updated.
2633 2002-07-23 Colin Watson <cjwatson@debian.org>
2635 Extend papersize keyword to accept more than a single entry. The
2636 first valid will be used.
2638 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2639 (font::scan_papersize): Really skip final newline.
2640 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2642 2002-07-23 Werner LEMBERG <wl@gnu.org>
2644 * configure.ac: Test for isatty.
2645 * configure: Regenerated.
2646 * src/include/posix.h: Check HAVE_ISATTY.
2647 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2648 * src/utils/lookbib/lookbib.cc: Include posix.h.
2649 Don't declare isatty.
2651 2002-07-21 Werner LEMBERG <wl@gnu.org>
2653 * NEWS: Add `output' request.
2655 * REVISION: Increased to 1.
2657 Version 1.18.0 released
2658 =======================
2660 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
2662 Allow internal glyph indices > 0xFF in grohtml for input characters.
2664 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
2666 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
2667 Updated all callers.
2668 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
2669 (html_printer): Updated.
2671 2002-07-19 Werner LEMBERG <wl@gnu.org>
2673 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
2674 * font/devutf8/R.proto: Adding some missing glyphs.
2675 * font/devutf8/NOTES: Updated.
2677 * tmac/dvi.tmac: Add more composite glyphs.
2678 * tmac/html.tmac: Updated.
2680 * man/groff_char.man: Add `sum' and `product' entities.
2684 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
2686 Improved table, tab, and indenting support.
2688 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
2689 string_iterator::suppress_newline_flag): Removed. Updated all
2690 function which have used it.
2692 * src/roff/troff/env.cc: Include `input.h'.
2693 (environment::add_node): Accept 0 as parameter.
2694 (environment::add_html_tag): Add `force' parameter.
2695 Updated all callers.
2696 (environment::add_html_tag_tabs): Ditto.
2697 For the moment, support left-aligned tabs only.
2698 (environment::make_html_tag): New function.
2699 (fill, no_fill): Set .br html tag additionally.
2700 (environment::newline): Emit `eol.ce' or `eol' tag for html.
2701 (environment::add_html_tag_eol): Removed.
2702 (tab_stops::distance_to_next_tab): Add variant for handling
2704 (environment::distance_to_next_tab): Ditto.
2705 Updated all callers.
2706 (environment::handle_tab): Handle tabs for html.
2708 * src/roff/troff/env.h: Updated.
2710 * src/roff/troff/div.cc: Updated all callers of
2711 `environment::add_html_tag'.
2713 * src/devices/grohtml/html-table.cc,
2714 src/devices/grohtml/html-table.h: New files.
2716 * src/devices/grohtml/html-text.cc (html_text): New members
2717 `blank_para' and `start_space'.
2718 (html_text::issue_tag): Don't emit TABLE_TAG.
2719 Handle indentation for PRE_TAG and P_TAG.
2720 (html_text::end_tag): Updated.
2721 (html_text::table_is_void, html_text::issue_table_begin,
2722 html_text::issue_table_end): Removed.
2723 (html_text::do_push): Simplified.
2724 [DEBUGGING]: Small fix.
2725 (html_text::push_para): Add new parameter for indentation; updated
2728 (html_text::do_indent, html_text::do_table, html_text::done_table,
2729 html_text::is_in_table): Removed.
2730 (html_text::do_pre): Handle P_TAG also.
2731 (html_text::shutdown): Handle p->indent.
2732 (html_text::check_emit_text): Simplified.
2733 (html_text::do_emittext): Reset `blank_para'.
2734 (html_text::do_para): Add new parameter for indentation; updated
2736 (html_text::remove_indent): New function.
2737 (html_text::do_space): Handle verbatim text properly.
2738 (html_text::ever_emitted_text, html_text::starts_with_space,
2739 html_text::remove_para_align): New functions.
2740 (html_text::dump_stack_element, html_text::dump_stack): Updated.
2742 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
2745 * src/devices/grohtml/post-html.cc: Include html-table.h.
2746 (INDENTATION): Removed.
2747 (text_glob): Added many `is_<foo>' functions.
2748 Added table description `tab'.
2749 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
2751 (list): Add `insert' and `move_to' member functions.
2752 (page): Add `insert_tag' member function.
2753 (page::dump_page) [DEBUG_TABLES]: Improved.
2754 (html_printer): Add `table' and `max_linelength' elements.
2755 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
2756 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
2757 `remove_tabs', `remove_courier_tabs'.
2758 (html_printer::emit_raw): Handle indentation.
2759 (html_printer::do_center, html_printer::write_header): Updated.
2760 (html_printer::is_courier_until_eol): Check for tag.
2761 (html_printer::do_linelength): Handle max_linelength.
2762 (html_printer::do_page_offset, html_printer::do_indentation): Handle
2764 (html_printer::do_tempindent): Updated.
2765 (html_printer::do_indentedparagraph): Removed.
2766 (html_printer::do_indent): Simplified.
2767 (html_printer::do_eol): Use `ever_emitted_text'.
2768 (html_printer::do_flush, html_printer::do_links): Don't call
2770 (html_printer::do_break): Handle end_tempindent.
2771 (html_printer::troff_tag): Get argument.
2773 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
2774 (html_printer::flush_page): Call `lookahead_for_tables'.
2775 Don't call `done_table'.
2776 (html_printer::add_to_sbuf): Always call do_indent.
2778 * src/devices/grohtml/Makefile.sub: Updated.
2780 * tmac/an-old.tmac (TP): Don't handle html device specially.
2781 (an-do-tag-html): New function which will be used instead of
2782 `an-do-tag' if html device is used.
2784 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
2786 * tmac/s.tmac (@IP): Don't handle html device specially.
2787 (@IP-html): New function which will be used instead of `@IP' if
2788 html device is used.
2790 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
2791 is a hack which will eventually vanish again.
2792 (PIMG): Handle `-C' option correctly if not html.
2795 2002-07-17 Werner LEMBERG <wl@gnu.org>
2797 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
2799 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
2801 * contrib/pic2graph/pic2graph.*: Use convert(1).
2802 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
2804 2002-07-14 Bernd Warken <bwarken@mayn.de>
2806 * tmac/groff_trace.man: New file.
2807 * tmac/Makefile.sub: Updated.
2810 2002-07-13 Werner LEMBERG <wl@gnu.org>
2812 * src/roff/groff/groff.man: Add some cross references.
2814 2002-07-12 Werner LEMBERG <wl@gnu.org>
2816 * src/roff/troff/input.cc (substring_request): Add warnings for
2817 string indices out of range.
2819 2002-07-11 Werner LEMBERG <wl@gnu.org>
2821 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
2822 * font/devdvi/*EC: Regenerated.
2824 2002-07-10 Bernd Warken <bwarken@mayn.de>
2826 * man/groff_char.man: Updated and extended.
2828 2002-07-10 Werner LEMBERG <wl@gnu.org>
2830 * src/roff/troff/input.cc (length_macro): Renamed to...
2831 (length_request): This.
2832 Move call of `tok.next()' to the very end, otherwise the register
2833 value hasn't been updated yet.
2834 (init_input_requests): Updated.
2836 2002-07-09 Werner LEMBERG <wl@gnu.org>
2838 * src/roff/troff/input.cc (substring_macro): Renamed to...
2839 (substring_request): This.
2840 (init_input_requests): Updated.
2841 * src/roff/troff/request.h: Updated.
2843 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
2845 * src/roff/grog/grog.sh: Fix typo.
2847 2002-07-08 Werner LEMBERG <wl@gnu.org>
2849 * win32-diffs: Updated.
2851 Handle `papersize' keyword properly in DESC.
2853 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
2855 Updated all callers.
2856 * src/libs/libgroff/paper.cc: Add four more paper formats used by
2858 * src/include/paper.h: Updated.
2860 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
2861 Other minor C syntax fixes.
2862 (papersize, paperlength, paperwidth): Renamed to `user_*'.
2863 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
2865 (lbp_printer::lbp_printer): Pass three arguments.
2866 Set paper dimensions properly.
2867 (make_printer, main): Updated.
2868 (handle_unknown_desc_command): Fix error messages.
2869 (main): Handle papersize keyword in DESC properly.
2871 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
2873 (lbp_printer::lbp_printer): Pass an argument.
2874 Set paper_size properly.
2875 (handle_unknown_desc_command): Removed.
2876 (make_printer, main): Updated.
2877 * src/devices/grolj4/grolj4.man: Minor documentation fix.
2879 * man/groff_font.man, NEWS: Updated.
2881 2002-07-07 Werner LEMBERG <wl@gnu.org>
2883 Integrated eqn2graph, contributed by Eric S. Raymond.
2885 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
2887 * Makefile.in, NEWS: Updated.
2889 2002-06-04 Werner LEMBERG <wl@gnu.org>
2891 Changing the substring request to make it fit better with other
2892 string manipulation functions in other programming languages:
2893 Index 0 is now the first character in the string, and index -1
2894 indicates the last character. Since this request didn't work
2895 properly anyway in the last release, it doesn't harm too much to
2898 * src/roff/troff/input.cc (substring_macro): Use loops to get
2899 the real string length (ignoring COMPATIBLE_SAVE and
2900 COMPATIBLE_RESTORE) and offsets.
2901 Implement change described above.
2903 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
2904 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
2906 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
2908 2002-06-03 Werner LEMBERG <wl@gnu.org>
2910 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
2911 COMPATIBLE_RESTORE are completely ignored.
2913 * src/roff/troff/input.cc (char_list::set, char_list::get): New
2915 (macro): `length' field renamed to `len'.
2916 Added new field `empty_macro' (1 if macro is empty), to be used
2917 instead of checking `len'.
2918 Updated all callers.
2919 (macro::empty): Updated.
2920 (macro::length, macro::set, macro::get): New functions.
2921 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2923 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
2924 COMPATIBLE_RESTORE pairs.
2925 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2926 * src/roff/troff/request.h: Updated.
2928 * doc/groff.texinfo: Document .chop's behaviour better.
2930 2002-06-02 Werner LEMBERG <wl@gnu.org>
2932 * doc/pic.ms: Fix documentation for the addition of positions.
2934 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
2936 2002-06-29 Werner LEMBERG <wl@gnu.org>
2938 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
2940 * src/roff/troff/input.cc (have_string_arg): New global variable.
2941 (read_mode): New enumeration.
2942 (read_escape_name): Use it. Update all calls.
2943 (read_long_escape_name): Use it. Update all calls.
2944 Set have_string_arg if appropriate.
2945 (get_char_for_escape_name): Add parameter for handling space
2947 (interpolate_string_with_args, decode_string_args): New functions.
2948 (get_copy, token::next): Call it if necessary.
2949 (interpolate_string): Fix error message.
2951 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2954 2002-06-24 Bernd Warken <bwarken@mayn.de>
2956 * man/groff_tmac.man: Updated and extended.
2958 2002-06-24 Werner LEMBERG <wl@gnu.org>
2960 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
2962 2002-06-23 Werner LEMBERG <wl@gnu.org>
2964 * doc/pic.ms: Improve documentation of composite block objects.
2966 2002-06-22 Werner LEMBERG <wl@gnu.org>
2968 * src/roff/troff/input.cc (init_registers): Add three registers
2969 `seconds', `minutes', and `hours' to hold the current time.
2971 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2974 2002-06-20 Werner LEMBERG <wl@gnu.org>
2976 Make \X accept both `\ ' and `\~', converting them to single space
2979 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
2980 (token::unstretchable_space): New inline function.
2981 * src/roff/troff/input.cc (token::next, token::delimiter,
2982 token::description, token::add_to_node_list, token::process): Handle
2983 TOKEN_UNSTRETCHABLE_NODE.
2984 (encode_char): Handle tok.stretchable_space and
2985 tok.unstretchable_space.
2987 * NEWS, doc/groff.texinfo: Document it..
2989 2002-06-19 Werner LEMBERG <wl@gnu.org>
2991 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
2993 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
2994 keyword to enable/disable SGR output.
2995 (tty_printer::change_fill_color): New function.
2996 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
2998 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3001 2002-06-18 Werner LEMBERG <wl@gnu.org>
3003 Add a `color' request and a `.color' register to control usage of
3006 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3007 (color_flag): This (which is the inverse).
3008 (activate_color): New function.
3009 (main, init_input_requests): Updated.
3010 * src/roff/troff/troff.h, src/roff/troff/node.cc
3011 (troff_output_file::fill_color, troff_output_file::glyph_color):
3014 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3015 Document the changes.
3017 2002-06-17 Colin Watson <cjwatson@debian.org>
3019 Circumvent bug in autoconf 2.53 regarding top_builddir.
3021 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3022 * Makefile.in, doc/Makefile.in:
3023 s/@top_builddir@/@groff_top_builddir@/.
3024 * configure: Regenerated (with autoconf 2.53).
3026 2002-06-17 Werner LEMBERG <wl@gnu.org>
3028 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3029 `paperwidth' and `paperlength' for the `papersize' keyword.
3031 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
3033 * src/devices/grops/grops.man: Add info about Type 42 fonts.
3035 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
3037 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3038 html_printer::do_linelength, html_printer::do_pageoffset,
3039 html_printer::do_indentation, html_printer::do_tempindent,
3040 html_printer::do_break, html_printer::begin_page): Clear indented
3042 * tmac/html.tmac: Disable hyphenation.
3044 2002-06-15 Werner LEMBERG <wl@gnu.org>
3046 Don't produce HTML files if utility programs are missing.
3048 * Makefile.in (make_html, make_install_html): New variables.
3049 (MDEFINES): Updated.
3051 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3053 * configure.ac: Use it.
3054 * configure: Regenerated.
3056 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3057 (HTMLEXAMPLESFILES): This new variable.
3058 (EXAMPLESIMAGEFILES): Renamed to...
3059 (HTMLEXAMPLEIMAGEFILES): This.
3060 (CLEANADD): Add HTMLEXAMPLEFILES.
3061 (all): Use `make_html'.
3063 (install_data): Use `make_install_html'.
3064 Move html stuff to...
3065 (install_html): This new target.
3066 (uninstall_sub): Updated.
3068 2002-06-14 Bernd Warken <bwarken@mayn.de>
3070 * src/roff/grog/Makefile.sub (grog): Renamed to...
3072 (grog): New rule to always install grog.sh as grog.
3074 2002-06-08 Bernd Warken <bwarken@mayn.de>
3076 * src/roff/grog/grog.pl: Fix typo.
3078 2002-06-07 Werner LEMBERG <wl@gnu.org>
3080 * doc/groff.texinfo: Add more info on .tr arguments.
3082 2002-06-05 Werner LEMBERG <wl@gnu.org>
3084 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3086 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3087 * configure: Regenerated.
3089 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3091 * src/roff/troff/symbol.cc (table_sizes): Add more values.
3093 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3095 2002-06-04 Werner LEMBERG <wl@gnu.org>
3097 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3098 is not initialized at the time we need it in case `--prefix' hasn't
3099 been set. Check for `ac_default_prefix' also.
3100 Test for `papersize' keyword also and generalize allowed whitespace.
3101 * configure: Regenerated.
3103 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3106 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3108 (src_version, src_revision): New variables to avoid overwriting
3109 from parent make process.
3110 (version.cc): Updated.
3112 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3113 (linebuf, linebufsize): New global variables.
3114 (sys_fatal): Use `fatal' to abort properly.
3115 (get_line): New function.
3116 (get_resolution): Use it.
3117 Improve error messages.
3118 (get_papersize): Check `papersize' also.
3120 Improve error messages.
3122 2002-06-03 Werner LEMBERG <wl@gnu.org>
3124 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3125 should be removed only if builddir is not srcdir.
3126 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3127 (clean): Depend on `mostlyclean'.
3128 (distclean): Depend on `clean'.
3129 (realclean, extraclean): Depend on `distclean'.
3130 (.y.cc, .y.o): Simplified. The output files are no longer written
3131 to srcdir but to builddir.
3132 * Makefile.in (MDEFINES): Add `version' and `revision'.
3133 (uninstall_dirs): Fix order of directories.
3134 * doc/Makefile.sub (version, revision): Removed.
3135 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3136 Added `HTMLDOCFILES'.
3137 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3138 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3139 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3142 * doc/texinfo.tex (\authortt): New macro.
3143 (\shortcontt): Define.
3144 (\titlepage): Set \tt to \authortt while defining \authorfont.
3145 (\appendixbox): New macro.
3146 (\chapmacro, \appendixentry): Use \appendixbox to get even
3147 indentation for letters.
3148 (\summarycontents): Set \tt.
3149 (\internalpagesize): Add two arguments for real paper width and
3150 height as needed by pdfTeX.
3151 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3153 (\tempdima, \tempdimb): New temporary dimensions.
3154 (\pagesizesyyy): Updated.
3156 2002-06-02 Werner LEMBERG <wl@gnu.org>
3158 Adding a new keyword `papersize' to the DESC file format (similar
3159 but not completely identical to grolbp's extension). grops now has
3160 a -p command line option to override `papersize'. Finally, grolbp
3161 has been adapted to the new syntax.
3163 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
3164 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3166 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3167 (CCSRCS): Add `paper.cc'.
3169 * src/include/font.h (font): Add `papersize' element.
3170 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3171 (font::scan_papersize): New function.
3172 (font::load_desc): Use it for handling `papersize' keyword.
3173 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3175 * src/devices/grops/ps.cc: Include paper.h.
3176 (user_paper_length): New global variable.
3177 (ps_printer): Use paper length as initializer.
3178 (make_printer): Updated.
3179 (main): Handle new `-p' option.
3180 * src/devices/grops/grops.man: Updated.
3182 * src/devices/grolbp/lbp.cc: Include paper.h.
3183 s/papersizes/lbp_papersizes/.
3184 (set_papersize): Use new `papersizes' array.
3185 (handle_unknown_desc_command): Don't handle `papersize'.
3186 (main): Use `font::scan_papersize' for handling `-p' option.
3187 * src/devices/grolbp/grolbp.man: Updated.
3189 * man/groff_font.man: Document `papersize'.
3192 2002-05-30 Werner LEMBERG <wl@gnu.org>
3194 * src/devices/grops/TODO: Updated.
3195 * src/devices/grops/grops.man: More info on paper formats.
3196 * man/groff_font.man: Document `paperheight' and `paperwidth'.
3198 2002-05-29 Werner LEMBERG <wl@gnu.org>
3200 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3201 to list only if srcdir != currdir.
3202 (distfiles): New target.
3204 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3205 (NOMAKEDIRS): New variable.
3208 2002-05-26 Werner LEMBERG <wl@gnu.org>
3210 Add .output request, similar to \! at top-level.
3212 * src/roff/troff/input.cc (transparent): Remove unused declaration.
3213 (output_request): New function.
3214 (init_input_requests): Add it.
3216 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3219 * Makefile.in (MDEFINES): Add INSTALL_INFO.
3220 (prepare_examples): Fix typo.
3221 * doc/groff.texinfo (@direntry): Fix it.
3223 2002-05-25 Werner LEMBERG <wl@gnu.org>
3225 Including the doc subdir into groff's Makefile system.
3227 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3228 * configure.ac: Use it.
3229 Generate `doc/Makefile'.
3230 * configure: Regenerated.
3232 * Makefile.in (infodir, INSTALL_INFO): New variables.
3233 (MDEFINES, uninstall_dirs): Updated.
3234 (OTHERDIRS): Add `doc'.
3235 * Makefile.comm (CLEANDIRADD): New variable.
3236 (mostlyclean): Use it.
3238 * doc/Makefile.sub, doc/Makefile.in: New files.
3239 * doc/Makefile: Removed.
3241 * NEWS, INSTALL: Updated.
3243 2002-05-24 Werner LEMBERG <wl@gnu.org>
3245 * doc/homepage.ms: Renamed to ...
3246 * doc/webpage.ms: This.
3249 2002-05-23 Werner LEMBERG <wl@gnu.org>
3251 Integrating the `mom' macro package, contributed by Peter Schaffter
3254 * contrib/mom/*: New subdirectory tree.
3255 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3256 be used for documentation files.
3257 (MDEFINES, uninstall_dirs): Use them.
3258 (OTHERDIRS): Add contrib/mom.
3259 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3261 * MANIFEST, NEWS: Updated.
3263 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
3265 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3266 if at outer level; at start-up we are at outer level.
3268 * src/roff/troff/input.cc (do_suppress): Implement it.
3271 Add option -p to show progress information.
3272 pre-grohtml will now render only one page at a time, reducing the
3273 size of needed disk resources enormously.
3275 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3276 (imagePageName): New global variable.
3277 (psPageName, show_progress, currentPageNo): New global variables.
3278 (html_system): Close saved stderr and stdout handles.
3279 (write_end_image): Accept a parameter to control \O escape.
3280 (write_start_image): Adapted to new \O meaning.
3281 (char_buffer::write_upto_newline): Updated.
3282 (createAllPages): Replaced with...
3283 (createPage): This new function to create a single page for images.
3284 It uses `psselect' from the psutils package.
3285 (removeAllPages): Removed.
3286 (createImage): Updated.
3287 Handle progress display.
3288 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3289 (scanArguments): Add option -p.
3290 (makeTempFiles): Updated to create temp files for psPageName and
3292 (removeTempFiles): Removed.
3295 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3296 html_printer::write_header): Append `\0' to `buffer'.
3297 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3299 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3300 Handle `text_emitted'.
3301 (html_text::table_is_void): Slightly rewritten.
3302 (stop): New external symbol.
3303 (html_text::do_push) [DEBUGGING]: Use it and simplify.
3304 (html_text::shutdown): Call `dump_stack'.
3305 (html_text::do_space): Rewritten.
3306 * src/devices/grohtml/grohtml.man: Document -p and the need of
3309 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3311 Call \O[0] if `ps4html' is active.
3312 * tmac/s.tmac (@EQ, @EN): Handle html better.
3314 * tmac/html.tmac: Don't use black for background colour.
3316 * src/roff/troff/node.cc: Include `div.h'.
3317 (troff_output_file::really_print_line): Don't use `is_on'.
3318 (troff_output_file::word_marker, troff_output_file::flush_tbuf
3319 troff_output_file::check_charinfo,
3320 troff_output_file::put_char_width, troff_output_file::put_char,
3321 troff_output_file::determine_line_limits, troff_output_file::draw,
3322 real_output_file::begin_page, glyph_color_node::tprintf,
3323 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3325 (troff_output_file::really_on): Call `do_motion'.
3326 (suppress_node::tprint): Use `get_page_number' instead of `%'
3328 Call `reset_output_registers' conditionally on `is_on'.
3330 * doc/groff.texinfo: Document new syntax of \O.
3331 * NEWS, man/groff_diff.man: Updated.
3333 2002-05-22 Werner LEMBERG <wl@gnu.org>
3335 * MORE.STUFF: Add info about David Frey's deroff implementation.
3338 2002-05-16 Werner LEMBERG <wl@gnu.org>
3340 Pic's `with' attribute now accepts positions.
3342 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3343 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3345 (object_spec): Add rule for `WITH' and `position'.
3346 (relative_path): Give `corner' the precedence of `CHOP'.
3347 * src/preproc/pic/object.h (path): New members `pos' and
3349 * src/preproc/pic/object.cc: Updated initializers of `path'.
3350 (path::follow): Handle `is_position'.
3352 * doc/pic.ms: Completely updated grammar description.
3353 Many typographical improvements.
3355 2002-05-15 Werner LEMBERG <wl@gnu.org>
3357 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3358 code of x in range 0-127) also.
3359 * doc/groff.texinfo, man/groff_diff.man: Updated.
3361 Added keywords `north', `south', `east', and `west' for corners
3364 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3366 (yylex): Handle them.
3367 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3368 (corner): Handle them.
3370 2002-05-14 Werner LEMBERG <wl@gnu.org>
3372 * src/devices/grops/grops.man: Clarify handling of `download' file.
3374 2002-05-11 Werner LEMBERG <wl@gnu.org>
3376 Adding `warnscale' and `spreadwarn' requests, based on a patch from
3377 Jeffrey Friedl <jfriedl@yahoo.com>.
3379 * src/roff/troff/input.cc (spread_limit, warn_scale,
3380 warn_scaling_indicator): New global variables.
3381 (warnscale_request, spreadwarn_requests): New functions.
3382 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3383 (init_input_requests): Updated.
3384 (error_type): Add `OUTPUT_WARNING'.
3385 (do_error): Handle it.
3386 (output_warning): New warning function which shows output location.
3387 * src/roff/troff/env.h (spread_limit): New external variable.
3388 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3390 (distribute_space): Emit warning if added space is larger than
3392 (environment::possibly_break_line): Emit warning if a line can't
3393 be adjusted on both sides.
3395 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3397 2002-05-08 Werner LEMBERG <wl@gnu.org>
3399 * src/roff/troff/node.cc (special_node::special_node): Use
3400 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
3401 \X''\% crashes, for example.
3403 * doc/groff.texinfo: Document \! and \? used at top-level.
3405 2002-05-06 Werner LEMBERG <wl@gnu.org>
3407 * src/preproc/pic/pic.man: Fix some keyword syntax.
3408 Other minor typographical fixes.
3410 * src/roff/groff/groff.man: Fix typos.
3412 2002-05-04 Werner LEMBERG <wl@gnu.org>
3414 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3415 (ShortOpt[]): This to avoid problems with refer.
3417 * doc/pic.ms: Fix typo.
3418 Fix pic grammar description.
3420 * tmac/an-old.tmac (ne): Use de1, not de.
3422 2002-05-03 Werner LEMBERG <wl@gnu.org>
3424 * doc/groff.texinfo: Finished separation of glyphs and characters.
3425 Don't use the string `Appendix' for appendix headers (both in
3426 the text and the table of contents).
3427 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3430 Use registers LL and LT (similar to -ms) for controlling the
3431 length of title and line, respectively, in the -man and -mdoc
3434 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3435 (doc-setup-page-layout): Use \n[LL] and \n[LT].
3436 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3438 (an-header, an-p-footer): Use \n[LT].
3439 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3440 doc/groff.texinfo: Document it.
3442 2002-05-02 Werner LEMBERG <wl@gnu.org>
3444 * doc/fdl.texi: New file.
3445 * doc/groff.texinfo: Include it.
3446 Define and use @copying.
3447 Starting with separating glyph, symbol, and character.
3449 2002-04-27 Werner LEMBERG <wl@gnu.org>
3451 * Makefile.in (EXEEXT): Set it.
3452 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3455 * src/include/nonposix.h: Define GS_NAME.
3456 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3458 Some preliminary changes for EMX support under OS/2.
3460 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3461 __EMX__ similar to __MSDOS__.
3462 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3464 2002-04-25 Werner LEMBERG <wl@gnu.org>
3466 * doc/groff.texinfo: Integrated groff_out.man.
3469 2002-04-23 Werner LEMBERG <wl@gnu.org>
3471 * man/groff_out.man: Minor fixes.
3473 2002-04-23 Werner LEMBERG <wl@gnu.org>
3475 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3476 correct page references.
3477 Fixed many index entries.
3479 2002-04-23 Bernd Warken <bwarken@mayn.de>
3481 * man/roff.man: Enlarged.
3483 2002-04-22 Werner LEMBERG <wl@gnu.org>
3485 * doc/groff.texinfo: More examples, other fixes.
3487 2002-04-20 Werner LEMBERG <wl@gnu.org>
3489 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3490 will now form a chain, e.g.
3499 This is for compatibility with plan 9's troff.
3501 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3505 * doc/groff.texinfo: Add documentation of remaining requests and
3508 2002-04-19 Werner LEMBERG <wl@gnu.org>
3510 * doc/groff.texinfo: Add documentation of remaining escapes.
3512 * font/devdvi/generate/tc.map: Remove entry for `sr'.
3513 * font/devdvi/*TC: Regenerated.
3515 2002-04-18 Werner LEMBERG <wl@gnu.org>
3517 * src/roff/troff/input.cc (token::next): Make \H behave consistently
3518 if not in compatibility mode, i.e., increment relative to the
3520 * doc/groff.texinfo: Updated accordingly.
3522 2002-04-17 Werner LEMBERG <wl@gnu.org>
3524 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3526 2002-04-16 Bernd Warken <bwarken@mayn.de>
3528 * src/roff/groff/groff.man: Improve documentation of -P option.
3531 2002-04-15 Werner LEMBERG <wl@gnu.org>
3533 Add new escape \F to switch font family.
3535 * src/roff/troff/input.cc (token::next): Handle \F.
3536 * src/roff/troff/env.cc (environment::set_family): Handle
3538 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3541 2002-04-14 Werner LEMBERG <wl@gnu.org>
3543 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3546 2002-04-13 Werner LEMBERG <wl@gnu.org>
3548 Implement \f[] as an alternative to \fP. Change \mP and \MP to
3549 \m[] and \M[], respectively.
3551 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3552 (symbol::symbol): Handle NULL string and empty string differently.
3553 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3554 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3555 Add optional parameter.
3556 Updated calling functions.
3557 (get_copy, do_glyph_color, do_fill_color, token::next): Use
3559 * src/roff/troff/env.cc (environment::set_font): Ditto.
3561 * src/preproc/pic/troff.cc (troff_output::set_fill,
3562 troff_output::reset_color: Updated.
3564 * tmac/www.tmac: Updated.
3566 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3567 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3570 * tmac/Xps.tmac: Remove some redundant code.
3572 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3573 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3574 man/groff_out.man, man/groff.man, man/groff_diff.man,
3575 src/roff/groff/groff.man: Replace \f[P] with \f[].
3577 2002-04-13 Bernd Warken <bwarken@mayn.de>
3579 * src/include/printer.h, src/libs/libdriver/printer.cc
3580 (printer::change_fill_color): New member function.
3581 * src/libs/libdriver/input.cc (parse_D_command): Use it.
3583 2002-04-12 Werner LEMBERG <wl@gnu.org>
3585 * doc/groff.texinfo: Completed pass on gtroff reference.
3587 2002-04-11 Werner LEMBERG <wl@gnu.org>
3589 * doc/groff.texinfo: More fixes.
3591 2002-04-11 Bernd Warken <bwarken@mayn.de>
3593 * src/include/color.h: Decorate with `const'.
3596 * src/libs/libgroff.color.cc: Decorate with `const'.
3598 (color::color): Initialize members.
3599 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3600 command according to the documentation.
3602 * man/groff_out.man: Updated.
3605 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
3607 * src/preproc/html/pre-html.cc (write_start_image): Remove
3609 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3611 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3612 \C'hy' caused an assertion failure.
3614 * src/roff/troff/env.cc (environment::environment): Initialize
3616 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3618 2002-04-10 Werner LEMBERG <wl@gnu.org>
3620 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3621 Document pvs request and .pvs register.
3623 2002-04-09 Werner LEMBERG <wl@gnu.org>
3625 * doc/groff.texinfo: Improve and fix documentation of diversions
3628 2002-04-08 Werner LEMBERG <wl@gnu.org>
3630 * doc/groff.texinfo: Fix documentation of drawing functions.
3633 2002-04-07 Werner LEMBERG <wl@gnu.org>
3635 * doc/groff.texinfo: Better documentation of double quotes as
3639 2002-04-06 Werner LEMBERG <wl@gnu.org>
3641 * man/groff_font.man: Document names of special characters better.
3642 * doc/groff.texinfo: Minor improvements.
3644 * tmac/lbp.tmac: Load latin1.tmac.
3645 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3647 * font/devX*/*: Regenerated (all chars > 0x80 removed).
3649 2002-04-05 Werner LEMBERG <wl@gnu.org>
3651 * tmac/tty.tmac: Don't use shc request.
3652 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3655 * man/groff_diff.man: Minor fixes.
3657 * font/devlbp/*: Remove all `charXXX' entities.
3659 * src/libs/libgroff/font.cc (font::~font): Deallocate
3660 `special_device_coding'.
3661 (font::load): Use `new' for allocating `special_device_coding'.
3662 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
3663 Removed unused member.
3665 2002-04-05 Werner LEMBERG <wl@gnu.org>
3667 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
3668 (resource_manager::do_begin_binary,
3669 resource_manager::do_begin_data): Use it.
3671 * doc/texinfo.tex: Updated to version 4.2.
3673 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
3674 (token::zero_width_break): New inline function.
3675 * src/roff/troff/input.cc (token::next): Use it.
3676 (token::description): Updated.
3677 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
3678 (token::add_to_node_list, token::process): Use it.
3679 * NEWS, doc/groff.texinfo: Updated.
3681 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
3682 * tmac/tty.tmac: Add missing backslash.
3684 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
3686 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
3687 `.ps' register instead of `.s' to handle fractional point sizes.
3688 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
3689 limit_box::output): Ditto.
3690 * src/preproc/eqn/other.cc (size_box::compute_metrics,
3691 size_box::output): Ditto.
3692 * src/preproc/eqn/over.cc (over_box::compute_metrics,
3693 over_box::output): Ditto.
3694 * src/preproc/eqn/script.cc (script_box::compute_metrics,
3695 script_box::output): Ditto.
3696 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
3697 sqrt_box::output): Ditto.
3699 2002-04-03 Michael Selway <mas@ssl.co.uk>
3701 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
3704 2002-04-03 Werner LEMBERG <wl@gnu.org>
3706 * doc/homepage.ms: Reduce title size.
3707 * doc/groff.texinfo: Fix documentation of .t register.
3708 Fix handling of colon.
3711 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
3712 only if page length is positive to avoid a loop.
3714 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
3717 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
3719 * src/include/nonposix.h, src/roff/groff/pipeline.c:
3720 s/__CYGWIN32__/__CYGWIN__/.
3722 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
3724 * doc/gnu.xpm: New image contributed by Emily Mulley.
3725 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
3726 (homepage.html): Be dependent on gnu.eps.
3727 * doc/homepage.ms: Updated to new image.
3729 * src/devices/grohtml/post-html.cc (html_printer): New member
3731 (html_printer::flush_sbuf, html_printer::set_char): Set it.
3732 (html_printer::sbuf_continuation): Use it.
3734 2002-03-28 Werner LEMBERG <wl@gnu.org>
3736 * src/libs/libgroff/getopt.c: Updated to latest version.
3738 * tmac/README: More on hyphen.tex license.
3740 2002-03-26 Larry Kollar <kollar@alltel.net>
3742 * doc/groff.texinfo: Add documentation of most missing requests.
3744 2002-03-25 Werner LEMBERG <wl@gnu.org>
3746 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
3747 of `+-', `mu', and `di', respectively.
3749 * font/devascii/R.proto, font/devutf8/R.proto,
3750 font/devlatin1/R.proto, font/devhtml/R.proto,
3751 font/devcp1047/R.proto, font/devlpb/*: Add them.
3752 * font/devps/generate/textmap: Ditto.
3753 * font/devps/*: Regenerated.
3754 * font/devlj4/generate/text.map: Add them.
3755 * font/devlj4/*: Regenerated.
3756 * font/devdvi/generate/tc.map: Use them.
3757 * font/devdvi/generate/texsy.map: Add them.
3758 * font/devdvi/*: Regenerated.
3759 * font/devX*/*: Regenerated.
3761 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
3762 tmac/tty-char.tmac: Updated.
3764 * NEWS, man/groff_char.man: Updated.
3766 2002-03-24 Werner LEMBERG <wl@gnu.org>
3768 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
3769 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
3770 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
3771 we use `.fchar' in dvi.tmac.
3772 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
3773 * tmac/Xps.tmac: Simplify some char definitions.
3774 Add definition for \[f/].
3775 * man/groff_char.man: Updated for new X.tmac.
3777 * tmac/README: New file.
3779 2002-03-23 Phil Lobbes <phil@perkpartners.com>
3781 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
3782 internal .y.o rule took precendence over the .y.cc rule, compiling
3783 the yacc files with gcc instead of g++.
3785 2002-03-23 Werner LEMBERG <wl@gnu.org>
3787 * tmac/dvi.tmac: Add replacement font for `CB'.
3789 * tmac/doc.tmac: s/request/macro/ in messages.
3790 (doc-generic-macro): Improve error message.
3791 * tmac/groff_mdoc.man: Minor improvements.
3793 2002-03-22 Werner LEMBERG <wl@gnu.org>
3795 * doc/groff.texinfo: Document possible conflict between `tr' and
3798 2002-03-21 Werner LEMBERG <wl@gnu.org>
3800 Improve handling of hyphenation patterns. It is now possible to
3801 use most of TeX's pattern files unmodified. To make the process
3802 more flexible, a new request `hpfcode' has been added which
3803 provides a character code mapping for the `hpf' request. See
3804 comment before hpf_getc() for more details.
3806 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
3808 (read_patterns_file): Additional parameter for exception dictionary.
3809 Extended to recognize \pattern, \hyphenation, and \endinput.
3810 (do_hyphenation_patterns_file): Updated.
3811 * src/roff/troff/env.h (hpf_code_table): New extern.
3813 * src/roff/troff/input.cc (hpf_code_table): New array.
3814 (init_hpf_code_table, hyphenation_patterns_file_code): New
3816 (hyphenation_code): Handle translation from `trin' correctly.
3817 (main, init_input_requests): Updated.
3818 (charinfo::set_translation): Handle hyphenation code also.
3820 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
3823 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
3824 char' is used for offsets in hyphenation exceptions.
3826 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
3828 * NEWS, man/groff_diff.man, man/groff.man: Document it.
3830 2002-03-20 Larry Kollar <kollar@alltel.net>
3832 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
3835 2002-03-18 Werner LEMBERG <wl@gnu.org>
3837 * tmac/html.tmac: Fix serious typo.
3839 2002-03-17 Larry Kollar <kollar@alltel.net>
3841 * doc/groff.texinfo: Add documentation for `writec' request.
3843 2002-03-17 Werner LEMBERG <wl@gnu.org>
3845 Added request `hpfa' to append hyphenation patterns.
3847 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3849 (hyphenation_patterns_file): Renamed to...
3850 (do_hyphenation_patterns_file): This.
3851 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
3853 (init_hyphen_requests): Updated.
3854 * NEWS, man/groff.man, man/groff_diff.man: Document it.
3856 2002-03-16 Werner LEMBERG <wl@gnu.org>
3858 Added request `writec' in analogy to `tmc'.
3860 * src/roff/troff/input.cc (write_request): Renamed to...
3861 (do_write_request): This.
3862 Added one parameter.
3863 (write_request, write_request_continue): New functions.
3864 (init_input_requests): Updated.
3865 * NEWS, man/groff.man, man/groff_diff.man: Document it.
3867 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
3869 * NEWS: Document it.
3871 2002-03-15 Werner LEMBERG <wl@gnu.org>
3873 * man/groff.man: Add writem request.
3875 Add request `trin' (translate input) to make `.asciify' work
3876 correctly. This is necessary since `charXXX' entity names are no
3877 longer hardcoded in font definition files.
3879 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
3880 `translate_input' members.
3881 (charinfo::set_asciify_code, charinfo::get_asciify_code,
3882 charinfo::set_translation_input): New methods.
3883 (charinfo::set_translation): Add third argument.
3884 * src/roff/troff/input.cc (charinfo:set_translation): Set
3886 (do_translate): Add second argument.
3887 (translate_input): New function.
3888 (init_input_requests): Updated.
3889 * src/roff/troff/node.cc (glyph_node::asciify,
3890 composite_node::asciify): Use `get_asciify_code'.
3892 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
3894 * NEWS, man/groff.man, man/groff_diff.man: Updated.
3896 2002-03-14 Larry Kollar <kollar@alltel.net>
3898 * doc/groff.texinfo: Improve documentation of .RS and .RE.
3900 2002-03-14 Werner LEMBERG <wl@gnu.org>
3902 Add a new request `sizes' similar to the `sizes' command in DESC
3905 * src/roff/troff/env.cc (override_sizes): New function.
3906 (init_env_requests): Use it.
3907 * src/roff/troff/token.h: Export `read_string'.
3908 * NEWS, man/groff_diff.man, man/groff.man: Document it.
3910 2002-03-12 Werner LEMBERG <wl@gnu.org>
3912 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
3914 2002-03-10 Werner LEMBERG <wl@gnu.org>
3916 * tmac/pspic.tmac: Add support for -Tdvi.
3917 * tmac/dvi.tmac: Include pspic.tmac.
3918 * src/devices/grodvi/grodvi.man: Document it.
3921 * font/devlj4/generate/Makefile: Fix URL of metric files.
3923 2002-03-09 Werner LEMBERG <wl@gnu.org>
3925 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
3927 2002-03-09 Larry Kollar <kollar@alltel.net>
3929 * tmac/groff_ms.man: Add documentation for RS and RE macros.
3931 2002-03-08 Werner LEMBERG <wl@gnu.org>
3933 * doc/groff.texinfo: Fixes for texinfo 4.1.
3935 2002-03-07 Werner LEMBERG <wl@gnu.org>
3937 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
3939 Handle CYGWIN properly.
3941 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
3943 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
3944 * tmac/lbp.tmac: Add some font translations.
3946 2002-03-02 Werner LEMBERG <wl@gnu.org>
3948 * font/devcp1047/R.proto, font/devlatin1/R.proto,
3949 font/devhtml/R.proto: Remove `charXXX' entries.
3950 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
3953 * font/devlj4/generate/text.map: Remove `charXXX' entries.
3954 * font/devlj4/*: Regenerated all font definition files.
3955 * tmac/lj4.tmac: Load latin1.tmac.
3957 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
3958 from 2000-06-17: LJ4 metric files are *not* text files.
3960 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
3961 register to test for EBCDIC.
3963 2002-03-01 Werner LEMBERG <wl@gnu.org>
3965 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
3966 files (as grops already does).
3967 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
3969 * src/devices/grops/grops.man: Document comment lines in encoding
3972 * tmac/cp1047.tmac: New file.
3973 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
3974 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
3975 * tmac/Makefile.sub (NORMALFILES): Updated.
3977 * tmac/ec.tmac: Don't load latin1.tmac again.
3979 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
3980 font/devps/generate/dingbats.map,
3981 font/devps/generate/dingbats.rmap, font/devps/text.enc,
3982 font/devps/generate/Makefile (symbolmap): Add header comment.
3983 * font/devps/generate/textmap: Ditto.
3984 Remove `charXXX' entries.
3985 * font/devps/symbolmap: Regenerated.
3986 * font/devps/*: Regenerated all font definition files.
3988 2002-02-28 Werner LEMBERG <wl@gnu.org>
3990 Add color support to grodvi (for drawing colors are currently
3991 translated to gray values).
3993 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
3994 (dvi_printer): Add `cur_color' member.
3995 (dvi_printer::set_color): New function.
3996 (draw_dvi_printer): Remove `fill'.
3997 (draw_dvi_printer::fill_next): Pass environment as parameter.
3998 Update code for new color support translated to gray.
3999 (dvi_printer::set_char): Updated.
4000 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4001 changes crossing the page border.
4002 (dvi_printer::draw): Updated.
4003 Remove cases `f' and `F'.
4004 * tmac/dvi.tmac: Add color definitions.
4005 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4007 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4010 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4011 versions of autoconf.
4012 * configure: Updated.
4014 * doc/homepage.ms: Use `.blm'.
4015 * tmac/www.tmac (www-depth): New auxiliary variable.
4016 (www-pop-level): Don't issue HTML tag.
4017 (ULS, ULE, LI): Use absolute indentation.
4019 * src/devices/grops/ps.cc (ps_printer::begin_page,
4020 ps_printer::end_page): Switch forth and back to default color while
4021 starting a new page.
4023 2002-02-27 Werner LEMBERG <wl@gnu.org>
4025 Add EC and TC fonts to devdvi.
4027 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4028 * font/devdvi/generate/cork.map: Renamed to...
4029 * font/devdvi/generate/ec.map: This.
4030 Remove entry for `aq'.
4031 * font/devdvi/generate/tc.map: New file.
4032 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4035 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4036 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4037 * tmac/ec.tmac: New file.
4038 * tmac/Makefile.sub (NORMALFILES): Updated.
4039 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4040 * man/groff_char.man: Check `ECFONTS' register.
4042 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4044 2002-02-26 Werner LEMBERG <wl@gnu.org>
4046 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4047 * font/devdvi/generate/cork.map: Add 'y and 'Y.
4048 * font/devdvi/*: Updated.
4049 * tmac/dvi.tmac: Formatting.
4051 Add font `HBI' for the dvi output.
4052 Add support for font families `T' and `H'.
4054 * font/devdvi/HBI: New file.
4055 * font/devdvi/B: Renamed to ...
4056 * font/devdvi/TB: This.
4057 * font/devdvi/BI: Renamed to ...
4058 * font/devdvi/TBI: This.
4059 * font/devdvi/I: Renamed to ...
4060 * font/devdvi/TI: This.
4061 * font/devdvi/R: Renamed to ...
4062 * font/devdvi/TR: This.
4063 * font/devdvi/H: Renamed to ...
4064 * font/devdvi/HR: This.
4065 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4066 * font/devdvi/generate/Makefile (HBI): New rule.
4068 (R, I, B, BI, H): Renamed to ...
4069 (TR, TI, TB, TBI, HR): This, respectively.
4071 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4072 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4073 Add `styles' and `family' keywords.
4074 * tmac/dvi.tmac: Alias `H' to `HR'.
4075 Add some fspecial requests for italic fonts.
4076 Add TR and TI as special.
4077 Add support for `_' with font CWI.
4079 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4080 operator `:'. Until now, the expression `0:1' would return 2
4083 2002-02-25 Werner LEMBERG <wl@gnu.org>
4085 * man/groff_char.man: Added some missing PS glyph names (from the
4087 * font/devps/generate/textmap, font/devps/symbolmap: Add
4090 * doc/groff.texinfo: Minor additions and fixes.
4091 * man/groff_diff.man: Remove documentation of fp request. This
4092 is already covered in the original troff manual.
4093 Updated to be consistent with other doc files.
4096 2002-02-24 Werner LEMBERG <wl@gnu.org>
4098 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4100 Define new variable OTHERDEVDIRS (containing `font/devlj4
4101 font/devlbp' if not EBCDIC).
4102 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4103 (OTHERDEVDIRS): New variable.
4104 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4105 * configure: Regenerated.
4107 * NEWS, src/devices/grotty/grotty.man: Updated.
4109 2002-02-23 Werner LEMBERG <wl@gnu.org>
4111 * src/roff/troff/input.cc (do_overstrike, do_bracket,
4112 get_line_arg): Honour input level.
4114 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4116 * font/*/*: Implement it in all font files.
4117 * font/devps/generate/textmap, font/devps/generate/symbolchars,
4118 * font/devps/symbolmap: Updated.
4119 * font/devlj4/generate/text.map: Updated.
4120 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4121 * font/devdvi/generate/texmi.map: Updated.
4123 * font/devutf8/R.proto: Remove all `charXXX' entries.
4124 * font/devutf8/NOTES: Updated.
4126 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4129 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4131 * NEWS, man/groff_char.man: Updated.
4133 2002-02-21 Phil Lobbes <phil@perkpartners.com>
4135 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4137 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4139 * src/roff/grog/grog.pl: Fix computation of $refer.
4141 2002-02-19 Werner LEMBERG <wl@gnu.org>
4143 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4144 `snprintf' and `vsnprintf'.
4146 * src/include/htmlindicate.h: Renamed to...
4147 * src/include/htmlhint.h: This.
4148 * src/include/Makefile.sub: Updated.
4149 * src/preproc/eqn/main.cc: Updated.
4151 2002-02-18 Werner LEMBERG <wl@gnu.org>
4153 * man/roff.man, man/groff_out.man, man/groff.man,
4154 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4155 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4157 * win32-diffs: Updated.
4159 2002-02-17 Werner LEMBERG <wl@gnu.org>
4161 * doc/Makefile (clean): Add *.eps.
4162 (MEMACROS): Removed.
4163 (TFLAG): New variable.
4166 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4168 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4170 * tmac/www.tmac: Use dummy diversion while resetting and disabling
4172 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4174 * src/roff/troff/troff.man: Fix order of parameter description.
4178 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
4180 Simplify image handling for grohtml.
4183 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4185 (html_text::dump_stack): Don't emit newline while debugging.
4186 (html_text::do_push) [DEBUGGING]: Print more info.
4187 (html_text::check_emit_text): Fix handling of <p>.
4188 * src/devices/grohtml/html.h: Updated.
4189 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4190 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
4191 send its data to stderr also.
4193 (simple_output::space_or_newline) [DEBUGGING]: Removed.
4194 * src/devices/grohtml/post-html.cc (html_printer::do_links,
4195 html_printer::html_printer): Remove `DEBUGGING' conditionals.
4197 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4199 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4200 is_inline_image): Removed.
4201 (html_begin_suppress, html_end_suppress): Don't take a parameter.
4202 (graphic_start, graphic_end): Removed.
4203 * src/include/htmlindicate.h: Updated.
4204 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4205 (macroset_template): New global variable.
4206 (makeFileName): Use `macroset_template'.
4207 (write_end_image): Don't take a parameter.
4209 (write_start_image: Don't emit newline.
4210 (char_buffer::write_upto_newline): Updated.
4211 (char_buffer::skip_to_newline): Renamed to ...
4212 (char_buffer::skip_until_newline): This.
4214 (char_buffer::write_file_troff, char_buffer::write_file_html):
4216 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4217 (removeAllPages): Remove `DEBUGGING' conditionals.
4218 (addRegDef, dump_args): New functions.
4219 (char_buffer::do_html, char_buffer::do_image): Handle
4220 `www-image-template' command line variable.
4221 Add more debugging code.
4222 (addps4html): Removed.
4223 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4225 * src/preproc/eqn/main.cc: Include `ctype.h'.
4226 (suppress_html): Removed.
4228 (inline_equation): Use `html_begin_suppress' and
4229 `html_end_suppress'.
4230 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4231 (troff_output::start_picture, troff_output::finish_picture):
4233 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4234 (process_input_file): Updated.
4236 * src/roff/troff/div.cc (page_number): Set page number only if the
4237 `ps4html' register isn't defined.
4238 * src/roff/troff/input.cc (image_no): New external variable.
4239 (do_suppress): Use it.
4240 * src/roff/troff/node.h (suppress_node::image_id): New member.
4241 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4242 (suppress_node::suppress_node): Initialize `image_id' member.
4243 (suppress_node::same): Handle `image_id' also.
4244 (suppress_node::copy): Updated.
4245 (last_image_id): New global variable.
4246 (suppress_node::tprint): Use it.
4248 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4250 * tmac/pspic.mac (PSPIC): Fix html support.
4251 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4252 * tmac/www.tmac (www-image-template): Set up.
4253 (HTMLINDEX): Renamed to...
4255 (BODYCOLOR): Renamed to...
4257 (BACKGROUND): Renamed to...
4259 (URL): Change order of parameters for consistency.
4260 (MAILTO): Renamed to...
4262 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4263 (IMG, PIMG, MPIMG): This.
4264 (HTML-H-BEGIN, HTML-H-END): Renamed to...
4266 (LINKS): Renamed to...
4268 (LINE): Renamed to...
4270 (NO-AUTO-RULE): Renamed to...
4272 (HTML-TL): Renamed to...
4274 (UL-BEGIN, UL-END): Renamed to...
4276 (DROPCAP): Renamed to...
4278 (TS, TE, EQ, EN): Provide default definitions.
4279 (www-make-unique-name): Updated.
4280 (HTML-IMAGE-INLINE): Fix typo.
4281 * tmac/groff_www.man: Updated.
4283 * doc/Makefile (homepage.html): Add option -r to grohtml.
4284 Use shortened image name.
4285 * doc/groff.texinfo: Updated info on grohtml strings and macros.
4286 * doc/homepage.ms: Updated and extended.
4288 2002-02-14 Werner LEMBERG <wl@gnu.org>
4290 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4292 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4293 SGR_BACK_DEFAULT_COLOR): Replaced with ...
4294 (tty_printer::put_color): Use it.
4295 (ttr_printer::end_page): Simplify.
4297 2002-02-13 Werner LEMBERG <wl@gnu.org>
4299 * tmac/groff_tmac.man: Moved to...
4300 * man/groff_tmac.man: This place.
4301 * tmac/Makefile.sub, man/Makefile.sub: Updated.
4303 2002-02-12 Werner LEMBERG <wl@gnu.org>
4305 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4306 $(COMPILE.c) to not include groff's assert.h.
4308 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4310 * NEWS, src/drivers/grotty/grotty.man: Document it.
4312 2002-02-11 Werner LEMBERG <wl@gnu.org>
4314 * src/libs/snprintf/snprintf.c: Updated to latest version
4317 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
4318 test whether there is `.]' also.
4319 Don't check for spaces after `.['.
4320 * src/roff/grog/grog.sh: Do the same.
4322 2002-02-10 Werner LEMBERG <wl@gnu.org>
4326 * src/libs/libgroff/illegal.cc: Renamed to ...
4327 * src/libs/libgroff/invalid.cc: This.
4328 (illegal_char_table): Renamed to ...
4329 (invalid_char_table): This.
4330 * src/libs/libgroff/Makefile.sub: Updated.
4331 * win32-diffs: Updated.
4333 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4334 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4335 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4336 font::load), src/preproc/eqn/main.cc (read_line, main),
4337 src/preproc/eqn/lex.cc (file_input::read_line),
4338 src/preproc/pic/lex.cc (file_input::read_line,
4339 simple_file_input::get, simple_file_input::peek),
4340 src/preproc/pic/main.cc (top_input::get, top_input::peek),
4341 src/preproc/pic/pic.man, src/preproc/refer/main.cc
4342 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4343 do_bib), src/preproc/tbl/main.cc (table_input::get),
4344 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4345 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4346 do_zero_width, read_request, encode_char, ps_get_line,
4347 transparent_file, get_char_for_escape_name, transparent_translate,
4348 asciify, input_char_description, read_string, set_string),
4349 src/roff/troff/env.cc (environment::add_html_tag),
4350 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4352 * src/include/lib.h: Updated.
4354 * src/preproc/eqn/eqn.cc: Removed.
4358 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4360 2002-02-09 Werner LEMBERG <wl@gnu.org>
4362 * doc/gnu.xpm: New image.
4363 * doc/Makefile (DOCS): Add homepage.ps.
4364 Add rules for converting xpm->png and xpm->eps.
4365 Use `gnu.{xpm,eps}' as image names.
4366 * doc/homepage.ms: Updated.
4368 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
4370 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4371 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4372 Remove calls to `B1' and `B2'
4373 (PNG-IMAGE): New macro for inclusion of images in PNG format.
4374 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4375 auxiliary variables for MARGIN-PNG-IMAGE.
4376 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4377 auxiliary macros for MARGIN-PNG-IMAGE.
4378 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4380 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4381 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4382 (DROPCAP): New macro to produce dropcap characters.
4383 (www-do-image): Renamed back to...
4384 (HTML-DO-IMAGE): This.
4385 Updated all callers.
4387 * doc/Makefile (gnubw.eps): Updated.
4388 * doc/homepage.ms: Updated.
4390 2002-02-08 Werner LEMBERG <wl@gnu.org>
4392 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4393 Added `linethick' to table in section `Style Variables'.
4395 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
4397 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4399 2002-02-07 Werner LEMBERG <wl@gnu.org>
4401 Adding options -C (compatibility mode) and -c (grotty's old output
4404 * src/roff/nroff/nroff.sh: Implement it.
4406 * NEWS, src/roff/nroff/nroff.man: Updated.
4408 * PROBLEMS: Document bison 1.32 bug.
4410 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4412 * src/roff/troff/node.cc (make_tfont): Define it earlier.
4413 * src/roff/troff/div.h: Add prototype for `end_diversions'.
4414 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4415 * src/roff/troff/env.h: Add prototype for `title'.
4417 Adding EBCDIC support to grotty.
4419 * src/devices/grotty/tty.cc (CSI): New macro.
4420 (SGR_*, tty_printer::put_color): Use it.
4422 2002-02-06 Werner LEMBERG <wl@gnu.org>
4424 Implementing color support in grotty. The new switch -c activates
4425 the old drawing scheme, disabling color at the same time. The new
4426 switch `-i' selects italic instead of underlining (SGR only).
4428 * src/devices/grotty/tty.cc (putstring): New define instead of
4429 `fputs'. Updated all callers.
4430 (old_drawing_scheme): New global variable.
4431 (COLOR_CHANGE): New enum value.
4432 (SGR_*): New defines containing color handling escape sequences.
4433 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4434 (glyph): New members `back_color_idx' and `fore_color_idx'.
4435 (glyph::order): Add COLOR_CHANGE.
4436 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4437 `is_underline', `is_bold', `cu_flag', `tty_colors'.
4438 New methods `make_underline', `make_bold', `color_to_idx',
4439 `change_color', `put_color'.
4440 (cu_flag): Moved into `tty_printer' class.
4441 (tty_printer::tty_printer): Initialize colors.
4442 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4443 tty_printer::draw, tty_printer::end_page): Handle colors also.
4444 (main): Add options `-c' and `-i'.
4446 * NEWS, src/devices/grotty/grotty.man: Updated.
4448 * src/include/errarg.h (errarg): Add support for `unsigned int'.
4449 * src/libs/libgroff/errarg.c: Implement it.
4451 * src/include/printer.h (printer): Add `change_color' method
4452 (currently used by grotty only).
4453 * src/libs/libdriver/printer.cc: Implement it.
4454 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4455 call to `pr->change_color'.
4457 * src/roff/troff/node.cc (troff_output_file::fill_color,
4458 troff_output_file::glyph_color): Call `do_motion'.
4460 * tmac/tty.tmac: Add color definitions.
4462 * src/roff/groff/groff.man: Minor fixes.
4464 2002-02-05 Bernd Warken <bwarken@mayn.de>
4466 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4467 it. This is a preparation for future changes.
4469 2002-02-05 Werner LEMBERG <wl@gnu.org>
4471 * src/roff/troff/input.cc (process_input_stack): Fix the case
4472 where leading spaces are followed by \f or \s; previously, an
4473 incorrect space width has been used.
4475 * doc/roff.man (quoted_char): Fix argument.
4476 (comment): Define string.
4478 2002-02-04 Larry Kollar <kollar@alltel.net>
4480 * doc/groff.texinfo: More fixes.
4482 2002-02-04 Werner LEMBERG <wl@gnu.org>
4484 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4485 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4486 `restore_compatibility' before `output_string' -- the LINE_STRING
4487 register now already contains proper switches from and to
4490 * man/groff_char.man: Add Euro symbol.
4491 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4492 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4493 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4496 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4498 (.texinfo.html): Add support for texinfo->html.
4500 2002-02-03 Werner LEMBERG <wl@gnu.org>
4502 Added three new requests `ds1', `as1', and `ami'. The former two
4503 are equivalent to `ds' and `as' with the difference that
4504 compatibility mode is saved on entry, switched off during string
4505 expansion, and restored on exit. The latter is the pendant to `dei'
4508 (do_define_string): Use `define_mode' and `calling mode'.
4509 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4510 end of string, respectively.
4511 (define_string, append_string): Use `calling_mode'.
4512 (define_nocomp_string, append_nocomp_string,
4513 define_string_indirect): New functions.
4514 (init_input_requests): Updated.
4515 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4517 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4518 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
4519 mm macro package accesses this string register directly.
4520 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4522 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
4525 2002-02-02 Larry Kollar <kollar@alltel.net>
4527 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4529 2002-01-31 Werner LEMBERG <wl@gnu.org>
4531 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4533 2002-01-31 Bernd Warken <bwarken@mayn.de>
4535 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4536 * man/groff_out.man: Revised and updated.
4538 2002-01-30 Bernd Warken <bwarken@mayn.de>
4540 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4541 out the unused `{' and `}' commands. Undefined by default.
4542 (IntArray): Make `data' private.
4543 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4544 new methods instead.
4545 (skip_line_D, skip_to_end_of_line): New functions.
4546 (get_D_fixed_args): Use `skip_line_D'.
4547 Changed to handle dummy odd arguments by ...
4548 (get_D_fixed_args_odd_dummy): This new function.
4549 (get_D_variable_args): Split some code into ...
4550 (get_possibly_integer_args): This new function.
4551 (send_draw): Use more `const'.
4552 (delete_current_env): New function.
4553 (position_to_end_of_args): Use `size_t'.
4555 (send_draw): Updated.
4556 (parse_D_command): Handle `c', `C', and `t' better.
4560 2002-01-29 Werner LEMBERG <wl@gnu.org>
4563 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4564 @Def...ListEnd which replaces @Def...x. This is necessary to get
4565 proper HTML output -- see the comment in the file for more
4569 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
4571 Fixes to make color changes of 2002-01-21 work with grohtml.
4573 * src/devices/grohtml/post-html.cc (style): Updated.
4574 (html_printer): Remove unused methods.
4575 (html_printer::do_font, html_printer::draw, html_printer::set_char,
4576 html_printer::special): Updated.
4577 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4578 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4579 Added some debugging code.
4580 (html_text::start_tag): Updated.
4581 (html_text::do_push): New method.
4582 (html_text::push_para): Call it.
4583 Add method for handling color.
4584 (html_text::do_color): Updated.
4585 (html_text::shutdown): Handle color.
4586 * src/devices/grohtml/html-text.h (tag_definition): New member
4590 2002-01-28 Werner LEMBERG <wl@gnu.org>
4592 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4594 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
4596 Add two switches -a and -g to control the antialiasing bits for
4597 text and graphics, respectively.
4599 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4601 * src/devices/grohtml/grohtml.man: Document them.
4602 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4604 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4605 (setupAntiAlias): New function.
4606 (createAllPages): Updated.
4607 (scanArguments): Handle `-a' and `-g'.
4608 (main): Call `setupAntiAlias'.
4611 2002-01-27 Werner LEMBERG <wl@gnu.org>
4613 * doc/groff.texinfo (Def*): Call index function after deffn.
4615 * tmac/html.tmac: Call `nroff' request.
4617 2002-01-26 Larry Kollar <kollar@alltel.net>
4619 * tmac/groff_ms.man: Add some omissions.
4621 2002-01-25 Larry Kollar <kollar@alltel.net>
4623 * tmac/groff_ms.man: Typographical improvements.
4625 2002-01-25 Werner LEMBERG <wl@gnu.org>
4627 * doc/groff.texinfo: Updated version and copyright.
4628 * src/devices/grops/grops.man: Updated.
4630 * tmac/groff_tmac.man: Fix `ig' macro.
4632 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4634 Use `.ne' unconditionally everywhere.
4635 (TS): Only insert some vertical space. Doing a page break is no
4636 longer necessary due to the redefinition of the `ne' request.
4638 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4639 warning for unknown subcommands but parse and pass them to the
4642 2002-01-24 Werner LEMBERG <wl@gnu.org>
4644 * tmac/groff_www.man, NEWS: Fix typos.
4646 2002-01-21 Werner LEMBERG <wl@gnu.org>
4648 Complete revision of color support:
4650 Adapt programs to the new libdriver/input.cc.
4652 Color spaces are no longer converted to RGB but transferred as-is
4653 in the troff intermediate output format.
4655 Handle default color gracefully. troff now supports a `default'
4656 color (which can't be changed).
4658 grops will now use the proper color space functions if available.
4662 Note that currently grohtml doesn't handle colors properly. This
4665 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
4666 (ui_to_a): New function.
4667 * src/include/lib.h: Updated.
4669 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
4670 (color): Simplified; removed all `double' members and methods.
4671 A new array `components' now holds the color parameters.
4672 (color::is_default, color::get_components): New methods.
4673 (color::operator==, color:operator!=): New.
4674 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
4675 to make access to the `components' array more comprehensible.
4676 * src/libs/libgroff/color.cc: Implement new color support.
4677 (atoh): Small fixes.
4678 (color::read_encoding): Simplified for new troff intermediate color
4680 (default_color): New global variable.
4682 * src/roff/troff/input.cc (default_symbol): New global variable.
4683 (lookup_color): Use it.
4684 (default_black): Removed.
4685 (do_glyph_color, do_fill_color): Simplified.
4686 (define_color): Handle default color.
4688 (do_if_request): Handle default color.
4689 * src/roff/troff/env.cc (environment::environment): Initialize
4690 colors with `default_color'.
4691 * src/roff/troff/node.cc (troff_output_file::put): Add method
4693 (troff_output_file::hex): Removed.
4694 (troff_output_file::fill_color, troff_output_file::glyph_color):
4695 Updated to include/color.h and libdriver/input.cc.
4697 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
4698 fill color properly (identically to the outline color). \D'f...'
4699 doesn't work any more.
4700 All function calls to it updated.
4702 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
4704 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
4707 * src/devices/grops/ps.cc (ps_output::put_color): New method.
4708 (ps_printer::sbuf_color): Make a real member instead of pointer.
4709 (ps_printer::fill_color, ps_printer::output_color): Removed.
4710 (ps_printer::ps_printer): Updated.
4711 (ps_printer::set_char): Ditto.
4712 (ps_printer::set_color): Use various color schemes.
4713 Use `put_color' method.
4714 (ps_printer::flush_sbuf): Don't set color.
4715 (ps_printer::fill_path): Take `environment' as parameter.
4716 Simplify color handling.
4717 (ps_printer::set_line_thickness): Renamed to ...
4718 (ps_printer::set_line_thickness_and_color): This (and updated).
4719 (ps_printer::set_color): Change second parameter from `complete'
4720 to `fill' which better describes what it does.
4721 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
4722 and text in the right order.
4724 Remove branches for `f' and `F'; this is handled by
4726 * src/devices/grops/ps.h: Updated.
4727 * font/devps/prologue (FL): Redefined.
4728 ({F,C}r,k,g: New color functions (with and without filling).
4730 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
4731 * man/groff_diff.man, man/groff.man, man/groff_out.man,
4732 doc/groff.texinfo, NEWS: Updated.
4734 2002-01-20 Bernd Warken <bwarken@mayn.de>
4736 * src/libs/libdriver/input.cc: Completely rewritten. See comments
4737 in this file for what has been changed.
4739 2002-01-19 Werner LEMBERG <wl@gnu.org>
4741 * test-groff: Fix GROFF_FONT_PATH.
4742 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
4743 is read before .TH or .Dd is parsed.
4745 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
4747 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
4748 quadrant boundaries.
4750 2002-01-18 Werner LEMBERG <wl@gnu.org>
4752 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
4755 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
4757 * tmac/doc.common: Initialize %I register for the %I macro to
4758 avoid (harmless) warning.
4759 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
4760 when in the SYNOPSIS section.
4762 2002-01-17 Bruno Haible <haible@clisp.cons.org>
4764 * src/preproc/pic/lex.cc (get_token): Fix typo.
4766 2002-01-17 Werner LEMBERG <wl@gnu.org>
4768 * devices/grops/ps.cc: Fix incorrectly applied last patch.
4770 2002-01-17 Larry Kollar <kollar@alltel.net>
4772 * tmac/groff_ms.man: Completely rewritten.
4774 2002-01-16 Werner LEMBERG <wl@gnu.org>
4776 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
4778 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
4780 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
4782 (ps_printer::draw): Ditto.
4784 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
4786 * tmac/groff_mdoc.man: Minor fixes.
4788 2002-01-13 Werner LEMBERG <wl@gnu.org>
4790 * man/groff_out.man: Some fixes.
4792 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
4794 * doc/pic.ms: Fix typos.
4796 2002-01-12 Werner LEMBERG <wl@gnu.org>
4798 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
4800 2002-01-10 Werner LEMBERG <wl@gnu.org>
4802 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
4806 2002-01-09 Bernd Warken <bwarken@mayn.de>
4808 * man/groff_out.man: Revised.
4809 * man/roff.man: Minor fixes.
4810 * src/roff/troff/troff.man: Some reordering.
4812 2002-01-09 Werner LEMBERG <wl@gnu.org>
4814 * tmac/an-old.tmac: Add dummy macros for equation support.
4816 2002-01-07 Werner LEMBERG <wl@gnu.org>
4818 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
4820 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
4822 * tmac/groff_man.man: Small improvements.
4824 2002-01-07 Bernd Warken <bwarken@mayn.de>
4826 * man/groff_diff.man: Revised.
4828 2002-01-06 Werner LEMBERG <wl@gnu.org>
4830 * tmac/www.tmac: Remove extraneous backslash.
4832 2002-01-06 Bernd Warken <bwarken@mayn.de>
4834 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
4836 2002-01-05 Werner LEMBERG <wl@gnu.org>
4838 Integrated groffer, contributed by Bernd Warken.
4840 * contrib/groffer/*: New.
4841 * Makefile.in, NEWS: Updated.
4843 2002-01-04 Werner LEMBERG <wl@gnu.org>
4845 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
4846 registers defined in macro packages.
4847 Revising the ms part.
4849 2002-01-04 Larry Kollar <kollar@alltel.net>
4851 * doc/groff.texinfo: Add documentation for ms macros.
4853 2002-01-02 Werner LEMBERG <wl@gnu.org>
4855 First step in adding PS support for the Euro symbol. `eu' is the
4856 official Euro logo, `Eu' is a font-specific glyph variant.
4858 * font/devps/text.enc: Add `Euro' at position 9.
4859 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
4860 * font/devps/symbolmap: Regenerated.
4864 2002-01-02 Bernd Warken <bwarken@mayn.de>
4866 * man/roff.man: Revised.
4868 2002-01-01 Bernd Warken <bwarken@mayn.de>
4870 * src/roff/groff/groff.man: Completely rewritten.
4872 2001-12-31 Werner LEMBERG <wl@gnu.org>
4874 * doc/Makefile: Updated.
4876 2001-12-30 Werner LEMBERG <wl@gnu.org>
4878 * tmac/www.tmac: Make all names of internal macros/registers/strings
4879 lowercase, and prepend `www-'.
4880 Other minor changes.
4881 * src/roff/troff/troff.man: Add preprocessor string at BOF.
4883 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
4885 Implement option `-b' in grohtml to set the HTML background colour.
4887 * src/devices/grohtml/post-html.cc (default_background): New global
4889 (html_printer::html_printer): Initialize `background' to
4890 `default_background'.
4891 (main): Implement option `-b'.
4893 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
4895 * src/devices/grohtml/grohtml.man: Updated.
4896 * doc/Makefile (.ms.html): Use `-b'.
4897 * tmac/html.tmac: Don't set background color.
4899 Add new grohtml tag `.html-tl'.
4901 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
4903 (title_desc::title_desc): Updated.
4904 (html_printer::troff_tag): Handle `.html-tl'.
4905 (html_printer::write_title): Use `with_h1'.
4906 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
4907 (HTML-TL): New macro.
4909 Add support for unordered lists in HTML.
4911 * tmac/www.tmac (www-level): New auxiliary register.
4912 (www-level1, www-level2, www-level3): New auxiliary strings.
4913 (www-push-level, www-pop-level): New auxiliary macros
4914 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
4918 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
4919 (DEFAULT_VERTICAL_OFFSET): Removed.
4920 (IMAGE_BOARDER_PIXELS): Set to 0.
4921 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
4922 (vertical_offset): Initialize with 0.
4923 (gsPaper): New global variable.
4924 (get_resolution): Scan for and return unsigned int.
4925 (get_papersize): New function to get paper length from devps/DESC.
4926 (determine_vertical_offset): New function.
4927 (createAllPages): Produce gray-level images and use proper page
4929 (createImage): Use `-quiet' option of pnmcrop.
4930 (addZ): Fix passing of `-Z'.
4931 (scanArguments): Fix handling of `-o'.
4932 (main): Call `determine_vertical_offset'.
4933 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
4936 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
4937 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
4938 glyph descenders properly.
4940 * doc/homepage.ms: Include `gnubw.eps'.
4941 * doc/Makefile (gnubw.eps): New rule.
4942 (homepage.html): Depend on `gnubw.eps'.
4944 2001-12-25 Werner LEMBERG <wl@gnu.org>
4946 * src/roff/troff/input.cc (default_black): Fix return value.
4948 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
4950 * tmac/doc-common (Dt): Change output of architecture strings.
4951 Do some syntax cleanup.
4952 * tmac/groff_mdoc.man: Updated.
4954 2001-12-23 Werner LEMBERG <wl@gnu.org>
4956 Adding an `itc' request (input line trap accepting \c).
4958 * src/roff/troff/env.h (environment): New member
4959 `continued_input_trap'.
4960 Make `do_input_trap' a friend function instead of `input_trap'.
4961 * src/roff/troff/env.cc (environment::environment,
4962 environment::copy): Updated.
4963 (environment::newline): Implement it.
4964 (do_input_trap): New function.
4965 (input_trap): Call `do_input_trap'.
4966 (input_trap_continued): New function.
4967 (init_env_requests): Updated.
4968 * src/roff/troff/TODO: Updated.
4970 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
4973 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
4975 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
4977 * tmac/doc-common, tmac/doc-syms: Small updates.
4979 2001-12-22 Colin Watson <cjwatson@debian.org>
4981 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
4983 2001-12-22 Bernd Warken <bwarken@mayn.de>
4985 * MANIFEST: New file.
4987 2001-12-22 Werner LEMBERG <wl@gnu.org>
4989 * src/preproc/grn/grn.man: Updated.
4991 2001-12-22 Solar Designer <solar@openwall.com>
4993 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
4996 2001-12-19 Werner LEMBERG <wl@gnu.org>
4998 Implement a fallback character request `.fchar'.
5000 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5001 (is_fallback): New inline function.
5002 * src/roff/troff/input.cc (do_define_character): New function.
5003 (define_character): Call `do_define_character'.
5004 (define_fallback_character): New function.
5005 (init_input_requests): Add `fchar'.
5006 (charinfo::charinfo): Updated.
5007 (charinfo::set_macro): New argument to set `fallback' flag.
5008 * src/roff/troff/node.cc (make_glyph_node, make_node,
5009 node::add_char): Check `fallback' flag.
5010 * NEWS, man/groff_diff.man, man/groff_man: Updated.
5012 2001-12-16 Werner LEMBERG <wl@gnu.org>
5014 * groff.texinfo: Document exact search algorithm for glyphs.
5016 2001-12-15 Werner LEMBERG <wl@gnu.org>
5018 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5019 the left side of $(MANPAGES) rule to make it always non-empty.
5021 2001-12-14 Werner LEMBERG <wl@gnu.org>
5023 * src/roff/troff/input.cc (default_black): Define default color
5024 `black' if not yet defined.
5026 2001-12-13 Werner LEMBERG <wl@gnu.org>
5028 Implement new string-valued register `.fn' to return the current
5029 real (internal) font name.
5031 * env.cc (environment::get_font_name_string): New function.
5032 (init_env_requests): Add `.fn' register.
5033 * env.h (environment): Updated.
5034 * node.cc (font_info): Make `get_font_name' a friend.
5035 (get_font_name): New function.
5038 * man/groff_diff.man, man/groff.man, NEWS: Updated.
5040 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5042 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5044 2001-12-12 Werner LEMBERG <wl@gnu.org>
5046 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5048 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
5050 * man/groff_diff.man: Adding documentation for \O.
5052 2001-12-10 Werner LEMBERG <wl@gnu.org>
5054 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5055 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5057 2001-12-09 Werner LEMBERG <wl@gnu.org>
5059 * man/roff.man: Revised.
5060 * src/roff/groff/groff.man: Replace man page references with a
5061 pointer to roff.man.
5063 2001-12-09 Bernd Warken <bwarken@mayn.de>
5065 * man/roff.man: Completely rewritten.
5067 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5069 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5071 2001-12-05 Werner LEMBERG <wl@gnu.org>
5073 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5075 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5076 order of initializers.
5079 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
5081 * doc/groff.texinfo: Fix documentation of \O.
5083 * src/devices/grohtml/html-text.cc (html_text::do_indent,
5084 html_text::do_table, html_text::do_emittext, html_text::do_para):
5085 Use `const' for first argument.
5086 (html_text::do_table): Use cast.
5087 * src/devices/grohtml/html-text.h: Updated.
5088 * src/devices/grohtml/output.cc (simple_output::put_string): Add
5089 method for `const string &s'.
5090 * src/devices/grohtml/html.h: Updated.
5091 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5092 (ANCHOR_TEMPLATE): Modified.
5093 (manufacture_headings): New global variable to handle `-h' option.
5094 (is_subsection): Removed.
5095 (char_buffer::add_string): Add `const' to first argument.
5096 Protect against invalid string argument.
5097 Add method for `const string &s'.
5098 (text_glob): Completely redesigned.
5099 (page): Use `const' for strings and remove string length variable.
5100 (page::add_html): Removed.
5101 (page::add_end_encode): New member function.
5102 (to_unicode): Moved upwards.
5103 (title_desc, header_desc): Updated.
5104 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5106 (html_printer::is_bold, html_printer::make_bold): New member
5108 (html_printer::end_of_line): Updated.
5109 (generate_img_src, html_printer::do_auto_image,
5110 html_printer::do_title, html_printer::write_header,
5111 html_printer::determine_header_level, html_printer::do_heading,
5112 html_printer::do_linelength, html_printer::do_pageoffset,
5113 html_printer::do_indentation, html_printer::do_tempindent,
5114 html_printer::do_indentedparagraph, html_printer::do_break,
5115 html_printer::flush_sbuf, get_html_translation,
5116 html_printer::begin_page, html_printer::special): Rewritten to get
5117 rid of static string length limit.
5118 (html_printer::troff_tag): Added `.no-auto-rule'.
5119 (html_printer::flush_globs): Small fix.
5120 (html_printer::determine_space): Don't compute `space_width'.
5121 (html_printer::translate_to_html): Renamed to ...
5122 (html_printer::emit_html): This (with updates).
5123 (html_printer::write_header): Implement `-h' option.
5124 (html_printer::draw): Remove commented-out code. Handle `F'
5126 (html_printer::add_char_to_sbuf): Removed.
5127 (html_printer::add_to_sbuf): Rewritten.
5128 (html_printer::sbuf_continuation): Fixed.
5129 (html_printer::seen_backwards_escape, reverse,
5130 html_printer::remove_last_char_from_sbuf): Removed.
5131 (char_translate_to_html, str_translate_to_html): Removed.
5132 (html_printer::overstrike): New function member.
5133 (html_printer::set_char): Use it.
5134 (html_printer::do_body): New function member.
5135 (html_printer::~html_printer): Use it.
5136 (main): Handle `-h' option.
5138 * src/devices/grohtml/grohtml.man: Document -h switch.
5140 * src/preproc/html/pre-html.cc: Include searchpath.h
5141 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5142 (get_resolution): New function.
5143 (checkImageDir): Use `0777' permissions in mkdir()
5144 (write_start_image): Rewritten to use `\O[5...]'.
5145 (createImage, generateImages): Updated.
5146 (main): Handle `F' and `h' options.
5147 Use `get_resolution'.
5149 * src/roff/troff/input.cc (begin, end, image): Removed.
5150 (do_suppress): Take parameter.
5151 Handle modified syntax of `\O'.
5152 (token::next): Updated.
5153 (init_markup_requests): Removed.
5156 * src/roff/troff/div.h: Add declaration for begin_page().
5158 * tmac/color-html.tmac: Removed. Contents moved to...
5159 * tmac/html.tmac: Here. Set background color.
5160 * tmac/color.tmac: Removed. Contents moved to...
5161 * tmac/ps.tmac: Here.
5162 * tmac/www.tmac: Remove the title command when generating images
5164 (NO_AUTO_RULE): New macro.
5165 (HTML_DO_IMAGE): Use revised `\O' escapes.
5166 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5168 2001-12-02 Werner LEMBERG <wl@gnu.org>
5170 * tmac/groff_mdoc.man: Fix typo.
5172 2001-12-01 Colin Watson <cjwatson@debian.org>
5174 * man/roff.man: Fix typo.
5176 2001-11-29 Werner LEMBERG <wl@gnu.org>
5178 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5181 * src/roff/troff/input.cc (read_draw_node): Emit error message if
5182 more than one argument to \D'f ...'.
5184 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5186 2001-11-28 Werner LEMBERG <wl@gnu.org>
5188 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5191 * tmac/groff_man.man: Minor cosmetic fix.
5193 2001-11-27 Werner LEMBERG <wl@gnu.org>
5195 * src/roff/groff/groff.man, tmac/groff_tmac.man,
5196 tmac/groff_www.man: s/mwww/www/.
5198 2001-11-26 Werner LEMBERG <wl@gnu.org>
5200 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5201 * configure: Regenerated.
5202 * win32-diffs: Updated.
5204 * tmac/groff_mwww.tmac: Renamed to ...
5205 * tmac/groff_www.tmac: This.
5206 * tmac/mwww.tmac: Removed.
5207 * NEWS, tmac/Makefile.sub: Updated.
5209 2001-11-21 Werner LEMBERG <wl@gnu.org>
5211 * doc/groff.texinfo: Improve documentation of the `\v' escape.
5212 Fix explanation of `\D' and `rt'.
5214 2001-11-20 Werner LEMBERG <wl@gnu.org>
5216 * tmac/an-old.tmac (an-header): Set header length equal to page
5218 * doc/groff.texinfo: Improve documentation of `ne' request. Other
5222 2001-11-19 Werner LEMBERG <wl@gnu.org>
5224 * NEWS, man/Makefile.sub: Updated.
5226 2001-11-19 Bernd Warken <bwarken@mayn.de>
5228 * man/ditroff.man: New file.
5230 2001-11-17 Werner LEMBERG <wl@gnu.org>
5232 * man/groff_differences.man: Renamed to ...
5233 * man/groff_diff.man: This. Updated.
5234 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5236 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5237 * src/preproc/html/pushback.cc: This. Updated.
5238 * src/preproc/html/pushbackbuffer.h: Renamed to ...
5239 * src/preproc/html/pushback.h: This.
5240 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5243 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5244 * src/libs/libgroff/htmlhint.cc: This.
5245 * src/libs/libgroff/Makefile.sub: Updated.
5247 * tmac/an-old.tmac (an-end): Fix page length.
5249 2001-11-16 Werner LEMBERG <wl@gnu.org>
5251 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5252 * man/Makefile.sub: Include groff_differences.man.
5253 * VERSION: Set to 1.18.
5254 * REVISION: Set to 0.
5256 2001-11-16 Bernd Warken <bwarken@mayn.de>
5258 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5259 the second dot (or ending macro name) to end a macro.
5260 * doc/groff.texinfo: Doc fix.
5262 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
5264 * tmac/doc-common (doc-header): Handle very long document titles
5267 2001-11-16 Werner LEMBERG <wl@gnu.org>
5269 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5271 2001-11-15 Werner LEMBERG <wl@gnu.org>
5273 * src/roff/troff/troff.man: Revised and split into troff.man and...
5274 * man/groff_differences.man: New file.
5277 2001-11-13 Werner LEMBERG <wl@gnu.org>
5279 * tmac/an-old.tmac (TS, TE): New macros for table support.
5281 2001-11-12 Werner LEMBERG <wl@gnu.org>
5283 * src/include/lib.h: Provide a fix for emx to not include
5286 2001-10-27 Werner LEMBERG <wl@gnu.org>
5288 * src/roff/troff/input.cc (substring_macro): Fix computation of
5291 2001-10-20 Werner LEMBERG <wl@gnu.org>
5293 Undo change from 2001-08-28.
5295 * src/roff/troff/input.cc (have_input): New global variable.
5296 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5297 in compatibility mode.
5298 (process_input_stack): Use it.
5300 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
5302 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5303 being handled as end-of-sentence characters,
5305 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
5307 * src/roff/troff/input.cc (file_iterator): New members
5308 `suppress_newline_flag' and `seen_escape'.
5309 (file_iterator::next_file): Updated.
5310 (file_iterator::fill): Use it.
5311 (string_iterator): New member `suppress_newline_flag'.
5312 (string_iterator::fill): Set it.
5313 (get_color_element): Use MAX_COLOR_VAL.
5314 * src/roff/troff/env.cc (environment): Remove `need_eol'.
5315 (no_fill): Don't set `env->ignore_next_eol'.
5316 (environment::newline): Handle `eol' tag properly.
5318 (environment::add_html_tag): Set `env->ignore_next_eol'.
5320 * src/roff/troff/env.h (environment): Updated.
5322 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5324 (html_printer::outstanding_eol): New member function.
5325 (html_printer::do_title): Use new functions.
5326 (html_printer::troff_tag): Test `id_eol_ce'.
5328 2001-10-10 Werner LEMBERG <wl@gnu.org>
5330 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5331 files work with -C also.
5333 2001-10-05 Werner LEMBERG <wl@gnu.org>
5335 * doc/pic.ms: Minor fix.
5336 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5337 as a valid command line switch.
5338 * src/devices/grohtml/post-html.cc (main): Ditto.
5340 * src/devices/grohtml/grohtml.man: Updated.
5341 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5343 2001-10-04 Werner LEMBERG <wl@gnu.org>
5345 Implementing color support in troff, pic, grops, and grohtml. These
5346 changes are based on a major patch provided by Gaius Mulley
5349 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5350 definitions with both hex values and fractions.
5352 New escapes: \m and \M for drawing and background color,
5353 respectively. This corresponds to the troff output commands `m'
5356 groff and troff accept command line switch `-c' to disable color
5357 output (which is automatically disabled in compatibility mode).
5359 New scaling indicator `f' for fractions (1f = 65536u).
5361 New conditional operator `m' to test for defined colors with `if'
5364 New keywords `color' (or `colour', `colored', `coloured'), `outline'
5365 (or `outlined'), and `shaded' added to pic.
5367 * src/include/color.h: New file.
5368 * src/include/driver.h: Include it.
5369 * src/include/printer.h: Include color.h.
5370 (environment): New members `col' and `fill'.
5371 (printer): Remove `adjust_arc_center' member function.
5372 * src/include/Makefile.sub: Updated.
5374 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5376 Handle `m' and `DF' troff commands.
5377 * src/libs/libgroff/color.cc: New file.
5378 * src/libs/libgroff/Makefile.sub: Updated.
5380 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5382 (createImage): Fix computation of `y2'.
5384 (buffer::write_file_html): Remove calls to `stop'.
5386 * src/preproc/pic/common.h (common_output): New abstract function
5387 members `set_color', `reset_color', `get_last_filled', and
5388 `get_outline_color'.
5389 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5390 (object_spec): Add members `shaded' and `outlined'.
5391 * src/preproc/pic/output.h (output): `command' is now abstract.
5392 New function members `set_color', `reset_color', `get_last_filled',
5393 and `get_outline_color'.
5394 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5395 `outline[d]', and `shaded'.
5396 * src/preproc/pic/object.cc (output::command): Removed.
5397 (output::set_location): Moved to output.h.
5398 (graphic_object): Add protected members `outline_color' and
5400 Add member functions `set_outline_color', `get_outline_color', and
5402 (closed_object): Add member function `set_fill_color'.
5403 Add member `color_fill'.
5404 (graphic_object::print_text): Use `out->set_color' and
5406 (box_object::print, ellipse_object::print, circle_object::print,
5407 line_object::print, spline_object::print, arc_object::print): Ditto.
5408 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5409 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5410 `SHADED', making them `%left'.
5411 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5412 * src/preproc/pic/tex.cc (tex_output): New dummy function members
5413 `set_color', `reset_color', `get_last_filled', and
5414 `get_outline_color'.
5415 * src/preproc/pic/troff.cc (simple_output): New abstract function
5416 members `set_color', `reset_color', and `get_last_filled'.
5417 (simple_output::polygon, simple_output::circle,
5418 simple_output::ellipse): Use `get_last_filled'.
5419 (troff_output): New members `last_filled' and `last_outlined'.
5420 New function members `set_color', `reset_color', `get_last_filled',
5421 and `get_outline_color'.
5422 (troff_output::finish_picture): Use `reset_color'.
5423 (troff_output::set_fill): Test `last_filled'.
5424 * src/preproc/pic/pic.man: Updated.
5426 * src/roff/groff/groff.cc (main): Implement `-c' option.
5427 (synopsis, help): Updated.
5428 src/roff/groff/groff.man: Updated.
5430 * src/roff/troff/troff.h: Include color.h.
5431 (warning_type): Add WARN_COLOR.
5432 * src/roff/troff/env.h (environment): New members
5433 `{cur,prev}_{glyph,fill}_color'.
5434 New member functions `get_{prev_,}{glyph,fill}_color'.
5435 * src/roff/troff/env.cc: Initialize and implement them.
5436 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5437 Replace `NULL' with `0' everywhere for consistency.
5438 (lookup_color, default_black, do_glyph_color, do_fill_color,
5439 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5440 define_color): New functions.
5441 (token::next): Implement \M and \m escapes.
5442 (do_if_request): Implement `m' operator.
5444 (main): Implement `-c' option.
5445 (init_markup_requests): Add `defcolor' request.
5446 (warning_table): Add `color' warning.
5447 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5449 * src/roff/troff/node.cc (troff_output_file): New members
5450 `current_{page,glyph}color'. New member functions `put_hex',
5451 `glyph_color', and `fill_color'.
5452 (glyph_color_node::*, fill_color_node::*): Implement it.
5453 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5454 (parse_term): Add support for `f'.
5455 * src/roff/troff/troff.man: Updated.
5457 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5459 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5460 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5462 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5463 (tag_definition): Use `void *' for arg1.
5464 (html_text): New member functions `do_color' and `done_color'.
5465 Use `void *' for second parameter of `push_para' member function.
5466 New `push_para' member function with a single parameter.
5467 Use `char *' for parameter of `issue_table_begin' member funtion.
5468 New `issue_color_begin' member function.
5469 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5471 (html_text::issue_color_begin): New function.
5472 (html_text::issue_table_begin): Use `char *' for parameter.
5473 (html_text::start_tag, html_text::shutdown,
5474 html_text::check_emit_text): Updated.
5475 (html_text::push_para): Use `void *' for second parameter.
5476 Add same function with only one parameter.
5477 (html_text::do_*): Updated.
5478 (html_text::do_color, html_text::done_color): New functions.
5479 * src/devices/grohtml/post-html.cc (style): New member `col'.
5480 Mew member `style' with 6 parameters.
5481 (style::style, style::operator==): Updated.
5482 (html_printer::do_font): Use it.
5483 (html_printer::draw): Add dummy entry for `F'.
5484 (html_printer::set_char): Updated.
5485 * src/devices/grohtml/grohtml.man: Updated.
5487 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5488 trailing zeroes removed.
5489 (ps_printer): New members `sbuf_color', `fill_color', and
5491 Removed member `fill'.
5492 New member function `set_color'.
5493 (ps_printer::ps_printer, ps_printer::set_char): Updated.
5494 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5495 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5497 * tmac/color-html.tmac, tmac/color.tmac: New files.
5498 * tmac/troffrc: Include them.
5499 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5500 * tmac/Makefile.sub: Updated.
5502 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5503 man/groff.man: Updated.
5504 * font/devps/prologue.ps: Define FC and CO functions.
5506 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
5508 Fix incorrect cropping of images and incorrect handling of special
5509 characters. Fix handling of file names in \O.
5511 * src/include/geometry.h: New file.
5512 * src/libs/libgroff/geometry.cc: New file.
5513 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5515 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5517 (do_suppress): Updated.
5518 * src/roff/troff/node.cc: Include geometry.h.
5519 (troff_output_file::flush_tbuf): Fixed parameters to
5520 `check_output_limits'.
5521 (troff_output_file::check_charinfo): Ditto.
5522 (troff_output_file::determine_line_limits): Add support for `Da'
5525 * src/devices/grohtml/post-html.cc (str_translate_to_html):
5526 Add new parameter `is_special' to decode special characters from
5528 (html_printer::do_title, html_printer::do_heading,
5529 html_printer::do_indentedparagraph,
5530 html_printer::translate_to_html, html_printer::special): Updated.
5532 2001-10-03 Werner LEMBERG <wl@gnu.org>
5534 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5535 Fix entry for config.h.
5536 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5537 * tmac/troffrc: Translate nonbreakable space character to `\~'.
5538 * src/preproc/eqn/eqn.man: Document -d command line option.
5540 2001-09-27 Werner LEMBERG <wl@gnu.org>
5542 * man/groff.man: Use
5550 instead of the old code (`.ad .hy' after the table) to suppress
5551 incorrect hyphenation for grohtml output.
5553 2001-09-22 Werner LEMBERG <wl@gnu.org>
5555 * man/groff_font.man, man/groff_out.man: Minor fixes.
5557 2001-09-20 Werner LEMBERG <wl@gnu.org>
5559 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
5560 Arnold Robbins <arnold@skeeve.com>).
5562 2001-09-09 Werner LEMBERG <wl@gnu.org>
5564 * configure: Regenerated with autoconf 2.52.
5566 * doc/groff.texinfo: Complete revision of indices.
5568 2001-09-07 Werner LEMBERG <wl@gnu.org>
5570 * doc/Makefile (clean): Updated to delete all indices.
5572 2001-09-05 Werner LEMBERG <wl@gnu.org>
5574 * src/roff/troff/troff.man: Remove superfluous line.
5576 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5577 given on the command line (or rather, if only the default warnings
5580 2001-09-03 Werner LEMBERG <wl@gnu.org>
5582 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5583 use .ne for TTY devices.
5585 2001-08-31 Werner LEMBERG <wl@gnu.org>
5587 * src/roff/troff/token.h, src/roff/troff/input.cc:
5588 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5590 2001-08-28 Werner LEMBERG <wl@gnu.org>
5592 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5593 * src/roff/troff/input.cc (token::next): Return
5594 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5596 (token::description): Updated.
5597 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5598 (token::add_to_node_list, token::process): Ignore
5599 TOKEN_TRANSPARENT_ESCAPE.
5601 2001-08-27 Werner LEMBERG <wl@gnu.org>
5603 * tmac/an-old.tmac: Fix `S' string.
5605 2001-08-26 Werner LEMBERG <wl@gnu.org>
5607 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5609 2001-08-25 Werner LEMBERG <wl@gnu.org>
5611 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5613 Many other minor fixes.
5615 * configure.ac: Add message at end to inform how to compile
5617 * configure: Regenerated.
5619 2001-08-24 Werner LEMBERG <wl@gnu.org>
5621 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5622 Updated to latest version of libc.
5624 2001-08-23 Werner LEMBERG <wl@gnu.org>
5626 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5627 Autoconf 2.50 and newer can handle this.
5628 * configure: Regenerated.
5630 2001-08-21 Werner LEMBERG <wl@gnu.org>
5632 * doc/pic.ms: Fix typo.
5633 * src/preproc/tbl/tbl.man: Document case of global options.
5635 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
5637 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5638 handling of `CR' font.
5640 2001-08-20 Werner LEMBERG <wl@gnu.org>
5642 Use a config.h file.
5644 * src/include/lib.h: Include config.h.
5645 * All C files: Ditto (if necessary).
5646 * All C++ source and header files: Include lib.h first (if
5649 * src/include/config.hin: New file (autogenerated by autoheader).
5650 * stamp-h.in: New file.
5651 * configure.ac: Updated.
5652 * aclocal.m4: Add third parameters to AC_DEFINE macros.
5653 (GROFF_ARRAY_DELETE): Simplified.
5654 * Makefile.sub (DISTCLEANFILES): Updated.
5655 Added targets for remaking config.status, config.hin, config.h,
5656 stamp-h.in, and stamp-h.
5657 * configure: Regenerated.
5659 2001-08-19 Werner LEMBERG <wl@gnu.org>
5663 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
5665 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
5666 (do_sprintf): Use snprintf().
5668 2001-08-18 Werner LEMBERG <wl@gnu.org>
5670 * src/libs/snprintf/*: Added an snprintf module written by Mark
5672 * src/libs/libgroff/Makefile.sub: Updated.
5673 * configure.ac: Add test for snprintf().
5674 * Makefile.in: Updated.
5675 * configure: Regenerated.
5677 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
5680 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
5682 * tmac/doc.tmac (Ex): New implementation.
5683 * tmac/doc-common, tmac/groff_tmac.man: Updated.
5685 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
5687 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
5689 * tmac/groff_tmac.man: Updated.
5691 2001-08-13 Werner LEMBERG <wl@gnu.org>
5693 * src/preproc/tbl/tbl.man: Minor documentation update.
5695 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
5697 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
5698 * configure.ac: Add declaration test for gettimeofday().
5699 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
5700 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
5701 * configure: Regenerated.
5703 2001-08-11 Werner LEMBERG <wl@gnu.org>
5705 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
5706 * configure.ac: Add declaration test for strcasecmp().
5707 * Makefile.in: Updated.
5708 * configure: Regenerated.
5709 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
5710 this is necessary because groff's mkstemp.cc is C++.
5711 Add declaration conditionally for strcasecmp().
5713 2001-08-10 Werner LEMBERG <wl@gnu.org>
5715 Integrated pic2graph, contributed by Eric S. Raymond.
5717 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
5719 * Makefile.in, NEWS: Updated.
5721 * src/preproc/tbl/tbl.man: Revised.
5723 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
5725 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
5727 2001-08-09 Werner LEMBERG <wl@gnu.org>
5729 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
5732 2001-08-08 Paul Eggert <eggert@twinsun.com>
5734 * Makefile.sub (configure): Depend on configure.ac, not
5736 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
5738 2001-08-07 Werner LEMBERG <wl@gnu.org>
5740 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
5743 2001-08-06 Werner LEMBERG <wl@gnu.org>
5745 * src/roff/troff/troff.man: Improve documentation of -E option.
5747 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5749 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
5752 2001-07-27 Werner LEMBERG <wl@gnu.org>
5754 * src/preproc/refer/refer.cc: Undo last change.
5755 * src/devices/grohtml/post-html.cc: Ditto.
5757 2001-07-26 Werner LEMBERG <wl@gnu.org>
5759 * src/preproc/refer/refer.cc: Include `lib.h'.
5760 * src/devices/grohtml/post-html.cc: Ditto.
5762 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
5764 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
5765 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
5766 * Makefile.in: Comment updated.
5767 * configure: Regenerated.
5769 2001-07-25 Werner LEMBERG <wl@gnu.org>
5771 * src/preproc/pic/pic.cc: Removed.
5772 * src/preproc/pic/pic_tab.h: Removed.
5773 * src/preproc/refer/label.cc: Removed.
5775 * doc/Makefile (.ms.html): Don't use a file name extension in
5776 argument to grohtml's -I option.
5777 * Makefile.in (dist): Remove CVS directories.
5778 Call `distfiles' target.
5780 * src/devices/grohtml/grohtml.man: Add information about valid
5781 versions of pnmtopng.
5782 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
5783 name instead of number.
5785 2001-07-24 Werner LEMBERG <wl@gnu.org>
5787 * doc/groff.texinfo: Minor fixes.
5789 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
5791 * doc/Makefile (.ms.html): Put image files into a subdirectory.
5794 2001-07-20 Werner LEMBERG <wl@gnu.org>
5796 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
5797 * src/libs/libgroff/mkstemp.cc: New file.
5798 * src/libs/libgroff/mksdir.cc: New file.
5799 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
5800 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
5801 * src/libs/libgroff/Makefile.sub: Updated.
5802 * src/include/lib.h: Add mksdir() prototype.
5803 * src/include/posix.h: Define S_IXUSR if not yet defined.
5805 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
5806 (createAllPages): Use mksdir() instead of current code.
5807 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
5808 (main): [!HAVE_MKSTEMP]: Removed.
5810 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
5811 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
5813 * configure.ac: Add tests for stdint.h, sys/time.h, and
5815 Call new GROFF_xxx macros.
5816 * configure: Regenerated.
5817 * Makefile.in: Comments updated.
5819 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
5821 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
5822 instead of current code.
5823 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
5824 * src/roff/groff/groff.cc (possible_command::insert_args): New
5826 (main): Use it for predriver handling instead of insert_arg().
5828 2001-07-19 Werner LEMBERG <wl@gnu.org>
5830 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
5833 * src/include/posix.h: Define S_IWUSR if not yet defined.
5835 2001-07-18 Werner LEMBERG <wl@gnu.org>
5839 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
5841 * tmac/groff_mdoc.man: Document new -width and -column syntax.
5842 Some other minor fixes.
5843 * tmac/an-old.tmac: Add `AT' and `UC' macros.
5845 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
5847 Replace call to `troff' with `groff -Z' to make it aware of
5850 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
5851 (troff_command, command_prefix): Removed.
5852 (alterDeviceTo): Use groff.
5853 (addZ): New function.
5854 (char_buffer::do_html): Use it.
5855 (scanArguments): Use TROFF_COMMAND.
5856 (findPrefix): Removed.
5858 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
5860 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
5862 * doc/pic.ms: Documentation fixes.
5864 2001-07-17 Werner LEMBERG <wl@gnu.org>
5866 Replace atexit() with global destructor.
5868 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
5869 (xtmpfile_list_init): New global structure to deallocate
5870 xtmpfile_list on exit. Its destructor inherits most code from
5872 (remove_tmp_files): Deleted.
5873 (add_tmp_file): Simplified.
5875 2001-07-16 Werner LEMBERG <wl@gnu.org>
5877 Replace strdup() with strsave().
5879 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
5880 (set_papersize): Use strsave() and a_delete.
5881 (main): Use strsave().
5882 * src/preproc/html/pre-html.cc (make_message, createAllPages,
5883 removeAllPages): Use strsave() and a_delete.
5885 * configure.ac: Remove test for strdup.
5886 * Makefile.in: Comment updated.
5887 * configure: Regenerated.
5889 2001-07-15 Werner LEMBERG <wl@gnu.org>
5891 * win32-diffs: Updated.
5893 2001-07-14 Werner LEMBERG <wl@gnu.org>
5895 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
5896 removing the old one.
5897 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
5899 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5901 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
5903 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
5905 Merge -xwidth into -width. Add -xwidth functionality to -column
5908 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
5910 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
5911 string immediately following a leading dot starts with a valid mdoc
5913 Add similar code to the -column branch.
5914 (doc-Bl-usage): Updated.
5915 * groff_mdoc.man: s/-xwidth/-width/.
5917 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
5919 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
5920 running into centered or non-formatted text.
5922 2001-07-11 Werner LEMBERG <wl@gnu.org>
5924 Introduce short and long prefixes to have the selection at run-time
5925 whether there is a 8+3 limit for names of temporary files.
5927 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
5928 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
5929 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
5931 (temp_init): New global structure to initialize above three
5933 (xtmptemplate): Use two parameters for long and short prefix.
5934 Simplify code use above three variables.
5935 (xtmpfile): Use long and short prefixes as parameters.
5936 * src/include/lib.h: Updated.
5938 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
5940 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
5941 (createAllPages, makeTempFiles): Updated.
5943 2001-07-09 Werner LEMBERG <wl@gnu.org>
5945 * REVISION: Increased to 3.
5947 Version 1.17.2 released
5948 =======================
5950 2001-07-07 Werner LEMBERG <wl@gnu.org>
5952 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
5955 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
5957 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
5959 * tmac/groff_mdoc.man: Fix synopsis.
5961 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
5963 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
5964 Restore `doc-Pa-font'.
5966 2001-07-04 Werner LEMBERG <wl@gnu.org>
5968 * src/utils/indxbib/dirnamemax.c: Moved to ...
5969 * src/libs/libgroff/maxfilename.cc: Here.
5970 s/dir_name_max/file_name_max/.
5972 * src/include/lib.h: Add file_name_max.
5973 * src/utils/indxbib/indxbib.cc: Updated.
5974 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
5977 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
5979 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
5981 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
5982 REGION_TEMPLATE): New macros.
5983 (createAllPages, makeTempFiles): Use them.
5984 Include `nonposix.h'.
5985 (html_system): New function.
5986 (createAllPages, createImage): Use it.
5989 * tmac/www.tmac: Fix typos.
5991 2001-07-03 Werner LEMBERG <wl@gnu.org>
5993 * tmac/www.tmac: Disable hyphenation in normal text only if output
5995 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
5996 * tmac/groff_mwww.man, NEWS: Updated.
5998 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
6000 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6003 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
6005 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6006 doc-display-ps-stack): Implement font and font size stack for
6009 2001-07-02 Werner LEMBERG <wl@gnu.org>
6011 * REVISION: Increased to 2.
6012 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6014 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6015 beginning of a line.
6016 * src/groff/grog/grog.sh: Ditto.
6018 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
6020 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6023 2001-06-27 Werner LEMBERG <wl@gnu.org>
6025 Fix problems with preprocessor string for `man' program.
6027 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
6028 Updated/added copyright.
6029 Moved Emacs's local variable to identify nroff mode to the end of
6030 the file; add local variable if missing.
6032 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
6034 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6035 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6036 * configure: Regenerated.
6038 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
6040 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6041 * configure: Regenerated.
6043 2001-06-24 Werner LEMBERG <wl@gnu.org>
6045 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6047 * doc/pic.ms: Fix typos.
6049 Version 1.17.1 released
6050 =======================
6052 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
6054 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6055 * configure: Updated.
6057 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
6059 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6061 * src/roff/troff/dic.cc (blank_line): Add html tag.
6063 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
6065 * src/roff/troff/input.cc (do_suppress): Fix typo.
6067 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
6069 Added two new options (-D and -I) to specify image names and a
6070 subdirectory to place the images in.
6072 Change syntax from \\Ox to \\O[x].
6074 * src/devices/grohtml/post-html.cc (main): Add options.
6076 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6077 Use `NULL' instead of `0' for null string pointers.
6078 (MAX_RETRIES): New macro.
6079 (lengthOfintToStr, intToStr, make_message): New functions.
6080 (makeFileName): Make function static.
6081 Implement -D and -I options.
6082 (checkImageDir): New function.
6083 (write_end_image, write_start_image): Use new syntax of \O.
6084 (createAllPages, removeAllPages): Implement -D and -I options. Use
6086 (createImage): Use make_message().
6087 (addps4html): Add guard for malloc().
6088 (usage, scanArguments): Updated.
6089 (makeTempFiles): Use mkstemp().
6090 (removeTempFiles): Use unlink().
6091 (findPrefix): Add guard for malloc().
6093 * src/roff/troff/input.cc (get_delim_file_name): New function to
6095 (do_suppress): Updated to parse new syntax.
6096 * src/devices/grohtml/grohtml.man: Updated.
6097 * tmac/www.tmac: Updated to new syntax.
6101 2001-06-15 Werner LEMBERG <wl@gnu.org>
6103 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6105 * src/devices/grohtml/grohtml.man: Minor improvements.
6107 2001-06-14 Werner LEMBERG <wl@gnu.org>
6109 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6111 2001-06-11 Werner LEMBERG <wl@gnu.org>
6113 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6114 line to specify preprocessor options -- mandb 2.3.1 only recognizes
6116 * src/preproc/grn/grn.man: Add proper '\" string.
6118 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
6120 * test-groff: Don't use PATH but GROFF_BIN_PATH.
6122 2001-06-08 Werner LEMBERG <wl@gnu.org>
6124 Updated to autoconf 2.50.
6126 * configure.in: Renamed to...
6127 * configure.ac: This.
6128 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6129 (GROFF_OS390): Updated.
6130 * configure: Regenerated.
6132 2001-05-18 Werner LEMBERG <wl@gnu.org>
6134 * src/roff/troff/env.c, src/roff/troff/env.h,
6135 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6138 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
6140 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6142 2001-05-16 Werner LEMBERG <wl@gnu.org>
6144 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6145 less than or equal zero; set it to 1 then.
6146 * src/roff/troff/node.h (node::node): Initialize `last'.
6148 2001-05-08 Werner LEMBERG <wl@gnu.org>
6150 * tmac/an-old.tmac: Make predefined strings work in compatibility
6152 Add troff version guard.
6153 * tmac/doc.tmac: Simplify version guard.
6155 2001-05-07 Werner LEMBERG <wl@gnu.org>
6157 The .ns and .rs requests are now honoured not only in the top-level
6158 but in all diversions (similar to UNIX troff).
6160 This change is based on a patch from Tadziu Hoffmann
6161 <hoffmann@usm.uni-muenchen.de>.
6163 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6164 (top_level_diversion): Remove `no_space_mode' member.
6165 * src/roff/troff/div.cc (diversion::diversion,
6166 top_level_diversion::top_level_diversion): Updated.
6167 (macro_diversion::output): Reset `no_space_mode'.
6168 (no_space, restore_spacing): Use `curdiv' unconditionally.
6169 (space_request, blank_line): Check `curdiv->no_space_mode'.
6170 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6171 `curdiv' unconditionally.
6172 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6175 2001-05-06 Werner LEMBERG <wl@gnu.org>
6177 Added two new requests `de1' and `am1' which are similar to `de' and
6178 `am' with the difference that compatibility mode is saved on entry,
6179 switched off during macro execution, and restored on exit.
6181 * src/roff/troff/input.h: Added two new special characters
6182 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6183 * src/roff/troff/input.cc (input_iterator): Added two member
6184 functions `save_compatible_flag' and `get_compatible_flag'.
6185 (input_stack): Ditto.
6186 (string_iterator): Ditto. Also add private member
6187 `saved_compatible_flag'.
6188 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6189 (calling_mode): New enumeration.
6190 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
6191 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6192 (define_macro, define_indirect_macro, append_macro, ignore): Use
6194 (define_nocomp_macro, append_nocomp_macro): New functions.
6195 (init_input_requests): Updated.
6196 (do_request): Rename local variable `saved_compatible_flag' to
6197 `old_compatible_flag'.
6198 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6200 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6201 public and trap-invoked macros. As a consequence, the man macros
6202 work in compatibility mode also.
6204 2001-05-06 Solar Designer <solar@openwall.com>
6206 * Makefile.in: Use $(mandir).
6208 2001-05-06 Alexios Zavras <zvr@pobox.com>
6210 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6212 2001-05-05 Werner LEMBERG <wl@gnu.org>
6214 Added `.ns' number register: Returns 1 in no-space mode (if in
6215 top-level diversion), 0 otherwise.
6217 * src/roff/troff/div.cc (no_space_mode_reg): New class.
6218 (init_div_requests): Updated.
6219 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6222 2001-05-04 Werner LEMBERG <wl@gnu.org>
6224 * src/roff/nroff/nroff.man: Improved documentation (especially
6227 2001-05-02 Werner LEMBERG <wl@gnu.org>
6229 Added `brp' request: This is \p as a request.
6231 * src/roff/troff/env.cc (environment::do_break): Add parameter
6233 (do_break_request): New function (was `break_request').
6234 (break_request): Calls `do_break_request'.
6235 (break_spread_request): New; calls `do_break_request'.
6236 (init_env_requests): Updated.
6237 * src/roff/troff/env.h: Updated.
6238 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6240 * REVISION: Increased to 1.
6241 * win32-diffs: Updated.
6243 2001-05-01 Werner LEMBERG <wl@gnu.org>
6245 * tmac/an-old.tmac: Fix minor compatibility mode issue.
6246 * tmac/troffrc-end: Make it really work in compatibility mode.
6248 2001-04-27 Werner LEMBERG <wl@gnu.org>
6250 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6253 2001-04-22 Werner LEMBERG <wl@gnu.org>
6255 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6256 latest versions from glibc CVS archive.
6258 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6259 <c.zeelenberg@hccnet.nl>.
6261 2001-04-21 Werner LEMBERG <wl@gnu.org>
6263 * configure.in: Move check for mkstemp() to...
6264 * aclocal.m4 (GROFF_MKSTEMP): This new function.
6265 * configure: Regenerated.
6267 * src/include/groff-getopt.h: Don't use variable names in
6270 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
6271 * src/devices/grohtml/Makefile.sub,
6272 src/devices/grohtml/post-html.cc: Updated.
6274 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
6276 * configure.in: Add special check for mkstemp().
6277 * src/libs/libgroff/tmpfile.cc: Use it.
6278 * src/utils/indxbib/indxbib.cc: Ditto.
6279 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6280 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6283 2001-04-20 Bruce Lilly <blilly@erols.com>
6285 `Version_string' as C++ object was not visible to linker from C
6287 Add `const' to `Version_string'.
6289 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6290 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6291 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6292 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6293 (scanArguments), src/preproc/refer/refer.cc (main),
6294 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6295 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6296 (main), src/devices/grohtml/post-html.cc (main),
6297 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6298 (main), src/utils/hpftodit/hpftodit.cc (main),
6299 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6300 (main), src/utils/lkbib/lkbib.cc (main),
6301 src/utils/addftinfo/addftinfo.cc (main): Implement it.
6303 * src/roff/groff/pipeline.c: Add _UWIN.
6304 * src/include/nonposix.h: Ditto.
6306 2001-04-20 Werner LEMBERG <wl@gnu.org>
6308 * src/include/lib.h: Use HAVE_STRERROR.
6309 * src/roff/groff/pipeline.c: Ditto.
6310 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6311 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6312 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6313 * win32-diffs: Updated.
6314 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6316 2001-04-19 Werner LEMBERG <wl@gnu.org>
6318 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6319 instead of hardwired `"troff"'.
6320 (char_buffer::read_file): Remove unused variables.
6321 (char_buffer::write_file_troff): Ditto.
6322 (char_buffer::write_file_html): Ditto.
6323 (generateImages): Ditto.
6325 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6327 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6329 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6330 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6331 index_search_item::search1): Ditto.
6332 * src/roff/troff/node.h (width_list): Reorder members.
6333 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6334 (lookup_warning): Ditto.
6335 (prepend_string): Commented out.
6336 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6337 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6338 * src/preproc/tbl/main.cc (process_format): Ditto.
6339 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6341 * src/preproc/pic/pic.cc: Updated.
6342 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6343 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6344 * src/preproc/refer/command.cc (execute_command): Ditto.
6345 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6346 * src/preproc/refer/token.cc (lookup_token): Ditto.
6347 * src/preproc/soelim/soelim.cc: Ditto.
6348 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6349 (isHexDigit): Commented out.
6350 (pushBackBuffer::isString): Remove unused variable.
6351 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6353 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6354 resource_manager::read_resource_arg, read_one_of, parse_extensions):
6356 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6357 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6358 lookup_paper_size): Ditto.
6359 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6360 (text_glob, element_list): Reorder members.
6361 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6363 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6364 return value to `void'.
6365 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6367 * src/devices/grohtml/html.h (simple_output::check_newline,
6368 simple_output::space_or_newline, simple_output::enable_newlines):
6370 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6372 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6373 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6374 output_ligatures, output_charset, read_map): Ditto.
6375 * src/utils/lookbib/lookbib.cc (main): Ditto.
6376 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6377 (do_file): Fix typo (`=' -> `==').
6378 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6379 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6381 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
6383 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6384 Fix usage of GROFF_BIN_PATH.
6385 * src/roff/nroff/nroff.man: Updated.
6387 2001-04-18 Werner LEMBERG <wl@gnu.org>
6389 * NEWS: Fixing typos.
6392 Version 1.17 released
6393 =====================
6395 2001-04-17 Werner LEMBERG <wl@gnu.org>
6397 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6398 directory, not in $(srcdir).
6400 2001-04-16 Werner LEMBERG <wl@gnu.org>
6402 * doc/groff.texinfo: More info on conditionals.
6404 2001-04-15 Werner LEMBERG <wl@gnu.org>
6406 * doc/groff.texinfo: Added some info about groff internals.
6408 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6409 about missing special character only if the name is non-null.
6411 2001-04-14 Werner LEMBERG <wl@gnu.org>
6413 Removing the grohtml-old device driver which is now obsolete.
6415 * src/devices/grohtml-old/*: Removed.
6416 * font/devhtml-old/*: Removed.
6417 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6419 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6420 * test-groff (PATH): Updated.
6421 * tmac/Makefile.sub (NORMALFILES): Updated.
6422 * tmac/an-old.tmac: Remove special code for html-old device.
6423 Replace `html-or-html-old' register with `an-html'.
6424 * tmac/eqnrc: Updated.
6425 * tmac/html-old.tmac: Removed.
6426 * tmac/troffrc, tmac/troffrc-end: Updated.
6427 * tmac/www.tmac: Remove special code for html-old device.
6428 Replace `html-or-html-old' register with `www-html'.
6430 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6431 src/libs/libgroff/htmlindicate.cc (graphic_end),
6432 include/htmlindicate.h, src/preproc/grn/*.cc,
6433 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6434 single argument for consistency with rest of source code.
6436 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6438 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
6440 * src/roff/troff/troff.man: Fixing typos.
6442 2001-04-13 Werner LEMBERG <wl@gnu.org>
6444 * doc/pic.ms: Fixing many font switches.
6445 * doc/groff.texinfo: Fixes, additions.
6446 * MORE.STUFF: Updated.
6448 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
6450 * src/devices/grohtml/grohtml.man: Updated manual page regarding
6452 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6454 (removeTempFiles): New function to tidy up temporary files.
6455 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6456 Many fixes to do with the new inline suppress node and image regions
6458 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6459 (generate_img_src): New function.
6460 (html_printer::do_auto_image): Utilizes it.
6461 (do_heading, do_title): Include inline images within their contents.
6462 (html_printer::begin_page): Tidied up comments that are issued to
6463 the html output file.
6464 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6466 (text_glob::is_br): New method used by do_heading.
6467 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6468 equivalent diversion.
6469 * src/include/html-strings.h: Altered image tags to reflect the
6471 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6473 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6474 it is already inside a pic image. Only emit tags if the argument
6475 `-Tps:html' is present.
6476 * src/preproc/tbl/main.cc: Changes to reflect additional
6477 `html_end_suppress' parameter.
6478 * src/roff/troff/env.cc: Only emit eol tag if a node has been
6479 emitted since the last eol tag was written.
6480 * src/roff/troff/env.h: New boolean `emitted_node'.
6481 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6482 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
6483 * src/roff/troff/node.cc (check_charinfo): New method.
6484 (troff_output_file::determine_line_limits): Alterations to limit
6486 * tmac/www.tmac: Changes to reflect new suppress nodes.
6488 2001-04-12 Bruno Haible <haible@clisp.cons.org>
6490 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6491 Escape the html_glyph in the buffer.
6492 (str_translate_to_html): Output the unescaped escaped_char.
6493 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6494 `frame=void', not `frame=none'. Add `border=0'.
6496 2001-04-12 Werner LEMBERG <wl@gnu.org>
6498 * PROBLEMS: Add some words on how to avoid wrapper macros.
6500 2001-04-11 Blake McBride <blake@florida-software.com>
6502 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6504 2001-04-11 Werner LEMBERG <wl@gnu.org>
6506 * font/devlbp/Makefile.sub (CLEANADD): Set it.
6507 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6508 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6509 * Makefile.sub (DISTCLEANFILES): Here.
6511 * libs/libgroff/new.cc: Include `nonposix.h'.
6512 * win32-diffs: Updated.
6514 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
6516 Added skeleton macro for defunct macros.
6518 Updated documentation.
6520 When inside displays, an empty input line warning should be
6521 suppressed. If another macro call is put inside a display,
6522 all subsequent empty lines found in that display caused a
6523 warning to be emitted.
6525 * tmac/doc.tmac (doc-defunct-macro): New macro.
6526 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6527 (doc-restore-global-vars): Fixed typo.
6528 (doc-empty-line): Check the `doc-display-depth' register to
6529 determine whether we are inside display or not.
6531 * tmac/doc-common: Removed `Or' and `Sf' registers.
6532 Moved obsolete `Ds' macro to doc.tmac.
6534 * tmac/groff_mdoc.man: Bump document date.
6535 Document `.Vt' under ``Variable Types''.
6536 Removed documentation for obsolete `.Or' macro.
6538 2001-04-10 Werner LEMBERG <wl@gnu.org>
6541 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6543 2001-04-10 Bruno Haible <haible@clisp.cons.org>
6545 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6546 (usage): Add stream argument. Don't exit.
6547 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6548 Write --version output to stdout, not stderr.
6549 (usage): Add stream argument. Don't exit.
6550 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6551 (usage): Add stream argument. Don't exit.
6552 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6554 (usage): Add stream argument. Don't exit.
6555 (main): Write --help output to stdout, not stderr.
6556 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6557 (usage): Add stream argument. Don't exit.
6558 * src/devices/grops/ps.cc (main): Accept --help and --version.
6559 (usage): Add stream argument. Don't exit.
6560 * src/devices/grotty/tty.cc (main): Accept --help and --version.
6561 (usage): Add stream argument. Don't exit.
6562 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6563 (main): Accept --help and --version.
6564 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6565 (main): Accept --help and --version.
6566 * src/preproc/html/pre-html.cc (usage): Add stream argument.
6567 (scanArguments): Accept --help and --version.
6568 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6569 (main): Accept --help and --version.
6570 * src/preproc/refer/refer.cc (main): Accept --help and --version.
6571 (usage): Add stream argument. Don't exit.
6572 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6574 (main): Accept --help and --version.
6575 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6576 (main): Accept --help and --version.
6577 * src/roff/groff/groff.cc (main): Accept --help and --version.
6578 (synopsis): Add stream argument.
6579 (help): Write --help output to stdout, not stderr.
6580 (usage): Add stream argument. Don't exit.
6581 * src/roff/grog/grog.pl: Accept --help and --version.
6583 * src/roff/grog/grog.sh: Accept --help and --version.
6584 * src/roff/nroff/nroff.sh: Accept --help and --version.
6585 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6586 (usage): Add stream argument. Don't exit.
6587 (main): Accept --help and --version.
6588 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6589 (usage): New function with stream argument, doesn't exit.
6590 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6591 (usage): New function with stream argument, doesn't exit.
6592 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6593 (usage): Add stream argument. Don't exit.
6594 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6595 (main): Accept --help and --version.
6596 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6598 (main): Accept --help and --version.
6599 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6600 (main): Accept --help and --version.
6601 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6602 (usage): Add stream argument. Don't exit.
6604 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
6606 Fix indentation in SYNOPSIS.
6608 Updated to include changes of latest BSD mdoc version (basically,
6609 the only change is that `.Fn' and `.Fc' put a final semicolon after
6610 a function declaration in the SYNOPSIS section).
6612 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6613 (doc-in-synopsis-section): New variable. Updated all related
6615 (doc-indent-synopsis-active): New register.
6616 (Nd, Fn, Fo): Use it.
6617 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6618 `.Cd' with long argument line produces indented wrapped lines.
6619 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6620 undesirable line break to be output.
6621 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6623 (Fn, Fc): Add final `;' to output.
6624 (doc-save-global-vars, doc-restore-global-vars): Updated.
6625 * tmac/doc-common: Remove `Ex' register.
6627 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6630 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
6632 * tmac/doc.tmac (Cd): Simplify code.
6633 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6635 2001-04-06 Werner LEMBERG <wl@gnu.org>
6637 Implement continuous underlining for nroff mode. To do that, a new
6638 request in the ditroff language has been added: `x u N' (N is 0
6641 \X and \Y are now transparent to end-of-sentence recognition.
6643 * src/include/printer.h (printer): Add `type' parameter to `special'
6645 * src/libs/libdriver/printer.cc (printer::special): Updated.
6646 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6648 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6649 specials of type `p'.
6650 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6651 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6652 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6653 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6654 (glyph::order): New method.
6655 (tty_printer::add_char): Use it.
6656 (tty_printer::special): New method.
6657 (tty_printer::end_page): Implement it.
6659 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
6660 * src/roff/troff/node.cc (special_node::special_node): Add parameter
6661 to set `no_init_string'.
6662 (special_node::tprint_start): Use it.
6663 (special_node::same, special_node::copy): Updated.
6664 (special_node::ends_sentence): New method.
6665 (troff_output_file::start_special): Add parameter to include
6666 inititialization of special conditionally.
6668 * src/roff/troff/env.h (environment): New member `underline_spaces'.
6669 * src/roff/troff/env.cc (do_underline_special): New function.
6670 (environment::set_font): Use it.
6671 (do_underline): Use it. This was `underline()'.
6672 (underline): Call `do_underline()'.
6673 (continuous_underline): New function which calls `do_underline()'.
6674 (environment::newline): Use `do_underline_special()'.
6675 (init_env_requests): Updated.
6677 * NEWS, man/troff_out.man: Updated.
6679 2001-04-06 Bruno Haible <haible@clisp.cons.org>
6681 * font/devutf8/R.proto: Fix code of 'shc'.
6683 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
6685 Many fixes. Diag lists can now be nested also; additionally,
6686 `-compact' and `-offset' are supported.
6688 * tmac/doc.tmac (doc-have-indent): Replaced with ...
6689 (doc-list-have-indent-stackXXX): A new register stack.
6690 (doc-have-diag-list): Removed.
6691 (Bl): Use `doc-list-have-indent-stackXXX'.
6693 (doc-diag-list): Use `doc-compact-list-stackXXX'.
6694 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
6695 (doc-set-vertical-and-indent): Ditto.
6696 (doc-next-list-depth): Removed.
6697 (doc-increment-list-stack): Updated.
6698 (doc-decrement-list-stack): Use `doc-list-depth' instead of
6699 `doc-next-list-depth'.
6700 (doc-end-list, doc-end-column-list): Don't use
6701 `doc-increment-list-stack'.
6702 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
6703 (doc-save-global-vars, doc-restore-global-vars): Updated.
6704 * tmac/doc-common: Updated.
6705 * tmac/groff_mdoc.man: Updated.
6708 2001-04-02 Werner LEMBERG <wl@gnu.org>
6710 * src/devices/grotty/grotty.man: Fix grammatical error.
6712 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
6714 Remove .Ld from mdoc package; replace it with special handling of
6717 * tmac/doc-common: Remove `Ld' register.
6718 Uncomment `doc-volume-ds-*' strings.
6719 Remove `doc-operating-system-default'.
6721 * tmac/doc-syms (Ld): Removed.
6722 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
6726 * tmac/groff_mdoc.man: Many fixes and updates.
6728 2001-03-29 Werner LEMBERG <wl@gnu.org>
6730 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
6731 Bond <tkb@tkb.mpl.com>.
6732 * tmac/www.tmac: Save compatibility mode.
6734 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
6736 * tmac/groff_mdoc.man: Many fixes.
6738 2001-03-28 Werner LEMBERG <wl@gnu.org>
6740 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
6743 2001-03-27 Werner LEMBERG <wl@gnu.org>
6745 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
6746 diversion. This fixes overlong tags.
6748 2001-03-26 Werner LEMBERG <wl@gnu.org>
6750 * doc/groff.texinfo: Fixed and improved documentation of fonts.
6751 * tmac/doc-syms: Fix error messages.
6752 * tmac/an-old.tmac: Remove incorrect double backslashes.
6754 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
6756 * tmac/Makefile.sub: Strip mdoc.local also
6757 * tmac/strip.sed: Fixed.
6759 2001-03-24 Werner LEMBERG <wl@gnu.org>
6761 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
6762 selecting the font size.
6763 * tmac/groff_mdoc.man, NEWS: Document it.
6765 2001-03-23 Werner LEMBERG <wl@gnu.org>
6767 * src/roff/troff/div.cc (save_vertical_space): Add default argument
6769 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
6770 argument to restore previous font family.
6771 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
6773 * doc/groff.texinfo: More fixes and additions (mainly for font
6774 manipulating commands).
6776 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
6777 * tmac/groff_mdoc.man: This. The quick reference has been removed.
6778 * tmac/Makefile.sub, NEWS: Updated.
6780 2001-03-23 Werner LEMBERG <wl@gnu.org>
6782 Replaced mdoc implementation. The new version is `state of the
6783 art', using almost all new features of groff 1.17 -- it won't run
6784 with older versions.
6786 * tmac/doc.tmac: Completely rewritten.
6787 * tmac/doc-common: Ditto.
6788 * tmac/doc-nroff: Ditto.
6789 * tmac/doc-ditroff: Ditto.
6790 * tmac/doc-syms: Ditto.
6791 * tmac/mdoc.local: New file.
6792 * tmac/groff_mdoc.samples.man: Replaced with ...
6793 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
6794 * tmac/strip.sed: Updated.
6795 * tmac/Makefile.sub: Updated.
6798 * tmac/groff_man.man: Add `man.local' to the FILES section.
6800 2001-03-22 Werner LEMBERG <wl@gnu.org>
6802 * doc/groff.texinfo: Added many @noindent.
6803 Replaced @end_Example -> @endExample.
6804 Added info whether registers are r/o.
6805 Many other additions and fixes.
6807 2001-03-21 Werner LEMBERG <wl@gnu.org>
6809 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
6810 in makeinfo of texinfo 4.0) to be used in @Def* macros.
6811 Improved @Def* macros: Now the exact syntax of request, register,
6812 and escapes is shown.
6813 Added macros for parentheses and brackets to be used in @Def*.
6814 Many fixes and improvements of the documentation.
6816 2001-03-20 Werner LEMBERG <wl@gnu.org>
6818 * doc/groff.texinfo: Added new index: `st' (for strings).
6819 Added macros @Defstr(x).
6820 Added macro @Example (adding @group).
6821 Other minor improvements.
6823 2001-03-19 Werner LEMBERG <wl@gnu.org>
6825 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
6826 `rq' for requests. `fn' is no longer used.
6827 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
6830 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
6831 number with name of man page.
6833 2001-03-19 Larry Kollar <kollar@alltel.net>
6835 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
6838 2001-03-19 Werner LEMBERG <wl@gnu.org>
6840 * man/groff_font.man: Document `prepro', `postpro', and `print'.
6841 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
6842 * src/devices/grohtml/grohtml.man: Fixing typos.
6844 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
6846 * tmac/s.tmac (@IP): Pass `.ip' html tag.
6847 * tmac/groff_mwww.man: Remove .LINE macro
6848 * tmac/www.tmac (LINE): Add `.ti'.
6850 * src/devices/grohtml/post-html.cc (html_printer): New member
6852 (html_printer::emit_raw): Use it.
6853 (html_printer::do_linelength): Ditto.
6854 (html_printer::do_pageoffset): Ditto.
6855 (html_printer::do_indentation): Ditto.
6856 (html_printer::do_tempindent): Ditto.
6857 (html_printer::do_break): Ditto.
6858 (html_printer::begin_page): Ditto.
6859 (html_printer::do_indentedparagraph): New function.
6860 (html_printer::troff_tag): Handle `.ip'.
6861 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
6862 Add `<td width=...>' handling.
6863 (html_text::do_table): Add parameter.
6864 (html_text::do_indent): Updated.
6865 * src/devices/groohtml/html-text.h: Updated.
6867 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
6869 Introduced simple html tables to implement indentation.
6871 * src/devices/grohtml/html.h (word, word_list): New structures.
6872 (simple_output): Use it.
6873 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
6874 (html_printer): Improve indentation handling.
6875 (html_printer::emit_raw): Set `in_table' element. Handle
6877 (html_printer::write_header): Move conditional downwards.
6878 Don't allow whitespace in tags.
6879 (html_printer::do_linelength): Handle line length and indentation
6881 (html_printer::do_pageoffset): Handle indentation conditionally.
6882 (html_printer::do_indentation): Ditto.
6883 (html_printer::do_tempindent): New function member.
6884 (html_printer::do_fill): Take care of indentation.
6885 (html_printer::do_flush): Finish table.
6886 (html_printer::do_links): Ditto.
6887 (html_printer::do_break): New function for handling `.br' and `.ti'.
6888 (html_printer::troff_tag): Use it.
6890 (html_printer::flush_globs): Fix.
6891 (html_printer::flush_page): Finish table.
6892 (html_printer::html_printer): Fix error message. Set up
6894 (html_printer::add_to_sbuf): Remove special handling of character
6896 (to_unicode): Remove `stop()'.
6897 (html_printer::write_title): Cleanup.
6898 (html_printer::begin_page): Use `put_string()'. Handle indentation.
6899 (html_printer::~html_printer): Flush text and end the line.
6901 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
6902 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
6904 (html_text::start_tag): Disable newlines.
6905 (html_text::table_is_void): New function.
6906 (html_text::issue_table_begin): Ditto.
6907 (html_text::issue_table_end): Ditto.
6908 (html_text::push_para): Better table handling.
6909 (html_text::do_indent): New function.
6910 (html_text::do_table): Ditto.
6911 (html_text::done_table): Ditto.
6912 (html_text::do_tt): Handle PRE_TAG.
6913 (html_text::is_in_table): New function.
6914 (html_text::check_emit_text): Handle tables.
6915 (html_text::do_emittext): Use `nl()'.
6916 (html_text::do_para): Handle table.
6917 (html_text::remove_def): New function.
6918 * src/devices/grohtml/output.cc (word, word_list): Implement
6920 (simple_output::end_line): Flush last word.
6921 (simple_output::simple_comment): Ditto.
6922 (simple_output::begin_comment): Recoded.
6923 (simple_output::end_comment): Ditto.
6924 (simple_output::comment_arg): Removed.
6925 (simple_output::check_newline): Improve test and flush last word.
6926 (simple_output::space_or_newline): Improved.
6927 (simple_output::write_newline): Replaced with...
6928 (simple_output::nl): This.
6929 (simple_output::put_raw_char): Flush last word.
6930 (simple_output::check_space): Removed.
6931 (simple_output::put_translated_string): Ditto.
6932 (simple_output::put_string): Simplified.
6933 (simple_output::put_number): Updated.
6934 (simple_output::put_float): Ditto.
6935 (simple_output::put_symbol): Removed.
6936 (simple_output::enable_newlines): Add `check_newline()'.
6937 (simple_output::flush_last_word): New function.
6939 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
6940 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
6942 * tmac/s.tmac (@PP, @IP): Add html conditional code.
6943 * tmac/an-old.tmac (TP): Ditto.
6945 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
6947 * mdate.sh: Make it POSIX compliant.
6949 2001-03-09 Werner LEMBERG <wl@gnu.org>
6951 Added the `return' request to end a macro immediately. It simply
6952 pops iterators from the input stack until a macro iterator is found.
6954 * src/roff/troff/input.cc (input_iterator::is_macro,
6955 macro_iterator::is_macro): New member.
6956 (input_return_boundary): New class to signal an immediate return
6958 (input_stack::add_return_boundary, input_stack::is_return_boundary):
6960 (input_stack::clear): Use it.
6961 (input_stack::pop_macro): New function.
6962 (while_request): Use `is_return_boundary()'.
6963 (return_macro_request): New function.
6964 (init_input_requests): Use it.
6966 * src/roff/troff/TODO: Updated.
6967 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6969 2001-03-08 Werner LEMBERG <wl@gnu.org>
6971 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
6974 2001-03-07 Werner LEMBERG <wl@gnu.org>
6976 Make `\B' more rigid.
6978 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
6980 (get_number_rigidly): New function.
6981 * src/roff/troff/input.cc (do_expr_test): Use it.
6982 * src/roff/troff/token.h: Updated.
6984 * src/roff/troff/request.h: Fix typo (init_html_request ->
6985 init_markup_request).
6987 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
6989 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
6990 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
6991 are now `.begin', `.end', `.image'.
6993 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
6994 (html_printer::add_to_sbuf): Changing type of `code' parameter.
6995 Use add_char_to_sbuf().
6996 (to_unicode): New function.
6997 (char_translate_to_html): Changing type of `ch' parameter.
6999 (html_printer::~html_printer): Comment out doctype string.
7000 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7001 instead of `.html-end'.
7002 (write_start_image): Use `.begin' and `.image' instead of
7003 `.html-begin' and `.html-image'.
7004 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7005 (html_begin): Renamed to ...
7007 (html_end): Renamed to ...
7009 (html_image): Renamed to ...
7011 (init_html_requests): Renamed to ...
7012 (init_markup_requests): This.
7013 * tmac/www.tmac: Updated.
7015 2001-02-28 Bram <bram@avontuur.org>
7017 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7020 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
7022 * doc/meref.me: Fixing some typos.
7024 2001-02-16 Werner LEMBERG <wl@gnu.org>
7026 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7027 method. Return `HYPHEN_MIDDLE' if it was `\:'.
7028 * src/roff/troff/node.h: Updated.
7030 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
7032 * tmac/groff_tmac.man: Fix typo.
7034 2001-02-16 Werner LEMBERG <wl@gnu.org>
7036 Fixing a bug which prevented proper end-of-sentence recognition
7037 between an `unformatted' box and the following text. As a
7038 consequence, vertical line distances are no longer preserved in
7039 boxes after a call to `.unformat' -- because boxes aren't
7040 line-oriented (contrary to diversions), this doesn't make sense
7043 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7045 (vertical_size_node::set_unformat_flag): New method.
7046 * src/roff/troff/node.hh: Updated.
7047 * src/roff/troff/input.cc (word_space_node::reread,
7048 hmotion_node::reread): Reset `unformat' flag after usage.
7049 (unformat_macro): Append only if `set_unformat_flag()' returns
7051 * src/roff/troff/troff.man: Updated.
7053 2001-02-15 Werner LEMBERG <wl@gnu.org>
7055 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7056 documentation of `asciify' and `unformat' requests.
7058 2001-02-13 Werner LEMBERG <wl@gnu.org>
7060 Redesigned the `unformat' request. It is no longer connected with
7061 `asciify' but rather uses new `reread()' methods if the `unformat'
7062 flag is set. Additionally, the handling of space characters after
7063 unformatting has been fixed so that they retain their width.
7065 * src/roff/troff/node.h (width_list): New structure to store
7066 original widths of spaces.
7067 (node): Added `unformat' member.
7068 Replaced `num_spaces' variable with `orig_width' list.
7069 * src/roff/troff/node.cc (*node::asciify,
7070 asciify_reverse_node_list): Removed `unformat_only' flag and related
7072 (word_space_node::asciify, word_space_node::word_space_node): Use
7074 (word_space_node::~word_space_node): New destructor.
7075 (word_space_node::copy): Updated to handle `orig_width'.
7076 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7077 (*node::merge_space): Update `orig_width' list if necessary.
7078 (*node::set_unformat_flag): New methods to set the `unformat' flag.
7079 * src/roff/troff/enc.cc (environment::space_newline): Use
7081 (environment::space): Added method to handle space width and
7082 sentence space width as parameters. Use `width_list'.
7083 (environment::make_tab_node): Updated.
7084 * src/roff/troff/env.h: Updated.
7085 * src/roff/troff/input.cc (word_space_node::reread,
7086 unbreakable_space_node::reread, hmotion_node::reread): New methods
7087 to handle nodes specially if `unformat' flag is set.
7088 (do_asciify_macro): Renamed back to ...
7089 (asciify_macro): This.
7090 (unformat_macro): New implementation to simply set the `unformat'
7093 * MORE.STUFF: Added more info about deroff.
7095 2001-02-08 Werner LEMBERG <wl@gnu.org>
7097 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7098 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7099 and `add_self()' methods to avoid hyphenation. For example, the
7100 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7101 soft hyphen after `foo'. Now the hyphen list is correctly
7102 `foo<ignore><ignore>bar'.
7104 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
7106 * tmac/groff_tmac.man: Fix `BIR' macro.
7108 2001-02-04 Werner LEMBERG <wl@gnu.org>
7110 A new escape sequence `\:', inserting a zero-width break point.
7112 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7113 * src/roff/troff/input.cc (get_copy, token::next, asciify):
7115 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7117 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
7118 and `asciify()' methods.
7119 * src/roff/troff/node.cc (space_node::space_node): Updated.
7120 (space_node::asciify): Handle `was_escape_colon'.
7121 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7123 Handle `\~' similar to other comparable requests.
7125 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7127 (token::next): Move creation of an unbreakable_space_node to...
7128 (token::add_to_node_list): Here.
7130 Fix a bug which sometimes prevented hyphenation of words connected
7131 with `\~' or `\ ' (and other escape sequences handled as
7132 TOKEN_NODE). This also fixes a hyphenation problem with boxes
7133 (after a call to the `unformat' request).
7135 * src/roff/troff/env.h (environment::possibly_break_line,
7136 environment::hyphenate_line): Introducing `start_here' parameter.
7137 * src/roff/troff/env.cc (environment::space_newline,
7138 environment::space): Use it.
7139 (environment::possibly_break_line, environment::hyphenate_line):
7141 * src/roff/troff/input.cc (process_input_stack): Use it.
7142 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7143 space_char_hmotion_node, overstrike_node): Add
7144 `get_hyphenation_type()' method.
7145 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7146 if `unformat_only' is active.
7148 2001-01-30 Werner LEMBERG <wl@gnu.org>
7150 Implemented new read-only number register `.linetabs' which
7151 returns 1 if in line-tabs mode, 0 otherwise.
7153 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7154 * src/roff/troff/env.cc (get_line_tabs): New function.
7155 (init_env_requests): Use it.
7156 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7158 * VERSION, REVISION: Changing to 1.17.0.
7160 2001-01-28 Werner LEMBERG <wl@gnu.org>
7162 Fixed a bug which prevented hyphenation of words which are finished
7165 * src/roff/troff/token.h (token): Add enum type
7166 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7167 * src/roff/troff/input.cc (token::next, token::description,
7168 get_line_arg, token::add_to_node_list, token::process): Use it.
7170 2001-01-27 Werner LEMBERG <wl@gnu.org>
7172 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7173 * src/roff/troff/div.cc (do_divert): Use it.
7175 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7177 2001-01-25 Werner LEMBERG <wl@gnu.org>
7179 Adding the `linetabs' request. If set, tab distances are not
7180 computed relative to the input line but relative to the output line.
7182 * src/roff/troff/env.h (environment): New member `line_tabs'.
7183 * src/roff/troff/env.cc (line_tabs_request): Implement request.
7184 (environment::environment, environment::copy): Updated.
7185 (environment::distance_to_next_tab): Use `line_tabs'.
7186 (init_env_requests): Register request.
7187 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
7190 2001-01-24 Werner LEMBERG <wl@gnu.org>
7192 Introducing a new read-only register `.int' which is set to a
7193 positive value if the last output line is interrupted (i.e., if it
7196 * src/roff/troff/env.cc (init_env_requests): Add it.
7197 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7199 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
7201 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7202 * src/preproc/html/pre-html.cc (findPrefix): New function which
7203 generates the troff executable name via the system prefix.
7204 * src/preproc/eqn/main.cc: Modified warning message.
7206 2001-01-23 Werner LEMBERG <wl@gnu.org>
7208 troff's `box' and `boxa' requests didn't preserve temporary
7211 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7212 `saved_target_text_length' members.
7213 * src/roff/troff/div.cc (do_divert): Use them.
7215 Tabs (but not yet leaders and fields) are now handled correctly by
7218 * node.h (hmotion_node): Add field `was_tab'.
7219 * env.cc (environment::make_tab_node): Set it.
7220 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7222 Added new request `unformat' which will, contrary to `asciify',
7223 preserve font information after unformatting (i.e., only nodes
7224 dealing with horizontal space are converted back to input
7227 * input.cc (asciify_macro): Renamed to ...
7228 (do_asciify_macro): this, having a new parameter `unformat_only'.
7229 (asciify_macro, unformat_macro): New; using do_asciify_macro.
7230 (init_input_requests): Added `unformat'.
7231 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7232 parameter to control asciification process.
7233 * node.h (*_node::asciify): Ditto.
7234 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7236 2001-01-20 Werner LEMBERG <wl@gnu.org>
7238 * doc/groff.texinfo: Minor improvement of `.in' documentation.
7240 2001-01-18 Werner LEMBERG <wl@gnu.org>
7242 * tmac/ps.tmac: Remove call of psold.tmac.
7243 * tmac/psold.tmac: Comment updated.
7244 * tmac/psnew.tmac: Removed since no longer needed.
7245 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7247 * font/devutf8/R.proto: Adding `shc' glyph.
7248 * font/devutf8/NOTES: Updated.
7250 * test-groff: Updated.
7252 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
7254 First cut of the new html device driver. Changes to pre-html and
7255 the new grohtml are too numerous to be documented here.
7257 Stuff related to `html' has been renamed to `html-old' and `html2'
7258 stuff has been renamed to `html' (including directories). The new
7259 html device driver is therefore invoked as `-Thtml'.
7261 Added new `\O' escape to suppress output (needed by html driver).
7263 Added functions and code to pass info about input-level commands
7264 (`.in', `.fl', etc.) to html driver.
7266 Three new functions (.html-begin, .html-end, and .html-image) for
7267 better html handling: `html-begin' will execute the remaining line
7268 if at the outermost nesting level, increasing an internal counter.
7269 `html-end' does the same but decreases the internal counter.
7270 `html_image' puts its arguments into a special node (suppress_node)
7271 to define an image region.
7273 The `output' request has been removed.
7275 * tmac/html-tags.tmac: Removed.
7276 * tmac/arkup.tmac: Updated and renamed to ...
7277 * tmac/www.tmac: New file.
7278 * tmac/markup.tmac Updated and renamed to ...
7279 * tmac/mwww.tmac: New file.
7280 * tmac/Makefile.sub: Updated.
7281 * tmac/an-old.tmac: Updated.
7282 * tmac/eqnrc: Updated.
7283 * tmac/groff_man.man
7284 * tmac/groff_markup.man: Updated and renamed to ...
7285 * tmac/groff_mwww.man: New file.
7286 * tmac/groff_tmac.man: Updated.
7287 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7288 * tmac/html.tmac: Updated and renamed from html2.tmac.
7289 * tmac/pspic.tmac: Updated html support.
7290 * tmac/s.tmac: Added html output support.
7291 * tmac/troffrc, tmac/troffrc-end: Updated.
7293 * Makefile.in, doc/Makefile: Updated.
7294 * doc/groff.texinfo: Added info about new `\O' escape.
7295 * doc/homepage.ms: Use `MAILTO' macro.
7297 * font/devhtml/DESC.proto: Add `C' font.
7298 * font/devhtml/Makefile.sub: Updated.
7299 * font/devhtml/R.proto: Minor fixes.
7300 * font/devhtml-old/Makefile.sub: Updated.
7302 * src/devices/grohtml-old/Makefile.sub: Updated.
7304 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7306 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7307 graphic_start): Add `inline' parameter. Update.
7308 (html_end_suppress, graphic_end): Update.
7310 * src/include/html-strings.h: New file.
7311 * src/include/htmlindicate.h: Comments updated.
7312 * src/include/printer.h: Updated.
7314 * src/preproc/eqn/main.cc (do_file, main): Updated.
7315 * src/preproc/pic/troff.cc (troff_output::start_picture,
7316 troff_output::finish_picture): Updated.
7317 * src/preproc/tbl/main.cc (process_input_file): Updated.
7319 * src/roff/groff/groff.cc (main): Updated.
7320 Pass device arguments to predrivers also.
7321 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7322 * src/roff/troff/env.h (environment): Updated.
7323 New elements `need_eol' and `ignore_next_eol' (for html output).
7324 * src/roff/troff/env.cc (environment::environment): Add initializers
7325 for `need_eol' and `ignore_next_eol'.
7326 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7328 (point_size, fill, no_fill, center, right_justify, line_length,
7329 indent, temporary_indent, break_request, handle_tab): Use
7331 (set_tabs): Use `add_html_tag_tabs()'.
7332 (environment::add_html_tag): Updated.
7333 (environment::do_break): Updated.
7334 * src/roff/troff/div.cc (space_request, flush_output): Use
7335 `environment::add_html_tag()'.
7336 * src/roff/troff/input.cc: Updated.
7337 New variable `html_level' to indicate nested `html-begin' requests.
7338 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7339 (non_interpreted_char_node, token_node, non_interpreted_node): Add
7340 `force_tprint()' method.
7341 (token::next): Handle `\O'.
7342 (do_suppress): Implement it.
7343 (html_begin, html_end, html_image): New functions.
7344 (init_output_requests): Renamed to ...
7345 (init_html_requests): this.
7347 (macro::append_str, macro::append_unsigned, macro::append_int): New
7349 New variable `output_low_mark_miny' to limit minimal value of y.
7350 (reset_output_registers): Use it.
7351 (output_request): Removed.
7352 (get_output_registers): New function.
7353 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7354 (*_node): Added `force_tprint()' if necessary.
7355 (special_node): New elements `tf' and `get_tfont()'.
7356 (suppress_node): New class.
7357 * src/roff/troff/node.cc:
7358 New global variables `image_no' and `suppress_start_page'.
7359 (real_output_file): New method `is_on()'.
7360 (troff_output_file): New method `start_special(tfont)'.
7361 (troff_output_file::really_print_line): Use `tprint' conditionally.
7362 (real_output_file::print_line): Updated.
7363 (real_output_file::on): Updated.
7364 (*_node): Added `force_tprint()'.
7365 (special_node::special_node): Initializer updated.
7366 (special_node::same, special_node::copy, special_node::tprint_start):
7368 (get_reg_int, get_reg_str): New functions.
7369 (suppress_node::*): New methods.
7370 New global variables last_position, last_image_filename;
7371 (min): New inline function.
7372 * src/roff/troff/reg.h, src/roff/troff/request.h,
7373 src/roff/troff/troff.h: Updated.
7375 2001-01-13 Werner LEMBERG <wl@gnu.org>
7377 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7378 documentation of `asciify' request.
7380 2001-01-12 Werner LEMBERG <wl@gnu.org>
7382 * src/roff/troff/input.cc: Move definition of special characters
7383 like `ESCAPE_TILDE' to ...
7384 * src/roff/troff/input.h: New file.
7385 * src/roff/troff/Makefile.sub (HDRS): Add it.
7387 Extending the .asciify request to `unformat' space characters also.
7389 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7390 to count input space characters.
7391 Update constructors to take care of it.
7392 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7393 `ESCAPE_SPACE' instead of normal space.
7394 (word_space_node::asciify): New method.
7395 (unbreakable_space_node::asciify): New method.
7396 (word_space_node::merge_space): New method.
7397 * src/roff/troff/env.cc (environment::space_newline,
7398 environment::space): Add code to initialize `num_spaces' (using the
7399 constructor of `word_space_node').
7400 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7403 2001-01-09 Werner LEMBERG <wl@gnu.org>
7405 * man/groff_char.man: Use table header traps only conditionally.
7407 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
7409 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7411 2001-01-08 Werner LEMBERG <wl@gnu.org>
7413 Introducing the `box' and `boxa' requests which are similar to
7414 `di' resp. `da' but omitting a partially filled line (which is
7415 restored after ending the diversion).
7417 * src/roff/troff/div.h (diversion): Add elements to save partially
7419 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7420 partially filled line.
7421 (divert, divert_append): Updated.
7422 (box, box_append): New functions.
7423 (init_div_requests): Use them.
7424 * src/roff/troff/env.h (environment): do_divert() is now a friend.
7425 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7427 * doc/groff.texinfo: Fix documentation of `lf' request.
7429 2000-12-25 Werner LEMBERG <wl@gnu.org>
7431 * src/roff/troff/troff.man, NEWS: Document `writem' request.
7433 2000-12-21 Werner LEMBERG <wl@gnu.org>
7435 Ignore `ss' request if in compatibility mode.
7437 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7438 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7439 * src/roff/troff/env.cc (space_size): Use it.
7441 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7442 `ss' request in nroff mode.
7444 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7447 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
7449 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7451 2000-12-13 Werner LEMBERG <wl@gnu.org>
7453 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7454 * src/preproc/eqn/neqn.man: Small fixes and additions.
7456 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
7458 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7461 * src/preproc/eqn/neqn.man: New file.
7463 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7466 * tmac/e.tmac: Add `T&' macro.
7467 Fix `indent cannot be negative' warning.
7468 * tmac/s.tmac: Fix `indent cannot be negative' warning.
7470 2000-12-07 Werner LEMBERG <wl@gnu.org>
7472 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7474 2000-12-06 Werner LEMBERG <wl@gnu.org>
7476 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7479 * MORE.STUFF: Added info about deroff for djgpp.
7481 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7482 documentation of -rcR switch.
7484 2000-12-03 Werner LEMBERG <wl@gnu.org>
7486 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7487 if -rcR=1 (which is now the default in nroff mode), a single, very
7488 long page is created instead of multiple pages: All `ne' and `wh'
7489 requests are put into conditionals; a new macro `an-end' is added to
7490 be called with `em'.
7492 Some other minor cleanups.
7494 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7496 2000-12-02 Werner LEMBERG <wl@gnu.org>
7498 Fixing a bug which prevented hyphenation in words followed
7499 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7501 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7502 Adding possibly_break_line().
7503 * src/roff/troff/env.h (environment): Make possibly_break_line()
7506 Make `\~' usable in .tr request.
7508 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7509 (token): Add stretchable_space().
7510 * src/roff/troff/input.cc (token::next, token::delimiter,
7511 token::description, process_input_stack, do_translate,
7512 add_to_node_list, token::process): Use it.
7513 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7514 for adjusting the space.
7515 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
7516 for stretchable space.
7517 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7518 (make_node): Add code for stretchable space.
7519 * src/roff/troff/env.cc (environment::add_char): Use it.
7520 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7521 (get_copy, token::next, transparent_translate, asciify): Use it.
7523 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7524 doc/groff.texinfo: Updated.
7525 * man/groff.man: Small reorderings.
7527 2000-11-23 Werner LEMBERG <wl@gnu.org>
7530 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7532 * src/roff/troff/input.cc (main): Add `config_macro_path' and
7533 `safer_macro_path' to -M option.
7534 * src/roff/troff/troff.man: Fixes.
7536 2000-11-22 Werner LEMBERG <wl@gnu.org>
7538 Use safer path (except for config files) if -U isn't specified. Add
7539 a special macro path (without home and current directory) for config
7540 files. Add home directory to unsafe path for consistency. Don't
7541 include the home directory in the font path.
7543 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7545 * src/include/macropath.h: Add `config_macrp_path'.
7546 * src/libs/libgroff/fontfile.cc: Fix font path.
7547 * src/roff/troff/input.cc (process_startup_file): Use
7548 `config_macro_path'.
7549 (main): Select unsafe path if -U is given.
7551 * src/preproc/eqn/main.cc (main): Fixing search path for
7553 * src/preproc/eqn/eqn.man: Updated.
7555 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7558 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7559 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7560 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7561 src/devices/grotty/grotty.man: Updated.
7563 * Makefile.in: Fix comments.
7565 2000-11-17 Werner LEMBERG <wl@gnu.org>
7567 * tmac/safer.tmac: Empty file added (again) for compatibility
7569 * tmac/Makefile.sub: Updated.
7571 2000-11-16 Werner LEMBERG <wl@gnu.org>
7573 * src/devices/grodvi/dvi.cc (main),
7574 src/devices/grohtml2/post-html.cc (main),
7575 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7576 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7577 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7578 (main), src/preproc/html2/pre-html.cc (main),
7579 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7580 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7581 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7582 (main), src/utils/hpftodit/hpftodit.cc (main),
7583 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7584 (main), src/utils/lookbib/lookbib.cc (main),
7585 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7586 (main): Use stdout for -v.
7587 * src/roff/groff/groff.cc (run_commands),
7588 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7589 to make direct printing to stdout possible.
7590 * src/roff/groff/pipeline.h: Updated.
7592 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7593 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7594 * src/utils/afmtodit/afmtodit.man: Updated.
7596 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7597 (version): New function.
7599 * src/utils/addftinfo/addftinfo.man: Updated.
7601 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7602 Fixing copyright dates.
7604 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7607 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7610 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7612 2000-11-15 Werner LEMBERG <wl@gnu.org>
7614 In all programs, make -v return immediately with exit status 0 to
7615 be compliant with the GNU standard.
7617 * src/devices/grodvi/dvi.cc (main),
7618 src/devices/grohtml2/post-html.cc (main),
7619 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7620 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7621 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7622 (main), src/preproc/html2/pre-html.cc (main),
7623 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7624 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7625 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7626 (main): Implement it.
7629 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
7630 and postprocessors to the -v option.
7632 * src/roff/grog/grog.pl: Implement -v.
7633 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7634 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7636 * src/roff/nroff/nroff.sh: Implement -v.
7637 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7638 * src/roff/nroff/nroff.man: Updated.
7640 * src/preproc/eqn/main.cc (main): Fix comment typo.
7642 * MORE.STUFF: Added info about djgpp port of grap.
7644 2000-11-14 Werner LEMBERG <wl@gnu.org>
7646 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7647 mode (or rather, implemented non-compatibility mode).
7648 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7650 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7651 replacing it -- we don't find gxditview otherwise.
7652 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7654 * src/preproc/pic/depend: Removed. Unnecessary.
7656 Implemented dummy keyword `solid' in pic for compatibility with
7659 * lex.cc (lookup_keyword): Added `solid'.
7660 * pic.y: Added SOLID with dummy rule.
7661 * pic.cc, pic_tab.h: Regenerated.
7662 * doc/pic.ms: Updated.
7664 2000-11-13 Werner LEMBERG <wl@gnu.org>
7666 For security reasons, don't use the current directory but the home
7667 directory while searching and scanning troffrc and troffrc-end.
7668 Similarly, replace the current directory with the home directory
7671 * Makefile.in (fontpath, tmacpath): Remove current directory.
7673 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
7674 two parameters `add_home' and `add_current'.
7675 (search_path::~search_path, search_path::command_line_dir,
7676 search_path::open_file): Remove tests for `dirs' being zero.
7677 * src/include/searchpath.h: Adjust.
7678 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
7680 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
7682 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
7683 * src/roff/troff/input.cc: Use `mac_path', initialized with
7685 (process_startup_file): Set `mac_path' to `safer_macro_path'.
7686 * src/roff/troff/env.cc: Use `mac_path'.
7688 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
7690 * NEWS, man/roff.man, src/roff/troff/troff.man,
7691 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
7694 2000-11-12 Werner LEMBERG <wl@gnu.org>
7696 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
7698 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
7699 * configure.in: Fix typo in comment.
7700 * configure: Regenerated.
7702 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
7705 2000-11-08 Werner LEMBERG <wl@gnu.org>
7707 Add system tmac directory (/usr/local/lib/groff/site-tmac).
7709 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
7710 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
7713 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
7714 * tmac/Makefile.sub (install_data): Create
7715 $(systemtmacdir) and $(localtmacdir).
7716 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
7717 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
7718 NEWS, doc/groff.texinfo: Updated and minor fixes.
7720 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
7721 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
7722 $(systemtmacdir) since the wrapper files are platform-dependent.
7724 2000-11-01 Werner LEMBERG <wl@gnu.org>
7726 * doc/groff.texinfo: Fix typo.
7728 2000-10-26 Werner LEMBERG <wl@gnu.org>
7730 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
7731 tmac.doc.old -> doc-old.tmac
7732 tmac.an.old -> an-old.tmac
7734 * tmac/tmac.*: Moved to ...
7735 * tmac/*.tmac: this.
7736 * tmac/man.local: Fix comment.
7737 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
7738 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
7739 Added some `FILES' sections. More use of @...@ directives. Other
7741 * arch/djgpp/README, font/devutf8/NOTES: Updated.
7742 * doc/homepage.ms, doc/groff.texinfo: Updated.
7743 * man/groff.man, man/roff.man: Updated.
7744 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
7745 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7746 src/devices/grotty/grotty.man: Updated.
7747 * src/preproc/pic/pic.man: Updated.
7748 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
7749 instead of -mdoc.old.
7750 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
7751 * src/roff/nroff/nroff.man: Updated.
7754 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
7756 * tmac/mm.diff: Removed -- it has no use now since the mm package
7759 * tmac/*: Removed trailing spaces.
7761 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
7762 the tmac subdirectory also).
7764 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
7765 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
7766 stuff since it is no longer needed.
7768 * README, PROBLEMS: Updated.
7770 2000-10-25 Werner LEMBERG <wl@gnu.org>
7772 Invert current behaviour: Search first FOOBAR.tmac, then
7775 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
7776 (open_mac_file, macro_source): Implement it.
7777 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
7778 doc/groff.texinfo, NEWS: Document it.
7780 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
7781 Small documentation improvements.
7783 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
7786 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
7788 2000-10-24 Werner LEMBERG <wl@gnu.org>
7790 Add local tmac directory (groff/site-tmac).
7792 * Makefile.in: Add $(localtmacdir).
7793 (uninstall_dirs): Add $(localtmacdir).
7794 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
7795 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
7796 in $(localtmacdir). Create $(localtmacdir).
7797 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
7798 Updated and minor fixes.
7800 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
7802 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
7804 2000-10-23 Werner LEMBERG <wl@gnu.org>
7806 Move hyphen.us to tmac directory.
7808 * src/roff/troff/hyphen.us: Removed.
7809 * src/tmac/hyphen.us: Added.
7810 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
7812 Change installation structure for data files from .../groff/... to
7813 .../groff/<version><revision>/... to be conform with other GNU
7816 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
7817 doc/Makefile: Implement it.
7818 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
7819 * configure: Updated.
7820 * arch/djgpp/README, font/devutf8/NOTES: Use it.
7821 * NEWS: Document it.
7822 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
7823 @MACRODIR@ instead of hard-coded directories.
7825 2000-10-22 Werner LEMBERG <wl@gnu.org>
7827 Implement $GROFF_BIN_PATH environment variable (which defaults to
7828 $bindir) used for child programs of groff and similar wrappers.
7830 * gendefs.sh: Improve documentation.
7831 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
7832 src/preproc/eqn/Makefile.sub (neqn),
7833 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
7834 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
7836 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
7837 $GROFF_PATH__ (the latter for communication with troff).
7838 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
7840 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
7841 doc/groff.texinfo: Document it.
7843 * doc/groff.texinfo: Improve documentation of troff's -a option.
7845 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
7847 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
7848 non-intrusive eol marker.
7849 (troff_output_file::determine_line_limits): New function.
7850 (troff_output_file::draw): Use it.
7851 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
7852 output_pending_lines() instead of output_line().
7853 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
7854 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
7855 createImage): Small fixes.
7857 2000-10-14 Werner LEMBERG <wl@gnu.org>
7859 Replace tmac.safer with a real secure solution.
7861 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
7862 system_request, pipe_output): Disable requests if in safer mode.
7863 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
7864 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
7865 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
7866 doc/groff.texinfo, src/roff/groff/groff.man,
7867 src/roff/troff/troff.man, arch/djgpp/README: Updated.
7869 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
7870 (resource_manager::output_prolog): Replace setenv() with putenv().
7872 2000-10-09 Werner LEMBERG <wl@gnu.org>
7874 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
7875 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
7876 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
7877 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
7878 compilation errors with some compilers. It seems that this code
7879 is no longer necessary -- if yes, it is easy to add some #ifdef's
7880 for that particular old-fashioned compiler.
7882 * MORE.STUFF: Added info about Meta-tbl.
7884 * doc/groff.texinfo: Added more info about `.if "..."..."'.
7886 2000-10-07 Werner LEMBERG <wl@gnu.org>
7888 Adding a new escape sequence \B'...': If the string between
7889 the delimiters is a valid numeric expression, return the character
7890 `1', and `0' otherwise. This is an analogon to \A.
7892 * src/roff/troff/input.cc (do_expr_test): Implement it.
7893 (token::next): Use it.
7894 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
7896 * tmac/tmac.trace: Made independent from escape character.
7898 2000-10-06 Werner LEMBERG <wl@gnu.org>
7900 Adding a new request .dei: define indirect. The first and second
7901 parameter of .dei are taken from string registers instead directly;
7902 this very special request is needed to make tmac.trace independent
7903 from the escape character (which might even be disabled).
7905 * src/roff/troff/input.cc (do_define_macro): Implement it.
7906 (define_macro_indirect): New function.
7907 (init_input_requests): Use it.
7909 Adding two requests .ecs and .ecr: Save and restore the escape
7910 character. These two requests are needed to make tmac.trace
7911 independent from the escape character (which might even be
7914 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
7916 (init_input_requests): Use it.
7918 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7920 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
7922 Adding a new option -P and new environment variable GROPS_PROLOGUE
7923 to grops, selecting a different prologue file (minor modifications
7926 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
7927 src/devices/grops/ps.cc (main): Implement it.
7928 * src/devices/grops/grops.man, NEWS: Document it.
7930 2000-09-22 Werner LEMBERG <wl@gnu.org>
7932 * INSTALL: Add info about selecting paper format.
7934 2000-09-21 Werner LEMBERG <wl@gnu.org>
7936 * src/roff/troff/input.cc (main): Fixing compiler warning.
7937 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
7938 strings.h from the former to the latter.
7939 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
7940 stuff from the former to the latter.
7942 2000-09-11 Werner LEMBERG <wl@gnu.org>
7944 Implementing two new requests .tm1 and .tmc: The former is similar
7945 to .tm but can output leading spaces; its syntax is similar to
7946 defining a string, i.e., a `"' can be used to mark the beginning of
7947 the string to be written to stderr: `.tm1 " test'. The latter is
7948 similar to .tm1 but doesn't write out a final newline character.
7950 * src/roff/troff/input.cc (terminal1, terminal_continue,
7951 do_terminal): New functions.
7952 (init_input_requests): Use them.
7953 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7955 2000-09-09 Werner LEMBERG <wl@gnu.org>
7957 * tmac/groff_mdoc.samples.man: Small fixes.
7959 2000-09-08 Werner LEMBERG <wl@gnu.org>
7961 * tmac/groff_mdoc.man: Fixing typo.
7963 2000-09-02 Werner LEMBERG <wl@gnu.org>
7965 Implementing a .nop request which does nothing.
7967 * src/roff/troff/input.cc (nop_request): New function.
7968 (init_input_requests): Use it.
7969 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7971 2000-09-01 Werner LEMBERG <wl@gnu.org>
7973 * doc/groff.texinfo: Added some comments.
7975 2000-08-30 Werner LEMBERG <wl@gnu.org>
7977 * src/roff/troff/TODO: Updated.
7979 2000-08-25 Werner LEMBERG <wl@gnu.org>
7981 * doc/groff.texinfo: Fix comment how to compile the DVI file.
7983 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
7985 * font/devps/generate/Makefile (SHELL): Define explicitly to
7986 "/bin/sh", for non-Unix platforms.
7987 (extraclean): Use a more portable "" quoting instead of a
7988 backslash (which doesn't work on DOS/Windows).
7990 * font/devlj4/generate/Makefile (extraclean): Ditto.
7992 * font/devdvi/generate/Makefile (extraclean): Ditto.
7994 2000-08-25 Werner LEMBERG <wl@gnu.org>
7996 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
7997 src/roff/troff/troff.man: Document Eli's latest changes.
7999 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
8001 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8002 macro file names of the form NAME.tmac as well as tmac.NAME.
8004 2000-08-25 Werner LEMBERG <wl@gnu.org>
8006 * src/include/posix.h: Remove definition of FILENAME_MAX.
8008 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8009 `sys_fatal' and `stop' function().
8011 * test-groff: Updated.
8013 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
8015 Added the new troff command .output <arg> to suppress output (while
8016 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8017 registers (for passing the output dimensions to the output device).
8019 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8021 * src/roff/troff/node.h, src/roff/troff/node.cc
8022 (troff_output_file::really_print_line,
8023 ascii_output_file::really_print_line,
8024 supress_output_file::really_print_line): Use `width' parameter.
8025 (troff_output_file::really_on, troff_output_file::really_off,
8026 output_file::on, output_file::off, real_output_file::on,
8027 real_output_file::off, real_output_file::really_on,
8028 real_output_file::really_off): New functions.
8029 (real_output_file:public output_file): New variable `output_on'.
8030 (real_output_file::begin_page, real_output_file::copy_file,
8031 real_output_file::transparent_char, real_output_file::print_line):
8033 (real_output_file::print_line): Use check_output_limits.
8034 * src/roff/troff/reg.h, src/roff/troff/request.h,
8035 src/roff/troff/input.cc (assign_registers): New function to remove
8037 (do_ps_file): Use it.
8038 (check_output_limits, reset_output_registers, output_request,
8039 init_output_requests): New functions.
8040 (init_input_requests): Updated.
8042 Added new grohtml2 device and html2 preprocessor (coding
8043 not yet finished) which will eventually replace grohtml.
8045 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8047 * src/include/htmlindicate.h, src/include/htmlindicate
8048 (html_begin_suppress, html_end_suppress): New functions.
8049 * src/preproc/tbl/main.cc: Use it.
8050 * src/roff/groff/groff.cc: Add support for html2 device (which will
8051 automatically invoke the html2 preprocessor).
8052 * src/roff/troff/input.cc (is_html2): New variable.
8053 * src/roff/troff/troff.h, src/roff/troff/env.h,
8054 src/roff/troff/env.cc (environment::add_html_tag): New function
8056 (environment::do_break): Use it.
8057 * font/devhtml2/*: New files.
8058 * src/devices/grohtml2: New device.
8059 * src/preproc/html2: New preprocessor.
8060 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8062 2000-08-23 Werner LEMBERG <wl@gnu.org>
8064 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8066 2000-08-22 Werner LEMBERG <wl@gnu.org>
8068 * src/include/lib.h: Provide a fix for IRIX to not include
8071 2000-08-18 Werner LEMBERG <wl@gnu.org>
8073 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8074 since some non-GNU sed programs can't handle null regexps.
8075 * configure, src/preproc/eqn/Makefile.sub,
8076 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8078 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8079 bug (string.h and strings.h are both needed according to latest
8082 * MORE.STUFF: Added info about unroff and troffcvt.
8084 2000-08-08 Werner LEMBERG <wl@gnu.org>
8086 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8089 * tmac/tmac.man.old: Remove unused number register.
8091 * tmac.doc: Minor documentation fix.
8093 2000-08-07 Paul Eggert <eggert@twinsun.com>
8095 * src/roff/groff/pipeline.c (is_system_shell):
8096 Fix typo: "monocased_shell" no longer exists.
8098 2000-08-07 Paul Eggert <eggert@twinsun.com>
8100 Remove FILENAME_MAX limits.
8102 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8103 that the argument length is less than FILENAME_MAX.
8104 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8105 Use struct hack to allocate and free file name.
8106 (struct xtmpfile_list): fname is now part of the structure,
8107 not a pointer to another string.
8109 2000-08-07 Tom Schmidt <tschmidt@micron.com>
8111 * src/include/posix.h: Add a default value for FILENAME_MAX.
8113 2000-08-06 Paul Eggert <eggert@twinsun.com>
8115 Add support for new BSD-style man pages (with ".Dd" instead of
8116 ".TH"), so that "groff -man" understands both styles, even
8117 when running "groff -man" on a host whose system man page
8118 macros don't support ".Dd".
8120 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8121 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8122 in case the system man macros don't define Dd or TH.
8124 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8125 * tmac/tmac.an: New one-line file.
8126 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8128 2000-08-06 Werner LEMBERG <wl@gnu.org>
8130 * src/roff/troff/troff.man: Fixing typos.
8132 Version 1.16.1 released
8133 =======================
8135 2000-07-31 Werner LEMBERG <wl@gnu.org>
8137 Preparing release 1.16.1.
8139 * REVISION: Revision number set to 1.
8140 * MORE.STUFF: Added info about port to DOS.
8141 * NEWS, win32-diffs: Updated.
8143 * src/include/nonposix.h: Remove first line -- this file is used
8146 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8149 2000-07-30 Werner LEMBERG <wl@gnu.org>
8151 * doc/texinfo.tex: Update to latest version.
8153 2000-06-28 Paul Eggert <eggert@twinsun.com>
8155 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8156 commands that fail. Don't assume that "export a=b" is valid shell
8157 syntax. This is needed for Solaris 2.5.1.
8159 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8160 comment about missing Solaris headers.
8162 * PROBLEMS: Add section about problems with Sun Make and VPATH.
8164 2000-06-25 Werner LEMBERG <wl@gnu.org>
8166 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8169 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8171 * win32-diffs: Updated.
8172 * README.WIN32: Added CRs to make all Windows editors happy.
8174 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8175 src/roff/groff/pipeline.c).
8177 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8179 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8180 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8182 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
8184 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8185 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8187 (main): Support non-Posix systems with several different styles of
8188 slash characters in file names.
8190 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8191 (main) [SET_BINARY]: Switch stdin into binary mode.
8193 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8194 (main): Support file names with several possible slash-type
8195 characters, as given by DIR_SEPS[] in nonposix.h.
8196 (main) [__MSDOS__]: If renaming the temporary index file fails
8197 because it has more than one dot in its trunk, replace the dot
8198 with an underscore and try again.
8199 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
8201 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8203 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8204 (File::File): Open the input file in binary mode. Strip CR
8205 characters from each CR-LF pair.
8206 (xbasename): Support file names with several possible slash-type
8207 characters, as given by DIR_SEPS[] in nonposix.h.
8209 * src/include/Makefile.sub (HDRS): Add nonposix.h.
8211 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8212 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8213 [!_POSIX_VERSION]: Define for traditional Unix systems.
8214 (real_output_file::real_output_file): Remove the MSVC-specific
8215 call to popen, use instead POPEN_WT, appropriately defined on
8216 nonposix.h. #include nonposix.h.
8217 (real_output_file::~real_output_file): Remove the MSVC-specific
8218 call to pclose, a suitable macro is now defined on nonposix.h.
8219 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8220 and WEXITSTATUS instead of assuming traditional Unix
8221 interpretation of the status returned by pclose.
8223 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8224 call to popen, use POPEN_RT instead (appropriately defined on
8225 nonposix.h). #include nonposix.h.
8226 (ps_bbox_request): Open the PostScript file in binary mode.
8227 Close the file after processing it.
8228 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8231 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8232 A version of run_pipeline that doesn't use `fork'.
8233 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8234 (system_shell_name, system_shell_dash_c)
8235 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8236 the ugliness of testing DOS/Windows file names for equality, and
8237 support both stock shells and ports of Unix shells.
8239 * src/roff/groff/groff.cc: #include nonposix.h.
8240 (BSHELL): Definition moved to nonposix.h.
8241 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
8242 instead of a literal "-c".
8243 (xbasename): Support file names with several possible slash-type
8244 characters, as given by DIR_SEPS[] in nonposix.h.
8245 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8248 * src/preproc/soelim/soelim.cc: #include nonposix.h.
8249 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8251 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8254 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8256 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8259 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8261 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8262 P_tmpdir is defined, use it instead of the literal "/tmp".
8263 (remove_tmp_files, add_tmp_file): New functions.
8264 (xtmpfile): Record temporary files and register an atexit function
8265 to delete them explicitly, instead of relying on the OS to do
8266 that, which doesn't work on non-Unix systems.
8268 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8269 (search_path::search_path): Use PATH_SEP instead of a literal
8271 (search_path::command_line_dir): Ditto.
8272 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8273 to support non-Posix systems.
8275 * src/libs/libbib/search.cc: #include nonposix.h.
8276 (search_list::add_file): Open the file in binary mode.
8278 * src/libs/libbib/linear.cc: #include nonposix.h.
8279 (file_buffer::load): Remove \r characters preceding \n from the
8282 * src/libs/libbib/index.cc: #include nonposix.h.
8283 (make_index_search_item): Open index_filename in O_BINARY mode.
8284 (index_search_item_iterator::get_tag): Ditto. Remove \r
8285 characters before \n characters.
8286 (index_search_item::check_files): Open files in binary mode.
8287 (index_search_item::munge_filename): Support DOS-style file names
8288 with backslashes and drive letters, use IS_ABSOLUTE.
8290 * src/devices/grops/ps.cc: #include nonposix.h.
8291 (main) [SET_BINARY]: Switch stdout to binary mode.
8293 * src/devices/grolj4/lj4.cc: #include nonposix.h.
8294 (main) [SET_BINARY]: Switch stdout to binary mode.
8296 * src/devices/grolbp/lbp.cc: #include nonposix.h
8297 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8299 * src/devices/grodvi/dvi.cc: #include nonposix.h.
8300 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8302 (main) [SET_BINARY]: Switch stdout to binary mode.
8303 [_MSC_VER]: Remove an explicit call to _setmode.
8305 * src/include/nonposix.h: New file.
8307 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8308 operation when building with DJGPP.
8309 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8310 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8313 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8315 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8316 etc. can include a semi-colon on DOS/Windows.
8317 (depend.temp): Use depend1.temp instead of depend.temp1, to
8318 prevent files from overerwiting each other on 8+3 filesystems.
8320 * gendef.sh (t): Change definition to work with DOS/Windows.
8322 doc/groff.texinfo: Apart of some typo corrections, I also changed
8323 some index entris, to make them more non-ambiguous, and also put
8324 @ignore around some parts that are not yet written, to allow the
8325 Info output be readable.
8327 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
8329 Replaced specific checks for function declarations with a generic
8330 routine taken from GNU bfd.
8332 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8333 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8334 * configure.in: Use it.
8335 * src/devices/grolbp/lbp.cc, src/include/lib.h,
8336 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8337 src/roff/groff/groff.cc: Use it.
8338 * Makefile.in, configure: Updated.
8340 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
8342 * src/devides/grolbp/lbp.h: Removed unused variables.
8344 2000-05-31 Keith Thompson <kst@sdsc.edu>
8346 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8349 2000-05-31 Werner LEMBERG <wl@gnu.org>
8351 * aclocal.m4 (GROFF_SRAND): New function to test the return value
8352 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8353 * configure.in: Use it.
8354 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8355 * configure, Makefile.in: Updated.
8357 * configure.in: Add test for strncasecmp().
8358 * src/include/lib.h: Use it.
8360 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
8362 * src/preproc/grn/Makefile.sub: Add MLIB.
8364 2000-05-29 Nix <nix@esperi.demon.co.uk>
8366 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8368 2000-05-29 Werner LEMBERG <wl@gnu.org>
8370 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8372 * PROBLEMS: Small update.
8374 * src/devices/grolbp/lbp.cc: Various small fixes.
8376 2000-05-28 Keith Thompson <kst@sdsc.edu>
8378 * src/roff/nroff/nroff.sh: Fix main loop syntax.
8380 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8382 2000-05-25 Werner LEMBERG <wl@gnu.org>
8384 * man/roff.man: Removed unused macro.
8386 2000-05-24 Werner LEMBERG <wl@gnu.org>
8388 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
8389 This is needed e.g. if you do
8390 `make distclean; ./configure; make dist'.
8392 Version 1.16 released
8393 =====================
8395 2000-05-23 Werner LEMBERG <wl@gnu.org>
8397 Adding font CWI (constant width italic) to devdvi.
8399 * font/devdvi/CWI: New file.
8400 * font/devdvi/generate/Makefile: Add generating rule.
8401 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8402 tmac/tmac.dvi: Use it.
8403 * NEWS: Announce it.
8405 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8406 * font/devlj4/generate/Makefile: Cosmetic changes only.
8408 * man/groff.man: Removed most of the redundant description of
8409 special characters (which is in groff_char.man). Added font
8410 translation CB->CR for devdvi. Other minor fixes.
8412 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8413 (registered) symbols.
8415 2000-05-22 Werner LEMBERG <wl@gnu.org>
8417 * doc/Makefile: Added rule for creating info files.
8419 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
8421 * font/devdvi/generate/Makefile: Fixed dependencies.
8423 * font/devps/*: Regenerated. Heavy changes for Bookman and
8424 NewCentury Schoolbook!
8425 * font/devps/generate/afmname: Will now run with GNU awk.
8426 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8427 * font/devps/generate/Makefile: Cosmetic changes only.
8429 2000-05-21 Werner LEMBERG <wl@gnu.org>
8431 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8432 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
8433 `.SS' now produces a heading with a smaller size than `.SH'.
8434 Completely formatted.
8435 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8437 * man/groff.man: Improved table appearance. Use of `eo' request
8438 to reduce number of doubled backslashes in macro definitions.
8439 Replacing `\e' with `\(rs'. Other minor fixes.
8441 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8442 to have correct line number.
8444 * INSTALL: Small improvement.
8446 2000-05-20 Bernd Warken <bwarken@mayn.de>
8448 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8451 2000-05-19 Bernd Warken <bwarken@mayn.de>
8453 * man/groff.man: Complete update (with a lot of corrections by WL).
8455 2000-05-18 Werner LEMBERG <wl@gnu.org>
8457 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8459 * font/*/*: Implement it.
8460 * man/groff_char.man, NEWS: Document it.
8462 * src/include/unix.h: Removed. It isn't used.
8464 * doc/groff.texinfo: Slight improvements.
8466 2000-05-17 Werner LEMBERG <wl@gnu.org>
8468 * README, win32-diffs: Small fixes and improvements.
8470 2000-05-16 Werner LEMBERG <wl@gnu.org>
8472 * FDL: New file (the Free Documentation License version 1.1).
8474 * doc/groff.texinfo: Added many start-up values for gtroff.
8475 Some structural improvements of the source code.
8477 2000-05-15 Werner LEMBERG <wl@gnu.org>
8479 * src/roff/troff/input.cc: Added small comment about troffrc-end.
8480 * src/roff/troff/troff.man: Added info about troffrc-end.
8482 2000-05-14 Werner LEMBERG <wl@gnu.org>
8484 * Makefile.in (EXTRADIRS): Fix typos.
8485 (dist): Handle deletion of old .tar.gz file correctly.
8486 (DISTDIRS): Include all tty output devices.
8488 * doc/groff.texinfo: Adding more cross references; countless other
8491 2000-05-13 Werner LEMBERG <wl@gnu.org>
8493 * MORE.STUFF: Added Robert Marks's utilities.
8495 2000-05-12 Werner LEMBERG <wl@gnu.org>
8497 Added win32 port contributed by Blake McBride
8498 <blake@florida-software.com>.
8500 * README.WIN32, win32-diffs: New files.
8503 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8504 (tmove, tmove2): Added parentheses to avoid compiler warnings.
8505 (change): Removed unused variables.
8507 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8508 (savebounds): Changed return value from `int' to `void'.
8509 * src/preproc/grn/hdb.cc: Ditto.
8511 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8512 final backslash in comment to avoid compiler warning.
8514 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8516 * doc/groff.texinfo: More fixes.
8518 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
8520 * tmac/tmac.doc: Documentation fix.
8522 2000-05-11 Werner LEMBERG <wl@gnu.org>
8524 * doc/groff.texinfo: Reading the source code shows up a lot of
8525 omissions and incorrect data... More conversion to @Deffn macros.
8527 2000-05-10 Werner LEMBERG <wl@gnu.org>
8529 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8532 * src/roff/troff/request.h: Removing unused `no_break_flag'.
8534 2000-05-09 Werner LEMBERG <wl@gnu.org>
8536 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8539 * doc/groff.texinfo: Extended history section. More conversion to
8540 @Deffn macros. More .tr documentation.
8542 2000-05-07 Werner LEMBERG <wl@gnu.org>
8544 * doc/groff.texinfo: Completed tab section. Added info about
8547 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
8549 * PROBLEMS: Describe configure script fix for OS/390 Unix.
8551 2000-05-05 Werner LEMBERG <wl@gnu.org>
8553 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8555 * NEWS: Document it.
8557 * man/troff.man: Minor optical improvements.
8559 2000-05-03 Werner LEMBERG <wl@gnu.org>
8561 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8563 * font/*/*: Implement it.
8564 * man/groff_char.man, NEWS: Document it.
8566 2000-05-02 Werner LEMBERG <wl@gnu.org>
8568 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8570 * NEWS: Document the three new man pages.
8572 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8573 * configure: Updated.
8575 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8577 2000-05-01 Werner LEMBERG <wl@gnu.org>
8579 Added grap support to grog.
8581 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8582 * src/roff/grog/grog.man: Document it.
8584 * doc/groff.texinfo, NEWS: Add info about grap support.
8586 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8587 (with slight fixes by me).
8589 * tmac/groff_tmac.man: New file documenting tmac mechanism.
8590 * tmac/Makefile.sub: Add groff_tmac.man.
8591 * man/roff.man: New file giving overview of roff system.
8592 * man/troff.man: A short reference of troff.
8593 * man/Makefile.sub: Add roff.man and troff.man.
8595 2000-04-30 Werner LEMBERG <wl@gnu.org>
8597 Added grap support to groff.
8599 * src/roff/groff/groff.cc: Implement it.
8600 * src/roff/groff/groff.man: Document it.
8602 * src/devices/grotty/grotty.man: Add cp1047 device.
8603 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8605 * src/roff/groff/groff.man: Ditto.
8606 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8607 * doc/groff.texinfo: Ditto.
8609 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8612 2000-04-29 Werner LEMBERG <wl@gnu.org>
8614 * man/groff_char.man: Add `pc' glyph.
8615 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8616 * tmac/tmac.tty: Add `pc' glyph.
8617 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
8618 we use cp1047 output device.
8620 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8621 there are still hardcoded latin1->unicode values in utf8's font
8623 * configure: Updated.
8624 * NEWS: Minor clarification. Updated.
8626 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
8629 2000-04-28 Werner LEMBERG <wl@gnu.org>
8631 Adding EBCDIC code page 1047.
8633 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8634 font/devcp1047/DESC.proto: New files.
8636 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8637 either ascii/latin1 or cp1047.
8638 * Makefile.in: Use it.
8639 * configure: Updated.
8641 Replacing and/or adding `md' (mathdot) glyph with `pc'
8642 (periodcentered) in all text fonts.
8644 * font/*/*: Change it.
8646 2000-04-27 Werner LEMBERG <wl@gnu.org>
8648 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8650 * configure.in: Add check for strings.h.
8651 * src/include/driver.h: Use HAVE_STRINGS_H.
8652 * src/devices/grolbp/lpb.cc: Remove string.h.
8654 * src/include/groff-getopt.h: New file. It will be used instead of
8655 getopt.h (to be included in lib.h) to avoid endless problems with
8656 picky C++ compilers.
8657 * src/include/lib.h: Use groff-getopt.h.
8658 * src/include/Makefile.sub: Updated.
8660 * configure: Updated.
8661 * Makefile.in: Updated.
8663 * NEWS: Mention EBCDIC support.
8665 2000-04-26 Werner LEMBERG <wl@gnu.org>
8667 * TODO: Some additions.
8669 2000-04-25 Werner LEMBERG <wl@gnu.org>
8671 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
8674 2000-04-23 Werner LEMBERG <wl@gnu.org>
8676 * src/roff/troff/troff.man: Minor fixes.
8678 2000-04-22 Werner LEMBERG <wl@gnu.org>
8680 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
8681 `.T' string register and the incompatible definition of the `.T'
8682 number register (compared to Unix troff).
8684 * man/groff_char.man: Add some missing characters.
8685 * font/devutf8/NOTES: Update.
8687 2000-04-21 Werner LEMBERG <wl@gnu.org>
8689 * src/include/htmlindicate.h, src/include/lib.h,
8690 src/include/posix.h: Fix copyright.
8692 * src/include/Makefile.sub: Update.
8694 2000-04-20 Werner LEMBERG <wl@gnu.org>
8696 * src/roff/troff/input.cc (input_char_description): Removing
8697 superfluous space char.
8699 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
8701 * doc/groff.texinfo: Document EBCDIC.
8703 2000-04-19 Werner LEMBERG <wl@gnu.org>
8705 Introducing `shc' as the glyph name for the soft hyphen character.
8707 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
8708 font/devlatin1/R.proto: Use it.
8712 2000-04-18 Werner LEMBERG <wl@gnu.org>
8714 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
8715 dependency on ASCII order.
8717 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
8719 * src/libs/libgroff/illegal.c: Added EBCDIC table.
8720 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
8722 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
8723 to increase portability.
8725 2000-04-15 Werner LEMBERG <wl@gnu.org>
8727 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
8728 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
8729 the generic `\n' if under OS/390 Unix.
8731 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
8733 * configure: Regenerated.
8735 2000-04-14 Werner LEMBERG <wl@gnu.org>
8737 * doc/groff.texinfo: More conversions to @Deffn.
8739 2000-04-12 Werner LEMBERG <wl@gnu.org>
8741 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
8744 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
8746 2000-04-10 Werner LEMBERG <wl@gnu.org>
8748 * doc/groff.texinfo: More conversions to @Deffn.
8750 2000-04-08 Werner LEMBERG <wl@gnu.org>
8752 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
8753 Updated to latest version (glibc 2.1.3).
8755 2000-04-07 Werner LEMBERG <wl@gnu.org>
8757 * doc/Makefile (clean): Include more index files.
8758 Add rule texinfo->dvi.
8760 2000-04-05 Werner LEMBERG <wl@gnu.org>
8762 * doc/groff.texinfo: Added new index `op' for operators. More
8763 info on end of sentence characters. More use of @Deffn.
8765 2000-03-30 Werner LEMBERG <wl@gnu.org>
8767 * */*.man: Adding a note that a whitespace can be inserted between
8768 a command line option and its parameter -- we are using GNU getopt.
8770 * src/roff/groff/groff.man: Add example of `-m mandoc'.
8772 2000-03-28 Werner LEMBERG <wl@gnu.org>
8774 Correct anachronism of calling the man macro file with `-man'
8775 instead of `-m man' etc.
8777 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
8778 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
8779 load tmac.<package>.
8781 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
8785 * doc/groff.texinfo: Updated.
8787 * tmac/groff_man.man: Copyright added.
8789 2000-03-27 Werner LEMBERG <wl@gnu.org>
8791 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
8792 typeset the request resp. escape name with a tt font -- due to a
8793 bug in texinfo.tex it is necessary to use the `-e' switch with
8796 Improving info about usage of groff units.
8800 2000-03-20 Werner LEMBERG <wl@gnu.org>
8802 * doc/groff.texinfo: Added section about man macro package
8803 (I've basically taken groff_man.man). Introducing new indices `ma'
8804 for macros/strings and `gl' for glyph names. Other minor fixes.
8806 * tmac/groff_man.man: Fixed some typos.
8808 2000-03-19 Werner LEMBERG <wl@gnu.org>
8810 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
8813 * doc/texinfo.tex: New file.
8815 2000-03-18 Werner LEMBERG <wl@gnu.org>
8817 * doc/groff.texinfo: Improved section on number registers. Other
8820 2000-03-16 Werner LEMBERG <wl@gnu.org>
8822 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
8825 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
8826 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
8827 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
8828 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
8830 * src/preproc/grn/grn.man: Better synopsis; added copyright.
8832 * src/roff/grog/grog.man: Updated copyright date.
8834 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
8836 * configure.in: Added test for strdup.
8838 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
8841 Replaced dynamic allocation of arrays `[...]' with `new' operator.
8845 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
8847 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
8849 2000-03-11 Werner LEMBERG <wl@gnu.org>
8851 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
8853 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
8854 * src/include/lib.h: Remove some spaces.
8856 2000-03-10 Werner LEMBERG <wl@gnu.org>
8858 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
8859 initializers from arguments (some compilers don't like this).
8861 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
8863 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
8864 used by pic and eqn to tell grohtml where the graphic regions start
8866 * src/libs/libgroff/Makefile.sub: Use it.
8867 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
8868 graphic_start() and graphic_end() from htmlindicate.cc.
8870 2000-03-09 Werner LEMBERG <wl@gnu.org>
8872 * tmac/tmac.safer: Will now work correctly in compatibility mode.
8873 * tmac/groff_man.man: More fixes.
8875 2000-03-08 Werner LEMBERG <wl@gnu.org>
8877 * doc/Makefile: Added texput.log to the `clean' target.
8878 * doc/groff.texinfo: Added info about delimiters for escapes.
8880 2000-03-08 Bernd Warken <bwarken@mayn.de>
8882 * src/preproc/pic/pic.man: Add info on conversion of pic images to
8883 other graphic formats.
8885 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
8887 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
8888 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
8889 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
8892 2000-03-07 Werner LEMBERG <wl@gnu.org>
8894 * doc/groff.texinfo: Spelling fixes.
8896 2000-03-06 Werner LEMBERG <wl@gnu.org>
8898 * tmac/groff_man.man: Completely revised to cover everything in
8901 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
8902 Other minor fixings.
8903 * src/roff/troff/env.cc (environment_copy): Improve error message and
8905 * src/roff/troff/TODO: Updated.
8907 * doc/Makefile: Bug fixes -- this is still provisional, though...
8909 * tmac/eqnrc: Small fixes.
8911 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
8913 Adding a request `evc' to copy environments.
8915 * src/roff/troff/env.cc (environment::copy, environment_copy):
8917 * src/roff/troff/env.h: Add prototype.
8919 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
8921 Adding strsep() -- Solaris 8 doesn't have it.
8923 * configure.in: Test it.
8924 * src/devices/grolbp/lbp.cc: Add code.
8926 2000-03-05 Werner LEMBERG <wl@gnu.org>
8928 * src/roff/troff/div.cc (macro_diversion::output,
8929 top_level_diversion::output): Fixing an incompatibility with
8930 original troff: \x'0' updates the .a register also. Thanks to
8931 <Andries.Brouwer@cwi.nl> for pointing this out.
8932 * doc/groff.texinfo: Document it.
8934 * Makefile.in: Create Makefile.dep if necessary before calling the
8935 submake process to avoid warning about nonexistent file.
8937 * NEWS, PROJECTS: Updated.
8939 2000-03-04 Werner LEMBERG <wl@gnu.org>
8941 * tmac/troffrc: Add tmac.lbp.
8943 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
8945 * tmac/tmac.lbp: New file.
8946 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
8949 2000-03-03 Werner LEMBERG <wl@gnu.org>
8951 * Makefile.in: Fixing $(subdir).
8953 * README, NEWS: Small fixes.
8955 * test-groff: Adding path to grolbp.
8957 * configure.in: The (new) file src/xditview/Imakefile.in will be
8958 also configured -- it is now possible to build gxditview in a
8959 directory different from $srcdir.
8961 2000-03-02 Blake McBride <blake@florida-software.com>
8963 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
8965 * MORE.STUFF: Added website of bell labs and info about plot2dev.
8967 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
8969 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
8972 2000-02-29 Werner LEMBERG <wl@gnu.org>
8974 Adding GNU getopt to the groff distribution.
8976 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
8978 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
8979 * aclocal.a4: Remove GROFF_GETOPT function.
8980 * configure.in, Makefile.in, PROBLEMS: Update.
8981 * src/include/lib.h: Replace getopt tests with getopt.h.
8982 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
8984 * doc/groff.texinfo: Further checking/updating. Adding more index
8987 * man/groff_out.man: Fix nroff mode activation (for emacs).
8988 * man/groff_font.man: Add missing ligature.
8990 2000-02-28 Werner LEMBERG <wl@gnu.org>
8992 * doc/groff.texinfo: Further checking/updating. Adding more index
8995 * src/devices/grolbp/grolbp.man: Added a comment line at the
8996 beginning of the file (similar to shell scripts) which indicates
8997 that `tbl' should be used as a preprocessor.
8999 2000-02-27 Blake McBride <blake@florida-software.com>
9001 Adapting groff to MS Visual C++ 6.0 compiler (tested with
9002 Windows NT 4.0). Uses _MSC_VER define where necessary.
9004 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9005 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9006 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9007 src/include/lib.h, src/libs/libgroff/errarg.cc,
9008 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9009 src/preproc/refer/label.y, src/preproc/refer/label.cc,
9010 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9011 src/roff/troff/div.cc, src/roff/troff/env.cc,
9012 src/roff/troff/input.cc, src/roff/troff/node.cc,
9013 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9014 if_to_a() to avoid name clashes.
9015 * src/include/posix.h: Don't use unistd.h.
9016 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9017 clause for integrating non-Unix xtmpfile() code.
9018 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9019 structure; use "rt" for popen() in pipe_source(); add getpid()
9021 * src/roff/troff/node.cc: Use special versions of popen() in
9022 real_output_file() and pclose() in ~real_output_file().
9024 2000-02-27 Werner LEMBERG <wl@gnu.org>
9026 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9027 LBP-8 series laser printers). This code has been contributed by
9028 Francisco Andrés Verdú <pandres@dragonet.es>.
9030 * src/devices/grolbp/*: The grolbp output device.
9031 * font/devlpb/*: The font description files.
9032 * Makefile.in: Add grolpb and devlbp subdirectories.
9034 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9035 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9038 * doc/groff.texinfo: Further checking/updating. Adding more index
9043 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9045 * man/groff_font.man: Adding info about obsolete DESC keywords.
9046 * src/devices/grolj4/grolj4.man: Documenting additional DESC
9049 2000-02-26 Werner LEMBERG <wl@gnu.org>
9051 * src/preproc/grn/grn.man: Added info about the gremlin file format
9052 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9054 2000-02-25 Werner LEMBERG <wl@gnu.org>
9056 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9057 friends to be non-integer.
9059 * src/preproc/grn/grn.man: Document it.
9061 * doc/groff.texinfo: Further checking/updating. Adding more index
9064 2000-02-24 Werner LEMBERG <wl@gnu.org>
9066 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9067 line thicknesses to be integer multiples of this value.
9069 * src/preproc/grn/grn.man: Commenting out the -s option -- the
9070 corresponding code doesn't work (yet).
9072 * doc/groff.texinfo: Further checking/updating. Adding more index
9075 2000-02-23 Werner LEMBERG <wl@gnu.org>
9077 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9078 specify line thickness instead of base units. The new default
9079 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9080 thick lines respectively.
9082 Removed unused variable `prevval'.
9084 * src/preproc/grn/grn.man: Updated.
9086 2000-02-22 Werner LEMBERG <wl@gnu.org>
9088 * src/preproc/grn/main.cc: Slight formatting.
9090 * src/roff/groff/groff.man: Formatting fix.
9091 * src/preproc/grn/grn.man: Ditto.
9093 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9095 * doc/groff.texinfo: Further checking/updating.
9097 2000-02-21 Werner LEMBERG <wl@gnu.org>
9099 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9101 * test-groff: Added grn subdir to path.
9103 * doc/groff.texinfo: Some restructing and other small improvements.
9105 * src/roff/groff/groff.cc (help): Fixed info string.
9107 2000-02-20 Werner LEMBERG <wl@gnu.org>
9109 * doc/meref.me: Fix description of .GS request.
9111 * src/roff/troff/troff.man: Fixing typo.
9113 Adding the `grn' preprocessor for gremlin graphic files.
9115 * src/preproc/grn/*: This is the Berkeley distribution written by
9116 David Slattengren and Barry Roitblat, adapted to groff by Daniel
9117 Senderowicz and Werner Lemberg.
9119 * doc/grnexampl.{me,g}: A sample for grn.
9121 * Makefile.in: Added subdirectory entry for grn.
9123 * src/roff/groff/groff.cc: Added support for grn. It can be now
9124 called with the switch `-g'.
9126 * src/roff/groff/groff.man: Updated.
9128 * src/roff/grog/grog.{man,pl,sh}: Updated.
9132 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
9134 * src/include/lib.h: Added xtmptemplate and made xtmpfile
9135 parametrically polymorphic.
9137 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9138 and the alterations to xtmpfile.
9139 xtmpfile can be requested to return the filename created
9140 and asked not to unlink the temp file. The default behaviour
9141 if parameters are absent is exactly the same as before.
9143 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
9145 A new request `length' is available which returns the length of a
9146 string in a number register:
9148 * src/roff/troff/input.cc (length_macro): Implement it.
9149 * src/roff/troff/input.cc (init_input_requests): Register it.
9151 2000-02-11 Werner LEMBERG <wl@gnu.org>
9153 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9154 of the `substring' request.
9156 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9159 * src/roff/troff/TODO, NEWS: Updated.
9161 2000-02-09 Werner LEMBERG <wl@gnu.org>
9163 * src/roff/groff/groff.man: Added an example.
9165 2000-02-06 Werner LEMBERG <wl@gnu.org>
9167 I've considerably modified the directory structure of the
9168 distribution to get a more vertical layout. For example, the number
9169 of top level directories has been reduced from 42 to 6.
9171 As a consequence, many changes, especially to the makefiles, were
9174 * The makefile variables `top_builddir' and `top_srcdir' have been
9175 introduced. Virtually all relative paths have been replaced with
9176 absolute ones using these two variables.
9178 * Dependencies (in the files `Makefile.dep') are no longer part of
9179 the distribution. Instead, they are created during a `make install'
9180 in the build directory.
9182 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9183 make `top_srcdir' and `top_builddir' absolute.
9187 * Man pages now depend on the files `VERSION' and `REVISION'.
9189 * The added shell script `mkinstalldirs' will replace `mkdir' in
9192 * VERSION: Version number increased to 1.16.
9194 2000-02-04 Werner LEMBERG <wl@gnu.org>
9196 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9198 * Makefile.in: Removed $(tmac_m) since it is no longer needed
9199 (after an update of the mm stuff).
9201 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9203 2000-02-03 Werner LEMBERG <wl@gnu.org>
9205 The .psbb request will now also accept Mac PS images (i.e. using LF
9206 as the EOL character).
9208 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9209 (with slight modifications).
9210 * troff/input.cc (do_ps_file): Use it.
9212 * test-groff: Add grohtml and grolj4 output devices to PATH.
9214 2000-01-30 Werner LEMBERG <wl@gnu.org>
9216 * NEWS, MORE.STUFF: Updated.
9218 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
9220 Add the `srand' command to pic.
9222 * pic/lex.cc, pic/pic.y: Implement it.
9223 * pic/pic.man: Document it.
9224 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9226 2000-01-30 Werner LEMBERG <wl@gnu.org>
9228 Add a new request `.psbb'. This does exactly what the external
9229 program psbb did. It scans a PostScript image file for a
9230 %%BoundingBox comment and extracts the bounding box values (in
9231 PostScript units) which are then stored in the four new (read-only)
9232 number registers `llx', `lly', `urx', and `ury'.
9234 This will allow the usage of the .PSPIC macro without worrying
9235 about unsafe behaviour of groff, i.e., it will work without the
9236 `-U' switch of groff.
9238 * troff/input.cc: Implement it.
9239 * tmac/tmac.pspic: Use it.
9240 * troff/troff.man, grops/grops.man, NEWS: Document it.
9241 * psbb/*, Makefile.in: Remove it since it is no longer needed.
9243 This is bloody C code simply adapted from psbb.c! Any improvements
9246 2000-01-29 Werner LEMBERG <wl@gnu.org>
9248 * man/groff_font.man: Minor clarifications.
9252 2000-01-28 Werner LEMBERG <wl@gnu.org>
9254 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9256 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
9258 * man/groff_font.man: Brought up to date regarding tcommand
9260 * libgroff/font.cc: Handle everything after `--' as a comment
9262 * devps/*: Added comment delimiter inside devps font files.
9264 2000-01-28 Werner LEMBERG <wl@gnu.org>
9266 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9267 \fC...\fP (which now works as expected).
9269 * troff/troff.man: Fix typo.
9271 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
9273 Completed the pass_filenames implementation in troff.
9275 * libdriver/input.cc: Will read the new `F' tcommand.
9276 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9277 * troff/input.cc: Use it.
9279 2000-01-26 Werner LEMBERG <wl@gnu.org>
9281 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
9282 font will now be updated even if an invalid font is selected.
9284 2000-01-24 Werner LEMBERG <wl@gnu.org>
9286 * doc/homepage.ms: Updated for new tmac.arkup.
9288 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9290 * tmac/tmac.arkup: Cleanup.
9292 Added `\&' to .HTML macro to `leave vertical mode', so to say.
9294 Removed obsolete .LINK macro completely.
9296 The macros .URL, .FTP, and .MAILTO now accept a third argument which
9297 will be immediately appended to the second argument (to be used with
9298 punctuation, for example).
9300 Disabled .CDFTP macro temporarily for security reasons.
9302 * tmac/groff_markup.man: Complete revision for latest changes in
9303 tmac.arkup -- note that it does not yet format correctly with
9306 2000-01-23 Bruno Haible <haible@clisp.cons.org>
9308 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9309 * devutf8/R.proto: Add mappings for wp, lh, rh.
9310 * devutf8/NOTES: Updated.
9312 2000-01-23 Werner LEMBERG <wl@gnu.org>
9314 * doc/groff.texinfo: Updated version/copyright info.
9316 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
9318 Added support for two new directives in device descriptions:
9319 `pass_filenames' (to pass the input file name to the output device)
9320 and `use_charnames_in_special' (to support e.g. accented characters
9321 in the `X' request).
9323 * include/font.h, troff/charinfo.h: Declare it.
9325 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9327 * devhtml/DESC: Use it.
9329 * troff/input.cc: New function encoded_char.
9331 * troff/token.h: Add test for `specialness'.
9333 2000-01-21 Werner LEMBERG <wl@gnu.org>
9335 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9336 mistake from the list of files to be installed.
9338 2000-01-18 Werner LEMBERG <wl@gnu.org>
9340 * README: Added info how to apply patches.
9342 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
9344 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
9346 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
9348 * troff/input.cc: Add support for troffrc-end.
9350 * tbl/main.cc: Altered to issue table-start and table-end special
9351 characters if using the html device.
9353 * devhtml/*: Modified font files to incorporate html encoding of
9356 * tmac/groff_markup.man: New file documenting tmac.arkup.
9358 * tmac/troffrc-end: New file. This is invoked after all user
9359 specified macros. Currently used by the html device to include
9360 tmac.html. Thus no need for users to specify -mhtml anymore.
9362 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9363 (MAN7): Add groff_markup.man.
9365 * tmac/tmac.an, tmac/tmac.html: Small html updates.
9367 * tmac/troffrc: tmac.arkup will now be called for the html device.
9369 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9370 extra device specific information about fonts.
9372 * doc/homepage.ms: New file. It is an example how an HTML home page
9373 could look like with grohtml.
9375 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
9377 2000-01-12 Bruno Haible <haible@clisp.cons.org>
9379 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
9382 * devutf8/NOTES: Updated.
9384 2000-01-08 Bruno Haible <haible@clisp.cons.org>
9386 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9387 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9388 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9389 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9390 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9391 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9392 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9393 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9396 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9398 2000-01-12 Fabrizio Polacco <fab@prosa.it>
9400 grolj4: Paper size will be searched case-insensitively.
9402 * include/lib.h: Add check for strcasecmp().
9403 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9404 * configure.in: Check for strcasecmp().
9406 2000-01-11 Werner LEMBERG <wl@gnu.org>
9408 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9411 2000-01-10 Werner LEMBERG <wl@gnu.org>
9413 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9416 Add a new read-only register, `.Y', which contains the groff
9419 * troff/input.cc (init_input_requests): Define it.
9420 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9421 * doc/groff.texinfo, troff/troff.man: Document it.
9423 * libgroff/Makefile.sub (version.cc): Add definition of
9424 `Version_string[]', consisting of `<major>.<minor>.<revision>'
9425 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9426 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9427 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9428 troff/input.cc, pfbtops/pfbtops.c: Use it.
9430 2000-01-10 Fabrizio Polacco <fab@prosa.it>
9432 Add a revision scheme to the groff package.
9434 * REVISION: New file.
9435 * libgroff/Makefile.sub (version.cc): Use it to define
9436 `revision_string[]'.
9437 * grops/psrm.cc: Use revision_string (converted to an unsigned
9438 integer) in constructor of resource_manager.
9440 2000-01-10 Bruno Haible <haible@clisp.cons.org>
9442 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9444 * Makefile.in (DEVDIRS): Add devutf8.
9445 * grotty/tty.cc: Include device.h.
9446 (glyph): Change type of `code' to `unsigned int'.
9447 (tty_printer): New field is_utf8. Constructor takes device argument.
9448 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9449 (tty_printer::add_char): Change type of first arg to `unsigned int'.
9450 (tty_printer::put_char): New function.
9451 (tty_printer::end_page): Use put_char() instead of ::putchar().
9452 (make_printer): Pass device to tty_printer constructor.
9453 * nroff.sh: Determine default device by calling 'locale'. As a
9454 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9455 Recognize UTF-8 locales.
9456 * tmac/eqnrc: Recognize utf8 like latin1.
9457 * tmac/troffrc: Device utf8 needs tmac.tty.
9459 2000-01-07 Werner LEMBERG <wl@gnu.org>
9461 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9463 2000-01-07 Paul Eggert <eggert@twinsun.com>
9465 Add a new predefined writeable number register, `year',
9466 which contains the current year.
9468 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9469 * tmac/tmac.s: Use it.
9470 * troff/input.cc (init_registers): Initialize it.
9472 2000-01-06 Werner LEMBERG <wl@gnu.org>
9474 * PROBLEMS: Fixed typo.
9476 2000-01-04 Paul Eggert <eggert@twinsun.com>
9478 * PROBLEMS: Add Y2k advice for the yr number register.
9480 2000-01-03 Paul Eggert <eggert@twinsun.com>
9482 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9484 2000-01-02 Werner LEMBERG <wl@gnu.org>
9486 * tmac/tmac.arkup: Slight modification of macros to provide better
9487 appearance for non-HTML formats.
9489 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
9491 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9492 does not automatically translate to malloc(n) on all OSes
9493 (e.g., SunOS) so do it explicitly. Also, check the returned
9496 2000-01-01 Werner LEMBERG <wl@gnu.org>
9498 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
9500 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9501 expects this variable
9503 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
9505 * doc/Makefile: Added instructions to create HTML and text
9506 versions of some files.
9508 1999-12-31 Werner LEMBERG <wl@gnu.org>
9510 * Updated INSTALL.gen.
9512 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9513 better resp. correctly with non-HTML devices.
9515 Version 1.15 released
9516 =====================
9518 1999-12-28 Werner LEMBERG <wl@gnu.org>
9520 * NEWS, VERSION: Changed to 1.15
9522 1999-12-27 Paul Eggert <eggert@twinsun.com>
9524 * nroff/nroff.man: -S is safer, not safe.
9526 * groff/groff.cc (main): Use `safer', not `safe', in variable
9527 names. This does not change the behavior.
9529 * troff/input.cc (main): Likewise.
9531 * nroff/nroff.sh: Likewise.
9533 * troff/input.cc (prepend_string): New function.
9534 (main): Prepend -msafer, so that we check macro libraries for
9537 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9539 Version 1.14 released
9540 =====================
9542 1999-12-26 Werner LEMBERG <wl@gnu.org>
9544 * NEWS, VERSION: Changed to 1.14.
9546 1999-12-24 Werner LEMBERG <wl@gnu.org>
9548 * refer/refer.cc: Fixing the last fix.
9550 Version 1.13 released
9551 =====================
9553 1999-12-23 Werner LEMBERG <wl@gnu.org>
9555 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9560 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9562 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9563 document conventions, the version number must be a real.
9565 Version 1.12.1 released
9566 =======================
9568 1999-12-22 Werner LEMBERG <wl@gnu.org>
9570 * VERSION: Changed to 1.12.1.
9572 1999-12-22 Alan Rooks <arooks@istar.ca>
9574 * refer/refer.cc (do_file): Slight modification to satisfy the
9575 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9578 1999-12-20 Werner LEMBERG <wl@gnu.org>
9580 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9583 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9584 list of unsafe requests.
9586 * pic/pic.man: Fixed a typo.
9588 * man/groff_out.man: Fixed a typo.
9590 1999-12-18 Werner LEMBERG <wl@gnu.org>
9592 * Makefile.in: Doc fixes.
9594 1999-12-17 Fabrizio Polacco <fab@prosa.it>
9596 * groff/groff.cc: Missing `U' option added to getopt().
9598 * troff/troff.man: Missing `U' option added to synopsis.
9600 Version 1.12 released
9601 =====================
9603 1999-12-14 Werner LEMBERG <wl@gnu.org>
9605 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9608 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9609 with the more appropriate terms `safer' and `unsafe'.
9611 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9612 sys_nerr and sys_errlist[].
9614 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9616 * pic/pic.y, pic/pic.cc: Added check for fmod().
9618 1999-12-13 Werner LEMBERG <wl@gnu.org>
9620 * VERSION: Changed to 1.12.
9622 Here some patches from various sources; most of them taken from
9623 the Debian distribution.
9625 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9626 tmac/Makefile.sub: New files copied directly from the NetBSD
9627 distribution. Probably, some additional adaptation later on is
9630 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9633 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9634 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9635 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
9636 (`-S') is now the default.
9638 * README, NEWS: Updated.
9640 1999-12-09 Werner LEMBERG <wl@gnu.org>
9642 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9644 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9646 1999-12-06 Werner LEMBERG <wl@gnu.org>
9648 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9649 grief than relief today. Additionally, it is against the GNU
9652 * configure: Recreated.
9654 1999-12-05 Werner LEMBERG <wl@gnu.org>
9656 * configure.in: Added GROFF_LIBM.
9658 * configure: Recreated.
9660 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
9663 * Makefile.in: Added definition of $(LIBM).
9665 * Makefile.comm (LIBM): Removed.
9667 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
9669 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
9671 * doc/Makefile: Added rule for generation pic.html.
9673 (clean): Files produced by grohtml will be removed also.
9675 * doc/pic.ms: Small fix.
9677 * tmac/tmac.html: Fixed suppression of headers.
9679 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
9681 * tmac/tmac.html: Fixing horizontal arrows.
9683 Turning off hyphenation.
9685 * tmac/tmac.an: Improved support for grohtml; better indentation,
9688 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
9690 * tmac/tmac.arkup: Added CDFTP macro
9692 * tmac/tmac.html: All headers are turned off for ms, me, and mm
9695 * tmac/troffrc: Some additions for HTML stuff.
9697 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
9699 * tmac/tmac.html: Small changes.
9701 1999-09-26 Werner LEMBERG <wl@gnu.org>
9703 * doc/groff.texinfo: Minor fixes.
9705 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
9707 * devhtml/TR: Changed spacewidth to 3.
9709 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
9711 * tmac/tmac.html: Moved markup macros to tmap.arkup.
9713 * tmac/tmac.arkup: New file.
9715 * grohtml/ChangeLog: New file.
9717 1999-09-16 Werner LEMBERG <wl@gnu.org>
9719 * doc/groff.texinfo (Common Features): Added Copying chapter.
9720 Changed format to @smallbook.
9722 1999-09-15 Werner LEMBERG <wl@gnu.org>
9724 * NEWS: Added info about groff.texinfo.
9726 * doc/groff.texinfo: Will now compile (using texi2dvi) without
9729 1999-09-14 Werner LEMBERG <wl@gnu.org>
9731 * groff/groff.man: More updates.
9733 1999-09-13 Werner LEMBERG <wl@gnu.org>
9735 * doc/groff.texinfo: New file. This manual is still very
9736 rudimentary. It has been originally contributed by Trent
9737 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
9740 * INSTALL: Added information about the `doc' subdir
9742 * troff/troff.man: Minor fixes.
9744 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
9747 * troff/input.cc (usage): Added missing `-ffam' to usage message.
9749 * Makefile.in (dist): groff-$(version).tar.gz must be removed
9750 also, otherwise it is included itself in another call of `make
9753 * groff/groff.cc (synopsis): Removed superfluous space.
9755 * PROJECTS, PROBLEMS, NEWS: Updated.
9757 * VERSION: Updated to 1.12beta.
9759 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
9761 * README: Updated: Included documentation about CVS repository,
9762 mailing lists, and daily snapshots.
9764 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
9766 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
9768 * tmac/tmac.an: If the tag didn't fit into the space that the
9769 macro `TP' specifies, the rest of the tag went into the space for
9772 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
9774 * grolj4/lj4.cc: Added duplex printing (option `-d').
9776 * grolj4/grolj4.man: Document duplex printing.
9778 1999-09-12 Werner LEMBERG <wl@gnu.org>
9780 * doc/Makefile (pic.ps): Fixed rule which caused problems with
9781 non-GNUish sed programs.
9783 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
9786 * configure.in (LIBS): Added `-lc'
9788 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
9790 * pic/tex.cc (solid_arc): Casting M_PI to double.
9792 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
9794 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
9795 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
9796 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
9798 * groff/groff_man.man: New file. This manual page was originally
9799 written for the Debian GNU/Linux system by Susan G. Kleinmann
9802 * eqn/list.cc (list_box::compute_metrics,
9803 list_box::compute_sublist_width): Removed variable declaration to
9804 avoid shadowing warnings.
9806 * grops/psrm.cc (resource_manager::process_file): Ditto.
9808 * tfmtodit/tfmtodit.cc (main): Ditto.
9810 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
9811 to avoid shadowing warnings.
9813 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
9814 shadowing loop variable.
9816 * groff/groff.man, troff/troff.man: Added doc about grohtml.
9818 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
9820 New grohtml frontend to convert groff input to html.
9822 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
9824 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
9826 * tmac/eqnrc: Added html device.
9828 * tmac/tmac.html: New file.
9830 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
9831 (troff_output::start_picture, troff_output::finish_picture),
9832 tbl/main.cc (process_input_file):
9833 Surrounded output with `graphics_start' and `graphics_end' so that
9834 the html driver can identify non-text portions.
9836 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
9837 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
9838 grotty/tty.ps (tty_printer::set_char): Additional parameter
9841 * include/printer.h: Class printer: New function
9842 set_char_and_width; new variables (is_char_named, is_named_set,
9843 named_command, named_char_s, named_char_n) to hold information
9844 about named characters -- needed by the html driver.
9846 * libdriver/printer.cc (printer::set_ascii_char,
9847 printer::set_special_char): Use set_char_and_width.
9849 * devhtml/*: New device files for html driver.
9851 * grohtml/*: New driver grohtml.
9853 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
9855 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
9858 1999-09-11 Luke Mewburn <lukem@netbsd.org>
9860 * libgroff/string.cc (search): Small fix to test against NULL
9863 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
9865 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
9866 \b'abc') were stacked in reverse order when processed in a
9869 * troff/node.h: Added `*last' to struct `node' to make the above
9872 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
9873 The default scale for the 'f' and 't' graphics functions were 'm'
9874 rather than 'u' (i.e., no scaling).
9876 1999-09-11 Peter Miller <peterm@jna.com.au>
9878 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
9879 do_file), soelim/soelim.man: Added `-I file' option to soelim,
9880 defining include paths.
9882 * soelim/soelim.cc (include_path_append): New function.
9884 1999-09-11 Larry Jones <larry.jones@sdrc.com>
9886 * tbl/main.cc (process_options): Unix (at least Documenter's
9887 Workbench) tbl allows arbitrary non-alpha characters between
9890 1999-09-11 Paul Eggert <eggert@twinsun.com>
9892 Y2k fixes. Don't assume that the current year precedes 2000.
9894 * doc/meref.me: Add \n(y2, \n(y4.
9896 * tmac/doc-common (Yr): New number register.
9897 (Dd): Don't assume current year precedes 2000.
9899 * tmac/tmac.e (td): Likewise.
9900 (y2, y4): New number registers.
9902 * pic/pic.man: Update reference for pic paper to May, 1991
9905 1999-09-11 Werner LEMBERG <wl@gnu.org>
9907 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9908 Removed quotation marks which prevented correct expansion of
9911 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
9913 1999-09-10 Werner LEMBERG <wl@gnu.org>
9915 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
9918 * Removed configure.old.
9920 1999-08-31 Werner LEMBERG <wl@gnu.org>
9922 * VERSION: Updated to 1.11.1
9924 1999-05-27 Werner LEMBERG <wl@gnu.org>
9926 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
9928 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9929 added quotations around $(tmac_wrap) to avoid syntax error if
9932 * configure: Newly generated using autoconf 2.13.
9934 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
9936 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
9938 * README, PROJECTS, NEWS, INSTALL, VERSION,
9939 doc/Makefile. doc/pic.ms, groff/groff.man:
9940 Prepare for 1.11 release. No code changes.
9941 Documentation for pic added (doc/pic.ms).
9943 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
9945 * Version 1.10 released.
9947 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
9949 * afmtodit/afmtodit.pl: Avoid comment on first line.
9951 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
9953 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
9954 * configure.in: Call it.
9956 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
9957 (distfiles): Doesn't depend on config.log or config.cache.
9959 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
9961 * grog/grog.sh: Use print "" rather than print in END rule.
9963 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
9965 * tbl/main.cc (process_data): Don't give error for excess data
9966 entries that are comments.
9968 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
9970 * tbl/main.cc (process_data): Fix case where new for-scope rules
9971 silently change meaning of code.
9973 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
9975 * troff/env.cc (hyphenate): Loop over all consecutive sequences
9976 of non-zero hyphenation codes.
9978 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
9980 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
9982 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
9984 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
9986 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
9988 * tmac/tmac.andoc: Make it work in compatibility mode.
9990 * refer/token.h (token_info::is_range_sep): New function.
9991 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
9992 * refer/ref.cc (reference::output): More sophisticated check for
9995 * devps/prologue.ps (MANUAL): New procedure.
9996 * grops/ps.cc (main): New -m option.
9997 (usage): Include -m.
9998 (ps_printer::~ps_printer): Implement -m.
10000 * aclocal.m4 (GROFF_G): New macro.
10001 * configure.in: Call it.
10002 * Makefile.in (g): Provided by configure.
10004 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10006 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
10009 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10010 (tmac_m, tmac_s): Deleted.
10011 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10012 tmac_s_prefix): New variables.
10013 (MDEFINES): Change accordingly.
10014 * Makefile.comm (.man.n): Use new TMAC_* variables.
10015 * configure.in (GROFF_TMAC): Call.
10016 * aclocal.m4 (GROFF_TMAC): Define.
10017 * tmac/Makefile.sub (stamp_wrap): New target.
10018 (install_data, uninstall_sub): Handle macro wrapping.
10020 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
10022 * tbl/main.cc (main): Ignore -T option.
10024 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
10026 * devlj4/generate/special.map: Add definition of \(nb.
10028 * tmac/tmac.dvi: Add definition of \(nb.
10030 * troff/dictionary.c (dictionary::dictionary): association::v gets
10031 initialized by association::association.
10033 * tmac/Makefile.sub: Avoid using temporary files when installing.
10035 * troff/env.cc (environment::set_font): Make bad font number a
10038 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10040 * Makefile.in (datadir): Use share rather than lib.
10042 * groff/groff.cc (basename): Rename to xbasename.
10044 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
10046 * Makefile (CCLIBS): Don't use.
10047 * Makefile.ccpg: Likewise.
10049 * acgroff.m4: Rename to...
10050 * aclocal.m4: Modify extensively for autoconf 2.
10051 * configure.in: Likewise.
10052 * Makefile.in: Likewise.
10054 * groff/pipeline.c (const): Declare as empty if __STDC__ not
10056 (xstrsignal): Check for definition of NSIG. Conditionalize
10057 on SYS_SIGLIST_DECLARED. Make return type const.
10059 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
10061 * troff/input.cc (interpolate_macro): Rephrase missing space
10064 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10066 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10067 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10068 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10069 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10070 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10071 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10072 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10073 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10074 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10075 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10076 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10079 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
10081 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10083 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10085 (macro_iterator::macro_iterator): Add additional argument.
10087 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
10089 * troff/div.cc (vertical_size::vertical_size): In place of integer
10090 specifying line spacing use cunits specifying post vertical
10092 (macro_diversion::output, top_level_diversion::output): Likewise.
10093 * troff/div.h: Change declarations accordingly.
10094 * troff/env.cc (pending_output_line): Replace ls field by post_vs
10096 (pending_output_line::pending_output_line,
10097 pending_output_line::output, environment::output,
10098 environment::output_line, environment::output_title,
10099 environment::hyphenate_line): In place of
10100 integer specifying line spacing use cunits specifying post vertical
10102 (environment::environment): Add post_vertical_spacing and
10103 prev_post_vertical_spacing arguments.
10104 (environment::get_post_vertical_spacing): New function.
10105 (environment::total_post_vertical_spacing): New function.
10106 (environment::post_vertical_spacing): New function.
10107 (init_env_requests): Initialize pvs request and .pvs register.
10108 * troff/env.h: Change declarations.
10110 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
10112 * tmac/tmac.pspic: Immediately remove the temporary file.
10114 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
10116 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10117 height is specified.
10119 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
10121 * tbl/table.c (struct vertical rule, class table_entry): Use int
10122 not short for start_row and end_row.
10124 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
10126 * troff/input.cc (trapping_blank_line, blank_line_macro): New
10128 (diverted_space_node::reread, process_input_stack): Call
10129 trapping_blank_line() rather than blank_line().
10130 (init_input_requests): Bind "blm" to blank_line_macro().
10132 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10134 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
10136 * troff/env.cc (environment::possibly_break_line): Require that
10137 width total excluding width of final space node be greater than
10138 the target text length.
10140 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
10142 * troff/node.cc (kern_pair_node::vertical_extent): New function.
10144 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
10146 * troff/node.cc (charinfo_node): New class.
10147 (glyph_node, composite_node): Derive from charinfo_node. Change
10148 member functions accordingly.
10150 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
10152 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10154 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
10156 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10158 * devps/generate/textmap (notsubset): Add.
10160 * tmac/tmac.a4: New file.
10162 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
10164 * pic/main.cc (had_parse_error): New variable.
10165 (do_picture, do_whole_file): Set had_parse_error if yyparse()
10167 (main): Return 1 if had_parse_error is true.
10169 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
10171 * grolj4/lj4.cc (main): Avoid use of strtoul.
10173 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
10175 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10176 iso_8859_1 or $LESSCHARSET is latin1.
10178 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
10180 * hpftodit: New directory.
10181 * Makefile.in (CCPROGDIRS): Add hpftodit.
10182 * devlj4/generate: New directory.
10184 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
10186 * configure.in: Don't use AC_VFORK.
10187 * groff/pipeline.c (run_pipeline): Use fork() always.
10189 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
10191 * grops/ps.cc (main): Use %1 not %s in error message for -w.
10193 * Makefile.in (CCPROGDIRS): Add grolj4.
10194 (DEVDIRS): Add devlj4.
10195 * grolj4, devlj4: New directories.
10196 * tmac/troffrc: Handle lj4.
10197 * tmac/tmac.lj4: New file.
10199 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
10201 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10203 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
10205 * troff/input.cc (do_if_request): At end of second string, switch
10206 environments before getting next token.
10208 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
10210 * devps/psstrip.sed: Split rule that strips whitespace on either
10211 side of delimiters.
10213 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
10215 * troff/node.h (font_family::make_definition): Add return value to
10216 declaration. * troff/symbol.h (symbol::operator==,
10217 symbol::operator!=): Likewise.
10219 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
10221 * groff/groff.cc (main, help, synopsis): Handle -S.
10222 (possible_command::insert_arg): New function.
10224 * tmac/tmac.safer: New file.
10225 * tmac/msafer.man: New file.
10226 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10228 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
10230 * pic/pic.h, pic/main.cc (safer_flag): New variable.
10231 * pic/pic.y (placeless_element): Avoid unsafe operations if
10232 `safer_flag' is set.
10233 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10235 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
10237 * eqn/lex.cc (get_token): Put call to add_context() in block to
10238 work around Sun C++ 4.0 bug.
10240 * include/stringclass.h (operator +): Use ?: instead of `if' to
10241 work around Sun C++ 4.0 bug.
10243 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
10245 * tbl/main.cc (process_format): Accept - as a synonym for the _
10248 * libbib/index.cc (minus_one): Don't declare as const.
10250 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
10252 * troff/input.cc (get_char_for_escape_name): Push back a newline.
10254 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
10256 * troff/input.cc (write_macro_request): New function.
10257 (init_input_requests): Bind write_macro_request to writem.
10259 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
10261 * tmac/tmac.s (@EN): Turn filling back on even if there was no
10264 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10266 * tmac/tmac.s (@TS): Renamed from TS.
10267 (TS): Call LP then TS again.
10268 (cov*ab-init): Alias @TS to TS.
10270 * tmac/tmac.s: Allow QP or RS to initialize.
10272 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
10273 Move initializations of PS and LL here.
10274 (par@init): Don't initialize HY. Avoid changing environment 0.
10275 (par*env-init): Don't all par@reset.
10277 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
10279 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10281 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
10283 * Makefile.in (MDEFINES): Add LDFLAGS.
10284 (LDFLAGS): Add definition line.
10286 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
10288 * troff/input.cc (get_optional_char): Split off error check into...
10289 (check_missing_character): New function.
10290 * troff/token.h: Declare it.
10291 * troff/env.cc (margin_character): Don't call get_optional_char.
10292 Only call tok.next() after making the node.
10294 * include/lib.h (getopt): Make 2nd argument char *const *.
10296 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
10298 * nroff/conftest.sh: Deleted.
10300 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
10302 * pic/make-dos-dist: Deleted.
10304 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
10306 * devps/psstrip.sed: Strip comments before stripping trailing
10309 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
10311 * Version 1.09 released.
10313 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
10315 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10317 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
10319 * libgroff/font.cc (font::load_desc): Fix typo in error message.
10321 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
10323 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10324 about returning without a value.
10326 * troff/charinfo.h (charinfo::get_special_translation): Cast
10327 TRANSLATE_NONE to int.
10329 * refer/token.cc (lookup_token, store_token): Remove bogus loop
10330 test. Fix test so that it works with n unsigned.
10332 * pic/pic.y (defaults_table): Fully bracket initializer.
10333 * pic/lex.cc (lookup_keyword): Likewise.
10334 * eqn/lex.cc (token_table, def_table): Likewise.
10335 * eqn/box.cc (param_table): Likewise.
10336 * troff/input.cc (warning_table): Likewise.
10337 * libgroff/font.cc (table): Likewise.
10338 * grops/ps.cc (ps_printer::special): Likewise.
10339 * grops/psrm.cc (resource_manager::process_file): Likewise.
10340 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10341 * refer/command.cc (command_table): Likewise.
10342 * addftinfo/addftinfo.cc (param_table): Likewise.
10344 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10345 about temp's being unused.
10346 (unused): New function.
10348 * groff/pipeline.cc: Declare c_fatal.
10350 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10353 * libbib/index.cc (index_search_item::load): Prevent compiler
10354 warnings about fd_closer's being unused.
10355 (unused): New function.
10357 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
10359 * troff/input.cc (copy_mode_error): Make `prefix' static.
10362 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10364 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10365 HAVE_CC_OSFCN_H and modify accordingly.
10367 * troff/input.cc (init_charset_table): radicalex overlaps
10370 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10371 udodo!hans@relay.NL.net).
10372 * groff/configure.in: Call it.
10374 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10375 * groff/configure.in: Call it.
10376 * include/lib.h: Conditionalize declaration of pclose.
10378 * troff/div.cc (last_page_number): New global variable.
10379 (top_level_diversion::begin_page): Exit if we just printed the
10381 * troff/div.h (last_page_number): Declare it.
10382 * troff/input.cc (parse_output_page_list): Set last_page_number.
10384 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10385 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10386 tmac/tmac.X: Likewise.
10387 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10388 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10390 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
10392 * tmac/doc-ditroff (hK): Remove groff specific code which
10393 prevented page-breaks between separate manual entries. If this is
10394 the first page, don't set the page number to 1.
10396 * acgroff.m4 (GROFF_POSIX): New macro.
10397 * configure.in: Use it.
10399 * troff/node.cc (class real_output_file,
10400 real_output_file::real_output_file,
10401 real_output_file::~real_output_file): Conditionalize use of
10402 popen/pclose on POPEN_MISSING.
10403 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10404 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10405 (pipe_source): Similarily.
10407 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10409 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10410 presence of declarations by trying to compile example with
10411 conflicting declarations. (gcc only gives a warning for missing
10414 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
10416 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10417 (from Ulrich Lauther).
10419 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
10421 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10423 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
10425 * indxbib/indxbib.cc (write_hash_table): Add code for case where
10426 pointers and ints have different sizes.
10428 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
10430 * tmac/tmac.s (par*env-init): Call par@reset.
10432 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
10434 * tmac/tmac.s (@IP): Switch to a new environment when diverting
10436 (par*push-tag-env, par*pop-tag-env): New macros.
10438 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
10440 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10441 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
10443 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10444 comment. Include <time.h>.
10446 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
10448 * grops/ps.cc (is_small_h, is_small_v): Deleted.
10449 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10452 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
10454 * troff/input.cc (read_request): Only print a prompt if reading
10455 from the terminal. Also clearerr on EOF if reading from the
10456 terminal. Declare isatty.
10458 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
10460 * refer/label.y: Rename map_t to map_func and extractor_t to
10463 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
10465 * include/assert.h: Don't use volatile.
10466 * libgroff/assert.cc: Likewise.
10468 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
10470 * troff/input.cc (abort_request): Look at character in tok before
10471 calling get_copy().
10473 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
10475 * troff/troff.h (NO_RETURN): Deleted.
10476 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
10477 * troff/input.cc (exit_troff): Likewise
10479 * Makefile.in: Remove `Making ...' messages since GNU make now
10482 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10484 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
10486 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10487 to constant 1 inch.
10489 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
10491 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10493 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
10495 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10496 MARK_REG if there was no left delimiter.
10498 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
10500 * pic/troff.cc (troff_output::text): Set line thickness to
10501 relative before outputting text.
10503 * tmac/tmac.e (@k): Don't zero ?T.
10506 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
10508 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10510 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
10512 * troff/input.cc (decode_args): Warn about unquoted tabs (from
10515 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
10517 * troff/input.cc (ignoring): New variable.
10518 (ignore): Set ignoring during call to do_define_macro.
10519 (do_define_macro): Clear ignoring before interpolating terminating
10521 (copy_mode_error): New function.
10522 (get_char_for_escape_name, read_long_escape_name,
10523 interpolate_arg): Use copy_mode_error.
10524 (warning_table): Add WARN_IG.
10525 * troff/troff.h (WARN_IG): Declare.
10526 (WARN_TOTAL): Change accordingly.
10528 * groff/pipeline.c (strsignal): Rename to xstrsignal.
10529 * groff/groff.cc (strsignal): Delete declaration.
10531 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
10533 * troff/div.cc (page_offset): Use 'm' as default scaling.
10535 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
10537 * nroff/nroff.sh: Ignore -u.
10539 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
10541 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10543 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
10545 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10547 (B2): With -Tascii, leave additional vertical space before
10548 and after. Ensure that the left and right indent is restored to
10549 what it was even if the point size changes. Don't call
10550 par@finish. Change the indent, line length and title length
10551 directly. With -Tascii, make the width of the box 1n less.
10552 (B1): Remember 1n at the current point size. Don't call
10553 par@reset. Change the indent, line length and title length
10554 directly. Ensure that the temporary indent is preserved.
10555 (par*box-mark-top): Turn off no spacing mode.
10557 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
10559 * Makefile.in (dist): Use .gz suffix.
10561 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
10563 * troff/input.cc (main): Add return 0.
10564 * pic/main.cc (main): Use return instead of exit.
10565 * tbl/main.cc (main): Likewise.
10566 * eqn/main.cc (main): Likewise.
10567 * grops/ps.cc (main): Likewise.
10568 * grotty/tty.cc (main): Likewise.
10569 * groff/groff.cc (main): Likewise.
10570 * grodvi/dvi.cc (main): Likewise.
10571 * refer/refer.cc (main): Likewise.
10572 * indxbib/indxbib.cc (main): Likewise.
10573 * lkbib/lkbib.cc (main): Likewise.
10574 * soelim/soelim.cc (main): Likewise.
10575 * addftinfo/addftinfo.cc (main): Likewise.
10576 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10577 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10579 * troff/token.h (process_input_stack): Don't declare as static.
10580 * troff/input.cc: Likewise.
10582 * troff/node.c (invalidate_fontno): Make it a static member of
10583 class font_family. Change callers.
10584 * troff/node.c: Change declaration.
10586 * tbl/main.cc (struct input_entry_format): Add explicit public
10588 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10589 struct double_hline_stuff): Likewise.
10590 * tbl/table.h (struct entry_format): Likewise.
10591 * pic/object.h (struct saved_state): Likewise.
10593 * include/stringclass.h: Add forward declarations of friend
10594 functions that are later declared as inline. Don't include inline
10595 specifier in friend declaration.
10597 * libgroff/lib.h: Declare popen and pclose.
10598 * acgroff.m4 (GROFF_POPEN): New macro.
10599 * configure.in: Call it.
10601 * include/lib.h (PI): New constant. Undef first if necessary.
10602 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10603 * grops/ps.cc (degrees, radians): Likewise.
10604 * libgroff/font.cc (font::get_skew): Likewise.
10606 * grops/ps.cc (is_ascii): New function.
10607 (ps_output::put_string): Use is_ascii. Use csprint rather than
10609 (ps_printer::define_encoding): Use csspace.
10610 * libgroff/strtol.c (ISASCII): New macro.
10611 (strtol): Cast arguments to is*() and tolower() to unsigned char.
10612 Use ISASCII rather than isascii.
10613 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10614 * libgroff/cset.cc: Likewise.
10615 * libdriver/input.cc: Include cset.h.
10616 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10619 * refer/refer.cc (main): Use %ld rather than %d for longs.
10621 * libbib/index.cc (index_search_item_iterator::get_tag): Use
10624 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10626 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
10628 * troff/input.cc (hyphenation_code): Skip white space between
10631 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
10633 * tbl/table.h (table::entry_list_tailp): New member.
10634 (table::table): Initialize it.
10635 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10638 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
10640 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10641 with negative horizontal positions. Remove casts of glyph::hpos to
10643 (USHRT_MAX): Delete definition.
10644 (SHRT_MAX, SHRT_MIN): New definitions.
10645 (glyph::hpos): Change type to short.
10646 (tty_printer::end_page): Output multiple backspaces if necessary.
10647 Remove casts of glyph::hpos to int.
10649 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
10651 * tmac/tmac.s (@RT): New definition.
10653 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
10655 * refer/refer.cc (do_file): Make sure current_filename is set when
10658 * pic/common.cc (common_output::dot_line): Handle zero length
10661 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
10663 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
10664 (par@init): Initialize \n[HY].
10666 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
10668 * troff/dictionary.cc (dictionary::remove): Continue when
10671 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
10673 * Makefile.com (.y.cc): Avoid ending up with two versions of
10676 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
10678 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
10679 (\(,C): Likewise. Also fix typo.
10681 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
10683 * lib.h: Delete extraneous semi-colon.
10685 * Add pso request: `so' from a pipe.
10686 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
10687 (file_iterator::close): New function.
10688 (file_iterator::~file_iterator, file_iterator::next_file): Use
10689 file_iterator::close.
10690 (file_iterator::backtrace): Say `process' rather than `file' when
10691 the stream is popened.
10692 (pipe_source): New function.
10693 (init_input_requests): Bind ".pso" to pipe_source.
10695 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
10697 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
10699 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
10700 digits in lower case.
10702 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
10704 * Version 1.08 released.
10706 * Makefile.in (dist): Insert || true after ln -s commands that
10709 * mm: Update to mm 1.16.
10711 * acgroff.m4 (GROFF_CSH_HACK): New macro.
10712 * configure.in: Call GROFF_CSH_HACK. Substitute for
10714 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
10716 * nroff/Makefile.sub (nroff): New target.
10717 (install_data): Install nroff.
10718 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
10719 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
10721 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
10723 * eqn/Makefile.sub (neqn): Add chmod +x.
10725 * grog/Makefile.sub (grog): Remove spurious semi-colon.
10727 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
10729 * troff/input.cc (string_iterator::string_iterator()): Initialize
10732 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
10734 * troff/div.cc (macro_diversion::space,
10735 top_level_diversion::space): Don't set high_water_mark.
10736 (macro_diversion::output, top_level_diversion::output): Don't
10737 include post line space in high water mark.
10739 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
10741 * eqn/eqn.y: Don't define YYDEBUG.
10742 * pic/pic.y: Likewise.
10744 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
10746 * tmac/tmac.e ([3): Add space after comma following editors.
10747 Change double spaces to single spaces.
10748 ([4): Change double spaces to single spaces.
10750 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
10751 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
10752 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
10753 after %!PS-Adobe- (for Newsprint).
10755 * troff/div.cc (top_level_diversion::begin_page): When
10756 before_first_page is 1, set page_number to 1.
10758 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
10760 * eqn/box.cc (box::top_level): Protect equation with \&.
10762 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
10764 * groff/groff.cc (possible_command::set_name): Delete old name.
10766 * groff/groff.cc (possible_command::~possible_command): Use
10769 * troff/node.cc (troff_output_file::begun_page): New member.
10770 (troff_output_file::troff_output_file): Initialize it.
10771 (troff_output_file::really_begin_page): Only output V command if a
10772 page has been begun.
10774 * pic/pic.y (placeless_element): Delete argument to PRINT after
10777 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
10779 * Make wrapman work.
10780 * troff/div.h (class top_level_diversion): Replace
10781 first_page_begun by before_first_page (with opposite sense).
10782 * Change first_page_begun to before_first_page inverting sense.
10783 * troff/div.cc (class nl_reg): New class.
10784 (init_div_requests): Use class nl_reg for \n(nl.
10785 (top_level_diversion::begin_page): Don't call
10786 output_file::begin_page if before_first_page is 2;
10787 reset before_first_page afterwards. If have_next_page_number is
10788 false, then always increment page_number.
10789 * tmac/tmac.an: Set traps within TH rather than at the top-level.
10790 Restore compatibility mode after loading, and then disable
10791 compatibility mode in TH.
10793 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
10795 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
10797 * troff/node.h (output_file::trailer): Declare.
10798 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
10799 * troff/node.cc (output_file::trailer): New function.
10800 (troff_output_file::~troff_output_file): Move most code into...
10801 (troff_output_file::trailer): New function.
10802 (class troff_output_file): Delete page_length member. Declare
10804 (troff_output_file::really_begin_page): Use current page length
10805 for final V command.
10807 * tbl/main.cc (struct options): New decimal_point_char member.
10808 (options::options): Initialize this.
10809 (process_options): Implement decimalpoint option.
10810 (process_data): Pass decimal_point_char option to table::table.
10811 * tbl/table.h (class table): New decimal_point_char member.
10812 (table::table): Add additional argument.
10813 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
10814 second argument specifying decimal point character. Use this
10816 (table::table): Initialize decimal_point_char.
10817 (table::add_entry): Change call to find_dot.
10819 * troff/input.cc (get_copy, token::next): Implement \V.
10820 (interpolate_environment_variable): New function.
10822 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
10824 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
10825 * pic/pic.y: Likewise.
10827 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
10829 * refer/ref.cc (reference::insert_field, reference::delete_field):
10831 * troff/number.cc (parse_term): Likewise.
10833 * acgroff.m4 (GROFF_PROG_YACC): New macro.
10834 * configure.in: Use GROFF_PROG_YACC.
10836 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
10838 * Makefile.in (OPTIMIZE): New define.
10839 (DEBUG): Empty by default.
10840 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
10842 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
10843 (GROFF_ARRAY_DELETE): Likewise.
10844 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
10846 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
10848 * devps/psstrip.sed: Use different delimiter on last line (so that
10849 it works with BSD 4.4 sed.)
10851 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
10853 * devps/psstrip.sed: Delete comments.
10855 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
10856 optind, opterr, optarg.
10857 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
10860 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
10862 * Makefile.in (check): Dummy target.
10864 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
10866 * Version 1.07 released.
10868 * Integrate mm 1.11.
10870 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
10871 where start_col was meant.
10873 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
10875 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
10877 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
10879 * troff/input.cc (token::next): Make \z\o'...' and similar things
10882 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
10884 (environment): Add margin_character_flags member.
10885 * env.cc (environment::environment(symbol),
10886 environment::environment(const environment *): Initialize
10887 margin_character_flags.
10888 (margin_character): Rewrite.
10889 (environment::output_line): Add a margin character if
10890 margin_character_flags is non-zero. Turn off the
10891 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
10892 zero, use margin_character_node without copying and then set
10893 margin_character_node to 0.
10895 * devps/DESC.in: Change minimum size to 1000.
10897 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
10899 * troff/symbol.h (symbol::hash): Change return type to unsigned
10901 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
10904 * test-groff: Use -r rather than -x.
10906 * grops/psfig.diff: Include in distribution again.
10908 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
10910 * Makefile.in (dist): Use gzip.
10912 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
10914 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
10915 unistd.h as well as in stdlib.h.
10916 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
10917 defined; otherwise include <sys/types.h> and <unistd.h> if
10918 UNISTD_H_DECLARES_GETOPT is defined.
10920 * configure.in: use builtin(include, ... rather than include(...
10921 * configure: Regenerate with autoconf 1.3.
10923 * libdriver/print.cc (printer::adjust_arc_center): Use new
10924 algorithm suggested by Andy Fyfe.
10926 * libdriver/printer.cc (printer::adjust_arc_center): New function.
10927 * include/printer.h: Declare this.
10928 * grops/ps.cc (ps_printer::draw): Use it.
10929 * grodvi/dvi.cc (dvi_printer::draw): Use it.
10931 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
10933 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
10935 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
10937 * eqn/main.cc (main): Handle "eqn -".
10939 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
10941 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
10943 * mm: Integrate version 1.08.
10945 * pic/troff.cc (troff_output::finish_picture): Set
10946 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
10947 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
10948 if it's not defined. Check whether the register is non-zero rather
10949 than whether it's not defined.
10950 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
10952 * indxbib/indxbib.cc: Move all signal handling into...
10953 * indxbib/signal.c: New file.
10954 * configure.in: Call AC_RETSIGTYPE.
10956 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
10957 * configure.in: Call GROFF_STRUCT_EXCEPTION.
10958 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
10960 * troff/input.cc (token::token, token::operator=): Work round SGI
10962 * pic/object.cc (position::position): Likewise.
10964 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
10966 * pic/pic.h: Move declaration of hypot().
10968 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
10970 * pic/pic.h: Declare hypot().
10972 * pic/pic.h: Define M_PI if necessary.
10974 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
10976 * tmac/tmac.e (re): Add alternative version that doesn't use groff
10979 * devps/prologue.ps (RE): Handle the possibility that the old font
10980 doesn't have a FontName entry.
10982 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
10984 * tmac/tmac.e (fam): Redefine to set family in environment 2.
10985 (@C): Use @fam not fam.
10987 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
10989 * lookbib/lookbib.cc (main): Change type of start to const char *.
10990 * lkbib/lkbib.cc (main): Likewise.
10992 * eqn/lex.cc (definition::definition): Don't use member
10993 initializer syntax for members of anonymous unions.
10995 * troff/input.cc (input_stack::backtrace): Change type of to const
10998 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
11000 * include/stringclass.h (class string): Declare inline friend
11001 functions as inline in class declaration.
11002 * troff/hvunits.h (class hunits, class vunits): Likewise.
11003 * include/refid.h (class reference_id): Likewise
11004 * troff/troff.h (points_to_units(units), scale(units, double)):
11005 Delete declarations.
11006 * libdriver/input.cc (get_char): Delete declaration.
11007 * include/lib.h: Change 2nd argument of getopt from const char **
11009 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11010 char **' before assigning to a `const char **'.
11011 * tbl/table.cc: Delete extra declarations of prints().
11013 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
11015 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11016 char **' before assigning to a `const char **'.
11018 * libgroff/errarg.cc (errarg::errarg): Don't use member
11019 initializer syntax for members of anonymous unions.
11021 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
11023 * mm: Integrate version 1.07.
11025 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
11027 * troff/input.c (translate2): Rename to
11028 (translate_no_transparent).
11029 (init_input_requests): Rename tr2 to trnt.
11031 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
11033 * troff/charinfo.h (class charinfo): Add transparent_translate field.
11034 (charinfo::set_translation, charinfo::set_special_translation):
11035 Add second argument that specifies value for
11036 transparent_translate.
11037 (charinfo::get_translation, charinfo::get_special_translation):
11038 Add optional second argument that specifies whether translation is
11039 being used for transparent throughput.
11040 * troff/input.cc (charinfo::set_translation,
11041 charinfo::set_special_translation): Handle second argument.
11042 (charinfo::charinfo): Initialize transparent_translate.
11043 (translate): Split main part off into
11044 (do_translate): New function. Pass argument saying whether
11045 translation applies to transparent throughput.
11046 (translate2): New request.
11047 (init_input_requests): Bind translate2 to `tr2'.
11049 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
11051 * tbl/table.h (class table): Add `nokeep' flag.
11052 * tbl/main.cc (process_options): Handle `nokeep' option.
11053 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11054 table::do_bottom): Don't output keep/release macro definitions or
11055 calls when `nokeep' option has been specified.
11057 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
11059 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11061 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
11063 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11064 block_entry::divert, alphabetic_block_entry::divert): Add extra
11065 argument giving column separation.
11066 (table::compute_widths): Pass column separation to
11067 table_entry::divert().
11068 (block_entry::do_divert): If an entry spans multiple columns and a
11069 minimumum width has been specified for each column, then set the
11070 line length to the sum of the widths (plus possibly the column
11073 * troff/input.cc (set_escape_char): Don't set the escape_char
11074 until after calling has_arg().
11076 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
11078 * tbl/table.cc (table::do_top): Add missing \s0 for double box
11081 * tbl/table.cc (table::print_double_hline): Avoid extra new line
11082 in case where r > nrows - 1.
11084 * tbl/table.cc (BODY_HEIGHT): Deleted.
11085 (LINE_SEP): New definition.
11086 (table::print_single_hline, table::print_double_hline,
11087 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11088 table::do_row, table::do_top): Use LINE_SEP space before a line
11089 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11091 * tbl/table.cc (text_entry::print_contents): New function.
11092 (text_string_name, right_text_string_name): Deleted.
11093 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11094 (simple_text_entry::do_width, numeric_text_entry::do_width,
11095 alphabetic_text_entry::do_width): Don't store the contents of the
11097 (left_text_entry::simple_print, right_text_entry::simple_print,
11098 center_text_entry::simple_print,
11099 alphabetic_text_entry::simple_print,
11100 numeric_text_entry::simple_print): Print the entry directly
11101 instead of using the stored string.
11103 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
11105 * devps/Makefile: Strip PostScript files.
11106 * devps/prologue: Rename to...
11107 * devps/prologue.ps.
11108 * devps/psstrip.sed: New file.
11109 * devps/download: Use .pfa rather than .ps for installed versions
11112 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
11114 * troff/env.cc (input_trap): Give a warning if the argument is out
11117 * troff/env.cc (adjust): Treat negative argument as missing. Round
11118 argument > 5 down to 5.
11120 * troff/env.cc (center, right_justify): Make negative argument zero.
11122 * troff/div.cc (page_offset, vertical_position_traps): Treat
11123 invalid argument as missing.
11124 * troff/env.cc (line_spacing, line_length, title_length, indent,
11125 underline, hyphen_line_max_request, control_char,
11126 no_break_control_char, widow_control_request, adjust, input_trap,
11127 point_size): Likewise.
11128 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11129 constant_space): Likewise.
11130 * troff/input.cc (compatible, shift, warn_request,
11131 set_escape_char): Likewise.
11133 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11134 * tbl/table.cc (table::table): Likewise.
11136 * Makefile.dev (install_dev): depends on $(DEVFILES).
11138 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
11140 * devX75, devX75-12, devX100, devX100-12: New directories.
11141 * Makefile.in: Add these to DEVDIRS.
11143 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11144 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11145 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11146 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11148 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11149 (uninstall): New target.
11150 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11151 uninstall_prog, uninstall_dev): New targets.
11153 * troff/div.cc (return_request): Treat an invalid argument as
11156 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
11158 * tmac/tmac.e ((f): Set up the environment even when there's a
11159 current diversion. Transperently throughput a call to @N.
11162 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
11164 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11165 up to vertical resolution.
11167 * tbl/table.cc (table::do_row): Change row number after printing
11170 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11172 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
11174 * Rename CHANGES to NEWS.
11176 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
11178 * libgroff/new.cc (operator new): Avoid calling malloc(0).
11180 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
11182 * man.ultrix: Removed.
11184 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
11186 * Makefile.comm (extraclean): Delete files whose names begin with
11189 * pic/troff.cc (troff_output::text): Fix typo in implementation of
11192 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
11194 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11195 * troff/div.cc (page_length, need_space, space_request): Treat
11196 invalid optional argument as missing.
11197 * troff/env.cc (number_lines): If the first argument is present
11198 but not a number, turn on line numbering, don't change the next
11199 line number and parse the remaining arguments.
11201 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11203 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
11205 * eqn/box.h: Change declaration accordingly.
11206 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
11207 the specified size was bad but don't give an error. Check for
11209 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11210 * eqn/lex (do_size): Likewise.
11212 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
11214 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11215 compatible headers.
11217 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
11219 * tbl/table.cc (table::init_output): Improve error message when
11220 table won't fit on one page.
11222 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
11224 * pic/troff.cc (troff_output::start_picture): Generate line
11225 containing a horizontal motion equal to the width of the picture.
11227 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11228 using GROFF_COMMAND_PREFIX environment variable.
11230 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
11232 * mdate.sh: Use $NF rather than $(NF).
11234 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
11236 * pic/main.cc (main): Use %1 not %c in argument to warning.
11238 * eqn/main.cc (main): Output code to check that geqn was given the
11241 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
11243 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11244 `ln -s ../Makefile .; make; rm -f Makefile'.
11246 * troff/hyphen: Rename to...
11248 * troff/input.cc (main): Delete -H option. Don't call
11249 read_hyphen_file().
11250 * troff/env.cc: Include searchpath.h and macropath.h.
11251 (exception_dictionary): Deleted.
11253 (read_hyphen_file): Deleted.
11254 (hyphenation_language): New struct.
11255 (class trie, class hyphen_trie): Move declarations up.
11256 (trie_node::~trie_node): Deleted.
11257 (trie::delete_trie_node): New function.
11258 (trie::do_delete): New pure virtual function.
11259 (hyphen_trie::do_delete): New function.
11260 (trie::~trie): New function.
11261 (hyphen_trie::~hyphen_trie): New function.
11262 (trie::clear): No need to chcek that tp is not 0.
11263 (current_language, language_dictionary): New variables.
11264 (hyphen_word): Give an error if no current language. Use
11265 exceptions dictionary in current language.
11266 (hyphen_trie::read_patterns_file): Find file using macro_path.
11267 Allow comments (starting with %) in patterns file. Don't make it
11268 a fatal error if the file can't be found.
11269 (hyphenate): Return if no current language. Get the exceptions
11270 dictionary and the hyphenation patterns from the current language.
11271 (set_hyphenation_language): New variable.
11272 (hyphenation_patterns_file): New function.
11273 (hyphenation_language_reg): New class.
11274 (hyphenation_language_reg::get_string): New function.
11275 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11276 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
11278 * groff/groff.cc (main, help, synopsis): Delete -H option.
11279 * include/Makefile.sub: Don't define HYPHENFILE.
11280 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11281 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11282 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11283 hyphenation patterns.
11285 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
11287 * eqn/neqn.sh: New file.
11288 * eqn/Makefile.sub: Handle neqn.sh.
11290 * eqn/eqn.h: Declare `nroff' variable.
11291 * eqn/box.cc (param_table): Add `nroff' param.
11292 (nroff): Define it.
11293 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11295 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11297 * troff/troff.h (WARN_FONT): New warning.
11298 (WARN_TOTAL): Change accordingly.
11299 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11300 (warning_table): Add WARN_FONT.
11301 * troff/node.cc (mount_font_no_translate): Pass argument to
11302 font::load_font. If this is non-zero, give a warning.
11303 Don't give an error message when accessing a font that has already
11304 been found to be invalid.
11305 * include/font.h (font::load, font::load_font): Add additional
11306 optional argument which suppresses error message if the font is
11308 * libgroff/font.cc (font::load_font): Handle additional argument.
11309 (font::load): Add additional argument. If this is non-null, set it
11310 to 1 and don't give error message.
11312 * include/printer.h (printer::end_page): Add argument giving
11314 * libdriver/input.cc (do_file): Pass this.
11315 * grops/ps.cc (ps_printer::end_page): Add argument.
11316 * grodvi/dvi.cc (dvi_printer::end_page,
11317 draw_dvi_printer::end_page): Add argument.
11318 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11319 columns_per_page members. New member nlines.
11320 (DEFAULT_LINES_PER_PAGE): Deleted.
11321 (tty_printer::tty_printer): Don't compute lines_per_page from
11322 font::paperlength. Don't compute columns_per_page from
11324 (tty_printer::add_char): Don't check horizontal position against
11325 columns_per_page. Grow glyphs vector if neccessary.
11326 (tty_printer::end_page): Add argument giving page_length in units.
11327 Discard lines past end of page.
11329 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
11331 * tmac/tmac.tty-char: Fix definition of \(/l.
11333 * tmac/tmac.X: Define \(en.
11335 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
11337 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11338 lpq, then use lp rather than lpr.
11340 * tmac/tmac.s (par@reset): Don't call `ad'.
11341 (par*env-init): Call `ad'.
11343 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
11345 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11348 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11349 * indxbib/indxbib.cc: Likewise.
11351 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
11353 * libgroff/putenv.c: New file.
11354 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11355 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11356 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11357 stdlib.h with AC_HAVE_HEADERS.
11359 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
11361 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11364 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
11366 * eqn/box.cc (gsize): Make it an int.
11367 (set_gsize): Parse argument handling increment or decrement.
11368 (box::top_level): Convert gsize to a string.
11370 * troff/input.cc (exit_troff): Make buf unsigned char [].
11371 Call to make_temp_iterator casts buf to char*.
11373 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11375 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11376 * Makefile.cpg (depend.temp): Likewise.
11378 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11380 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11382 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
11384 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11386 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
11388 * Version 1.06 released.
11390 * Integrate mm 1.04.
11392 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
11394 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11396 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
11398 * afmtodit/afmtodit.pl: Add -n option that disables generation of
11400 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11401 afmtodit. Regenerate.
11403 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11404 @f back past the current position.
11406 * tmac/tmac.e: Change calls to @R so that comments are not part of
11409 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
11411 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11413 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11414 check that we can link a call to a function declared in <stdio.h>.
11415 (GROFF_UNISTD_H): New macro.
11416 * configure.in: Call it.
11417 * Makefile.in: Document it.
11418 * include/posix.h: New file.
11419 * troff/troff.h: Don't include <osfcn.h>
11420 * troff/input.cc: Include posix.h.
11421 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11423 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11424 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11426 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11427 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11428 * libbib/search.cc (O_RDONLY): Delete definition.
11429 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11430 Don't include <osfcn.h>.
11432 * acgroff.m4 (GROFF_TIME_T): New macro.
11433 * configure.in: Call it.
11434 * Makefile.in: Document it.
11436 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11437 * configure.in: Call it.
11438 * Makefile.in: Document -DTRADITIONAL_CPP.
11439 * include/ptable.h: Don't include generic.h.
11440 (name2): Define it.
11442 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11443 Afterwards remove [T1 and [T2.
11444 (ref*spec!0, ref*spec!2): Use T1 rather than T.
11445 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11446 (ref*add-T2): Renamed from ref*add-T.
11447 (ref*add-T1): New macro.
11449 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
11451 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11453 * libbib/index.cc: Include <fcntl.h>.
11454 (O_RDONLY): Define if necessary.
11455 (make_index_search_item, index_search_item_iterator::get_tag,
11456 index_search_item::check_files): Use O_RDONLY.
11457 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11458 (O_RDONLY): Define if necessary.
11459 (search_list::add_file): Use O_RDONLY.
11460 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11462 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11465 * libbib/index.cc (S_ISREG): Define it if necessary.
11466 (index_search_item::load): Use S_ISREG.
11468 * include/driver.h: Include <errno.h>.
11470 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
11472 * eqn/box.cc (body_height): Increase default value to 85.
11473 (body_depth): Increase default value to 35.
11475 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
11477 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11478 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11479 protected from expansion with \E.
11481 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11483 * Makefile (Makefile): New target.
11485 * Makefile.sub (configure, distfiles): New targets.
11487 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11490 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
11492 * eqn/box.cc (param_table): Add body_height and body_depth.
11494 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11496 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
11498 * psbb/Makefile.sub: Don't link with libgroff.a.
11500 * acgroff.m4 (GROFF_PUTENV): New macro.
11501 * configure.in: Call GROFF_PUTENV.
11502 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11503 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11506 * troff/env.cc (distribute_space): Rename force_forward argument
11507 to force_reverse. Reverse the list if force_reverse is true.
11509 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
11511 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11513 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11514 height or depth to be negative. Guard against SUP_RAISE quantity
11517 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
11519 * devps/generate/textmap: Add `an' (arrowhorizex).
11520 * tmac/tmac.ps: \(an overlaps horizontally.
11521 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11523 * devps/symbolchars: Add arrowverttp, arrowvertbt.
11524 * devps/textmap: Add arrowvertex.
11525 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11526 updownarrow delimiters.
11527 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11529 * tbl/table.cc (simple_entry::position_vertically,
11530 block_entry::position_vertically): For a centered entry, perform
11531 the motion in two stages.
11533 * refer/refer.cc (split_punct): Don't call lookup_token if there
11536 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
11538 * troff/input.cc (token::next): Delete token_node after copying
11541 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11544 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11546 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11548 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
11550 * grops/ps.cc (usage): -b option takes an argument.
11552 * devps/prologue (PLG): New procedure.
11553 * grops/ps.cc (main, usage): New -g option.
11554 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
11557 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
11559 * include/cset.h: Include <limits.h> if we have it.
11561 * libgroff/illegal.cc: New file.
11562 * include/lib.h (illegal_input_char): Use table.
11563 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11564 * pic/lex.cc (ARG1): Renumber to 14.
11565 * eqn/lex.cc (ARG1): Likewise.
11567 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11568 (eg 1.05.90) correctly.
11570 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
11572 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11573 Rename $r and $R registers to $v and $V.
11574 ($r, $R): Initialize to 0.
11575 (@v, @V): New macros.
11579 * troff/input.cc (main, usage): Add -R option that says not to
11581 * eqn/main.cc (main, usage): Rename -n to -R.
11583 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
11585 * devps/DESC.in: Leave font positions 5-9 blank.
11586 * devdvi/DESC.in: Likewise.
11588 * grog/grog.pl: Handle `.PS <file' correctly.
11590 * troff/input.cc (input_stack::push): Improve error message when
11591 input stack limit exceeded.
11593 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
11595 * refer/refer.cc (main): Fix typo in handling of `a' option.
11597 * refer/refer.cc (do_bib): In state START after a newline remain
11600 * groff/groff.sh: Deleted.
11601 * groff/Makefile.sub: Delete handling of groff.sh.
11603 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11604 to determine whether to use \X'ps:...'.
11605 * tmac/troffrc: Set 0p register to 0.
11606 * tmac/tmac.ps: Set 0p register to 1.
11608 * groff/groff.cc: Support -X option. Give warning for -TXps and
11609 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11610 * tmac/troffrc: Support -r.X=1.
11612 * pic/troff.cc (troff_output::dot): Don't test
11613 zero_length_line_flag.
11615 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
11617 * include/lib.h: Declare getopt() and friends unless
11618 STDLIB_H_DECLARES_GETOPT is defined.
11620 * doc/chars.tr: Delete.
11621 * man/groff_char.man: New file.
11623 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
11625 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11626 user has changed register format.
11628 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
11630 * groff/groff.cc: Get rid of device_table. Get postprocessor from
11631 `postpro' command in DESC file. Get spooler command from `print'
11632 command in DESC file. Execute spooler command with /bin/sh.
11634 * groff/groff.cc: Split Unix-specific parts into...
11635 * groff/pipeline.c: New file.
11638 * COPYING: New file.
11639 * all files: Update copyright notices.
11641 * Rearrange files. Redo Makefiles. Use autoconf.
11643 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
11645 * troff/input.c (charinfo_to_node_list): Interpret character
11646 definition with escape_char of `\'.
11648 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
11650 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11651 Define INT_DIGITS as big enough for 64-bit integer.
11652 * lib/strtol.c: Don't include lib.h.
11653 * lib/lib.h: Delete ifdef __cplusplus stuff.
11655 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
11657 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
11658 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
11659 get DESC from current directory.
11661 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
11663 * tbl/main.c (main): Always reset the line number when reading
11666 * tbl/table.c (table::print_single_hline, table::print_double_hline,
11667 table::define_bottom_macro, table::do_row, table::do_top): Round
11668 vertical spacing up to vertical resolution.
11670 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
11672 * ps/ps.h (enum resource_type): Avoid comma at end of
11674 * dvi/dvi.c (class dvi_printer): Likewise.
11675 * dvi/tfmtodit.c (gf::load): Likewise.
11676 * refer/label.y (struct expression): Likewise.
11677 * refer/refer.c (class label_processing_state): Likewise.
11678 * refer/indxbib.c (do_file): Likewise.
11679 * troff/troff.c (enum warning_type): Likewise.
11680 * tbl/main.c (process_data): Likewise.
11681 * troff/charinfo.h (class charinfo):
11683 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
11685 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
11687 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
11689 * groff.c: Move to new groff subdirectory.
11690 * groff/Makefile: New file.
11691 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
11693 * man/mdate.sh: Use ls -L if supported.
11695 * Consolidate all header files produced by gendef into lib/defs.h.
11696 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
11697 Don't include path.h.
11698 * lib/Makefile (path.h): Don't generate.
11699 * troff/input.c: Include defs.h. Don't include config.h.
11700 * troff/Makefile (config.h): Don't generate.
11701 * refer/index.h: Don't include suffix.h.
11702 * refer/index.c: Include defs.h.
11703 * refer/indxbib.c: Include defs.h.
11704 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
11706 * refer/Makefile (suffix.h, path.h): Don't generate.
11707 * groff.c: Don't include config.h. Include defs.h.
11708 * Makefile (config.h): Don't generate.
11709 (lib/defs.h): Generate.
11710 (topclean): Remove lib/defs.h.
11712 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
11714 * lib/malloc.c, lib/getpagesize.h: Deleted.
11715 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
11717 * lib/Makefile: Delete malloc-related stuff.
11718 * lib/new.c: Workaround COOKIE_BUG if necessary.
11720 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
11721 needed header files directly.
11722 * refer/refer.h: Omit definition of DEFAULT_INDEX.
11723 * Makefile: Include definition of DEFAULT_INDEX in path.h.
11725 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
11727 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
11729 * lib/font (font::load_desc, font::load): Don't split argument of
11731 (font::handle_unknown_font_command): Change type.
11732 * ps/ps.c (ps_font::handle_unknown_font_command,
11733 handle_unknown_desc_command): Change type.
11734 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
11736 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
11738 * lib/font.h (font::handle_unknown_font_command): Add file and
11740 * lib/font.c (font::handle_unknown_font_command):
11741 * ps/ps.c (ps_font::handle_unknown_font_command):
11742 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
11743 lineno arguments. Use _with_file_and_line functions for error
11746 * lib/fontfile.c (font::unknown_desc_command_handler): New static
11748 * lib/font.c (font::set_unknown_desc_command_handler): New
11750 (font::load_desc): For unknown commands, call
11751 unknown_desc_command_handler if not null.
11752 * lib/font.h (class font): Declare them.
11753 (FONT_COMMAND_HANDLER): New typedef.
11754 * ps/ps.c (handle_unknown_desc_command): New function.
11755 (main): Set bflag if we had a -b option. Call
11756 font::set_unknown_desc_command_handler.
11757 (broken.h): Don't include.
11758 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
11760 * ps/devps/Makefile: Add `broken' command to DESC file using
11761 BROKEN_SPOOLER_FLAGS.
11763 * macros/tmac.e ([, ]): Add as synonyms for { and }.
11765 * macros/tmac.e ($p): Only exdent if \$3 > 0.
11767 * macros/tmac.e (@R, @S): New macros.
11768 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
11769 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
11770 Declare $H, $[0-9], .. macros with @S.
11771 Declare |0, |1, |2, |3 strings with @S.
11773 * macros/tmac.e (@S): Rename to @U.
11775 * macros/tmac.e (@z): Define @b and bp as empty instead of
11778 * macros/tmac.e (@m): Deleted.
11779 (@h): Don't call @m.
11780 (@z): Don't set @m trap.
11782 * macros/tmac.e ($h, $f): Define |z as empty string.
11784 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
11787 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
11789 ()f): Likewise for * register.
11791 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
11792 argument is missing, don't change $R. Call sr with three
11793 arguments when initializing.
11795 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
11797 * macros/tmac.e (sr): New macro.
11798 Initialize $r and $R using sr.
11800 * macros/tmac.e (,): Delete \*(#[.
11802 * troff/env.c (set_tabs): Read the tab type even if the position
11803 is bad. Allow the position of the first tab stop to be negative.
11805 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
11807 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
11809 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
11810 rather than -DPATHCONF_MISSING.
11811 * Makefile: Get rid of PATHCONF_MISSING.
11813 * refer/map.c: New file.
11814 * refer/index.c: Interface to mmap through map.c. Rename map_size
11816 * refer/Makefile: Handle map.c.
11817 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
11819 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
11821 * Makefile: RANLIB should be `true' if there is no ranlib.
11822 * lib/Makefile (libgroff.a): Simplify.
11823 * driver/Makefile (libdriver.a): Simplify.
11825 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
11826 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
11829 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
11831 * troff/env.c (compare_ranges): Declare as extern "C".
11833 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
11835 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
11837 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
11839 * pic/troff.c (troff_output::text): Merge in grops_output::text,
11840 but conditionalize use of \X based on \*(.T.
11841 (grops_output::*): Deleted.
11842 * pic/output.h: Delete declaration of make_grops_output.
11843 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
11844 by default. -n sets it to 0.
11845 (usage): Corresponding changes.
11846 * groff.c (main): Don't pass -x or -p to pic.
11847 * groff.sh: Likewise.
11849 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
11852 * ps/devps/afmtodit: Change calculation of asc_boundary and
11853 desc_boundary. Make these bounds inclusive.
11854 * ps/devps: Regenerate font files.
11856 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
11858 * macros/tmac.latin1: New file.
11859 * macros/tmac.tty-char: Use tmac.latin1.
11860 (tmac.tty-tr): Deleted.
11861 * macros/Makefile: Install tmac.latin1.
11862 * macros/tmac.dvi: Use tmac.latin1.
11863 * macros/troffrc: Translate \[char160] onto no-break space here.
11864 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
11866 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
11868 * macros/tmac.Xps: Use `do' request.
11870 * macros/tmac.ps: Use `do' request.
11872 * macros/tmac.e (@C): Use `do' request.
11874 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
11875 * macros/Makefile: Install tmac.X*.
11877 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
11878 * tty/Makefile: Don't install tmac.tty*.
11879 * macros/Makefile: Install tmac.tty*.
11881 * dvi/tmac.dvi: Move to macros.
11882 * dvi/Makefile: Don't install tmac.dvi.
11883 * macros/Makefile: Install tmac.dvi.
11885 * ps/tmac.ps*: Move to macros.
11886 * ps/Makefile: Don't install tmac.ps*.
11887 * macros/Makefile: Install tmac.ps*.
11889 * eqn/box.c: Provide draw_lines parameter corresponding to -D
11891 * macros/eqnrc: Set draw_lines parameter based on device.
11892 * groff.c: Don't pass -D flag to eqn.
11893 * groff.sh: Likewise.
11894 * eqn/main.c: Warn about use of -D.
11896 * troff/input.c (process_startup_file): New function.
11897 (main): Call process_startup_file().
11898 * macros/troffrc: New file.
11899 * macros/Makefile: Install troffrc.
11900 * groff.c (main): Don't pass extra -m option to troff. For a
11901 pseudo device pass the name of the pseudo device to troff using
11903 * groff.sh: Likewise.
11904 * groff.c (possible_command::prepend_arg): Deleted.
11906 * troff/input.c (do_request): New function.
11907 (init_input_requests): Bind "do" to do_request.
11909 * eqn/main.c (main): Instead of loading eqnchar from device directory,
11910 load eqnrc from macro directory.
11911 * macros/eqnrc: New file.
11912 * macros/Makefile: Install eqnrc.
11913 * ps/devps/eqnchar: Deleted.
11914 * ps/devps/Makefile: Don't install eqnchar.
11915 * dvi/devdvi/eqnchar: Deleted.
11916 * dvi/devdvi/Makefile: Don't install eqnchar.
11917 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
11920 * lib/device.[ch]: New files.
11921 * lib/font.h (font::set_device_name, font::get_device_name):
11923 * lib/fontfile.c: Use device.h.
11924 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
11925 * troff/input.c: Delete definition of `device'.
11926 (main): Don't initialize device.
11927 * troff/troff.h: Include device.h rather than declaring device.
11928 * troff/Makefile: No need to handle DEVICE.
11929 * driver/input.c: Include device.h. Don't use
11930 font::{set,get}_device_name.
11931 * groff.c, Makefile: Rename device.h to config.h.
11932 * groff.c: Use library device variable.
11933 * eqn/main.c: Use library device variable.
11934 * eqn/Makefile: No need to handle DEVICE.
11936 * lib/searchpath.[ch]: New files.
11937 * lib/Makefile: Handle searchpath.[ch].
11938 * troff/input.c (open_file, init_dirs): Deleted.
11939 (macro_dirs): Deleted.
11940 (open_mac_file, macro_source): Use class search_path.
11941 (add_string, struct string_list): Move definition.
11942 (main): Change -M option to use macro_path. Delete call to
11944 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
11945 Rewrite to use class search_path.
11946 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
11947 * lib/Makefile: fontfile.c depends on searchpath.h.
11948 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
11950 * lib/macropath.[ch]: New files.
11951 * troff/Makefile: No need to handle MACROPATH.
11953 * troff/input.c: Delete DUMP code.
11954 * lib/fontfile.c, lib/font.h: Delete
11955 font::forget_command_line_font_dirs.
11957 * troff/input.c (push_token): New function.
11958 (handle_first_page_transition): Use push_token().
11959 (process_input_stack): Change handling of a space at the beginning
11962 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
11964 * troff/input.c (font_dirs): Delete unused variable.
11966 * eqn/lex.c (do_set): Correct error messages.
11968 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
11970 * troff/input.c (do_define_string): Allow the string name to be
11971 followed immediately by a tab.
11972 (define_character): Likewise.
11974 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
11976 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
11979 * troff/input.c (input_iterator::is_file): New virtual function.
11980 (file_iterator::is_file): New function.
11981 (input_stack::end_file): New function.
11982 (input_stack::next_file): Handle the situation where there is no
11983 file on the input stack correctly. Avoid making two passes over
11985 (next_file): Make the filename optional; in this case call
11986 input_stack::end_file().
11988 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
11990 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
11991 produce a real _ charater when the current font is CW and _
11994 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
11995 expression to work around gcc 2.2 bug.
11997 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
11999 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12001 * troff/env.c (environment::add_padding): New function.
12002 (environment::add_char): Use add_padding().
12003 (environment::space): Likewise.
12004 (environment::wrap_up_field): Add some padding if there is none
12005 and there's no current tab.
12006 * troff/env.h: Declare environment::add_padding.
12008 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
12010 * pic/pic.y: undef fmod and rand before declaring them.
12012 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
12014 * troff/input.c (main): If the DESC file specifies a font name of
12015 0, then leave the corresponding font position empty.
12017 * nroff.sh: New file.
12018 * Makefile (install.nobin): Install nroff.sh.
12020 * tty/devlatin1/R.proto: Add ao as synonym for de.
12021 * tty/tmac.tty-char: Define ao as o.
12023 * tty/dev{ascii,latin1}/R.proto: Add aq.
12024 * tty/tmac.tty-char: Delete definition of aq.
12026 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
12028 * troff/input.c (init_charset_table): Don't translate 0240.
12029 * ps/tmac.ps: Translate char160 to space.
12030 * dvi/tmac.dvi: Likewise.
12031 * tty/tmac.tty: Likewise.
12033 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
12035 * dvi/tmac.dvi: Add support for all Latin-1 characters.
12037 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12038 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12041 * tty/tmac.tty-char: Add \(ah.
12043 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12044 No need to define \(FM and \(!/. Conditionalize all character
12047 * ps/devps/lgreekmap: Add +h, +f, +p.
12049 * ps/tmac.psnew: New file.
12050 * ps/Makefile: Install tmac.psnew.
12052 * troff/input.c (charinfo_to_node_list): Don't ever interpret
12053 character definitions in compatible mode.
12055 * troff/input.c (remove_character): New function.
12056 (init_input_requests): Bind remove_character to "rchar".
12058 * ps/tmac.psold: New file.
12059 * ps/Makefile: Install tmac.psold.
12060 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12061 characters into tmac.psold. Make these definitions unconditional.
12063 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12065 * ps/tmac.ps: Don't define \('c and \('C.
12067 * ps/devps/textmap: Move Greek characters to...
12068 * ps/devps/symbolchars:
12070 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
12072 * ps/devps/text.enc: Add quotesingle.
12073 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12074 * tty/tmac.tty-char: Likewise.
12075 * dvi/devdvi/texmi.map: Add +h, +f, +p.
12076 * dvi/devdvi/texi.map: Add Fn.
12077 * dvi/devdvi/msam.map: Add lz.
12078 * dvi/tmac.dvi: Handle Bq, bq, aq.
12080 * pic/lex.c (get_token): Recognize 'th.
12081 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12083 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
12085 * ps/devps/textmap: Move di, mu, +- to...
12086 * ps/devps/symbolchars:
12088 * macros/tmac.s (@XS): Don't call par@reset or fi.
12089 (XA): Call LP. Turn off adjustment. Reduce line length.
12091 * macros/tmac.s: Initially alias XS to LP.
12092 (XS): Rename to @XS.
12093 (cov*ab-init): Alias XS to @XS.
12095 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
12097 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12098 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12099 (token::is_size, token::changes_env): Deleted.
12100 * troff/number.c (parse_term): No need to process \s explicitly.
12101 Call tok.next() only after scale indicator has been processed.
12102 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12104 (token::next): Handle \s, \f, \S, \H immediately rather than
12105 returning them as tokens.
12106 (token::operator==, token::description, token::add_to_node_list,
12107 token::process): Remove handling of deleted tokens.
12109 * troff/env.c (environment::add_char): When adding padding
12110 indicator character, call start_line() if necessary.
12112 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
12114 * ps/devps/afmtodit: Don't output 0 kerns.
12116 * ps/devps/afmtodit: Remove directory from name of encoding in
12117 font description file.
12119 * ps/devps/afmtodit: Improve error messages.
12121 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12123 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12124 * ps/devps/FontMakefile: Deleted.
12125 * ps/devps/afmname: New file.
12127 * ps/devps/symbol.sed: New file.
12128 * ps/devps/symbol.diff: Deleted.
12129 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12130 Generate zapfdr.afm from zapfd.afm.
12132 * tty/tmac.tty (tty-char): Prefix definition with ".
12134 * macros/tmac.an (TP): Don't start a diversion if one has already
12137 * tty/tmac.tty-char: Add Latin-1 characters.
12139 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12141 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
12143 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12144 Move declaration of struct horizontal_span.
12146 * tbl/table.c (table::table): Initialize span_list.
12147 (table::~table): Delete span_list.
12149 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12151 * ps/devps/Makefile: Avoid dependency on GNU make.
12153 * ps/tmac.ps: Check that character does not already exist before
12156 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12157 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12158 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12161 * tty/tmac.tty-char: New file.
12162 * tty/Makefile: Install tmac.tty-char.
12163 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12166 * tty/tmac.tty: Fix definition of \(34.
12168 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12169 bracket-drawing characters onto |. Add *o.
12171 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12172 only if current_field.
12174 * troff/dictionary.c (dictionary::lookup): Free old_table after
12177 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
12179 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12180 whose glyphs are identical to glyphs of some Roman character.
12182 * tty/devlatin1/R.proto (bu): Deleted.
12183 * tty/devascii/R.proto (bu): Deleted.
12184 * tty/tmac.tty: Add definition of \(bu.
12186 * eqn/main.c (do_file): Pass FILE as argument.
12187 (main): Automatically load eqnchar. New options -F and -n.
12188 Pass do_file an opened FILE.
12189 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12190 No need to include font.h.
12191 * groff.sh: Likewise. Don't need to use - for standard input.
12192 Prefix files with -- if first file starts with -.
12194 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12196 * troff/env.c (environment::possibly_break_line): Don't set line
12197 to 0 across call to output_line(). Don't call output_line() until
12198 after discarding nodes after break.
12200 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
12202 * request.h (macro::empty): Declare it.
12203 * input.c (macro::empty): New method.
12204 (interpolate_macro): Don't give a WARN_SPACE if the two-character
12207 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
12209 * troff/env.c (environment::start_field): Decrement space_total
12210 when a space is frozen.
12212 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
12214 * macros/tmac.an (R): Delete macro.
12216 * troff/input.c (get_copy, token::next): Support \# (like \" but
12217 newline is ignored).
12219 * troff/input.c (token::next): Fix error message in 'Y' case.
12221 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
12223 * eqn/delim.c (define_extensible_string): Recognize any prefix of
12226 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
12228 * c++test.c: Include <osfcn.h>.
12230 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12233 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
12235 * tbl/table.c (table::divide_span): Don't count column separation
12236 if expand was specified.
12238 * tbl/main.c (process_format): Don't ignore width specs in
12239 continued format. Give warning for changing equal widths or
12240 column separation in continued format.
12241 (process_data): Set column separation, minimum width, equal
12242 columns at end of table.
12244 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
12246 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12247 node::add_discretionary_hyphen): Use soft_hyphen_char.
12248 (set_soft_hyphen_char): New function.
12249 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
12251 * Makefile (c++tested): Give more helpful message if test fails.
12253 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
12255 * troff/input.c (init_charset_table): Translate 0240 to
12256 an unbreakable space.
12258 * troff/token.h (token::hyphen_indicator): New function.
12259 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12261 * troff/input.c (translate): Allow translation to \%.
12262 * troff/node.c (node::add_char): Handle
12263 TRANSLATE_HYPHEN_INDICATOR.
12264 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12266 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12269 * tty/devlatin1/R.proto: \(hy and - should print as 055.
12271 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
12273 * groff.c (run_commands): If the last command gets a SIGPIPE send
12274 a SIGPIPE to all children than haven't yet terminated. When
12275 command terminates, set pid field to -1.
12277 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
12279 * groff.c (main): Pass an appropriate -filename option to gxditview.
12281 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
12283 * Makefile.bd (install): Remove existing program before copying.
12285 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12286 programs which have Unix counterparts to be installed with
12287 user-specified prefix.
12289 * troff/input.c (exit_troff): Don't check if exit_started.
12290 (exit_request): Don't call exit_troff if exit_started.
12292 * Makefile.bd (install.mm): Rename to install.dwbmm.
12294 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
12296 * driver/input.c (do_file): Add missing break for '#' case.
12298 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
12300 * troff/input.c (input_stack::clear): Clear past any boundaries and
12301 then add the boundaries back.
12303 * troff/input.c (exit_troff): Return immediately if already
12306 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
12308 (pg*end-page): If the text has ended and there are no more
12309 footnotes or keeps, exit.
12311 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12313 * troff/input.c (init_charset_table): Make \(rq transparent by
12316 * macros/tmac.an: Define lq and rq strings.
12318 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12320 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
12322 * troff/env.c (environment::final_break): New function.
12323 (environment::newline): Set prev_line_interrupted to 2 if
12325 * troff/env.h: Declare environment::final_break.
12326 * troff/input.c (exit_troff): Call environment::final_break()
12327 instead of environment::do_break().
12329 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12330 doesn't already exist.
12331 * macros/man.local: New file.
12332 * macros/tmac.an: Load man.local.
12333 * macros/man.ultrix: New file.
12335 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
12337 * troff/input.c (exit_groff): Rename to...
12338 (exit_troff): New function.
12340 * troff/div.c (exit_started, done_end_macro,
12341 seen_last_page_ejector): New global variables.
12342 (began_page_in_end_macro): New static variable.
12343 (exit_flag): Deleted.
12344 (top_level_diversion::top_level_diversion): Initialize
12346 (top_level_diversion): More elaborate test for whether
12347 cleanup_and_exit() should be called.
12348 Set began_page_in_end_macro if the end macro isn't yet finished.
12349 * troff/div.h (top_level_diversion::last_page_count): New data
12351 (top_level_diversion::set_last_page): New function.
12352 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12353 * troff/env.c (do_break): Zero prev_line_interrupted.
12354 * troff/input.c (exit_flag): Delete declaration.
12355 (LAST_PAGE_EJECTOR): New magic cookie.
12356 (token::next): Handle LAST_PAGE_EJECTOR.
12357 (exit_groff): Set exit_started and done_end_macro instead of
12358 exit_flag. Call top_level_diversion::set_last_page. Push a
12359 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
12360 another ejection after setting seen_last_page_ejector.
12362 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
12364 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12366 * macros/tmac.e (TH): Make sure there's room for the initial
12369 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12370 Set FVS in points rather than units.
12372 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
12374 * troff/div.c (top_level_diversion::add_trap): Don't consider the
12375 position of empty slots.
12377 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
12379 * ps/devps/S: Fix height and depth of parenrightex.
12380 * ps/devps/symbol.diff: Regenerate.
12382 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
12384 * tmac.e (u): Do underlining as in -mgs.
12386 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
12388 * tty/tty.c (tty_printer::end_page): If overstriking is
12389 suppressed, still turn overstruck horizontal and vertical lines
12392 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12395 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12397 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
12399 * Version 1.05 released.
12401 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
12403 * tty/tty.c: Instead of keeping an array of glyphs and then
12404 sorting it, keep a ordered linked list of glyphs for each line.
12406 * driver/driver.h: Include stddef.h.
12408 * tty/tty.c (compare_glyph):
12409 * refer/refer.c (rcompare):
12410 * troff/env.c (compare_ranges): Arguments of qsort comparison
12411 function should be const void *.
12413 * troff/number.c (parse_term):
12414 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12417 * refer/label.y (consider_authors): Don't access variables
12418 constructed under a condition outside that condition: put braces
12419 round for statement containing declaration; redeclare use of same
12422 * pic/pic.y (text_expr): Delete production that allows
12423 parenthesised text_expr.
12424 (expr): Allow a conditional_expr to appear in parentheses.
12425 (conditional_expr): Rename to any_expr.
12427 * mm: Install new version 1.01 from jh.
12429 * lib/font.c (font::get_width): Cache scaled widths.
12430 (font::font): Initialize widths_cache.
12431 (font::~font): Destroy widths_cache.
12432 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12434 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
12436 * c++test.c, c++test.ref: New files.
12437 * Makefile: Check that the C++ compiler works.
12439 * ps/tmac.pspic (PSPIC): Do a break.
12441 * ps/tmac.ps: Move definition of PSPIC into...
12442 * ps/tmac.pspic: New file.
12443 (PSPIC): Draw box around picture, but make it invisible to grops.
12444 * ps/tmac.ps: Load tmac.pspic.
12445 * ps/Makefile: Install tmac.pspic.
12447 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
12449 * lib/font.c (scale_round): If n is negative,
12450 subtract .5 before truncating floating point result.
12452 * lib/fontfile.c: Include <errno.h>.
12454 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
12456 * driver/input.c (get_char): Inline. Don't update current_lineno.
12457 Change callers to up date current_lineno if necessary.
12458 Use get_char() instead of getc(current_file).
12460 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
12462 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12464 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
12466 * tty/tty.c (tmac.tty): Define \(rg as (R).
12468 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
12470 * lib/lib.h: New define a_delete.
12471 * Use a_delete instead of delete when deleting an array of objects
12472 without destructors.
12474 * lib/lib.h: Rename adelete to ad_delete.
12475 * Change uses of adelete.
12477 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
12479 * eqn/eqn.y: Include lib.h.
12481 * troff/node.c (grow_font_table): Delete old_font_table.
12483 * mm: Install new version from jh.
12485 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
12487 * tbl/table.h (format_type): Make global instead of local to class
12488 entry_format. Prefix enumerators with FORMAT_.
12489 * tbl/table.c, tbl/main.c: Corresponding changes.
12490 * refer/token.h (token_type): Make global. Prefix enumerators
12492 * refer/token.[ch]: Corresponding changes.
12493 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12495 * troff/div.c (node::set_vertical_size): Don't name argument.
12497 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
12499 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12500 * lib/lib.h: Define adelete accordingly.
12501 * pic/object.c (graphic_object::graphic_object):
12502 * tbl/main.c (format::~format):
12503 * tbl/table.c (table::~table):
12504 * refer/ref.c (reference::~reference, reference::merge,
12505 reference::insert_field, reference::delete_field): Use adelete.
12507 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12509 * tbl/table.h: Corresponding changes.
12511 * common.c (common_output::dashed_arc, common_output::dotted_arc):
12512 Ensure total_angle is positive.
12514 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
12516 * refer/ref.c (reference::merge, reference::insert_field,
12517 reference::delete_field): Avoid delete[0].
12519 * refer/token.c (init_special_chars): Move calls to cmupper
12520 outside calls to init_two_char_letter to work around bug in gcc
12523 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
12525 * lib/new.c (operator new): Use __builtin_new for g++.
12527 * pic/object.c (graphic_object::~graphic_object): Don't use
12530 * pic/object.c (output::compute_scale): Initialize max_width and
12533 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
12535 * troff/input.c (write_request): Call fflush.
12537 * troff/node.h (class composite_node): Move declaration to node.c
12538 * troff/input.c (charinfo_to_node): Rename to ...
12539 (charinfo_to_node_list): Return node list rather than composite
12541 * troff/node.c (make_composite_node): New function.
12542 (make_node, add_char): Call make_composite_node instead of
12544 (class composite_node): Add a tfont * member. Delete font_size
12546 (composite_node::composite_node, composite_node::copy,
12547 composite_node::size): Corresponding changes.
12548 (composite_node::tprint): Provide constant spacing, emboldening
12549 and track kerning as specified in tfont.
12550 (composite_node::width): Change width calculation accordingly.
12551 * troff/env.h (environment::composite): New member.
12552 (environment::is_composite, environment::set_composite): New
12554 * troff/env.c (environment::environment): Initialize composite.
12555 * troff/input.c (charinfo_to_node): Call
12556 environment::set_composite.
12557 * troff/node.c (make_composite_node, make_glyph_node): Use the
12558 plain version of the tfont if the environment is composite.
12560 * troff/node.c (font_info::get_space_width): Additional argument
12561 giving space_size. Handle constant space correctly. Scale by
12562 space_size unless constant spaced.
12563 (env_sentence_space_width): New function.
12564 * troff/node.h: Declare it.
12565 * troff/env.h (environment::get_space_size,
12566 environment::get_sentence_space_size,
12567 environment::get_narrow_space_width,
12568 environment::get_half_narrow_space_width): Make inline.
12569 (environment::get_space_width): Make inline. Just call
12571 * troff/env.c: Delete definitions for funtions made inline.
12572 (environment::space_newline, environment::space): Use
12573 env_sentence_space_width(). Don't scale by space_size.
12574 * troff/node.h: Move declarations of env*space_width() functions
12577 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
12579 * macros/tmac.s (PS): Don't try to set negative indent.
12581 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
12583 * pic/pic.y: Fix min function.
12585 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
12587 * man/mdate.sh: Clear LANGUAGE.
12589 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
12591 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12592 * pic/lex.c: New COMMAND keyword.
12593 * pic/pic.y (print_args, print_arg): New rules.
12594 (placeless_element): Use print_args for PRINT.
12595 New COMMAND element.
12597 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
12599 * troff/input.c (terminal): Handle missing argument correctly.
12601 * pic/pic.y (text_expr): New rule.
12603 * pic/pic.y: Implement := operator.
12605 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
12607 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12610 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
12612 * ps/devps/dingbatsrmap: Include this in the distribution.
12614 * macros/tmac.doc: Replace with new version from 2nd Networking
12615 Release. Fix loading of doc-* files.
12616 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12617 * macros/tmac.doc.old: New file. Apply fixes that had been
12618 applied to old tmac.doc.
12619 * macros/tmac.andoc: Check that we're running under groff.
12620 * macros/Makefile: Rework.
12622 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
12624 * tbl/table.h (format_type):
12625 * refer/token.h (token_type): If NESTED_TYPES is defined, use
12626 typedef to make these types visible at file scope.
12627 * Makefile: Add NESTED_TYPES configuration option.
12629 * troff/div.c (mark): At the top level use the value of
12630 nl_reg_contents rather than the current vertical position.
12632 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
12634 * tty/tty.c: Implement \D for horizontal or vertical lines.
12635 (tty_printer::set_char): Use vec_used+2 as serial number.
12636 Don't allow size of vector to exceed USHRT_MAX-2.
12637 Split off part into...
12638 (tty_printer::add_char): New function.
12639 (tty_printer::draw): New function.
12640 (compare_glyph): Handle equal serial numbers.
12641 (tty_printer::end_page): Handle overstruck characters from \D.
12642 (main, usage): Implement -d option.
12644 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
12646 * tbl/main.c (process_format):
12647 * eqn/text.c (split_text):
12648 * troff/input.c (token::next): Use inner block for declarations
12649 with initializers in switch statement.
12651 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
12653 * pic/common.c (common_output::dash_line): Cope with zero-length
12656 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
12658 * Version 1.04 released.
12660 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
12662 * macros/tmac.an (TH): Define a macro an-init to define variables
12663 based on command line arguments.
12664 (an-header): Call it.
12666 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
12668 * Makefile (install.mm): Rename to install.dwbmm.
12670 * Makefile: Integrate mm.
12671 * mm: New directory.
12673 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
12675 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
12678 * pic/troff.c (troff_output::simple_spline,
12679 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
12680 shadowing parameter.
12682 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
12684 * lib/ptable.h: Add explicit casts when converting from unsigned
12687 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
12688 * dvi/devdvi/Makefile: Install SA, SB.
12690 * refer/indxbib.c: Add declaration of mktemp.
12692 * refer/lookbib.c: Add declaration of isatty.
12694 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
12696 * pic/lex.c (interpolate_macro_with_args): While collecting
12697 arguments, keep track of whether we're in a string.
12699 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
12701 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
12702 down with \v, so as to avoid problems with top of page trap
12703 setting no space mode.
12705 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
12707 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
12709 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
12711 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
12712 Improve error message.
12714 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
12716 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
12719 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
12721 * groff.c (possible_command::execp): Always use _exit() after a
12724 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
12725 NO_SYS_WAIT_H configuration options.
12726 * groff.c: Use these options. Use POSIX-style macros to extract
12727 fields from the status returned by wait().
12729 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
12731 * tbl/table.c (table::compute_separation_factor): Allow the
12732 separation factor to drop to 0.
12734 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
12736 * refer/search.c: Include <errno.h>.
12738 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
12740 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
12742 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
12745 * pic/lex.c (input_stack::bol): Move definition out of class body.
12747 * pic/main.c: On MSDOS munge argv[0].
12749 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
12751 * lib/ptable.c (hash_string): Use unsigned long rather than
12753 (next_ptable_size): Use unsigned rather than int. Give an error
12754 message if we've hit the largest table size.
12755 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
12758 * pic/object.h (object_spec): Make flags unsigned long. Declare
12759 flags as const unisgned long rather than as enums.
12761 * pic/output.c: Deleted.
12763 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
12765 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
12766 Add additional argument.
12767 (line_entry::note_double_vrule_on_{left,right}): Set value of
12768 douvle_vrule_on_{right,left} flag according to argument.
12769 (simple_line_entry::simple_print,
12770 simple_line_entry::double_line_print): If adjacent to double vrule
12771 on a corner extend rather than shorten the rule by half the double
12774 * troff/number.c (parse_term): In checking for overflow, handle the
12775 case where the current horizontal position is negative.
12777 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
12779 * pic/object.c (draw_arrow): Check for object having zero length.
12781 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
12783 * eqn/main.c (do_file): Split off inline equation handling into...
12784 (inline_equation): New function. Search for starting delimiter
12786 (delim_search): New function. Don't recognize a delimiter that
12787 occurs in the name of an escape sequence, number register, string
12790 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
12792 * eqn/delim.c (delim_box::compute_metrics): Don't call
12793 define_extensible_string if left is 0.
12794 (delim_box::output): Don't print the left delimiter if left is 0.
12795 (delim_box::debug_print): Check for left == 0 before calling printf.
12797 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
12799 * troff/Makefile (majorminor.c): Include only digits in
12802 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
12804 * refer/dirnamemax.c: new file.
12805 * refer/genlimits.c: Deleted.
12806 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
12807 Don't check path length.
12808 * refer/Makefile: Add dir_name_max.o; delete genlimits.
12809 * Makefile: Add PATHCONF_MISSING option.
12811 * refer/indxbib.c (get_cwd): New function.
12812 (main): Use get_cwd().
12813 * lib/getcwd.c: New file.
12814 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
12815 GETCWD in SUBFLAGS.
12816 * lib/Makefile: Compile getcwd.o.
12818 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
12821 * refer/indxbib.c (main): Check success of mktemp.
12823 * lib/tmpfile.c: New file.
12824 * lib/Makefile: Add tmpfile.c.
12825 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
12826 * ps/ps.h: Delete declaration of mktemp().
12827 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
12828 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
12829 * driver/driver.h: No need now to include errno.h.
12831 * everywhere: Set errno to 0 before calling fopen().
12833 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
12834 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
12835 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
12837 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
12839 * troff/env.h (translate_space_to_dummy): Declare it.
12840 * troff/env.c (environment::space_newline, environment::space):
12841 If translate_space_to_dummy is set then make the width of spaces 0.
12842 * troff/input.c (translate): If the second character of a
12843 translation is a space, translate to unbreakable space. If the
12844 first character is a space, set or clear translate_space_to_dummy
12845 according to whether the second character is \&. Weird!
12847 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
12849 * groff.c (run_commands): Don't use non-zero exit code because a
12850 command gets SIGPIPE.
12852 * groff.c, groff.sh: Use -mXps with -TXps.
12854 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
12855 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
12856 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
12857 (ps_printer::special): New specials invis and endinvis.
12858 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
12859 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
12860 (ps_printer::end_page): Check that invis_count == 0.
12861 (ps_printer::invis_count): New member.
12862 (ps_printer::ps_printer): Initialize invis_count to 0.
12864 * troff/env.c (environment::hyphenate_line): Hyphenation
12865 indicator at beginning of word inhibits splitting after -, \(em
12868 * pic/pic.y (element): Allow another element to follow } without
12869 any intervening separator.
12871 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
12873 * pic/lex.c (get_delimited): Allow tabs before delimiter.
12875 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
12877 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
12878 declaration of wait() in header files.
12879 * Makefile: Get rid of -DHAVE_UNION_WAIT.
12881 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
12883 * lib/lib.h: Declare return type of strerror as char *.
12885 * man/Makefile: Add g flag to sed substitutions.
12886 * Makefile (shgroff, bindist): Likewise.
12888 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
12890 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
12891 * ps/devps/prologue (PBEGIN): Define showpage after pushing
12894 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
12896 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
12899 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
12901 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
12904 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
12906 * troff/input.c (define_number_reg): If currently undefined,
12907 don't define it if the argument is an invalid expression.
12909 * Makefile: Ignore return value of `if' commands without `else'
12912 * Makefile: Split up CPPDEFINES into a series of separate
12913 configuration options.
12915 * troff/input.c (init_registers): Use time_t instead of long
12916 unless LONG_FOR_TIME_T is defined. Use returned result rather
12917 than passing pointer.
12918 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
12920 * lib/Makefile (fontpath.h): Use gendef.
12922 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
12924 * troff/input.c (input_iterator::shift): Delete argument name.
12925 * troff/node.c (suppress_output_file::really_begin_page,
12926 suppress_output_file::really_transparent_char, node::ascii_print,
12927 node::tprint): Delete names of unused arguments.
12929 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
12931 * refer/label.y (string): Pass $4 to command_error.
12933 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
12935 * Version 1.03 released.
12937 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
12939 * Makefile: Pass definition of SHELL in SUBFLAGS.
12941 * gendef: New file.
12942 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
12943 ps/Makefile: Use gendef to construct header files that are
12944 constructed from the Makefile.
12946 * macros/Makefile: make all should build stripped version of tmac.e.
12948 * refer/Makefile (clean): Remove y.output.
12950 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
12952 * ps/pfbtops.c (main): Add -v option which prints out a version
12954 * ps/Makefile (pfbtops): Link with libgroff.a.
12956 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
12958 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
12959 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
12961 * refer/lkbib.c (main): Always terminate reference with blank
12963 * refer/lookbib.c (main): Likewise.
12965 * refer/linear.c (file_buffer::load): Check that the file is not a
12968 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
12969 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
12970 Delete second inclusion of <sys/param.h>.
12972 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
12974 * troff/token.h (token::special): Deleted.
12976 * tbl/main.c (process_format): Rework so that opt->tab_char is
12977 recognized only when appropriate.
12979 * ps/Makefile (clean): Remove pfbtops.
12981 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
12983 * lib/font.c (text_file::next): Don't return if we have got a
12986 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
12988 * refer/refer.c (store_reference): Get hash code from old_table[i]
12989 when rehashing the table.
12991 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
12993 * eqn/box.c (box::top_level): Save size and prev size using \R and
12994 restore it afterwards. Set the size to the size at the beginning
12996 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
12997 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
12999 * refer/Makefile (limits.h): Use ./genlimits.
13001 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
13003 * refer/index.c: Delete declarations of stat() and fstat().
13005 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
13007 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13009 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
13011 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13013 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
13015 * troff/input.c (token::get_char): Handle \e.
13017 * refer/linear.c: Delete declarations of fstat() and stat().
13019 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
13021 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13022 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13024 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
13026 * troff/input.c (do_define_macro): Improve error handling for end
13027 of file while defining macro.
13029 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
13031 * eqn/box.h: Fix declaration of set_gsize.
13032 * eqn/box.c (set_gsize): Make argument const char *.
13033 (gsize): Declare as char *.
13034 * eqn/main.c (main): Don't convert gsize to int.
13035 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13037 * Version 1.02 released.
13039 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
13041 * macros/tmac.andoc: New file.
13042 * macros/Makefile: Install tmac.andoc.
13044 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13045 operator new and delete on OP_DELETE_BROKEN not being defined.
13046 * Makefile: Mention OP_DELETE_BROKEN.
13048 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
13050 * Makefile (bindist): Pass SUBFLAGS.
13052 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
13054 * Makefile, groff.c: Pass definitions to groff.c via device.h.
13056 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13059 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13061 * ps/ps.h, ps/psrm.c: Make comment_table and
13062 header_comment_table local to resource_manager::process_file.
13064 * groff.sh: With -TXps pass -printCommand option to gxditview.
13066 * groff.c (possible_command::print): Implement using
13067 append_arg_to_string.
13069 * xditview: Merge in new implementation with own ChangeLog.
13071 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
13073 * groff.c (main): Implement PRINT_OPTION.
13074 (append_arg_to_string): New command.
13075 (device_table): Set PRINT_OPTION flag for Xps.
13077 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
13079 * troff/groff.h: Rename to troff.h.
13081 * pic/lex.c (lookup_keyword, docmp): New functions.
13082 (get_token): Use new lookup_keyword.
13083 Don't include key.h.
13084 * pic/key.[ch], pic/pic.gperf: Deleted.
13085 * pic/Makefile: Remove gperf stuff.
13087 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13089 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13091 * troff/Makefile, troff/node.c: Move definition of
13092 STORE_WIDTH into node.c.
13094 * etc/grog.pl, etc/grog.sh: Support -mdoc.
13096 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
13098 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13099 dvi/devdvi/texb.map: Add lq and rq.
13100 dvi/devdvi: Regenerate fonts.
13101 * ps/devps/textmap: Add lq and rq.
13102 * ps/devps: Regenerate fonts.
13103 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13104 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13106 * pic/object.c (position_rectangle): When checking radius
13107 cope with possiblity that width or height is negative.
13108 (box_object::box_object): Have separate xrad and yrad with
13109 signs matching signs of dim components.
13110 (box_object::{north,south}_{east,west}): Use xrad and yrad.
13111 (box_object::print): With rounded boxes use absolute values
13112 for dim and rad arguments.
13114 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13117 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13119 * various files: Add explicit destructors to keep Saber CC +d
13122 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
13124 * eqn/box.c (box::top_level): Restore fonts correctly after
13125 font changes in line containing inline equation. Also
13126 restore previous font as well as current font.
13127 * eqn/pbox.h: Define necessary string and register names.
13129 * troff/input.c (token::next): Case 'R' calls do_register.
13130 (do_register): New function.
13132 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
13134 * groff.c, groff.sh: Support Xps device. Allow each device
13135 to have a pseudo_name and a real_name.
13137 * groff.c (run_commands): Don't print `Broken pipe' messages.
13139 * ps/pfbtops.c: New file.
13140 * ps/Makefile: Add pfbtops.
13142 * troff/number.c (parse_term): Improved error message.
13144 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
13146 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13148 * Makefile: Integrate refer.
13149 * refer: New directory.
13150 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13151 man/lkbib.man: New files.
13152 * man/Makefile: Support refer man pages.
13154 * lib/lib.h: Declare is_prime.
13155 * lib/prime.c: New file.
13157 * troff/input.c (macro_source): New function.
13158 (init_input_requests): Bind "mso" to macro_source.
13160 * troff/env.c (environment::possibly_break_line): Maintain
13161 pointer to pointer to node to be split in ndp so as to avoid
13162 using address of freed node.
13164 * troff/env.c (environment::hyphenate_line): Maintain pointer to
13165 pointer to first node to be hyphenated in startp so as to
13166 avoid using address of freed node.
13168 * troff/env.c (class trie, class hyphen_trie): Make the
13169 elements of the trie be of type char not unsigned char.
13170 Declare arguments to be const char* instead of unsigned char *.
13172 * troff/env.c (hyphenate): Initialize hbuf[0].
13174 * troff/input.c (set_string): Declare p to be char * and cast
13175 *p to unsigned char when necessary.
13177 * troff/input.c (do_define_macro): Declare s to be const
13178 char*. Cast element to unisgned char when necessary, Declare
13179 d to be an int. Handle EOF better.
13181 * troff/Makefile, troff/input.c: Different scheme for passing
13182 definitions of MACROPATH, HYPHENFILE and DEVICE.
13184 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
13186 * tty/devascii/R.proto: Delete entry for em.
13187 * tty/devlatin1/R.proto: Likewise.
13189 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
13191 * troff/input.c (translate): Stop when we get a space. Treat eof
13194 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13196 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
13198 * tbl/main.c (process_format): A font name following a `f'
13199 modifier that starts with a digit can be only one character long.
13200 Also deal with EOF on the second character of the font name.
13202 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
13204 * troff/input.c (token::next): Turn \~ into an
13205 unbreakable_space_node.
13206 * troff/node.c (unbreakable_space_node): New class.
13207 * troff/node.h: Declare it.
13209 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
13211 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
13212 it's >= 0, before outputting it as a single byte.
13214 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
13216 * lib/font.c: Make font_char_metric::code an int.
13217 (font::get_code): Change return type to int.
13218 (font::load): Allow code to be arbitrary integer.
13219 * lib/font.h (font::get_code): Change return type to int.
13220 (font::number_to_index): Change argument type to int.
13221 * troff/input.c (token::next): In case 'N', allow any value.
13222 Store value in token::val.
13223 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13224 (token::get_char, token::add_to_node_list, token::process): Get
13226 (charinfo::set_number): Change argument to int.
13227 (charinfo::get_number): Require that NUMBERED flag be set.
13228 (get_charinfo_by_number): Store numbered characters not between 0
13229 and 255 in a dictionary.
13230 * troff/charinfo.h (get_charinfo_by_number): Change argument type
13232 (charinfo::number): Change type to int.
13233 (charinfo::set_number): Change type of set_number to int.
13234 * troff/node.c (troff_output_file::put_char_width,
13235 troff_output_file::put_char): Test whether character is numbered
13236 using charinfo::numbered().
13237 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13239 * lib/nametoindex.c: New implementation to cope with arbitrary
13242 * troff/input.c (token::operator==): Test val for
13243 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13246 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13247 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
13249 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
13251 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
13254 * all Makefiles: rm targets of cp and >.
13256 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13259 * eqn/lex.c (def_table): Add dollar.
13261 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
13263 * troff/input.c (do_width): Push back newline before closing delim
13266 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
13268 * groff.c (possible_command::prepend_arg): New function.
13269 (main): Prepend device -m option.
13270 * groff.sh: Put device -m options before command-line options.
13272 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
13274 * macros/tmac.an (IP): Quote argument to TP.
13276 * ps/ps.c (main): New option -b, which sets...
13277 (broken_flags): New variable.
13278 (ps_printer::~ps_printer): Incorporate the setup section in the
13279 prolog if (broken_flags & NO_SETUP_SECTION).
13280 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13281 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13282 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13283 ps_printer::print_needed_font_comment,
13284 ps_printer::print_supplied_font_comment,
13285 ps_printer::print_include_font_comments,
13286 ps_printer::lookup_doc_font, ps_printer::download_fonts,
13287 ps_printer::read_download_file, read_document_fonts, add_font,
13288 skip_line, parse_fonts_arg, document_font::document_font,
13289 document_font::~document_font, document_font::download,
13290 ps_output::include_file): Deleted.
13291 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13292 rather than %!PS-Adobe-2.0. Make calls to
13293 resource_manager::need_font for each font that we used. Replace
13294 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13295 print_supplied_font_comment, print_needed_font_comment by call to
13296 resource_manager::print_header_comments. Output %%Orientation
13297 comment. Output %%Requirements: numcopies comment if ncopies > 1.
13298 Don't output the prolog directly. Instead call
13299 resource_manager::output_prolog. Only define #copies when ncopies
13300 > 1. Delete calls to print_include_font_comments and
13301 download_fonts. Add call to resource_manager::document_setup.
13302 (ps_printer::do_file): Call resource_manager::import_file instead
13303 of including it ourselves.
13304 (ps_printer::do_import): Likewise. Also don't call
13305 merge_import_fonts. Push userdict on the dictionary stack before
13306 and pop it afterwards.
13307 Move declaration of ps_output into ps.h.
13308 * ps/psrm.c: New file implementing resource_manager class.
13309 * ps/ps.h: New file declaring ps_output and resource_manager
13311 * ps/devps/zapfdr.ps:
13312 * ps/devps/symbolsl.ps:
13313 * ps/devps/prologue: Use 3.0 conventions.
13314 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13315 Add default definition of BROKEN_SPOOLER_FLAGS.
13316 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
13317 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13319 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
13321 * etc/grog.pl: New file.
13322 * Makefile (GROG): New variable.
13323 Add GROG to SUBFLAGS.
13324 * etc/Makefile (GROG): New variable.
13325 (install.nobin): Install $(GROG) rather than grog.sh.
13327 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
13329 * eqn/special.c (special_box::compute_metrics): Make the input and
13330 output strings the same. Get the new height and depth from the
13331 predefined height and depth registers. Also make subscript kern
13332 and skew available.
13333 (special_box::compute_subscript_kern, special_box::compute_skew):
13336 * eqn/box.c (pointer_box::compute_skew,
13337 simple_box::compute_metrics, box::top_level)
13338 * eqn/text.c (prime_box::compute_metrics,
13339 prime_box::comput_subscript_kern)
13340 * eqn/limit.c (limit_box::compute_metrics):
13341 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13342 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13343 negative numbers in `nr' requests with a leading 0.
13345 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
13347 * eqn/special.c: New file.
13348 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
13349 Add new rule for simple.
13350 * eqn/lex.c (token_table): Add SPECIAL.
13351 * eqn/box.h: Declare make_special_box.
13352 * eqn/Makefile: Add special.[co].
13354 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
13356 * ps/devps/prologue: Possibly set packing to true while defining.
13357 Create grops dictionary here. Initialize local variables before
13358 defining procedures.
13359 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13360 the dictionary stack. Set strokeadjust and overprint to false if
13361 the relevant operators are defined.
13362 (PEND): New procedure.
13363 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13364 prologue. Do everything else in the setup section.
13365 (ps_printer::do_import): Just call PBEGIN and PEND around the
13366 picture. Also push userdict before, and pop it afterwards.
13368 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
13370 * troff/node.c (bracket_node::tprint): Brackets were being printed
13373 * macros/tmac.an (SH, SS): Set fill mode.
13375 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
13377 * troff/div.c (top_level_diversion::begin_page): Set
13378 high_water_mark to 0.
13380 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
13382 * man/mdate.sh: New file.
13383 * man/mdate.c: Deleted.
13384 * man/Makefile: Use mdate.sh instead of mdate.
13387 * eqn/lex.c (do_gsize): Supply missing argument to error message.
13389 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
13391 * man/mdate.c: New file.
13392 * man/*.man: Replace modification date by @MDATE@.
13393 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13394 (mdate): New target.
13396 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13397 Remove illegal input characters.
13399 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
13401 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13403 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
13405 * troff/div.c (begin_page): Change behaviour when
13406 !first_page_begun and !break_flag.
13408 * troff/input.c (do_name_test): Return 0 if argument is empty.
13410 * troff/input.c (read_long_escape_name): Require closing ] to be
13411 at same input level as opening [.
13413 * troff/input.c (read_increment_and_escape_name): New function.
13414 (get_copy, process_input_stack): Use this for \n.
13416 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
13418 * troff/div.c (top_level_diversion::begin_page): Ignore the
13419 current value of page_number if !first_page_begun.
13421 * groff.c (main): Fix declaration of buf.
13423 * troff/input.c (do_name_test): New function.
13424 (token::next): Implement \A.
13425 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13426 (token::description, token::add_to_node_list, token::process):
13427 Handle TOKEN_ESCAPE.
13428 * troff/token.h: New token TOKEN_ESCAPE.
13430 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
13432 * pic/main.c (do_picture): Allow space before and after filename
13433 following `<'. Check that the filename is not empty.
13435 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
13437 * Version 1.01 released.
13439 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13441 * dvi/tmac.dvi: ftr HR to H.
13443 * macros/tmac.e: Round up computation of $r.
13445 * xditview/tmac.X: Don't give up completely in compatibility mode.
13446 Use \n(.s instead of \n[.s].
13448 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13449 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13450 Add u to factors inside \s[...]. Rename frac to dvi-frac.
13451 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13452 short names in the char definitions.
13454 * ps/tmac.ps: Don't give up completely in compatibility mode.
13455 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13456 quote in front of \n(.s. Add u to factors inside \s[...].
13458 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
13460 * tty/tmac.tty: Call the nroff request.
13462 * macros/tmac.e ((x, )x): Better definitions that work properly
13464 (@0, @1): Helper macros for (x.
13466 * macros/tmac.e ($s, hl): Use \l rather than \D.
13468 * tty/tmac.tty: Make it work better in compatibility mode.
13469 (pchar): Rename to tty-char.
13471 * macros/tmac.e (@E): New macro.
13472 (r, i, b, rb, bi): Use @E.
13474 * macros/tmac.e (@F): Don't use (;...) syntax.
13476 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
13477 it was modified for groff.
13479 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13481 * macros/tmac.e (<., .>): Removed.
13482 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13484 * macros/tmac.e: Remove check that groff is being used.
13486 * macros/tmac.e (@C): Change families only if using groff; turn
13487 compatibility mode off while changing familes. Save compatibility
13488 mode before changing families and restore it afterwards.
13490 * macros/tmac.e (@h): Remove test for offset + line length.
13492 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
13493 (lo, th, ac): Define to call @S instead of using als.
13495 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13496 the ratio of the vertical spacing to the point size in units
13497 expressed as a percentage. Use these instead of $10r and $10R,
13498 Delete $10r and $10R.
13500 * lib/font.c (font::load): In default computation of space_width,
13501 divide by sizescale. Use scale_round.
13503 * macros/tmac.an (TP): Don't call `nf'.
13504 (an-do-tag): Don't call `fi'.
13506 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
13508 * troff/input.c (process_input_stack): Handle the case where
13509 spaces at the beginning of an input line are followed by a
13512 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
13514 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13515 * groff.sh: Use pic -x with the dvi device.
13517 * dvi/devdvi/FontMakefile (H): Don't use -s.
13519 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13520 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13521 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13524 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
13526 * ps/psfig.diff: New file.
13527 * ps/tmac.psfig: New file.
13529 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
13531 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13532 (]-): Don't call ref*do-tl.
13534 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13536 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13537 (fn@do-FS): Rename to fn*do-FS.
13539 * troff/input.c (transparent_translate): New function.
13540 (process_input_stack): Apply transparent_translate before calling
13541 diversion::transparent_output(unsigned char).
13543 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
13545 * troff/input.c (do_define_macro): Define the macro before calling
13548 * xditview/Makefile: Add DEVICES variable. Change install target
13551 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
13553 * groff.c (run_commands): Handle the possibility that there are
13554 child processes other than those forked by us.
13556 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
13558 * lib/string.c (string::append): New function.
13559 * lib/stringclass.h: Declare it.
13561 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
13563 * eqn/main.c (main): New option -N which sets
13564 no_newline_in_delim_flag.
13565 (do_file): If no_newline_in_delim_flag is set don't allow newlines
13567 * groff.c (main): Pass -N on to eqn.
13568 (help, synopsis): Mention -N.
13569 * groff.sh: Implement -N.
13571 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
13573 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13574 (]-): Call ref*do-tl if ref*need-tl is non-zero.
13575 (XP): Allow as initializer.
13577 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
13579 * troff/env.c (environment::wrap_up_field): If field_spaces are
13580 non-zero and we have a current_tab, subtract padding from
13581 tab_distance. If this makes tab_distance <= 0, use the next tab
13582 stop instead. If there isn't any next tab or it's a left tab,
13583 wrap up the current tab.
13584 (environment::start_field): Initialize tab_precedes_field.
13585 (environment::wrap_up_tab): If there's a current field, update
13586 pre_field_width, field_distance and tab_precedes_field.
13587 * troff/env.h (environment::tab_precedes_field): New member.
13589 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
13591 * ps/ps.c (ps_printer::do_file): New function.
13592 (ps_printer::special): Bind to `file' special.
13593 (ps_printer::do_exec): Set ndefined_styles to 0.
13595 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
13597 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13598 Avoid stripping first character from the start of unrecognized
13599 escapes. Use lex_error instead of error to report errors.
13600 * eqn/lex.c (get_token): Rework handling of escapes.
13601 (lex_error): Move declaration into...
13604 * xditview/xditview.c (main): Make -page option work.
13606 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13608 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
13610 * macros/tmac.s (B2): Correct size of box.
13612 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
13614 * macros/tmac.s (B2): Postpone drawing the box until in the
13615 top-level diversion.
13617 * tty/tmac.tty: Add font translations for C, CR, CW.
13619 * groff.c (synopsis, help): Document -i.
13620 * groff.sh: Implement -i.
13622 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13623 Simplify the construction of SN.
13625 * troff/number.c (parse_term): Give `|' a higher precedence.
13626 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13629 * macros/tmac.s (B2): Use par@finish instead of par@reset.
13631 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
13633 * lib/string.c (string::move): New function.
13634 * lib/stringclass.h: Declare it.
13636 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
13638 * troff/env.c (distribute_space): Add optional argument
13640 (environment::wrap_up_field): Call distribute_space with
13641 `force_forward' argument of 1.
13643 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
13645 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13646 Inline it. Move reallocation into...
13647 (string::grow1): New function.
13648 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13649 dependencies to include library header files.
13650 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13652 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
13654 * macros/tmac.s (@NH): Use the same number registers than -ms does
13655 for the heading level counters. Use the same string that -ms does
13656 for the number for this heading.
13658 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
13660 * lib/new.c (operator new): Cast result of malloc to char *.
13662 * troff/input.c (spring_trap, lookup_request): Add assert that nm
13665 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
13667 * groff.c (main): Support -i.
13669 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
13671 * pic/pic.h: Include <osfcn.h>.
13673 * ps/ps.c: Add declaration of mktemp.
13675 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
13676 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
13677 argument as union wait *.
13678 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
13679 argument to union wait *.
13681 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
13683 * tty/tmac.tty: Add definition of \(co.
13685 * pic/object.c (make_arc): Only increase radius when radius
13686 strictly less than d.
13687 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
13690 * troff/env.c (environment::environment(symbol),
13691 environment::environment(const environment *)): Initialize
13694 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
13696 * tbl/main.c (main): Add exit(0).
13698 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
13700 * pic/main.c (main):
13701 * eqn/main.c (main):
13702 * tbl/main.c (main):
13703 * etc/soelim.c (main):
13704 * driver/printer.c (printer::~printer):
13705 * troff/node.c (real_output_file::~real_output_file,
13706 real_output_file::flush): Check for errors on stdout.
13708 * most files: Add 1991 to copyright notice.
13710 * macros/tmac.s: Don't test \n(.x and \n(.y.
13712 * troff/input.c (token::next): Rename `escape_char' label to
13713 `handle_escape_char' and `normal_char' label to
13714 `handle_normal_char'.
13716 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
13718 * groff.c (main, synopsis, help): Support -a option.
13719 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
13720 to trflags while parsing options.
13722 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
13724 * troff/number.c (parse_term): With `m', `M' and `n' scale
13725 indicators, convert scale factor to hunits before scaling.
13727 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
13729 * lib/font.c (scale_round): Better test for overflow when n is
13732 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
13734 * tbl/main.c (process_format): Add second argument of type
13735 options*. Change callers. Allow opt->tab_char as well as '\t'
13736 between format items.
13738 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
13740 * macros/tmac.an (PD): With no arguments, make sure register PD is
13742 (TH): Call PD with no argument, instead of setting register PD
13745 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
13747 * Version 1.00 released.
13749 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
13751 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
13753 * dvi/devdvi/DESC: Mount CW instead of CR.
13755 * dvi/tmac.dvi: Add definition of \(tm.
13757 * dvi/devdvi/texsy.map: Add lh, and rh.
13758 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
13759 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
13761 * dvi/devdvi/FontMakefile: Generate H from cmss10.
13762 * dvi/devdvi/Makefile: Install H.
13763 * dvi/devdvi/H: New file.
13765 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
13767 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
13770 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
13772 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
13774 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
13776 * macros/tmac.s (@EN): Handle the case where the equation is empty
13777 but the label is not.
13779 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
13781 * troff/groff.h: New warning category WARN_SPACE.
13782 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
13783 WARN_SPACE to warning_table.
13784 (interpolate_macro): Give a warning of type WARN_SPACE if the name
13785 is longer than two characters and is not defined, but the first
13786 two characters do make a defined name.
13788 * PROBLEMS: New file.
13790 * CHANGES: New file.
13791 * README-0.6, README-1.00: Deleted.
13793 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
13794 * xditview/devX75/Makefile: Make devX75-12.
13795 * xditview/devX100/Makefile: Make devX100-12.
13797 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
13798 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
13800 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
13802 * README-0.7: Rename to README-1.00.
13804 * macros/tmac.pic: New file.
13805 * macros/Makefile (install.nobin): Install tmac.pic.
13807 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
13809 * troff/env.c (hyphen_word): Correct the test for whether the
13810 token is a hyphen. Reset npos to 0.
13812 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
13814 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
13816 * macros/tmac.s (ds*common-end): Call par*reset.
13818 (par@reset-indent): Deleted.
13820 * macros/tmac.s (@IP): Divert the label.
13822 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
13824 * xditview/draw.c (setGC): Use a line width of .1m rather than
13825 .04m by default; round rather than truncate value.
13827 * tbl/table.c (class empty_entry): New class.
13828 (empty_entry::empty_entry, empty_entry::line_type): New functions.
13829 (table::add_entry): Represent empty entries by objects of type
13831 (table_entry::line_type): Return -1.
13832 (table::determine_row_type): Ignore entries with line_type 0.
13833 Treat type -1 as non-lines.
13835 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
13837 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
13838 macros/tmac.s: Rename \(-d to \(Sd.
13840 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
13842 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
13843 * xditview/libXdvi/DviChar.c: Likewise.
13844 * dvi/devdvi/texsy.map: Add `<<', `>>'.
13846 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
13848 * troff/div.c (top_level_diversion::begin_page): Call
13849 init_output() if the_output is 0.
13851 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
13853 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
13855 (get_copy): Turn \E into ESCAPE_E.
13856 (token::process, asciify): Handle ESCAPE_E.
13858 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
13860 (DS): Implement `.DS R'.
13862 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
13864 * macros/tmac.s (FS): New macro.
13866 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
13868 * macros/tmac.s (cov*tl-init): Remove after first execution
13869 instead of aliasing to @nop. Call top of page macro explicitly
13870 instead of setting trap; call @init first. Set pg@top as top of
13872 (cov*auto-init): Deleted. Set cov*tl-init instead of
13873 cov*auto-init as top of page trap.
13874 (TL, LP): Do a break instead of calling cov*tl-init.
13875 (cov*print): With RP format but no TL, alias FS and FE to @FS and
13876 @FE; in this case also give a warning and always start another
13877 page. No need to set pg@top here.
13878 (cov*tl-init): Rename to cov*first-page-init.
13880 * macros/tmac.s (RP): Do `.pn 0'.
13881 (cov*tl-init): With RP format don't do `.pn 0'.
13883 * macros/tmac.s (pg@cs-top): Set no space mode.
13885 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
13886 (cov*ab-init): Alias TL, AU and AI to these.
13888 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
13890 * macros/tmac.s (@EQ): Move the space before the equation into @EN
13891 (@EN): Do nothing unless \n[dl] is > 0.
13893 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
13895 * pic/object.c (ellipse_object::radius): New function.
13897 * VERSION: Change version to 0.7.
13899 * tbl/table.c (block_entry::do_divert): Declare return type as
13901 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
13903 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
13905 * troff/column.c: New file.
13906 * troff/Makefile: Corresponding changes.
13908 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
13911 * troff/div.c (top_level_diversion::space): If the space causes
13912 the first-page transition and springs a trap, truncate the space
13915 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
13917 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
13920 * pic/troff.c (troff_output::line_thickness,
13921 troff_output::set_fill): Do a horizontal motion to compensate for
13922 the width of the \D escape sequence.
13924 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
13926 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
13929 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
13932 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
13933 Supply empty definition.
13934 (text_entry::simple_print, simple_text_entry::simple_print):
13935 Delete declarations.
13936 (table::add_entry): Represent empty entries by objects of type
13939 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
13941 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
13943 * tbl/table.c (left_text_entry::add_tab): New function.
13945 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
13946 initialize like LP.
13948 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
13950 * troff/env.c (environment::start_field): Give an error message if
13951 there is no next tab.
13953 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
13955 * troff/env.c (hyphenate): Skip initial elements with zero
13958 * macros/tmac.s (par@init): Keep VS in points rather than units.
13960 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
13962 * pic/main.c (main): Implement `-c' option.
13963 * pic/output.h: Declare make_tpic_output().
13964 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
13966 (tpic_output): New class.
13967 (tpic_output::tpic_output, tpic_output::set_pen_size,
13968 tpic_output::command, make_tpic_output): New functions.
13970 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
13972 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
13973 if they're not already defined.
13974 * tbl/table.c (init_output): Don't test \n(.g.
13976 * troff/input.c (do_if_request): Delete `g' condition. Recognize
13977 `d', `r' and `c' conditions even in compatibility mode.
13979 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
13981 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
13984 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
13986 * troff/env.h (environment::prev_line_interrupted): New member.
13987 (environment::get_prev_line_interrupted): New function.
13988 * troff/env.c (environment::newline): Set prev_line_interrupted.
13989 (environment::environment(const environment *),
13990 environment::environment(symbol)): Initialize
13991 prev_line_interrupted.
13992 * troff/input.c (process_input_stack): Don't give special
13993 treatment to space and newline at the beginning of the line if the
13994 previous line was interrupted.
13996 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
13998 * eqn/eqn.y: Disallow PRIME by itself.
13999 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14001 (def_table): Remove definition of '. Define prime to be `.
14003 * eqn/eqn.y: Split off part of rule `script' into a new rule
14006 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
14008 * macros/tmac.s ({, }): New string aliases.
14010 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
14012 * README-0.7: New file.
14014 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
14016 * macros/tmac.s: New file.
14017 * man/groff_ms.man: New file.
14018 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14019 * Makefile.bd: Similarily.
14020 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14021 definition of TMAC_S.
14022 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14023 * macros/TODO: New file.
14025 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
14027 * troff/env.c (right_justify): New function.
14028 (init_env_requests): Bind this to request "rj".
14029 (center_lines): Set right_justify_lines to 0. If we get a bad
14030 integer, center 1 line.
14031 (environment::environment(symbol), environment::environment(const
14032 environment *)): Initialize right_justify_lines.
14033 (environment::get_right_justify_lines): New function.
14034 (init_env_requests): Bind this to number_register ".rj".
14036 * troff/env.c (environment::choose_breakpoint): Implement
14037 hyphenation_margin and hyphenation_space.
14038 (environment::get_hyphenation_space,
14039 environment::get_hyphenation_margin): New functions.
14040 (init_env_requests): Bind these to .hys and .hym.
14041 (hyphenation_space_request, hyphenation_margin_request): New
14043 (init_env_requests): Bind these to hys and hym.
14044 (environment::environment(symbol), environment::environment(const
14045 environment *)): Initialize hyphenation_margin and
14047 * troff/env.h: Corresponding changes to class environment.
14049 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
14051 * troff/div.c (blank_line): Always do a break.
14053 * eqn/box.c (do_text): Turn off escapes while appending text to
14056 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
14058 * troff/input.c (while_break_request, while_continue_request): New
14060 (init_input_requests): Bind these to "break" and "continue".
14061 (while_depth, while_break_flag): New variables.
14062 (while_request): Update while_depth. Break out of loop if
14063 while_break_flag is set.
14065 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
14067 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14070 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
14072 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
14074 * stringify: New file.
14075 * Makefile (groff.o): Use stringify.
14077 * xditview/tmac.X: Remove definition of \(rn.
14078 * xditview/libXdvi/DviChar.c: Remove radicalex from
14081 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
14083 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14084 (alphabetic_block_entry::alphabetic_block_entry,
14085 alphabetic_block_entry::divert, alphabetic_block_entry::print):
14087 (block_entry::divert): Split off body into ...
14088 (block_entry::do_divert): If the block is alphabetic, subtract 2n
14089 from the line length; also update the span width to dl+2n, and the
14090 alphabetic span width to dl.
14092 * driver/input.c (do_file): While reading argument to D command,
14093 when expanding buffer, multiply szp by sizeof(int) rather than 2
14094 in the argument to memcpy.
14096 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14097 width of alphabetic columns.
14099 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
14101 * troff/node.c (lookup_family): Supply second argument to lookup.
14103 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14104 search, return immediately if v is 0.
14106 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14107 (troff_output::start_picture): Set this reg.
14108 (troff_output::end_picture): Remove this reg
14109 * eqn/box.c (box::extra_space): Don't produce `\x's if
14110 EQN_NO_EXTRA_SPACE_REG is defined.
14112 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14113 * eqn/text.c (split_text): Map ' to \(fm when it's the first
14116 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
14118 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14121 * troff/div.c (top_level_diversion::top_level_diversion):
14122 Initialize page_number to 0.
14124 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
14126 * groff/troff (environment::environment(const environment *)):
14127 Initialize name to e->name, rather than "anonymous".
14129 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
14131 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14132 requested_page. Split middle part into ...
14133 (FindPage): New function.
14134 (SetValues): If we don't yet know the last page, and the requested
14135 page is greater than the current page, call FindPage.
14136 Update the font_map_string before doing this.
14138 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14139 Translate \(lh and \(rh into left and right double arrows.
14141 * troff/node.c (class hyphen_inhibitor_node): New class.
14142 (hyphen_inhibitor_node::hyphen_inhibitor_node,
14143 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14144 hyphen_inhibitor_node::type,
14145 hyphen_inhibitor_node::get_hyphenation_type): New functions.
14146 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14147 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14150 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
14152 * troff/node.h (dummy_node::get_hyphenation_type,
14153 transparent_dummy_node::get_hyphenation_type): Declare them.
14154 * troff/node.c: (dummy_node::get_hyphenation_type,
14155 transparent_dummy_node::get_hyphenation_type): New functions.
14157 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
14159 * xditview/libXdvi/draw.c: If M_PI not defined after including
14160 math.h, then define it.
14162 * xditview/Makefile: Add definition of AR. Pass it to the submake
14164 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14166 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
14168 * troff/dictionary.h (object_dictionary::alias): Declare return
14170 * troff/dictionary.c (object_dictionary::alias): Return non-zero
14171 if the old name was defined.
14172 * troff/input.c (alias_macro): Give a warning if the old name was
14174 * troff/reg.c (alias_reg): Likewise.
14176 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
14178 * troff/input.c (token::next): Delete implementation of \R.
14180 * macros/Makefile: Strip comments from tmac.e while installing it.
14182 * troff/input.c: New variable `nroff_mode'.
14183 (troff_request, nroff_request): New functions.
14184 (init_input_requests): Bind `troff' and `nroff' to troff_request
14186 (do_if_request): Compute results of t and n conditions from
14189 * text/text.c (split_text): Fix typo in >=.
14191 * eqn/lex.c: Add definition of `==' to def_table.
14193 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
14195 * pic/tex.c (tex_output::start_picture): Change the definitions of
14196 \graph and \graphtemp so that they work properly with Plain TeX.
14198 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14199 argument to `ar' is not less than the first.
14201 * pic/pic.y: Allow a comma between elements of the variable list
14202 in the argument to `reset'.
14204 * pic/object.c (arc_object::arc_object): Fix computation of
14207 * eqn/main.c (main): Add exit(0).
14209 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
14211 * troff/div.c (begin_page): Test no_space_mode after doing the
14212 break, but still push the page ejector cookie before doing the
14213 break. Also set the next page number after doing the break.
14215 * xditview/xditview.c (NewFile): Don't set the title and icon name
14216 if this is the first file and its name is `-'.
14217 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
14218 the X75 and X100 devices.
14219 (main): If a device has the XT_OPTION flag set and there's exactly
14220 one file argument, pass the driver -xrm and -title options to set
14221 the icon name and window title to the name of the file.
14223 * troff/env.c (environment_switch): If there was an argument but
14224 it wasn't a valid number or name, then pop an environment but
14225 don't give an error message on underflow.
14227 * troff/number.c (start_number): Correct spelling in error message.
14229 * troff/input.c (token::delimiter): Don't print an error message
14232 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14233 ParseDrawFunction if dw->display_enable is true.
14235 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
14237 * pic/pic.y: Parse text positioning like normal attributes, so as
14238 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
14239 positioning attribute.
14241 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
14243 * tbl/main.c (process_data): When in state START while reading a
14244 text block, don't change to state MIDDLE if c is a newline.
14246 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
14248 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14249 so as to avoid shadowing parameter.
14251 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
14253 * tbl/table.c (trim_space): Deleted.
14254 (table::add_entry): Don't call trim_space.
14256 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
14258 * VERSION: Change version to 0.6.
14260 * troff/number.c (parse_expr): Make == work.
14262 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
14264 * man/grog.man: New file.
14265 * man/Makefile: Add grog.n to MAN1PAGES.
14266 * etc/grog.sh: New file.
14267 * etc/Makefile: Install grog.sh as grog.
14269 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
14271 * troff/input.c (token::next): Implement \E.
14273 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
14275 * xditview/tmac.X: Change font translations to match tmac.ps.
14277 * troff/input.c (non_empty_name_warning): Don't give a warning if
14278 `\{' terminates the name.
14280 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
14282 * ps/devps/symbol.diff: New file.
14283 * ps/devps/FontMakefile: Mention symbol.diff.
14285 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
14287 * troff/node.c (font_position): Use get_long_name to read the
14290 * troff/env.c (environment_switch): If we get a number that's < 0
14291 or >= NENVIRONMENTS, treat it like a name.
14292 Change NENVIRONMENTS to 10.
14294 * troff/groff.h: Remove definition of FONTS_MAX.
14295 * troff/node.h (class font_family): Make map a pointer instead of
14296 an array. Add a map_size member. Make it a class. Make nm const
14297 and public. Make invalidate_fontno a friend.
14298 * troff/node.c: Define font_table_size. Make font_info a pointer
14299 rather than an array.
14300 (class troff_output_file): Allocate font_position dynamically. Add
14301 nfont_positions member.
14302 (troff_output_file::set_font): Grow font_position if necessary.
14303 (troff_output_file::~troff_output_file): Delete font_position.
14304 (troff_output_file::troff_output_file): Allocate font_position.
14305 (grow_font_table): New function.
14306 (troff_output_file::really_begin_page,
14307 troff_output_file:really_copy_page): Use nfont_positions rather
14309 (mount_font_no_translate, mount_style): Call grow_font_table if
14311 (font_family::font_family): Allocate map.
14312 (font_family::make_definite): Grow map if necessary. Use
14313 font_table_size instead of FONTS_MAX.
14314 (font_family::~font_family): New function.
14315 (invalidate_fontno): Use font_family::map_size.
14316 (get_fontno, env_space_width, env_half_narrow_space_width,
14317 env_narrow_space_width, symbol_fotno, is_good_fontno,
14318 get_bold_fontno, make_glyph_node): Use font_table_size rather than
14320 (next_available_font_position): Never return 0.
14322 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
14324 * ps/tmac.ps: Add font translations for compatibility with dpost.
14326 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
14328 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14329 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14330 Move definitions baseline_sep, shift_down, column_sep,
14331 matrix_side_sep into...
14332 * eqn/box.c: Add them to param_table.
14333 * eqn/pbox.h: Add declarations to pbox.h.
14335 * troff/input.c (set_string): Cast value to unsigned char *.
14337 * troff/token.h (process_input_stack): Declare it static before
14338 declaring it a friend.
14340 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
14342 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14344 * dvi/devdvi/EX: Regenerate.
14346 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14349 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
14351 * eqn/lex.c: In defaults_table, make definition of `dot' call
14352 `dot_def'. Don't explicitly make it roman. Similarily for other
14355 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14357 (for_input::get, for_input::peek): Use this.
14358 (do_for): Add by_is_multiplicative argument.
14359 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14360 Change semantic value of optional_by to be a double plus a flag
14361 saying whethet the by clause is multiplicative.
14363 * eqn/lex.c (get_delimited_text): Remember location of start of
14364 definition. Improve error handling when EOF is encountered.
14366 * lib/font.h: Rename handle_x_command to
14367 handle_unknown_font_command.
14368 * lib/font.c (font::load): Call handle_unknown_font_command for
14369 any unknown command in the font description file. Don't call
14370 handle_x_command. Include the name of the command in the argv.
14371 Improve message for unknown command after kernpairs or charset
14373 * ps/ps.c (ps_font::handle_x_command): Rename to
14374 handle_unknown_font_command. Remove message about `x download'
14375 command. Give error message for wrong number of arguments.
14376 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14377 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14378 handle_unknown_font_command. Give an error message for wrong
14379 number of arguments. Rename design_size to designsize.
14380 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14381 checksum', `designsize' instead of `design_size'.
14383 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
14385 * eqn/*.[chy]: Change underaccent to uaccent.
14387 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
14388 give it the same precedence as ACCENT.
14389 * eqn/other.c (make_underaccent_box): New function.
14390 * eqn/box.h: Declare it.
14391 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14394 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
14396 * pic/pic.y (reset_all): New function. Called in rule for RESET.
14397 (parse_init): Call reset_all.
14398 (define_variable): When defining scale reset only those
14399 pre-defined variables that are scaled.
14400 (defaults_table): Add `scale' as non-scaled value.
14402 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14403 together with the text; allow any number of positioning words;
14404 allow center as a positioning word.
14406 * pic/object.c (output::compute_scale): Get picture maximum height
14407 and width from variables called maxpswid and maxpsht.
14408 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14410 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
14412 * pic/object.c (object_spec::make_text): Multiply textht by number
14415 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14417 (do_sprintf): New function.
14418 (pic.gperf): Add sprintf token.
14419 (text, sprintf): New rules.
14421 * pic/pic.y: `rand()' with no arguments returns a random number
14422 in the range [0,1).
14424 * pic/pic.y: Allow a bare expression to be an attribute: change
14425 precedences to support this. Change optional_ordinal rule to
14426 optional_ordinal_last to avoid reduce/reduce conflict.
14427 * pic/object.c (object_spec::object_spec): Initialize direction.
14429 * pic/pic.y: Implement ^ operator meaning exponentiation.
14431 * troff/node.h: Add default argument to mount_font.
14432 * troff/node.c (font_position): Read an optional third argument
14433 giving the external_name.
14434 (mount_font): Add optional argument giving the external_name.
14435 (mount_font_not_translate): Have additional argument giving
14436 external name. Use this name to load the font. Pass both names
14437 to font_info::font_info.
14438 (font_info::font_info): Have additional argument giving
14440 (class tfont): New member external_name.
14441 (font_info::get_tfont): Use external name to construct tfont_spec.
14443 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
14445 * eqn/lex.c (init_table): Add argument giving device. Define
14446 name of device to be "1".
14447 (do_ifdef): Counts as true if the argument has been defined with
14449 * eqn/main.c (main): Call init_table with device argument. Make
14450 device local to main.
14451 * eqn/eqn.h: Change declaration of init_table. Remove declaration
14454 * pic/lex.c (get_delimited): Allow text to be delimited by
14455 matching {}s. Don't recognize ending delimiter within a string.
14457 * troff/input.c (get_delim_name): New function.
14458 (token::next): Implement \C.
14460 * lib/font.c (font::load): Grok ---. Add an alias for each
14461 character based on its code.
14462 (font::get_code_width): Deleted.
14463 * lib/font.h (class font): Declare font::number_to_index().
14464 Remove declaration of font::get_code_width.
14465 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14466 to indices of named characters.
14467 (font::number_to_index): New function.
14468 * troff/input.c (font::number_to_index): New function.
14469 (get_charinfo_by_number, charinfo::get_number,
14470 charinfo::set_number): New functions.
14471 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14472 (token::process, token::description, token::get_char,
14473 token::add_to_node_list, token::operator==): Handle
14474 TOKEN_NUMBERED_CHAR.
14475 * troff/charinfo.h: Declare get_charinfo_by_number,
14476 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
14478 (charinfo::numbered): New function.
14479 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14480 * troff/env.h (class environment): Remove declaration of ...
14481 * troff/env.c (environment::make_numbered_char_node): Deleted.
14482 * troff/node.c (make_numbered_node): Deleted.
14483 (class numbered_glyph_node): Remove.
14484 (troff_output_file::put_char_width, troff_output_file::put_char):
14485 Handle numbered chars.
14486 (troff_output_file::numbered_char): Removed.
14487 (tfont::get_code_width): Removed.
14488 (make_glyph_node): Don't search special fonts for numbered
14490 * troff/node.h: Remove declaration of make_numbered_node.
14491 * driver/input.c (do_file): Handle N command.
14492 * driver/printer.h: Add declaration of ...
14493 * driver/printer.c (printer::set_numbered_char): New function.
14494 * dvi/tfmtodit.c (main): Generate unnamed entries.
14495 * ps/devps/afmtodit: Likewise.
14496 * xditview/xtotroff.c (MapFont): Likewise.
14497 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14499 * tbl/main.c (process_format): If multiple widths are specified
14500 for a column but all the widths are the same, don't give an error
14503 * tbl/table.c (table::do_row): If the current row is all lines and
14504 the stuff doesn't contains a line, mark the top of the row after
14505 printing stuff before the row. If the current row is not all
14506 lines and the stuff doesn't contain a line, don't unnecessarily
14507 mark the top of the row before printing the stuff.
14509 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
14511 * troff/groff.h: Remove MAX_PATH.
14512 * troff/input.c (open_file): Dynamically allocate space for the
14514 (open_mac_file, process_macro_file): Corresponding changes.
14516 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
14518 * troff/node.h (class output_file): Make copy_file pure. Add
14519 vspace method ifdef COLUMN. Add is_printing method.
14520 * troff/node.c: Add class printing_reg. Add class
14521 real_output_file. Derive other output_file classes from
14522 real_output_file; in these classes rename begin_page to
14523 really_begin_page, print_line to really_print_line, copy_file to
14524 really_copy_file, transparent_char to really_transparent_char.
14525 Move output_file::flush to real_output_file. Add printing member
14526 to class output_file.
14527 * troff/div.h: Remove printing member from top_level_diversion.
14528 Add vspace member function to class diversion ifdef COLUMN. Add
14529 some declarations ifdef COLUMN.
14530 * troff/div.c (top_level_diversion::copy_file,
14531 top_level_diversion::transparent_output,
14532 top_level_diversion::output): Don't test printing member before
14534 * troff/input.c: Handle initial variable_space_request ifdef
14536 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14537 but comment it out.
14539 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
14541 * troff/div.c (diversion::need): Make any space forced. If we
14542 sprung a trap, set truncated_space to minus the distance to the
14543 trap and set needed_space to the amount that was needed.
14544 (top_level_diversion::space): A forced space turns no_space_mode
14546 (class constant_vunits_reg): New class.
14547 (init_div_requests): Implement number registers .trunc and .ne
14548 using constant_vunits_reg.
14549 (class truncated_space_reg): Deleted.
14551 * troff/div.h: Don't have a no_space_mode member in diversion.
14552 Instead have it in top_level_diversion.
14553 * troff/div.c (diversion::diversion): Don't initialize
14555 (top_level_diversion::top_level_diversion): Initialize
14557 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14558 (macro_diversion::output): Don't clear no_space_mode.
14560 * troff/input.c (diverted_space_node::reread): Don't call
14561 environment::do_break. In fill mode, act like a blank line.
14562 (diverted_copy_file_node::reread): Don't call
14563 environment::do_break.
14565 * troff/div.c (blank_line): New function.
14566 * troff/div.h: Declare it.
14567 * troff/input.c (process_input_stack): Call it.
14569 * troff/div.c (truncated_space_reg::get_string): New function.
14570 (init_div_requests): Bind to .trunc.
14571 (space_request, top_level_diversion::space,
14572 top_level_diversion::output, macro_diversion::space,
14573 macro_diversion::output): Update truncated_space.
14574 (macro_diversion::output): Redo calculations when trap sprung.
14575 (macro_diversion::output, macro_diversion::space): No need for
14578 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14579 after truncating post line spacing.
14581 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
14583 * ps/devps/prologue (MF, SF): Make them work even if setfont is
14584 defined as a procedure rather than as an operator.
14586 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
14588 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14590 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
14592 * troff/div.c (top_level_diversion::output): Merge
14593 output_file::print_line and output_file::end_of_line member
14595 * troff/div.h (class output_file):
14596 * troff/node.c (troff_output_file::print_line,
14597 troff_output_file::end_of_line, output_file::end_of_line,
14598 ascii_output_file::print_line, suppress_output_file::print_line):
14599 Corresponding changes.
14601 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
14603 * troff/input.c (token::next): Don't give a warning for `\.'.
14605 * troff/env.c (environment::get_center_lines): New function.
14606 (init_env_requests): Bind number register .ce to it.
14607 * troff/env.h: Declare it.
14608 * tbl/table.c (table::init_output): Define reset macro to restore
14609 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
14611 (table::print): If center option not given, then imply center
14612 option if SAVED_CENTER_REG > 0.
14614 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
14616 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14617 Troff.ps from DOWNLOAD.
14619 * troff/Makefile: Change comment in DEFINES to avoid confusing
14622 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14623 code. Don't try to catch errors with stopped.
14624 (check_line_lengths): New function.
14625 * ps/devps/prologue (EXEC): Deleted.
14626 (EBEGIN, EEND): New procedures.
14628 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
14630 * troff/input.c: Include request.h before node.h.
14631 * troff/node.c: Likewise.
14632 * troff/env.c: Likewise.
14633 * troff/div.c: Likewise.
14634 * troff/node.h (class special_node): Store argument as a macro
14635 rather than a char *.
14636 * troff/node.c (special_node::special_node, special_node::copy):
14638 (special_node::~special_node): Deleted.
14639 (special_node::tprint): Deleted.
14640 (special_node::tprint_start, special_node::tprint_end,
14641 special_node::tprint_char): New functions.
14642 (troff_output_file::special): Deleted.
14643 (troff_output_file::start_special, troff_output_file::end_special,
14644 troff_output_file::special_char): New functions.
14645 * troff/input.c (special_node::tprint): New function.
14646 (do_special): Use macro not char *.
14647 (do_transparent_macro): Deleted.
14648 (token::next): Don't call do_transparent_macro.
14650 * troff/input.c (token::next): Add 'Y' case.
14651 (do_transparent_macro): New function.
14652 * troff/node.c (troff_output_file::special): Handle newlines with
14653 argument using new continuation convention.
14654 * driver/input.c (get_string): Cope with continuation convention.
14655 (do_file): Don't call skip_line after calling get_string(1).
14656 * ps/ps.c (ps_printer::special, ps_printer::do_import,
14657 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
14659 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
14662 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
14664 * troff/input.c (asciify): By default, illegal input characters
14665 should return empty string.
14667 * troff/input.c (copy_file): Handle first page transition like title.
14668 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
14670 * troff/input.c (token::next): Improve error message for EOF after
14672 (input_char_description): New function.
14673 (get_char_for_escape_name): Use input_char_description.
14674 (token::next): Warn about unrecognized escape sequences.
14675 (warning_table): Add WARN_ESCAPE.
14676 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
14679 * troff/token.h: Remove declaration of process_input_stack.
14681 * troff/input.c: Remove declaration of init_hyphen_requests.
14682 * troff/request.h: Correct spelling in declaration of same.
14684 * troff/input.c (token::next): Check whether escape_char is 0.
14686 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
14688 * groff.c (main, usage, help): Implement -P and -L options.
14689 * groff.sh: Likewise.
14691 * troff/input.c (token::next): Use some gotos to avoid code
14694 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
14695 Avoid calling symbol::symbol if name empty.
14697 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
14699 * troff/input.c (init_input_requests): Make \n(.x return the major
14700 version number and \n(.y return the minor version number.
14701 * troff/Makefile: Construct file majorminor.c defining
14702 major_version and minor_version automatically from ../VERSION.
14704 * troff/node.c (class glyph_node): Make operator new and operator
14706 (class ligature_node): Similarily.
14708 * troff/input.c (operator==(const macro &, const macro &)): New
14710 (non_interpreted_node::same): Use this.
14711 (string_iterator::string_iterator): Make macro& argument const.
14713 * troff/input.c (input_iterator::get): New function. Don't make
14714 asciify_macro or class non_interpreted_node friends of class
14716 (non_interpreted_node::interpret): Use input_iterator::get.
14717 (asciify_macro): Likewise.
14719 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
14720 ~non_interpreted_node): Deleted.
14721 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
14724 * troff/symbol.h: Make all symbol member functions const.
14726 * lib/strtol.c: New file.
14727 * lib/Makefile: Add strtol.c.
14728 * Makefile: Define STRTOL as strtol.o to include strtol in
14731 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
14733 * pic/troff.c (troff_output::simple_circle): Divide by scale.
14735 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
14737 * troff/input.c (do_special): Use input_level.
14739 * troff/token.h (TOKEN_BACKSPACE): New token.
14740 (token::backspace): New function.
14741 * troff/input.c (token::description, token::next, token::process):
14742 Grok TOKEN_BACKSPACE.
14743 (do_special): Turn TOKEN_BACKSPACE back into \b.
14745 * troff/token.h (token::leader): New function.
14746 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
14748 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
14750 * troff/input.c (do_special): Use token::description in error
14753 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
14755 * troff/input.c (decode_args): Combine quoted and
14756 quote_input_level variables. Make it a for (;;) loop.
14758 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
14760 * troff/input.c (read_long_escape_name): The test for whether to
14761 expand buffer was off by 1.
14762 (read_string): Similarily.
14764 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
14766 * troff/input.c: Use `const int' rather than `static const int'.
14768 * troff/div.h (diversion::copy_file): Declare as pure virtual.
14769 (macro_diversion::copy_file): New function.
14770 * troff/node.h: New class diverted_copy_file_node.
14771 * troff/node.c: Implement it.
14772 * troff/input.c (copy_file): Use diversion::copy_file. Handle
14773 first page transition by pushing a diverted_copy_file_node.
14774 * troff/input.c (token::next, process_input_stack): Don't handle
14777 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
14779 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
14780 whether space widths need adjusting.
14782 * troff/charinfo.h: Generalize translated_to_space to
14783 special_translation so as to allow translation to \&.
14784 * troff/input.c (translate): Allow translation to \&.
14785 (charinfo::*): Corresponding changes.
14786 * troff/node.c (make_node, node::add_char): Corresponding changes.
14787 * troff/node.h (dummy_node::dummy_node): Allow optional first
14790 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
14791 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
14793 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
14794 TOKEN_REQUEST with an argument of TITLE_REQUEST.
14795 (token::process): Grok that.
14796 * troff/input.c (copy_file): Handle first page transition like
14797 title by pushing a COPY_FILE_REQUEST cookie.
14798 (token::next, process_input_stack): Grok that.
14799 * troff/node.h (output_file::copy_file): Add x and y arguments.
14801 * troff/div.c (top_level_diversion::copy_file): Supply them.
14802 * troff/node.c (troff_output_file::copy_file): Add x and y
14803 arguments; moveto specified position. Invalidate font_position
14804 array after copying file.
14805 (output_file::copy_file): New function.
14806 (suppressed_output_file::copy_file, ascii_output::copy_file):
14808 * troff/input.c (transparent_file): New function.
14809 (init_input_requests): Bind to "trf".
14810 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
14811 (process_input_stack): Likewise.
14813 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
14815 * troff/node.c (init_node_requests): New number registers .kern
14816 pointing to global_kern_mode, and .lg pointing to
14817 global_ligature_mode.
14819 * troff/node.c (ligature): Don't change it if we get a bad
14822 * troff/input.c (do_define_string): Don't strip tabs.
14824 * troff/input.c (asciify_macro): Make the string_iterator auto.
14826 * troff/node.c (init_font_requests): Rename to...
14827 (init_node_requests):
14828 * troff/node.h: Change declaration.
14829 * troff/input.c (main): Change call.
14831 * troff/input.c (node::reread, diverted_space_node::reread): New
14833 (process_input_stack): Call reread rather than
14834 get_diverted_space_node.
14835 * troff/node.c (node::get_diverted_space_node,
14836 diverted_space_node::get_diverted_space_node): Removed.
14837 * troff/node.h: Declare reread methods instead of
14838 get_diverted_space_node methods. Make `n' member private.
14839 * troff/input.c: (token::diverted_space): Removed.
14840 * troff/token.h: Removed declaration.
14843 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
14845 * eqn/script.c (script_box::compute_metrics): Don't let
14846 SUP_RAISE_FORMAT become negative.
14848 * tbl/table.c (table::do_row): Entries that don't end in the
14849 this row shouldn't make the row non-blank.
14851 * tbl/table.c (table::make_columns_equal): Only set the width of
14852 columns which are marked as equal.
14854 * tbl/main.c (process_data): Before issuing excess data error,
14855 if last character was a newline unget it; then get it again after
14856 the error. Also include the contents of the entry in the message.
14858 * groff.c: New file.
14859 * Makefile: Build groff from groff.c. Make it possible to use
14860 either groff.sh or groff.c as groff.
14861 * Makefile.bd: Similarily.
14863 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
14865 * groff.sh: Don't delay expansion of $@ in assignment to files.
14866 Remove occurrences of \".
14868 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
14870 * all Makefiles: Simplify and rearrange.
14872 * Makefile: Handle fmod like malloc.
14873 * lib/Makefile: Similarily.
14874 * lib/fmod.c: Remove #ifdef NEED_FMOD.
14876 * Makefile: Rename OPTIMISE to OPTIMIZE.
14878 * groff.sh: Remove assignment to PATH.
14879 * Makefile: Remove SHPATH variable.
14880 * Makefile.bd: Similarily.
14882 * groff.sh: Add -V option to print the pipeline instead of
14885 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
14887 * lib/font.c: Split off file searching into ...
14888 * lib/fontfile.c: New file.
14890 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
14892 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
14894 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
14895 Also change misleading comment.
14896 (table::do_vspan): Change similarily misleading comment.
14897 * tbl/main.c (process_data): A format row with an explicit `s'
14898 uses up a data line, even if all the other columns are `_' or `='.
14900 * troff/input.c (token::description): Fix description of
14901 TOKEN_DUMMY and TOKEN_EMPTY.
14903 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
14905 * groff.sh: Fix description of -Z in help message.
14907 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
14909 * pic/object.c (object_spec::make_object): Allow negative and zero
14911 * pic/pic.y: Give linethick default value of -1.0.
14912 * pic/troff.c (troff_output::troff_output): Initialize
14913 last_line_thickness to BAD_THICKNESS.
14914 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
14915 (troff_output::line_thickness): Canonicalize negative thicknesses
14916 to RELATIVE_THICKNESS.
14917 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
14918 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
14920 (tex_output::start_picture): Set pen_size to -2.0.
14922 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
14923 0, then use 0 linewidth.
14924 (ps_printer::ps_printer): Initialize line_thickness to -1.
14926 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
14928 * ps/devps/symbolchars: Remove `or'.
14929 * ps/tmac.ps: Implement \(or with .char.
14931 * ps/devps/symbolchars: Move most characters into textmap.
14932 * ps/devps/textmap: Add names for troff bracket characters. Remove
14935 * ps/devps/TSymbol.ps: Removed.
14936 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
14937 * ps/tmac.ps: Do with .char what TSymbol did.
14938 * ps/devps/download: Remove TSymbol.
14940 * ps/devps/T: Removed.
14941 * ps/devps/Troff.ps: Removed.
14942 * ps/devps/Troff.afm: Removed.
14943 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
14944 * ps/devps/download: Remove Troff.
14945 * ps/devps/FontMakefile: Remove T target.
14946 * ps/devps/DESC-A4: Remove T from font list.
14947 * ps/devps/DESC-letter: Likewise.
14949 * troff/input.c (macro_to_node): Rename to ...
14950 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
14951 character's definition while processing it.
14952 * troff/node.c (node::add_char, make_node): Change calls to
14953 macro_to_node accordingly.
14955 * troff/input.c (token::next): Translate \_ to \(ul.
14957 * tty/devascii/R.proto: Add `|'.
14958 * tty/devlatin1/R.proto: Likewise.
14960 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
14962 * man: Put the version number in all the man pages.
14964 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
14966 * Makefile.bd: New file.
14967 * README.bd: New file.
14969 * VERSION: New file.
14970 * lib/version.c: Removed.
14971 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
14974 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
14975 environment variable.
14977 * all Makefiles: Split install target into install.bin for
14978 binaries, and install.nobin for everything else.
14979 * Makefile: Add bindist target.
14981 * man/afmtodit.man: New file.
14982 * man/Makefile: Add afmtodit.n to MAN1PAGES.
14983 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
14985 * ps/Makefile: Pass BINDIR to make install in devps.
14987 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
14988 the space character.
14990 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
14992 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
14994 * ps/ps.c: Redo font downloading.
14995 * ps/devps/download: New file.
14996 * ps/devps/Makefile: Add download to DEVICEFILES.
14997 * ps/devps/afmtodit: Remove -d option.
14998 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
14999 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15000 * ps/devps/zapfdr.ps: Likewise.
15001 * ps/devps/TSymbol.ps: Likewise.
15003 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
15005 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15007 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
15009 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15010 then strip the first line if it starts with %.
15011 * Makefile: Add a comment about this.
15013 * man/tfmtodit.man: New file.
15014 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15015 * dvi/Makefile: Install tfmtodit in BINDIR.
15017 * dvi/tfmtodit.c (usage): Mention -v option.
15019 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
15021 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15022 * troff/node.c (troff_output_file::transparent_char): Don't call
15025 * eqn: Add check_tabs method to most box classes.
15026 * eqn/box.c (box::top_level): Call check_tabs.
15028 * eqn/script.c (script_box::output): Use \Z.
15029 * eqn/limit.c (limit_box::output): Use \Z.
15031 * eqn/box.c (box::top_level): Use itoa.
15033 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
15035 * dvi/tmac.dvi: Add font translations for CR, C, TT.
15036 * dvi/devdvi/Makefile: Don't make links to CW.
15038 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15040 * xditview/tmac.X: Likewise.
15042 * troff/node.c: Add font translation feature.
15043 (get_font_translation): New function.
15044 (symbol_fontno): Translate the font name.
15045 (mount_font_no_translate): Rename to mount_font to this.
15046 (mount_font): New function.
15047 (font_family::make_definite): Call mount_font_no_translate instead
15049 (mount_style): Translate the font name.
15050 (font_translate): New function.
15051 (init_font_requests): Bind "ftr" to font_translate.
15053 * ps/devps/prologue (SN): New procedure that rounds a position to
15054 the nearest (pixel + (.25,.25)).
15055 (DL): Use SN to round endpoints.
15057 * lib/version.c: Changed version to 0.5.
15059 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
15061 * Makefile: Move definition of PAGE to the very beginning, so that
15062 people are less likely to miss it.
15064 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
15066 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15068 * troff/env.c (environment::choose_breakpoint): Make `can't find
15069 breakpoint' error a warning of type WARN_BREAK. Change message to
15070 `can't break line'.
15071 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15073 * troff/input.c: Add WARN_BREAK to warning_table. Include
15074 WARN_BREAK in DEFAULT_WARNING_MASK.
15076 * tty/tmac.tty: Add definition of \(+-.
15078 * groff.sh: Remove `--' option to set command.
15080 * dvi/devdvi/texsy.map: Remove duplicate md entry.
15082 * ps/devps/eqnchar: Better definition of cdot using md.
15083 * dvi/devdvi/eqnchar: Likewise.
15084 * xditview/devX100/eqnchar: Likewise.
15085 * xditview/devX75/eqnchar: Likewise.
15086 * eqn/lex.c: Add definition of cdot.
15088 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
15090 * troff/input.c (get_optional_char): New function.
15091 * troff/input.c (set_page_character): Use get_optional_char(),
15092 rather than has_arg() and tok.get_char(1).
15093 * troff/env.c (tab_character, leader_character, hyphen_char,
15094 field_characters): Likewise.
15095 (margin_character): Likewise. Also always delete the
15096 margin_character_node.
15098 * troff/input.c (token::get_char): Use token::description.
15100 * troff/input.c (has_arg): Don't skip over tab and \}.
15101 * troff/number.c (start_number): Give a warning if the number
15102 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15104 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
15106 * troff/input.c (empty_name_warning, non_empty_name_warning): New
15108 (get_name, get_long_name): Use these. Rename `warn' argument to
15111 * troff/node.c (get_fontno): Test that the symbol is not null.
15113 * troff/input.c (token::description): New function.
15114 * troff/number.c (parse_term): Use token::description in `numeric
15115 expression expected' message.
15116 * troff/groff.h: Add WARN_MISSING.
15117 * troff/number.c (start_number): New function.
15118 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15119 get_incr_number): Use start_number().
15120 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15122 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15123 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15125 * troff/input.c (token::get_char): Use WARN_MISSING.
15126 * troff/input.c (token::delimiter): Use token::description.
15127 * troff/env.c (environment_switch): Back out Aug 3 change.
15128 * troff/input.c (has_arg): Skip over \}s and tabs but give a
15130 * troff/token.h (token::tab): New function.
15131 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15132 * troff/reg.c (alter_format): Likewise.
15133 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15135 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
15137 * troff (most files): Redo warnings. Divide warnings into various
15138 categories; warning() has an additional first argument indicating
15139 the category it falls into.
15140 * troff/input.c (main): -w now takes an argument. New option -W.
15141 (enable_warning, disable_warning): New functions.
15143 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15144 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15146 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
15148 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15149 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15150 * xditview/devX75/eqnchar: Likewise.
15151 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15153 * eqn/other.c: When bar or over applies to a single character
15154 don't produce an overline_box or an underline_box. Instead produce
15155 an accent_box or an underaccent_box, with the accent a line
15156 whose width is accent_width. New classes underaccent_box,
15157 overline_char_box and underline_char_box.
15158 * eqn/box.h: Move overline_box, underline_box, accent_box class
15159 declarations into eqn/other.c. Add declarations of
15160 make_underline_box, make_overline_box, make_accent_box.
15161 * eqn/eqn.y: Call make_overline_box, make_underline_box
15162 make_accent_box instead of constructors.
15163 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15165 * eqn/other.c: Add accent_box::~accent_box.
15166 * eqn/box.h: Declare it.
15168 * groff.sh: With -Tps, use eqn -D.
15170 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15172 (underline_box::output): Similarily.
15173 (accent_box::output): Use \Z.
15175 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15178 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
15180 * troff/div.c (top_level_diversion::transparent_output(unsigned
15181 char)): Use asciify.
15182 * troff/input.c (asciify): Don't make it static.
15183 * troff/token.h (asciify): Declare it.
15185 * troff/input.c (get_name, get_long_name, token::get_char,
15186 token::delimiter): Add an extra default argument which says
15187 whether a warning should be printed.
15188 * troff: Pass a non-zero argument to one of these rather than
15189 printing a warning directly.
15191 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
15193 * troff: Consistently use symbol::is_null.
15195 * troff/dictionary.h: Move some inline functions into
15198 * troff/request.h: Move inline functions into input.c.
15199 (request_or_macro::invoke): Make it pure.
15201 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15202 * troff/input.c (init_input_requests): Use class constant_int_reg.
15203 (class compatible_reg): Deleted.
15204 * troff/div.c (init_div_requests): Use class constant_int_reg.
15205 (class last_post_line_extra_space_reg): Deleted.
15207 * troff/env.c (tab_character): Don't change the tab character if
15208 we get an invalid argument.
15209 (hyphen_char): Similarily.
15211 * troff/reg.c (alter_format): Check that nm is not null.
15213 * Makefile, groff.sh: Make it possible to customize the commands
15214 used for printing PostScript and dvi files. Also make it possible
15215 to customize the path used by groff.sh.
15217 * eqn/eqn.y: Make `left' right associative.
15219 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
15221 * pic/pic.h: Added definition of M_SQRT2 for those systems that
15224 * pic/pic.h: Removed definition of INT_MAX.
15226 * troff/node.c (italic_corrected_node::vertical_extent): Omit
15229 * troff/input.c (token::next): Handle \R like \n.
15231 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
15233 * ps/tmac.pc (PSPIC): Simplify.
15235 * troff/env.c (tab_stops::to_string):
15236 * pic/pic.y (object_type_name):
15237 * pic/troff.c (simple_output::line):
15238 * pic/tex.c (tex_output::spline):
15239 * pic/object.c (object_spec::make_object):
15240 * tbl/main.c (process_data): Add cases to switch statements to
15241 avoid cfront warnings. (Some of these are spurious, since the
15242 switch already has a default case.)
15244 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
15245 `ps-'. Don't test systat; instead check number of arguments to
15248 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
15250 * macros/tmac.e: Do not decrease the page offset by 0.5i.
15252 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15253 Unlink the file as soon as we have opened it, so that we don't
15254 have to bother with signal handlers.
15255 (handler): Deleted.
15256 (fatal_error_exit): Deleted.
15257 (main): Don't call signal.
15259 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15261 * dvi/devdvi/Makefile: Use the -k option with S and MI.
15263 * pic/pic.y: If there is a label, or an nth construction before
15264 the first `.' in the argument to `with', ignore it and generate a
15266 * pic/lex.c (lex_warning): New function.
15268 * tbl/table.c (table::init_output): In section keep and release
15269 macro, use 0 indent when diverting and the correct indent when
15272 * troff/input.c (interpolate_number_format): Do not interpolate
15273 anything if the number register is not defined.
15275 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15277 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
15279 * ps/devps/prologue (PICTURE): Set components of graphics state to
15280 their default values.
15282 * ps/devps/text.enc: Add trademark
15283 * ps/devps/textmap: Add names for club, spade, heart, diamond,
15284 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15285 * ps/devps/symbolchars: Add names for summation and product.
15287 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15288 suchthat. Add pp. Add upper-case letters.
15290 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15291 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15294 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15295 rA (right angle bracket) to ra. Introduce names for double-headed
15296 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15297 * ps/devps/textmap: Likewise for ps device.
15298 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15299 * tty/devascii/R.proto: Rename lA to la and rA to ra.
15300 * tty/devascii/R.proto: Likewise.
15301 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15303 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15305 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15307 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15310 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
15312 * troff/div.c (when_request): Use symbol::is_null rather than
15313 has_arg to determine whether we have an argument.
15314 (change_trap): Remove the trap if we get an invalid number. Give
15315 an error if we don't get at least the macro name.
15316 (diversion_trap): Remove trap if we get an invalid name or number.
15318 * troff/env.c (environment_switch): Pop if we get an invalid
15319 symbol or numeric expression.
15321 * troff/input.c (do_define_macro): If EOF is encoutered while
15322 defining the macro, do tok.next() before returning.
15324 * troff/token.h (has_arg): Move definition from here, to ...
15325 * troff/input.c (has_arg): ... here
15327 * troff/env.c (space_size): Do nothing if we get an invalid argument.
15328 * troff/input.c (shift): Likewise.
15330 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
15333 * pic/troff.c (troff_output::start_picture): Comment out calls to
15336 * eqn/main.c (do_file): Subtract 1 from current_lineno if
15337 interpret_lf_args succeeds.
15339 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15340 \\. This avoids problems with \$N.
15342 * groff.sh: Pass -C to preprocessors.
15344 * lib/lf.c (interpret_lf_args): Be more flexible.
15346 * tbl/main.c (main): Add -C option.
15347 (table_input::get): Do not recognize TE if followed by character
15348 other than a space or newline unless -C option given.
15349 (process_input_file): Likewise for lf, TS.
15350 (process_data): Likewise for lf in text blocks.
15352 * eqn/main.c (main): Add -C option.
15353 (do_file): Don't recognize EQ, EN or lf if followed by character
15354 other than space or newline unless -C option given.
15355 * eqn/lex.c (file_input::read_line): Similarily.
15356 * eqn/eqn.h: Declare compatible_flag.
15358 * etc/soelim.c (main): Add -C option.
15359 (interpret_lf_args): Use version in libgroff.
15362 * pic/main.c (main): Add -C option, which sets compatible_flag.
15363 (top_input::get), (top_input::peek): If -C option not given,
15364 do not recognize .PS/.PE/.PF/.lf if followed by a character
15365 other than space or newline.
15366 * pic/lex.c (file_input::read_line): Similarily.
15367 * pic/pic.h: Add declaration of compatible_flag.
15369 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
15371 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15373 * troff/node.c, troff/node.h: Add `asciify' methods to classes
15374 derived from node. New class space_char_hmotion_node.
15375 * troff/input.c (asciify_macro): New function.
15376 * troff/input.c (init_input_requests): New request `asciify' bound
15378 * macros/mm.diff: New file.
15379 * Makefile: In install.mm target use `patch' to apply
15382 * troff/input.c (macro::print_size): Just print the size in bytes.
15384 * troff/div.c (return_request): Correct the argument
15387 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
15389 * troff/node.h (class composite_node): Add sz member.
15390 * troff/node.c (composite_node::size): Return sz.
15391 * troff/input.c (macro_to_node): Use the initial size in the
15392 environment as the size of the composite_node.
15394 * troff/node.c (node::zero_width_tprint): Provide a reasonable
15397 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
15399 * troff/div.c (change_trap): If we get a bad number expression,
15402 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
15404 * lib/matherr.c (matherr): Define this only if math.h defines
15407 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
15409 * troff/div.c (macro_diversion::distance_to_next_trap): If there
15410 no diversion trap return vunits(INT_MAX - vresolution).
15412 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
15414 * troff/input.c (do_zero_width): New implementation that doesn't
15415 use a temporary environment. Use instead:
15416 (token::add_to_node_list): New function.
15417 * troff/env.c (environment::get_prev_char_height),
15418 (environment::get_prev_char_height),
15419 (environment::get_prev_char_skew): New functions.
15420 (environment::get_prev_char): New function.
15421 (environment::get_prev_char_width): Change to use get_prev_char.
15422 (init_env_request): Implement new registers .cht, .cdp, .csk.
15423 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15424 \Z being processed in a separate environment.
15426 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
15428 * tbl/table.c: Removed TABLE_BOTTOM_REG.
15430 * tbl/table.c (table::init_output): In the section release macro,
15431 give a warning message if the section won't fit on one page.
15433 * tbl/table.c (table::do_top): Emit table keep only if table is
15435 (table::do_bottom): Likewise for table release.
15436 (table::table), (table::add_vertical_rule): Remove reference to
15438 * tbl/table.h: Remove keep member.
15440 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15441 SECTION_RELEASE_MACRO, if there's not enough space before the next
15442 trap to output the diversion, call T# ourselves, set
15443 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15444 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
15445 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
15446 vertical position and return to it before turning traps on again.
15448 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
15450 * troff/node.c, troff/node.h: In classes derived from node,
15451 replace prev_char_width method by last_char_node method.
15452 * troff/env.c (environment::get_prev_char_width): Use
15453 node::last_char_node rather than node::get_prev_char_width.
15455 * Makefile: Added comment about -fno-inline on 68030-based
15458 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15459 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15460 expressions using sizeof to int.
15461 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15463 * macros/tmac.e (TS): Don't move @f back past the current
15466 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
15468 * ps/ps.c (main): Buffer stderr.
15469 * dvi/dvi.c (main): Likewise.
15470 * tty/tty.c (main): Likewise.
15472 * ps/ps.c (ps_printer::do_import): Improve error handling.
15474 * troff/input.c (abort_request): Use asciify.
15476 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15477 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15478 type of first argument int rather than char. This works around a
15479 bug on the 68030 based Apollo using g++ 1.37.1.
15481 * tbl/table.h (class table): Add `keep' member.
15482 * tbl/table.c (table::table): Initialize `keep'.
15483 (table::add_vertical_rule): Set `keep' to 1.
15484 (table::do_top): Only emit table keep macro is `keep' is non-zero.
15485 (table::do_bottom): Likewise for table release macro.
15486 (table::do_row): Emit section keep macro even if the row is 0.
15488 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
15490 * macros/tmac.e (@C): Preserve the font family across the change
15493 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
15495 * lib/font.c: Initialize font::hor and font::vert to 1.
15496 (font::load_desc): Check the values of font::hor and font::vert.
15498 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15499 be included in a C compilation.
15500 (iftoa): Use INT_DIGITS. Include lib.h.
15502 (as_string): Likewise.
15503 * tbl/table.c: Removed definition of INT_DIGITS.
15504 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15505 * troff/input.c (input_input_requests): Likewise.
15506 * ps/ps.c (make_encoding_name): Likewise.
15507 (ps_printer::set_style): Likewise.
15508 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15510 * tty/devascii/R.proto: Map fm onto '.
15511 * tty/devlatin1/R.proto: Likewise.
15513 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
15515 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15516 argument to \w is at a different input level.
15518 * tbl/table.c (table::init_output): Define a new macro
15519 REPEATED_VPT_MACRO, like vpt but if in a diversion also
15520 transparently outputs itself.
15521 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15523 (table::do_row): Likewise.
15525 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15526 TRANSPARENT_STRING_NAME.
15528 * tbl/table.c (table::init_output): In the table release macro
15529 print an error message and don't produce any output if after
15530 issuing the need request the table still will not fit. Also
15531 remove the diversion after bringing it back.
15533 * tbl/table.c (table::init_output): Define a new macro
15534 REPEATED_MARK_MACRO, like mk but if in a diversion also
15535 transparently outputs itself.
15536 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15537 is necessary because .TH might not call .T#.
15538 (table::do_top): Likewise TOP_REG.
15539 (table::define_bottom_macro): If TOP_REG is no longer valid, use
15540 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15541 table header might contain just the two top rules.
15543 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
15545 * troff/div.c: Implement new request `ptr' to print all traps.
15547 * troff/env.c (init_env_requests): Implement `.tabs' reg with
15548 init_string_env_reg.
15549 * troff/env.c (class tab_reg): Deleted.
15551 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
15553 * troff/div.c: New number register .pn returns the number of the
15554 next page as set by the pn request.
15556 * macros/tmac.an: Redid headers and footers. Number each manual
15557 entry starting from 1 unless \nC is > 0, like Sun. Added an
15558 optional 5th argument to .TH which specifies the manual name and
15559 appears in the center of the header. Understand the X, P and D
15560 registers like Sun.
15562 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
15564 * troff/env.c (init_env_requests): New number register `.lt' to
15565 return the title length.
15567 * troff/node.h (class transparent_dummy_node): New class.
15568 * troff/node.c (class transparent_dummy_node): Provide member
15570 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15573 * troff/input.c (token::next): New escape sequence \).
15574 * troff/input.c (get_copy): Recognize \) in copy mode.
15576 * troff/input.c (input_stack::clear): New function.
15577 * troff/input.c (exit_request): Use input_stack::clear.
15579 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15580 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15582 * troff/env.c: Move set_page_character to input.c. Move
15583 page_character to input.c also.
15584 * troff/env.c (title): Split off the reading of the parts of the
15585 title into read_title_parts.
15586 * troff/input.c (read_title_parts): New function. Check the
15587 input_level when testing whether a token matches the delimiter.
15589 * troff/input.c (exit_request): New function.
15590 * troff/input.c (init_input_requests): Bind ex request to
15591 exit_request rather than exit_groff.
15593 * troff/input.c (exit_groff): Call tok.next() before
15594 process_input_stack().
15596 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
15598 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15599 * troff/env.h: ditto.
15600 * troff/input.c: ditto.
15602 * troff/env.c (environment::is_empty): Test pending_lines.
15604 * troff/env.c (environment::have_pending_lines): Removed.
15606 * troff/input.c: Add request to flush pending lines from the
15609 * troff/env.c, troff/env.h: Add automatic widow control feature.
15611 * troff/input.c (exit_groff): Do process_input_stack() after
15612 do_break() but before setting exit_flag to 2.
15614 * troff/input.c: Remove FLUSH_PENDING_LINES and
15615 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15616 environment after END_TRAP token seen, but only if there aren't
15617 any more traps still unfinished.
15618 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15620 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
15622 * troff/env.c: Rename the `retain_size' member of class
15623 pending_output_line to `no_fill'.
15625 * troff/env.c (title): When the line is output, make the
15626 retain_size argument !fill.
15628 * troff/node.h: Add `hyphenated' member to struct breakpoint.
15629 * troff/node.c (space_node::get_breakpoints),
15630 (dbreak_node::get_breakpoints): Fill this in.
15631 * troff/env.c: Allow specification of maximum number of
15632 consecutive hyphenated lines.
15634 * troff/env.c (environment::is_empty): Add test for !current_tab.
15636 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
15638 * troff/env.c (environment::hyphenate_line): Don't completely give
15639 up if the word is not to be hyphenated; continue so that breaks
15640 can be made at break_char_node's.
15642 * lib/lib.h: Only define INT_MAX if it's not already defined;
15643 undef INT_MIN if it's already defined.
15645 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15647 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15648 This works around a bug in AT&T C++ 2.0 used with an ANSI C
15651 * macros/tmac.an (an-header): Set no-space mode.
15653 * macros/tmac.an (TH): Start a new page if necessary.
15655 * Started using ChangeLog at version 0.4.
15658 version-control: never