1 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
3 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
4 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
5 default directory names for temporary files.
6 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
8 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
9 [__MSDOS__] (run_pipeline): Honour environment variables.
10 Don't use `tmpnam' but `tempnam' to work around messy
13 * README.MinGW: New file.
15 2003-10-16 Werner LEMBERG <wl@gnu.org>
17 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
18 `(*t)->next' without testing validity of `*t'.
19 (usage): Make it more readable.
21 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
23 Make html device run under both MS-DOS and Win32.
25 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
26 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
27 spawn or fork+exec has to be used, and whether parent must sleep
28 until the child process terminates. Used in
29 `char_buffer::run_output_filter'.
30 (copyofstdoutfd): Removed.
31 (char_buffer): Replace `write_file_html' and `write_file_troff'
32 member functions with `emit_troff_output' and `run_output_filter'.
34 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
36 (replaceFd): Replaced with...
37 (set_redirection): New auxiliary function.
38 (waitForChild): Replaced with...
39 (save_and_redirect): New auxiliary function for.
41 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
44 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
46 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
47 (GROFF_LIBC): New function.
48 * configure.ac: Call GROFF_LIBC.
50 * configure: Regenerated.
52 * src/include/lib.h: Handle __MINGW32__.
53 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
57 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
60 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
63 2003-10-13 Werner LEMBERG <wl@gnu.org>
65 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
68 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
71 2003-10-12 Werner LEMBERG <wl@gnu.org>
73 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
74 src/roff/troff/input.cc (usage): Updated.
76 * NEWS, doc/groff.texinfo: Updated.
78 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
80 * src/libs/libgroff/searchpath.cpp
81 (search_path::open_file_cautious): New function which also handles
82 `-' as stdin and stdout depending on the access mode.
83 * src/include/searchpath.h (search_path): Updated.
85 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
86 * src/devices/grops/ps.h: Include `searchpath.h'.
87 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
88 Open resource file with `include_search_path.open_file_cautious'.
89 * src/devices/grops/grops.man: Document new `-I' switch.
91 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
92 (main), src/devices/grolj4/lj4.cpp (main),
93 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
95 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
97 (include_search_path): New global variable.
98 (include_path_append): Removed.
99 (main): Use `include_search_path.command_line_dir' to handle `-I'.
100 (do_file): Simplify, using new
101 `include_search_path.open_file_cautious'.
103 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
105 (main): Pass arguments to `-I' to both troff and devices.
106 Improve handling of `-V'.
107 * src/roff/groff/groff.man: Document changes to -I and -V.
109 * src/roff/troff/input.cpp (include_search_path): New global
111 (next_file, source, ps_bbox_request, transparent_file,
112 process_input_file): Use new
113 `include_search_path.open_file_cautious'.
114 (main) Handle `-I' switch.
115 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
116 Use new `include_search_path.open_file_cautious'.
117 * src/roff/troff/node.h: New extern symbol `include_search_path'.
118 * src/roff/troff/troff.man: Document new `-I' switch.
120 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
122 Support multiple calls of .Lb in LIBRARY section.
124 * tmac/doc-common (doc-in-library-section): New register.
125 (doc-section-library): New string.
126 (Sh): Set `doc-in-library-section'.
128 * tmac/doc-syms (Lb): Insert breaks before and after arguments
129 if in LIBRARY section.
130 * tmac/doc.tmac (doc-save-global-vars): Updated.
131 * NEWS, tmac/groff_mdoc.man: Updated.
133 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
135 * tmac/doc-common (doc-default-operating-system): New variable.
138 2003-09-08 Werner LEMBERG <wl@gnu.org>
140 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
142 2003-08-31 Werner LEMBERG <wl@gnu.org>
144 * contrib/mom/Makefile.sub: Fix last change to make it really work.
145 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
146 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
147 $(DEVFILES) are not empty.
148 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
150 2003-08-26 Chuck Silvers <chuq@chuq.com>
152 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
153 with parallel runs of `make'.
155 2003-08-23 Stephen Gildea <gildea@stop.mail-abuse.org>
157 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
158 insert SORT_SEP. With certain combinations of sort specifications,
159 refer sorted entries in the wrong order. In particular, entries
160 with a missing field should be be sorted before all entries that
161 have that field, before refer looks to the next field.
163 2003-08-23 Werner LEMBERG <wl@gnu.org>
165 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
166 g++ linker is used. Reported by Mark J. Reed
167 <mark.reed@turner.com>.
169 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
171 Add key character `x' to tbl which makes tbl call a user-defined
172 macro on a table cell.
174 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
175 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
176 `set_modifier' after printing the compatibility request.
177 (set_modifier): Print call to `m->macro' if not empty.
178 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
180 (process_format): Implement cases `x' and `X'.
181 * src/preproc/tbl/tbl.man, NEWS: Updated.
183 2003-08-15 Werner LEMBERG <wl@gnu.org>
185 * doc/groff.texinfo: Minor fixes.
187 2003-08-09 Werner LEMBERG <wl@gnu.org>
189 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
191 2003-08-07 Werner LEMBERG <wl@gnu.org>
193 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
194 argument list to nothing if there is no file to match. Use `ls' as
195 a protection, similar to autoconf.
197 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
198 empty argument lists.
200 * doc/groff.texinfo: Improve documentation how vertical spacing
201 and line breaks interact.
204 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
206 2003-08-03 Werner LEMBERG <wl@gnu.org>
208 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
209 EPS (using eps2eps or similar programs to compute the bounding box).
211 2003-07-24 Werner LEMBERG <wl@gnu.org>
213 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
214 * doc/texinfo.tex: Updated from texinfo 4.6.
215 * README.CVS: From now on we need texinfo 4.6.
217 2003-07-23 Werner LEMBERG <wl@gnu.org>
219 Add requests `dei1' and `ami1' for completeness.
221 * src/roff/troff/input.cc (calling_mode): Remove
222 CALLING_DISABLE_COMP.
223 (comp_mode): New enumeration.
224 (do_define_string, define_string, define_nocomp_string,
225 append_string, append_nocomp_string): Updated.
226 (do_define_macro): Add third parameter.
227 (define_macro, define_nocomp_macro, define_indirect_macro,
228 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
229 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
232 (init_input_requests): Add `dei1' and `ami1'.
234 * tmac/trace.tmac: Handle de1 and am1.
235 (de): Improve tracing message.
236 (am): Add missing `do'.
239 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
240 Document new requests.
242 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
244 Add option -G to .MPIMG to insert a gap between text and the image.
246 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
247 www-finish-left-ll): Updated.
248 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
249 (MPIMG): Make option -L and -R optional.
252 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
254 * src/devices/grohtml/post-html.cpp
255 (html_printer::do_file_components): Don't use `stdout' as lvalue
256 since it can be a macro.
258 2003-07-22 Werner LEMBERG <wl@gnu.org>
260 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
261 the corresponding test in aclocal.m4.
263 2003-07-21 Werner LEMBERG <wl@gnu.org>
265 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
266 names but RGB values directly. Otherwise pnmtopng depends on
267 an external file `rgb.txt' which maps colour names to values.
269 2003-07-20 Werner LEMBERG <wl@gnu.org>
271 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
272 * configure, src/include/config.hin: Regenerated.
274 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
276 2003-07-19 Werner LEMBERG <wl@gnu.org>
278 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
280 2003-07-18 Werner LEMBERG <wl@gnu.org>
282 * *.man: Switch to non-compatibility mode temporarily if GNU
283 syntax extensions are used in the particular man page.
285 * PROBLEMS: Add solutions for SGR problems.
287 2003-07-17 Werner LEMBERG <wl@gnu.org>
289 Don't ignore grotty's command line options if \X'tty: sgr ...' is
290 used to change the drawing scheme.
292 * src/devives/grotty/tty.cpp (bold_flag_option,
293 underline_flag_option, italic_flag_option, reverse_flag_option,
294 bold_underline_mode_option): New global variables.
295 (update_options): New function.
296 (tty_printer::special): Call update_options.
297 (main): Don't set xxx_flag but xxx_flag_option, then call
300 2003-07-14 Werner LEMBERG <wl@gnu.org>
302 Make grotty emit proper Unicode box drawing characters for -Tutf8.
304 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
306 (hline_char, vline_char): New global variables.
307 (tty_printer::tty_printer): Initialize them.
308 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
309 horizontal and vertical lines.
310 (crossings): New global array.
311 (tty_printer::end_page): Use it to determine the proper crossing
312 character for -Tutf8.
314 2003-07-12 Werner LEMBERG <wl@gnu.org>
316 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
317 (HTMLDOCFILES): Revert to `pic.html'.
318 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
320 2003-07-11 Werner LEMBERG <wl@gnu.org>
322 * doc/pic.ms: Improve documentation of absolute coordinates.
323 Document absolute positioning of pictures.
325 * NEWS: Add new pic capability.
327 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
329 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
332 2003-07-07 Werner LEMBERG <wl@gnu.org>
334 Implement support for dashed and dotted ellipses in pic. Based on
335 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
337 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
338 common_output::dashed_ellipse, common_output::dotted_ellipse): New
339 functions. Ellipse arcs are approximated with circle arcs.
340 * src/preproc/pic/common.h (common_output): Updated.
341 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
343 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
345 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
347 2003-07-06 Werner LEMBERG <wl@gnu.org>
349 Make grotty work on platforms which have unsigned char as the
350 default for char. Based on a patch by Thomas Klausner
353 * src/devices/grotty/tty.cpp (schar): New typedef.
354 Updated calls to declare_ptable and implement_ptable.
355 (glyph): Use schar for back_color_idx and fore_color_idx.
356 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
357 (tty_printer::tty_color, tty_printer::tty_printer,
358 tty_printer::color_to_idx, tty_printer::put_color): Updated.
360 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
362 * src/roff/nroff/nroff.sh: Add option -d for completeness.
363 * src/roff/nroff/nroff.man: Updated.
365 2003-07-05 Werner LEMBERG <wl@gnu.org>
367 * NEWS, tmac/groff_www.man: Updated.
368 * doc/Makefile.sub: Updated.
370 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
372 Implement support for multiple HTML output files.
374 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
375 -j command line option.
377 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
379 (file): New fields `new_output_file', `require_links',
381 (file::file): Updated.
382 (files::set_file_name, files::set_links_required,
383 files::are_links_required, files::is_new_output_file,
384 files::file_name, files::next_file_name): New functions.
385 (header_desc): New fields `no_of_level_one_headings',
387 (header_desc::header_desc): Updated.
388 (header_desc::write_headings): Handle multiple files.
389 (html_printer::write_header): Save file name in which header occurs.
390 (html_printer::determine_header_level): Possibly split files on
392 (html_printer::do_links, html_printer::troff_tag): Updated.
393 (html_printer::insert_split_file, html_printer::do_job_name,
394 html_printer::emit_link, html_printer::write_navigation,
395 html_printer::do_file_components): New functions.
396 (html_printer::~html_printer): Handle multiple files.
397 (main): Handle command line option `-j'.
399 * src/devices/grohtml/grohtml.man: Updated.
401 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
404 * tmac/www.tmac (JOBNAME): New macro.
405 * tmac/s.tmac (SH-NO-TAG): New macro.
406 (@SH): Call SH-NO-TAG.
409 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
411 * tmac/groff_mdoc.man: Improve documentation of punctuation
414 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
416 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
418 2003-07-03 Werner LEMBERG <wl@gnu.org>
420 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
422 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
424 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
427 (Fn, Fo): Reduce indentation in synopsis.
429 * tmac/doc-common (doc-check-depth): New macro.
430 (doc-end-macro, Sh, Ss): Use it.
431 (Cd): Fix behaviour in synopsis.
432 (In): Make it parsed and callable.
433 If not in the synopsis, represent the C header file enclosed in
435 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
436 Use minus, not hyphen.
438 * tmc/groff_mdoc.man: Updated.
440 2003-07-01 Werner LEMBERG <wl@gnu.org>
442 Integrated grap2graph, contributed by Eric S. Raymond.
444 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
446 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
447 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
449 2003-07-01 Colin Watson <cjwatson@debian.org>
451 * src/xditview/*.c: Add prototypes, fix return types, add includes.
452 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
454 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
456 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
458 2003-06-31 Werner LEMBERG <wl@gnu.org>
460 * doc/Makefile.sub (CLEANADD): Remove all files created by
461 running `make groff.{pdf,dvi}'.
463 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
466 2003-06-30 Werner LEMBERG <wl@gnu.org>
468 * Makefile.in (SHELL): Define as @SHELL@.
469 (mkinstalldirs): Use $(SHELL).
470 (MDEFINES): Add $(SHELL).
471 * Makefile.comm (SHELL): Removed.
473 2003-06-29 Werner LEMBERG <wl@gnu.org>
475 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
476 The X11 documentation files use them.
477 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
479 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
481 * tmac/e.tmac (@C): Handle .ad also.
483 2003-06-12 Werner LEMBERG <wl@gnu.org>
485 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
487 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
488 Assign `n' even here. It is possible to construct a node
489 immediately following an escape character:
497 2003-06-10 Werner LEMBERG <wl@gnu.org>
499 * README.WIN32: Removed.
502 2003-06-07 Werner LEMBERG <wl@gnu.org>
504 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
506 2003-06-05 Werner LEMBERG <wl@gnu.org>
508 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
509 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
511 2003-06-03 Werner LEMBERG <wl@gnu.org>
513 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
514 is done by the calling function.
516 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
518 * tmac/X.tmac: Fix definition of `em'.
520 2003-05-22 Werner LEMBERG <wl@gnu.org>
522 * src/roff/troff/input.cc (return_macro_request): Fix detection of
525 2003-05-18 Werner LEMBERG <wl@gnu.org>
527 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
528 to make items work which consist only of a tag.
530 2003-05-17 Werner LEMBERG <wl@gnu.org>
532 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
533 aren't stretched in a tag (this can fail with unformatted boxes).
534 Instead, insert a break and go back one line.
536 2003-05-16 Werner LEMBERG <wl@gnu.org>
538 * src/roff/troff/input.cc (return_macro_request): If called with
539 argument pop macro twice. We need this to trace `return'.
541 * tmac/trace.tmac: Handle `return'.
544 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
547 2003-05-15 Larry Kollar <kollar@alltel.net>
549 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
550 registers `FPS', `FVS', and `FPD'.
552 2003-05-15 Werner LEMBERG <wl@gnu.org>
554 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
557 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
559 * tmac/groff_mdoc.man: Slight improvements.
561 2003-05-03 Werner LEMBERG <wl@gnu.org>
563 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
564 `doc-header-space' after header line if register `cR' is set.
566 2003-05-02 Werner LEMBERG <wl@gnu.org>
570 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
572 * tmac/doc-common (Nd): Use \[em].
574 2003-05-01 Werner LEMBERG <wl@gnu.org>
576 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
577 doc-footer-space): Initialize to 0.5i.
578 (doc-setup-page-layout): Don't set doc-header-space and
581 2003-04-30 Werner LEMBERG <wl@gnu.org>
583 * REVISION: Set to 1.
585 * doc/pic.ms: Document possible problems with `figname'.
587 2003-04-29 Werner LEMBERG <wl@gnu.org>
589 Version 1.19 released
590 =====================
592 * VERSION: Set to 1.19.
593 * REVISION: Set to 0.
594 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
596 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
597 Define charset as `US-ASCII' in html output.
599 * tmac/www.tmac (ULE): Add missing scaling indicator.
601 * win32-diffs: Removed.
603 2003-04-28 Werner LEMBERG <wl@gnu.org>
605 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
607 Document how to insert discardable whitespace with `.ss'.
609 2003-04-27 Werner LEMBERG <wl@gnu.org>
611 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
612 work with plain TeX also.
614 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
616 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
618 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
621 2003-04-24 Werner LEMBERG <wl@gnu.org>
623 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
624 vbox with positive height and zero depth if in TeX mode.
626 * NEWS: Document glyph name changes for grodvi and grolj4.
628 2003-04-23 Werner LEMBERG <wl@gnu.org>
630 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
633 2003-04-21 Werner LEMBERG <wl@gnu.org>
635 HP-UX 10.20 has `snprintf' but it isn't declared.
637 * configure.ac: Add declaration test for snprintf.
638 * configure: Regenerated.
639 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
640 * src/include/config.hin: Regenerated.
642 2003-04-19 Werner LEMBERG <wl@gnu.org>
644 Add keyword `figname' to pic, specifying the name of the picture
645 box in TeX mode. Based on a patch from William J Poser
646 <wjposer@unagi.cis.upenn.edu>.
648 * src/preproc/pic/pic.y: New token `FIGNAME'.
649 (macro_name): New rule of type <str>.
650 (placeless_element): Handle `FIGNAME'.
651 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
652 * src/preproc/pic/main.cpp (graphname): New global variable.
653 (do_picture): Initialize `graphname'.
654 * src/preproc/pic/pic.h: Updated.
655 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
658 (tex_output::text): Beautify output.
659 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
660 `shaded' and `outlined' unconditionally.
661 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
664 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
665 greater is necessary.
667 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
669 Add option -r to soelim to avoid emission of `.lf' lines.
670 Add option -t to produces TeX comment lines instead of `.lf' lines.
672 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
675 (main): Handle `-r' and `-t'.
676 (set_location): Handle `raw_flag' and `tex_flag'.
677 * src/preproc/soelim/soelim.man, NEWS: Updated.
679 2003-04-17 Werner LEMBERG <wl@gnu.org>
681 * tmac/hyphenex.sh: Replaced with...
682 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
685 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
686 if --quiet is used for the configure script.
687 * configure: Regenerated.
689 2003-04-16 Werner LEMBERG <wl@gnu.org>
691 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
692 Add `const' to second argument.
693 (html_printer::add_table_end): Add `const' to argument.
694 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
695 `const' to arguments.
696 * src/devices/grohtml/html-text.h: Updated.
698 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
699 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
702 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
703 cast for integer constant.
705 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
706 (writeNbytes): Add `const' to first argument.
707 (writeString): Add `const' to argument.
708 (char_buffer::can_see): Add `const' to third argument.
709 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
711 * src/preproc/html/pushback.h: Updated.
713 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
714 (include_path_append): Add `const' to argument.
717 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
719 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
720 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
722 (unicode_decompose_init::unicode_decompose_init): Updated.
723 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
725 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
726 * src/roff/troff/input.cc (process_startup_file): Add `const' to
729 * tmac/hyphenex.sh: Make script more portable by using a here
732 2003-04-15 Werner LEMBERG <wl@gnu.org>
734 Renamed all `*.cc' files to `*.cpp'.
735 Updated all configuration files, makefiles, and documentation.
737 2003-04-14 Werner LEMBERG <wl@gnu.org>
739 * tmac/hyphenex.sh: Slight improvements.
741 2003-04-13 Werner LEMBERG <wl@gnu.org>
743 * font/devascii/R.proto, font/devcp1037/R.proto,
744 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
745 character slots with unnamed glyphs.
747 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
748 (an-first): New global variable.
749 (an-header): Emit vertical space between multiple man pages.
751 2003-04-11 Werner LEMBERG <wl@gnu.org>
753 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
756 2003-04-10 Werner LEMBERG <wl@gnu.org>
760 2003-04-10 Bernd Warken <bwarken@mayn.de>
762 * doc/webpage.ms: Improved.
764 2003-04-09 Werner LEMBERG <wl@gnu.org>
766 Add register \n[.height] which returns the value of \H.
767 Add register \n[.slant] which returns the value of \S.
769 * src/roff/troff/env.cc (init_env_requests): Implement.
770 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
773 2003-04-08 Werner LEMBERG <wl@gnu.org>
775 * tmac/html.tmac: Move some of the data into html-end.tmac.
776 Remove most of the character translations for eqn since html fonts
777 now cover those characters.
779 * tmac/html-end.tmac: New file.
780 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
781 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
782 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
784 2003-04-07 Werner LEMBERG <wl@gnu.org>
786 * man/groff_out.man: Document negative values of `N' if -Thtml is
789 2003-04-06 Werner LEMBERG <wl@gnu.org>
791 * Makefile.comm (depend.temp): Check location of YTABC.
793 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
795 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
797 (groff_bin_path): Rename to GROFF_BIN_PATH.
798 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
799 * doc/Makefile.in (TROFFBIN): New variable for troff
801 (GROFFBIN): New variable for groff binary path.
802 (groff_bin_path): Rename to GROFF_BIN_PATH.
803 (TROFF): Use TROFFBIN.
804 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
805 * doc/Makefile.sub (GROFFBIN): New variable for groff
807 (groff_bin_path): Rename to GROFF_BIN_PATH.
808 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
810 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
812 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
813 * Makefile.dev (all): Depend on DEVSCRIPTS.
814 (install_dev): Likewise.
815 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
817 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
818 (DEVGENSCRIPTS): New variable to hold generated scripts.
820 2003-04-05 Werner LEMBERG <wl@gnu.org>
822 * src/libs/libdriver/input.cc (IntArray::operator[],
823 IntArray::get_data): Remove meaningless `const' in return value.
825 * README.CVS: New file.
827 2003-04-04 Werner LEMBERG <wl@gnu.org>
829 Check for stdint.h in C++, not in C.
831 * aclocal.m4 (GROFF_STDINT_H): New function,
832 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
834 * configure, src/include/config.hin: Regenerated.
835 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
838 Fix handling of in grohtml. To do this, troff emits `N'
839 with a negative value, representing the width of the unbreakable
840 space (only for -Thtml). grohtml then converts this back to
841 and uses the value of N as its width.
843 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
844 unbreakable_space_node::tprint): Emit `N-<width>'.
845 * src/include/printer.h (printer::set_numbered_char): Make it
847 Make members `font_table' and `nfonts' protected instead of private.
848 * src/devices/grohtml/post-html.cc
849 (html_printer::set_numbered_char): New member function.
852 * src/libs/libgroff/maxfilename.cc:
853 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
855 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
858 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
860 * man/roff.man: Small fixes.
862 2003-04-03 Werner LEMBERG <wl@gnu.org>
864 Make groff independent from locale's numeric settings.
866 * configure.ac: Check for `setlocale'.
867 * configure, src/include/config.hin: Regenerated.
869 * src/include/lib.h: Handle HAVE_SETLOCALE.
871 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
872 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
873 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
876 * doc/groff.texinfo: Change dir category to `Typesetting'.
877 (Man font macros): Mention that there is no space between arguments
880 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
881 (*printer::change_color, *printer::change_fill_color): Add missing
884 2003-04-02 Werner LEMBERG <wl@gnu.org>
886 * src/devices/grohtml/html-table.cc (html_table::emit_col,
887 html_table::is_gap): Compute table widths after converting border
888 positions to avoid rounding errors.
890 2003-04-01 Werner LEMBERG <wl@gnu.org>
892 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
893 `space_emitted' properly.
895 2003-03-31 Werner LEMBERG <wl@gnu.org>
897 * src/devices/grohtml/html-table.cc: Fix column width calculation.
898 (html_table::set_linelength): Don't add 1.
899 (html_table::add_indent): Don't subtract 1.
901 * tmac/html.tmac: Set default page offset to zero.
903 2003-03-30 Werner LEMBERG <wl@gnu.org>
905 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
907 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
908 unbreakable_space_node::tprint): New functions.
909 (troff_output_file): Make space_char_hmotion_mode::tprint and
910 unbreakable_space_node::tprint to friends.
911 * src/roff/troff/node.h: Updated.
913 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
914 in the HTML standard).
916 2003-03-29 Werner LEMBERG <wl@gnu.org>
918 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
919 Otherwise, the following code
928 produces `x a' instead of `xa'. This is a temporary fix, disabling
929 font changes in diversions for -Thtml.
931 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
933 (an-do-tag-html): Merge with ...
934 (an-do-tag): This macro.
935 Change code slightly to circumvent grohtml bug.
936 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
938 * src/devices/grohtml/html-table.cc (html_table::emit_col,
939 html_table::is_gap): Round `width' properly.
941 * tmac/html.tmac: Provide some default layout parameters for
944 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
947 2003-03-28 Werner LEMBERG <wl@gnu.org>
949 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
951 2003-03-27 Werner LEMBERG <wl@gnu.org>
953 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
956 2003-03-20 Werner LEMBERG <wl@gnu.org>
958 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
960 * doc/groff.texinfo: Updated.
962 2003-03-19 Werner LEMBERG <wl@gnu.org>
964 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
965 TOKEN_END_TRAP>: Reset `have_input'.
967 2003-03-18 Werner LEMBERG <wl@gnu.org>
969 * src/roff/groff/groff.man: Mention groff_trace man page.
971 2003-03-16 Werner LEMBERG <wl@gnu.org>
973 * Makefile.in (LIBEXT): New variable to indicate the file extension
974 of library files. Computed heuristically from $(OBJEXT).
975 (MDEFINES): Add $(LIBEXT).
976 * Makefile.lib, Makefile.comm: Use it.
978 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
979 overlong lines into smaller chunks.
980 (get_binary): New function.
982 * src/utils/pfbtops/pfbtops.man: Updated.
984 2003-03-15 Colin Watson <cjwatson@debian.org>
986 * src/roff/groff/groff.man: Minor syntax fix.
988 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
990 * src/devices/grops/ps.cc (ps_printer::media_set,
991 ps_printer::~ps_printer): Handle zero paper width and length.
993 2003-03-13 Werner LEMBERG <wl@gnu.org>
995 Add options -p and -l to grodvi.
997 * src/devices/grodvi/dvi.cc: Include paper.h.
998 (landscape_flag, user_paper_length, user_paper_width): New global
1000 (dvi_printer::begin_page): Emit `papersize' special.
1001 Set color after initialization of `cur_h' and `cur_v'.
1002 (main): Add options `-l' and `-p'.
1003 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1004 * src/devices/grodvi/grodvi.man, NEWS: Updated.
1006 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1008 2003-03-12 Werner LEMBERG <wl@gnu.org>
1010 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1011 * man/groff_tmac.man: This man page.
1012 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1015 * tmac/X.tmac: Don't load pspic.tmac.
1017 2003-03-11 Werner LEMBERG <wl@gnu.org>
1019 Make variable `pr' local to libdriver/input.cc. Based on a patch
1020 by Bernd Warken <bwarken@mayn.de>.
1022 * src/include/driver.h (pr): Removed.
1024 * src/libs/libdriver/input.cc (pr): New global variable.
1025 (do_file): Deallocate `pr'.
1026 * src/libs/libdriver/printer.cc (pr): Removed.
1028 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1029 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1030 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1031 (main): Don't delete `pr'.
1033 2003-03-10 Werner LEMBERG <wl@gnu.org>
1035 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
1036 * tmac/papersize.tmac: New file.
1037 * tmac/troffrc: Include `papersize.tmac'.
1038 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
1039 * tmac/an-old.tmac: Set LT to LL by default.
1041 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
1042 doc/groff.texinfo: Updated.
1044 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
1045 bug which caused all odd iso papers to have wrong dimensions.
1047 * src/devices/grops/ps.cc (user_paper_width): New global variable.
1048 (main) <'p'>: Set `user_paper_width' also.
1049 (ps_printer::media_width, ps_printer::media_height): Use values
1050 given with option `-p'.
1052 2003-03-09 Werner LEMBERG <wl@gnu.org>
1054 * src/include/nonposix.h: Provide default for SET_BINARY.
1056 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
1057 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
1060 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
1061 (main): Treat \r\n as \n.
1063 2003-03-08 Werner LEMBERG <wl@gnu.org>
1065 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
1066 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
1068 2003-03-07 Werner LEMBERG <wl@gnu.org>
1070 Added support to access more than 256 glyphs in Type 1 fonts.
1072 * src/devices/grops/ps.cc (subencoding): New structure.
1073 (style): Add `sub' field.
1075 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
1076 Add `set_subencoding', `get_subfont' and `encode_subfont' member
1079 (ps_printer::set_char): Use `set_subencoding'.
1080 (make_subencoding_name): New function.
1081 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
1082 (ps_printer::~ps_printer): Emit subencoding definitions.
1084 * src/devices/grops/psrm.cc (valid_input_table): New array to
1085 properly support EBCDIC.
1086 (white_space): Add `\f'.
1087 (ps_get_line): Change first argument to be of type `string &'.
1088 Updated all callers.
1089 This allows to get lines of arbitrary length.
1090 Use `valid_input_table'.
1091 Remove warning about non-conforming PS line length. This seems
1092 not to be of great importance -- for example, dvips don't emit
1094 (PS_LINE_MAX): Removed.
1095 (matches_comment): Change first argument to be of type `string &'.
1097 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
1099 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1100 %AGL_to_unicode, %default_ligatures): New hash tables.
1101 Read all map entries.
1102 Add unencoded characters.
1103 Check for default ligatures if there are no `L' entries.
1104 Print all kern entries.
1105 Print all characters in charset.
1106 * src/utils/afmtodit/afmtodit.man: Updated.
1108 * font/devps/*: Regerated all fonts.
1110 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
1111 of characters, just use `.trin'. Otherwise the mapping depends
1112 on the font encoding.
1113 * tmac/ps.tmac: Add `fi' and `fl'.
1114 Improve `Fi' and `Fl'.
1115 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
1116 * tmac/Xps.tmac: Fix `em'.
1120 2003-03-04 Werner LEMBERG <wl@gnu.org>
1122 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1125 2003-03-03 Werner LEMBERG <wl@gnu.org>
1127 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1129 * font/devps/generate/textmap: Remove entry `similarequal'.
1130 * font/devps/symbolmap: Updated.
1132 2003-03-02 Werner LEMBERG <wl@gnu.org>
1134 * src/libs/libgroff/font.cc (font::load): Fix error message for
1137 * src/devices/grops/grops.man: Improve documentation of the -b
1140 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1141 `ascii' and `cp1047'.
1143 2003-03-01 Werner LEMBERG <wl@gnu.org>
1145 Document composite glyphs and the `composite' request.
1147 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
1149 2003-02-28 Werner LEMBERG <wl@gnu.org>
1151 * font/devdvi/generate/ec.map: Add some more Unicode entities.
1152 * font/devdvi/*EC: Updated.
1154 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1155 * tmac/latin1 (latin1-tr): Undo any previous mapping.
1156 * tmac/troffrc: Load `composite.tmac'.
1157 * tmac/Makefile.sub (NORMALFILES): Updated.
1159 * doc/groff.texinfo (Input Encodings): New section.
1162 2003-02-27 Werner LEMBERG <wl@gnu.org>
1164 * doc/texinfo.tex: New version 2003-02-11.06.
1166 * tmac/doc-common (Dt): Don't emit warning for unknown section.
1167 * tmac/groff_mdoc.man: Fix description of `Dt'.
1169 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
1171 * font/devps/prologue.ps: Fix for included Postscript that does
1172 a setpagedevice -- which is now safely ignored.
1176 * src/devices/grops/ps.cc: Now sets the page size in the generated
1177 document. This is done in two ways: Via a %%-comment for gv and
1178 the like, and via a PageSize and setpagedevice for programs that
1179 understands Postscript proper, like ps2pdf.
1181 * src/devices/grops/ps.h: New broken-flag to avoid page size
1182 definition, if required.
1184 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1186 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1187 Not really necessary due to the fix in prologue.ps, but cleaner:
1188 Such information does not belong in an .eps file.
1190 * doc/Makefile.sub: See doc/Makefile.in.
1192 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
1194 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1195 instead of P1 since the latter is broken in some versions of netpbm.
1196 * configure: Updated.
1198 2003-02-26 Larry Kollar <kollar@alltel.net>
1200 Make man pages more customizable.
1202 * tmac/an-old.tmac (FT): New register holding footer distance from
1204 (HF): New string holding the default heading font.
1205 (TH): Handle registers `IN' and `SN' set on the command line.
1207 (PT, BT): New strings to customize header and footer lines.
1208 (an-header, an-footer): Use them.
1210 * tmac/groff_man.man: Document changes.
1212 * doc/groff.texinfo: Document man changes.
1213 Document Ultrix extensions of man.
1215 2003-02-26 Werner LEMBERG <wl@gnu.org>
1217 * src/roff/troff/input.cc (do_width, do_if_request): Reset
1218 `have_input' after changing back to old environment.
1220 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1221 function up to be defined before first call. This is necessary to
1222 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1224 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1225 the default font directory also. Based on a patch from James
1226 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1227 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1228 * src/utils/afmtodit/afmtodit.man: Document it.
1232 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1234 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
1236 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1237 (GROFF_PNMTOPS_NOSETPAGE): New macro.
1238 * configure.ac: Use it.
1239 * configure: Regenerated.
1240 * Makefile.in: Updated.
1242 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1243 (CLEANADD): Add www.tmac-sed.
1244 (pnmtops_nosetpage): Define default.
1245 (install_data): Handle www.tmac-sed and substitute
1246 @PNMTOPS_NOSETPAGE@.
1247 (stamp-sed): Add www.tmac.
1248 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1249 It now breaks URLs at suitable places.
1250 (www:substring_ok): New register set by...
1251 (www:@test_substring): New macro.
1252 (www:error): New alias to www-error.
1253 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1255 (URL): Use www:url_breaks.
1256 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1257 (CDS, CDE): New macros.
1259 2003-02-25 Werner LEMBERG <wl@gnu.org>
1261 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1264 2003-02-24 Werner LEMBERG <wl@gnu.org>
1266 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1267 can be negative also.
1269 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1271 (read_char_table): Avoid negative ascenders.
1272 (output_charset): Add cast.
1273 * font/devlj4/*: Regenerated.
1275 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1278 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1279 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1281 * font/devdvi/*: Regenerated.
1283 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
1284 normal width, while the previously used characters (U+2329 and
1285 U+232A) are classified as wide due to canonical equivalence with the
1286 CJK punctuation characters U+3008 and U+3009.
1288 * font/devutf8/R.proto: Updated.
1289 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1291 * man/groff_char.man: Simplify handling of table traps by
1292 introducing `start block' and `end block' macros.
1293 (Ns, Ne, 2s, 2e, Ds, De): New macros.
1294 (DL): Make it work with Unix troff also.
1295 Fix code values of `la' and `ra'.
1297 * tmac/dvi.tmac: Define `<>' for CW and CWI.
1299 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
1301 * src/devices/grohtml/post-html.cc (element_list::~element_list):
1302 New destructor, fixing a major memory leak.
1304 2003-02-22 Werner LEMBERG <wl@gnu.org>
1306 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1307 to be in conformance with Unicode 3.0 and newer.
1309 * font/devlj4/generate/text.map: Add `Eu'.
1310 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1311 * font/devlj4/S: Regenerated.
1313 * man/groff_char.man: Completely rewritten.
1315 * doc/groff.texinfo: Fix description of request and macro arguments.
1317 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
1321 * src/devices/grohtml/html-table.cc (html_table::~html_table):
1322 Deallocate `columns' list.
1323 * src/devices/grohtml/post-html.cc (char_block::~char_block):
1325 (text_glob::text_glob_html, text_glob::text_glob_special,
1326 text_glob::text_glob_line, text_glob::text_glob_auto_image,
1327 text_glob::text_glob_tag): Avoid memory leaks.
1328 (text_glob::remember_table): Free memory before reassigning.
1330 2003-02-19 Werner LEMBERG <wl@gnu.org>
1332 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1333 alias `hbar'), the Planck constant over two pi.
1335 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1336 `+e' for position 34.
1337 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1338 `u2662' and `u2661'.
1339 * font/devdvi/{MI,S}: Regenerated.
1340 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1341 * font/devlbp/*: Add `hbar' alias.
1342 * font/devlj4/generate/special.map: Ditto.
1343 * font/devlj4/S: Regenerated.
1344 * font/devps/generate/symbolchars: Add `+e'.
1345 * font/devps/generate/textmap: Fix PS name for `-h'.
1347 * font/devps/symbolmap: Regenerated.
1349 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1351 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1353 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1356 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1358 * tmac/tty-char.tmac: Add `+e'.
1360 2003-02-17 Werner LEMBERG <wl@gnu.org>
1362 Another round trying to really fix problems with `have_input'.
1364 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1365 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1367 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1368 handling if both foreground and background colors are default.
1370 * doc/groff.texinfo (Debugging): Document .lf differences to
1373 2003-02-16 Werner LEMBERG <wl@gnu.org>
1375 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1376 null-bytes in created string.
1378 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1379 alias_macro, lookup_request): Improve warning messages.
1381 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1383 Free `last_image_filename'.
1385 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1387 (imageList::createPage, imageList::createImage): Use `free', not
1389 (imageItem::~imageItem): Free `imageName'.
1390 (addRegDef): Use `strsave', not `strdup'.
1391 (get_resolution): Free `pathp'.
1393 2003-02-15 Werner LEMBERG <wl@gnu.org>
1395 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1398 2003-02-14 Werner LEMBERG <wl@gnu.org>
1400 Add memory management for colors to deallocate unnamed colors
1403 * src/include/color.h (color): New members `free_list' and `next'.
1404 New member functions `new' and `delete'.
1406 * src/libs/libgroff/color.cc: Implement it.
1408 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1409 for array size of new operator.
1411 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1412 redundant comparison.
1414 * src/roff/troff/input.cc (word_space_node::reread,
1415 hmotion_node::reread): Avoid warning about unused parameter.
1416 (reset_output_registers): Remove redundant parameter.
1417 (define_color): Undo change 2003-02-12.
1419 * src/roff/troff/reg.h: Updated.
1421 * src/roff/troff/node.cc (troff_output_file::really_print_line,
1422 output_file::put_filename, real_output_file::really_put_filename,
1423 ascii_output_file::really_print_line,
1424 break_char_node::get_hyphen_list): Avoid warning about unused
1426 (suppress_node::tprint): Updated.
1428 * configure.ac: Check declaration for rand() and srand().
1429 * configure: Regenerated.
1431 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1433 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1436 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1437 to avoid compiler warnings.
1439 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1442 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1444 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1446 Updated all callers.
1448 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1450 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1451 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1453 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1454 Parameter is unused.
1455 (html_printer::add_table_end): Define parameter conditionally.
1456 * src/devices/grohtml/output.cc (simple_output::special): Parameter
1459 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1460 (lbp_printer::set_char): Last parameter is unused.
1462 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1464 2003-02-13 Werner LEMBERG <wl@gnu.org>
1466 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1467 Make \D'f ...' move horizontally again for backwards compatibility.
1468 Replace it with \D'Fg ...' where appropriate to avoid dependency
1469 on horizontal resolution.
1471 * src/roff/troff/input.cc (do_get_long_name): New function.
1472 (get_long_name): Call it.
1474 (read_draw_node): Handle `\D'Fx ...' by calling ...
1475 (read_color_draw_node): New function.
1477 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1479 Pass it to `do_get_long_name' which is used instead of
1482 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1483 unnecessary value guard.
1484 (parse_D_command) <'f'>: Add horizontal shift.
1486 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1487 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1488 (FILL_MAX): Removed.
1490 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1493 2003-02-12 Werner LEMBERG <wl@gnu.org>
1495 * src/roff/troff/input.cc (do_name_test, do_expr_test,
1496 do_zero_width): Push `\n' if closing delimiter is missing.
1498 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1499 <'F'>: Make \F non-transparent at the beginning of line.
1500 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1501 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1504 (define_color): Free color in case of reassignment.
1506 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1507 @DefescListEnd): Use @Var, not @var.
1510 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1512 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1513 `shaded' and `outlined' arrays.
1514 (object_spec::object_spec): Initialize `shaded' and `outlined'.
1515 (graphic_object::set_fill_color, graphic_object::set_outline_color):
1517 (closed_object::set_fill_color): Ditto.
1518 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1520 (troff_output::reset_color): Use a_delete instead of free.
1521 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1523 2003-02-11 Werner LEMBERG <wl@gnu.org>
1525 * doc/groff.texinfo: Improve documentation of `ad'.
1526 Document that \D'f...' is dependent on the horizontal resolution.
1527 * man/groff_diff.man: Improve documentation of \D'f...'.
1529 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1530 compensating \h'...' for \D'f ...' since the latter no longer moves
1532 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1534 2003-02-10 Werner LEMBERG <wl@gnu.org>
1536 Improve error messages for `x F' (and `F') commands.
1538 * src/include/error.h: Add declaration for
1539 `current_source_filename'.
1540 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1541 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1542 parameter for source file string.
1543 Updated all callers.
1545 * src/libs/libdriver/input.cc: Add `current_source_filename'.
1546 (remember_source_filename): New function.
1547 (parse_x_command <'F'>, do_file <'F'>): Use it.
1549 2003-02-09 Werner LEMBERG <wl@gnu.org>
1551 Make grotty not emit warnings about unknown colors more than
1554 * src/devices/grotty/tty.cc: Include `ptable.h'.
1555 (TTY_MAX_COLORS): Removed.
1556 (DEFAULT_COLOR_IDX): Defined to -1.
1557 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1558 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1559 Change `tty_colors' to be a ptable.
1560 First arg of `put_color' is now `char'.
1561 New functions `make_rgb_string' and `tty_color'.
1562 (tty_printer::tty_printer): Use `tty_color'.
1563 (tty_printer::color_to_idx): Return value is now `char'.
1566 * src/include/color.h (color): Add `print_color' member function.
1567 * src/libs/libgroff/color.cc (color::print_color): Implement it.
1569 2003-02-08 Werner LEMBERG <wl@gnu.org>
1573 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1576 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1577 assume that value has been allocated with `new[]', thus use
1578 `a_delete' for deallocation.
1580 * src/libs/libdriver/input.cc (get_integer_arg,
1581 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1584 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1585 * src/libs/libgroff/nametoindex.cc
1586 (character_indexer::named_char_index): Use `new <type>[1]'.
1588 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1590 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1591 (split_text): Use `a_delete'.
1593 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1596 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1597 harmless memory leak.
1598 (hyphen_trie::read_patterns_file): Initialize `buf'.
1599 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1600 Initialize `current_fill_color'and `current_glyph_color'.
1601 * src/roff/troff/glyphuni.cc
1602 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1603 * src/roff/troff/uniuni.cc
1604 (unicode_decompose_init::unicode_decompose_init): Ditto.
1605 * src/roff/troff/uniglyph.cc
1606 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1608 2003-01-26 Werner LEMBERG <wl@gnu.org>
1610 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1611 `access' before calling `unlink'.
1612 (do_file): Handle __EMX__.
1614 * src/include/nonposix.h: Handle __EMX__.
1616 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1617 (fontpath,tmacpath): Use it.
1619 Sorted alphabetically.
1621 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1623 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1626 2003-01-27 Werner LEMBERG <wl@gnu.org>
1628 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1629 New files, copied from gnulib.
1630 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1631 * configure.ac: Updated.
1632 * configure: Regenerated.
1634 * src/include/config.hin: Regenerated.
1635 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1636 Don't define `strcasecmp' as `strcmp'.
1637 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1638 Dont define `strncasecmp' as `strncmp'.
1640 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1643 2003-01-26 Werner LEMBERG <wl@gnu.org>
1645 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1648 2003-01-25 Werner LEMBERG <wl@gnu.org>
1650 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1652 2003-01-24 Werner LEMBERG <wl@gnu.org>
1654 Add US-english hyphenation exceptions (converted from Barbara
1655 Beeton's hyphenation exception log reports which appear irregularly
1658 * tmac/hyphen.us: Updated to latest version.
1659 * tmac/README: Updated.
1660 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1661 * tmac/troffrc: Load `hyphenex.us'.
1662 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1663 * doc/groff.texinfo: Updated.
1665 2003-01-23 Werner LEMBERG <wl@gnu.org>
1667 Improve hyphenation slightly. This is a first step in redesigning
1668 the hyphenation algorithm to make it more flexible (e.g. allowing
1669 kerns and ligatures between the hyphenation character and the
1670 following character -- while not used normally in English, other
1671 languages like German would benefit).
1673 * src/roff/troff/env.cc (environment::hyphenate_line): Use
1674 assertion instead of if-clause.
1675 Let `get_hyphen_list' return the number of involved characters in
1676 the hyphenation pattern instead of computing it directly (which
1677 often yields too small values).
1678 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1679 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1682 2003-01-22 Werner LEMBERG <wl@gnu.org>
1684 Fixing a bug which caused groff to hang if the hyphenation exception
1685 dictionary tried to grow.
1687 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1688 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1689 pointer to dictionary.
1691 2003-01-20 Werner LEMBERG <wl@gnu.org>
1693 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1694 negative left italic correction.
1695 * src/utils/afmtodit/afmtodit.man: Document it.
1697 * font/devps/generate/Makefile (RFLAG): Add `-m'.
1698 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1699 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1703 2003-01-16 Werner LEMBERG <wl@gnu.org>
1707 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
1709 * src/preproc/refer/refer.man: Mention REFER environment variable.
1711 2003-01-05 Werner LEMBERG <wl@gnu.org>
1713 Similar to \[is], the square root glyph (\[sr]) and the square root
1714 extension glyph (\[radicalex]) are now text symbols. The new
1715 mathematical versions are called \[sqrt] and \[sqrtex],
1718 * font/devX*/S: Regenerated.
1719 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1720 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1721 * font/devdvi/EX, font/devdvi/S: Regenerated.
1722 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1723 * font/devlj4/generate/special.map: Add `sqrt'.
1724 * font/devlj4/S: Regenerated.
1725 * font/devps/generate/textmap: Add `sqrt'.
1726 * font/devps/S, font/devps/symbolmap: Regenerated.
1728 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1729 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1730 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1731 overlap horizontally.
1733 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1734 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1737 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1738 and `sqrtex' are overlapping glyphs.
1740 2003-01-04 Werner LEMBERG <wl@gnu.org>
1742 * font/devdvi/generate/texsy.map: Add `is'.
1743 * font/devps/symbolmap: Regenerated.
1744 * font/devdvi/*TC, MI, S: Regenerated.
1746 * tmac/dvi.tmac: Remove `is'.
1748 2003-01-03 Werner LEMBERG <wl@gnu.org>
1750 `is' is now a text symbol (only relevant for dvi). The math variant
1751 can be accessed with `integral'.
1753 * font/devX*/S: Regenerated.
1754 * font/devdvi/generate/texex.map: Remove `is'.
1755 * font/devdvi/EX: Updated.
1756 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1757 * font/devlj4/generate/special.map: Ditto.
1758 * font/devlj4/S: Regenerated.
1759 * font/devps/generate/textmap: Add `integral'.
1760 * font/devps/S: Regenerated.
1762 * tmac/dvi.tmac: Define `is'.
1764 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1766 * src/preproc/tbl/main.cc (process_format): Fix error message.
1768 2003-01-02 Werner LEMBERG <wl@gnu.org>
1770 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1771 * font/devps/textmap: Fix entries for `ne' and `nc'.
1772 * font/devps/symbolmap: Regenerated.
1774 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1775 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1776 `38', `58', `78', `-+', `|=', `nc', `ne'.
1778 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1779 Use `schar' for `aq'.
1780 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1781 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1782 * tmac/tty.tmac: Add `ne'.
1784 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1785 for fallback glyphs.
1787 2002-12-29 Werner LEMBERG <wl@gnu.org>
1791 * font/devX*/*: Regenerated.
1792 * font/devdvi/generate/ec.map: Remove `eq'.
1793 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1794 Assign `|=' to position 39.
1795 * font/devdvi/*EC, S: Regenerated.
1796 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1797 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1798 Assign `|=' to position 549.
1799 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1801 Add `uni2243' for `|='.
1803 * tmac/ec.tmac: Add `eq'.
1804 * tmac/dvi.tmac: Add `=~'.
1805 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1808 2002-12-21 Werner LEMBERG <wl@gnu.org>
1810 * font/devdvi/generate/tc.map: Remove `**'.
1811 * font/devdvi/*TC: Regenerated.
1812 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
1814 * font/devutf8/NOTES: Updated.
1816 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
1817 Don't give default parameter to `set_macro'.
1818 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
1819 instead of `set_macro'.
1820 (charinfo::setx_macro): Implement it.
1821 (charinfo::set_macro): Don't change `mode'.
1823 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
1824 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
1825 * tmac/dvi.tmac: Define `!=' with `.schar'.
1827 2002-12-20 Werner LEMBERG <wl@gnu.org>
1829 * font/devX*/S: Regenerated.
1830 * font/devdvi/generate/ec.map: Remove `pl'.
1831 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
1832 * font/devdvi/*{TC,EC}: Regenerated.
1833 * font/devhtml/R.proto: Add `-+'.
1834 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
1835 * font/devlbp/*: Remove `or'.
1836 * font/devlj4/generate/special.map: Remove `or'.
1837 * font/devlj4/S: Regenerated.
1838 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
1839 `seveneighths', `threeeighths'.
1841 Replace `minusplus' with `uni2213'.
1842 * font/devps/symbolmap: Regenerated.
1843 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
1846 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
1848 * src/roff/troff/node.cc (troff_output_file::put_char_width):
1849 Call glyph_color and fill_color even if tcommand_flag isn't set.
1850 (make_node, node::add_char): Check not ci->is_fallback but
1853 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
1854 * tmac/ec.tmac: Add .rchar entry for `f/'.
1855 Don't remove `12', `14', `34'.
1856 Define `pl' to be always roman.
1857 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
1858 Define `18', `38', `58', `78'.
1859 * tmac/tty.tmac: Add `-+'.
1860 * tmac/dvi.tmac: Define `f/'.
1861 (dvi-frac): Use `f/'.
1862 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
1863 Define `18', `38', `58', `78'.
1865 2002-12-15 Colin Watson <cjwatson@debian.org>
1867 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
1869 2002-12-10 Werner LEMBERG <wl@gnu.org>
1871 Add glyph `tno', a textual variant of `no'.
1873 * font/devX*/*: Regenerated.
1874 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
1875 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
1876 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
1877 * font/devdvi/*: Regenerated.
1878 * font/devlbp/*: Add `tno'.
1879 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
1880 * font/devlj4/*: Regenerated.
1881 * font/devps/generate/textmap: Replace `no' with `tno'.
1882 * font/devps/generate/symbolchars: Add `no'.
1883 * font/devps/*: Regenerated.
1885 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
1887 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
1888 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
1892 * tmac/dvi.tmac: Replace most `\\' with `\E'.
1893 Add definition for `sd'.
1894 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
1896 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
1898 2002-12-08 Werner LEMBERG <wl@gnu.org>
1900 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
1901 mode to avoid rounding errors.
1902 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
1904 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
1905 src/roff/troff/troff.man: Improve documentation of -T.
1907 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
1909 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
1910 (run_pipeline) [_WIN32]: Provide working function without `fork'.
1912 2002-12-06 Werner LEMBERG <wl@gnu.org>
1914 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
1915 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
1916 Scaling Euro.sansserif glyphs down to have the same height as
1918 Removed unnecessary points; added some extrema.
1920 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1923 2002-12-04 Werner LEMBERG <wl@gnu.org>
1925 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
1926 and `Euro.symbol.bold.slanted'.
1927 Improve some glyph offsets and widths.
1928 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1930 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
1932 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
1935 * tmac/europs.tmac: Updated to new glyph indices.
1936 Use Euro.symbol for font familiy `A'.
1938 * doc/groff.texinfo: Minor improvements.
1940 2002-12-02 Werner LEMBERG <wl@gnu.org>
1942 * font/devdvi/generate.tc.map: s/%O/%0/.
1943 * font/devdvi/*TC: Regenerated.
1945 * src/roff/troff/div.cc (init_div_requests): Sorted.
1947 * tmac/dvi.tmac: Remove `Ye'.
1948 * tmac/ec.tmac: Remove `Ye'.
1949 Add .rchar entry for `de'.
1951 * man/groff.man, man/groff_diff.man: Document register `.pe'.
1952 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
1955 2002-11-30 Werner LEMBERG <wl@gnu.org>
1957 Add PS font for various Euro glyphs.
1959 * font/devps/generate/freeeuro.sfd: New master font file for
1961 * font/devps/generate/sfdtopfa.pe: New conversion script for
1963 * font/devps/generate/Makefile (FONTS): Add `EURO'.
1964 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
1965 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
1967 * font/devps/EURO: Generated from `freeeuro.afm'.
1968 * font/devps/download: Add `freeuro.pfa'.
1969 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
1972 * tmac/europs.tmac: New file.
1973 * tmac/ps.tmac: Include `europs.tmac'.
1974 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
1976 2002-11-29 Werner LEMBERG <wl@gnu.org>
1978 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
1979 * font/devdvi/S: Regenerated.
1980 * font/devhtml/R.proto: Fix `CR' and `ci'.
1982 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
1984 * font/devps/symbolmap: Regenerated.
1985 * font/devutf8/R.proto: Fix `CR' and `ci'.
1987 * font/devutf8/NOTES: Updated.
1989 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
1992 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1994 * tmac/dvi.tmac: Add `lh' and `rh'.
1995 * tmac/Xps.tmac: Fix `lh' and `rh'.
1996 * tmac/X.tmac: Add `OK'.
1997 * tmac/lj4.tmac: Ditto.
1999 2002-11-24 Werner LEMBERG <wl@gnu.org>
2001 * font/devX*/S: Regenerated.
2002 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2003 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2004 * font/devdvi/generate/texsy.map: Remove `or' glyph.
2005 * font/devdvi/S: Regenerated.
2006 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2007 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2008 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2009 `bracketleftbt', `bracketrighttp', `bracketrightex',
2010 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2011 `braceex', `braceleftex', `bracerightex', `bracerighttp',
2012 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2014 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2015 * font/devutf8/NOTES: Updated.
2016 * font/devlj4/generate/special.map: Add glyph `braceex'.
2017 * font/devlj4/S: Regenerated.
2019 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2021 2002-11-14 Werner LEMBERG <wl@gnu.org>
2023 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2026 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2028 * doc/texinfo.tex: New version from texinfo 4.3.
2029 * doc/groff.texinfo: Updated for texinfo 4.3.
2030 Use @tie{} where appropriate.
2031 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2032 * font/devdvi/generate/tc.map: Remove `rn'.
2033 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2034 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2036 * font/devX100/*, font/devX100-12/*, font/devX75/*,
2037 font/devX75-12/*: Regenerated.
2039 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
2040 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
2041 Improve definition of `an'.
2042 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
2044 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
2045 * tmac/X.tmac: Add definition for `or'.
2046 * tmac/Xps.tmac: Undo change 2002-11-05.
2047 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
2049 2002-11-11 Werner LEMBERG <wl@gnu.org>
2051 * src/roff/troff/node.cc (troff_output_file::put_char): Always
2054 2002-11-10 Werner LEMBERG <wl@gnu.org>
2056 Added three new requests `schar', `fschar', and `rfschar'. `schar'
2057 defines a glyph which is searched after the check for fonts declared
2058 with `.special' (and before the check for all mounted special
2059 fonts). `fschar' defines a glyph for a particular font which is
2060 searched after the check for fonts declared with `.fspecial' (and
2061 before the check for fonts declared with `.special'). `rfschar'
2062 removes glyphs defined with `fschar'.
2064 * src/roff/troff/token.h (char_mode): New enum.
2065 Declare do_define_character.
2066 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
2068 (charinfo::is_fallback): Updated.
2069 (charinfo::is_special): New method.
2070 * src/roff/troff/input.cc (do_define_character): Add and use
2071 optional second parameter used as a prefix for font-specific glyph
2073 (define_character, define_fallback_character): Updated.
2074 (define_special_character): New function.
2075 (init_input_requests): Add `schar'.
2076 (charinfo::charinfo, charinfo::set_macro): Updated.
2077 * src/roff/troff/node.cc: Include `stringclass.h'.
2078 (make_glyph_node): Handle special glyphs defined with `.schar' and
2080 (define_font_special_character, remove_font_special_character): New
2082 (init_node_requests): Sorted.
2083 Add `fschar' and `rfschar'.
2084 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2085 Document new requests.
2087 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
2088 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
2090 2002-11-08 Werner LEMBERG <wl@gnu.org>
2092 Added new font `SC' (cmtex10) to devdvi.
2094 * devdvi/generate/Makefile (FONTS): Add `SC'.
2096 * devdvi/generate/textex.map: New map file for cmtex.
2098 * devdvi/Makefile.sub (DEVFILES): Updated.
2099 * tmac/dvi.tmac: Add fspecial entries for SC.
2100 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
2101 found before `S' since the font position of `SC' is lower due to the
2102 gaps in DESC's `font' line.
2103 * tmac/ec.tmac: Add a `special' call.
2106 * font/devhtml/R.proto: Remove double entry for `ti'.
2107 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
2108 * tmac/tty-char.tmac: Remove entry for `bq'.
2109 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
2110 * tmac/ec.tmac: Don't remove `aq' glyph.
2111 * tmac/X.tmac: Fix entry for `em'.
2112 Add entries for `fo' and `fc'.
2113 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
2115 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
2116 documentation of `special' and `fspecial' requests.
2118 2002-11-05 Werner LEMBERG <wl@gnu.org>
2120 * font/devascii/R.proto, font/devcp1047/R.proto,
2121 font/devlatin1/R.proto: Remove entry for `.i'.
2122 * font/devdvi/generate/textt.map: Add entry for `ad'.
2123 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2124 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2125 We need this for getting kerning values to compose `/l' and `/L'.
2126 * font/devdvi: Regenerated font definition files for CM fonts.
2127 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2128 * font/devutf8/R.proto: Ditto.
2129 Remove double entry for `ti'.
2131 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2132 for (groff) ligatures, `la', and `ra'.
2133 Add "'C", "'c", `IJ', and `ij'.
2134 Remove double entry for `ti'.
2135 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2137 Add "'C", "'c", `IJ', and `ij'.
2138 Fix entries for (groff) ligatures, `la', and `ra'.
2140 * tmac/ps.tmac (ps-achar): New macro.
2141 Define "'c" and "'C".
2142 * tmac/tty.tmac: Add entry for `.i'.
2143 * tmac/X.tmac (X-achar): New macro.
2144 Define "'c", "'C", and `:Y'.
2145 Add entries for `IJ' and `ij'.
2146 * tmac/Xps.tmac (Xps-achar): New macro.
2147 Define "'c" and "'C".
2148 Add entries for `IJ' and `ij'.
2149 * tmac/lbp.tmac (lbp-achar): New macro.
2150 Add fallback characters for all groff ligatures and many other
2152 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
2153 Add entries for `/l' and `/L'.
2154 Define "'c" and "'C".
2155 Add entries for `IJ' and `ij'.
2157 2002-11-02 Larry Kollar <kollar@alltel.net>
2159 * PROBLEMS: Document how to solve Mac OS X compilation problems.
2161 2002-11-02 Werner LEMBERG <wl@gnu.org>
2163 Adding support for composite glyphs: \[xxx yyy ...] and the
2164 `composite' request.
2166 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2167 to Unicode-based glyph names.
2168 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2169 glyph names to groff glyph names.
2170 * src/roff/troff/uniuni.cc: New file for canonically decomposing
2171 Unicode-based glyph names.
2172 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2173 for handling Unicode glyph names.
2174 * src/roff/troff/input.cc: Include unicode.h.
2175 (composite_glyph_name): New function.
2176 (token::next) <'['>: Handle Unicode glyph names and composite
2178 (composite_dictionary): New dictionary for the `composite' request.
2179 (composite_request): Implement `composite' request.
2180 (init_input_requests): Add `composite'.
2181 Alphabetically sorted.
2182 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2184 (init_env_requests): Alphabetically sorted.
2185 Removed `tas' and `tar' (already commented out).
2186 * src/roff/troff/Makefile.sub: Updated.
2188 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
2190 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2193 2002-10-29 Werner LEMBERG <wl@gnu.org>
2195 Fix computation of .trunc register. Additionally, its value (and
2196 the value of the .ne register) is now always set before entering the
2199 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2200 `needed_space' before calling `space'.
2201 (top_level_diversion::space): Remove special code for 'sp before the
2203 Call `begin_page' with the discarded space as a parameter.
2204 (top_level_diversion::begin_page): Add optional parameter to set
2206 * src/roff/troff/div.h: Updated.
2208 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2211 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2212 (LP): Remove superfluous call to `br'.
2213 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2214 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2216 2002-10-26 Werner LEMBERG <wl@gnu.org>
2218 * tmac/doc-ditroff: Remove useless switch/variable -rC.
2219 (doc-setup-header): Don't set page register `%'.
2220 * tmac/doc-nroff: Remove variable `C'.
2221 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2222 (doc-setup-header): Don't set page register `%'.
2224 * tmac/doc-common (doc-header): Call `ns'.
2225 (doc-paragraph): Protect .sp with .br so that it survives traps
2226 possibly set by the user.
2227 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2229 * tmac/doc*: Replace ' with . for consistency if no effect.
2231 2002-10-26 Werner LEMBERG <wl@gnu.org>
2233 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2234 so that it survives traps possibly set by the user.
2236 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2237 (troff_output_file::set_font): Call flush_tbuf if necessary.
2238 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2239 flush_tbuf and do_motion only if necessary.
2240 (troff_output_file::start_special,
2241 troff_output_file::put_char_width, troff_output_file::put_char,
2242 troff_output_file::draw): Updated.
2243 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2244 vmotion_node::tprint): Undo change 2002-10-23.
2246 2002-10-25 Werner LEMBERG <wl@gnu.org>
2248 * tmac/www.tmac (DC): Fix case of overlapping images.
2250 2002-10-23 Werner LEMBERG <wl@gnu.org>
2252 * src/roff/troff/node.cc (troff_output_file::fill_color,
2253 troff_output_file::glyph_color): Set current color before testing
2255 (troff_output_file::put_char_width, troff_output_file::put_char,
2256 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2258 (troff_output_file::file_color, troff_output_file::glyph_color):
2260 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2261 vmotion_node::tprint): Move first, then call fill_color.
2263 2002-10-20 Werner LEMBERG <wl@gnu.org>
2265 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2266 possible to use multiple main macro packages.
2268 2002-10-19 Werner LEMBERG <wl@gnu.org>
2270 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2271 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2272 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2274 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2275 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2277 2002-10-16 Werner LEMBERG <wl@gnu.org>
2279 * NEWS, doc/webpage.ms: Updated.
2281 2002-10-14 Werner LEMBERG <wl@gnu.org>
2283 * src/roff/troff/node.cc (troff_output_file::put_char_width,
2284 troff_output_file::put_char, troff_output_file::fill_color,
2285 troff_output_file::glyph_color): Handle case where color pointer
2288 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
2290 Add the new -r option to grotty. It is similar to the -i option
2291 except it tells grotty(1) to use the "reverse video" attribute to
2292 render italic fonts.
2294 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2295 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2296 (tty_printer::make_underline, tty_printer::put_color,
2297 tty_printer::end_page): Use it.
2298 (main): Add -r switch.
2300 * src/devices/grotty/grotty.man: Document it.
2302 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
2304 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2305 cast to `unsigned char' to properly read patterns with 8bit
2308 2002-10-08 Werner LEMBERG <wl@gnu.org>
2310 * REVISION: Increased to 2.
2312 Version 1.18.1 released
2313 =======================
2315 2002-10-08 Werner LEMBERG <wl@gnu.org>
2317 * doc/webpage.ms, NEWS: Updated.
2319 2002-10-07 Werner LEMBERG <wl@gnu.org>
2321 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2322 suppress additional whitespace after the header.
2324 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2327 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2329 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
2331 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2332 (Dt): Use it to improve language localization (especially Russian
2335 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
2337 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2338 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2340 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2342 Call `picurve' for BSPLINE.
2343 (HGPrintElt): Handle BSPLINE.
2344 * src/preproc/grn/README: Document it.
2346 2002-10-03 Werner LEMBERG <wl@gnu.org>
2348 * src/roff/troff/node.cc (break_char_node::col): New variable.
2349 Updated constructor.
2350 (space_node::tprint, word_space_node::tprint): Call `fill_color'
2352 (space_node::space_node): Remove assertion.
2353 (break_char_node::add_self): Pass color argument to space node.
2354 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2356 * src/roff/troff/env.cc (environment::do_break,
2357 environment::add_padding): Ditto.
2359 2002-10-02 Werner LEMBERG <wl@gnu.org>
2361 Redesigning color support in troff. Colors are no longer
2362 represented as separate nodes but are now part of glyph nodes and
2363 friends. This fixes the current formatting misbehaviour due to the
2364 changes introduced on 2002-09-20. Some extra code is necessary for
2365 proper grotty support: Without adding color variables to
2366 space-related nodes, the background color would be changed too late.
2368 * src/roff/troff/node.h, src/roff/troff/node.cc:
2369 s/current_pagecolor/current_fill_color/.
2370 s/current_glyphcolor/current_glyph_color/.
2371 (glyph_color_node, fill_color_node): Removed.
2372 (node::get_glyph_color, node::get_fill_color): New virtual member
2374 (space_node::col): New variable.
2375 Updated constructors of space_node and derived classes accordingly.
2376 (hmotion_node::col): New variable.
2377 Updated constructors of hmotion_node and space_char_hmotion_node
2379 (vmotion_node::col): New variable.
2380 Updated constructor accordingly.
2381 (draw_node::gcol, draw_node::fcol): New variables.
2382 Updated constructor accordingly.
2383 (special_node::gcol, special_node::fcol): New variables.
2384 Updated constructors accordingly.
2385 (troff_output_file::put_char, troff_output_file::put_charwidth,
2386 troff_output_file::draw): Set glyph and fill color.
2387 (troff_output_file::start_special): Set glyph and fill color.
2388 Always set current font.
2389 (troff_output_file::fill_color, troff_output_file::glyph_color):
2390 Don't call `do_motion'.
2391 (glyph_node::gcol, glyph_node::fcol): New variables.
2392 Updated constructors of glyph_node and ligature_node accordingly.
2393 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2395 (glyph_node::merge_glyph_node,
2396 kern_pair_node::add_discretionary_hyphen,
2397 node::add_discretionary_hyphen): Updated.
2398 (break_char_node::merge_self): Updated.
2399 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2400 vmotion_node::tprint): Handle color.
2401 (make_glyph_node, make_node, node::add_char): Updated.
2403 * src/roff/troff/env.cc (environment::space_newline,
2404 environment::space, environment::output_line, environment::do_break,
2405 environment::make_tab_node, environment::add_padding, title):
2407 (environment_switch, environment_copy): Don't add color nodes.
2409 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2411 (token::next): Updated.
2412 \m and \M now are as transparent as \s.
2413 (process_input_stack, token::add_to_node_list, token::process,
2414 read_draw_node): Updated.
2415 (charinfo_to_node_list): Don't add color nodes.
2417 * doc/groff.texinfo: Updated.
2419 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
2421 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2424 2002-09-27 Colin Watson <cjwatson@debian.org>
2426 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2428 2002-09-23 Werner LEMBERG <wl@gnu.org>
2430 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2432 (DEFAULT_LINEWIDTH_FACTOR): New macro.
2433 (linewidth_factor): New global variable.
2434 (lbp_printer::set_line_thickness): Fix case for size < 0, using
2436 (long_options): Add -w/--linewidth option.
2438 (main): Handle -w option to set linewidth_factor.
2439 (lbp_printer::lbp_printer): Initialize req_linethickness, not
2442 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2444 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
2446 Fixed a bug in the line thickness setting code.
2448 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2450 (lbp_printer::set_line_thickness): Pass environment as second
2452 Implement it actually.
2453 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2454 and `set_line_thickness, depending on the current font size.
2456 2002-09-21 Werner LEMBERG <wl@gnu.org>
2458 Some Debian patches.
2460 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2461 * src/roff/troff/node.cc (bracket_node::copy): Initialize
2464 2002-09-20 Werner LEMBERG <wl@gnu.org>
2466 * configure: Regenerated with autoconf 2.54.
2468 2002-09-20 Werner LEMBERG <wl@gnu.org>
2470 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2472 Rename cur_fill_color to fill_color.
2473 * src/roff/troff/env.cc: Updated.
2475 2002-09-20 Werner LEMBERG <wl@gnu.org>
2477 * src/roff/troff/env.cc (title): Copy color status after processing
2479 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2480 fill color nodes to reset colors properly.
2482 * tmac/www.tmac (DC): Fix color handling.
2484 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2485 * doc/groff.texinfo: Fixing documentation of `tl' request.
2486 * doc/webpage.ms: Updated.
2488 2002-09-19 Werner LEMBERG <wl@gnu.org>
2490 * src/roff/troff/env.cc (environent_switch, environment_copy):
2491 Emit glyph and fill color nodes to initialize colors properly.
2493 2002-09-17 Colin Watson <cjwatson@debian.org>
2495 * src/roff/troff/env.cc (environment::set_glyph_color,
2496 environment::set_fill_color): Fix typo which prevented \m[] work
2499 2002-09-17 Werner LEMBERG <wl@gnu.org>
2501 Add left and right italic correction to non-slanted PS fonts. This
2502 is an experimental feature to improve image rendering of grohtml.
2504 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2505 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2506 * font/devps/*: All non-slanted fonts regenerated.
2509 2002-09-16 Werner LEMBERG <wl@gnu.org>
2511 Add a site-specific font directory.
2513 * Makefile.in (localfontdir, legacyfontdir): New variables.
2514 (fontpath): Use them.
2515 (MDEFINES, uninstall_dirs): Updated.
2516 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2517 Remove `FONTPATH' and `MACROPATH'.
2519 * src/roff/troff/troff.man, NEWS: Updated.
2520 * doc/groff.texinfo (Font Directories): New section.
2523 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2524 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2525 src/preproc/grn/grn.man: Minor fixes.
2527 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2528 Remove unused variable.
2530 2002-09-11 Werner LEMBERG <wl@gnu.org>
2532 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2533 * man/groff_out.man: Fix documentation of 'N'.
2535 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
2537 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2538 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2540 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2541 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2542 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2543 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2544 PRE_TAG>: Call `begin' with `FALSE'.
2546 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2548 * src/libs/libgroff/string.cc (string::extract): Fix position of
2549 terminating null byte.
2551 2002-09-08 Werner LEMBERG <wl@gnu.org>
2553 Add global option `nospaces' to tbl so that leading and trailing
2554 spaces in data items are ignored.
2556 * src/libs/libgroff/string.cc (string::remove_spaces): New member
2557 function to remove leading and trailing spaces.
2558 * src/include/stringclass.h: Updated.
2560 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2562 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2564 Fix typo in error messages.
2565 (process_data): Implement `nospaces' option.
2566 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2568 2002-09-07 Werner LEMBERG <wl@gnu.org>
2570 * src/include/config.hin: Add `HAVE_ISATTY'.
2571 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2573 * src/libs/libgroff/tmpname.cc: Include `time.h'.
2574 * src/libs/libdriver/input.cc (Char): Add `operator==' and
2575 `operator!=' for `char'.
2576 * doc/groff.texinfo: Replace @ifnottex block for top node with
2579 2002-09-06 Werner LEMBERG <wl@gnu.org>
2581 * doc/Makefile.in (.texinfo.html): Add -I switch.
2582 * doc/groff.texinfo: Add @ifnottex block for top node to make
2583 translation to HTML work.
2585 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
2587 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2588 (get_papersize, determine_vertical_offset): Removed.
2589 (char_buffer::do_image): Always specify letter size.
2591 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2594 2002-09-05 Werner LEMBERG <wl@gnu.org>
2596 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2597 default indentation.
2599 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
2601 * src/preproc/html/pre-html.cc (imageList::createPage): Use
2603 (generateImages): Clean up push-back buffer.
2605 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2607 * doc/groff.texinfo: Minor fixes.
2609 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2611 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2612 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2614 (determine_vertical_offset): Use LETTER_LENGTH.
2615 (createPage): Moved to ...
2616 (imageList::createPage): This.
2617 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2618 (imageList::getMaxX): New function.
2619 (createImage): Moved to ...
2620 (imageList::createImage): This.
2621 (imageList::createImages): New function.
2622 (generateImages): Read `maxx' directly.
2624 (scanArguments): Don't specify `gsPaper' for `-o'.
2625 (makeTempFiles): Call `xtmpfile' with the last argument set to
2628 2002-08-24 Werner LEMBERG <wl@gnu.org>
2630 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2631 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2632 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2633 * src/preproc/html/pushback.cc: Include nonposix.h.
2634 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2637 2002-08-23 Werner LEMBERG <wl@gnu.org>
2639 Use $(OBJEXT) for the object file extension.
2641 * Makefile.comm (.SUFFIXES): Add .obj.
2642 (.cc.obj, .c.obj): New implicit rules.
2643 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2644 (MDEFINES): Add EXEEXT and OBJEXT.
2645 * */Makefile.sub: s/.o/.$(OBJEXT)/.
2647 2002-08-22 Werner LEMBERG <wl@gnu.org>
2649 * INSTALL: Mention texinfo 4.2 as a prerequisite.
2651 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2653 * src/devices/grohtml/post-html.cc (colType): Make enum global to
2655 (html_printer::update_min_max, html_printer::add_table_end): New
2657 (html_printer::lookahead_for_tables): Use them.
2658 Reset page offset correctly.
2659 (html_printer::~html_printer): Add creation of creator comment up.
2661 2002-08-20 Werner LEMBERG <wl@gnu.org>
2663 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2664 * man/groff_tmac.man: Fix typos.
2665 * man/groff_font.man: Minor reordering.
2666 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2667 * contrib/groffer/groffer.man: Fix typos.
2669 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2671 Avoid endless loops while scanning for tables.
2673 * src/devices/grohtml/post-html.cc (list::insert): Set
2675 (html_printer::next_horiz_pos): Add `text_glob' argument; update
2677 Return immediately if that argument is NULL.
2678 (html_printer::calc_nf): Don't test if `g' is NULL.
2679 (html_printer::lookahead_for_tables): Use
2680 `glyphs.move_right_get_data'.
2681 Don't test if `g' is NULL.
2683 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2685 A better fix, replacing fix 2002-08-15, for increasing SIZE.
2687 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2689 (char_block::char_block): Allocate `buffer'.
2690 (char_buffer::add_string): Use it.
2692 2002-08-15 Werner LEMBERG <wl@gnu.org>
2694 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2695 src/devices/grodvi/grodvi.man: Document default line thickness.
2697 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
2699 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2702 2002-08-14 Werner LEMBERG <wl@gnu.org>
2704 * doc/webpage.ms: Updated.
2706 2002-08-09 Werner LEMBERG <wl@gnu.org>
2708 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2711 2002-08-08 Aaron Campbell <aaron@monkey.org>
2713 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2716 2002-08-08 Werner LEMBERG <wl@gnu.org>
2718 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2721 Don't push back a space but a newline onto the stack.
2723 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
2725 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2728 * src/devices/grohtml/post-html.cc (html_printer::end_font,
2729 html_printer::start_font): Handle them.
2730 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2732 (html_text::do_bold): Don't reset italic and tt.
2733 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2734 * font/devhtml/DESC.proto: Add those fonts.
2735 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2737 2002-08-07 Werner LEMBERG <wl@gnu.org>
2739 * MORE.STUFF: Added gpresent.
2741 * tmac/trace.tmac: Show nesting level by a corresponding amount of
2742 whitespace before printing the logging message.
2744 2002-07-31 Colin Watson <cjwatson@debian.org>
2746 * src/devices/grohtml/html-table.cc (html_table::finish_row):
2747 Initialize `n' to zero. This fixes a segfault on ARM.
2749 2002-07-30 Werner LEMBERG <wl@gnu.org>
2751 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2753 2002-07-29 Werner LEMBERG <wl@gnu.org>
2755 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2758 2002-07-28 Colin Watson <cjwatson@debian.org>
2760 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2762 (html_printer::html_printer): Initialize `pointsize'.
2764 2002-07-26 Werner LEMBERG <wl@gnu.org>
2766 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2768 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2769 (gnu.eps): Add -rle switch to pnmtops.
2770 (distfiles): Add gnu.eps and gnu.png.
2772 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
2774 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2777 2002-07-24 Werner LEMBERG <wl@gnu.org>
2779 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2780 ' \+' but ' *' for sed.
2781 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2783 2002-07-23 Werner LEMBERG <wl@gnu.org>
2785 * doc/groff.texinfo: Document `papersize' keyword.
2786 * NEWS, man/groff_font.man: Updated.
2788 2002-07-23 Colin Watson <cjwatson@debian.org>
2790 Extend papersize keyword to accept more than a single entry. The
2791 first valid will be used.
2793 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2794 (font::scan_papersize): Really skip final newline.
2795 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2797 2002-07-23 Werner LEMBERG <wl@gnu.org>
2799 * configure.ac: Test for isatty.
2800 * configure: Regenerated.
2801 * src/include/posix.h: Check HAVE_ISATTY.
2802 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2803 * src/utils/lookbib/lookbib.cc: Include posix.h.
2804 Don't declare isatty.
2806 2002-07-21 Werner LEMBERG <wl@gnu.org>
2808 * NEWS: Add `output' request.
2810 * REVISION: Increased to 1.
2812 Version 1.18.0 released
2813 =======================
2815 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
2817 Allow internal glyph indices > 0xFF in grohtml for input characters.
2819 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
2821 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
2822 Updated all callers.
2823 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
2824 (html_printer): Updated.
2826 2002-07-19 Werner LEMBERG <wl@gnu.org>
2828 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
2829 * font/devutf8/R.proto: Adding some missing glyphs.
2830 * font/devutf8/NOTES: Updated.
2832 * tmac/dvi.tmac: Add more composite glyphs.
2833 * tmac/html.tmac: Updated.
2835 * man/groff_char.man: Add `sum' and `product' entities.
2839 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
2841 Improved table, tab, and indenting support.
2843 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
2844 string_iterator::suppress_newline_flag): Removed. Updated all
2845 function which have used it.
2847 * src/roff/troff/env.cc: Include `input.h'.
2848 (environment::add_node): Accept 0 as parameter.
2849 (environment::add_html_tag): Add `force' parameter.
2850 Updated all callers.
2851 (environment::add_html_tag_tabs): Ditto.
2852 For the moment, support left-aligned tabs only.
2853 (environment::make_html_tag): New function.
2854 (fill, no_fill): Set .br html tag additionally.
2855 (environment::newline): Emit `eol.ce' or `eol' tag for html.
2856 (environment::add_html_tag_eol): Removed.
2857 (tab_stops::distance_to_next_tab): Add variant for handling
2859 (environment::distance_to_next_tab): Ditto.
2860 Updated all callers.
2861 (environment::handle_tab): Handle tabs for html.
2863 * src/roff/troff/env.h: Updated.
2865 * src/roff/troff/div.cc: Updated all callers of
2866 `environment::add_html_tag'.
2868 * src/devices/grohtml/html-table.cc,
2869 src/devices/grohtml/html-table.h: New files.
2871 * src/devices/grohtml/html-text.cc (html_text): New members
2872 `blank_para' and `start_space'.
2873 (html_text::issue_tag): Don't emit TABLE_TAG.
2874 Handle indentation for PRE_TAG and P_TAG.
2875 (html_text::end_tag): Updated.
2876 (html_text::table_is_void, html_text::issue_table_begin,
2877 html_text::issue_table_end): Removed.
2878 (html_text::do_push): Simplified.
2879 [DEBUGGING]: Small fix.
2880 (html_text::push_para): Add new parameter for indentation; updated
2883 (html_text::do_indent, html_text::do_table, html_text::done_table,
2884 html_text::is_in_table): Removed.
2885 (html_text::do_pre): Handle P_TAG also.
2886 (html_text::shutdown): Handle p->indent.
2887 (html_text::check_emit_text): Simplified.
2888 (html_text::do_emittext): Reset `blank_para'.
2889 (html_text::do_para): Add new parameter for indentation; updated
2891 (html_text::remove_indent): New function.
2892 (html_text::do_space): Handle verbatim text properly.
2893 (html_text::ever_emitted_text, html_text::starts_with_space,
2894 html_text::remove_para_align): New functions.
2895 (html_text::dump_stack_element, html_text::dump_stack): Updated.
2897 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
2900 * src/devices/grohtml/post-html.cc: Include html-table.h.
2901 (INDENTATION): Removed.
2902 (text_glob): Added many `is_<foo>' functions.
2903 Added table description `tab'.
2904 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
2906 (list): Add `insert' and `move_to' member functions.
2907 (page): Add `insert_tag' member function.
2908 (page::dump_page) [DEBUG_TABLES]: Improved.
2909 (html_printer): Add `table' and `max_linelength' elements.
2910 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
2911 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
2912 `remove_tabs', `remove_courier_tabs'.
2913 (html_printer::emit_raw): Handle indentation.
2914 (html_printer::do_center, html_printer::write_header): Updated.
2915 (html_printer::is_courier_until_eol): Check for tag.
2916 (html_printer::do_linelength): Handle max_linelength.
2917 (html_printer::do_page_offset, html_printer::do_indentation): Handle
2919 (html_printer::do_tempindent): Updated.
2920 (html_printer::do_indentedparagraph): Removed.
2921 (html_printer::do_indent): Simplified.
2922 (html_printer::do_eol): Use `ever_emitted_text'.
2923 (html_printer::do_flush, html_printer::do_links): Don't call
2925 (html_printer::do_break): Handle end_tempindent.
2926 (html_printer::troff_tag): Get argument.
2928 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
2929 (html_printer::flush_page): Call `lookahead_for_tables'.
2930 Don't call `done_table'.
2931 (html_printer::add_to_sbuf): Always call do_indent.
2933 * src/devices/grohtml/Makefile.sub: Updated.
2935 * tmac/an-old.tmac (TP): Don't handle html device specially.
2936 (an-do-tag-html): New function which will be used instead of
2937 `an-do-tag' if html device is used.
2939 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
2941 * tmac/s.tmac (@IP): Don't handle html device specially.
2942 (@IP-html): New function which will be used instead of `@IP' if
2943 html device is used.
2945 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
2946 is a hack which will eventually vanish again.
2947 (PIMG): Handle `-C' option correctly if not html.
2950 2002-07-17 Werner LEMBERG <wl@gnu.org>
2952 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
2954 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
2956 * contrib/pic2graph/pic2graph.*: Use convert(1).
2957 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
2959 2002-07-14 Bernd Warken <bwarken@mayn.de>
2961 * tmac/groff_trace.man: New file.
2962 * tmac/Makefile.sub: Updated.
2965 2002-07-13 Werner LEMBERG <wl@gnu.org>
2967 * src/roff/groff/groff.man: Add some cross references.
2969 2002-07-12 Werner LEMBERG <wl@gnu.org>
2971 * src/roff/troff/input.cc (substring_request): Add warnings for
2972 string indices out of range.
2974 2002-07-11 Werner LEMBERG <wl@gnu.org>
2976 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
2977 * font/devdvi/*EC: Regenerated.
2979 2002-07-10 Bernd Warken <bwarken@mayn.de>
2981 * man/groff_char.man: Updated and extended.
2983 2002-07-10 Werner LEMBERG <wl@gnu.org>
2985 * src/roff/troff/input.cc (length_macro): Renamed to...
2986 (length_request): This.
2987 Move call of `tok.next()' to the very end, otherwise the register
2988 value hasn't been updated yet.
2989 (init_input_requests): Updated.
2991 2002-07-09 Werner LEMBERG <wl@gnu.org>
2993 * src/roff/troff/input.cc (substring_macro): Renamed to...
2994 (substring_request): This.
2995 (init_input_requests): Updated.
2996 * src/roff/troff/request.h: Updated.
2998 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
3000 * src/roff/grog/grog.sh: Fix typo.
3002 2002-07-08 Werner LEMBERG <wl@gnu.org>
3004 * win32-diffs: Updated.
3006 Handle `papersize' keyword properly in DESC.
3008 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3010 Updated all callers.
3011 * src/libs/libgroff/paper.cc: Add four more paper formats used by
3013 * src/include/paper.h: Updated.
3015 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3016 Other minor C syntax fixes.
3017 (papersize, paperlength, paperwidth): Renamed to `user_*'.
3018 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3020 (lbp_printer::lbp_printer): Pass three arguments.
3021 Set paper dimensions properly.
3022 (make_printer, main): Updated.
3023 (handle_unknown_desc_command): Fix error messages.
3024 (main): Handle papersize keyword in DESC properly.
3026 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3028 (lbp_printer::lbp_printer): Pass an argument.
3029 Set paper_size properly.
3030 (handle_unknown_desc_command): Removed.
3031 (make_printer, main): Updated.
3032 * src/devices/grolj4/grolj4.man: Minor documentation fix.
3034 * man/groff_font.man, NEWS: Updated.
3036 2002-07-07 Werner LEMBERG <wl@gnu.org>
3038 Integrated eqn2graph, contributed by Eric S. Raymond.
3040 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
3042 * Makefile.in, NEWS: Updated.
3044 2002-06-04 Werner LEMBERG <wl@gnu.org>
3046 Changing the substring request to make it fit better with other
3047 string manipulation functions in other programming languages:
3048 Index 0 is now the first character in the string, and index -1
3049 indicates the last character. Since this request didn't work
3050 properly anyway in the last release, it doesn't harm too much to
3053 * src/roff/troff/input.cc (substring_macro): Use loops to get
3054 the real string length (ignoring COMPATIBLE_SAVE and
3055 COMPATIBLE_RESTORE) and offsets.
3056 Implement change described above.
3058 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
3059 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
3061 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
3063 2002-06-03 Werner LEMBERG <wl@gnu.org>
3065 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
3066 COMPATIBLE_RESTORE are completely ignored.
3068 * src/roff/troff/input.cc (char_list::set, char_list::get): New
3070 (macro): `length' field renamed to `len'.
3071 Added new field `empty_macro' (1 if macro is empty), to be used
3072 instead of checking `len'.
3073 Updated all callers.
3074 (macro::empty): Updated.
3075 (macro::length, macro::set, macro::get): New functions.
3076 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3078 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
3079 COMPATIBLE_RESTORE pairs.
3080 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3081 * src/roff/troff/request.h: Updated.
3083 * doc/groff.texinfo: Document .chop's behaviour better.
3085 2002-06-02 Werner LEMBERG <wl@gnu.org>
3087 * doc/pic.ms: Fix documentation for the addition of positions.
3089 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
3091 2002-06-29 Werner LEMBERG <wl@gnu.org>
3093 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
3095 * src/roff/troff/input.cc (have_string_arg): New global variable.
3096 (read_mode): New enumeration.
3097 (read_escape_name): Use it. Update all calls.
3098 (read_long_escape_name): Use it. Update all calls.
3099 Set have_string_arg if appropriate.
3100 (get_char_for_escape_name): Add parameter for handling space
3102 (interpolate_string_with_args, decode_string_args): New functions.
3103 (get_copy, token::next): Call it if necessary.
3104 (interpolate_string): Fix error message.
3106 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3109 2002-06-24 Bernd Warken <bwarken@mayn.de>
3111 * man/groff_tmac.man: Updated and extended.
3113 2002-06-24 Werner LEMBERG <wl@gnu.org>
3115 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
3117 2002-06-23 Werner LEMBERG <wl@gnu.org>
3119 * doc/pic.ms: Improve documentation of composite block objects.
3121 2002-06-22 Werner LEMBERG <wl@gnu.org>
3123 * src/roff/troff/input.cc (init_registers): Add three registers
3124 `seconds', `minutes', and `hours' to hold the current time.
3126 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3129 2002-06-20 Werner LEMBERG <wl@gnu.org>
3131 Make \X accept both `\ ' and `\~', converting them to single space
3134 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3135 (token::unstretchable_space): New inline function.
3136 * src/roff/troff/input.cc (token::next, token::delimiter,
3137 token::description, token::add_to_node_list, token::process): Handle
3138 TOKEN_UNSTRETCHABLE_NODE.
3139 (encode_char): Handle tok.stretchable_space and
3140 tok.unstretchable_space.
3142 * NEWS, doc/groff.texinfo: Document it..
3144 2002-06-19 Werner LEMBERG <wl@gnu.org>
3146 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
3148 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
3149 keyword to enable/disable SGR output.
3150 (tty_printer::change_fill_color): New function.
3151 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
3153 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3156 2002-06-18 Werner LEMBERG <wl@gnu.org>
3158 Add a `color' request and a `.color' register to control usage of
3161 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3162 (color_flag): This (which is the inverse).
3163 (activate_color): New function.
3164 (main, init_input_requests): Updated.
3165 * src/roff/troff/troff.h, src/roff/troff/node.cc
3166 (troff_output_file::fill_color, troff_output_file::glyph_color):
3169 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3170 Document the changes.
3172 2002-06-17 Colin Watson <cjwatson@debian.org>
3174 Circumvent bug in autoconf 2.53 regarding top_builddir.
3176 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3177 * Makefile.in, doc/Makefile.in:
3178 s/@top_builddir@/@groff_top_builddir@/.
3179 * configure: Regenerated (with autoconf 2.53).
3181 2002-06-17 Werner LEMBERG <wl@gnu.org>
3183 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3184 `paperwidth' and `paperlength' for the `papersize' keyword.
3186 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
3188 * src/devices/grops/grops.man: Add info about Type 42 fonts.
3190 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
3192 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3193 html_printer::do_linelength, html_printer::do_pageoffset,
3194 html_printer::do_indentation, html_printer::do_tempindent,
3195 html_printer::do_break, html_printer::begin_page): Clear indented
3197 * tmac/html.tmac: Disable hyphenation.
3199 2002-06-15 Werner LEMBERG <wl@gnu.org>
3201 Don't produce HTML files if utility programs are missing.
3203 * Makefile.in (make_html, make_install_html): New variables.
3204 (MDEFINES): Updated.
3206 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3208 * configure.ac: Use it.
3209 * configure: Regenerated.
3211 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3212 (HTMLEXAMPLESFILES): This new variable.
3213 (EXAMPLESIMAGEFILES): Renamed to...
3214 (HTMLEXAMPLEIMAGEFILES): This.
3215 (CLEANADD): Add HTMLEXAMPLEFILES.
3216 (all): Use `make_html'.
3218 (install_data): Use `make_install_html'.
3219 Move html stuff to...
3220 (install_html): This new target.
3221 (uninstall_sub): Updated.
3223 2002-06-14 Bernd Warken <bwarken@mayn.de>
3225 * src/roff/grog/Makefile.sub (grog): Renamed to...
3227 (grog): New rule to always install grog.sh as grog.
3229 2002-06-08 Bernd Warken <bwarken@mayn.de>
3231 * src/roff/grog/grog.pl: Fix typo.
3233 2002-06-07 Werner LEMBERG <wl@gnu.org>
3235 * doc/groff.texinfo: Add more info on .tr arguments.
3237 2002-06-05 Werner LEMBERG <wl@gnu.org>
3239 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3241 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3242 * configure: Regenerated.
3244 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3246 * src/roff/troff/symbol.cc (table_sizes): Add more values.
3248 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3250 2002-06-04 Werner LEMBERG <wl@gnu.org>
3252 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3253 is not initialized at the time we need it in case `--prefix' hasn't
3254 been set. Check for `ac_default_prefix' also.
3255 Test for `papersize' keyword also and generalize allowed whitespace.
3256 * configure: Regenerated.
3258 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3261 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3263 (src_version, src_revision): New variables to avoid overwriting
3264 from parent make process.
3265 (version.cc): Updated.
3267 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3268 (linebuf, linebufsize): New global variables.
3269 (sys_fatal): Use `fatal' to abort properly.
3270 (get_line): New function.
3271 (get_resolution): Use it.
3272 Improve error messages.
3273 (get_papersize): Check `papersize' also.
3275 Improve error messages.
3277 2002-06-03 Werner LEMBERG <wl@gnu.org>
3279 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3280 should be removed only if builddir is not srcdir.
3281 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3282 (clean): Depend on `mostlyclean'.
3283 (distclean): Depend on `clean'.
3284 (realclean, extraclean): Depend on `distclean'.
3285 (.y.cc, .y.o): Simplified. The output files are no longer written
3286 to srcdir but to builddir.
3287 * Makefile.in (MDEFINES): Add `version' and `revision'.
3288 (uninstall_dirs): Fix order of directories.
3289 * doc/Makefile.sub (version, revision): Removed.
3290 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3291 Added `HTMLDOCFILES'.
3292 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3293 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3294 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3297 * doc/texinfo.tex (\authortt): New macro.
3298 (\shortcontt): Define.
3299 (\titlepage): Set \tt to \authortt while defining \authorfont.
3300 (\appendixbox): New macro.
3301 (\chapmacro, \appendixentry): Use \appendixbox to get even
3302 indentation for letters.
3303 (\summarycontents): Set \tt.
3304 (\internalpagesize): Add two arguments for real paper width and
3305 height as needed by pdfTeX.
3306 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3308 (\tempdima, \tempdimb): New temporary dimensions.
3309 (\pagesizesyyy): Updated.
3311 2002-06-02 Werner LEMBERG <wl@gnu.org>
3313 Adding a new keyword `papersize' to the DESC file format (similar
3314 but not completely identical to grolbp's extension). grops now has
3315 a -p command line option to override `papersize'. Finally, grolbp
3316 has been adapted to the new syntax.
3318 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
3319 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3321 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3322 (CCSRCS): Add `paper.cc'.
3324 * src/include/font.h (font): Add `papersize' element.
3325 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3326 (font::scan_papersize): New function.
3327 (font::load_desc): Use it for handling `papersize' keyword.
3328 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3330 * src/devices/grops/ps.cc: Include paper.h.
3331 (user_paper_length): New global variable.
3332 (ps_printer): Use paper length as initializer.
3333 (make_printer): Updated.
3334 (main): Handle new `-p' option.
3335 * src/devices/grops/grops.man: Updated.
3337 * src/devices/grolbp/lbp.cc: Include paper.h.
3338 s/papersizes/lbp_papersizes/.
3339 (set_papersize): Use new `papersizes' array.
3340 (handle_unknown_desc_command): Don't handle `papersize'.
3341 (main): Use `font::scan_papersize' for handling `-p' option.
3342 * src/devices/grolbp/grolbp.man: Updated.
3344 * man/groff_font.man: Document `papersize'.
3347 2002-05-30 Werner LEMBERG <wl@gnu.org>
3349 * src/devices/grops/TODO: Updated.
3350 * src/devices/grops/grops.man: More info on paper formats.
3351 * man/groff_font.man: Document `paperheight' and `paperwidth'.
3353 2002-05-29 Werner LEMBERG <wl@gnu.org>
3355 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3356 to list only if srcdir != currdir.
3357 (distfiles): New target.
3359 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3360 (NOMAKEDIRS): New variable.
3363 2002-05-26 Werner LEMBERG <wl@gnu.org>
3365 Add .output request, similar to \! at top-level.
3367 * src/roff/troff/input.cc (transparent): Remove unused declaration.
3368 (output_request): New function.
3369 (init_input_requests): Add it.
3371 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3374 * Makefile.in (MDEFINES): Add INSTALL_INFO.
3375 (prepare_examples): Fix typo.
3376 * doc/groff.texinfo (@direntry): Fix it.
3378 2002-05-25 Werner LEMBERG <wl@gnu.org>
3380 Including the doc subdir into groff's Makefile system.
3382 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3383 * configure.ac: Use it.
3384 Generate `doc/Makefile'.
3385 * configure: Regenerated.
3387 * Makefile.in (infodir, INSTALL_INFO): New variables.
3388 (MDEFINES, uninstall_dirs): Updated.
3389 (OTHERDIRS): Add `doc'.
3390 * Makefile.comm (CLEANDIRADD): New variable.
3391 (mostlyclean): Use it.
3393 * doc/Makefile.sub, doc/Makefile.in: New files.
3394 * doc/Makefile: Removed.
3396 * NEWS, INSTALL: Updated.
3398 2002-05-24 Werner LEMBERG <wl@gnu.org>
3400 * doc/homepage.ms: Renamed to ...
3401 * doc/webpage.ms: This.
3404 2002-05-23 Werner LEMBERG <wl@gnu.org>
3406 Integrating the `mom' macro package, contributed by Peter Schaffter
3409 * contrib/mom/*: New subdirectory tree.
3410 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3411 be used for documentation files.
3412 (MDEFINES, uninstall_dirs): Use them.
3413 (OTHERDIRS): Add contrib/mom.
3414 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3416 * MANIFEST, NEWS: Updated.
3418 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
3420 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3421 if at outer level; at start-up we are at outer level.
3423 * src/roff/troff/input.cc (do_suppress): Implement it.
3426 Add option -p to show progress information.
3427 pre-grohtml will now render only one page at a time, reducing the
3428 size of needed disk resources enormously.
3430 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3431 (imagePageName): New global variable.
3432 (psPageName, show_progress, currentPageNo): New global variables.
3433 (html_system): Close saved stderr and stdout handles.
3434 (write_end_image): Accept a parameter to control \O escape.
3435 (write_start_image): Adapted to new \O meaning.
3436 (char_buffer::write_upto_newline): Updated.
3437 (createAllPages): Replaced with...
3438 (createPage): This new function to create a single page for images.
3439 It uses `psselect' from the psutils package.
3440 (removeAllPages): Removed.
3441 (createImage): Updated.
3442 Handle progress display.
3443 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3444 (scanArguments): Add option -p.
3445 (makeTempFiles): Updated to create temp files for psPageName and
3447 (removeTempFiles): Removed.
3450 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3451 html_printer::write_header): Append `\0' to `buffer'.
3452 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3454 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3455 Handle `text_emitted'.
3456 (html_text::table_is_void): Slightly rewritten.
3457 (stop): New external symbol.
3458 (html_text::do_push) [DEBUGGING]: Use it and simplify.
3459 (html_text::shutdown): Call `dump_stack'.
3460 (html_text::do_space): Rewritten.
3461 * src/devices/grohtml/grohtml.man: Document -p and the need of
3464 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3466 Call \O[0] if `ps4html' is active.
3467 * tmac/s.tmac (@EQ, @EN): Handle html better.
3469 * tmac/html.tmac: Don't use black for background colour.
3471 * src/roff/troff/node.cc: Include `div.h'.
3472 (troff_output_file::really_print_line): Don't use `is_on'.
3473 (troff_output_file::word_marker, troff_output_file::flush_tbuf
3474 troff_output_file::check_charinfo,
3475 troff_output_file::put_char_width, troff_output_file::put_char,
3476 troff_output_file::determine_line_limits, troff_output_file::draw,
3477 real_output_file::begin_page, glyph_color_node::tprintf,
3478 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3480 (troff_output_file::really_on): Call `do_motion'.
3481 (suppress_node::tprint): Use `get_page_number' instead of `%'
3483 Call `reset_output_registers' conditionally on `is_on'.
3485 * doc/groff.texinfo: Document new syntax of \O.
3486 * NEWS, man/groff_diff.man: Updated.
3488 2002-05-22 Werner LEMBERG <wl@gnu.org>
3490 * MORE.STUFF: Add info about David Frey's deroff implementation.
3493 2002-05-16 Werner LEMBERG <wl@gnu.org>
3495 Pic's `with' attribute now accepts positions.
3497 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3498 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3500 (object_spec): Add rule for `WITH' and `position'.
3501 (relative_path): Give `corner' the precedence of `CHOP'.
3502 * src/preproc/pic/object.h (path): New members `pos' and
3504 * src/preproc/pic/object.cc: Updated initializers of `path'.
3505 (path::follow): Handle `is_position'.
3507 * doc/pic.ms: Completely updated grammar description.
3508 Many typographical improvements.
3510 2002-05-15 Werner LEMBERG <wl@gnu.org>
3512 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3513 code of x in range 0-127) also.
3514 * doc/groff.texinfo, man/groff_diff.man: Updated.
3516 Added keywords `north', `south', `east', and `west' for corners
3519 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3521 (yylex): Handle them.
3522 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3523 (corner): Handle them.
3525 2002-05-14 Werner LEMBERG <wl@gnu.org>
3527 * src/devices/grops/grops.man: Clarify handling of `download' file.
3529 2002-05-11 Werner LEMBERG <wl@gnu.org>
3531 Adding `warnscale' and `spreadwarn' requests, based on a patch from
3532 Jeffrey Friedl <jfriedl@yahoo.com>.
3534 * src/roff/troff/input.cc (spread_limit, warn_scale,
3535 warn_scaling_indicator): New global variables.
3536 (warnscale_request, spreadwarn_requests): New functions.
3537 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3538 (init_input_requests): Updated.
3539 (error_type): Add `OUTPUT_WARNING'.
3540 (do_error): Handle it.
3541 (output_warning): New warning function which shows output location.
3542 * src/roff/troff/env.h (spread_limit): New external variable.
3543 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3545 (distribute_space): Emit warning if added space is larger than
3547 (environment::possibly_break_line): Emit warning if a line can't
3548 be adjusted on both sides.
3550 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3552 2002-05-08 Werner LEMBERG <wl@gnu.org>
3554 * src/roff/troff/node.cc (special_node::special_node): Use
3555 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
3556 \X''\% crashes, for example.
3558 * doc/groff.texinfo: Document \! and \? used at top-level.
3560 2002-05-06 Werner LEMBERG <wl@gnu.org>
3562 * src/preproc/pic/pic.man: Fix some keyword syntax.
3563 Other minor typographical fixes.
3565 * src/roff/groff/groff.man: Fix typos.
3567 2002-05-04 Werner LEMBERG <wl@gnu.org>
3569 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3570 (ShortOpt[]): This to avoid problems with refer.
3572 * doc/pic.ms: Fix typo.
3573 Fix pic grammar description.
3575 * tmac/an-old.tmac (ne): Use de1, not de.
3577 2002-05-03 Werner LEMBERG <wl@gnu.org>
3579 * doc/groff.texinfo: Finished separation of glyphs and characters.
3580 Don't use the string `Appendix' for appendix headers (both in
3581 the text and the table of contents).
3582 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3585 Use registers LL and LT (similar to -ms) for controlling the
3586 length of title and line, respectively, in the -man and -mdoc
3589 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3590 (doc-setup-page-layout): Use \n[LL] and \n[LT].
3591 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3593 (an-header, an-p-footer): Use \n[LT].
3594 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3595 doc/groff.texinfo: Document it.
3597 2002-05-02 Werner LEMBERG <wl@gnu.org>
3599 * doc/fdl.texi: New file.
3600 * doc/groff.texinfo: Include it.
3601 Define and use @copying.
3602 Starting with separating glyph, symbol, and character.
3604 2002-04-27 Werner LEMBERG <wl@gnu.org>
3606 * Makefile.in (EXEEXT): Set it.
3607 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3610 * src/include/nonposix.h: Define GS_NAME.
3611 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3613 Some preliminary changes for EMX support under OS/2.
3615 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3616 __EMX__ similar to __MSDOS__.
3617 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3619 2002-04-25 Werner LEMBERG <wl@gnu.org>
3621 * doc/groff.texinfo: Integrated groff_out.man.
3624 2002-04-23 Werner LEMBERG <wl@gnu.org>
3626 * man/groff_out.man: Minor fixes.
3628 2002-04-23 Werner LEMBERG <wl@gnu.org>
3630 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3631 correct page references.
3632 Fixed many index entries.
3634 2002-04-23 Bernd Warken <bwarken@mayn.de>
3636 * man/roff.man: Enlarged.
3638 2002-04-22 Werner LEMBERG <wl@gnu.org>
3640 * doc/groff.texinfo: More examples, other fixes.
3642 2002-04-20 Werner LEMBERG <wl@gnu.org>
3644 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3645 will now form a chain, e.g.
3654 This is for compatibility with plan 9's troff.
3656 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3660 * doc/groff.texinfo: Add documentation of remaining requests and
3663 2002-04-19 Werner LEMBERG <wl@gnu.org>
3665 * doc/groff.texinfo: Add documentation of remaining escapes.
3667 * font/devdvi/generate/tc.map: Remove entry for `sr'.
3668 * font/devdvi/*TC: Regenerated.
3670 2002-04-18 Werner LEMBERG <wl@gnu.org>
3672 * src/roff/troff/input.cc (token::next): Make \H behave consistently
3673 if not in compatibility mode, i.e., increment relative to the
3675 * doc/groff.texinfo: Updated accordingly.
3677 2002-04-17 Werner LEMBERG <wl@gnu.org>
3679 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3681 2002-04-16 Bernd Warken <bwarken@mayn.de>
3683 * src/roff/groff/groff.man: Improve documentation of -P option.
3686 2002-04-15 Werner LEMBERG <wl@gnu.org>
3688 Add new escape \F to switch font family.
3690 * src/roff/troff/input.cc (token::next): Handle \F.
3691 * src/roff/troff/env.cc (environment::set_family): Handle
3693 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3696 2002-04-14 Werner LEMBERG <wl@gnu.org>
3698 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3701 2002-04-13 Werner LEMBERG <wl@gnu.org>
3703 Implement \f[] as an alternative to \fP. Change \mP and \MP to
3704 \m[] and \M[], respectively.
3706 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3707 (symbol::symbol): Handle NULL string and empty string differently.
3708 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3709 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3710 Add optional parameter.
3711 Updated calling functions.
3712 (get_copy, do_glyph_color, do_fill_color, token::next): Use
3714 * src/roff/troff/env.cc (environment::set_font): Ditto.
3716 * src/preproc/pic/troff.cc (troff_output::set_fill,
3717 troff_output::reset_color: Updated.
3719 * tmac/www.tmac: Updated.
3721 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3722 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3725 * tmac/Xps.tmac: Remove some redundant code.
3727 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3728 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3729 man/groff_out.man, man/groff.man, man/groff_diff.man,
3730 src/roff/groff/groff.man: Replace \f[P] with \f[].
3732 2002-04-13 Bernd Warken <bwarken@mayn.de>
3734 * src/include/printer.h, src/libs/libdriver/printer.cc
3735 (printer::change_fill_color): New member function.
3736 * src/libs/libdriver/input.cc (parse_D_command): Use it.
3738 2002-04-12 Werner LEMBERG <wl@gnu.org>
3740 * doc/groff.texinfo: Completed pass on gtroff reference.
3742 2002-04-11 Werner LEMBERG <wl@gnu.org>
3744 * doc/groff.texinfo: More fixes.
3746 2002-04-11 Bernd Warken <bwarken@mayn.de>
3748 * src/include/color.h: Decorate with `const'.
3751 * src/libs/libgroff.color.cc: Decorate with `const'.
3753 (color::color): Initialize members.
3754 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3755 command according to the documentation.
3757 * man/groff_out.man: Updated.
3760 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
3762 * src/preproc/html/pre-html.cc (write_start_image): Remove
3764 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3766 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3767 \C'hy' caused an assertion failure.
3769 * src/roff/troff/env.cc (environment::environment): Initialize
3771 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3773 2002-04-10 Werner LEMBERG <wl@gnu.org>
3775 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3776 Document pvs request and .pvs register.
3778 2002-04-09 Werner LEMBERG <wl@gnu.org>
3780 * doc/groff.texinfo: Improve and fix documentation of diversions
3783 2002-04-08 Werner LEMBERG <wl@gnu.org>
3785 * doc/groff.texinfo: Fix documentation of drawing functions.
3788 2002-04-07 Werner LEMBERG <wl@gnu.org>
3790 * doc/groff.texinfo: Better documentation of double quotes as
3794 2002-04-06 Werner LEMBERG <wl@gnu.org>
3796 * man/groff_font.man: Document names of special characters better.
3797 * doc/groff.texinfo: Minor improvements.
3799 * tmac/lbp.tmac: Load latin1.tmac.
3800 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3802 * font/devX*/*: Regenerated (all chars > 0x80 removed).
3804 2002-04-05 Werner LEMBERG <wl@gnu.org>
3806 * tmac/tty.tmac: Don't use shc request.
3807 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3810 * man/groff_diff.man: Minor fixes.
3812 * font/devlbp/*: Remove all `charXXX' entities.
3814 * src/libs/libgroff/font.cc (font::~font): Deallocate
3815 `special_device_coding'.
3816 (font::load): Use `new' for allocating `special_device_coding'.
3817 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
3818 Removed unused member.
3820 2002-04-05 Werner LEMBERG <wl@gnu.org>
3822 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
3823 (resource_manager::do_begin_binary,
3824 resource_manager::do_begin_data): Use it.
3826 * doc/texinfo.tex: Updated to version 4.2.
3828 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
3829 (token::zero_width_break): New inline function.
3830 * src/roff/troff/input.cc (token::next): Use it.
3831 (token::description): Updated.
3832 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
3833 (token::add_to_node_list, token::process): Use it.
3834 * NEWS, doc/groff.texinfo: Updated.
3836 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
3837 * tmac/tty.tmac: Add missing backslash.
3839 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
3841 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
3842 `.ps' register instead of `.s' to handle fractional point sizes.
3843 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
3844 limit_box::output): Ditto.
3845 * src/preproc/eqn/other.cc (size_box::compute_metrics,
3846 size_box::output): Ditto.
3847 * src/preproc/eqn/over.cc (over_box::compute_metrics,
3848 over_box::output): Ditto.
3849 * src/preproc/eqn/script.cc (script_box::compute_metrics,
3850 script_box::output): Ditto.
3851 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
3852 sqrt_box::output): Ditto.
3854 2002-04-03 Michael Selway <mas@ssl.co.uk>
3856 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
3859 2002-04-03 Werner LEMBERG <wl@gnu.org>
3861 * doc/homepage.ms: Reduce title size.
3862 * doc/groff.texinfo: Fix documentation of .t register.
3863 Fix handling of colon.
3866 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
3867 only if page length is positive to avoid a loop.
3869 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
3872 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
3874 * src/include/nonposix.h, src/roff/groff/pipeline.c:
3875 s/__CYGWIN32__/__CYGWIN__/.
3877 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
3879 * doc/gnu.xpm: New image contributed by Emily Mulley.
3880 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
3881 (homepage.html): Be dependent on gnu.eps.
3882 * doc/homepage.ms: Updated to new image.
3884 * src/devices/grohtml/post-html.cc (html_printer): New member
3886 (html_printer::flush_sbuf, html_printer::set_char): Set it.
3887 (html_printer::sbuf_continuation): Use it.
3889 2002-03-28 Werner LEMBERG <wl@gnu.org>
3891 * src/libs/libgroff/getopt.c: Updated to latest version.
3893 * tmac/README: More on hyphen.tex license.
3895 2002-03-26 Larry Kollar <kollar@alltel.net>
3897 * doc/groff.texinfo: Add documentation of most missing requests.
3899 2002-03-25 Werner LEMBERG <wl@gnu.org>
3901 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
3902 of `+-', `mu', and `di', respectively.
3904 * font/devascii/R.proto, font/devutf8/R.proto,
3905 font/devlatin1/R.proto, font/devhtml/R.proto,
3906 font/devcp1047/R.proto, font/devlpb/*: Add them.
3907 * font/devps/generate/textmap: Ditto.
3908 * font/devps/*: Regenerated.
3909 * font/devlj4/generate/text.map: Add them.
3910 * font/devlj4/*: Regenerated.
3911 * font/devdvi/generate/tc.map: Use them.
3912 * font/devdvi/generate/texsy.map: Add them.
3913 * font/devdvi/*: Regenerated.
3914 * font/devX*/*: Regenerated.
3916 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
3917 tmac/tty-char.tmac: Updated.
3919 * NEWS, man/groff_char.man: Updated.
3921 2002-03-24 Werner LEMBERG <wl@gnu.org>
3923 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
3924 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
3925 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
3926 we use `.fchar' in dvi.tmac.
3927 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
3928 * tmac/Xps.tmac: Simplify some char definitions.
3929 Add definition for \[f/].
3930 * man/groff_char.man: Updated for new X.tmac.
3932 * tmac/README: New file.
3934 2002-03-23 Phil Lobbes <phil@perkpartners.com>
3936 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
3937 internal .y.o rule took precendence over the .y.cc rule, compiling
3938 the yacc files with gcc instead of g++.
3940 2002-03-23 Werner LEMBERG <wl@gnu.org>
3942 * tmac/dvi.tmac: Add replacement font for `CB'.
3944 * tmac/doc.tmac: s/request/macro/ in messages.
3945 (doc-generic-macro): Improve error message.
3946 * tmac/groff_mdoc.man: Minor improvements.
3948 2002-03-22 Werner LEMBERG <wl@gnu.org>
3950 * doc/groff.texinfo: Document possible conflict between `tr' and
3953 2002-03-21 Werner LEMBERG <wl@gnu.org>
3955 Improve handling of hyphenation patterns. It is now possible to
3956 use most of TeX's pattern files unmodified. To make the process
3957 more flexible, a new request `hpfcode' has been added which
3958 provides a character code mapping for the `hpf' request. See
3959 comment before hpf_getc() for more details.
3961 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
3963 (read_patterns_file): Additional parameter for exception dictionary.
3964 Extended to recognize \pattern, \hyphenation, and \endinput.
3965 (do_hyphenation_patterns_file): Updated.
3966 * src/roff/troff/env.h (hpf_code_table): New extern.
3968 * src/roff/troff/input.cc (hpf_code_table): New array.
3969 (init_hpf_code_table, hyphenation_patterns_file_code): New
3971 (hyphenation_code): Handle translation from `trin' correctly.
3972 (main, init_input_requests): Updated.
3973 (charinfo::set_translation): Handle hyphenation code also.
3975 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
3978 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
3979 char' is used for offsets in hyphenation exceptions.
3981 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
3983 * NEWS, man/groff_diff.man, man/groff.man: Document it.
3985 2002-03-20 Larry Kollar <kollar@alltel.net>
3987 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
3990 2002-03-18 Werner LEMBERG <wl@gnu.org>
3992 * tmac/html.tmac: Fix serious typo.
3994 2002-03-17 Larry Kollar <kollar@alltel.net>
3996 * doc/groff.texinfo: Add documentation for `writec' request.
3998 2002-03-17 Werner LEMBERG <wl@gnu.org>
4000 Added request `hpfa' to append hyphenation patterns.
4002 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4004 (hyphenation_patterns_file): Renamed to...
4005 (do_hyphenation_patterns_file): This.
4006 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4008 (init_hyphen_requests): Updated.
4009 * NEWS, man/groff.man, man/groff_diff.man: Document it.
4011 2002-03-16 Werner LEMBERG <wl@gnu.org>
4013 Added request `writec' in analogy to `tmc'.
4015 * src/roff/troff/input.cc (write_request): Renamed to...
4016 (do_write_request): This.
4017 Added one parameter.
4018 (write_request, write_request_continue): New functions.
4019 (init_input_requests): Updated.
4020 * NEWS, man/groff.man, man/groff_diff.man: Document it.
4022 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4024 * NEWS: Document it.
4026 2002-03-15 Werner LEMBERG <wl@gnu.org>
4028 * man/groff.man: Add writem request.
4030 Add request `trin' (translate input) to make `.asciify' work
4031 correctly. This is necessary since `charXXX' entity names are no
4032 longer hardcoded in font definition files.
4034 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4035 `translate_input' members.
4036 (charinfo::set_asciify_code, charinfo::get_asciify_code,
4037 charinfo::set_translation_input): New methods.
4038 (charinfo::set_translation): Add third argument.
4039 * src/roff/troff/input.cc (charinfo:set_translation): Set
4041 (do_translate): Add second argument.
4042 (translate_input): New function.
4043 (init_input_requests): Updated.
4044 * src/roff/troff/node.cc (glyph_node::asciify,
4045 composite_node::asciify): Use `get_asciify_code'.
4047 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
4049 * NEWS, man/groff.man, man/groff_diff.man: Updated.
4051 2002-03-14 Larry Kollar <kollar@alltel.net>
4053 * doc/groff.texinfo: Improve documentation of .RS and .RE.
4055 2002-03-14 Werner LEMBERG <wl@gnu.org>
4057 Add a new request `sizes' similar to the `sizes' command in DESC
4060 * src/roff/troff/env.cc (override_sizes): New function.
4061 (init_env_requests): Use it.
4062 * src/roff/troff/token.h: Export `read_string'.
4063 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4065 2002-03-12 Werner LEMBERG <wl@gnu.org>
4067 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
4069 2002-03-10 Werner LEMBERG <wl@gnu.org>
4071 * tmac/pspic.tmac: Add support for -Tdvi.
4072 * tmac/dvi.tmac: Include pspic.tmac.
4073 * src/devices/grodvi/grodvi.man: Document it.
4076 * font/devlj4/generate/Makefile: Fix URL of metric files.
4078 2002-03-09 Werner LEMBERG <wl@gnu.org>
4080 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
4082 2002-03-09 Larry Kollar <kollar@alltel.net>
4084 * tmac/groff_ms.man: Add documentation for RS and RE macros.
4086 2002-03-08 Werner LEMBERG <wl@gnu.org>
4088 * doc/groff.texinfo: Fixes for texinfo 4.1.
4090 2002-03-07 Werner LEMBERG <wl@gnu.org>
4092 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
4094 Handle CYGWIN properly.
4096 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
4098 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
4099 * tmac/lbp.tmac: Add some font translations.
4101 2002-03-02 Werner LEMBERG <wl@gnu.org>
4103 * font/devcp1047/R.proto, font/devlatin1/R.proto,
4104 font/devhtml/R.proto: Remove `charXXX' entries.
4105 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
4108 * font/devlj4/generate/text.map: Remove `charXXX' entries.
4109 * font/devlj4/*: Regenerated all font definition files.
4110 * tmac/lj4.tmac: Load latin1.tmac.
4112 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
4113 from 2000-06-17: LJ4 metric files are *not* text files.
4115 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
4116 register to test for EBCDIC.
4118 2002-03-01 Werner LEMBERG <wl@gnu.org>
4120 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4121 files (as grops already does).
4122 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4124 * src/devices/grops/grops.man: Document comment lines in encoding
4127 * tmac/cp1047.tmac: New file.
4128 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4129 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4130 * tmac/Makefile.sub (NORMALFILES): Updated.
4132 * tmac/ec.tmac: Don't load latin1.tmac again.
4134 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4135 font/devps/generate/dingbats.map,
4136 font/devps/generate/dingbats.rmap, font/devps/text.enc,
4137 font/devps/generate/Makefile (symbolmap): Add header comment.
4138 * font/devps/generate/textmap: Ditto.
4139 Remove `charXXX' entries.
4140 * font/devps/symbolmap: Regenerated.
4141 * font/devps/*: Regenerated all font definition files.
4143 2002-02-28 Werner LEMBERG <wl@gnu.org>
4145 Add color support to grodvi (for drawing colors are currently
4146 translated to gray values).
4148 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
4149 (dvi_printer): Add `cur_color' member.
4150 (dvi_printer::set_color): New function.
4151 (draw_dvi_printer): Remove `fill'.
4152 (draw_dvi_printer::fill_next): Pass environment as parameter.
4153 Update code for new color support translated to gray.
4154 (dvi_printer::set_char): Updated.
4155 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4156 changes crossing the page border.
4157 (dvi_printer::draw): Updated.
4158 Remove cases `f' and `F'.
4159 * tmac/dvi.tmac: Add color definitions.
4160 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4162 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4165 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4166 versions of autoconf.
4167 * configure: Updated.
4169 * doc/homepage.ms: Use `.blm'.
4170 * tmac/www.tmac (www-depth): New auxiliary variable.
4171 (www-pop-level): Don't issue HTML tag.
4172 (ULS, ULE, LI): Use absolute indentation.
4174 * src/devices/grops/ps.cc (ps_printer::begin_page,
4175 ps_printer::end_page): Switch forth and back to default color while
4176 starting a new page.
4178 2002-02-27 Werner LEMBERG <wl@gnu.org>
4180 Add EC and TC fonts to devdvi.
4182 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4183 * font/devdvi/generate/cork.map: Renamed to...
4184 * font/devdvi/generate/ec.map: This.
4185 Remove entry for `aq'.
4186 * font/devdvi/generate/tc.map: New file.
4187 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4190 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4191 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4192 * tmac/ec.tmac: New file.
4193 * tmac/Makefile.sub (NORMALFILES): Updated.
4194 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4195 * man/groff_char.man: Check `ECFONTS' register.
4197 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4199 2002-02-26 Werner LEMBERG <wl@gnu.org>
4201 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4202 * font/devdvi/generate/cork.map: Add 'y and 'Y.
4203 * font/devdvi/*: Updated.
4204 * tmac/dvi.tmac: Formatting.
4206 Add font `HBI' for the dvi output.
4207 Add support for font families `T' and `H'.
4209 * font/devdvi/HBI: New file.
4210 * font/devdvi/B: Renamed to ...
4211 * font/devdvi/TB: This.
4212 * font/devdvi/BI: Renamed to ...
4213 * font/devdvi/TBI: This.
4214 * font/devdvi/I: Renamed to ...
4215 * font/devdvi/TI: This.
4216 * font/devdvi/R: Renamed to ...
4217 * font/devdvi/TR: This.
4218 * font/devdvi/H: Renamed to ...
4219 * font/devdvi/HR: This.
4220 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4221 * font/devdvi/generate/Makefile (HBI): New rule.
4223 (R, I, B, BI, H): Renamed to ...
4224 (TR, TI, TB, TBI, HR): This, respectively.
4226 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4227 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4228 Add `styles' and `family' keywords.
4229 * tmac/dvi.tmac: Alias `H' to `HR'.
4230 Add some fspecial requests for italic fonts.
4231 Add TR and TI as special.
4232 Add support for `_' with font CWI.
4234 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4235 operator `:'. Until now, the expression `0:1' would return 2
4238 2002-02-25 Werner LEMBERG <wl@gnu.org>
4240 * man/groff_char.man: Added some missing PS glyph names (from the
4242 * font/devps/generate/textmap, font/devps/symbolmap: Add
4245 * doc/groff.texinfo: Minor additions and fixes.
4246 * man/groff_diff.man: Remove documentation of fp request. This
4247 is already covered in the original troff manual.
4248 Updated to be consistent with other doc files.
4251 2002-02-24 Werner LEMBERG <wl@gnu.org>
4253 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4255 Define new variable OTHERDEVDIRS (containing `font/devlj4
4256 font/devlbp' if not EBCDIC).
4257 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4258 (OTHERDEVDIRS): New variable.
4259 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4260 * configure: Regenerated.
4262 * NEWS, src/devices/grotty/grotty.man: Updated.
4264 2002-02-23 Werner LEMBERG <wl@gnu.org>
4266 * src/roff/troff/input.cc (do_overstrike, do_bracket,
4267 get_line_arg): Honour input level.
4269 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4271 * font/*/*: Implement it in all font files.
4272 * font/devps/generate/textmap, font/devps/generate/symbolchars,
4273 * font/devps/symbolmap: Updated.
4274 * font/devlj4/generate/text.map: Updated.
4275 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4276 * font/devdvi/generate/texmi.map: Updated.
4278 * font/devutf8/R.proto: Remove all `charXXX' entries.
4279 * font/devutf8/NOTES: Updated.
4281 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4284 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4286 * NEWS, man/groff_char.man: Updated.
4288 2002-02-21 Phil Lobbes <phil@perkpartners.com>
4290 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4292 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4294 * src/roff/grog/grog.pl: Fix computation of $refer.
4296 2002-02-19 Werner LEMBERG <wl@gnu.org>
4298 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4299 `snprintf' and `vsnprintf'.
4301 * src/include/htmlindicate.h: Renamed to...
4302 * src/include/htmlhint.h: This.
4303 * src/include/Makefile.sub: Updated.
4304 * src/preproc/eqn/main.cc: Updated.
4306 2002-02-18 Werner LEMBERG <wl@gnu.org>
4308 * man/roff.man, man/groff_out.man, man/groff.man,
4309 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4310 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4312 * win32-diffs: Updated.
4314 2002-02-17 Werner LEMBERG <wl@gnu.org>
4316 * doc/Makefile (clean): Add *.eps.
4317 (MEMACROS): Removed.
4318 (TFLAG): New variable.
4321 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4323 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4325 * tmac/www.tmac: Use dummy diversion while resetting and disabling
4327 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4329 * src/roff/troff/troff.man: Fix order of parameter description.
4333 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
4335 Simplify image handling for grohtml.
4338 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4340 (html_text::dump_stack): Don't emit newline while debugging.
4341 (html_text::do_push) [DEBUGGING]: Print more info.
4342 (html_text::check_emit_text): Fix handling of <p>.
4343 * src/devices/grohtml/html.h: Updated.
4344 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4345 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
4346 send its data to stderr also.
4348 (simple_output::space_or_newline) [DEBUGGING]: Removed.
4349 * src/devices/grohtml/post-html.cc (html_printer::do_links,
4350 html_printer::html_printer): Remove `DEBUGGING' conditionals.
4352 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4354 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4355 is_inline_image): Removed.
4356 (html_begin_suppress, html_end_suppress): Don't take a parameter.
4357 (graphic_start, graphic_end): Removed.
4358 * src/include/htmlindicate.h: Updated.
4359 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4360 (macroset_template): New global variable.
4361 (makeFileName): Use `macroset_template'.
4362 (write_end_image): Don't take a parameter.
4364 (write_start_image: Don't emit newline.
4365 (char_buffer::write_upto_newline): Updated.
4366 (char_buffer::skip_to_newline): Renamed to ...
4367 (char_buffer::skip_until_newline): This.
4369 (char_buffer::write_file_troff, char_buffer::write_file_html):
4371 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4372 (removeAllPages): Remove `DEBUGGING' conditionals.
4373 (addRegDef, dump_args): New functions.
4374 (char_buffer::do_html, char_buffer::do_image): Handle
4375 `www-image-template' command line variable.
4376 Add more debugging code.
4377 (addps4html): Removed.
4378 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4380 * src/preproc/eqn/main.cc: Include `ctype.h'.
4381 (suppress_html): Removed.
4383 (inline_equation): Use `html_begin_suppress' and
4384 `html_end_suppress'.
4385 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4386 (troff_output::start_picture, troff_output::finish_picture):
4388 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4389 (process_input_file): Updated.
4391 * src/roff/troff/div.cc (page_number): Set page number only if the
4392 `ps4html' register isn't defined.
4393 * src/roff/troff/input.cc (image_no): New external variable.
4394 (do_suppress): Use it.
4395 * src/roff/troff/node.h (suppress_node::image_id): New member.
4396 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4397 (suppress_node::suppress_node): Initialize `image_id' member.
4398 (suppress_node::same): Handle `image_id' also.
4399 (suppress_node::copy): Updated.
4400 (last_image_id): New global variable.
4401 (suppress_node::tprint): Use it.
4403 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4405 * tmac/pspic.mac (PSPIC): Fix html support.
4406 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4407 * tmac/www.tmac (www-image-template): Set up.
4408 (HTMLINDEX): Renamed to...
4410 (BODYCOLOR): Renamed to...
4412 (BACKGROUND): Renamed to...
4414 (URL): Change order of parameters for consistency.
4415 (MAILTO): Renamed to...
4417 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4418 (IMG, PIMG, MPIMG): This.
4419 (HTML-H-BEGIN, HTML-H-END): Renamed to...
4421 (LINKS): Renamed to...
4423 (LINE): Renamed to...
4425 (NO-AUTO-RULE): Renamed to...
4427 (HTML-TL): Renamed to...
4429 (UL-BEGIN, UL-END): Renamed to...
4431 (DROPCAP): Renamed to...
4433 (TS, TE, EQ, EN): Provide default definitions.
4434 (www-make-unique-name): Updated.
4435 (HTML-IMAGE-INLINE): Fix typo.
4436 * tmac/groff_www.man: Updated.
4438 * doc/Makefile (homepage.html): Add option -r to grohtml.
4439 Use shortened image name.
4440 * doc/groff.texinfo: Updated info on grohtml strings and macros.
4441 * doc/homepage.ms: Updated and extended.
4443 2002-02-14 Werner LEMBERG <wl@gnu.org>
4445 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4447 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4448 SGR_BACK_DEFAULT_COLOR): Replaced with ...
4449 (tty_printer::put_color): Use it.
4450 (ttr_printer::end_page): Simplify.
4452 2002-02-13 Werner LEMBERG <wl@gnu.org>
4454 * tmac/groff_tmac.man: Moved to...
4455 * man/groff_tmac.man: This place.
4456 * tmac/Makefile.sub, man/Makefile.sub: Updated.
4458 2002-02-12 Werner LEMBERG <wl@gnu.org>
4460 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4461 $(COMPILE.c) to not include groff's assert.h.
4463 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4465 * NEWS, src/drivers/grotty/grotty.man: Document it.
4467 2002-02-11 Werner LEMBERG <wl@gnu.org>
4469 * src/libs/snprintf/snprintf.c: Updated to latest version
4472 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
4473 test whether there is `.]' also.
4474 Don't check for spaces after `.['.
4475 * src/roff/grog/grog.sh: Do the same.
4477 2002-02-10 Werner LEMBERG <wl@gnu.org>
4481 * src/libs/libgroff/illegal.cc: Renamed to ...
4482 * src/libs/libgroff/invalid.cc: This.
4483 (illegal_char_table): Renamed to ...
4484 (invalid_char_table): This.
4485 * src/libs/libgroff/Makefile.sub: Updated.
4486 * win32-diffs: Updated.
4488 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4489 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4490 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4491 font::load), src/preproc/eqn/main.cc (read_line, main),
4492 src/preproc/eqn/lex.cc (file_input::read_line),
4493 src/preproc/pic/lex.cc (file_input::read_line,
4494 simple_file_input::get, simple_file_input::peek),
4495 src/preproc/pic/main.cc (top_input::get, top_input::peek),
4496 src/preproc/pic/pic.man, src/preproc/refer/main.cc
4497 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4498 do_bib), src/preproc/tbl/main.cc (table_input::get),
4499 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4500 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4501 do_zero_width, read_request, encode_char, ps_get_line,
4502 transparent_file, get_char_for_escape_name, transparent_translate,
4503 asciify, input_char_description, read_string, set_string),
4504 src/roff/troff/env.cc (environment::add_html_tag),
4505 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4507 * src/include/lib.h: Updated.
4509 * src/preproc/eqn/eqn.cc: Removed.
4513 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4515 2002-02-09 Werner LEMBERG <wl@gnu.org>
4517 * doc/gnu.xpm: New image.
4518 * doc/Makefile (DOCS): Add homepage.ps.
4519 Add rules for converting xpm->png and xpm->eps.
4520 Use `gnu.{xpm,eps}' as image names.
4521 * doc/homepage.ms: Updated.
4523 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
4525 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4526 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4527 Remove calls to `B1' and `B2'
4528 (PNG-IMAGE): New macro for inclusion of images in PNG format.
4529 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4530 auxiliary variables for MARGIN-PNG-IMAGE.
4531 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4532 auxiliary macros for MARGIN-PNG-IMAGE.
4533 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4535 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4536 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4537 (DROPCAP): New macro to produce dropcap characters.
4538 (www-do-image): Renamed back to...
4539 (HTML-DO-IMAGE): This.
4540 Updated all callers.
4542 * doc/Makefile (gnubw.eps): Updated.
4543 * doc/homepage.ms: Updated.
4545 2002-02-08 Werner LEMBERG <wl@gnu.org>
4547 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4548 Added `linethick' to table in section `Style Variables'.
4550 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
4552 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4554 2002-02-07 Werner LEMBERG <wl@gnu.org>
4556 Adding options -C (compatibility mode) and -c (grotty's old output
4559 * src/roff/nroff/nroff.sh: Implement it.
4561 * NEWS, src/roff/nroff/nroff.man: Updated.
4563 * PROBLEMS: Document bison 1.32 bug.
4565 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4567 * src/roff/troff/node.cc (make_tfont): Define it earlier.
4568 * src/roff/troff/div.h: Add prototype for `end_diversions'.
4569 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4570 * src/roff/troff/env.h: Add prototype for `title'.
4572 Adding EBCDIC support to grotty.
4574 * src/devices/grotty/tty.cc (CSI): New macro.
4575 (SGR_*, tty_printer::put_color): Use it.
4577 2002-02-06 Werner LEMBERG <wl@gnu.org>
4579 Implementing color support in grotty. The new switch -c activates
4580 the old drawing scheme, disabling color at the same time. The new
4581 switch `-i' selects italic instead of underlining (SGR only).
4583 * src/devices/grotty/tty.cc (putstring): New define instead of
4584 `fputs'. Updated all callers.
4585 (old_drawing_scheme): New global variable.
4586 (COLOR_CHANGE): New enum value.
4587 (SGR_*): New defines containing color handling escape sequences.
4588 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4589 (glyph): New members `back_color_idx' and `fore_color_idx'.
4590 (glyph::order): Add COLOR_CHANGE.
4591 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4592 `is_underline', `is_bold', `cu_flag', `tty_colors'.
4593 New methods `make_underline', `make_bold', `color_to_idx',
4594 `change_color', `put_color'.
4595 (cu_flag): Moved into `tty_printer' class.
4596 (tty_printer::tty_printer): Initialize colors.
4597 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4598 tty_printer::draw, tty_printer::end_page): Handle colors also.
4599 (main): Add options `-c' and `-i'.
4601 * NEWS, src/devices/grotty/grotty.man: Updated.
4603 * src/include/errarg.h (errarg): Add support for `unsigned int'.
4604 * src/libs/libgroff/errarg.c: Implement it.
4606 * src/include/printer.h (printer): Add `change_color' method
4607 (currently used by grotty only).
4608 * src/libs/libdriver/printer.cc: Implement it.
4609 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4610 call to `pr->change_color'.
4612 * src/roff/troff/node.cc (troff_output_file::fill_color,
4613 troff_output_file::glyph_color): Call `do_motion'.
4615 * tmac/tty.tmac: Add color definitions.
4617 * src/roff/groff/groff.man: Minor fixes.
4619 2002-02-05 Bernd Warken <bwarken@mayn.de>
4621 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4622 it. This is a preparation for future changes.
4624 2002-02-05 Werner LEMBERG <wl@gnu.org>
4626 * src/roff/troff/input.cc (process_input_stack): Fix the case
4627 where leading spaces are followed by \f or \s; previously, an
4628 incorrect space width has been used.
4630 * doc/roff.man (quoted_char): Fix argument.
4631 (comment): Define string.
4633 2002-02-04 Larry Kollar <kollar@alltel.net>
4635 * doc/groff.texinfo: More fixes.
4637 2002-02-04 Werner LEMBERG <wl@gnu.org>
4639 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4640 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4641 `restore_compatibility' before `output_string' -- the LINE_STRING
4642 register now already contains proper switches from and to
4645 * man/groff_char.man: Add Euro symbol.
4646 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4647 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4648 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4651 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4653 (.texinfo.html): Add support for texinfo->html.
4655 2002-02-03 Werner LEMBERG <wl@gnu.org>
4657 Added three new requests `ds1', `as1', and `ami'. The former two
4658 are equivalent to `ds' and `as' with the difference that
4659 compatibility mode is saved on entry, switched off during string
4660 expansion, and restored on exit. The latter is the pendant to `dei'
4663 (do_define_string): Use `define_mode' and `calling mode'.
4664 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4665 end of string, respectively.
4666 (define_string, append_string): Use `calling_mode'.
4667 (define_nocomp_string, append_nocomp_string,
4668 define_string_indirect): New functions.
4669 (init_input_requests): Updated.
4670 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4672 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4673 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
4674 mm macro package accesses this string register directly.
4675 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4677 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
4680 2002-02-02 Larry Kollar <kollar@alltel.net>
4682 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4684 2002-01-31 Werner LEMBERG <wl@gnu.org>
4686 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4688 2002-01-31 Bernd Warken <bwarken@mayn.de>
4690 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4691 * man/groff_out.man: Revised and updated.
4693 2002-01-30 Bernd Warken <bwarken@mayn.de>
4695 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4696 out the unused `{' and `}' commands. Undefined by default.
4697 (IntArray): Make `data' private.
4698 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4699 new methods instead.
4700 (skip_line_D, skip_to_end_of_line): New functions.
4701 (get_D_fixed_args): Use `skip_line_D'.
4702 Changed to handle dummy odd arguments by ...
4703 (get_D_fixed_args_odd_dummy): This new function.
4704 (get_D_variable_args): Split some code into ...
4705 (get_possibly_integer_args): This new function.
4706 (send_draw): Use more `const'.
4707 (delete_current_env): New function.
4708 (position_to_end_of_args): Use `size_t'.
4710 (send_draw): Updated.
4711 (parse_D_command): Handle `c', `C', and `t' better.
4715 2002-01-29 Werner LEMBERG <wl@gnu.org>
4718 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4719 @Def...ListEnd which replaces @Def...x. This is necessary to get
4720 proper HTML output -- see the comment in the file for more
4724 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
4726 Fixes to make color changes of 2002-01-21 work with grohtml.
4728 * src/devices/grohtml/post-html.cc (style): Updated.
4729 (html_printer): Remove unused methods.
4730 (html_printer::do_font, html_printer::draw, html_printer::set_char,
4731 html_printer::special): Updated.
4732 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4733 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4734 Added some debugging code.
4735 (html_text::start_tag): Updated.
4736 (html_text::do_push): New method.
4737 (html_text::push_para): Call it.
4738 Add method for handling color.
4739 (html_text::do_color): Updated.
4740 (html_text::shutdown): Handle color.
4741 * src/devices/grohtml/html-text.h (tag_definition): New member
4745 2002-01-28 Werner LEMBERG <wl@gnu.org>
4747 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4749 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
4751 Add two switches -a and -g to control the antialiasing bits for
4752 text and graphics, respectively.
4754 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4756 * src/devices/grohtml/grohtml.man: Document them.
4757 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4759 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4760 (setupAntiAlias): New function.
4761 (createAllPages): Updated.
4762 (scanArguments): Handle `-a' and `-g'.
4763 (main): Call `setupAntiAlias'.
4766 2002-01-27 Werner LEMBERG <wl@gnu.org>
4768 * doc/groff.texinfo (Def*): Call index function after deffn.
4770 * tmac/html.tmac: Call `nroff' request.
4772 2002-01-26 Larry Kollar <kollar@alltel.net>
4774 * tmac/groff_ms.man: Add some omissions.
4776 2002-01-25 Larry Kollar <kollar@alltel.net>
4778 * tmac/groff_ms.man: Typographical improvements.
4780 2002-01-25 Werner LEMBERG <wl@gnu.org>
4782 * doc/groff.texinfo: Updated version and copyright.
4783 * src/devices/grops/grops.man: Updated.
4785 * tmac/groff_tmac.man: Fix `ig' macro.
4787 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4789 Use `.ne' unconditionally everywhere.
4790 (TS): Only insert some vertical space. Doing a page break is no
4791 longer necessary due to the redefinition of the `ne' request.
4793 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4794 warning for unknown subcommands but parse and pass them to the
4797 2002-01-24 Werner LEMBERG <wl@gnu.org>
4799 * tmac/groff_www.man, NEWS: Fix typos.
4801 2002-01-21 Werner LEMBERG <wl@gnu.org>
4803 Complete revision of color support:
4805 Adapt programs to the new libdriver/input.cc.
4807 Color spaces are no longer converted to RGB but transferred as-is
4808 in the troff intermediate output format.
4810 Handle default color gracefully. troff now supports a `default'
4811 color (which can't be changed).
4813 grops will now use the proper color space functions if available.
4817 Note that currently grohtml doesn't handle colors properly. This
4820 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
4821 (ui_to_a): New function.
4822 * src/include/lib.h: Updated.
4824 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
4825 (color): Simplified; removed all `double' members and methods.
4826 A new array `components' now holds the color parameters.
4827 (color::is_default, color::get_components): New methods.
4828 (color::operator==, color:operator!=): New.
4829 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
4830 to make access to the `components' array more comprehensible.
4831 * src/libs/libgroff/color.cc: Implement new color support.
4832 (atoh): Small fixes.
4833 (color::read_encoding): Simplified for new troff intermediate color
4835 (default_color): New global variable.
4837 * src/roff/troff/input.cc (default_symbol): New global variable.
4838 (lookup_color): Use it.
4839 (default_black): Removed.
4840 (do_glyph_color, do_fill_color): Simplified.
4841 (define_color): Handle default color.
4843 (do_if_request): Handle default color.
4844 * src/roff/troff/env.cc (environment::environment): Initialize
4845 colors with `default_color'.
4846 * src/roff/troff/node.cc (troff_output_file::put): Add method
4848 (troff_output_file::hex): Removed.
4849 (troff_output_file::fill_color, troff_output_file::glyph_color):
4850 Updated to include/color.h and libdriver/input.cc.
4852 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
4853 fill color properly (identically to the outline color). \D'f...'
4854 doesn't work any more.
4855 All function calls to it updated.
4857 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
4859 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
4862 * src/devices/grops/ps.cc (ps_output::put_color): New method.
4863 (ps_printer::sbuf_color): Make a real member instead of pointer.
4864 (ps_printer::fill_color, ps_printer::output_color): Removed.
4865 (ps_printer::ps_printer): Updated.
4866 (ps_printer::set_char): Ditto.
4867 (ps_printer::set_color): Use various color schemes.
4868 Use `put_color' method.
4869 (ps_printer::flush_sbuf): Don't set color.
4870 (ps_printer::fill_path): Take `environment' as parameter.
4871 Simplify color handling.
4872 (ps_printer::set_line_thickness): Renamed to ...
4873 (ps_printer::set_line_thickness_and_color): This (and updated).
4874 (ps_printer::set_color): Change second parameter from `complete'
4875 to `fill' which better describes what it does.
4876 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
4877 and text in the right order.
4879 Remove branches for `f' and `F'; this is handled by
4881 * src/devices/grops/ps.h: Updated.
4882 * font/devps/prologue (FL): Redefined.
4883 ({F,C}r,k,g: New color functions (with and without filling).
4885 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
4886 * man/groff_diff.man, man/groff.man, man/groff_out.man,
4887 doc/groff.texinfo, NEWS: Updated.
4889 2002-01-20 Bernd Warken <bwarken@mayn.de>
4891 * src/libs/libdriver/input.cc: Completely rewritten. See comments
4892 in this file for what has been changed.
4894 2002-01-19 Werner LEMBERG <wl@gnu.org>
4896 * test-groff: Fix GROFF_FONT_PATH.
4897 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
4898 is read before .TH or .Dd is parsed.
4900 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
4902 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
4903 quadrant boundaries.
4905 2002-01-18 Werner LEMBERG <wl@gnu.org>
4907 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
4910 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
4912 * tmac/doc.common: Initialize %I register for the %I macro to
4913 avoid (harmless) warning.
4914 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
4915 when in the SYNOPSIS section.
4917 2002-01-17 Bruno Haible <haible@clisp.cons.org>
4919 * src/preproc/pic/lex.cc (get_token): Fix typo.
4921 2002-01-17 Werner LEMBERG <wl@gnu.org>
4923 * devices/grops/ps.cc: Fix incorrectly applied last patch.
4925 2002-01-17 Larry Kollar <kollar@alltel.net>
4927 * tmac/groff_ms.man: Completely rewritten.
4929 2002-01-16 Werner LEMBERG <wl@gnu.org>
4931 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
4933 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
4935 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
4937 (ps_printer::draw): Ditto.
4939 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
4941 * tmac/groff_mdoc.man: Minor fixes.
4943 2002-01-13 Werner LEMBERG <wl@gnu.org>
4945 * man/groff_out.man: Some fixes.
4947 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
4949 * doc/pic.ms: Fix typos.
4951 2002-01-12 Werner LEMBERG <wl@gnu.org>
4953 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
4955 2002-01-10 Werner LEMBERG <wl@gnu.org>
4957 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
4961 2002-01-09 Bernd Warken <bwarken@mayn.de>
4963 * man/groff_out.man: Revised.
4964 * man/roff.man: Minor fixes.
4965 * src/roff/troff/troff.man: Some reordering.
4967 2002-01-09 Werner LEMBERG <wl@gnu.org>
4969 * tmac/an-old.tmac: Add dummy macros for equation support.
4971 2002-01-07 Werner LEMBERG <wl@gnu.org>
4973 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
4975 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
4977 * tmac/groff_man.man: Small improvements.
4979 2002-01-07 Bernd Warken <bwarken@mayn.de>
4981 * man/groff_diff.man: Revised.
4983 2002-01-06 Werner LEMBERG <wl@gnu.org>
4985 * tmac/www.tmac: Remove extraneous backslash.
4987 2002-01-06 Bernd Warken <bwarken@mayn.de>
4989 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
4991 2002-01-05 Werner LEMBERG <wl@gnu.org>
4993 Integrated groffer, contributed by Bernd Warken.
4995 * contrib/groffer/*: New.
4996 * Makefile.in, NEWS: Updated.
4998 2002-01-04 Werner LEMBERG <wl@gnu.org>
5000 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5001 registers defined in macro packages.
5002 Revising the ms part.
5004 2002-01-04 Larry Kollar <kollar@alltel.net>
5006 * doc/groff.texinfo: Add documentation for ms macros.
5008 2002-01-02 Werner LEMBERG <wl@gnu.org>
5010 First step in adding PS support for the Euro symbol. `eu' is the
5011 official Euro logo, `Eu' is a font-specific glyph variant.
5013 * font/devps/text.enc: Add `Euro' at position 9.
5014 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5015 * font/devps/symbolmap: Regenerated.
5019 2002-01-02 Bernd Warken <bwarken@mayn.de>
5021 * man/roff.man: Revised.
5023 2002-01-01 Bernd Warken <bwarken@mayn.de>
5025 * src/roff/groff/groff.man: Completely rewritten.
5027 2001-12-31 Werner LEMBERG <wl@gnu.org>
5029 * doc/Makefile: Updated.
5031 2001-12-30 Werner LEMBERG <wl@gnu.org>
5033 * tmac/www.tmac: Make all names of internal macros/registers/strings
5034 lowercase, and prepend `www-'.
5035 Other minor changes.
5036 * src/roff/troff/troff.man: Add preprocessor string at BOF.
5038 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
5040 Implement option `-b' in grohtml to set the HTML background colour.
5042 * src/devices/grohtml/post-html.cc (default_background): New global
5044 (html_printer::html_printer): Initialize `background' to
5045 `default_background'.
5046 (main): Implement option `-b'.
5048 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
5050 * src/devices/grohtml/grohtml.man: Updated.
5051 * doc/Makefile (.ms.html): Use `-b'.
5052 * tmac/html.tmac: Don't set background color.
5054 Add new grohtml tag `.html-tl'.
5056 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
5058 (title_desc::title_desc): Updated.
5059 (html_printer::troff_tag): Handle `.html-tl'.
5060 (html_printer::write_title): Use `with_h1'.
5061 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
5062 (HTML-TL): New macro.
5064 Add support for unordered lists in HTML.
5066 * tmac/www.tmac (www-level): New auxiliary register.
5067 (www-level1, www-level2, www-level3): New auxiliary strings.
5068 (www-push-level, www-pop-level): New auxiliary macros
5069 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
5073 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
5074 (DEFAULT_VERTICAL_OFFSET): Removed.
5075 (IMAGE_BOARDER_PIXELS): Set to 0.
5076 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
5077 (vertical_offset): Initialize with 0.
5078 (gsPaper): New global variable.
5079 (get_resolution): Scan for and return unsigned int.
5080 (get_papersize): New function to get paper length from devps/DESC.
5081 (determine_vertical_offset): New function.
5082 (createAllPages): Produce gray-level images and use proper page
5084 (createImage): Use `-quiet' option of pnmcrop.
5085 (addZ): Fix passing of `-Z'.
5086 (scanArguments): Fix handling of `-o'.
5087 (main): Call `determine_vertical_offset'.
5088 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
5091 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
5092 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
5093 glyph descenders properly.
5095 * doc/homepage.ms: Include `gnubw.eps'.
5096 * doc/Makefile (gnubw.eps): New rule.
5097 (homepage.html): Depend on `gnubw.eps'.
5099 2001-12-25 Werner LEMBERG <wl@gnu.org>
5101 * src/roff/troff/input.cc (default_black): Fix return value.
5103 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
5105 * tmac/doc-common (Dt): Change output of architecture strings.
5106 Do some syntax cleanup.
5107 * tmac/groff_mdoc.man: Updated.
5109 2001-12-23 Werner LEMBERG <wl@gnu.org>
5111 Adding an `itc' request (input line trap accepting \c).
5113 * src/roff/troff/env.h (environment): New member
5114 `continued_input_trap'.
5115 Make `do_input_trap' a friend function instead of `input_trap'.
5116 * src/roff/troff/env.cc (environment::environment,
5117 environment::copy): Updated.
5118 (environment::newline): Implement it.
5119 (do_input_trap): New function.
5120 (input_trap): Call `do_input_trap'.
5121 (input_trap_continued): New function.
5122 (init_env_requests): Updated.
5123 * src/roff/troff/TODO: Updated.
5125 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5128 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5130 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
5132 * tmac/doc-common, tmac/doc-syms: Small updates.
5134 2001-12-22 Colin Watson <cjwatson@debian.org>
5136 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5138 2001-12-22 Bernd Warken <bwarken@mayn.de>
5140 * MANIFEST: New file.
5142 2001-12-22 Werner LEMBERG <wl@gnu.org>
5144 * src/preproc/grn/grn.man: Updated.
5146 2001-12-22 Solar Designer <solar@openwall.com>
5148 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
5151 2001-12-19 Werner LEMBERG <wl@gnu.org>
5153 Implement a fallback character request `.fchar'.
5155 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5156 (is_fallback): New inline function.
5157 * src/roff/troff/input.cc (do_define_character): New function.
5158 (define_character): Call `do_define_character'.
5159 (define_fallback_character): New function.
5160 (init_input_requests): Add `fchar'.
5161 (charinfo::charinfo): Updated.
5162 (charinfo::set_macro): New argument to set `fallback' flag.
5163 * src/roff/troff/node.cc (make_glyph_node, make_node,
5164 node::add_char): Check `fallback' flag.
5165 * NEWS, man/groff_diff.man, man/groff_man: Updated.
5167 2001-12-16 Werner LEMBERG <wl@gnu.org>
5169 * groff.texinfo: Document exact search algorithm for glyphs.
5171 2001-12-15 Werner LEMBERG <wl@gnu.org>
5173 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5174 the left side of $(MANPAGES) rule to make it always non-empty.
5176 2001-12-14 Werner LEMBERG <wl@gnu.org>
5178 * src/roff/troff/input.cc (default_black): Define default color
5179 `black' if not yet defined.
5181 2001-12-13 Werner LEMBERG <wl@gnu.org>
5183 Implement new string-valued register `.fn' to return the current
5184 real (internal) font name.
5186 * env.cc (environment::get_font_name_string): New function.
5187 (init_env_requests): Add `.fn' register.
5188 * env.h (environment): Updated.
5189 * node.cc (font_info): Make `get_font_name' a friend.
5190 (get_font_name): New function.
5193 * man/groff_diff.man, man/groff.man, NEWS: Updated.
5195 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5197 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5199 2001-12-12 Werner LEMBERG <wl@gnu.org>
5201 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5203 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
5205 * man/groff_diff.man: Adding documentation for \O.
5207 2001-12-10 Werner LEMBERG <wl@gnu.org>
5209 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5210 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5212 2001-12-09 Werner LEMBERG <wl@gnu.org>
5214 * man/roff.man: Revised.
5215 * src/roff/groff/groff.man: Replace man page references with a
5216 pointer to roff.man.
5218 2001-12-09 Bernd Warken <bwarken@mayn.de>
5220 * man/roff.man: Completely rewritten.
5222 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5224 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5226 2001-12-05 Werner LEMBERG <wl@gnu.org>
5228 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5230 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5231 order of initializers.
5234 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
5236 * doc/groff.texinfo: Fix documentation of \O.
5238 * src/devices/grohtml/html-text.cc (html_text::do_indent,
5239 html_text::do_table, html_text::do_emittext, html_text::do_para):
5240 Use `const' for first argument.
5241 (html_text::do_table): Use cast.
5242 * src/devices/grohtml/html-text.h: Updated.
5243 * src/devices/grohtml/output.cc (simple_output::put_string): Add
5244 method for `const string &s'.
5245 * src/devices/grohtml/html.h: Updated.
5246 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5247 (ANCHOR_TEMPLATE): Modified.
5248 (manufacture_headings): New global variable to handle `-h' option.
5249 (is_subsection): Removed.
5250 (char_buffer::add_string): Add `const' to first argument.
5251 Protect against invalid string argument.
5252 Add method for `const string &s'.
5253 (text_glob): Completely redesigned.
5254 (page): Use `const' for strings and remove string length variable.
5255 (page::add_html): Removed.
5256 (page::add_end_encode): New member function.
5257 (to_unicode): Moved upwards.
5258 (title_desc, header_desc): Updated.
5259 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5261 (html_printer::is_bold, html_printer::make_bold): New member
5263 (html_printer::end_of_line): Updated.
5264 (generate_img_src, html_printer::do_auto_image,
5265 html_printer::do_title, html_printer::write_header,
5266 html_printer::determine_header_level, html_printer::do_heading,
5267 html_printer::do_linelength, html_printer::do_pageoffset,
5268 html_printer::do_indentation, html_printer::do_tempindent,
5269 html_printer::do_indentedparagraph, html_printer::do_break,
5270 html_printer::flush_sbuf, get_html_translation,
5271 html_printer::begin_page, html_printer::special): Rewritten to get
5272 rid of static string length limit.
5273 (html_printer::troff_tag): Added `.no-auto-rule'.
5274 (html_printer::flush_globs): Small fix.
5275 (html_printer::determine_space): Don't compute `space_width'.
5276 (html_printer::translate_to_html): Renamed to ...
5277 (html_printer::emit_html): This (with updates).
5278 (html_printer::write_header): Implement `-h' option.
5279 (html_printer::draw): Remove commented-out code. Handle `F'
5281 (html_printer::add_char_to_sbuf): Removed.
5282 (html_printer::add_to_sbuf): Rewritten.
5283 (html_printer::sbuf_continuation): Fixed.
5284 (html_printer::seen_backwards_escape, reverse,
5285 html_printer::remove_last_char_from_sbuf): Removed.
5286 (char_translate_to_html, str_translate_to_html): Removed.
5287 (html_printer::overstrike): New function member.
5288 (html_printer::set_char): Use it.
5289 (html_printer::do_body): New function member.
5290 (html_printer::~html_printer): Use it.
5291 (main): Handle `-h' option.
5293 * src/devices/grohtml/grohtml.man: Document -h switch.
5295 * src/preproc/html/pre-html.cc: Include searchpath.h
5296 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5297 (get_resolution): New function.
5298 (checkImageDir): Use `0777' permissions in mkdir()
5299 (write_start_image): Rewritten to use `\O[5...]'.
5300 (createImage, generateImages): Updated.
5301 (main): Handle `F' and `h' options.
5302 Use `get_resolution'.
5304 * src/roff/troff/input.cc (begin, end, image): Removed.
5305 (do_suppress): Take parameter.
5306 Handle modified syntax of `\O'.
5307 (token::next): Updated.
5308 (init_markup_requests): Removed.
5311 * src/roff/troff/div.h: Add declaration for begin_page().
5313 * tmac/color-html.tmac: Removed. Contents moved to...
5314 * tmac/html.tmac: Here. Set background color.
5315 * tmac/color.tmac: Removed. Contents moved to...
5316 * tmac/ps.tmac: Here.
5317 * tmac/www.tmac: Remove the title command when generating images
5319 (NO_AUTO_RULE): New macro.
5320 (HTML_DO_IMAGE): Use revised `\O' escapes.
5321 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5323 2001-12-02 Werner LEMBERG <wl@gnu.org>
5325 * tmac/groff_mdoc.man: Fix typo.
5327 2001-12-01 Colin Watson <cjwatson@debian.org>
5329 * man/roff.man: Fix typo.
5331 2001-11-29 Werner LEMBERG <wl@gnu.org>
5333 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5336 * src/roff/troff/input.cc (read_draw_node): Emit error message if
5337 more than one argument to \D'f ...'.
5339 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5341 2001-11-28 Werner LEMBERG <wl@gnu.org>
5343 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5346 * tmac/groff_man.man: Minor cosmetic fix.
5348 2001-11-27 Werner LEMBERG <wl@gnu.org>
5350 * src/roff/groff/groff.man, tmac/groff_tmac.man,
5351 tmac/groff_www.man: s/mwww/www/.
5353 2001-11-26 Werner LEMBERG <wl@gnu.org>
5355 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5356 * configure: Regenerated.
5357 * win32-diffs: Updated.
5359 * tmac/groff_mwww.tmac: Renamed to ...
5360 * tmac/groff_www.tmac: This.
5361 * tmac/mwww.tmac: Removed.
5362 * NEWS, tmac/Makefile.sub: Updated.
5364 2001-11-21 Werner LEMBERG <wl@gnu.org>
5366 * doc/groff.texinfo: Improve documentation of the `\v' escape.
5367 Fix explanation of `\D' and `rt'.
5369 2001-11-20 Werner LEMBERG <wl@gnu.org>
5371 * tmac/an-old.tmac (an-header): Set header length equal to page
5373 * doc/groff.texinfo: Improve documentation of `ne' request. Other
5377 2001-11-19 Werner LEMBERG <wl@gnu.org>
5379 * NEWS, man/Makefile.sub: Updated.
5381 2001-11-19 Bernd Warken <bwarken@mayn.de>
5383 * man/ditroff.man: New file.
5385 2001-11-17 Werner LEMBERG <wl@gnu.org>
5387 * man/groff_differences.man: Renamed to ...
5388 * man/groff_diff.man: This. Updated.
5389 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5391 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5392 * src/preproc/html/pushback.cc: This. Updated.
5393 * src/preproc/html/pushbackbuffer.h: Renamed to ...
5394 * src/preproc/html/pushback.h: This.
5395 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5398 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5399 * src/libs/libgroff/htmlhint.cc: This.
5400 * src/libs/libgroff/Makefile.sub: Updated.
5402 * tmac/an-old.tmac (an-end): Fix page length.
5404 2001-11-16 Werner LEMBERG <wl@gnu.org>
5406 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5407 * man/Makefile.sub: Include groff_differences.man.
5408 * VERSION: Set to 1.18.
5409 * REVISION: Set to 0.
5411 2001-11-16 Bernd Warken <bwarken@mayn.de>
5413 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5414 the second dot (or ending macro name) to end a macro.
5415 * doc/groff.texinfo: Doc fix.
5417 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
5419 * tmac/doc-common (doc-header): Handle very long document titles
5422 2001-11-16 Werner LEMBERG <wl@gnu.org>
5424 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5426 2001-11-15 Werner LEMBERG <wl@gnu.org>
5428 * src/roff/troff/troff.man: Revised and split into troff.man and...
5429 * man/groff_differences.man: New file.
5432 2001-11-13 Werner LEMBERG <wl@gnu.org>
5434 * tmac/an-old.tmac (TS, TE): New macros for table support.
5436 2001-11-12 Werner LEMBERG <wl@gnu.org>
5438 * src/include/lib.h: Provide a fix for emx to not include
5441 2001-10-27 Werner LEMBERG <wl@gnu.org>
5443 * src/roff/troff/input.cc (substring_macro): Fix computation of
5446 2001-10-20 Werner LEMBERG <wl@gnu.org>
5448 Undo change from 2001-08-28.
5450 * src/roff/troff/input.cc (have_input): New global variable.
5451 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5452 in compatibility mode.
5453 (process_input_stack): Use it.
5455 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
5457 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5458 being handled as end-of-sentence characters,
5460 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
5462 * src/roff/troff/input.cc (file_iterator): New members
5463 `suppress_newline_flag' and `seen_escape'.
5464 (file_iterator::next_file): Updated.
5465 (file_iterator::fill): Use it.
5466 (string_iterator): New member `suppress_newline_flag'.
5467 (string_iterator::fill): Set it.
5468 (get_color_element): Use MAX_COLOR_VAL.
5469 * src/roff/troff/env.cc (environment): Remove `need_eol'.
5470 (no_fill): Don't set `env->ignore_next_eol'.
5471 (environment::newline): Handle `eol' tag properly.
5473 (environment::add_html_tag): Set `env->ignore_next_eol'.
5475 * src/roff/troff/env.h (environment): Updated.
5477 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5479 (html_printer::outstanding_eol): New member function.
5480 (html_printer::do_title): Use new functions.
5481 (html_printer::troff_tag): Test `id_eol_ce'.
5483 2001-10-10 Werner LEMBERG <wl@gnu.org>
5485 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5486 files work with -C also.
5488 2001-10-05 Werner LEMBERG <wl@gnu.org>
5490 * doc/pic.ms: Minor fix.
5491 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5492 as a valid command line switch.
5493 * src/devices/grohtml/post-html.cc (main): Ditto.
5495 * src/devices/grohtml/grohtml.man: Updated.
5496 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5498 2001-10-04 Werner LEMBERG <wl@gnu.org>
5500 Implementing color support in troff, pic, grops, and grohtml. These
5501 changes are based on a major patch provided by Gaius Mulley
5504 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5505 definitions with both hex values and fractions.
5507 New escapes: \m and \M for drawing and background color,
5508 respectively. This corresponds to the troff output commands `m'
5511 groff and troff accept command line switch `-c' to disable color
5512 output (which is automatically disabled in compatibility mode).
5514 New scaling indicator `f' for fractions (1f = 65536u).
5516 New conditional operator `m' to test for defined colors with `if'
5519 New keywords `color' (or `colour', `colored', `coloured'), `outline'
5520 (or `outlined'), and `shaded' added to pic.
5522 * src/include/color.h: New file.
5523 * src/include/driver.h: Include it.
5524 * src/include/printer.h: Include color.h.
5525 (environment): New members `col' and `fill'.
5526 (printer): Remove `adjust_arc_center' member function.
5527 * src/include/Makefile.sub: Updated.
5529 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5531 Handle `m' and `DF' troff commands.
5532 * src/libs/libgroff/color.cc: New file.
5533 * src/libs/libgroff/Makefile.sub: Updated.
5535 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5537 (createImage): Fix computation of `y2'.
5539 (buffer::write_file_html): Remove calls to `stop'.
5541 * src/preproc/pic/common.h (common_output): New abstract function
5542 members `set_color', `reset_color', `get_last_filled', and
5543 `get_outline_color'.
5544 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5545 (object_spec): Add members `shaded' and `outlined'.
5546 * src/preproc/pic/output.h (output): `command' is now abstract.
5547 New function members `set_color', `reset_color', `get_last_filled',
5548 and `get_outline_color'.
5549 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5550 `outline[d]', and `shaded'.
5551 * src/preproc/pic/object.cc (output::command): Removed.
5552 (output::set_location): Moved to output.h.
5553 (graphic_object): Add protected members `outline_color' and
5555 Add member functions `set_outline_color', `get_outline_color', and
5557 (closed_object): Add member function `set_fill_color'.
5558 Add member `color_fill'.
5559 (graphic_object::print_text): Use `out->set_color' and
5561 (box_object::print, ellipse_object::print, circle_object::print,
5562 line_object::print, spline_object::print, arc_object::print): Ditto.
5563 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5564 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5565 `SHADED', making them `%left'.
5566 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5567 * src/preproc/pic/tex.cc (tex_output): New dummy function members
5568 `set_color', `reset_color', `get_last_filled', and
5569 `get_outline_color'.
5570 * src/preproc/pic/troff.cc (simple_output): New abstract function
5571 members `set_color', `reset_color', and `get_last_filled'.
5572 (simple_output::polygon, simple_output::circle,
5573 simple_output::ellipse): Use `get_last_filled'.
5574 (troff_output): New members `last_filled' and `last_outlined'.
5575 New function members `set_color', `reset_color', `get_last_filled',
5576 and `get_outline_color'.
5577 (troff_output::finish_picture): Use `reset_color'.
5578 (troff_output::set_fill): Test `last_filled'.
5579 * src/preproc/pic/pic.man: Updated.
5581 * src/roff/groff/groff.cc (main): Implement `-c' option.
5582 (synopsis, help): Updated.
5583 src/roff/groff/groff.man: Updated.
5585 * src/roff/troff/troff.h: Include color.h.
5586 (warning_type): Add WARN_COLOR.
5587 * src/roff/troff/env.h (environment): New members
5588 `{cur,prev}_{glyph,fill}_color'.
5589 New member functions `get_{prev_,}{glyph,fill}_color'.
5590 * src/roff/troff/env.cc: Initialize and implement them.
5591 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5592 Replace `NULL' with `0' everywhere for consistency.
5593 (lookup_color, default_black, do_glyph_color, do_fill_color,
5594 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5595 define_color): New functions.
5596 (token::next): Implement \M and \m escapes.
5597 (do_if_request): Implement `m' operator.
5599 (main): Implement `-c' option.
5600 (init_markup_requests): Add `defcolor' request.
5601 (warning_table): Add `color' warning.
5602 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5604 * src/roff/troff/node.cc (troff_output_file): New members
5605 `current_{page,glyph}color'. New member functions `put_hex',
5606 `glyph_color', and `fill_color'.
5607 (glyph_color_node::*, fill_color_node::*): Implement it.
5608 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5609 (parse_term): Add support for `f'.
5610 * src/roff/troff/troff.man: Updated.
5612 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5614 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5615 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5617 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5618 (tag_definition): Use `void *' for arg1.
5619 (html_text): New member functions `do_color' and `done_color'.
5620 Use `void *' for second parameter of `push_para' member function.
5621 New `push_para' member function with a single parameter.
5622 Use `char *' for parameter of `issue_table_begin' member funtion.
5623 New `issue_color_begin' member function.
5624 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5626 (html_text::issue_color_begin): New function.
5627 (html_text::issue_table_begin): Use `char *' for parameter.
5628 (html_text::start_tag, html_text::shutdown,
5629 html_text::check_emit_text): Updated.
5630 (html_text::push_para): Use `void *' for second parameter.
5631 Add same function with only one parameter.
5632 (html_text::do_*): Updated.
5633 (html_text::do_color, html_text::done_color): New functions.
5634 * src/devices/grohtml/post-html.cc (style): New member `col'.
5635 Mew member `style' with 6 parameters.
5636 (style::style, style::operator==): Updated.
5637 (html_printer::do_font): Use it.
5638 (html_printer::draw): Add dummy entry for `F'.
5639 (html_printer::set_char): Updated.
5640 * src/devices/grohtml/grohtml.man: Updated.
5642 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5643 trailing zeroes removed.
5644 (ps_printer): New members `sbuf_color', `fill_color', and
5646 Removed member `fill'.
5647 New member function `set_color'.
5648 (ps_printer::ps_printer, ps_printer::set_char): Updated.
5649 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5650 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5652 * tmac/color-html.tmac, tmac/color.tmac: New files.
5653 * tmac/troffrc: Include them.
5654 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5655 * tmac/Makefile.sub: Updated.
5657 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5658 man/groff.man: Updated.
5659 * font/devps/prologue.ps: Define FC and CO functions.
5661 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
5663 Fix incorrect cropping of images and incorrect handling of special
5664 characters. Fix handling of file names in \O.
5666 * src/include/geometry.h: New file.
5667 * src/libs/libgroff/geometry.cc: New file.
5668 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5670 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5672 (do_suppress): Updated.
5673 * src/roff/troff/node.cc: Include geometry.h.
5674 (troff_output_file::flush_tbuf): Fixed parameters to
5675 `check_output_limits'.
5676 (troff_output_file::check_charinfo): Ditto.
5677 (troff_output_file::determine_line_limits): Add support for `Da'
5680 * src/devices/grohtml/post-html.cc (str_translate_to_html):
5681 Add new parameter `is_special' to decode special characters from
5683 (html_printer::do_title, html_printer::do_heading,
5684 html_printer::do_indentedparagraph,
5685 html_printer::translate_to_html, html_printer::special): Updated.
5687 2001-10-03 Werner LEMBERG <wl@gnu.org>
5689 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5690 Fix entry for config.h.
5691 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5692 * tmac/troffrc: Translate nonbreakable space character to `\~'.
5693 * src/preproc/eqn/eqn.man: Document -d command line option.
5695 2001-09-27 Werner LEMBERG <wl@gnu.org>
5697 * man/groff.man: Use
5705 instead of the old code (`.ad .hy' after the table) to suppress
5706 incorrect hyphenation for grohtml output.
5708 2001-09-22 Werner LEMBERG <wl@gnu.org>
5710 * man/groff_font.man, man/groff_out.man: Minor fixes.
5712 2001-09-20 Werner LEMBERG <wl@gnu.org>
5714 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
5715 Arnold Robbins <arnold@skeeve.com>).
5717 2001-09-09 Werner LEMBERG <wl@gnu.org>
5719 * configure: Regenerated with autoconf 2.52.
5721 * doc/groff.texinfo: Complete revision of indices.
5723 2001-09-07 Werner LEMBERG <wl@gnu.org>
5725 * doc/Makefile (clean): Updated to delete all indices.
5727 2001-09-05 Werner LEMBERG <wl@gnu.org>
5729 * src/roff/troff/troff.man: Remove superfluous line.
5731 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5732 given on the command line (or rather, if only the default warnings
5735 2001-09-03 Werner LEMBERG <wl@gnu.org>
5737 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5738 use .ne for TTY devices.
5740 2001-08-31 Werner LEMBERG <wl@gnu.org>
5742 * src/roff/troff/token.h, src/roff/troff/input.cc:
5743 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5745 2001-08-28 Werner LEMBERG <wl@gnu.org>
5747 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5748 * src/roff/troff/input.cc (token::next): Return
5749 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5751 (token::description): Updated.
5752 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5753 (token::add_to_node_list, token::process): Ignore
5754 TOKEN_TRANSPARENT_ESCAPE.
5756 2001-08-27 Werner LEMBERG <wl@gnu.org>
5758 * tmac/an-old.tmac: Fix `S' string.
5760 2001-08-26 Werner LEMBERG <wl@gnu.org>
5762 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5764 2001-08-25 Werner LEMBERG <wl@gnu.org>
5766 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5768 Many other minor fixes.
5770 * configure.ac: Add message at end to inform how to compile
5772 * configure: Regenerated.
5774 2001-08-24 Werner LEMBERG <wl@gnu.org>
5776 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5777 Updated to latest version of libc.
5779 2001-08-23 Werner LEMBERG <wl@gnu.org>
5781 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5782 Autoconf 2.50 and newer can handle this.
5783 * configure: Regenerated.
5785 2001-08-21 Werner LEMBERG <wl@gnu.org>
5787 * doc/pic.ms: Fix typo.
5788 * src/preproc/tbl/tbl.man: Document case of global options.
5790 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
5792 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5793 handling of `CR' font.
5795 2001-08-20 Werner LEMBERG <wl@gnu.org>
5797 Use a config.h file.
5799 * src/include/lib.h: Include config.h.
5800 * All C files: Ditto (if necessary).
5801 * All C++ source and header files: Include lib.h first (if
5804 * src/include/config.hin: New file (autogenerated by autoheader).
5805 * stamp-h.in: New file.
5806 * configure.ac: Updated.
5807 * aclocal.m4: Add third parameters to AC_DEFINE macros.
5808 (GROFF_ARRAY_DELETE): Simplified.
5809 * Makefile.sub (DISTCLEANFILES): Updated.
5810 Added targets for remaking config.status, config.hin, config.h,
5811 stamp-h.in, and stamp-h.
5812 * configure: Regenerated.
5814 2001-08-19 Werner LEMBERG <wl@gnu.org>
5818 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
5820 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
5821 (do_sprintf): Use snprintf().
5823 2001-08-18 Werner LEMBERG <wl@gnu.org>
5825 * src/libs/snprintf/*: Added an snprintf module written by Mark
5827 * src/libs/libgroff/Makefile.sub: Updated.
5828 * configure.ac: Add test for snprintf().
5829 * Makefile.in: Updated.
5830 * configure: Regenerated.
5832 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
5835 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
5837 * tmac/doc.tmac (Ex): New implementation.
5838 * tmac/doc-common, tmac/groff_tmac.man: Updated.
5840 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
5842 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
5844 * tmac/groff_tmac.man: Updated.
5846 2001-08-13 Werner LEMBERG <wl@gnu.org>
5848 * src/preproc/tbl/tbl.man: Minor documentation update.
5850 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
5852 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
5853 * configure.ac: Add declaration test for gettimeofday().
5854 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
5855 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
5856 * configure: Regenerated.
5858 2001-08-11 Werner LEMBERG <wl@gnu.org>
5860 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
5861 * configure.ac: Add declaration test for strcasecmp().
5862 * Makefile.in: Updated.
5863 * configure: Regenerated.
5864 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
5865 this is necessary because groff's mkstemp.cc is C++.
5866 Add declaration conditionally for strcasecmp().
5868 2001-08-10 Werner LEMBERG <wl@gnu.org>
5870 Integrated pic2graph, contributed by Eric S. Raymond.
5872 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
5874 * Makefile.in, NEWS: Updated.
5876 * src/preproc/tbl/tbl.man: Revised.
5878 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
5880 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
5882 2001-08-09 Werner LEMBERG <wl@gnu.org>
5884 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
5887 2001-08-08 Paul Eggert <eggert@twinsun.com>
5889 * Makefile.sub (configure): Depend on configure.ac, not
5891 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
5893 2001-08-07 Werner LEMBERG <wl@gnu.org>
5895 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
5898 2001-08-06 Werner LEMBERG <wl@gnu.org>
5900 * src/roff/troff/troff.man: Improve documentation of -E option.
5902 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5904 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
5907 2001-07-27 Werner LEMBERG <wl@gnu.org>
5909 * src/preproc/refer/refer.cc: Undo last change.
5910 * src/devices/grohtml/post-html.cc: Ditto.
5912 2001-07-26 Werner LEMBERG <wl@gnu.org>
5914 * src/preproc/refer/refer.cc: Include `lib.h'.
5915 * src/devices/grohtml/post-html.cc: Ditto.
5917 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
5919 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
5920 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
5921 * Makefile.in: Comment updated.
5922 * configure: Regenerated.
5924 2001-07-25 Werner LEMBERG <wl@gnu.org>
5926 * src/preproc/pic/pic.cc: Removed.
5927 * src/preproc/pic/pic_tab.h: Removed.
5928 * src/preproc/refer/label.cc: Removed.
5930 * doc/Makefile (.ms.html): Don't use a file name extension in
5931 argument to grohtml's -I option.
5932 * Makefile.in (dist): Remove CVS directories.
5933 Call `distfiles' target.
5935 * src/devices/grohtml/grohtml.man: Add information about valid
5936 versions of pnmtopng.
5937 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
5938 name instead of number.
5940 2001-07-24 Werner LEMBERG <wl@gnu.org>
5942 * doc/groff.texinfo: Minor fixes.
5944 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
5946 * doc/Makefile (.ms.html): Put image files into a subdirectory.
5949 2001-07-20 Werner LEMBERG <wl@gnu.org>
5951 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
5952 * src/libs/libgroff/mkstemp.cc: New file.
5953 * src/libs/libgroff/mksdir.cc: New file.
5954 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
5955 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
5956 * src/libs/libgroff/Makefile.sub: Updated.
5957 * src/include/lib.h: Add mksdir() prototype.
5958 * src/include/posix.h: Define S_IXUSR if not yet defined.
5960 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
5961 (createAllPages): Use mksdir() instead of current code.
5962 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
5963 (main): [!HAVE_MKSTEMP]: Removed.
5965 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
5966 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
5968 * configure.ac: Add tests for stdint.h, sys/time.h, and
5970 Call new GROFF_xxx macros.
5971 * configure: Regenerated.
5972 * Makefile.in: Comments updated.
5974 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
5976 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
5977 instead of current code.
5978 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
5979 * src/roff/groff/groff.cc (possible_command::insert_args): New
5981 (main): Use it for predriver handling instead of insert_arg().
5983 2001-07-19 Werner LEMBERG <wl@gnu.org>
5985 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
5988 * src/include/posix.h: Define S_IWUSR if not yet defined.
5990 2001-07-18 Werner LEMBERG <wl@gnu.org>
5994 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
5996 * tmac/groff_mdoc.man: Document new -width and -column syntax.
5997 Some other minor fixes.
5998 * tmac/an-old.tmac: Add `AT' and `UC' macros.
6000 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
6002 Replace call to `troff' with `groff -Z' to make it aware of
6005 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6006 (troff_command, command_prefix): Removed.
6007 (alterDeviceTo): Use groff.
6008 (addZ): New function.
6009 (char_buffer::do_html): Use it.
6010 (scanArguments): Use TROFF_COMMAND.
6011 (findPrefix): Removed.
6013 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6015 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
6017 * doc/pic.ms: Documentation fixes.
6019 2001-07-17 Werner LEMBERG <wl@gnu.org>
6021 Replace atexit() with global destructor.
6023 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6024 (xtmpfile_list_init): New global structure to deallocate
6025 xtmpfile_list on exit. Its destructor inherits most code from
6027 (remove_tmp_files): Deleted.
6028 (add_tmp_file): Simplified.
6030 2001-07-16 Werner LEMBERG <wl@gnu.org>
6032 Replace strdup() with strsave().
6034 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6035 (set_papersize): Use strsave() and a_delete.
6036 (main): Use strsave().
6037 * src/preproc/html/pre-html.cc (make_message, createAllPages,
6038 removeAllPages): Use strsave() and a_delete.
6040 * configure.ac: Remove test for strdup.
6041 * Makefile.in: Comment updated.
6042 * configure: Regenerated.
6044 2001-07-15 Werner LEMBERG <wl@gnu.org>
6046 * win32-diffs: Updated.
6048 2001-07-14 Werner LEMBERG <wl@gnu.org>
6050 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
6051 removing the old one.
6052 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
6054 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6056 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
6058 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
6060 Merge -xwidth into -width. Add -xwidth functionality to -column
6063 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
6065 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
6066 string immediately following a leading dot starts with a valid mdoc
6068 Add similar code to the -column branch.
6069 (doc-Bl-usage): Updated.
6070 * groff_mdoc.man: s/-xwidth/-width/.
6072 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
6074 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
6075 running into centered or non-formatted text.
6077 2001-07-11 Werner LEMBERG <wl@gnu.org>
6079 Introduce short and long prefixes to have the selection at run-time
6080 whether there is a 8+3 limit for names of temporary files.
6082 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
6083 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
6084 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
6086 (temp_init): New global structure to initialize above three
6088 (xtmptemplate): Use two parameters for long and short prefix.
6089 Simplify code use above three variables.
6090 (xtmpfile): Use long and short prefixes as parameters.
6091 * src/include/lib.h: Updated.
6093 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
6095 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
6096 (createAllPages, makeTempFiles): Updated.
6098 2001-07-09 Werner LEMBERG <wl@gnu.org>
6100 * REVISION: Increased to 3.
6102 Version 1.17.2 released
6103 =======================
6105 2001-07-07 Werner LEMBERG <wl@gnu.org>
6107 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
6110 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
6112 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
6114 * tmac/groff_mdoc.man: Fix synopsis.
6116 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
6118 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6119 Restore `doc-Pa-font'.
6121 2001-07-04 Werner LEMBERG <wl@gnu.org>
6123 * src/utils/indxbib/dirnamemax.c: Moved to ...
6124 * src/libs/libgroff/maxfilename.cc: Here.
6125 s/dir_name_max/file_name_max/.
6127 * src/include/lib.h: Add file_name_max.
6128 * src/utils/indxbib/indxbib.cc: Updated.
6129 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6132 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6134 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6136 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6137 REGION_TEMPLATE): New macros.
6138 (createAllPages, makeTempFiles): Use them.
6139 Include `nonposix.h'.
6140 (html_system): New function.
6141 (createAllPages, createImage): Use it.
6144 * tmac/www.tmac: Fix typos.
6146 2001-07-03 Werner LEMBERG <wl@gnu.org>
6148 * tmac/www.tmac: Disable hyphenation in normal text only if output
6150 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
6151 * tmac/groff_mwww.man, NEWS: Updated.
6153 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
6155 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6158 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
6160 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6161 doc-display-ps-stack): Implement font and font size stack for
6164 2001-07-02 Werner LEMBERG <wl@gnu.org>
6166 * REVISION: Increased to 2.
6167 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6169 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6170 beginning of a line.
6171 * src/groff/grog/grog.sh: Ditto.
6173 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
6175 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6178 2001-06-27 Werner LEMBERG <wl@gnu.org>
6180 Fix problems with preprocessor string for `man' program.
6182 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
6183 Updated/added copyright.
6184 Moved Emacs's local variable to identify nroff mode to the end of
6185 the file; add local variable if missing.
6187 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
6189 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6190 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6191 * configure: Regenerated.
6193 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
6195 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6196 * configure: Regenerated.
6198 2001-06-24 Werner LEMBERG <wl@gnu.org>
6200 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6202 * doc/pic.ms: Fix typos.
6204 Version 1.17.1 released
6205 =======================
6207 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
6209 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6210 * configure: Updated.
6212 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
6214 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6216 * src/roff/troff/dic.cc (blank_line): Add html tag.
6218 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
6220 * src/roff/troff/input.cc (do_suppress): Fix typo.
6222 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
6224 Added two new options (-D and -I) to specify image names and a
6225 subdirectory to place the images in.
6227 Change syntax from \\Ox to \\O[x].
6229 * src/devices/grohtml/post-html.cc (main): Add options.
6231 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6232 Use `NULL' instead of `0' for null string pointers.
6233 (MAX_RETRIES): New macro.
6234 (lengthOfintToStr, intToStr, make_message): New functions.
6235 (makeFileName): Make function static.
6236 Implement -D and -I options.
6237 (checkImageDir): New function.
6238 (write_end_image, write_start_image): Use new syntax of \O.
6239 (createAllPages, removeAllPages): Implement -D and -I options. Use
6241 (createImage): Use make_message().
6242 (addps4html): Add guard for malloc().
6243 (usage, scanArguments): Updated.
6244 (makeTempFiles): Use mkstemp().
6245 (removeTempFiles): Use unlink().
6246 (findPrefix): Add guard for malloc().
6248 * src/roff/troff/input.cc (get_delim_file_name): New function to
6250 (do_suppress): Updated to parse new syntax.
6251 * src/devices/grohtml/grohtml.man: Updated.
6252 * tmac/www.tmac: Updated to new syntax.
6256 2001-06-15 Werner LEMBERG <wl@gnu.org>
6258 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6260 * src/devices/grohtml/grohtml.man: Minor improvements.
6262 2001-06-14 Werner LEMBERG <wl@gnu.org>
6264 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6266 2001-06-11 Werner LEMBERG <wl@gnu.org>
6268 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6269 line to specify preprocessor options -- mandb 2.3.1 only recognizes
6271 * src/preproc/grn/grn.man: Add proper '\" string.
6273 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
6275 * test-groff: Don't use PATH but GROFF_BIN_PATH.
6277 2001-06-08 Werner LEMBERG <wl@gnu.org>
6279 Updated to autoconf 2.50.
6281 * configure.in: Renamed to...
6282 * configure.ac: This.
6283 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6284 (GROFF_OS390): Updated.
6285 * configure: Regenerated.
6287 2001-05-18 Werner LEMBERG <wl@gnu.org>
6289 * src/roff/troff/env.c, src/roff/troff/env.h,
6290 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6293 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
6295 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6297 2001-05-16 Werner LEMBERG <wl@gnu.org>
6299 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6300 less than or equal zero; set it to 1 then.
6301 * src/roff/troff/node.h (node::node): Initialize `last'.
6303 2001-05-08 Werner LEMBERG <wl@gnu.org>
6305 * tmac/an-old.tmac: Make predefined strings work in compatibility
6307 Add troff version guard.
6308 * tmac/doc.tmac: Simplify version guard.
6310 2001-05-07 Werner LEMBERG <wl@gnu.org>
6312 The .ns and .rs requests are now honoured not only in the top-level
6313 but in all diversions (similar to UNIX troff).
6315 This change is based on a patch from Tadziu Hoffmann
6316 <hoffmann@usm.uni-muenchen.de>.
6318 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6319 (top_level_diversion): Remove `no_space_mode' member.
6320 * src/roff/troff/div.cc (diversion::diversion,
6321 top_level_diversion::top_level_diversion): Updated.
6322 (macro_diversion::output): Reset `no_space_mode'.
6323 (no_space, restore_spacing): Use `curdiv' unconditionally.
6324 (space_request, blank_line): Check `curdiv->no_space_mode'.
6325 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6326 `curdiv' unconditionally.
6327 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6330 2001-05-06 Werner LEMBERG <wl@gnu.org>
6332 Added two new requests `de1' and `am1' which are similar to `de' and
6333 `am' with the difference that compatibility mode is saved on entry,
6334 switched off during macro execution, and restored on exit.
6336 * src/roff/troff/input.h: Added two new special characters
6337 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6338 * src/roff/troff/input.cc (input_iterator): Added two member
6339 functions `save_compatible_flag' and `get_compatible_flag'.
6340 (input_stack): Ditto.
6341 (string_iterator): Ditto. Also add private member
6342 `saved_compatible_flag'.
6343 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6344 (calling_mode): New enumeration.
6345 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
6346 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6347 (define_macro, define_indirect_macro, append_macro, ignore): Use
6349 (define_nocomp_macro, append_nocomp_macro): New functions.
6350 (init_input_requests): Updated.
6351 (do_request): Rename local variable `saved_compatible_flag' to
6352 `old_compatible_flag'.
6353 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6355 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6356 public and trap-invoked macros. As a consequence, the man macros
6357 work in compatibility mode also.
6359 2001-05-06 Solar Designer <solar@openwall.com>
6361 * Makefile.in: Use $(mandir).
6363 2001-05-06 Alexios Zavras <zvr@pobox.com>
6365 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6367 2001-05-05 Werner LEMBERG <wl@gnu.org>
6369 Added `.ns' number register: Returns 1 in no-space mode (if in
6370 top-level diversion), 0 otherwise.
6372 * src/roff/troff/div.cc (no_space_mode_reg): New class.
6373 (init_div_requests): Updated.
6374 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6377 2001-05-04 Werner LEMBERG <wl@gnu.org>
6379 * src/roff/nroff/nroff.man: Improved documentation (especially
6382 2001-05-02 Werner LEMBERG <wl@gnu.org>
6384 Added `brp' request: This is \p as a request.
6386 * src/roff/troff/env.cc (environment::do_break): Add parameter
6388 (do_break_request): New function (was `break_request').
6389 (break_request): Calls `do_break_request'.
6390 (break_spread_request): New; calls `do_break_request'.
6391 (init_env_requests): Updated.
6392 * src/roff/troff/env.h: Updated.
6393 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6395 * REVISION: Increased to 1.
6396 * win32-diffs: Updated.
6398 2001-05-01 Werner LEMBERG <wl@gnu.org>
6400 * tmac/an-old.tmac: Fix minor compatibility mode issue.
6401 * tmac/troffrc-end: Make it really work in compatibility mode.
6403 2001-04-27 Werner LEMBERG <wl@gnu.org>
6405 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6408 2001-04-22 Werner LEMBERG <wl@gnu.org>
6410 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6411 latest versions from glibc CVS archive.
6413 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6414 <c.zeelenberg@hccnet.nl>.
6416 2001-04-21 Werner LEMBERG <wl@gnu.org>
6418 * configure.in: Move check for mkstemp() to...
6419 * aclocal.m4 (GROFF_MKSTEMP): This new function.
6420 * configure: Regenerated.
6422 * src/include/groff-getopt.h: Don't use variable names in
6425 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
6426 * src/devices/grohtml/Makefile.sub,
6427 src/devices/grohtml/post-html.cc: Updated.
6429 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
6431 * configure.in: Add special check for mkstemp().
6432 * src/libs/libgroff/tmpfile.cc: Use it.
6433 * src/utils/indxbib/indxbib.cc: Ditto.
6434 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6435 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6438 2001-04-20 Bruce Lilly <blilly@erols.com>
6440 `Version_string' as C++ object was not visible to linker from C
6442 Add `const' to `Version_string'.
6444 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6445 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6446 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6447 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6448 (scanArguments), src/preproc/refer/refer.cc (main),
6449 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6450 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6451 (main), src/devices/grohtml/post-html.cc (main),
6452 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6453 (main), src/utils/hpftodit/hpftodit.cc (main),
6454 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6455 (main), src/utils/lkbib/lkbib.cc (main),
6456 src/utils/addftinfo/addftinfo.cc (main): Implement it.
6458 * src/roff/groff/pipeline.c: Add _UWIN.
6459 * src/include/nonposix.h: Ditto.
6461 2001-04-20 Werner LEMBERG <wl@gnu.org>
6463 * src/include/lib.h: Use HAVE_STRERROR.
6464 * src/roff/groff/pipeline.c: Ditto.
6465 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6466 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6467 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6468 * win32-diffs: Updated.
6469 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6471 2001-04-19 Werner LEMBERG <wl@gnu.org>
6473 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6474 instead of hardwired `"troff"'.
6475 (char_buffer::read_file): Remove unused variables.
6476 (char_buffer::write_file_troff): Ditto.
6477 (char_buffer::write_file_html): Ditto.
6478 (generateImages): Ditto.
6480 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6482 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6484 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6485 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6486 index_search_item::search1): Ditto.
6487 * src/roff/troff/node.h (width_list): Reorder members.
6488 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6489 (lookup_warning): Ditto.
6490 (prepend_string): Commented out.
6491 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6492 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6493 * src/preproc/tbl/main.cc (process_format): Ditto.
6494 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6496 * src/preproc/pic/pic.cc: Updated.
6497 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6498 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6499 * src/preproc/refer/command.cc (execute_command): Ditto.
6500 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6501 * src/preproc/refer/token.cc (lookup_token): Ditto.
6502 * src/preproc/soelim/soelim.cc: Ditto.
6503 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6504 (isHexDigit): Commented out.
6505 (pushBackBuffer::isString): Remove unused variable.
6506 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6508 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6509 resource_manager::read_resource_arg, read_one_of, parse_extensions):
6511 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6512 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6513 lookup_paper_size): Ditto.
6514 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6515 (text_glob, element_list): Reorder members.
6516 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6518 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6519 return value to `void'.
6520 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6522 * src/devices/grohtml/html.h (simple_output::check_newline,
6523 simple_output::space_or_newline, simple_output::enable_newlines):
6525 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6527 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6528 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6529 output_ligatures, output_charset, read_map): Ditto.
6530 * src/utils/lookbib/lookbib.cc (main): Ditto.
6531 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6532 (do_file): Fix typo (`=' -> `==').
6533 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6534 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6536 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
6538 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6539 Fix usage of GROFF_BIN_PATH.
6540 * src/roff/nroff/nroff.man: Updated.
6542 2001-04-18 Werner LEMBERG <wl@gnu.org>
6544 * NEWS: Fixing typos.
6547 Version 1.17 released
6548 =====================
6550 2001-04-17 Werner LEMBERG <wl@gnu.org>
6552 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6553 directory, not in $(srcdir).
6555 2001-04-16 Werner LEMBERG <wl@gnu.org>
6557 * doc/groff.texinfo: More info on conditionals.
6559 2001-04-15 Werner LEMBERG <wl@gnu.org>
6561 * doc/groff.texinfo: Added some info about groff internals.
6563 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6564 about missing special character only if the name is non-null.
6566 2001-04-14 Werner LEMBERG <wl@gnu.org>
6568 Removing the grohtml-old device driver which is now obsolete.
6570 * src/devices/grohtml-old/*: Removed.
6571 * font/devhtml-old/*: Removed.
6572 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6574 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6575 * test-groff (PATH): Updated.
6576 * tmac/Makefile.sub (NORMALFILES): Updated.
6577 * tmac/an-old.tmac: Remove special code for html-old device.
6578 Replace `html-or-html-old' register with `an-html'.
6579 * tmac/eqnrc: Updated.
6580 * tmac/html-old.tmac: Removed.
6581 * tmac/troffrc, tmac/troffrc-end: Updated.
6582 * tmac/www.tmac: Remove special code for html-old device.
6583 Replace `html-or-html-old' register with `www-html'.
6585 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6586 src/libs/libgroff/htmlindicate.cc (graphic_end),
6587 include/htmlindicate.h, src/preproc/grn/*.cc,
6588 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6589 single argument for consistency with rest of source code.
6591 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6593 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
6595 * src/roff/troff/troff.man: Fixing typos.
6597 2001-04-13 Werner LEMBERG <wl@gnu.org>
6599 * doc/pic.ms: Fixing many font switches.
6600 * doc/groff.texinfo: Fixes, additions.
6601 * MORE.STUFF: Updated.
6603 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
6605 * src/devices/grohtml/grohtml.man: Updated manual page regarding
6607 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6609 (removeTempFiles): New function to tidy up temporary files.
6610 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6611 Many fixes to do with the new inline suppress node and image regions
6613 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6614 (generate_img_src): New function.
6615 (html_printer::do_auto_image): Utilizes it.
6616 (do_heading, do_title): Include inline images within their contents.
6617 (html_printer::begin_page): Tidied up comments that are issued to
6618 the html output file.
6619 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6621 (text_glob::is_br): New method used by do_heading.
6622 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6623 equivalent diversion.
6624 * src/include/html-strings.h: Altered image tags to reflect the
6626 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6628 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6629 it is already inside a pic image. Only emit tags if the argument
6630 `-Tps:html' is present.
6631 * src/preproc/tbl/main.cc: Changes to reflect additional
6632 `html_end_suppress' parameter.
6633 * src/roff/troff/env.cc: Only emit eol tag if a node has been
6634 emitted since the last eol tag was written.
6635 * src/roff/troff/env.h: New boolean `emitted_node'.
6636 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6637 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
6638 * src/roff/troff/node.cc (check_charinfo): New method.
6639 (troff_output_file::determine_line_limits): Alterations to limit
6641 * tmac/www.tmac: Changes to reflect new suppress nodes.
6643 2001-04-12 Bruno Haible <haible@clisp.cons.org>
6645 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6646 Escape the html_glyph in the buffer.
6647 (str_translate_to_html): Output the unescaped escaped_char.
6648 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6649 `frame=void', not `frame=none'. Add `border=0'.
6651 2001-04-12 Werner LEMBERG <wl@gnu.org>
6653 * PROBLEMS: Add some words on how to avoid wrapper macros.
6655 2001-04-11 Blake McBride <blake@florida-software.com>
6657 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6659 2001-04-11 Werner LEMBERG <wl@gnu.org>
6661 * font/devlbp/Makefile.sub (CLEANADD): Set it.
6662 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6663 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6664 * Makefile.sub (DISTCLEANFILES): Here.
6666 * libs/libgroff/new.cc: Include `nonposix.h'.
6667 * win32-diffs: Updated.
6669 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
6671 Added skeleton macro for defunct macros.
6673 Updated documentation.
6675 When inside displays, an empty input line warning should be
6676 suppressed. If another macro call is put inside a display,
6677 all subsequent empty lines found in that display caused a
6678 warning to be emitted.
6680 * tmac/doc.tmac (doc-defunct-macro): New macro.
6681 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6682 (doc-restore-global-vars): Fixed typo.
6683 (doc-empty-line): Check the `doc-display-depth' register to
6684 determine whether we are inside display or not.
6686 * tmac/doc-common: Removed `Or' and `Sf' registers.
6687 Moved obsolete `Ds' macro to doc.tmac.
6689 * tmac/groff_mdoc.man: Bump document date.
6690 Document `.Vt' under ``Variable Types''.
6691 Removed documentation for obsolete `.Or' macro.
6693 2001-04-10 Werner LEMBERG <wl@gnu.org>
6696 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6698 2001-04-10 Bruno Haible <haible@clisp.cons.org>
6700 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6701 (usage): Add stream argument. Don't exit.
6702 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6703 Write --version output to stdout, not stderr.
6704 (usage): Add stream argument. Don't exit.
6705 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6706 (usage): Add stream argument. Don't exit.
6707 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6709 (usage): Add stream argument. Don't exit.
6710 (main): Write --help output to stdout, not stderr.
6711 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6712 (usage): Add stream argument. Don't exit.
6713 * src/devices/grops/ps.cc (main): Accept --help and --version.
6714 (usage): Add stream argument. Don't exit.
6715 * src/devices/grotty/tty.cc (main): Accept --help and --version.
6716 (usage): Add stream argument. Don't exit.
6717 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6718 (main): Accept --help and --version.
6719 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6720 (main): Accept --help and --version.
6721 * src/preproc/html/pre-html.cc (usage): Add stream argument.
6722 (scanArguments): Accept --help and --version.
6723 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6724 (main): Accept --help and --version.
6725 * src/preproc/refer/refer.cc (main): Accept --help and --version.
6726 (usage): Add stream argument. Don't exit.
6727 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6729 (main): Accept --help and --version.
6730 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6731 (main): Accept --help and --version.
6732 * src/roff/groff/groff.cc (main): Accept --help and --version.
6733 (synopsis): Add stream argument.
6734 (help): Write --help output to stdout, not stderr.
6735 (usage): Add stream argument. Don't exit.
6736 * src/roff/grog/grog.pl: Accept --help and --version.
6738 * src/roff/grog/grog.sh: Accept --help and --version.
6739 * src/roff/nroff/nroff.sh: Accept --help and --version.
6740 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6741 (usage): Add stream argument. Don't exit.
6742 (main): Accept --help and --version.
6743 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6744 (usage): New function with stream argument, doesn't exit.
6745 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6746 (usage): New function with stream argument, doesn't exit.
6747 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6748 (usage): Add stream argument. Don't exit.
6749 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6750 (main): Accept --help and --version.
6751 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6753 (main): Accept --help and --version.
6754 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6755 (main): Accept --help and --version.
6756 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6757 (usage): Add stream argument. Don't exit.
6759 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
6761 Fix indentation in SYNOPSIS.
6763 Updated to include changes of latest BSD mdoc version (basically,
6764 the only change is that `.Fn' and `.Fc' put a final semicolon after
6765 a function declaration in the SYNOPSIS section).
6767 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6768 (doc-in-synopsis-section): New variable. Updated all related
6770 (doc-indent-synopsis-active): New register.
6771 (Nd, Fn, Fo): Use it.
6772 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6773 `.Cd' with long argument line produces indented wrapped lines.
6774 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6775 undesirable line break to be output.
6776 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6778 (Fn, Fc): Add final `;' to output.
6779 (doc-save-global-vars, doc-restore-global-vars): Updated.
6780 * tmac/doc-common: Remove `Ex' register.
6782 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6785 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
6787 * tmac/doc.tmac (Cd): Simplify code.
6788 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6790 2001-04-06 Werner LEMBERG <wl@gnu.org>
6792 Implement continuous underlining for nroff mode. To do that, a new
6793 request in the ditroff language has been added: `x u N' (N is 0
6796 \X and \Y are now transparent to end-of-sentence recognition.
6798 * src/include/printer.h (printer): Add `type' parameter to `special'
6800 * src/libs/libdriver/printer.cc (printer::special): Updated.
6801 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6803 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6804 specials of type `p'.
6805 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6806 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6807 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6808 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6809 (glyph::order): New method.
6810 (tty_printer::add_char): Use it.
6811 (tty_printer::special): New method.
6812 (tty_printer::end_page): Implement it.
6814 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
6815 * src/roff/troff/node.cc (special_node::special_node): Add parameter
6816 to set `no_init_string'.
6817 (special_node::tprint_start): Use it.
6818 (special_node::same, special_node::copy): Updated.
6819 (special_node::ends_sentence): New method.
6820 (troff_output_file::start_special): Add parameter to include
6821 inititialization of special conditionally.
6823 * src/roff/troff/env.h (environment): New member `underline_spaces'.
6824 * src/roff/troff/env.cc (do_underline_special): New function.
6825 (environment::set_font): Use it.
6826 (do_underline): Use it. This was `underline()'.
6827 (underline): Call `do_underline()'.
6828 (continuous_underline): New function which calls `do_underline()'.
6829 (environment::newline): Use `do_underline_special()'.
6830 (init_env_requests): Updated.
6832 * NEWS, man/troff_out.man: Updated.
6834 2001-04-06 Bruno Haible <haible@clisp.cons.org>
6836 * font/devutf8/R.proto: Fix code of 'shc'.
6838 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
6840 Many fixes. Diag lists can now be nested also; additionally,
6841 `-compact' and `-offset' are supported.
6843 * tmac/doc.tmac (doc-have-indent): Replaced with ...
6844 (doc-list-have-indent-stackXXX): A new register stack.
6845 (doc-have-diag-list): Removed.
6846 (Bl): Use `doc-list-have-indent-stackXXX'.
6848 (doc-diag-list): Use `doc-compact-list-stackXXX'.
6849 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
6850 (doc-set-vertical-and-indent): Ditto.
6851 (doc-next-list-depth): Removed.
6852 (doc-increment-list-stack): Updated.
6853 (doc-decrement-list-stack): Use `doc-list-depth' instead of
6854 `doc-next-list-depth'.
6855 (doc-end-list, doc-end-column-list): Don't use
6856 `doc-increment-list-stack'.
6857 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
6858 (doc-save-global-vars, doc-restore-global-vars): Updated.
6859 * tmac/doc-common: Updated.
6860 * tmac/groff_mdoc.man: Updated.
6863 2001-04-02 Werner LEMBERG <wl@gnu.org>
6865 * src/devices/grotty/grotty.man: Fix grammatical error.
6867 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
6869 Remove .Ld from mdoc package; replace it with special handling of
6872 * tmac/doc-common: Remove `Ld' register.
6873 Uncomment `doc-volume-ds-*' strings.
6874 Remove `doc-operating-system-default'.
6876 * tmac/doc-syms (Ld): Removed.
6877 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
6881 * tmac/groff_mdoc.man: Many fixes and updates.
6883 2001-03-29 Werner LEMBERG <wl@gnu.org>
6885 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
6886 Bond <tkb@tkb.mpl.com>.
6887 * tmac/www.tmac: Save compatibility mode.
6889 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
6891 * tmac/groff_mdoc.man: Many fixes.
6893 2001-03-28 Werner LEMBERG <wl@gnu.org>
6895 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
6898 2001-03-27 Werner LEMBERG <wl@gnu.org>
6900 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
6901 diversion. This fixes overlong tags.
6903 2001-03-26 Werner LEMBERG <wl@gnu.org>
6905 * doc/groff.texinfo: Fixed and improved documentation of fonts.
6906 * tmac/doc-syms: Fix error messages.
6907 * tmac/an-old.tmac: Remove incorrect double backslashes.
6909 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
6911 * tmac/Makefile.sub: Strip mdoc.local also
6912 * tmac/strip.sed: Fixed.
6914 2001-03-24 Werner LEMBERG <wl@gnu.org>
6916 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
6917 selecting the font size.
6918 * tmac/groff_mdoc.man, NEWS: Document it.
6920 2001-03-23 Werner LEMBERG <wl@gnu.org>
6922 * src/roff/troff/div.cc (save_vertical_space): Add default argument
6924 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
6925 argument to restore previous font family.
6926 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
6928 * doc/groff.texinfo: More fixes and additions (mainly for font
6929 manipulating commands).
6931 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
6932 * tmac/groff_mdoc.man: This. The quick reference has been removed.
6933 * tmac/Makefile.sub, NEWS: Updated.
6935 2001-03-23 Werner LEMBERG <wl@gnu.org>
6937 Replaced mdoc implementation. The new version is `state of the
6938 art', using almost all new features of groff 1.17 -- it won't run
6939 with older versions.
6941 * tmac/doc.tmac: Completely rewritten.
6942 * tmac/doc-common: Ditto.
6943 * tmac/doc-nroff: Ditto.
6944 * tmac/doc-ditroff: Ditto.
6945 * tmac/doc-syms: Ditto.
6946 * tmac/mdoc.local: New file.
6947 * tmac/groff_mdoc.samples.man: Replaced with ...
6948 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
6949 * tmac/strip.sed: Updated.
6950 * tmac/Makefile.sub: Updated.
6953 * tmac/groff_man.man: Add `man.local' to the FILES section.
6955 2001-03-22 Werner LEMBERG <wl@gnu.org>
6957 * doc/groff.texinfo: Added many @noindent.
6958 Replaced @end_Example -> @endExample.
6959 Added info whether registers are r/o.
6960 Many other additions and fixes.
6962 2001-03-21 Werner LEMBERG <wl@gnu.org>
6964 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
6965 in makeinfo of texinfo 4.0) to be used in @Def* macros.
6966 Improved @Def* macros: Now the exact syntax of request, register,
6967 and escapes is shown.
6968 Added macros for parentheses and brackets to be used in @Def*.
6969 Many fixes and improvements of the documentation.
6971 2001-03-20 Werner LEMBERG <wl@gnu.org>
6973 * doc/groff.texinfo: Added new index: `st' (for strings).
6974 Added macros @Defstr(x).
6975 Added macro @Example (adding @group).
6976 Other minor improvements.
6978 2001-03-19 Werner LEMBERG <wl@gnu.org>
6980 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
6981 `rq' for requests. `fn' is no longer used.
6982 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
6985 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
6986 number with name of man page.
6988 2001-03-19 Larry Kollar <kollar@alltel.net>
6990 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
6993 2001-03-19 Werner LEMBERG <wl@gnu.org>
6995 * man/groff_font.man: Document `prepro', `postpro', and `print'.
6996 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
6997 * src/devices/grohtml/grohtml.man: Fixing typos.
6999 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
7001 * tmac/s.tmac (@IP): Pass `.ip' html tag.
7002 * tmac/groff_mwww.man: Remove .LINE macro
7003 * tmac/www.tmac (LINE): Add `.ti'.
7005 * src/devices/grohtml/post-html.cc (html_printer): New member
7007 (html_printer::emit_raw): Use it.
7008 (html_printer::do_linelength): Ditto.
7009 (html_printer::do_pageoffset): Ditto.
7010 (html_printer::do_indentation): Ditto.
7011 (html_printer::do_tempindent): Ditto.
7012 (html_printer::do_break): Ditto.
7013 (html_printer::begin_page): Ditto.
7014 (html_printer::do_indentedparagraph): New function.
7015 (html_printer::troff_tag): Handle `.ip'.
7016 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7017 Add `<td width=...>' handling.
7018 (html_text::do_table): Add parameter.
7019 (html_text::do_indent): Updated.
7020 * src/devices/groohtml/html-text.h: Updated.
7022 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
7024 Introduced simple html tables to implement indentation.
7026 * src/devices/grohtml/html.h (word, word_list): New structures.
7027 (simple_output): Use it.
7028 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7029 (html_printer): Improve indentation handling.
7030 (html_printer::emit_raw): Set `in_table' element. Handle
7032 (html_printer::write_header): Move conditional downwards.
7033 Don't allow whitespace in tags.
7034 (html_printer::do_linelength): Handle line length and indentation
7036 (html_printer::do_pageoffset): Handle indentation conditionally.
7037 (html_printer::do_indentation): Ditto.
7038 (html_printer::do_tempindent): New function member.
7039 (html_printer::do_fill): Take care of indentation.
7040 (html_printer::do_flush): Finish table.
7041 (html_printer::do_links): Ditto.
7042 (html_printer::do_break): New function for handling `.br' and `.ti'.
7043 (html_printer::troff_tag): Use it.
7045 (html_printer::flush_globs): Fix.
7046 (html_printer::flush_page): Finish table.
7047 (html_printer::html_printer): Fix error message. Set up
7049 (html_printer::add_to_sbuf): Remove special handling of character
7051 (to_unicode): Remove `stop()'.
7052 (html_printer::write_title): Cleanup.
7053 (html_printer::begin_page): Use `put_string()'. Handle indentation.
7054 (html_printer::~html_printer): Flush text and end the line.
7056 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
7057 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
7059 (html_text::start_tag): Disable newlines.
7060 (html_text::table_is_void): New function.
7061 (html_text::issue_table_begin): Ditto.
7062 (html_text::issue_table_end): Ditto.
7063 (html_text::push_para): Better table handling.
7064 (html_text::do_indent): New function.
7065 (html_text::do_table): Ditto.
7066 (html_text::done_table): Ditto.
7067 (html_text::do_tt): Handle PRE_TAG.
7068 (html_text::is_in_table): New function.
7069 (html_text::check_emit_text): Handle tables.
7070 (html_text::do_emittext): Use `nl()'.
7071 (html_text::do_para): Handle table.
7072 (html_text::remove_def): New function.
7073 * src/devices/grohtml/output.cc (word, word_list): Implement
7075 (simple_output::end_line): Flush last word.
7076 (simple_output::simple_comment): Ditto.
7077 (simple_output::begin_comment): Recoded.
7078 (simple_output::end_comment): Ditto.
7079 (simple_output::comment_arg): Removed.
7080 (simple_output::check_newline): Improve test and flush last word.
7081 (simple_output::space_or_newline): Improved.
7082 (simple_output::write_newline): Replaced with...
7083 (simple_output::nl): This.
7084 (simple_output::put_raw_char): Flush last word.
7085 (simple_output::check_space): Removed.
7086 (simple_output::put_translated_string): Ditto.
7087 (simple_output::put_string): Simplified.
7088 (simple_output::put_number): Updated.
7089 (simple_output::put_float): Ditto.
7090 (simple_output::put_symbol): Removed.
7091 (simple_output::enable_newlines): Add `check_newline()'.
7092 (simple_output::flush_last_word): New function.
7094 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
7095 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
7097 * tmac/s.tmac (@PP, @IP): Add html conditional code.
7098 * tmac/an-old.tmac (TP): Ditto.
7100 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
7102 * mdate.sh: Make it POSIX compliant.
7104 2001-03-09 Werner LEMBERG <wl@gnu.org>
7106 Added the `return' request to end a macro immediately. It simply
7107 pops iterators from the input stack until a macro iterator is found.
7109 * src/roff/troff/input.cc (input_iterator::is_macro,
7110 macro_iterator::is_macro): New member.
7111 (input_return_boundary): New class to signal an immediate return
7113 (input_stack::add_return_boundary, input_stack::is_return_boundary):
7115 (input_stack::clear): Use it.
7116 (input_stack::pop_macro): New function.
7117 (while_request): Use `is_return_boundary()'.
7118 (return_macro_request): New function.
7119 (init_input_requests): Use it.
7121 * src/roff/troff/TODO: Updated.
7122 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7124 2001-03-08 Werner LEMBERG <wl@gnu.org>
7126 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7129 2001-03-07 Werner LEMBERG <wl@gnu.org>
7131 Make `\B' more rigid.
7133 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7135 (get_number_rigidly): New function.
7136 * src/roff/troff/input.cc (do_expr_test): Use it.
7137 * src/roff/troff/token.h: Updated.
7139 * src/roff/troff/request.h: Fix typo (init_html_request ->
7140 init_markup_request).
7142 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
7144 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
7145 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
7146 are now `.begin', `.end', `.image'.
7148 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
7149 (html_printer::add_to_sbuf): Changing type of `code' parameter.
7150 Use add_char_to_sbuf().
7151 (to_unicode): New function.
7152 (char_translate_to_html): Changing type of `ch' parameter.
7154 (html_printer::~html_printer): Comment out doctype string.
7155 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7156 instead of `.html-end'.
7157 (write_start_image): Use `.begin' and `.image' instead of
7158 `.html-begin' and `.html-image'.
7159 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7160 (html_begin): Renamed to ...
7162 (html_end): Renamed to ...
7164 (html_image): Renamed to ...
7166 (init_html_requests): Renamed to ...
7167 (init_markup_requests): This.
7168 * tmac/www.tmac: Updated.
7170 2001-02-28 Bram <bram@avontuur.org>
7172 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7175 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
7177 * doc/meref.me: Fixing some typos.
7179 2001-02-16 Werner LEMBERG <wl@gnu.org>
7181 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7182 method. Return `HYPHEN_MIDDLE' if it was `\:'.
7183 * src/roff/troff/node.h: Updated.
7185 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
7187 * tmac/groff_tmac.man: Fix typo.
7189 2001-02-16 Werner LEMBERG <wl@gnu.org>
7191 Fixing a bug which prevented proper end-of-sentence recognition
7192 between an `unformatted' box and the following text. As a
7193 consequence, vertical line distances are no longer preserved in
7194 boxes after a call to `.unformat' -- because boxes aren't
7195 line-oriented (contrary to diversions), this doesn't make sense
7198 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7200 (vertical_size_node::set_unformat_flag): New method.
7201 * src/roff/troff/node.hh: Updated.
7202 * src/roff/troff/input.cc (word_space_node::reread,
7203 hmotion_node::reread): Reset `unformat' flag after usage.
7204 (unformat_macro): Append only if `set_unformat_flag()' returns
7206 * src/roff/troff/troff.man: Updated.
7208 2001-02-15 Werner LEMBERG <wl@gnu.org>
7210 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7211 documentation of `asciify' and `unformat' requests.
7213 2001-02-13 Werner LEMBERG <wl@gnu.org>
7215 Redesigned the `unformat' request. It is no longer connected with
7216 `asciify' but rather uses new `reread()' methods if the `unformat'
7217 flag is set. Additionally, the handling of space characters after
7218 unformatting has been fixed so that they retain their width.
7220 * src/roff/troff/node.h (width_list): New structure to store
7221 original widths of spaces.
7222 (node): Added `unformat' member.
7223 Replaced `num_spaces' variable with `orig_width' list.
7224 * src/roff/troff/node.cc (*node::asciify,
7225 asciify_reverse_node_list): Removed `unformat_only' flag and related
7227 (word_space_node::asciify, word_space_node::word_space_node): Use
7229 (word_space_node::~word_space_node): New destructor.
7230 (word_space_node::copy): Updated to handle `orig_width'.
7231 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7232 (*node::merge_space): Update `orig_width' list if necessary.
7233 (*node::set_unformat_flag): New methods to set the `unformat' flag.
7234 * src/roff/troff/enc.cc (environment::space_newline): Use
7236 (environment::space): Added method to handle space width and
7237 sentence space width as parameters. Use `width_list'.
7238 (environment::make_tab_node): Updated.
7239 * src/roff/troff/env.h: Updated.
7240 * src/roff/troff/input.cc (word_space_node::reread,
7241 unbreakable_space_node::reread, hmotion_node::reread): New methods
7242 to handle nodes specially if `unformat' flag is set.
7243 (do_asciify_macro): Renamed back to ...
7244 (asciify_macro): This.
7245 (unformat_macro): New implementation to simply set the `unformat'
7248 * MORE.STUFF: Added more info about deroff.
7250 2001-02-08 Werner LEMBERG <wl@gnu.org>
7252 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7253 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7254 and `add_self()' methods to avoid hyphenation. For example, the
7255 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7256 soft hyphen after `foo'. Now the hyphen list is correctly
7257 `foo<ignore><ignore>bar'.
7259 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
7261 * tmac/groff_tmac.man: Fix `BIR' macro.
7263 2001-02-04 Werner LEMBERG <wl@gnu.org>
7265 A new escape sequence `\:', inserting a zero-width break point.
7267 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7268 * src/roff/troff/input.cc (get_copy, token::next, asciify):
7270 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7272 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
7273 and `asciify()' methods.
7274 * src/roff/troff/node.cc (space_node::space_node): Updated.
7275 (space_node::asciify): Handle `was_escape_colon'.
7276 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7278 Handle `\~' similar to other comparable requests.
7280 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7282 (token::next): Move creation of an unbreakable_space_node to...
7283 (token::add_to_node_list): Here.
7285 Fix a bug which sometimes prevented hyphenation of words connected
7286 with `\~' or `\ ' (and other escape sequences handled as
7287 TOKEN_NODE). This also fixes a hyphenation problem with boxes
7288 (after a call to the `unformat' request).
7290 * src/roff/troff/env.h (environment::possibly_break_line,
7291 environment::hyphenate_line): Introducing `start_here' parameter.
7292 * src/roff/troff/env.cc (environment::space_newline,
7293 environment::space): Use it.
7294 (environment::possibly_break_line, environment::hyphenate_line):
7296 * src/roff/troff/input.cc (process_input_stack): Use it.
7297 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7298 space_char_hmotion_node, overstrike_node): Add
7299 `get_hyphenation_type()' method.
7300 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7301 if `unformat_only' is active.
7303 2001-01-30 Werner LEMBERG <wl@gnu.org>
7305 Implemented new read-only number register `.linetabs' which
7306 returns 1 if in line-tabs mode, 0 otherwise.
7308 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7309 * src/roff/troff/env.cc (get_line_tabs): New function.
7310 (init_env_requests): Use it.
7311 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7313 * VERSION, REVISION: Changing to 1.17.0.
7315 2001-01-28 Werner LEMBERG <wl@gnu.org>
7317 Fixed a bug which prevented hyphenation of words which are finished
7320 * src/roff/troff/token.h (token): Add enum type
7321 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7322 * src/roff/troff/input.cc (token::next, token::description,
7323 get_line_arg, token::add_to_node_list, token::process): Use it.
7325 2001-01-27 Werner LEMBERG <wl@gnu.org>
7327 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7328 * src/roff/troff/div.cc (do_divert): Use it.
7330 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7332 2001-01-25 Werner LEMBERG <wl@gnu.org>
7334 Adding the `linetabs' request. If set, tab distances are not
7335 computed relative to the input line but relative to the output line.
7337 * src/roff/troff/env.h (environment): New member `line_tabs'.
7338 * src/roff/troff/env.cc (line_tabs_request): Implement request.
7339 (environment::environment, environment::copy): Updated.
7340 (environment::distance_to_next_tab): Use `line_tabs'.
7341 (init_env_requests): Register request.
7342 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
7345 2001-01-24 Werner LEMBERG <wl@gnu.org>
7347 Introducing a new read-only register `.int' which is set to a
7348 positive value if the last output line is interrupted (i.e., if it
7351 * src/roff/troff/env.cc (init_env_requests): Add it.
7352 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7354 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
7356 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7357 * src/preproc/html/pre-html.cc (findPrefix): New function which
7358 generates the troff executable name via the system prefix.
7359 * src/preproc/eqn/main.cc: Modified warning message.
7361 2001-01-23 Werner LEMBERG <wl@gnu.org>
7363 troff's `box' and `boxa' requests didn't preserve temporary
7366 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7367 `saved_target_text_length' members.
7368 * src/roff/troff/div.cc (do_divert): Use them.
7370 Tabs (but not yet leaders and fields) are now handled correctly by
7373 * node.h (hmotion_node): Add field `was_tab'.
7374 * env.cc (environment::make_tab_node): Set it.
7375 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7377 Added new request `unformat' which will, contrary to `asciify',
7378 preserve font information after unformatting (i.e., only nodes
7379 dealing with horizontal space are converted back to input
7382 * input.cc (asciify_macro): Renamed to ...
7383 (do_asciify_macro): this, having a new parameter `unformat_only'.
7384 (asciify_macro, unformat_macro): New; using do_asciify_macro.
7385 (init_input_requests): Added `unformat'.
7386 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7387 parameter to control asciification process.
7388 * node.h (*_node::asciify): Ditto.
7389 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7391 2001-01-20 Werner LEMBERG <wl@gnu.org>
7393 * doc/groff.texinfo: Minor improvement of `.in' documentation.
7395 2001-01-18 Werner LEMBERG <wl@gnu.org>
7397 * tmac/ps.tmac: Remove call of psold.tmac.
7398 * tmac/psold.tmac: Comment updated.
7399 * tmac/psnew.tmac: Removed since no longer needed.
7400 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7402 * font/devutf8/R.proto: Adding `shc' glyph.
7403 * font/devutf8/NOTES: Updated.
7405 * test-groff: Updated.
7407 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
7409 First cut of the new html device driver. Changes to pre-html and
7410 the new grohtml are too numerous to be documented here.
7412 Stuff related to `html' has been renamed to `html-old' and `html2'
7413 stuff has been renamed to `html' (including directories). The new
7414 html device driver is therefore invoked as `-Thtml'.
7416 Added new `\O' escape to suppress output (needed by html driver).
7418 Added functions and code to pass info about input-level commands
7419 (`.in', `.fl', etc.) to html driver.
7421 Three new functions (.html-begin, .html-end, and .html-image) for
7422 better html handling: `html-begin' will execute the remaining line
7423 if at the outermost nesting level, increasing an internal counter.
7424 `html-end' does the same but decreases the internal counter.
7425 `html_image' puts its arguments into a special node (suppress_node)
7426 to define an image region.
7428 The `output' request has been removed.
7430 * tmac/html-tags.tmac: Removed.
7431 * tmac/arkup.tmac: Updated and renamed to ...
7432 * tmac/www.tmac: New file.
7433 * tmac/markup.tmac Updated and renamed to ...
7434 * tmac/mwww.tmac: New file.
7435 * tmac/Makefile.sub: Updated.
7436 * tmac/an-old.tmac: Updated.
7437 * tmac/eqnrc: Updated.
7438 * tmac/groff_man.man
7439 * tmac/groff_markup.man: Updated and renamed to ...
7440 * tmac/groff_mwww.man: New file.
7441 * tmac/groff_tmac.man: Updated.
7442 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7443 * tmac/html.tmac: Updated and renamed from html2.tmac.
7444 * tmac/pspic.tmac: Updated html support.
7445 * tmac/s.tmac: Added html output support.
7446 * tmac/troffrc, tmac/troffrc-end: Updated.
7448 * Makefile.in, doc/Makefile: Updated.
7449 * doc/groff.texinfo: Added info about new `\O' escape.
7450 * doc/homepage.ms: Use `MAILTO' macro.
7452 * font/devhtml/DESC.proto: Add `C' font.
7453 * font/devhtml/Makefile.sub: Updated.
7454 * font/devhtml/R.proto: Minor fixes.
7455 * font/devhtml-old/Makefile.sub: Updated.
7457 * src/devices/grohtml-old/Makefile.sub: Updated.
7459 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7461 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7462 graphic_start): Add `inline' parameter. Update.
7463 (html_end_suppress, graphic_end): Update.
7465 * src/include/html-strings.h: New file.
7466 * src/include/htmlindicate.h: Comments updated.
7467 * src/include/printer.h: Updated.
7469 * src/preproc/eqn/main.cc (do_file, main): Updated.
7470 * src/preproc/pic/troff.cc (troff_output::start_picture,
7471 troff_output::finish_picture): Updated.
7472 * src/preproc/tbl/main.cc (process_input_file): Updated.
7474 * src/roff/groff/groff.cc (main): Updated.
7475 Pass device arguments to predrivers also.
7476 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7477 * src/roff/troff/env.h (environment): Updated.
7478 New elements `need_eol' and `ignore_next_eol' (for html output).
7479 * src/roff/troff/env.cc (environment::environment): Add initializers
7480 for `need_eol' and `ignore_next_eol'.
7481 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7483 (point_size, fill, no_fill, center, right_justify, line_length,
7484 indent, temporary_indent, break_request, handle_tab): Use
7486 (set_tabs): Use `add_html_tag_tabs()'.
7487 (environment::add_html_tag): Updated.
7488 (environment::do_break): Updated.
7489 * src/roff/troff/div.cc (space_request, flush_output): Use
7490 `environment::add_html_tag()'.
7491 * src/roff/troff/input.cc: Updated.
7492 New variable `html_level' to indicate nested `html-begin' requests.
7493 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7494 (non_interpreted_char_node, token_node, non_interpreted_node): Add
7495 `force_tprint()' method.
7496 (token::next): Handle `\O'.
7497 (do_suppress): Implement it.
7498 (html_begin, html_end, html_image): New functions.
7499 (init_output_requests): Renamed to ...
7500 (init_html_requests): this.
7502 (macro::append_str, macro::append_unsigned, macro::append_int): New
7504 New variable `output_low_mark_miny' to limit minimal value of y.
7505 (reset_output_registers): Use it.
7506 (output_request): Removed.
7507 (get_output_registers): New function.
7508 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7509 (*_node): Added `force_tprint()' if necessary.
7510 (special_node): New elements `tf' and `get_tfont()'.
7511 (suppress_node): New class.
7512 * src/roff/troff/node.cc:
7513 New global variables `image_no' and `suppress_start_page'.
7514 (real_output_file): New method `is_on()'.
7515 (troff_output_file): New method `start_special(tfont)'.
7516 (troff_output_file::really_print_line): Use `tprint' conditionally.
7517 (real_output_file::print_line): Updated.
7518 (real_output_file::on): Updated.
7519 (*_node): Added `force_tprint()'.
7520 (special_node::special_node): Initializer updated.
7521 (special_node::same, special_node::copy, special_node::tprint_start):
7523 (get_reg_int, get_reg_str): New functions.
7524 (suppress_node::*): New methods.
7525 New global variables last_position, last_image_filename;
7526 (min): New inline function.
7527 * src/roff/troff/reg.h, src/roff/troff/request.h,
7528 src/roff/troff/troff.h: Updated.
7530 2001-01-13 Werner LEMBERG <wl@gnu.org>
7532 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7533 documentation of `asciify' request.
7535 2001-01-12 Werner LEMBERG <wl@gnu.org>
7537 * src/roff/troff/input.cc: Move definition of special characters
7538 like `ESCAPE_TILDE' to ...
7539 * src/roff/troff/input.h: New file.
7540 * src/roff/troff/Makefile.sub (HDRS): Add it.
7542 Extending the .asciify request to `unformat' space characters also.
7544 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7545 to count input space characters.
7546 Update constructors to take care of it.
7547 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7548 `ESCAPE_SPACE' instead of normal space.
7549 (word_space_node::asciify): New method.
7550 (unbreakable_space_node::asciify): New method.
7551 (word_space_node::merge_space): New method.
7552 * src/roff/troff/env.cc (environment::space_newline,
7553 environment::space): Add code to initialize `num_spaces' (using the
7554 constructor of `word_space_node').
7555 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7558 2001-01-09 Werner LEMBERG <wl@gnu.org>
7560 * man/groff_char.man: Use table header traps only conditionally.
7562 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
7564 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7566 2001-01-08 Werner LEMBERG <wl@gnu.org>
7568 Introducing the `box' and `boxa' requests which are similar to
7569 `di' resp. `da' but omitting a partially filled line (which is
7570 restored after ending the diversion).
7572 * src/roff/troff/div.h (diversion): Add elements to save partially
7574 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7575 partially filled line.
7576 (divert, divert_append): Updated.
7577 (box, box_append): New functions.
7578 (init_div_requests): Use them.
7579 * src/roff/troff/env.h (environment): do_divert() is now a friend.
7580 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7582 * doc/groff.texinfo: Fix documentation of `lf' request.
7584 2000-12-25 Werner LEMBERG <wl@gnu.org>
7586 * src/roff/troff/troff.man, NEWS: Document `writem' request.
7588 2000-12-21 Werner LEMBERG <wl@gnu.org>
7590 Ignore `ss' request if in compatibility mode.
7592 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7593 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7594 * src/roff/troff/env.cc (space_size): Use it.
7596 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7597 `ss' request in nroff mode.
7599 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7602 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
7604 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7606 2000-12-13 Werner LEMBERG <wl@gnu.org>
7608 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7609 * src/preproc/eqn/neqn.man: Small fixes and additions.
7611 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
7613 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7616 * src/preproc/eqn/neqn.man: New file.
7618 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7621 * tmac/e.tmac: Add `T&' macro.
7622 Fix `indent cannot be negative' warning.
7623 * tmac/s.tmac: Fix `indent cannot be negative' warning.
7625 2000-12-07 Werner LEMBERG <wl@gnu.org>
7627 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7629 2000-12-06 Werner LEMBERG <wl@gnu.org>
7631 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7634 * MORE.STUFF: Added info about deroff for djgpp.
7636 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7637 documentation of -rcR switch.
7639 2000-12-03 Werner LEMBERG <wl@gnu.org>
7641 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7642 if -rcR=1 (which is now the default in nroff mode), a single, very
7643 long page is created instead of multiple pages: All `ne' and `wh'
7644 requests are put into conditionals; a new macro `an-end' is added to
7645 be called with `em'.
7647 Some other minor cleanups.
7649 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7651 2000-12-02 Werner LEMBERG <wl@gnu.org>
7653 Fixing a bug which prevented hyphenation in words followed
7654 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7656 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7657 Adding possibly_break_line().
7658 * src/roff/troff/env.h (environment): Make possibly_break_line()
7661 Make `\~' usable in .tr request.
7663 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7664 (token): Add stretchable_space().
7665 * src/roff/troff/input.cc (token::next, token::delimiter,
7666 token::description, process_input_stack, do_translate,
7667 add_to_node_list, token::process): Use it.
7668 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7669 for adjusting the space.
7670 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
7671 for stretchable space.
7672 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7673 (make_node): Add code for stretchable space.
7674 * src/roff/troff/env.cc (environment::add_char): Use it.
7675 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7676 (get_copy, token::next, transparent_translate, asciify): Use it.
7678 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7679 doc/groff.texinfo: Updated.
7680 * man/groff.man: Small reorderings.
7682 2000-11-23 Werner LEMBERG <wl@gnu.org>
7685 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7687 * src/roff/troff/input.cc (main): Add `config_macro_path' and
7688 `safer_macro_path' to -M option.
7689 * src/roff/troff/troff.man: Fixes.
7691 2000-11-22 Werner LEMBERG <wl@gnu.org>
7693 Use safer path (except for config files) if -U isn't specified. Add
7694 a special macro path (without home and current directory) for config
7695 files. Add home directory to unsafe path for consistency. Don't
7696 include the home directory in the font path.
7698 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7700 * src/include/macropath.h: Add `config_macrp_path'.
7701 * src/libs/libgroff/fontfile.cc: Fix font path.
7702 * src/roff/troff/input.cc (process_startup_file): Use
7703 `config_macro_path'.
7704 (main): Select unsafe path if -U is given.
7706 * src/preproc/eqn/main.cc (main): Fixing search path for
7708 * src/preproc/eqn/eqn.man: Updated.
7710 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7713 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7714 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7715 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7716 src/devices/grotty/grotty.man: Updated.
7718 * Makefile.in: Fix comments.
7720 2000-11-17 Werner LEMBERG <wl@gnu.org>
7722 * tmac/safer.tmac: Empty file added (again) for compatibility
7724 * tmac/Makefile.sub: Updated.
7726 2000-11-16 Werner LEMBERG <wl@gnu.org>
7728 * src/devices/grodvi/dvi.cc (main),
7729 src/devices/grohtml2/post-html.cc (main),
7730 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7731 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7732 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7733 (main), src/preproc/html2/pre-html.cc (main),
7734 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7735 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7736 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7737 (main), src/utils/hpftodit/hpftodit.cc (main),
7738 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7739 (main), src/utils/lookbib/lookbib.cc (main),
7740 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7741 (main): Use stdout for -v.
7742 * src/roff/groff/groff.cc (run_commands),
7743 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7744 to make direct printing to stdout possible.
7745 * src/roff/groff/pipeline.h: Updated.
7747 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7748 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7749 * src/utils/afmtodit/afmtodit.man: Updated.
7751 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7752 (version): New function.
7754 * src/utils/addftinfo/addftinfo.man: Updated.
7756 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7757 Fixing copyright dates.
7759 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7762 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7765 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7767 2000-11-15 Werner LEMBERG <wl@gnu.org>
7769 In all programs, make -v return immediately with exit status 0 to
7770 be compliant with the GNU standard.
7772 * src/devices/grodvi/dvi.cc (main),
7773 src/devices/grohtml2/post-html.cc (main),
7774 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7775 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7776 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7777 (main), src/preproc/html2/pre-html.cc (main),
7778 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7779 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7780 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7781 (main): Implement it.
7784 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
7785 and postprocessors to the -v option.
7787 * src/roff/grog/grog.pl: Implement -v.
7788 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7789 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7791 * src/roff/nroff/nroff.sh: Implement -v.
7792 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7793 * src/roff/nroff/nroff.man: Updated.
7795 * src/preproc/eqn/main.cc (main): Fix comment typo.
7797 * MORE.STUFF: Added info about djgpp port of grap.
7799 2000-11-14 Werner LEMBERG <wl@gnu.org>
7801 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7802 mode (or rather, implemented non-compatibility mode).
7803 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7805 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7806 replacing it -- we don't find gxditview otherwise.
7807 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7809 * src/preproc/pic/depend: Removed. Unnecessary.
7811 Implemented dummy keyword `solid' in pic for compatibility with
7814 * lex.cc (lookup_keyword): Added `solid'.
7815 * pic.y: Added SOLID with dummy rule.
7816 * pic.cc, pic_tab.h: Regenerated.
7817 * doc/pic.ms: Updated.
7819 2000-11-13 Werner LEMBERG <wl@gnu.org>
7821 For security reasons, don't use the current directory but the home
7822 directory while searching and scanning troffrc and troffrc-end.
7823 Similarly, replace the current directory with the home directory
7826 * Makefile.in (fontpath, tmacpath): Remove current directory.
7828 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
7829 two parameters `add_home' and `add_current'.
7830 (search_path::~search_path, search_path::command_line_dir,
7831 search_path::open_file): Remove tests for `dirs' being zero.
7832 * src/include/searchpath.h: Adjust.
7833 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
7835 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
7837 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
7838 * src/roff/troff/input.cc: Use `mac_path', initialized with
7840 (process_startup_file): Set `mac_path' to `safer_macro_path'.
7841 * src/roff/troff/env.cc: Use `mac_path'.
7843 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
7845 * NEWS, man/roff.man, src/roff/troff/troff.man,
7846 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
7849 2000-11-12 Werner LEMBERG <wl@gnu.org>
7851 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
7853 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
7854 * configure.in: Fix typo in comment.
7855 * configure: Regenerated.
7857 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
7860 2000-11-08 Werner LEMBERG <wl@gnu.org>
7862 Add system tmac directory (/usr/local/lib/groff/site-tmac).
7864 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
7865 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
7868 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
7869 * tmac/Makefile.sub (install_data): Create
7870 $(systemtmacdir) and $(localtmacdir).
7871 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
7872 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
7873 NEWS, doc/groff.texinfo: Updated and minor fixes.
7875 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
7876 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
7877 $(systemtmacdir) since the wrapper files are platform-dependent.
7879 2000-11-01 Werner LEMBERG <wl@gnu.org>
7881 * doc/groff.texinfo: Fix typo.
7883 2000-10-26 Werner LEMBERG <wl@gnu.org>
7885 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
7886 tmac.doc.old -> doc-old.tmac
7887 tmac.an.old -> an-old.tmac
7889 * tmac/tmac.*: Moved to ...
7890 * tmac/*.tmac: this.
7891 * tmac/man.local: Fix comment.
7892 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
7893 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
7894 Added some `FILES' sections. More use of @...@ directives. Other
7896 * arch/djgpp/README, font/devutf8/NOTES: Updated.
7897 * doc/homepage.ms, doc/groff.texinfo: Updated.
7898 * man/groff.man, man/roff.man: Updated.
7899 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
7900 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7901 src/devices/grotty/grotty.man: Updated.
7902 * src/preproc/pic/pic.man: Updated.
7903 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
7904 instead of -mdoc.old.
7905 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
7906 * src/roff/nroff/nroff.man: Updated.
7909 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
7911 * tmac/mm.diff: Removed -- it has no use now since the mm package
7914 * tmac/*: Removed trailing spaces.
7916 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
7917 the tmac subdirectory also).
7919 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
7920 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
7921 stuff since it is no longer needed.
7923 * README, PROBLEMS: Updated.
7925 2000-10-25 Werner LEMBERG <wl@gnu.org>
7927 Invert current behaviour: Search first FOOBAR.tmac, then
7930 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
7931 (open_mac_file, macro_source): Implement it.
7932 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
7933 doc/groff.texinfo, NEWS: Document it.
7935 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
7936 Small documentation improvements.
7938 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
7941 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
7943 2000-10-24 Werner LEMBERG <wl@gnu.org>
7945 Add local tmac directory (groff/site-tmac).
7947 * Makefile.in: Add $(localtmacdir).
7948 (uninstall_dirs): Add $(localtmacdir).
7949 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
7950 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
7951 in $(localtmacdir). Create $(localtmacdir).
7952 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
7953 Updated and minor fixes.
7955 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
7957 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
7959 2000-10-23 Werner LEMBERG <wl@gnu.org>
7961 Move hyphen.us to tmac directory.
7963 * src/roff/troff/hyphen.us: Removed.
7964 * src/tmac/hyphen.us: Added.
7965 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
7967 Change installation structure for data files from .../groff/... to
7968 .../groff/<version><revision>/... to be conform with other GNU
7971 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
7972 doc/Makefile: Implement it.
7973 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
7974 * configure: Updated.
7975 * arch/djgpp/README, font/devutf8/NOTES: Use it.
7976 * NEWS: Document it.
7977 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
7978 @MACRODIR@ instead of hard-coded directories.
7980 2000-10-22 Werner LEMBERG <wl@gnu.org>
7982 Implement $GROFF_BIN_PATH environment variable (which defaults to
7983 $bindir) used for child programs of groff and similar wrappers.
7985 * gendefs.sh: Improve documentation.
7986 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
7987 src/preproc/eqn/Makefile.sub (neqn),
7988 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
7989 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
7991 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
7992 $GROFF_PATH__ (the latter for communication with troff).
7993 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
7995 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
7996 doc/groff.texinfo: Document it.
7998 * doc/groff.texinfo: Improve documentation of troff's -a option.
8000 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
8002 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8003 non-intrusive eol marker.
8004 (troff_output_file::determine_line_limits): New function.
8005 (troff_output_file::draw): Use it.
8006 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8007 output_pending_lines() instead of output_line().
8008 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8009 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8010 createImage): Small fixes.
8012 2000-10-14 Werner LEMBERG <wl@gnu.org>
8014 Replace tmac.safer with a real secure solution.
8016 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8017 system_request, pipe_output): Disable requests if in safer mode.
8018 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8019 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8020 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8021 doc/groff.texinfo, src/roff/groff/groff.man,
8022 src/roff/troff/troff.man, arch/djgpp/README: Updated.
8024 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8025 (resource_manager::output_prolog): Replace setenv() with putenv().
8027 2000-10-09 Werner LEMBERG <wl@gnu.org>
8029 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8030 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8031 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8032 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8033 compilation errors with some compilers. It seems that this code
8034 is no longer necessary -- if yes, it is easy to add some #ifdef's
8035 for that particular old-fashioned compiler.
8037 * MORE.STUFF: Added info about Meta-tbl.
8039 * doc/groff.texinfo: Added more info about `.if "..."..."'.
8041 2000-10-07 Werner LEMBERG <wl@gnu.org>
8043 Adding a new escape sequence \B'...': If the string between
8044 the delimiters is a valid numeric expression, return the character
8045 `1', and `0' otherwise. This is an analogon to \A.
8047 * src/roff/troff/input.cc (do_expr_test): Implement it.
8048 (token::next): Use it.
8049 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
8051 * tmac/tmac.trace: Made independent from escape character.
8053 2000-10-06 Werner LEMBERG <wl@gnu.org>
8055 Adding a new request .dei: define indirect. The first and second
8056 parameter of .dei are taken from string registers instead directly;
8057 this very special request is needed to make tmac.trace independent
8058 from the escape character (which might even be disabled).
8060 * src/roff/troff/input.cc (do_define_macro): Implement it.
8061 (define_macro_indirect): New function.
8062 (init_input_requests): Use it.
8064 Adding two requests .ecs and .ecr: Save and restore the escape
8065 character. These two requests are needed to make tmac.trace
8066 independent from the escape character (which might even be
8069 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
8071 (init_input_requests): Use it.
8073 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8075 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
8077 Adding a new option -P and new environment variable GROPS_PROLOGUE
8078 to grops, selecting a different prologue file (minor modifications
8081 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8082 src/devices/grops/ps.cc (main): Implement it.
8083 * src/devices/grops/grops.man, NEWS: Document it.
8085 2000-09-22 Werner LEMBERG <wl@gnu.org>
8087 * INSTALL: Add info about selecting paper format.
8089 2000-09-21 Werner LEMBERG <wl@gnu.org>
8091 * src/roff/troff/input.cc (main): Fixing compiler warning.
8092 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
8093 strings.h from the former to the latter.
8094 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
8095 stuff from the former to the latter.
8097 2000-09-11 Werner LEMBERG <wl@gnu.org>
8099 Implementing two new requests .tm1 and .tmc: The former is similar
8100 to .tm but can output leading spaces; its syntax is similar to
8101 defining a string, i.e., a `"' can be used to mark the beginning of
8102 the string to be written to stderr: `.tm1 " test'. The latter is
8103 similar to .tm1 but doesn't write out a final newline character.
8105 * src/roff/troff/input.cc (terminal1, terminal_continue,
8106 do_terminal): New functions.
8107 (init_input_requests): Use them.
8108 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8110 2000-09-09 Werner LEMBERG <wl@gnu.org>
8112 * tmac/groff_mdoc.samples.man: Small fixes.
8114 2000-09-08 Werner LEMBERG <wl@gnu.org>
8116 * tmac/groff_mdoc.man: Fixing typo.
8118 2000-09-02 Werner LEMBERG <wl@gnu.org>
8120 Implementing a .nop request which does nothing.
8122 * src/roff/troff/input.cc (nop_request): New function.
8123 (init_input_requests): Use it.
8124 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8126 2000-09-01 Werner LEMBERG <wl@gnu.org>
8128 * doc/groff.texinfo: Added some comments.
8130 2000-08-30 Werner LEMBERG <wl@gnu.org>
8132 * src/roff/troff/TODO: Updated.
8134 2000-08-25 Werner LEMBERG <wl@gnu.org>
8136 * doc/groff.texinfo: Fix comment how to compile the DVI file.
8138 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
8140 * font/devps/generate/Makefile (SHELL): Define explicitly to
8141 "/bin/sh", for non-Unix platforms.
8142 (extraclean): Use a more portable "" quoting instead of a
8143 backslash (which doesn't work on DOS/Windows).
8145 * font/devlj4/generate/Makefile (extraclean): Ditto.
8147 * font/devdvi/generate/Makefile (extraclean): Ditto.
8149 2000-08-25 Werner LEMBERG <wl@gnu.org>
8151 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
8152 src/roff/troff/troff.man: Document Eli's latest changes.
8154 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
8156 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8157 macro file names of the form NAME.tmac as well as tmac.NAME.
8159 2000-08-25 Werner LEMBERG <wl@gnu.org>
8161 * src/include/posix.h: Remove definition of FILENAME_MAX.
8163 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8164 `sys_fatal' and `stop' function().
8166 * test-groff: Updated.
8168 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
8170 Added the new troff command .output <arg> to suppress output (while
8171 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8172 registers (for passing the output dimensions to the output device).
8174 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8176 * src/roff/troff/node.h, src/roff/troff/node.cc
8177 (troff_output_file::really_print_line,
8178 ascii_output_file::really_print_line,
8179 supress_output_file::really_print_line): Use `width' parameter.
8180 (troff_output_file::really_on, troff_output_file::really_off,
8181 output_file::on, output_file::off, real_output_file::on,
8182 real_output_file::off, real_output_file::really_on,
8183 real_output_file::really_off): New functions.
8184 (real_output_file:public output_file): New variable `output_on'.
8185 (real_output_file::begin_page, real_output_file::copy_file,
8186 real_output_file::transparent_char, real_output_file::print_line):
8188 (real_output_file::print_line): Use check_output_limits.
8189 * src/roff/troff/reg.h, src/roff/troff/request.h,
8190 src/roff/troff/input.cc (assign_registers): New function to remove
8192 (do_ps_file): Use it.
8193 (check_output_limits, reset_output_registers, output_request,
8194 init_output_requests): New functions.
8195 (init_input_requests): Updated.
8197 Added new grohtml2 device and html2 preprocessor (coding
8198 not yet finished) which will eventually replace grohtml.
8200 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8202 * src/include/htmlindicate.h, src/include/htmlindicate
8203 (html_begin_suppress, html_end_suppress): New functions.
8204 * src/preproc/tbl/main.cc: Use it.
8205 * src/roff/groff/groff.cc: Add support for html2 device (which will
8206 automatically invoke the html2 preprocessor).
8207 * src/roff/troff/input.cc (is_html2): New variable.
8208 * src/roff/troff/troff.h, src/roff/troff/env.h,
8209 src/roff/troff/env.cc (environment::add_html_tag): New function
8211 (environment::do_break): Use it.
8212 * font/devhtml2/*: New files.
8213 * src/devices/grohtml2: New device.
8214 * src/preproc/html2: New preprocessor.
8215 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8217 2000-08-23 Werner LEMBERG <wl@gnu.org>
8219 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8221 2000-08-22 Werner LEMBERG <wl@gnu.org>
8223 * src/include/lib.h: Provide a fix for IRIX to not include
8226 2000-08-18 Werner LEMBERG <wl@gnu.org>
8228 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8229 since some non-GNU sed programs can't handle null regexps.
8230 * configure, src/preproc/eqn/Makefile.sub,
8231 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8233 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8234 bug (string.h and strings.h are both needed according to latest
8237 * MORE.STUFF: Added info about unroff and troffcvt.
8239 2000-08-08 Werner LEMBERG <wl@gnu.org>
8241 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8244 * tmac/tmac.man.old: Remove unused number register.
8246 * tmac.doc: Minor documentation fix.
8248 2000-08-07 Paul Eggert <eggert@twinsun.com>
8250 * src/roff/groff/pipeline.c (is_system_shell):
8251 Fix typo: "monocased_shell" no longer exists.
8253 2000-08-07 Paul Eggert <eggert@twinsun.com>
8255 Remove FILENAME_MAX limits.
8257 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8258 that the argument length is less than FILENAME_MAX.
8259 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8260 Use struct hack to allocate and free file name.
8261 (struct xtmpfile_list): fname is now part of the structure,
8262 not a pointer to another string.
8264 2000-08-07 Tom Schmidt <tschmidt@micron.com>
8266 * src/include/posix.h: Add a default value for FILENAME_MAX.
8268 2000-08-06 Paul Eggert <eggert@twinsun.com>
8270 Add support for new BSD-style man pages (with ".Dd" instead of
8271 ".TH"), so that "groff -man" understands both styles, even
8272 when running "groff -man" on a host whose system man page
8273 macros don't support ".Dd".
8275 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8276 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8277 in case the system man macros don't define Dd or TH.
8279 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8280 * tmac/tmac.an: New one-line file.
8281 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8283 2000-08-06 Werner LEMBERG <wl@gnu.org>
8285 * src/roff/troff/troff.man: Fixing typos.
8287 Version 1.16.1 released
8288 =======================
8290 2000-07-31 Werner LEMBERG <wl@gnu.org>
8292 Preparing release 1.16.1.
8294 * REVISION: Revision number set to 1.
8295 * MORE.STUFF: Added info about port to DOS.
8296 * NEWS, win32-diffs: Updated.
8298 * src/include/nonposix.h: Remove first line -- this file is used
8301 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8304 2000-07-30 Werner LEMBERG <wl@gnu.org>
8306 * doc/texinfo.tex: Update to latest version.
8308 2000-06-28 Paul Eggert <eggert@twinsun.com>
8310 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8311 commands that fail. Don't assume that "export a=b" is valid shell
8312 syntax. This is needed for Solaris 2.5.1.
8314 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8315 comment about missing Solaris headers.
8317 * PROBLEMS: Add section about problems with Sun Make and VPATH.
8319 2000-06-25 Werner LEMBERG <wl@gnu.org>
8321 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8324 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8326 * win32-diffs: Updated.
8327 * README.WIN32: Added CRs to make all Windows editors happy.
8329 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8330 src/roff/groff/pipeline.c).
8332 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8334 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8335 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8337 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
8339 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8340 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8342 (main): Support non-Posix systems with several different styles of
8343 slash characters in file names.
8345 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8346 (main) [SET_BINARY]: Switch stdin into binary mode.
8348 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8349 (main): Support file names with several possible slash-type
8350 characters, as given by DIR_SEPS[] in nonposix.h.
8351 (main) [__MSDOS__]: If renaming the temporary index file fails
8352 because it has more than one dot in its trunk, replace the dot
8353 with an underscore and try again.
8354 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
8356 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8358 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8359 (File::File): Open the input file in binary mode. Strip CR
8360 characters from each CR-LF pair.
8361 (xbasename): Support file names with several possible slash-type
8362 characters, as given by DIR_SEPS[] in nonposix.h.
8364 * src/include/Makefile.sub (HDRS): Add nonposix.h.
8366 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8367 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8368 [!_POSIX_VERSION]: Define for traditional Unix systems.
8369 (real_output_file::real_output_file): Remove the MSVC-specific
8370 call to popen, use instead POPEN_WT, appropriately defined on
8371 nonposix.h. #include nonposix.h.
8372 (real_output_file::~real_output_file): Remove the MSVC-specific
8373 call to pclose, a suitable macro is now defined on nonposix.h.
8374 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8375 and WEXITSTATUS instead of assuming traditional Unix
8376 interpretation of the status returned by pclose.
8378 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8379 call to popen, use POPEN_RT instead (appropriately defined on
8380 nonposix.h). #include nonposix.h.
8381 (ps_bbox_request): Open the PostScript file in binary mode.
8382 Close the file after processing it.
8383 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8386 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8387 A version of run_pipeline that doesn't use `fork'.
8388 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8389 (system_shell_name, system_shell_dash_c)
8390 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8391 the ugliness of testing DOS/Windows file names for equality, and
8392 support both stock shells and ports of Unix shells.
8394 * src/roff/groff/groff.cc: #include nonposix.h.
8395 (BSHELL): Definition moved to nonposix.h.
8396 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
8397 instead of a literal "-c".
8398 (xbasename): Support file names with several possible slash-type
8399 characters, as given by DIR_SEPS[] in nonposix.h.
8400 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8403 * src/preproc/soelim/soelim.cc: #include nonposix.h.
8404 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8406 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8409 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8411 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8414 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8416 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8417 P_tmpdir is defined, use it instead of the literal "/tmp".
8418 (remove_tmp_files, add_tmp_file): New functions.
8419 (xtmpfile): Record temporary files and register an atexit function
8420 to delete them explicitly, instead of relying on the OS to do
8421 that, which doesn't work on non-Unix systems.
8423 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8424 (search_path::search_path): Use PATH_SEP instead of a literal
8426 (search_path::command_line_dir): Ditto.
8427 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8428 to support non-Posix systems.
8430 * src/libs/libbib/search.cc: #include nonposix.h.
8431 (search_list::add_file): Open the file in binary mode.
8433 * src/libs/libbib/linear.cc: #include nonposix.h.
8434 (file_buffer::load): Remove \r characters preceding \n from the
8437 * src/libs/libbib/index.cc: #include nonposix.h.
8438 (make_index_search_item): Open index_filename in O_BINARY mode.
8439 (index_search_item_iterator::get_tag): Ditto. Remove \r
8440 characters before \n characters.
8441 (index_search_item::check_files): Open files in binary mode.
8442 (index_search_item::munge_filename): Support DOS-style file names
8443 with backslashes and drive letters, use IS_ABSOLUTE.
8445 * src/devices/grops/ps.cc: #include nonposix.h.
8446 (main) [SET_BINARY]: Switch stdout to binary mode.
8448 * src/devices/grolj4/lj4.cc: #include nonposix.h.
8449 (main) [SET_BINARY]: Switch stdout to binary mode.
8451 * src/devices/grolbp/lbp.cc: #include nonposix.h
8452 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8454 * src/devices/grodvi/dvi.cc: #include nonposix.h.
8455 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8457 (main) [SET_BINARY]: Switch stdout to binary mode.
8458 [_MSC_VER]: Remove an explicit call to _setmode.
8460 * src/include/nonposix.h: New file.
8462 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8463 operation when building with DJGPP.
8464 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8465 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8468 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8470 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8471 etc. can include a semi-colon on DOS/Windows.
8472 (depend.temp): Use depend1.temp instead of depend.temp1, to
8473 prevent files from overerwiting each other on 8+3 filesystems.
8475 * gendef.sh (t): Change definition to work with DOS/Windows.
8477 doc/groff.texinfo: Apart of some typo corrections, I also changed
8478 some index entris, to make them more non-ambiguous, and also put
8479 @ignore around some parts that are not yet written, to allow the
8480 Info output be readable.
8482 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
8484 Replaced specific checks for function declarations with a generic
8485 routine taken from GNU bfd.
8487 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8488 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8489 * configure.in: Use it.
8490 * src/devices/grolbp/lbp.cc, src/include/lib.h,
8491 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8492 src/roff/groff/groff.cc: Use it.
8493 * Makefile.in, configure: Updated.
8495 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
8497 * src/devides/grolbp/lbp.h: Removed unused variables.
8499 2000-05-31 Keith Thompson <kst@sdsc.edu>
8501 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8504 2000-05-31 Werner LEMBERG <wl@gnu.org>
8506 * aclocal.m4 (GROFF_SRAND): New function to test the return value
8507 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8508 * configure.in: Use it.
8509 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8510 * configure, Makefile.in: Updated.
8512 * configure.in: Add test for strncasecmp().
8513 * src/include/lib.h: Use it.
8515 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
8517 * src/preproc/grn/Makefile.sub: Add MLIB.
8519 2000-05-29 Nix <nix@esperi.demon.co.uk>
8521 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8523 2000-05-29 Werner LEMBERG <wl@gnu.org>
8525 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8527 * PROBLEMS: Small update.
8529 * src/devices/grolbp/lbp.cc: Various small fixes.
8531 2000-05-28 Keith Thompson <kst@sdsc.edu>
8533 * src/roff/nroff/nroff.sh: Fix main loop syntax.
8535 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8537 2000-05-25 Werner LEMBERG <wl@gnu.org>
8539 * man/roff.man: Removed unused macro.
8541 2000-05-24 Werner LEMBERG <wl@gnu.org>
8543 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
8544 This is needed e.g. if you do
8545 `make distclean; ./configure; make dist'.
8547 Version 1.16 released
8548 =====================
8550 2000-05-23 Werner LEMBERG <wl@gnu.org>
8552 Adding font CWI (constant width italic) to devdvi.
8554 * font/devdvi/CWI: New file.
8555 * font/devdvi/generate/Makefile: Add generating rule.
8556 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8557 tmac/tmac.dvi: Use it.
8558 * NEWS: Announce it.
8560 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8561 * font/devlj4/generate/Makefile: Cosmetic changes only.
8563 * man/groff.man: Removed most of the redundant description of
8564 special characters (which is in groff_char.man). Added font
8565 translation CB->CR for devdvi. Other minor fixes.
8567 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8568 (registered) symbols.
8570 2000-05-22 Werner LEMBERG <wl@gnu.org>
8572 * doc/Makefile: Added rule for creating info files.
8574 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
8576 * font/devdvi/generate/Makefile: Fixed dependencies.
8578 * font/devps/*: Regenerated. Heavy changes for Bookman and
8579 NewCentury Schoolbook!
8580 * font/devps/generate/afmname: Will now run with GNU awk.
8581 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8582 * font/devps/generate/Makefile: Cosmetic changes only.
8584 2000-05-21 Werner LEMBERG <wl@gnu.org>
8586 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8587 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
8588 `.SS' now produces a heading with a smaller size than `.SH'.
8589 Completely formatted.
8590 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8592 * man/groff.man: Improved table appearance. Use of `eo' request
8593 to reduce number of doubled backslashes in macro definitions.
8594 Replacing `\e' with `\(rs'. Other minor fixes.
8596 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8597 to have correct line number.
8599 * INSTALL: Small improvement.
8601 2000-05-20 Bernd Warken <bwarken@mayn.de>
8603 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8606 2000-05-19 Bernd Warken <bwarken@mayn.de>
8608 * man/groff.man: Complete update (with a lot of corrections by WL).
8610 2000-05-18 Werner LEMBERG <wl@gnu.org>
8612 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8614 * font/*/*: Implement it.
8615 * man/groff_char.man, NEWS: Document it.
8617 * src/include/unix.h: Removed. It isn't used.
8619 * doc/groff.texinfo: Slight improvements.
8621 2000-05-17 Werner LEMBERG <wl@gnu.org>
8623 * README, win32-diffs: Small fixes and improvements.
8625 2000-05-16 Werner LEMBERG <wl@gnu.org>
8627 * FDL: New file (the Free Documentation License version 1.1).
8629 * doc/groff.texinfo: Added many start-up values for gtroff.
8630 Some structural improvements of the source code.
8632 2000-05-15 Werner LEMBERG <wl@gnu.org>
8634 * src/roff/troff/input.cc: Added small comment about troffrc-end.
8635 * src/roff/troff/troff.man: Added info about troffrc-end.
8637 2000-05-14 Werner LEMBERG <wl@gnu.org>
8639 * Makefile.in (EXTRADIRS): Fix typos.
8640 (dist): Handle deletion of old .tar.gz file correctly.
8641 (DISTDIRS): Include all tty output devices.
8643 * doc/groff.texinfo: Adding more cross references; countless other
8646 2000-05-13 Werner LEMBERG <wl@gnu.org>
8648 * MORE.STUFF: Added Robert Marks's utilities.
8650 2000-05-12 Werner LEMBERG <wl@gnu.org>
8652 Added win32 port contributed by Blake McBride
8653 <blake@florida-software.com>.
8655 * README.WIN32, win32-diffs: New files.
8658 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8659 (tmove, tmove2): Added parentheses to avoid compiler warnings.
8660 (change): Removed unused variables.
8662 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8663 (savebounds): Changed return value from `int' to `void'.
8664 * src/preproc/grn/hdb.cc: Ditto.
8666 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8667 final backslash in comment to avoid compiler warning.
8669 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8671 * doc/groff.texinfo: More fixes.
8673 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
8675 * tmac/tmac.doc: Documentation fix.
8677 2000-05-11 Werner LEMBERG <wl@gnu.org>
8679 * doc/groff.texinfo: Reading the source code shows up a lot of
8680 omissions and incorrect data... More conversion to @Deffn macros.
8682 2000-05-10 Werner LEMBERG <wl@gnu.org>
8684 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8687 * src/roff/troff/request.h: Removing unused `no_break_flag'.
8689 2000-05-09 Werner LEMBERG <wl@gnu.org>
8691 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8694 * doc/groff.texinfo: Extended history section. More conversion to
8695 @Deffn macros. More .tr documentation.
8697 2000-05-07 Werner LEMBERG <wl@gnu.org>
8699 * doc/groff.texinfo: Completed tab section. Added info about
8702 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
8704 * PROBLEMS: Describe configure script fix for OS/390 Unix.
8706 2000-05-05 Werner LEMBERG <wl@gnu.org>
8708 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8710 * NEWS: Document it.
8712 * man/troff.man: Minor optical improvements.
8714 2000-05-03 Werner LEMBERG <wl@gnu.org>
8716 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8718 * font/*/*: Implement it.
8719 * man/groff_char.man, NEWS: Document it.
8721 2000-05-02 Werner LEMBERG <wl@gnu.org>
8723 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8725 * NEWS: Document the three new man pages.
8727 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8728 * configure: Updated.
8730 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8732 2000-05-01 Werner LEMBERG <wl@gnu.org>
8734 Added grap support to grog.
8736 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8737 * src/roff/grog/grog.man: Document it.
8739 * doc/groff.texinfo, NEWS: Add info about grap support.
8741 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8742 (with slight fixes by me).
8744 * tmac/groff_tmac.man: New file documenting tmac mechanism.
8745 * tmac/Makefile.sub: Add groff_tmac.man.
8746 * man/roff.man: New file giving overview of roff system.
8747 * man/troff.man: A short reference of troff.
8748 * man/Makefile.sub: Add roff.man and troff.man.
8750 2000-04-30 Werner LEMBERG <wl@gnu.org>
8752 Added grap support to groff.
8754 * src/roff/groff/groff.cc: Implement it.
8755 * src/roff/groff/groff.man: Document it.
8757 * src/devices/grotty/grotty.man: Add cp1047 device.
8758 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8760 * src/roff/groff/groff.man: Ditto.
8761 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8762 * doc/groff.texinfo: Ditto.
8764 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8767 2000-04-29 Werner LEMBERG <wl@gnu.org>
8769 * man/groff_char.man: Add `pc' glyph.
8770 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8771 * tmac/tmac.tty: Add `pc' glyph.
8772 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
8773 we use cp1047 output device.
8775 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8776 there are still hardcoded latin1->unicode values in utf8's font
8778 * configure: Updated.
8779 * NEWS: Minor clarification. Updated.
8781 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
8784 2000-04-28 Werner LEMBERG <wl@gnu.org>
8786 Adding EBCDIC code page 1047.
8788 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8789 font/devcp1047/DESC.proto: New files.
8791 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8792 either ascii/latin1 or cp1047.
8793 * Makefile.in: Use it.
8794 * configure: Updated.
8796 Replacing and/or adding `md' (mathdot) glyph with `pc'
8797 (periodcentered) in all text fonts.
8799 * font/*/*: Change it.
8801 2000-04-27 Werner LEMBERG <wl@gnu.org>
8803 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8805 * configure.in: Add check for strings.h.
8806 * src/include/driver.h: Use HAVE_STRINGS_H.
8807 * src/devices/grolbp/lpb.cc: Remove string.h.
8809 * src/include/groff-getopt.h: New file. It will be used instead of
8810 getopt.h (to be included in lib.h) to avoid endless problems with
8811 picky C++ compilers.
8812 * src/include/lib.h: Use groff-getopt.h.
8813 * src/include/Makefile.sub: Updated.
8815 * configure: Updated.
8816 * Makefile.in: Updated.
8818 * NEWS: Mention EBCDIC support.
8820 2000-04-26 Werner LEMBERG <wl@gnu.org>
8822 * TODO: Some additions.
8824 2000-04-25 Werner LEMBERG <wl@gnu.org>
8826 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
8829 2000-04-23 Werner LEMBERG <wl@gnu.org>
8831 * src/roff/troff/troff.man: Minor fixes.
8833 2000-04-22 Werner LEMBERG <wl@gnu.org>
8835 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
8836 `.T' string register and the incompatible definition of the `.T'
8837 number register (compared to Unix troff).
8839 * man/groff_char.man: Add some missing characters.
8840 * font/devutf8/NOTES: Update.
8842 2000-04-21 Werner LEMBERG <wl@gnu.org>
8844 * src/include/htmlindicate.h, src/include/lib.h,
8845 src/include/posix.h: Fix copyright.
8847 * src/include/Makefile.sub: Update.
8849 2000-04-20 Werner LEMBERG <wl@gnu.org>
8851 * src/roff/troff/input.cc (input_char_description): Removing
8852 superfluous space char.
8854 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
8856 * doc/groff.texinfo: Document EBCDIC.
8858 2000-04-19 Werner LEMBERG <wl@gnu.org>
8860 Introducing `shc' as the glyph name for the soft hyphen character.
8862 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
8863 font/devlatin1/R.proto: Use it.
8867 2000-04-18 Werner LEMBERG <wl@gnu.org>
8869 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
8870 dependency on ASCII order.
8872 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
8874 * src/libs/libgroff/illegal.c: Added EBCDIC table.
8875 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
8877 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
8878 to increase portability.
8880 2000-04-15 Werner LEMBERG <wl@gnu.org>
8882 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
8883 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
8884 the generic `\n' if under OS/390 Unix.
8886 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
8888 * configure: Regenerated.
8890 2000-04-14 Werner LEMBERG <wl@gnu.org>
8892 * doc/groff.texinfo: More conversions to @Deffn.
8894 2000-04-12 Werner LEMBERG <wl@gnu.org>
8896 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
8899 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
8901 2000-04-10 Werner LEMBERG <wl@gnu.org>
8903 * doc/groff.texinfo: More conversions to @Deffn.
8905 2000-04-08 Werner LEMBERG <wl@gnu.org>
8907 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
8908 Updated to latest version (glibc 2.1.3).
8910 2000-04-07 Werner LEMBERG <wl@gnu.org>
8912 * doc/Makefile (clean): Include more index files.
8913 Add rule texinfo->dvi.
8915 2000-04-05 Werner LEMBERG <wl@gnu.org>
8917 * doc/groff.texinfo: Added new index `op' for operators. More
8918 info on end of sentence characters. More use of @Deffn.
8920 2000-03-30 Werner LEMBERG <wl@gnu.org>
8922 * */*.man: Adding a note that a whitespace can be inserted between
8923 a command line option and its parameter -- we are using GNU getopt.
8925 * src/roff/groff/groff.man: Add example of `-m mandoc'.
8927 2000-03-28 Werner LEMBERG <wl@gnu.org>
8929 Correct anachronism of calling the man macro file with `-man'
8930 instead of `-m man' etc.
8932 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
8933 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
8934 load tmac.<package>.
8936 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
8940 * doc/groff.texinfo: Updated.
8942 * tmac/groff_man.man: Copyright added.
8944 2000-03-27 Werner LEMBERG <wl@gnu.org>
8946 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
8947 typeset the request resp. escape name with a tt font -- due to a
8948 bug in texinfo.tex it is necessary to use the `-e' switch with
8951 Improving info about usage of groff units.
8955 2000-03-20 Werner LEMBERG <wl@gnu.org>
8957 * doc/groff.texinfo: Added section about man macro package
8958 (I've basically taken groff_man.man). Introducing new indices `ma'
8959 for macros/strings and `gl' for glyph names. Other minor fixes.
8961 * tmac/groff_man.man: Fixed some typos.
8963 2000-03-19 Werner LEMBERG <wl@gnu.org>
8965 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
8968 * doc/texinfo.tex: New file.
8970 2000-03-18 Werner LEMBERG <wl@gnu.org>
8972 * doc/groff.texinfo: Improved section on number registers. Other
8975 2000-03-16 Werner LEMBERG <wl@gnu.org>
8977 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
8980 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
8981 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
8982 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
8983 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
8985 * src/preproc/grn/grn.man: Better synopsis; added copyright.
8987 * src/roff/grog/grog.man: Updated copyright date.
8989 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
8991 * configure.in: Added test for strdup.
8993 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
8996 Replaced dynamic allocation of arrays `[...]' with `new' operator.
9000 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
9002 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9004 2000-03-11 Werner LEMBERG <wl@gnu.org>
9006 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9008 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9009 * src/include/lib.h: Remove some spaces.
9011 2000-03-10 Werner LEMBERG <wl@gnu.org>
9013 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9014 initializers from arguments (some compilers don't like this).
9016 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
9018 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9019 used by pic and eqn to tell grohtml where the graphic regions start
9021 * src/libs/libgroff/Makefile.sub: Use it.
9022 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9023 graphic_start() and graphic_end() from htmlindicate.cc.
9025 2000-03-09 Werner LEMBERG <wl@gnu.org>
9027 * tmac/tmac.safer: Will now work correctly in compatibility mode.
9028 * tmac/groff_man.man: More fixes.
9030 2000-03-08 Werner LEMBERG <wl@gnu.org>
9032 * doc/Makefile: Added texput.log to the `clean' target.
9033 * doc/groff.texinfo: Added info about delimiters for escapes.
9035 2000-03-08 Bernd Warken <bwarken@mayn.de>
9037 * src/preproc/pic/pic.man: Add info on conversion of pic images to
9038 other graphic formats.
9040 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
9042 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
9043 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
9044 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
9047 2000-03-07 Werner LEMBERG <wl@gnu.org>
9049 * doc/groff.texinfo: Spelling fixes.
9051 2000-03-06 Werner LEMBERG <wl@gnu.org>
9053 * tmac/groff_man.man: Completely revised to cover everything in
9056 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
9057 Other minor fixings.
9058 * src/roff/troff/env.cc (environment_copy): Improve error message and
9060 * src/roff/troff/TODO: Updated.
9062 * doc/Makefile: Bug fixes -- this is still provisional, though...
9064 * tmac/eqnrc: Small fixes.
9066 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
9068 Adding a request `evc' to copy environments.
9070 * src/roff/troff/env.cc (environment::copy, environment_copy):
9072 * src/roff/troff/env.h: Add prototype.
9074 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
9076 Adding strsep() -- Solaris 8 doesn't have it.
9078 * configure.in: Test it.
9079 * src/devices/grolbp/lbp.cc: Add code.
9081 2000-03-05 Werner LEMBERG <wl@gnu.org>
9083 * src/roff/troff/div.cc (macro_diversion::output,
9084 top_level_diversion::output): Fixing an incompatibility with
9085 original troff: \x'0' updates the .a register also. Thanks to
9086 <Andries.Brouwer@cwi.nl> for pointing this out.
9087 * doc/groff.texinfo: Document it.
9089 * Makefile.in: Create Makefile.dep if necessary before calling the
9090 submake process to avoid warning about nonexistent file.
9092 * NEWS, PROJECTS: Updated.
9094 2000-03-04 Werner LEMBERG <wl@gnu.org>
9096 * tmac/troffrc: Add tmac.lbp.
9098 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
9100 * tmac/tmac.lbp: New file.
9101 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9104 2000-03-03 Werner LEMBERG <wl@gnu.org>
9106 * Makefile.in: Fixing $(subdir).
9108 * README, NEWS: Small fixes.
9110 * test-groff: Adding path to grolbp.
9112 * configure.in: The (new) file src/xditview/Imakefile.in will be
9113 also configured -- it is now possible to build gxditview in a
9114 directory different from $srcdir.
9116 2000-03-02 Blake McBride <blake@florida-software.com>
9118 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9120 * MORE.STUFF: Added website of bell labs and info about plot2dev.
9122 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
9124 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9127 2000-02-29 Werner LEMBERG <wl@gnu.org>
9129 Adding GNU getopt to the groff distribution.
9131 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9133 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9134 * aclocal.a4: Remove GROFF_GETOPT function.
9135 * configure.in, Makefile.in, PROBLEMS: Update.
9136 * src/include/lib.h: Replace getopt tests with getopt.h.
9137 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9139 * doc/groff.texinfo: Further checking/updating. Adding more index
9142 * man/groff_out.man: Fix nroff mode activation (for emacs).
9143 * man/groff_font.man: Add missing ligature.
9145 2000-02-28 Werner LEMBERG <wl@gnu.org>
9147 * doc/groff.texinfo: Further checking/updating. Adding more index
9150 * src/devices/grolbp/grolbp.man: Added a comment line at the
9151 beginning of the file (similar to shell scripts) which indicates
9152 that `tbl' should be used as a preprocessor.
9154 2000-02-27 Blake McBride <blake@florida-software.com>
9156 Adapting groff to MS Visual C++ 6.0 compiler (tested with
9157 Windows NT 4.0). Uses _MSC_VER define where necessary.
9159 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9160 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9161 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9162 src/include/lib.h, src/libs/libgroff/errarg.cc,
9163 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9164 src/preproc/refer/label.y, src/preproc/refer/label.cc,
9165 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9166 src/roff/troff/div.cc, src/roff/troff/env.cc,
9167 src/roff/troff/input.cc, src/roff/troff/node.cc,
9168 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9169 if_to_a() to avoid name clashes.
9170 * src/include/posix.h: Don't use unistd.h.
9171 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9172 clause for integrating non-Unix xtmpfile() code.
9173 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9174 structure; use "rt" for popen() in pipe_source(); add getpid()
9176 * src/roff/troff/node.cc: Use special versions of popen() in
9177 real_output_file() and pclose() in ~real_output_file().
9179 2000-02-27 Werner LEMBERG <wl@gnu.org>
9181 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9182 LBP-8 series laser printers). This code has been contributed by
9183 Francisco Andrés Verdú <pandres@dragonet.es>.
9185 * src/devices/grolbp/*: The grolbp output device.
9186 * font/devlpb/*: The font description files.
9187 * Makefile.in: Add grolpb and devlbp subdirectories.
9189 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9190 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9193 * doc/groff.texinfo: Further checking/updating. Adding more index
9198 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9200 * man/groff_font.man: Adding info about obsolete DESC keywords.
9201 * src/devices/grolj4/grolj4.man: Documenting additional DESC
9204 2000-02-26 Werner LEMBERG <wl@gnu.org>
9206 * src/preproc/grn/grn.man: Added info about the gremlin file format
9207 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9209 2000-02-25 Werner LEMBERG <wl@gnu.org>
9211 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9212 friends to be non-integer.
9214 * src/preproc/grn/grn.man: Document it.
9216 * doc/groff.texinfo: Further checking/updating. Adding more index
9219 2000-02-24 Werner LEMBERG <wl@gnu.org>
9221 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9222 line thicknesses to be integer multiples of this value.
9224 * src/preproc/grn/grn.man: Commenting out the -s option -- the
9225 corresponding code doesn't work (yet).
9227 * doc/groff.texinfo: Further checking/updating. Adding more index
9230 2000-02-23 Werner LEMBERG <wl@gnu.org>
9232 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9233 specify line thickness instead of base units. The new default
9234 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9235 thick lines respectively.
9237 Removed unused variable `prevval'.
9239 * src/preproc/grn/grn.man: Updated.
9241 2000-02-22 Werner LEMBERG <wl@gnu.org>
9243 * src/preproc/grn/main.cc: Slight formatting.
9245 * src/roff/groff/groff.man: Formatting fix.
9246 * src/preproc/grn/grn.man: Ditto.
9248 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9250 * doc/groff.texinfo: Further checking/updating.
9252 2000-02-21 Werner LEMBERG <wl@gnu.org>
9254 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9256 * test-groff: Added grn subdir to path.
9258 * doc/groff.texinfo: Some restructing and other small improvements.
9260 * src/roff/groff/groff.cc (help): Fixed info string.
9262 2000-02-20 Werner LEMBERG <wl@gnu.org>
9264 * doc/meref.me: Fix description of .GS request.
9266 * src/roff/troff/troff.man: Fixing typo.
9268 Adding the `grn' preprocessor for gremlin graphic files.
9270 * src/preproc/grn/*: This is the Berkeley distribution written by
9271 David Slattengren and Barry Roitblat, adapted to groff by Daniel
9272 Senderowicz and Werner Lemberg.
9274 * doc/grnexampl.{me,g}: A sample for grn.
9276 * Makefile.in: Added subdirectory entry for grn.
9278 * src/roff/groff/groff.cc: Added support for grn. It can be now
9279 called with the switch `-g'.
9281 * src/roff/groff/groff.man: Updated.
9283 * src/roff/grog/grog.{man,pl,sh}: Updated.
9287 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
9289 * src/include/lib.h: Added xtmptemplate and made xtmpfile
9290 parametrically polymorphic.
9292 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9293 and the alterations to xtmpfile.
9294 xtmpfile can be requested to return the filename created
9295 and asked not to unlink the temp file. The default behaviour
9296 if parameters are absent is exactly the same as before.
9298 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
9300 A new request `length' is available which returns the length of a
9301 string in a number register:
9303 * src/roff/troff/input.cc (length_macro): Implement it.
9304 * src/roff/troff/input.cc (init_input_requests): Register it.
9306 2000-02-11 Werner LEMBERG <wl@gnu.org>
9308 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9309 of the `substring' request.
9311 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9314 * src/roff/troff/TODO, NEWS: Updated.
9316 2000-02-09 Werner LEMBERG <wl@gnu.org>
9318 * src/roff/groff/groff.man: Added an example.
9320 2000-02-06 Werner LEMBERG <wl@gnu.org>
9322 I've considerably modified the directory structure of the
9323 distribution to get a more vertical layout. For example, the number
9324 of top level directories has been reduced from 42 to 6.
9326 As a consequence, many changes, especially to the makefiles, were
9329 * The makefile variables `top_builddir' and `top_srcdir' have been
9330 introduced. Virtually all relative paths have been replaced with
9331 absolute ones using these two variables.
9333 * Dependencies (in the files `Makefile.dep') are no longer part of
9334 the distribution. Instead, they are created during a `make install'
9335 in the build directory.
9337 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9338 make `top_srcdir' and `top_builddir' absolute.
9342 * Man pages now depend on the files `VERSION' and `REVISION'.
9344 * The added shell script `mkinstalldirs' will replace `mkdir' in
9347 * VERSION: Version number increased to 1.16.
9349 2000-02-04 Werner LEMBERG <wl@gnu.org>
9351 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9353 * Makefile.in: Removed $(tmac_m) since it is no longer needed
9354 (after an update of the mm stuff).
9356 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9358 2000-02-03 Werner LEMBERG <wl@gnu.org>
9360 The .psbb request will now also accept Mac PS images (i.e. using LF
9361 as the EOL character).
9363 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9364 (with slight modifications).
9365 * troff/input.cc (do_ps_file): Use it.
9367 * test-groff: Add grohtml and grolj4 output devices to PATH.
9369 2000-01-30 Werner LEMBERG <wl@gnu.org>
9371 * NEWS, MORE.STUFF: Updated.
9373 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
9375 Add the `srand' command to pic.
9377 * pic/lex.cc, pic/pic.y: Implement it.
9378 * pic/pic.man: Document it.
9379 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9381 2000-01-30 Werner LEMBERG <wl@gnu.org>
9383 Add a new request `.psbb'. This does exactly what the external
9384 program psbb did. It scans a PostScript image file for a
9385 %%BoundingBox comment and extracts the bounding box values (in
9386 PostScript units) which are then stored in the four new (read-only)
9387 number registers `llx', `lly', `urx', and `ury'.
9389 This will allow the usage of the .PSPIC macro without worrying
9390 about unsafe behaviour of groff, i.e., it will work without the
9391 `-U' switch of groff.
9393 * troff/input.cc: Implement it.
9394 * tmac/tmac.pspic: Use it.
9395 * troff/troff.man, grops/grops.man, NEWS: Document it.
9396 * psbb/*, Makefile.in: Remove it since it is no longer needed.
9398 This is bloody C code simply adapted from psbb.c! Any improvements
9401 2000-01-29 Werner LEMBERG <wl@gnu.org>
9403 * man/groff_font.man: Minor clarifications.
9407 2000-01-28 Werner LEMBERG <wl@gnu.org>
9409 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9411 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
9413 * man/groff_font.man: Brought up to date regarding tcommand
9415 * libgroff/font.cc: Handle everything after `--' as a comment
9417 * devps/*: Added comment delimiter inside devps font files.
9419 2000-01-28 Werner LEMBERG <wl@gnu.org>
9421 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9422 \fC...\fP (which now works as expected).
9424 * troff/troff.man: Fix typo.
9426 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
9428 Completed the pass_filenames implementation in troff.
9430 * libdriver/input.cc: Will read the new `F' tcommand.
9431 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9432 * troff/input.cc: Use it.
9434 2000-01-26 Werner LEMBERG <wl@gnu.org>
9436 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
9437 font will now be updated even if an invalid font is selected.
9439 2000-01-24 Werner LEMBERG <wl@gnu.org>
9441 * doc/homepage.ms: Updated for new tmac.arkup.
9443 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9445 * tmac/tmac.arkup: Cleanup.
9447 Added `\&' to .HTML macro to `leave vertical mode', so to say.
9449 Removed obsolete .LINK macro completely.
9451 The macros .URL, .FTP, and .MAILTO now accept a third argument which
9452 will be immediately appended to the second argument (to be used with
9453 punctuation, for example).
9455 Disabled .CDFTP macro temporarily for security reasons.
9457 * tmac/groff_markup.man: Complete revision for latest changes in
9458 tmac.arkup -- note that it does not yet format correctly with
9461 2000-01-23 Bruno Haible <haible@clisp.cons.org>
9463 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9464 * devutf8/R.proto: Add mappings for wp, lh, rh.
9465 * devutf8/NOTES: Updated.
9467 2000-01-23 Werner LEMBERG <wl@gnu.org>
9469 * doc/groff.texinfo: Updated version/copyright info.
9471 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
9473 Added support for two new directives in device descriptions:
9474 `pass_filenames' (to pass the input file name to the output device)
9475 and `use_charnames_in_special' (to support e.g. accented characters
9476 in the `X' request).
9478 * include/font.h, troff/charinfo.h: Declare it.
9480 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9482 * devhtml/DESC: Use it.
9484 * troff/input.cc: New function encoded_char.
9486 * troff/token.h: Add test for `specialness'.
9488 2000-01-21 Werner LEMBERG <wl@gnu.org>
9490 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9491 mistake from the list of files to be installed.
9493 2000-01-18 Werner LEMBERG <wl@gnu.org>
9495 * README: Added info how to apply patches.
9497 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
9499 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
9501 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
9503 * troff/input.cc: Add support for troffrc-end.
9505 * tbl/main.cc: Altered to issue table-start and table-end special
9506 characters if using the html device.
9508 * devhtml/*: Modified font files to incorporate html encoding of
9511 * tmac/groff_markup.man: New file documenting tmac.arkup.
9513 * tmac/troffrc-end: New file. This is invoked after all user
9514 specified macros. Currently used by the html device to include
9515 tmac.html. Thus no need for users to specify -mhtml anymore.
9517 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9518 (MAN7): Add groff_markup.man.
9520 * tmac/tmac.an, tmac/tmac.html: Small html updates.
9522 * tmac/troffrc: tmac.arkup will now be called for the html device.
9524 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9525 extra device specific information about fonts.
9527 * doc/homepage.ms: New file. It is an example how an HTML home page
9528 could look like with grohtml.
9530 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
9532 2000-01-12 Bruno Haible <haible@clisp.cons.org>
9534 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
9537 * devutf8/NOTES: Updated.
9539 2000-01-08 Bruno Haible <haible@clisp.cons.org>
9541 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9542 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9543 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9544 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9545 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9546 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9547 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9548 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9551 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9553 2000-01-12 Fabrizio Polacco <fab@prosa.it>
9555 grolj4: Paper size will be searched case-insensitively.
9557 * include/lib.h: Add check for strcasecmp().
9558 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9559 * configure.in: Check for strcasecmp().
9561 2000-01-11 Werner LEMBERG <wl@gnu.org>
9563 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9566 2000-01-10 Werner LEMBERG <wl@gnu.org>
9568 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9571 Add a new read-only register, `.Y', which contains the groff
9574 * troff/input.cc (init_input_requests): Define it.
9575 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9576 * doc/groff.texinfo, troff/troff.man: Document it.
9578 * libgroff/Makefile.sub (version.cc): Add definition of
9579 `Version_string[]', consisting of `<major>.<minor>.<revision>'
9580 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9581 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9582 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9583 troff/input.cc, pfbtops/pfbtops.c: Use it.
9585 2000-01-10 Fabrizio Polacco <fab@prosa.it>
9587 Add a revision scheme to the groff package.
9589 * REVISION: New file.
9590 * libgroff/Makefile.sub (version.cc): Use it to define
9591 `revision_string[]'.
9592 * grops/psrm.cc: Use revision_string (converted to an unsigned
9593 integer) in constructor of resource_manager.
9595 2000-01-10 Bruno Haible <haible@clisp.cons.org>
9597 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9599 * Makefile.in (DEVDIRS): Add devutf8.
9600 * grotty/tty.cc: Include device.h.
9601 (glyph): Change type of `code' to `unsigned int'.
9602 (tty_printer): New field is_utf8. Constructor takes device argument.
9603 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9604 (tty_printer::add_char): Change type of first arg to `unsigned int'.
9605 (tty_printer::put_char): New function.
9606 (tty_printer::end_page): Use put_char() instead of ::putchar().
9607 (make_printer): Pass device to tty_printer constructor.
9608 * nroff.sh: Determine default device by calling 'locale'. As a
9609 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9610 Recognize UTF-8 locales.
9611 * tmac/eqnrc: Recognize utf8 like latin1.
9612 * tmac/troffrc: Device utf8 needs tmac.tty.
9614 2000-01-07 Werner LEMBERG <wl@gnu.org>
9616 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9618 2000-01-07 Paul Eggert <eggert@twinsun.com>
9620 Add a new predefined writeable number register, `year',
9621 which contains the current year.
9623 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9624 * tmac/tmac.s: Use it.
9625 * troff/input.cc (init_registers): Initialize it.
9627 2000-01-06 Werner LEMBERG <wl@gnu.org>
9629 * PROBLEMS: Fixed typo.
9631 2000-01-04 Paul Eggert <eggert@twinsun.com>
9633 * PROBLEMS: Add Y2k advice for the yr number register.
9635 2000-01-03 Paul Eggert <eggert@twinsun.com>
9637 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9639 2000-01-02 Werner LEMBERG <wl@gnu.org>
9641 * tmac/tmac.arkup: Slight modification of macros to provide better
9642 appearance for non-HTML formats.
9644 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
9646 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9647 does not automatically translate to malloc(n) on all OSes
9648 (e.g., SunOS) so do it explicitly. Also, check the returned
9651 2000-01-01 Werner LEMBERG <wl@gnu.org>
9653 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
9655 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9656 expects this variable
9658 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
9660 * doc/Makefile: Added instructions to create HTML and text
9661 versions of some files.
9663 1999-12-31 Werner LEMBERG <wl@gnu.org>
9665 * Updated INSTALL.gen.
9667 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9668 better resp. correctly with non-HTML devices.
9670 Version 1.15 released
9671 =====================
9673 1999-12-28 Werner LEMBERG <wl@gnu.org>
9675 * NEWS, VERSION: Changed to 1.15
9677 1999-12-27 Paul Eggert <eggert@twinsun.com>
9679 * nroff/nroff.man: -S is safer, not safe.
9681 * groff/groff.cc (main): Use `safer', not `safe', in variable
9682 names. This does not change the behavior.
9684 * troff/input.cc (main): Likewise.
9686 * nroff/nroff.sh: Likewise.
9688 * troff/input.cc (prepend_string): New function.
9689 (main): Prepend -msafer, so that we check macro libraries for
9692 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9694 Version 1.14 released
9695 =====================
9697 1999-12-26 Werner LEMBERG <wl@gnu.org>
9699 * NEWS, VERSION: Changed to 1.14.
9701 1999-12-24 Werner LEMBERG <wl@gnu.org>
9703 * refer/refer.cc: Fixing the last fix.
9705 Version 1.13 released
9706 =====================
9708 1999-12-23 Werner LEMBERG <wl@gnu.org>
9710 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9715 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9717 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9718 document conventions, the version number must be a real.
9720 Version 1.12.1 released
9721 =======================
9723 1999-12-22 Werner LEMBERG <wl@gnu.org>
9725 * VERSION: Changed to 1.12.1.
9727 1999-12-22 Alan Rooks <arooks@istar.ca>
9729 * refer/refer.cc (do_file): Slight modification to satisfy the
9730 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9733 1999-12-20 Werner LEMBERG <wl@gnu.org>
9735 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9738 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9739 list of unsafe requests.
9741 * pic/pic.man: Fixed a typo.
9743 * man/groff_out.man: Fixed a typo.
9745 1999-12-18 Werner LEMBERG <wl@gnu.org>
9747 * Makefile.in: Doc fixes.
9749 1999-12-17 Fabrizio Polacco <fab@prosa.it>
9751 * groff/groff.cc: Missing `U' option added to getopt().
9753 * troff/troff.man: Missing `U' option added to synopsis.
9755 Version 1.12 released
9756 =====================
9758 1999-12-14 Werner LEMBERG <wl@gnu.org>
9760 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9763 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9764 with the more appropriate terms `safer' and `unsafe'.
9766 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9767 sys_nerr and sys_errlist[].
9769 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9771 * pic/pic.y, pic/pic.cc: Added check for fmod().
9773 1999-12-13 Werner LEMBERG <wl@gnu.org>
9775 * VERSION: Changed to 1.12.
9777 Here some patches from various sources; most of them taken from
9778 the Debian distribution.
9780 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9781 tmac/Makefile.sub: New files copied directly from the NetBSD
9782 distribution. Probably, some additional adaptation later on is
9785 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9788 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9789 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9790 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
9791 (`-S') is now the default.
9793 * README, NEWS: Updated.
9795 1999-12-09 Werner LEMBERG <wl@gnu.org>
9797 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9799 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9801 1999-12-06 Werner LEMBERG <wl@gnu.org>
9803 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9804 grief than relief today. Additionally, it is against the GNU
9807 * configure: Recreated.
9809 1999-12-05 Werner LEMBERG <wl@gnu.org>
9811 * configure.in: Added GROFF_LIBM.
9813 * configure: Recreated.
9815 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
9818 * Makefile.in: Added definition of $(LIBM).
9820 * Makefile.comm (LIBM): Removed.
9822 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
9824 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
9826 * doc/Makefile: Added rule for generation pic.html.
9828 (clean): Files produced by grohtml will be removed also.
9830 * doc/pic.ms: Small fix.
9832 * tmac/tmac.html: Fixed suppression of headers.
9834 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
9836 * tmac/tmac.html: Fixing horizontal arrows.
9838 Turning off hyphenation.
9840 * tmac/tmac.an: Improved support for grohtml; better indentation,
9843 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
9845 * tmac/tmac.arkup: Added CDFTP macro
9847 * tmac/tmac.html: All headers are turned off for ms, me, and mm
9850 * tmac/troffrc: Some additions for HTML stuff.
9852 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
9854 * tmac/tmac.html: Small changes.
9856 1999-09-26 Werner LEMBERG <wl@gnu.org>
9858 * doc/groff.texinfo: Minor fixes.
9860 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
9862 * devhtml/TR: Changed spacewidth to 3.
9864 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
9866 * tmac/tmac.html: Moved markup macros to tmap.arkup.
9868 * tmac/tmac.arkup: New file.
9870 * grohtml/ChangeLog: New file.
9872 1999-09-16 Werner LEMBERG <wl@gnu.org>
9874 * doc/groff.texinfo (Common Features): Added Copying chapter.
9875 Changed format to @smallbook.
9877 1999-09-15 Werner LEMBERG <wl@gnu.org>
9879 * NEWS: Added info about groff.texinfo.
9881 * doc/groff.texinfo: Will now compile (using texi2dvi) without
9884 1999-09-14 Werner LEMBERG <wl@gnu.org>
9886 * groff/groff.man: More updates.
9888 1999-09-13 Werner LEMBERG <wl@gnu.org>
9890 * doc/groff.texinfo: New file. This manual is still very
9891 rudimentary. It has been originally contributed by Trent
9892 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
9895 * INSTALL: Added information about the `doc' subdir
9897 * troff/troff.man: Minor fixes.
9899 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
9902 * troff/input.cc (usage): Added missing `-ffam' to usage message.
9904 * Makefile.in (dist): groff-$(version).tar.gz must be removed
9905 also, otherwise it is included itself in another call of `make
9908 * groff/groff.cc (synopsis): Removed superfluous space.
9910 * PROJECTS, PROBLEMS, NEWS: Updated.
9912 * VERSION: Updated to 1.12beta.
9914 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
9916 * README: Updated: Included documentation about CVS repository,
9917 mailing lists, and daily snapshots.
9919 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
9921 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
9923 * tmac/tmac.an: If the tag didn't fit into the space that the
9924 macro `TP' specifies, the rest of the tag went into the space for
9927 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
9929 * grolj4/lj4.cc: Added duplex printing (option `-d').
9931 * grolj4/grolj4.man: Document duplex printing.
9933 1999-09-12 Werner LEMBERG <wl@gnu.org>
9935 * doc/Makefile (pic.ps): Fixed rule which caused problems with
9936 non-GNUish sed programs.
9938 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
9941 * configure.in (LIBS): Added `-lc'
9943 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
9945 * pic/tex.cc (solid_arc): Casting M_PI to double.
9947 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
9949 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
9950 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
9951 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
9953 * groff/groff_man.man: New file. This manual page was originally
9954 written for the Debian GNU/Linux system by Susan G. Kleinmann
9957 * eqn/list.cc (list_box::compute_metrics,
9958 list_box::compute_sublist_width): Removed variable declaration to
9959 avoid shadowing warnings.
9961 * grops/psrm.cc (resource_manager::process_file): Ditto.
9963 * tfmtodit/tfmtodit.cc (main): Ditto.
9965 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
9966 to avoid shadowing warnings.
9968 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
9969 shadowing loop variable.
9971 * groff/groff.man, troff/troff.man: Added doc about grohtml.
9973 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
9975 New grohtml frontend to convert groff input to html.
9977 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
9979 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
9981 * tmac/eqnrc: Added html device.
9983 * tmac/tmac.html: New file.
9985 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
9986 (troff_output::start_picture, troff_output::finish_picture),
9987 tbl/main.cc (process_input_file):
9988 Surrounded output with `graphics_start' and `graphics_end' so that
9989 the html driver can identify non-text portions.
9991 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
9992 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
9993 grotty/tty.ps (tty_printer::set_char): Additional parameter
9996 * include/printer.h: Class printer: New function
9997 set_char_and_width; new variables (is_char_named, is_named_set,
9998 named_command, named_char_s, named_char_n) to hold information
9999 about named characters -- needed by the html driver.
10001 * libdriver/printer.cc (printer::set_ascii_char,
10002 printer::set_special_char): Use set_char_and_width.
10004 * devhtml/*: New device files for html driver.
10006 * grohtml/*: New driver grohtml.
10008 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
10010 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10013 1999-09-11 Luke Mewburn <lukem@netbsd.org>
10015 * libgroff/string.cc (search): Small fix to test against NULL
10018 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
10020 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10021 \b'abc') were stacked in reverse order when processed in a
10024 * troff/node.h: Added `*last' to struct `node' to make the above
10027 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10028 The default scale for the 'f' and 't' graphics functions were 'm'
10029 rather than 'u' (i.e., no scaling).
10031 1999-09-11 Peter Miller <peterm@jna.com.au>
10033 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10034 do_file), soelim/soelim.man: Added `-I file' option to soelim,
10035 defining include paths.
10037 * soelim/soelim.cc (include_path_append): New function.
10039 1999-09-11 Larry Jones <larry.jones@sdrc.com>
10041 * tbl/main.cc (process_options): Unix (at least Documenter's
10042 Workbench) tbl allows arbitrary non-alpha characters between
10045 1999-09-11 Paul Eggert <eggert@twinsun.com>
10047 Y2k fixes. Don't assume that the current year precedes 2000.
10049 * doc/meref.me: Add \n(y2, \n(y4.
10051 * tmac/doc-common (Yr): New number register.
10052 (Dd): Don't assume current year precedes 2000.
10054 * tmac/tmac.e (td): Likewise.
10055 (y2, y4): New number registers.
10057 * pic/pic.man: Update reference for pic paper to May, 1991
10060 1999-09-11 Werner LEMBERG <wl@gnu.org>
10062 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10063 Removed quotation marks which prevented correct expansion of
10066 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
10068 1999-09-10 Werner LEMBERG <wl@gnu.org>
10070 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
10073 * Removed configure.old.
10075 1999-08-31 Werner LEMBERG <wl@gnu.org>
10077 * VERSION: Updated to 1.11.1
10079 1999-05-27 Werner LEMBERG <wl@gnu.org>
10081 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
10083 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10084 added quotations around $(tmac_wrap) to avoid syntax error if
10087 * configure: Newly generated using autoconf 2.13.
10089 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
10091 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
10093 * README, PROJECTS, NEWS, INSTALL, VERSION,
10094 doc/Makefile. doc/pic.ms, groff/groff.man:
10095 Prepare for 1.11 release. No code changes.
10096 Documentation for pic added (doc/pic.ms).
10098 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
10100 * Version 1.10 released.
10102 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
10104 * afmtodit/afmtodit.pl: Avoid comment on first line.
10106 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
10108 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
10109 * configure.in: Call it.
10111 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
10112 (distfiles): Doesn't depend on config.log or config.cache.
10114 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
10116 * grog/grog.sh: Use print "" rather than print in END rule.
10118 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
10120 * tbl/main.cc (process_data): Don't give error for excess data
10121 entries that are comments.
10123 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
10125 * tbl/main.cc (process_data): Fix case where new for-scope rules
10126 silently change meaning of code.
10128 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
10130 * troff/env.cc (hyphenate): Loop over all consecutive sequences
10131 of non-zero hyphenation codes.
10133 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
10135 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10137 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
10139 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10141 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
10143 * tmac/tmac.andoc: Make it work in compatibility mode.
10145 * refer/token.h (token_info::is_range_sep): New function.
10146 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
10147 * refer/ref.cc (reference::output): More sophisticated check for
10150 * devps/prologue.ps (MANUAL): New procedure.
10151 * grops/ps.cc (main): New -m option.
10152 (usage): Include -m.
10153 (ps_printer::~ps_printer): Implement -m.
10155 * aclocal.m4 (GROFF_G): New macro.
10156 * configure.in: Call it.
10157 * Makefile.in (g): Provided by configure.
10159 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10161 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
10164 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10165 (tmac_m, tmac_s): Deleted.
10166 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10167 tmac_s_prefix): New variables.
10168 (MDEFINES): Change accordingly.
10169 * Makefile.comm (.man.n): Use new TMAC_* variables.
10170 * configure.in (GROFF_TMAC): Call.
10171 * aclocal.m4 (GROFF_TMAC): Define.
10172 * tmac/Makefile.sub (stamp_wrap): New target.
10173 (install_data, uninstall_sub): Handle macro wrapping.
10175 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
10177 * tbl/main.cc (main): Ignore -T option.
10179 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
10181 * devlj4/generate/special.map: Add definition of \(nb.
10183 * tmac/tmac.dvi: Add definition of \(nb.
10185 * troff/dictionary.c (dictionary::dictionary): association::v gets
10186 initialized by association::association.
10188 * tmac/Makefile.sub: Avoid using temporary files when installing.
10190 * troff/env.cc (environment::set_font): Make bad font number a
10193 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10195 * Makefile.in (datadir): Use share rather than lib.
10197 * groff/groff.cc (basename): Rename to xbasename.
10199 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
10201 * Makefile (CCLIBS): Don't use.
10202 * Makefile.ccpg: Likewise.
10204 * acgroff.m4: Rename to...
10205 * aclocal.m4: Modify extensively for autoconf 2.
10206 * configure.in: Likewise.
10207 * Makefile.in: Likewise.
10209 * groff/pipeline.c (const): Declare as empty if __STDC__ not
10211 (xstrsignal): Check for definition of NSIG. Conditionalize
10212 on SYS_SIGLIST_DECLARED. Make return type const.
10214 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
10216 * troff/input.cc (interpolate_macro): Rephrase missing space
10219 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10221 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10222 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10223 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10224 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10225 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10226 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10227 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10228 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10229 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10230 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10231 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10234 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
10236 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10238 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10240 (macro_iterator::macro_iterator): Add additional argument.
10242 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
10244 * troff/div.cc (vertical_size::vertical_size): In place of integer
10245 specifying line spacing use cunits specifying post vertical
10247 (macro_diversion::output, top_level_diversion::output): Likewise.
10248 * troff/div.h: Change declarations accordingly.
10249 * troff/env.cc (pending_output_line): Replace ls field by post_vs
10251 (pending_output_line::pending_output_line,
10252 pending_output_line::output, environment::output,
10253 environment::output_line, environment::output_title,
10254 environment::hyphenate_line): In place of
10255 integer specifying line spacing use cunits specifying post vertical
10257 (environment::environment): Add post_vertical_spacing and
10258 prev_post_vertical_spacing arguments.
10259 (environment::get_post_vertical_spacing): New function.
10260 (environment::total_post_vertical_spacing): New function.
10261 (environment::post_vertical_spacing): New function.
10262 (init_env_requests): Initialize pvs request and .pvs register.
10263 * troff/env.h: Change declarations.
10265 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
10267 * tmac/tmac.pspic: Immediately remove the temporary file.
10269 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
10271 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10272 height is specified.
10274 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
10276 * tbl/table.c (struct vertical rule, class table_entry): Use int
10277 not short for start_row and end_row.
10279 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
10281 * troff/input.cc (trapping_blank_line, blank_line_macro): New
10283 (diverted_space_node::reread, process_input_stack): Call
10284 trapping_blank_line() rather than blank_line().
10285 (init_input_requests): Bind "blm" to blank_line_macro().
10287 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10289 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
10291 * troff/env.cc (environment::possibly_break_line): Require that
10292 width total excluding width of final space node be greater than
10293 the target text length.
10295 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
10297 * troff/node.cc (kern_pair_node::vertical_extent): New function.
10299 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
10301 * troff/node.cc (charinfo_node): New class.
10302 (glyph_node, composite_node): Derive from charinfo_node. Change
10303 member functions accordingly.
10305 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
10307 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10309 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
10311 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10313 * devps/generate/textmap (notsubset): Add.
10315 * tmac/tmac.a4: New file.
10317 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
10319 * pic/main.cc (had_parse_error): New variable.
10320 (do_picture, do_whole_file): Set had_parse_error if yyparse()
10322 (main): Return 1 if had_parse_error is true.
10324 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
10326 * grolj4/lj4.cc (main): Avoid use of strtoul.
10328 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
10330 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10331 iso_8859_1 or $LESSCHARSET is latin1.
10333 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
10335 * hpftodit: New directory.
10336 * Makefile.in (CCPROGDIRS): Add hpftodit.
10337 * devlj4/generate: New directory.
10339 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
10341 * configure.in: Don't use AC_VFORK.
10342 * groff/pipeline.c (run_pipeline): Use fork() always.
10344 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
10346 * grops/ps.cc (main): Use %1 not %s in error message for -w.
10348 * Makefile.in (CCPROGDIRS): Add grolj4.
10349 (DEVDIRS): Add devlj4.
10350 * grolj4, devlj4: New directories.
10351 * tmac/troffrc: Handle lj4.
10352 * tmac/tmac.lj4: New file.
10354 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
10356 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10358 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
10360 * troff/input.cc (do_if_request): At end of second string, switch
10361 environments before getting next token.
10363 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
10365 * devps/psstrip.sed: Split rule that strips whitespace on either
10366 side of delimiters.
10368 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
10370 * troff/node.h (font_family::make_definition): Add return value to
10371 declaration. * troff/symbol.h (symbol::operator==,
10372 symbol::operator!=): Likewise.
10374 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
10376 * groff/groff.cc (main, help, synopsis): Handle -S.
10377 (possible_command::insert_arg): New function.
10379 * tmac/tmac.safer: New file.
10380 * tmac/msafer.man: New file.
10381 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10383 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
10385 * pic/pic.h, pic/main.cc (safer_flag): New variable.
10386 * pic/pic.y (placeless_element): Avoid unsafe operations if
10387 `safer_flag' is set.
10388 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10390 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
10392 * eqn/lex.cc (get_token): Put call to add_context() in block to
10393 work around Sun C++ 4.0 bug.
10395 * include/stringclass.h (operator +): Use ?: instead of `if' to
10396 work around Sun C++ 4.0 bug.
10398 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
10400 * tbl/main.cc (process_format): Accept - as a synonym for the _
10403 * libbib/index.cc (minus_one): Don't declare as const.
10405 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
10407 * troff/input.cc (get_char_for_escape_name): Push back a newline.
10409 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
10411 * troff/input.cc (write_macro_request): New function.
10412 (init_input_requests): Bind write_macro_request to writem.
10414 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
10416 * tmac/tmac.s (@EN): Turn filling back on even if there was no
10419 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10421 * tmac/tmac.s (@TS): Renamed from TS.
10422 (TS): Call LP then TS again.
10423 (cov*ab-init): Alias @TS to TS.
10425 * tmac/tmac.s: Allow QP or RS to initialize.
10427 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
10428 Move initializations of PS and LL here.
10429 (par@init): Don't initialize HY. Avoid changing environment 0.
10430 (par*env-init): Don't all par@reset.
10432 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
10434 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10436 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
10438 * Makefile.in (MDEFINES): Add LDFLAGS.
10439 (LDFLAGS): Add definition line.
10441 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
10443 * troff/input.cc (get_optional_char): Split off error check into...
10444 (check_missing_character): New function.
10445 * troff/token.h: Declare it.
10446 * troff/env.cc (margin_character): Don't call get_optional_char.
10447 Only call tok.next() after making the node.
10449 * include/lib.h (getopt): Make 2nd argument char *const *.
10451 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
10453 * nroff/conftest.sh: Deleted.
10455 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
10457 * pic/make-dos-dist: Deleted.
10459 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
10461 * devps/psstrip.sed: Strip comments before stripping trailing
10464 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
10466 * Version 1.09 released.
10468 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
10470 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10472 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
10474 * libgroff/font.cc (font::load_desc): Fix typo in error message.
10476 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
10478 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10479 about returning without a value.
10481 * troff/charinfo.h (charinfo::get_special_translation): Cast
10482 TRANSLATE_NONE to int.
10484 * refer/token.cc (lookup_token, store_token): Remove bogus loop
10485 test. Fix test so that it works with n unsigned.
10487 * pic/pic.y (defaults_table): Fully bracket initializer.
10488 * pic/lex.cc (lookup_keyword): Likewise.
10489 * eqn/lex.cc (token_table, def_table): Likewise.
10490 * eqn/box.cc (param_table): Likewise.
10491 * troff/input.cc (warning_table): Likewise.
10492 * libgroff/font.cc (table): Likewise.
10493 * grops/ps.cc (ps_printer::special): Likewise.
10494 * grops/psrm.cc (resource_manager::process_file): Likewise.
10495 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10496 * refer/command.cc (command_table): Likewise.
10497 * addftinfo/addftinfo.cc (param_table): Likewise.
10499 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10500 about temp's being unused.
10501 (unused): New function.
10503 * groff/pipeline.cc: Declare c_fatal.
10505 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10508 * libbib/index.cc (index_search_item::load): Prevent compiler
10509 warnings about fd_closer's being unused.
10510 (unused): New function.
10512 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
10514 * troff/input.cc (copy_mode_error): Make `prefix' static.
10517 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10519 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10520 HAVE_CC_OSFCN_H and modify accordingly.
10522 * troff/input.cc (init_charset_table): radicalex overlaps
10525 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10526 udodo!hans@relay.NL.net).
10527 * groff/configure.in: Call it.
10529 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10530 * groff/configure.in: Call it.
10531 * include/lib.h: Conditionalize declaration of pclose.
10533 * troff/div.cc (last_page_number): New global variable.
10534 (top_level_diversion::begin_page): Exit if we just printed the
10536 * troff/div.h (last_page_number): Declare it.
10537 * troff/input.cc (parse_output_page_list): Set last_page_number.
10539 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10540 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10541 tmac/tmac.X: Likewise.
10542 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10543 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10545 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
10547 * tmac/doc-ditroff (hK): Remove groff specific code which
10548 prevented page-breaks between separate manual entries. If this is
10549 the first page, don't set the page number to 1.
10551 * acgroff.m4 (GROFF_POSIX): New macro.
10552 * configure.in: Use it.
10554 * troff/node.cc (class real_output_file,
10555 real_output_file::real_output_file,
10556 real_output_file::~real_output_file): Conditionalize use of
10557 popen/pclose on POPEN_MISSING.
10558 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10559 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10560 (pipe_source): Similarily.
10562 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10564 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10565 presence of declarations by trying to compile example with
10566 conflicting declarations. (gcc only gives a warning for missing
10569 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
10571 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10572 (from Ulrich Lauther).
10574 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
10576 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10578 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
10580 * indxbib/indxbib.cc (write_hash_table): Add code for case where
10581 pointers and ints have different sizes.
10583 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
10585 * tmac/tmac.s (par*env-init): Call par@reset.
10587 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
10589 * tmac/tmac.s (@IP): Switch to a new environment when diverting
10591 (par*push-tag-env, par*pop-tag-env): New macros.
10593 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
10595 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10596 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
10598 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10599 comment. Include <time.h>.
10601 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
10603 * grops/ps.cc (is_small_h, is_small_v): Deleted.
10604 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10607 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
10609 * troff/input.cc (read_request): Only print a prompt if reading
10610 from the terminal. Also clearerr on EOF if reading from the
10611 terminal. Declare isatty.
10613 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
10615 * refer/label.y: Rename map_t to map_func and extractor_t to
10618 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
10620 * include/assert.h: Don't use volatile.
10621 * libgroff/assert.cc: Likewise.
10623 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
10625 * troff/input.cc (abort_request): Look at character in tok before
10626 calling get_copy().
10628 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
10630 * troff/troff.h (NO_RETURN): Deleted.
10631 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
10632 * troff/input.cc (exit_troff): Likewise
10634 * Makefile.in: Remove `Making ...' messages since GNU make now
10637 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10639 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
10641 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10642 to constant 1 inch.
10644 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
10646 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10648 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
10650 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10651 MARK_REG if there was no left delimiter.
10653 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
10655 * pic/troff.cc (troff_output::text): Set line thickness to
10656 relative before outputting text.
10658 * tmac/tmac.e (@k): Don't zero ?T.
10661 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
10663 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10665 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
10667 * troff/input.cc (decode_args): Warn about unquoted tabs (from
10670 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
10672 * troff/input.cc (ignoring): New variable.
10673 (ignore): Set ignoring during call to do_define_macro.
10674 (do_define_macro): Clear ignoring before interpolating terminating
10676 (copy_mode_error): New function.
10677 (get_char_for_escape_name, read_long_escape_name,
10678 interpolate_arg): Use copy_mode_error.
10679 (warning_table): Add WARN_IG.
10680 * troff/troff.h (WARN_IG): Declare.
10681 (WARN_TOTAL): Change accordingly.
10683 * groff/pipeline.c (strsignal): Rename to xstrsignal.
10684 * groff/groff.cc (strsignal): Delete declaration.
10686 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
10688 * troff/div.cc (page_offset): Use 'm' as default scaling.
10690 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
10692 * nroff/nroff.sh: Ignore -u.
10694 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
10696 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10698 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
10700 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10702 (B2): With -Tascii, leave additional vertical space before
10703 and after. Ensure that the left and right indent is restored to
10704 what it was even if the point size changes. Don't call
10705 par@finish. Change the indent, line length and title length
10706 directly. With -Tascii, make the width of the box 1n less.
10707 (B1): Remember 1n at the current point size. Don't call
10708 par@reset. Change the indent, line length and title length
10709 directly. Ensure that the temporary indent is preserved.
10710 (par*box-mark-top): Turn off no spacing mode.
10712 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
10714 * Makefile.in (dist): Use .gz suffix.
10716 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
10718 * troff/input.cc (main): Add return 0.
10719 * pic/main.cc (main): Use return instead of exit.
10720 * tbl/main.cc (main): Likewise.
10721 * eqn/main.cc (main): Likewise.
10722 * grops/ps.cc (main): Likewise.
10723 * grotty/tty.cc (main): Likewise.
10724 * groff/groff.cc (main): Likewise.
10725 * grodvi/dvi.cc (main): Likewise.
10726 * refer/refer.cc (main): Likewise.
10727 * indxbib/indxbib.cc (main): Likewise.
10728 * lkbib/lkbib.cc (main): Likewise.
10729 * soelim/soelim.cc (main): Likewise.
10730 * addftinfo/addftinfo.cc (main): Likewise.
10731 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10732 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10734 * troff/token.h (process_input_stack): Don't declare as static.
10735 * troff/input.cc: Likewise.
10737 * troff/node.c (invalidate_fontno): Make it a static member of
10738 class font_family. Change callers.
10739 * troff/node.c: Change declaration.
10741 * tbl/main.cc (struct input_entry_format): Add explicit public
10743 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10744 struct double_hline_stuff): Likewise.
10745 * tbl/table.h (struct entry_format): Likewise.
10746 * pic/object.h (struct saved_state): Likewise.
10748 * include/stringclass.h: Add forward declarations of friend
10749 functions that are later declared as inline. Don't include inline
10750 specifier in friend declaration.
10752 * libgroff/lib.h: Declare popen and pclose.
10753 * acgroff.m4 (GROFF_POPEN): New macro.
10754 * configure.in: Call it.
10756 * include/lib.h (PI): New constant. Undef first if necessary.
10757 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10758 * grops/ps.cc (degrees, radians): Likewise.
10759 * libgroff/font.cc (font::get_skew): Likewise.
10761 * grops/ps.cc (is_ascii): New function.
10762 (ps_output::put_string): Use is_ascii. Use csprint rather than
10764 (ps_printer::define_encoding): Use csspace.
10765 * libgroff/strtol.c (ISASCII): New macro.
10766 (strtol): Cast arguments to is*() and tolower() to unsigned char.
10767 Use ISASCII rather than isascii.
10768 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10769 * libgroff/cset.cc: Likewise.
10770 * libdriver/input.cc: Include cset.h.
10771 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10774 * refer/refer.cc (main): Use %ld rather than %d for longs.
10776 * libbib/index.cc (index_search_item_iterator::get_tag): Use
10779 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10781 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
10783 * troff/input.cc (hyphenation_code): Skip white space between
10786 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
10788 * tbl/table.h (table::entry_list_tailp): New member.
10789 (table::table): Initialize it.
10790 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10793 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
10795 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10796 with negative horizontal positions. Remove casts of glyph::hpos to
10798 (USHRT_MAX): Delete definition.
10799 (SHRT_MAX, SHRT_MIN): New definitions.
10800 (glyph::hpos): Change type to short.
10801 (tty_printer::end_page): Output multiple backspaces if necessary.
10802 Remove casts of glyph::hpos to int.
10804 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
10806 * tmac/tmac.s (@RT): New definition.
10808 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
10810 * refer/refer.cc (do_file): Make sure current_filename is set when
10813 * pic/common.cc (common_output::dot_line): Handle zero length
10816 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
10818 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
10819 (par@init): Initialize \n[HY].
10821 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
10823 * troff/dictionary.cc (dictionary::remove): Continue when
10826 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
10828 * Makefile.com (.y.cc): Avoid ending up with two versions of
10831 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
10833 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
10834 (\(,C): Likewise. Also fix typo.
10836 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
10838 * lib.h: Delete extraneous semi-colon.
10840 * Add pso request: `so' from a pipe.
10841 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
10842 (file_iterator::close): New function.
10843 (file_iterator::~file_iterator, file_iterator::next_file): Use
10844 file_iterator::close.
10845 (file_iterator::backtrace): Say `process' rather than `file' when
10846 the stream is popened.
10847 (pipe_source): New function.
10848 (init_input_requests): Bind ".pso" to pipe_source.
10850 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
10852 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
10854 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
10855 digits in lower case.
10857 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
10859 * Version 1.08 released.
10861 * Makefile.in (dist): Insert || true after ln -s commands that
10864 * mm: Update to mm 1.16.
10866 * acgroff.m4 (GROFF_CSH_HACK): New macro.
10867 * configure.in: Call GROFF_CSH_HACK. Substitute for
10869 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
10871 * nroff/Makefile.sub (nroff): New target.
10872 (install_data): Install nroff.
10873 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
10874 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
10876 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
10878 * eqn/Makefile.sub (neqn): Add chmod +x.
10880 * grog/Makefile.sub (grog): Remove spurious semi-colon.
10882 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
10884 * troff/input.cc (string_iterator::string_iterator()): Initialize
10887 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
10889 * troff/div.cc (macro_diversion::space,
10890 top_level_diversion::space): Don't set high_water_mark.
10891 (macro_diversion::output, top_level_diversion::output): Don't
10892 include post line space in high water mark.
10894 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
10896 * eqn/eqn.y: Don't define YYDEBUG.
10897 * pic/pic.y: Likewise.
10899 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
10901 * tmac/tmac.e ([3): Add space after comma following editors.
10902 Change double spaces to single spaces.
10903 ([4): Change double spaces to single spaces.
10905 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
10906 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
10907 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
10908 after %!PS-Adobe- (for Newsprint).
10910 * troff/div.cc (top_level_diversion::begin_page): When
10911 before_first_page is 1, set page_number to 1.
10913 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
10915 * eqn/box.cc (box::top_level): Protect equation with \&.
10917 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
10919 * groff/groff.cc (possible_command::set_name): Delete old name.
10921 * groff/groff.cc (possible_command::~possible_command): Use
10924 * troff/node.cc (troff_output_file::begun_page): New member.
10925 (troff_output_file::troff_output_file): Initialize it.
10926 (troff_output_file::really_begin_page): Only output V command if a
10927 page has been begun.
10929 * pic/pic.y (placeless_element): Delete argument to PRINT after
10932 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
10934 * Make wrapman work.
10935 * troff/div.h (class top_level_diversion): Replace
10936 first_page_begun by before_first_page (with opposite sense).
10937 * Change first_page_begun to before_first_page inverting sense.
10938 * troff/div.cc (class nl_reg): New class.
10939 (init_div_requests): Use class nl_reg for \n(nl.
10940 (top_level_diversion::begin_page): Don't call
10941 output_file::begin_page if before_first_page is 2;
10942 reset before_first_page afterwards. If have_next_page_number is
10943 false, then always increment page_number.
10944 * tmac/tmac.an: Set traps within TH rather than at the top-level.
10945 Restore compatibility mode after loading, and then disable
10946 compatibility mode in TH.
10948 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
10950 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
10952 * troff/node.h (output_file::trailer): Declare.
10953 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
10954 * troff/node.cc (output_file::trailer): New function.
10955 (troff_output_file::~troff_output_file): Move most code into...
10956 (troff_output_file::trailer): New function.
10957 (class troff_output_file): Delete page_length member. Declare
10959 (troff_output_file::really_begin_page): Use current page length
10960 for final V command.
10962 * tbl/main.cc (struct options): New decimal_point_char member.
10963 (options::options): Initialize this.
10964 (process_options): Implement decimalpoint option.
10965 (process_data): Pass decimal_point_char option to table::table.
10966 * tbl/table.h (class table): New decimal_point_char member.
10967 (table::table): Add additional argument.
10968 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
10969 second argument specifying decimal point character. Use this
10971 (table::table): Initialize decimal_point_char.
10972 (table::add_entry): Change call to find_dot.
10974 * troff/input.cc (get_copy, token::next): Implement \V.
10975 (interpolate_environment_variable): New function.
10977 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
10979 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
10980 * pic/pic.y: Likewise.
10982 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
10984 * refer/ref.cc (reference::insert_field, reference::delete_field):
10986 * troff/number.cc (parse_term): Likewise.
10988 * acgroff.m4 (GROFF_PROG_YACC): New macro.
10989 * configure.in: Use GROFF_PROG_YACC.
10991 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
10993 * Makefile.in (OPTIMIZE): New define.
10994 (DEBUG): Empty by default.
10995 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
10997 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
10998 (GROFF_ARRAY_DELETE): Likewise.
10999 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11001 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11003 * devps/psstrip.sed: Use different delimiter on last line (so that
11004 it works with BSD 4.4 sed.)
11006 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
11008 * devps/psstrip.sed: Delete comments.
11010 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11011 optind, opterr, optarg.
11012 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11015 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
11017 * Makefile.in (check): Dummy target.
11019 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
11021 * Version 1.07 released.
11023 * Integrate mm 1.11.
11025 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11026 where start_col was meant.
11028 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
11030 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11032 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
11034 * troff/input.cc (token::next): Make \z\o'...' and similar things
11037 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
11039 (environment): Add margin_character_flags member.
11040 * env.cc (environment::environment(symbol),
11041 environment::environment(const environment *): Initialize
11042 margin_character_flags.
11043 (margin_character): Rewrite.
11044 (environment::output_line): Add a margin character if
11045 margin_character_flags is non-zero. Turn off the
11046 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
11047 zero, use margin_character_node without copying and then set
11048 margin_character_node to 0.
11050 * devps/DESC.in: Change minimum size to 1000.
11052 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
11054 * troff/symbol.h (symbol::hash): Change return type to unsigned
11056 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
11059 * test-groff: Use -r rather than -x.
11061 * grops/psfig.diff: Include in distribution again.
11063 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
11065 * Makefile.in (dist): Use gzip.
11067 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
11069 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
11070 unistd.h as well as in stdlib.h.
11071 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
11072 defined; otherwise include <sys/types.h> and <unistd.h> if
11073 UNISTD_H_DECLARES_GETOPT is defined.
11075 * configure.in: use builtin(include, ... rather than include(...
11076 * configure: Regenerate with autoconf 1.3.
11078 * libdriver/print.cc (printer::adjust_arc_center): Use new
11079 algorithm suggested by Andy Fyfe.
11081 * libdriver/printer.cc (printer::adjust_arc_center): New function.
11082 * include/printer.h: Declare this.
11083 * grops/ps.cc (ps_printer::draw): Use it.
11084 * grodvi/dvi.cc (dvi_printer::draw): Use it.
11086 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
11088 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
11090 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
11092 * eqn/main.cc (main): Handle "eqn -".
11094 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
11096 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
11098 * mm: Integrate version 1.08.
11100 * pic/troff.cc (troff_output::finish_picture): Set
11101 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
11102 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
11103 if it's not defined. Check whether the register is non-zero rather
11104 than whether it's not defined.
11105 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
11107 * indxbib/indxbib.cc: Move all signal handling into...
11108 * indxbib/signal.c: New file.
11109 * configure.in: Call AC_RETSIGTYPE.
11111 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
11112 * configure.in: Call GROFF_STRUCT_EXCEPTION.
11113 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
11115 * troff/input.cc (token::token, token::operator=): Work round SGI
11117 * pic/object.cc (position::position): Likewise.
11119 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
11121 * pic/pic.h: Move declaration of hypot().
11123 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
11125 * pic/pic.h: Declare hypot().
11127 * pic/pic.h: Define M_PI if necessary.
11129 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
11131 * tmac/tmac.e (re): Add alternative version that doesn't use groff
11134 * devps/prologue.ps (RE): Handle the possibility that the old font
11135 doesn't have a FontName entry.
11137 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
11139 * tmac/tmac.e (fam): Redefine to set family in environment 2.
11140 (@C): Use @fam not fam.
11142 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
11144 * lookbib/lookbib.cc (main): Change type of start to const char *.
11145 * lkbib/lkbib.cc (main): Likewise.
11147 * eqn/lex.cc (definition::definition): Don't use member
11148 initializer syntax for members of anonymous unions.
11150 * troff/input.cc (input_stack::backtrace): Change type of to const
11153 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
11155 * include/stringclass.h (class string): Declare inline friend
11156 functions as inline in class declaration.
11157 * troff/hvunits.h (class hunits, class vunits): Likewise.
11158 * include/refid.h (class reference_id): Likewise
11159 * troff/troff.h (points_to_units(units), scale(units, double)):
11160 Delete declarations.
11161 * libdriver/input.cc (get_char): Delete declaration.
11162 * include/lib.h: Change 2nd argument of getopt from const char **
11164 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11165 char **' before assigning to a `const char **'.
11166 * tbl/table.cc: Delete extra declarations of prints().
11168 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
11170 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11171 char **' before assigning to a `const char **'.
11173 * libgroff/errarg.cc (errarg::errarg): Don't use member
11174 initializer syntax for members of anonymous unions.
11176 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
11178 * mm: Integrate version 1.07.
11180 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
11182 * troff/input.c (translate2): Rename to
11183 (translate_no_transparent).
11184 (init_input_requests): Rename tr2 to trnt.
11186 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
11188 * troff/charinfo.h (class charinfo): Add transparent_translate field.
11189 (charinfo::set_translation, charinfo::set_special_translation):
11190 Add second argument that specifies value for
11191 transparent_translate.
11192 (charinfo::get_translation, charinfo::get_special_translation):
11193 Add optional second argument that specifies whether translation is
11194 being used for transparent throughput.
11195 * troff/input.cc (charinfo::set_translation,
11196 charinfo::set_special_translation): Handle second argument.
11197 (charinfo::charinfo): Initialize transparent_translate.
11198 (translate): Split main part off into
11199 (do_translate): New function. Pass argument saying whether
11200 translation applies to transparent throughput.
11201 (translate2): New request.
11202 (init_input_requests): Bind translate2 to `tr2'.
11204 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
11206 * tbl/table.h (class table): Add `nokeep' flag.
11207 * tbl/main.cc (process_options): Handle `nokeep' option.
11208 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11209 table::do_bottom): Don't output keep/release macro definitions or
11210 calls when `nokeep' option has been specified.
11212 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
11214 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11216 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
11218 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11219 block_entry::divert, alphabetic_block_entry::divert): Add extra
11220 argument giving column separation.
11221 (table::compute_widths): Pass column separation to
11222 table_entry::divert().
11223 (block_entry::do_divert): If an entry spans multiple columns and a
11224 minimumum width has been specified for each column, then set the
11225 line length to the sum of the widths (plus possibly the column
11228 * troff/input.cc (set_escape_char): Don't set the escape_char
11229 until after calling has_arg().
11231 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
11233 * tbl/table.cc (table::do_top): Add missing \s0 for double box
11236 * tbl/table.cc (table::print_double_hline): Avoid extra new line
11237 in case where r > nrows - 1.
11239 * tbl/table.cc (BODY_HEIGHT): Deleted.
11240 (LINE_SEP): New definition.
11241 (table::print_single_hline, table::print_double_hline,
11242 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11243 table::do_row, table::do_top): Use LINE_SEP space before a line
11244 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11246 * tbl/table.cc (text_entry::print_contents): New function.
11247 (text_string_name, right_text_string_name): Deleted.
11248 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11249 (simple_text_entry::do_width, numeric_text_entry::do_width,
11250 alphabetic_text_entry::do_width): Don't store the contents of the
11252 (left_text_entry::simple_print, right_text_entry::simple_print,
11253 center_text_entry::simple_print,
11254 alphabetic_text_entry::simple_print,
11255 numeric_text_entry::simple_print): Print the entry directly
11256 instead of using the stored string.
11258 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
11260 * devps/Makefile: Strip PostScript files.
11261 * devps/prologue: Rename to...
11262 * devps/prologue.ps.
11263 * devps/psstrip.sed: New file.
11264 * devps/download: Use .pfa rather than .ps for installed versions
11267 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
11269 * troff/env.cc (input_trap): Give a warning if the argument is out
11272 * troff/env.cc (adjust): Treat negative argument as missing. Round
11273 argument > 5 down to 5.
11275 * troff/env.cc (center, right_justify): Make negative argument zero.
11277 * troff/div.cc (page_offset, vertical_position_traps): Treat
11278 invalid argument as missing.
11279 * troff/env.cc (line_spacing, line_length, title_length, indent,
11280 underline, hyphen_line_max_request, control_char,
11281 no_break_control_char, widow_control_request, adjust, input_trap,
11282 point_size): Likewise.
11283 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11284 constant_space): Likewise.
11285 * troff/input.cc (compatible, shift, warn_request,
11286 set_escape_char): Likewise.
11288 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11289 * tbl/table.cc (table::table): Likewise.
11291 * Makefile.dev (install_dev): depends on $(DEVFILES).
11293 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
11295 * devX75, devX75-12, devX100, devX100-12: New directories.
11296 * Makefile.in: Add these to DEVDIRS.
11298 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11299 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11300 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11301 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11303 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11304 (uninstall): New target.
11305 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11306 uninstall_prog, uninstall_dev): New targets.
11308 * troff/div.cc (return_request): Treat an invalid argument as
11311 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
11313 * tmac/tmac.e ((f): Set up the environment even when there's a
11314 current diversion. Transperently throughput a call to @N.
11317 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
11319 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11320 up to vertical resolution.
11322 * tbl/table.cc (table::do_row): Change row number after printing
11325 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11327 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
11329 * Rename CHANGES to NEWS.
11331 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
11333 * libgroff/new.cc (operator new): Avoid calling malloc(0).
11335 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
11337 * man.ultrix: Removed.
11339 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
11341 * Makefile.comm (extraclean): Delete files whose names begin with
11344 * pic/troff.cc (troff_output::text): Fix typo in implementation of
11347 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
11349 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11350 * troff/div.cc (page_length, need_space, space_request): Treat
11351 invalid optional argument as missing.
11352 * troff/env.cc (number_lines): If the first argument is present
11353 but not a number, turn on line numbering, don't change the next
11354 line number and parse the remaining arguments.
11356 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11358 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
11360 * eqn/box.h: Change declaration accordingly.
11361 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
11362 the specified size was bad but don't give an error. Check for
11364 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11365 * eqn/lex (do_size): Likewise.
11367 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
11369 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11370 compatible headers.
11372 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
11374 * tbl/table.cc (table::init_output): Improve error message when
11375 table won't fit on one page.
11377 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
11379 * pic/troff.cc (troff_output::start_picture): Generate line
11380 containing a horizontal motion equal to the width of the picture.
11382 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11383 using GROFF_COMMAND_PREFIX environment variable.
11385 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
11387 * mdate.sh: Use $NF rather than $(NF).
11389 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
11391 * pic/main.cc (main): Use %1 not %c in argument to warning.
11393 * eqn/main.cc (main): Output code to check that geqn was given the
11396 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
11398 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11399 `ln -s ../Makefile .; make; rm -f Makefile'.
11401 * troff/hyphen: Rename to...
11403 * troff/input.cc (main): Delete -H option. Don't call
11404 read_hyphen_file().
11405 * troff/env.cc: Include searchpath.h and macropath.h.
11406 (exception_dictionary): Deleted.
11408 (read_hyphen_file): Deleted.
11409 (hyphenation_language): New struct.
11410 (class trie, class hyphen_trie): Move declarations up.
11411 (trie_node::~trie_node): Deleted.
11412 (trie::delete_trie_node): New function.
11413 (trie::do_delete): New pure virtual function.
11414 (hyphen_trie::do_delete): New function.
11415 (trie::~trie): New function.
11416 (hyphen_trie::~hyphen_trie): New function.
11417 (trie::clear): No need to chcek that tp is not 0.
11418 (current_language, language_dictionary): New variables.
11419 (hyphen_word): Give an error if no current language. Use
11420 exceptions dictionary in current language.
11421 (hyphen_trie::read_patterns_file): Find file using macro_path.
11422 Allow comments (starting with %) in patterns file. Don't make it
11423 a fatal error if the file can't be found.
11424 (hyphenate): Return if no current language. Get the exceptions
11425 dictionary and the hyphenation patterns from the current language.
11426 (set_hyphenation_language): New variable.
11427 (hyphenation_patterns_file): New function.
11428 (hyphenation_language_reg): New class.
11429 (hyphenation_language_reg::get_string): New function.
11430 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11431 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
11433 * groff/groff.cc (main, help, synopsis): Delete -H option.
11434 * include/Makefile.sub: Don't define HYPHENFILE.
11435 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11436 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11437 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11438 hyphenation patterns.
11440 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
11442 * eqn/neqn.sh: New file.
11443 * eqn/Makefile.sub: Handle neqn.sh.
11445 * eqn/eqn.h: Declare `nroff' variable.
11446 * eqn/box.cc (param_table): Add `nroff' param.
11447 (nroff): Define it.
11448 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11450 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11452 * troff/troff.h (WARN_FONT): New warning.
11453 (WARN_TOTAL): Change accordingly.
11454 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11455 (warning_table): Add WARN_FONT.
11456 * troff/node.cc (mount_font_no_translate): Pass argument to
11457 font::load_font. If this is non-zero, give a warning.
11458 Don't give an error message when accessing a font that has already
11459 been found to be invalid.
11460 * include/font.h (font::load, font::load_font): Add additional
11461 optional argument which suppresses error message if the font is
11463 * libgroff/font.cc (font::load_font): Handle additional argument.
11464 (font::load): Add additional argument. If this is non-null, set it
11465 to 1 and don't give error message.
11467 * include/printer.h (printer::end_page): Add argument giving
11469 * libdriver/input.cc (do_file): Pass this.
11470 * grops/ps.cc (ps_printer::end_page): Add argument.
11471 * grodvi/dvi.cc (dvi_printer::end_page,
11472 draw_dvi_printer::end_page): Add argument.
11473 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11474 columns_per_page members. New member nlines.
11475 (DEFAULT_LINES_PER_PAGE): Deleted.
11476 (tty_printer::tty_printer): Don't compute lines_per_page from
11477 font::paperlength. Don't compute columns_per_page from
11479 (tty_printer::add_char): Don't check horizontal position against
11480 columns_per_page. Grow glyphs vector if neccessary.
11481 (tty_printer::end_page): Add argument giving page_length in units.
11482 Discard lines past end of page.
11484 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
11486 * tmac/tmac.tty-char: Fix definition of \(/l.
11488 * tmac/tmac.X: Define \(en.
11490 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
11492 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11493 lpq, then use lp rather than lpr.
11495 * tmac/tmac.s (par@reset): Don't call `ad'.
11496 (par*env-init): Call `ad'.
11498 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
11500 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11503 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11504 * indxbib/indxbib.cc: Likewise.
11506 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
11508 * libgroff/putenv.c: New file.
11509 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11510 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11511 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11512 stdlib.h with AC_HAVE_HEADERS.
11514 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
11516 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11519 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
11521 * eqn/box.cc (gsize): Make it an int.
11522 (set_gsize): Parse argument handling increment or decrement.
11523 (box::top_level): Convert gsize to a string.
11525 * troff/input.cc (exit_troff): Make buf unsigned char [].
11526 Call to make_temp_iterator casts buf to char*.
11528 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11530 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11531 * Makefile.cpg (depend.temp): Likewise.
11533 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11535 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11537 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
11539 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11541 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
11543 * Version 1.06 released.
11545 * Integrate mm 1.04.
11547 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
11549 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11551 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
11553 * afmtodit/afmtodit.pl: Add -n option that disables generation of
11555 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11556 afmtodit. Regenerate.
11558 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11559 @f back past the current position.
11561 * tmac/tmac.e: Change calls to @R so that comments are not part of
11564 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
11566 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11568 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11569 check that we can link a call to a function declared in <stdio.h>.
11570 (GROFF_UNISTD_H): New macro.
11571 * configure.in: Call it.
11572 * Makefile.in: Document it.
11573 * include/posix.h: New file.
11574 * troff/troff.h: Don't include <osfcn.h>
11575 * troff/input.cc: Include posix.h.
11576 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11578 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11579 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11581 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11582 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11583 * libbib/search.cc (O_RDONLY): Delete definition.
11584 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11585 Don't include <osfcn.h>.
11587 * acgroff.m4 (GROFF_TIME_T): New macro.
11588 * configure.in: Call it.
11589 * Makefile.in: Document it.
11591 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11592 * configure.in: Call it.
11593 * Makefile.in: Document -DTRADITIONAL_CPP.
11594 * include/ptable.h: Don't include generic.h.
11595 (name2): Define it.
11597 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11598 Afterwards remove [T1 and [T2.
11599 (ref*spec!0, ref*spec!2): Use T1 rather than T.
11600 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11601 (ref*add-T2): Renamed from ref*add-T.
11602 (ref*add-T1): New macro.
11604 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
11606 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11608 * libbib/index.cc: Include <fcntl.h>.
11609 (O_RDONLY): Define if necessary.
11610 (make_index_search_item, index_search_item_iterator::get_tag,
11611 index_search_item::check_files): Use O_RDONLY.
11612 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11613 (O_RDONLY): Define if necessary.
11614 (search_list::add_file): Use O_RDONLY.
11615 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11617 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11620 * libbib/index.cc (S_ISREG): Define it if necessary.
11621 (index_search_item::load): Use S_ISREG.
11623 * include/driver.h: Include <errno.h>.
11625 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
11627 * eqn/box.cc (body_height): Increase default value to 85.
11628 (body_depth): Increase default value to 35.
11630 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
11632 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11633 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11634 protected from expansion with \E.
11636 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11638 * Makefile (Makefile): New target.
11640 * Makefile.sub (configure, distfiles): New targets.
11642 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11645 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
11647 * eqn/box.cc (param_table): Add body_height and body_depth.
11649 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11651 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
11653 * psbb/Makefile.sub: Don't link with libgroff.a.
11655 * acgroff.m4 (GROFF_PUTENV): New macro.
11656 * configure.in: Call GROFF_PUTENV.
11657 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11658 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11661 * troff/env.cc (distribute_space): Rename force_forward argument
11662 to force_reverse. Reverse the list if force_reverse is true.
11664 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
11666 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11668 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11669 height or depth to be negative. Guard against SUP_RAISE quantity
11672 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
11674 * devps/generate/textmap: Add `an' (arrowhorizex).
11675 * tmac/tmac.ps: \(an overlaps horizontally.
11676 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11678 * devps/symbolchars: Add arrowverttp, arrowvertbt.
11679 * devps/textmap: Add arrowvertex.
11680 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11681 updownarrow delimiters.
11682 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11684 * tbl/table.cc (simple_entry::position_vertically,
11685 block_entry::position_vertically): For a centered entry, perform
11686 the motion in two stages.
11688 * refer/refer.cc (split_punct): Don't call lookup_token if there
11691 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
11693 * troff/input.cc (token::next): Delete token_node after copying
11696 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11699 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11701 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11703 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
11705 * grops/ps.cc (usage): -b option takes an argument.
11707 * devps/prologue (PLG): New procedure.
11708 * grops/ps.cc (main, usage): New -g option.
11709 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
11712 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
11714 * include/cset.h: Include <limits.h> if we have it.
11716 * libgroff/illegal.cc: New file.
11717 * include/lib.h (illegal_input_char): Use table.
11718 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11719 * pic/lex.cc (ARG1): Renumber to 14.
11720 * eqn/lex.cc (ARG1): Likewise.
11722 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11723 (eg 1.05.90) correctly.
11725 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
11727 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11728 Rename $r and $R registers to $v and $V.
11729 ($r, $R): Initialize to 0.
11730 (@v, @V): New macros.
11734 * troff/input.cc (main, usage): Add -R option that says not to
11736 * eqn/main.cc (main, usage): Rename -n to -R.
11738 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
11740 * devps/DESC.in: Leave font positions 5-9 blank.
11741 * devdvi/DESC.in: Likewise.
11743 * grog/grog.pl: Handle `.PS <file' correctly.
11745 * troff/input.cc (input_stack::push): Improve error message when
11746 input stack limit exceeded.
11748 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
11750 * refer/refer.cc (main): Fix typo in handling of `a' option.
11752 * refer/refer.cc (do_bib): In state START after a newline remain
11755 * groff/groff.sh: Deleted.
11756 * groff/Makefile.sub: Delete handling of groff.sh.
11758 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11759 to determine whether to use \X'ps:...'.
11760 * tmac/troffrc: Set 0p register to 0.
11761 * tmac/tmac.ps: Set 0p register to 1.
11763 * groff/groff.cc: Support -X option. Give warning for -TXps and
11764 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11765 * tmac/troffrc: Support -r.X=1.
11767 * pic/troff.cc (troff_output::dot): Don't test
11768 zero_length_line_flag.
11770 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
11772 * include/lib.h: Declare getopt() and friends unless
11773 STDLIB_H_DECLARES_GETOPT is defined.
11775 * doc/chars.tr: Delete.
11776 * man/groff_char.man: New file.
11778 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
11780 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11781 user has changed register format.
11783 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
11785 * groff/groff.cc: Get rid of device_table. Get postprocessor from
11786 `postpro' command in DESC file. Get spooler command from `print'
11787 command in DESC file. Execute spooler command with /bin/sh.
11789 * groff/groff.cc: Split Unix-specific parts into...
11790 * groff/pipeline.c: New file.
11793 * COPYING: New file.
11794 * all files: Update copyright notices.
11796 * Rearrange files. Redo Makefiles. Use autoconf.
11798 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
11800 * troff/input.c (charinfo_to_node_list): Interpret character
11801 definition with escape_char of `\'.
11803 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
11805 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11806 Define INT_DIGITS as big enough for 64-bit integer.
11807 * lib/strtol.c: Don't include lib.h.
11808 * lib/lib.h: Delete ifdef __cplusplus stuff.
11810 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
11812 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
11813 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
11814 get DESC from current directory.
11816 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
11818 * tbl/main.c (main): Always reset the line number when reading
11821 * tbl/table.c (table::print_single_hline, table::print_double_hline,
11822 table::define_bottom_macro, table::do_row, table::do_top): Round
11823 vertical spacing up to vertical resolution.
11825 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
11827 * ps/ps.h (enum resource_type): Avoid comma at end of
11829 * dvi/dvi.c (class dvi_printer): Likewise.
11830 * dvi/tfmtodit.c (gf::load): Likewise.
11831 * refer/label.y (struct expression): Likewise.
11832 * refer/refer.c (class label_processing_state): Likewise.
11833 * refer/indxbib.c (do_file): Likewise.
11834 * troff/troff.c (enum warning_type): Likewise.
11835 * tbl/main.c (process_data): Likewise.
11836 * troff/charinfo.h (class charinfo):
11838 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
11840 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
11842 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
11844 * groff.c: Move to new groff subdirectory.
11845 * groff/Makefile: New file.
11846 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
11848 * man/mdate.sh: Use ls -L if supported.
11850 * Consolidate all header files produced by gendef into lib/defs.h.
11851 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
11852 Don't include path.h.
11853 * lib/Makefile (path.h): Don't generate.
11854 * troff/input.c: Include defs.h. Don't include config.h.
11855 * troff/Makefile (config.h): Don't generate.
11856 * refer/index.h: Don't include suffix.h.
11857 * refer/index.c: Include defs.h.
11858 * refer/indxbib.c: Include defs.h.
11859 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
11861 * refer/Makefile (suffix.h, path.h): Don't generate.
11862 * groff.c: Don't include config.h. Include defs.h.
11863 * Makefile (config.h): Don't generate.
11864 (lib/defs.h): Generate.
11865 (topclean): Remove lib/defs.h.
11867 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
11869 * lib/malloc.c, lib/getpagesize.h: Deleted.
11870 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
11872 * lib/Makefile: Delete malloc-related stuff.
11873 * lib/new.c: Workaround COOKIE_BUG if necessary.
11875 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
11876 needed header files directly.
11877 * refer/refer.h: Omit definition of DEFAULT_INDEX.
11878 * Makefile: Include definition of DEFAULT_INDEX in path.h.
11880 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
11882 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
11884 * lib/font (font::load_desc, font::load): Don't split argument of
11886 (font::handle_unknown_font_command): Change type.
11887 * ps/ps.c (ps_font::handle_unknown_font_command,
11888 handle_unknown_desc_command): Change type.
11889 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
11891 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
11893 * lib/font.h (font::handle_unknown_font_command): Add file and
11895 * lib/font.c (font::handle_unknown_font_command):
11896 * ps/ps.c (ps_font::handle_unknown_font_command):
11897 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
11898 lineno arguments. Use _with_file_and_line functions for error
11901 * lib/fontfile.c (font::unknown_desc_command_handler): New static
11903 * lib/font.c (font::set_unknown_desc_command_handler): New
11905 (font::load_desc): For unknown commands, call
11906 unknown_desc_command_handler if not null.
11907 * lib/font.h (class font): Declare them.
11908 (FONT_COMMAND_HANDLER): New typedef.
11909 * ps/ps.c (handle_unknown_desc_command): New function.
11910 (main): Set bflag if we had a -b option. Call
11911 font::set_unknown_desc_command_handler.
11912 (broken.h): Don't include.
11913 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
11915 * ps/devps/Makefile: Add `broken' command to DESC file using
11916 BROKEN_SPOOLER_FLAGS.
11918 * macros/tmac.e ([, ]): Add as synonyms for { and }.
11920 * macros/tmac.e ($p): Only exdent if \$3 > 0.
11922 * macros/tmac.e (@R, @S): New macros.
11923 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
11924 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
11925 Declare $H, $[0-9], .. macros with @S.
11926 Declare |0, |1, |2, |3 strings with @S.
11928 * macros/tmac.e (@S): Rename to @U.
11930 * macros/tmac.e (@z): Define @b and bp as empty instead of
11933 * macros/tmac.e (@m): Deleted.
11934 (@h): Don't call @m.
11935 (@z): Don't set @m trap.
11937 * macros/tmac.e ($h, $f): Define |z as empty string.
11939 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
11942 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
11944 ()f): Likewise for * register.
11946 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
11947 argument is missing, don't change $R. Call sr with three
11948 arguments when initializing.
11950 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
11952 * macros/tmac.e (sr): New macro.
11953 Initialize $r and $R using sr.
11955 * macros/tmac.e (,): Delete \*(#[.
11957 * troff/env.c (set_tabs): Read the tab type even if the position
11958 is bad. Allow the position of the first tab stop to be negative.
11960 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
11962 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
11964 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
11965 rather than -DPATHCONF_MISSING.
11966 * Makefile: Get rid of PATHCONF_MISSING.
11968 * refer/map.c: New file.
11969 * refer/index.c: Interface to mmap through map.c. Rename map_size
11971 * refer/Makefile: Handle map.c.
11972 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
11974 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
11976 * Makefile: RANLIB should be `true' if there is no ranlib.
11977 * lib/Makefile (libgroff.a): Simplify.
11978 * driver/Makefile (libdriver.a): Simplify.
11980 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
11981 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
11984 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
11986 * troff/env.c (compare_ranges): Declare as extern "C".
11988 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
11990 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
11992 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
11994 * pic/troff.c (troff_output::text): Merge in grops_output::text,
11995 but conditionalize use of \X based on \*(.T.
11996 (grops_output::*): Deleted.
11997 * pic/output.h: Delete declaration of make_grops_output.
11998 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
11999 by default. -n sets it to 0.
12000 (usage): Corresponding changes.
12001 * groff.c (main): Don't pass -x or -p to pic.
12002 * groff.sh: Likewise.
12004 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12007 * ps/devps/afmtodit: Change calculation of asc_boundary and
12008 desc_boundary. Make these bounds inclusive.
12009 * ps/devps: Regenerate font files.
12011 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
12013 * macros/tmac.latin1: New file.
12014 * macros/tmac.tty-char: Use tmac.latin1.
12015 (tmac.tty-tr): Deleted.
12016 * macros/Makefile: Install tmac.latin1.
12017 * macros/tmac.dvi: Use tmac.latin1.
12018 * macros/troffrc: Translate \[char160] onto no-break space here.
12019 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12021 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
12023 * macros/tmac.Xps: Use `do' request.
12025 * macros/tmac.ps: Use `do' request.
12027 * macros/tmac.e (@C): Use `do' request.
12029 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12030 * macros/Makefile: Install tmac.X*.
12032 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12033 * tty/Makefile: Don't install tmac.tty*.
12034 * macros/Makefile: Install tmac.tty*.
12036 * dvi/tmac.dvi: Move to macros.
12037 * dvi/Makefile: Don't install tmac.dvi.
12038 * macros/Makefile: Install tmac.dvi.
12040 * ps/tmac.ps*: Move to macros.
12041 * ps/Makefile: Don't install tmac.ps*.
12042 * macros/Makefile: Install tmac.ps*.
12044 * eqn/box.c: Provide draw_lines parameter corresponding to -D
12046 * macros/eqnrc: Set draw_lines parameter based on device.
12047 * groff.c: Don't pass -D flag to eqn.
12048 * groff.sh: Likewise.
12049 * eqn/main.c: Warn about use of -D.
12051 * troff/input.c (process_startup_file): New function.
12052 (main): Call process_startup_file().
12053 * macros/troffrc: New file.
12054 * macros/Makefile: Install troffrc.
12055 * groff.c (main): Don't pass extra -m option to troff. For a
12056 pseudo device pass the name of the pseudo device to troff using
12058 * groff.sh: Likewise.
12059 * groff.c (possible_command::prepend_arg): Deleted.
12061 * troff/input.c (do_request): New function.
12062 (init_input_requests): Bind "do" to do_request.
12064 * eqn/main.c (main): Instead of loading eqnchar from device directory,
12065 load eqnrc from macro directory.
12066 * macros/eqnrc: New file.
12067 * macros/Makefile: Install eqnrc.
12068 * ps/devps/eqnchar: Deleted.
12069 * ps/devps/Makefile: Don't install eqnchar.
12070 * dvi/devdvi/eqnchar: Deleted.
12071 * dvi/devdvi/Makefile: Don't install eqnchar.
12072 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
12075 * lib/device.[ch]: New files.
12076 * lib/font.h (font::set_device_name, font::get_device_name):
12078 * lib/fontfile.c: Use device.h.
12079 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
12080 * troff/input.c: Delete definition of `device'.
12081 (main): Don't initialize device.
12082 * troff/troff.h: Include device.h rather than declaring device.
12083 * troff/Makefile: No need to handle DEVICE.
12084 * driver/input.c: Include device.h. Don't use
12085 font::{set,get}_device_name.
12086 * groff.c, Makefile: Rename device.h to config.h.
12087 * groff.c: Use library device variable.
12088 * eqn/main.c: Use library device variable.
12089 * eqn/Makefile: No need to handle DEVICE.
12091 * lib/searchpath.[ch]: New files.
12092 * lib/Makefile: Handle searchpath.[ch].
12093 * troff/input.c (open_file, init_dirs): Deleted.
12094 (macro_dirs): Deleted.
12095 (open_mac_file, macro_source): Use class search_path.
12096 (add_string, struct string_list): Move definition.
12097 (main): Change -M option to use macro_path. Delete call to
12099 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
12100 Rewrite to use class search_path.
12101 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
12102 * lib/Makefile: fontfile.c depends on searchpath.h.
12103 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
12105 * lib/macropath.[ch]: New files.
12106 * troff/Makefile: No need to handle MACROPATH.
12108 * troff/input.c: Delete DUMP code.
12109 * lib/fontfile.c, lib/font.h: Delete
12110 font::forget_command_line_font_dirs.
12112 * troff/input.c (push_token): New function.
12113 (handle_first_page_transition): Use push_token().
12114 (process_input_stack): Change handling of a space at the beginning
12117 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
12119 * troff/input.c (font_dirs): Delete unused variable.
12121 * eqn/lex.c (do_set): Correct error messages.
12123 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
12125 * troff/input.c (do_define_string): Allow the string name to be
12126 followed immediately by a tab.
12127 (define_character): Likewise.
12129 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
12131 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12134 * troff/input.c (input_iterator::is_file): New virtual function.
12135 (file_iterator::is_file): New function.
12136 (input_stack::end_file): New function.
12137 (input_stack::next_file): Handle the situation where there is no
12138 file on the input stack correctly. Avoid making two passes over
12140 (next_file): Make the filename optional; in this case call
12141 input_stack::end_file().
12143 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
12145 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
12146 produce a real _ charater when the current font is CW and _
12149 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
12150 expression to work around gcc 2.2 bug.
12152 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
12154 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12156 * troff/env.c (environment::add_padding): New function.
12157 (environment::add_char): Use add_padding().
12158 (environment::space): Likewise.
12159 (environment::wrap_up_field): Add some padding if there is none
12160 and there's no current tab.
12161 * troff/env.h: Declare environment::add_padding.
12163 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
12165 * pic/pic.y: undef fmod and rand before declaring them.
12167 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
12169 * troff/input.c (main): If the DESC file specifies a font name of
12170 0, then leave the corresponding font position empty.
12172 * nroff.sh: New file.
12173 * Makefile (install.nobin): Install nroff.sh.
12175 * tty/devlatin1/R.proto: Add ao as synonym for de.
12176 * tty/tmac.tty-char: Define ao as o.
12178 * tty/dev{ascii,latin1}/R.proto: Add aq.
12179 * tty/tmac.tty-char: Delete definition of aq.
12181 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
12183 * troff/input.c (init_charset_table): Don't translate 0240.
12184 * ps/tmac.ps: Translate char160 to space.
12185 * dvi/tmac.dvi: Likewise.
12186 * tty/tmac.tty: Likewise.
12188 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
12190 * dvi/tmac.dvi: Add support for all Latin-1 characters.
12192 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12193 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12196 * tty/tmac.tty-char: Add \(ah.
12198 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12199 No need to define \(FM and \(!/. Conditionalize all character
12202 * ps/devps/lgreekmap: Add +h, +f, +p.
12204 * ps/tmac.psnew: New file.
12205 * ps/Makefile: Install tmac.psnew.
12207 * troff/input.c (charinfo_to_node_list): Don't ever interpret
12208 character definitions in compatible mode.
12210 * troff/input.c (remove_character): New function.
12211 (init_input_requests): Bind remove_character to "rchar".
12213 * ps/tmac.psold: New file.
12214 * ps/Makefile: Install tmac.psold.
12215 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12216 characters into tmac.psold. Make these definitions unconditional.
12218 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12220 * ps/tmac.ps: Don't define \('c and \('C.
12222 * ps/devps/textmap: Move Greek characters to...
12223 * ps/devps/symbolchars:
12225 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
12227 * ps/devps/text.enc: Add quotesingle.
12228 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12229 * tty/tmac.tty-char: Likewise.
12230 * dvi/devdvi/texmi.map: Add +h, +f, +p.
12231 * dvi/devdvi/texi.map: Add Fn.
12232 * dvi/devdvi/msam.map: Add lz.
12233 * dvi/tmac.dvi: Handle Bq, bq, aq.
12235 * pic/lex.c (get_token): Recognize 'th.
12236 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12238 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
12240 * ps/devps/textmap: Move di, mu, +- to...
12241 * ps/devps/symbolchars:
12243 * macros/tmac.s (@XS): Don't call par@reset or fi.
12244 (XA): Call LP. Turn off adjustment. Reduce line length.
12246 * macros/tmac.s: Initially alias XS to LP.
12247 (XS): Rename to @XS.
12248 (cov*ab-init): Alias XS to @XS.
12250 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
12252 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12253 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12254 (token::is_size, token::changes_env): Deleted.
12255 * troff/number.c (parse_term): No need to process \s explicitly.
12256 Call tok.next() only after scale indicator has been processed.
12257 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12259 (token::next): Handle \s, \f, \S, \H immediately rather than
12260 returning them as tokens.
12261 (token::operator==, token::description, token::add_to_node_list,
12262 token::process): Remove handling of deleted tokens.
12264 * troff/env.c (environment::add_char): When adding padding
12265 indicator character, call start_line() if necessary.
12267 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
12269 * ps/devps/afmtodit: Don't output 0 kerns.
12271 * ps/devps/afmtodit: Remove directory from name of encoding in
12272 font description file.
12274 * ps/devps/afmtodit: Improve error messages.
12276 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12278 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12279 * ps/devps/FontMakefile: Deleted.
12280 * ps/devps/afmname: New file.
12282 * ps/devps/symbol.sed: New file.
12283 * ps/devps/symbol.diff: Deleted.
12284 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12285 Generate zapfdr.afm from zapfd.afm.
12287 * tty/tmac.tty (tty-char): Prefix definition with ".
12289 * macros/tmac.an (TP): Don't start a diversion if one has already
12292 * tty/tmac.tty-char: Add Latin-1 characters.
12294 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12296 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
12298 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12299 Move declaration of struct horizontal_span.
12301 * tbl/table.c (table::table): Initialize span_list.
12302 (table::~table): Delete span_list.
12304 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12306 * ps/devps/Makefile: Avoid dependency on GNU make.
12308 * ps/tmac.ps: Check that character does not already exist before
12311 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12312 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12313 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12316 * tty/tmac.tty-char: New file.
12317 * tty/Makefile: Install tmac.tty-char.
12318 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12321 * tty/tmac.tty: Fix definition of \(34.
12323 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12324 bracket-drawing characters onto |. Add *o.
12326 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12327 only if current_field.
12329 * troff/dictionary.c (dictionary::lookup): Free old_table after
12332 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
12334 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12335 whose glyphs are identical to glyphs of some Roman character.
12337 * tty/devlatin1/R.proto (bu): Deleted.
12338 * tty/devascii/R.proto (bu): Deleted.
12339 * tty/tmac.tty: Add definition of \(bu.
12341 * eqn/main.c (do_file): Pass FILE as argument.
12342 (main): Automatically load eqnchar. New options -F and -n.
12343 Pass do_file an opened FILE.
12344 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12345 No need to include font.h.
12346 * groff.sh: Likewise. Don't need to use - for standard input.
12347 Prefix files with -- if first file starts with -.
12349 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12351 * troff/env.c (environment::possibly_break_line): Don't set line
12352 to 0 across call to output_line(). Don't call output_line() until
12353 after discarding nodes after break.
12355 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
12357 * request.h (macro::empty): Declare it.
12358 * input.c (macro::empty): New method.
12359 (interpolate_macro): Don't give a WARN_SPACE if the two-character
12362 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
12364 * troff/env.c (environment::start_field): Decrement space_total
12365 when a space is frozen.
12367 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
12369 * macros/tmac.an (R): Delete macro.
12371 * troff/input.c (get_copy, token::next): Support \# (like \" but
12372 newline is ignored).
12374 * troff/input.c (token::next): Fix error message in 'Y' case.
12376 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
12378 * eqn/delim.c (define_extensible_string): Recognize any prefix of
12381 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
12383 * c++test.c: Include <osfcn.h>.
12385 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12388 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
12390 * tbl/table.c (table::divide_span): Don't count column separation
12391 if expand was specified.
12393 * tbl/main.c (process_format): Don't ignore width specs in
12394 continued format. Give warning for changing equal widths or
12395 column separation in continued format.
12396 (process_data): Set column separation, minimum width, equal
12397 columns at end of table.
12399 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
12401 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12402 node::add_discretionary_hyphen): Use soft_hyphen_char.
12403 (set_soft_hyphen_char): New function.
12404 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
12406 * Makefile (c++tested): Give more helpful message if test fails.
12408 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
12410 * troff/input.c (init_charset_table): Translate 0240 to
12411 an unbreakable space.
12413 * troff/token.h (token::hyphen_indicator): New function.
12414 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12416 * troff/input.c (translate): Allow translation to \%.
12417 * troff/node.c (node::add_char): Handle
12418 TRANSLATE_HYPHEN_INDICATOR.
12419 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12421 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12424 * tty/devlatin1/R.proto: \(hy and - should print as 055.
12426 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
12428 * groff.c (run_commands): If the last command gets a SIGPIPE send
12429 a SIGPIPE to all children than haven't yet terminated. When
12430 command terminates, set pid field to -1.
12432 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
12434 * groff.c (main): Pass an appropriate -filename option to gxditview.
12436 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
12438 * Makefile.bd (install): Remove existing program before copying.
12440 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12441 programs which have Unix counterparts to be installed with
12442 user-specified prefix.
12444 * troff/input.c (exit_troff): Don't check if exit_started.
12445 (exit_request): Don't call exit_troff if exit_started.
12447 * Makefile.bd (install.mm): Rename to install.dwbmm.
12449 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
12451 * driver/input.c (do_file): Add missing break for '#' case.
12453 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
12455 * troff/input.c (input_stack::clear): Clear past any boundaries and
12456 then add the boundaries back.
12458 * troff/input.c (exit_troff): Return immediately if already
12461 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
12463 (pg*end-page): If the text has ended and there are no more
12464 footnotes or keeps, exit.
12466 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12468 * troff/input.c (init_charset_table): Make \(rq transparent by
12471 * macros/tmac.an: Define lq and rq strings.
12473 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12475 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
12477 * troff/env.c (environment::final_break): New function.
12478 (environment::newline): Set prev_line_interrupted to 2 if
12480 * troff/env.h: Declare environment::final_break.
12481 * troff/input.c (exit_troff): Call environment::final_break()
12482 instead of environment::do_break().
12484 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12485 doesn't already exist.
12486 * macros/man.local: New file.
12487 * macros/tmac.an: Load man.local.
12488 * macros/man.ultrix: New file.
12490 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
12492 * troff/input.c (exit_groff): Rename to...
12493 (exit_troff): New function.
12495 * troff/div.c (exit_started, done_end_macro,
12496 seen_last_page_ejector): New global variables.
12497 (began_page_in_end_macro): New static variable.
12498 (exit_flag): Deleted.
12499 (top_level_diversion::top_level_diversion): Initialize
12501 (top_level_diversion): More elaborate test for whether
12502 cleanup_and_exit() should be called.
12503 Set began_page_in_end_macro if the end macro isn't yet finished.
12504 * troff/div.h (top_level_diversion::last_page_count): New data
12506 (top_level_diversion::set_last_page): New function.
12507 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12508 * troff/env.c (do_break): Zero prev_line_interrupted.
12509 * troff/input.c (exit_flag): Delete declaration.
12510 (LAST_PAGE_EJECTOR): New magic cookie.
12511 (token::next): Handle LAST_PAGE_EJECTOR.
12512 (exit_groff): Set exit_started and done_end_macro instead of
12513 exit_flag. Call top_level_diversion::set_last_page. Push a
12514 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
12515 another ejection after setting seen_last_page_ejector.
12517 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
12519 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12521 * macros/tmac.e (TH): Make sure there's room for the initial
12524 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12525 Set FVS in points rather than units.
12527 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
12529 * troff/div.c (top_level_diversion::add_trap): Don't consider the
12530 position of empty slots.
12532 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
12534 * ps/devps/S: Fix height and depth of parenrightex.
12535 * ps/devps/symbol.diff: Regenerate.
12537 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
12539 * tmac.e (u): Do underlining as in -mgs.
12541 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
12543 * tty/tty.c (tty_printer::end_page): If overstriking is
12544 suppressed, still turn overstruck horizontal and vertical lines
12547 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12550 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12552 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
12554 * Version 1.05 released.
12556 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
12558 * tty/tty.c: Instead of keeping an array of glyphs and then
12559 sorting it, keep a ordered linked list of glyphs for each line.
12561 * driver/driver.h: Include stddef.h.
12563 * tty/tty.c (compare_glyph):
12564 * refer/refer.c (rcompare):
12565 * troff/env.c (compare_ranges): Arguments of qsort comparison
12566 function should be const void *.
12568 * troff/number.c (parse_term):
12569 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12572 * refer/label.y (consider_authors): Don't access variables
12573 constructed under a condition outside that condition: put braces
12574 round for statement containing declaration; redeclare use of same
12577 * pic/pic.y (text_expr): Delete production that allows
12578 parenthesised text_expr.
12579 (expr): Allow a conditional_expr to appear in parentheses.
12580 (conditional_expr): Rename to any_expr.
12582 * mm: Install new version 1.01 from jh.
12584 * lib/font.c (font::get_width): Cache scaled widths.
12585 (font::font): Initialize widths_cache.
12586 (font::~font): Destroy widths_cache.
12587 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12589 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
12591 * c++test.c, c++test.ref: New files.
12592 * Makefile: Check that the C++ compiler works.
12594 * ps/tmac.pspic (PSPIC): Do a break.
12596 * ps/tmac.ps: Move definition of PSPIC into...
12597 * ps/tmac.pspic: New file.
12598 (PSPIC): Draw box around picture, but make it invisible to grops.
12599 * ps/tmac.ps: Load tmac.pspic.
12600 * ps/Makefile: Install tmac.pspic.
12602 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
12604 * lib/font.c (scale_round): If n is negative,
12605 subtract .5 before truncating floating point result.
12607 * lib/fontfile.c: Include <errno.h>.
12609 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
12611 * driver/input.c (get_char): Inline. Don't update current_lineno.
12612 Change callers to up date current_lineno if necessary.
12613 Use get_char() instead of getc(current_file).
12615 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
12617 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12619 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
12621 * tty/tty.c (tmac.tty): Define \(rg as (R).
12623 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
12625 * lib/lib.h: New define a_delete.
12626 * Use a_delete instead of delete when deleting an array of objects
12627 without destructors.
12629 * lib/lib.h: Rename adelete to ad_delete.
12630 * Change uses of adelete.
12632 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
12634 * eqn/eqn.y: Include lib.h.
12636 * troff/node.c (grow_font_table): Delete old_font_table.
12638 * mm: Install new version from jh.
12640 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
12642 * tbl/table.h (format_type): Make global instead of local to class
12643 entry_format. Prefix enumerators with FORMAT_.
12644 * tbl/table.c, tbl/main.c: Corresponding changes.
12645 * refer/token.h (token_type): Make global. Prefix enumerators
12647 * refer/token.[ch]: Corresponding changes.
12648 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12650 * troff/div.c (node::set_vertical_size): Don't name argument.
12652 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
12654 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12655 * lib/lib.h: Define adelete accordingly.
12656 * pic/object.c (graphic_object::graphic_object):
12657 * tbl/main.c (format::~format):
12658 * tbl/table.c (table::~table):
12659 * refer/ref.c (reference::~reference, reference::merge,
12660 reference::insert_field, reference::delete_field): Use adelete.
12662 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12664 * tbl/table.h: Corresponding changes.
12666 * common.c (common_output::dashed_arc, common_output::dotted_arc):
12667 Ensure total_angle is positive.
12669 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
12671 * refer/ref.c (reference::merge, reference::insert_field,
12672 reference::delete_field): Avoid delete[0].
12674 * refer/token.c (init_special_chars): Move calls to cmupper
12675 outside calls to init_two_char_letter to work around bug in gcc
12678 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
12680 * lib/new.c (operator new): Use __builtin_new for g++.
12682 * pic/object.c (graphic_object::~graphic_object): Don't use
12685 * pic/object.c (output::compute_scale): Initialize max_width and
12688 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
12690 * troff/input.c (write_request): Call fflush.
12692 * troff/node.h (class composite_node): Move declaration to node.c
12693 * troff/input.c (charinfo_to_node): Rename to ...
12694 (charinfo_to_node_list): Return node list rather than composite
12696 * troff/node.c (make_composite_node): New function.
12697 (make_node, add_char): Call make_composite_node instead of
12699 (class composite_node): Add a tfont * member. Delete font_size
12701 (composite_node::composite_node, composite_node::copy,
12702 composite_node::size): Corresponding changes.
12703 (composite_node::tprint): Provide constant spacing, emboldening
12704 and track kerning as specified in tfont.
12705 (composite_node::width): Change width calculation accordingly.
12706 * troff/env.h (environment::composite): New member.
12707 (environment::is_composite, environment::set_composite): New
12709 * troff/env.c (environment::environment): Initialize composite.
12710 * troff/input.c (charinfo_to_node): Call
12711 environment::set_composite.
12712 * troff/node.c (make_composite_node, make_glyph_node): Use the
12713 plain version of the tfont if the environment is composite.
12715 * troff/node.c (font_info::get_space_width): Additional argument
12716 giving space_size. Handle constant space correctly. Scale by
12717 space_size unless constant spaced.
12718 (env_sentence_space_width): New function.
12719 * troff/node.h: Declare it.
12720 * troff/env.h (environment::get_space_size,
12721 environment::get_sentence_space_size,
12722 environment::get_narrow_space_width,
12723 environment::get_half_narrow_space_width): Make inline.
12724 (environment::get_space_width): Make inline. Just call
12726 * troff/env.c: Delete definitions for funtions made inline.
12727 (environment::space_newline, environment::space): Use
12728 env_sentence_space_width(). Don't scale by space_size.
12729 * troff/node.h: Move declarations of env*space_width() functions
12732 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
12734 * macros/tmac.s (PS): Don't try to set negative indent.
12736 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
12738 * pic/pic.y: Fix min function.
12740 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
12742 * man/mdate.sh: Clear LANGUAGE.
12744 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
12746 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12747 * pic/lex.c: New COMMAND keyword.
12748 * pic/pic.y (print_args, print_arg): New rules.
12749 (placeless_element): Use print_args for PRINT.
12750 New COMMAND element.
12752 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
12754 * troff/input.c (terminal): Handle missing argument correctly.
12756 * pic/pic.y (text_expr): New rule.
12758 * pic/pic.y: Implement := operator.
12760 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
12762 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12765 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
12767 * ps/devps/dingbatsrmap: Include this in the distribution.
12769 * macros/tmac.doc: Replace with new version from 2nd Networking
12770 Release. Fix loading of doc-* files.
12771 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12772 * macros/tmac.doc.old: New file. Apply fixes that had been
12773 applied to old tmac.doc.
12774 * macros/tmac.andoc: Check that we're running under groff.
12775 * macros/Makefile: Rework.
12777 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
12779 * tbl/table.h (format_type):
12780 * refer/token.h (token_type): If NESTED_TYPES is defined, use
12781 typedef to make these types visible at file scope.
12782 * Makefile: Add NESTED_TYPES configuration option.
12784 * troff/div.c (mark): At the top level use the value of
12785 nl_reg_contents rather than the current vertical position.
12787 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
12789 * tty/tty.c: Implement \D for horizontal or vertical lines.
12790 (tty_printer::set_char): Use vec_used+2 as serial number.
12791 Don't allow size of vector to exceed USHRT_MAX-2.
12792 Split off part into...
12793 (tty_printer::add_char): New function.
12794 (tty_printer::draw): New function.
12795 (compare_glyph): Handle equal serial numbers.
12796 (tty_printer::end_page): Handle overstruck characters from \D.
12797 (main, usage): Implement -d option.
12799 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
12801 * tbl/main.c (process_format):
12802 * eqn/text.c (split_text):
12803 * troff/input.c (token::next): Use inner block for declarations
12804 with initializers in switch statement.
12806 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
12808 * pic/common.c (common_output::dash_line): Cope with zero-length
12811 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
12813 * Version 1.04 released.
12815 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
12817 * macros/tmac.an (TH): Define a macro an-init to define variables
12818 based on command line arguments.
12819 (an-header): Call it.
12821 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
12823 * Makefile (install.mm): Rename to install.dwbmm.
12825 * Makefile: Integrate mm.
12826 * mm: New directory.
12828 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
12830 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
12833 * pic/troff.c (troff_output::simple_spline,
12834 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
12835 shadowing parameter.
12837 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
12839 * lib/ptable.h: Add explicit casts when converting from unsigned
12842 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
12843 * dvi/devdvi/Makefile: Install SA, SB.
12845 * refer/indxbib.c: Add declaration of mktemp.
12847 * refer/lookbib.c: Add declaration of isatty.
12849 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
12851 * pic/lex.c (interpolate_macro_with_args): While collecting
12852 arguments, keep track of whether we're in a string.
12854 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
12856 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
12857 down with \v, so as to avoid problems with top of page trap
12858 setting no space mode.
12860 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
12862 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
12864 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
12866 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
12867 Improve error message.
12869 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
12871 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
12874 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
12876 * groff.c (possible_command::execp): Always use _exit() after a
12879 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
12880 NO_SYS_WAIT_H configuration options.
12881 * groff.c: Use these options. Use POSIX-style macros to extract
12882 fields from the status returned by wait().
12884 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
12886 * tbl/table.c (table::compute_separation_factor): Allow the
12887 separation factor to drop to 0.
12889 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
12891 * refer/search.c: Include <errno.h>.
12893 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
12895 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
12897 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
12900 * pic/lex.c (input_stack::bol): Move definition out of class body.
12902 * pic/main.c: On MSDOS munge argv[0].
12904 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
12906 * lib/ptable.c (hash_string): Use unsigned long rather than
12908 (next_ptable_size): Use unsigned rather than int. Give an error
12909 message if we've hit the largest table size.
12910 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
12913 * pic/object.h (object_spec): Make flags unsigned long. Declare
12914 flags as const unisgned long rather than as enums.
12916 * pic/output.c: Deleted.
12918 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
12920 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
12921 Add additional argument.
12922 (line_entry::note_double_vrule_on_{left,right}): Set value of
12923 douvle_vrule_on_{right,left} flag according to argument.
12924 (simple_line_entry::simple_print,
12925 simple_line_entry::double_line_print): If adjacent to double vrule
12926 on a corner extend rather than shorten the rule by half the double
12929 * troff/number.c (parse_term): In checking for overflow, handle the
12930 case where the current horizontal position is negative.
12932 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
12934 * pic/object.c (draw_arrow): Check for object having zero length.
12936 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
12938 * eqn/main.c (do_file): Split off inline equation handling into...
12939 (inline_equation): New function. Search for starting delimiter
12941 (delim_search): New function. Don't recognize a delimiter that
12942 occurs in the name of an escape sequence, number register, string
12945 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
12947 * eqn/delim.c (delim_box::compute_metrics): Don't call
12948 define_extensible_string if left is 0.
12949 (delim_box::output): Don't print the left delimiter if left is 0.
12950 (delim_box::debug_print): Check for left == 0 before calling printf.
12952 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
12954 * troff/Makefile (majorminor.c): Include only digits in
12957 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
12959 * refer/dirnamemax.c: new file.
12960 * refer/genlimits.c: Deleted.
12961 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
12962 Don't check path length.
12963 * refer/Makefile: Add dir_name_max.o; delete genlimits.
12964 * Makefile: Add PATHCONF_MISSING option.
12966 * refer/indxbib.c (get_cwd): New function.
12967 (main): Use get_cwd().
12968 * lib/getcwd.c: New file.
12969 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
12970 GETCWD in SUBFLAGS.
12971 * lib/Makefile: Compile getcwd.o.
12973 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
12976 * refer/indxbib.c (main): Check success of mktemp.
12978 * lib/tmpfile.c: New file.
12979 * lib/Makefile: Add tmpfile.c.
12980 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
12981 * ps/ps.h: Delete declaration of mktemp().
12982 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
12983 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
12984 * driver/driver.h: No need now to include errno.h.
12986 * everywhere: Set errno to 0 before calling fopen().
12988 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
12989 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
12990 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
12992 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
12994 * troff/env.h (translate_space_to_dummy): Declare it.
12995 * troff/env.c (environment::space_newline, environment::space):
12996 If translate_space_to_dummy is set then make the width of spaces 0.
12997 * troff/input.c (translate): If the second character of a
12998 translation is a space, translate to unbreakable space. If the
12999 first character is a space, set or clear translate_space_to_dummy
13000 according to whether the second character is \&. Weird!
13002 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
13004 * groff.c (run_commands): Don't use non-zero exit code because a
13005 command gets SIGPIPE.
13007 * groff.c, groff.sh: Use -mXps with -TXps.
13009 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13010 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13011 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13012 (ps_printer::special): New specials invis and endinvis.
13013 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13014 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
13015 (ps_printer::end_page): Check that invis_count == 0.
13016 (ps_printer::invis_count): New member.
13017 (ps_printer::ps_printer): Initialize invis_count to 0.
13019 * troff/env.c (environment::hyphenate_line): Hyphenation
13020 indicator at beginning of word inhibits splitting after -, \(em
13023 * pic/pic.y (element): Allow another element to follow } without
13024 any intervening separator.
13026 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
13028 * pic/lex.c (get_delimited): Allow tabs before delimiter.
13030 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
13032 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
13033 declaration of wait() in header files.
13034 * Makefile: Get rid of -DHAVE_UNION_WAIT.
13036 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
13038 * lib/lib.h: Declare return type of strerror as char *.
13040 * man/Makefile: Add g flag to sed substitutions.
13041 * Makefile (shgroff, bindist): Likewise.
13043 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
13045 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
13046 * ps/devps/prologue (PBEGIN): Define showpage after pushing
13049 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
13051 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
13054 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
13056 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
13059 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
13061 * troff/input.c (define_number_reg): If currently undefined,
13062 don't define it if the argument is an invalid expression.
13064 * Makefile: Ignore return value of `if' commands without `else'
13067 * Makefile: Split up CPPDEFINES into a series of separate
13068 configuration options.
13070 * troff/input.c (init_registers): Use time_t instead of long
13071 unless LONG_FOR_TIME_T is defined. Use returned result rather
13072 than passing pointer.
13073 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
13075 * lib/Makefile (fontpath.h): Use gendef.
13077 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
13079 * troff/input.c (input_iterator::shift): Delete argument name.
13080 * troff/node.c (suppress_output_file::really_begin_page,
13081 suppress_output_file::really_transparent_char, node::ascii_print,
13082 node::tprint): Delete names of unused arguments.
13084 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
13086 * refer/label.y (string): Pass $4 to command_error.
13088 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
13090 * Version 1.03 released.
13092 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
13094 * Makefile: Pass definition of SHELL in SUBFLAGS.
13096 * gendef: New file.
13097 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
13098 ps/Makefile: Use gendef to construct header files that are
13099 constructed from the Makefile.
13101 * macros/Makefile: make all should build stripped version of tmac.e.
13103 * refer/Makefile (clean): Remove y.output.
13105 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
13107 * ps/pfbtops.c (main): Add -v option which prints out a version
13109 * ps/Makefile (pfbtops): Link with libgroff.a.
13111 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
13113 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
13114 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
13116 * refer/lkbib.c (main): Always terminate reference with blank
13118 * refer/lookbib.c (main): Likewise.
13120 * refer/linear.c (file_buffer::load): Check that the file is not a
13123 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13124 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13125 Delete second inclusion of <sys/param.h>.
13127 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
13129 * troff/token.h (token::special): Deleted.
13131 * tbl/main.c (process_format): Rework so that opt->tab_char is
13132 recognized only when appropriate.
13134 * ps/Makefile (clean): Remove pfbtops.
13136 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
13138 * lib/font.c (text_file::next): Don't return if we have got a
13141 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
13143 * refer/refer.c (store_reference): Get hash code from old_table[i]
13144 when rehashing the table.
13146 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
13148 * eqn/box.c (box::top_level): Save size and prev size using \R and
13149 restore it afterwards. Set the size to the size at the beginning
13151 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
13152 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
13154 * refer/Makefile (limits.h): Use ./genlimits.
13156 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
13158 * refer/index.c: Delete declarations of stat() and fstat().
13160 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
13162 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13164 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
13166 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13168 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
13170 * troff/input.c (token::get_char): Handle \e.
13172 * refer/linear.c: Delete declarations of fstat() and stat().
13174 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
13176 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13177 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13179 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
13181 * troff/input.c (do_define_macro): Improve error handling for end
13182 of file while defining macro.
13184 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
13186 * eqn/box.h: Fix declaration of set_gsize.
13187 * eqn/box.c (set_gsize): Make argument const char *.
13188 (gsize): Declare as char *.
13189 * eqn/main.c (main): Don't convert gsize to int.
13190 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13192 * Version 1.02 released.
13194 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
13196 * macros/tmac.andoc: New file.
13197 * macros/Makefile: Install tmac.andoc.
13199 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13200 operator new and delete on OP_DELETE_BROKEN not being defined.
13201 * Makefile: Mention OP_DELETE_BROKEN.
13203 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
13205 * Makefile (bindist): Pass SUBFLAGS.
13207 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
13209 * Makefile, groff.c: Pass definitions to groff.c via device.h.
13211 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13214 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13216 * ps/ps.h, ps/psrm.c: Make comment_table and
13217 header_comment_table local to resource_manager::process_file.
13219 * groff.sh: With -TXps pass -printCommand option to gxditview.
13221 * groff.c (possible_command::print): Implement using
13222 append_arg_to_string.
13224 * xditview: Merge in new implementation with own ChangeLog.
13226 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
13228 * groff.c (main): Implement PRINT_OPTION.
13229 (append_arg_to_string): New command.
13230 (device_table): Set PRINT_OPTION flag for Xps.
13232 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
13234 * troff/groff.h: Rename to troff.h.
13236 * pic/lex.c (lookup_keyword, docmp): New functions.
13237 (get_token): Use new lookup_keyword.
13238 Don't include key.h.
13239 * pic/key.[ch], pic/pic.gperf: Deleted.
13240 * pic/Makefile: Remove gperf stuff.
13242 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13244 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13246 * troff/Makefile, troff/node.c: Move definition of
13247 STORE_WIDTH into node.c.
13249 * etc/grog.pl, etc/grog.sh: Support -mdoc.
13251 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
13253 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13254 dvi/devdvi/texb.map: Add lq and rq.
13255 dvi/devdvi: Regenerate fonts.
13256 * ps/devps/textmap: Add lq and rq.
13257 * ps/devps: Regenerate fonts.
13258 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13259 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13261 * pic/object.c (position_rectangle): When checking radius
13262 cope with possiblity that width or height is negative.
13263 (box_object::box_object): Have separate xrad and yrad with
13264 signs matching signs of dim components.
13265 (box_object::{north,south}_{east,west}): Use xrad and yrad.
13266 (box_object::print): With rounded boxes use absolute values
13267 for dim and rad arguments.
13269 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13272 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13274 * various files: Add explicit destructors to keep Saber CC +d
13277 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
13279 * eqn/box.c (box::top_level): Restore fonts correctly after
13280 font changes in line containing inline equation. Also
13281 restore previous font as well as current font.
13282 * eqn/pbox.h: Define necessary string and register names.
13284 * troff/input.c (token::next): Case 'R' calls do_register.
13285 (do_register): New function.
13287 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
13289 * groff.c, groff.sh: Support Xps device. Allow each device
13290 to have a pseudo_name and a real_name.
13292 * groff.c (run_commands): Don't print `Broken pipe' messages.
13294 * ps/pfbtops.c: New file.
13295 * ps/Makefile: Add pfbtops.
13297 * troff/number.c (parse_term): Improved error message.
13299 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
13301 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13303 * Makefile: Integrate refer.
13304 * refer: New directory.
13305 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13306 man/lkbib.man: New files.
13307 * man/Makefile: Support refer man pages.
13309 * lib/lib.h: Declare is_prime.
13310 * lib/prime.c: New file.
13312 * troff/input.c (macro_source): New function.
13313 (init_input_requests): Bind "mso" to macro_source.
13315 * troff/env.c (environment::possibly_break_line): Maintain
13316 pointer to pointer to node to be split in ndp so as to avoid
13317 using address of freed node.
13319 * troff/env.c (environment::hyphenate_line): Maintain pointer to
13320 pointer to first node to be hyphenated in startp so as to
13321 avoid using address of freed node.
13323 * troff/env.c (class trie, class hyphen_trie): Make the
13324 elements of the trie be of type char not unsigned char.
13325 Declare arguments to be const char* instead of unsigned char *.
13327 * troff/env.c (hyphenate): Initialize hbuf[0].
13329 * troff/input.c (set_string): Declare p to be char * and cast
13330 *p to unsigned char when necessary.
13332 * troff/input.c (do_define_macro): Declare s to be const
13333 char*. Cast element to unisgned char when necessary, Declare
13334 d to be an int. Handle EOF better.
13336 * troff/Makefile, troff/input.c: Different scheme for passing
13337 definitions of MACROPATH, HYPHENFILE and DEVICE.
13339 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
13341 * tty/devascii/R.proto: Delete entry for em.
13342 * tty/devlatin1/R.proto: Likewise.
13344 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
13346 * troff/input.c (translate): Stop when we get a space. Treat eof
13349 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13351 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
13353 * tbl/main.c (process_format): A font name following a `f'
13354 modifier that starts with a digit can be only one character long.
13355 Also deal with EOF on the second character of the font name.
13357 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
13359 * troff/input.c (token::next): Turn \~ into an
13360 unbreakable_space_node.
13361 * troff/node.c (unbreakable_space_node): New class.
13362 * troff/node.h: Declare it.
13364 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
13366 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
13367 it's >= 0, before outputting it as a single byte.
13369 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
13371 * lib/font.c: Make font_char_metric::code an int.
13372 (font::get_code): Change return type to int.
13373 (font::load): Allow code to be arbitrary integer.
13374 * lib/font.h (font::get_code): Change return type to int.
13375 (font::number_to_index): Change argument type to int.
13376 * troff/input.c (token::next): In case 'N', allow any value.
13377 Store value in token::val.
13378 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13379 (token::get_char, token::add_to_node_list, token::process): Get
13381 (charinfo::set_number): Change argument to int.
13382 (charinfo::get_number): Require that NUMBERED flag be set.
13383 (get_charinfo_by_number): Store numbered characters not between 0
13384 and 255 in a dictionary.
13385 * troff/charinfo.h (get_charinfo_by_number): Change argument type
13387 (charinfo::number): Change type to int.
13388 (charinfo::set_number): Change type of set_number to int.
13389 * troff/node.c (troff_output_file::put_char_width,
13390 troff_output_file::put_char): Test whether character is numbered
13391 using charinfo::numbered().
13392 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13394 * lib/nametoindex.c: New implementation to cope with arbitrary
13397 * troff/input.c (token::operator==): Test val for
13398 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13401 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13402 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
13404 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
13406 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
13409 * all Makefiles: rm targets of cp and >.
13411 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13414 * eqn/lex.c (def_table): Add dollar.
13416 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
13418 * troff/input.c (do_width): Push back newline before closing delim
13421 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
13423 * groff.c (possible_command::prepend_arg): New function.
13424 (main): Prepend device -m option.
13425 * groff.sh: Put device -m options before command-line options.
13427 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
13429 * macros/tmac.an (IP): Quote argument to TP.
13431 * ps/ps.c (main): New option -b, which sets...
13432 (broken_flags): New variable.
13433 (ps_printer::~ps_printer): Incorporate the setup section in the
13434 prolog if (broken_flags & NO_SETUP_SECTION).
13435 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13436 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13437 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13438 ps_printer::print_needed_font_comment,
13439 ps_printer::print_supplied_font_comment,
13440 ps_printer::print_include_font_comments,
13441 ps_printer::lookup_doc_font, ps_printer::download_fonts,
13442 ps_printer::read_download_file, read_document_fonts, add_font,
13443 skip_line, parse_fonts_arg, document_font::document_font,
13444 document_font::~document_font, document_font::download,
13445 ps_output::include_file): Deleted.
13446 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13447 rather than %!PS-Adobe-2.0. Make calls to
13448 resource_manager::need_font for each font that we used. Replace
13449 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13450 print_supplied_font_comment, print_needed_font_comment by call to
13451 resource_manager::print_header_comments. Output %%Orientation
13452 comment. Output %%Requirements: numcopies comment if ncopies > 1.
13453 Don't output the prolog directly. Instead call
13454 resource_manager::output_prolog. Only define #copies when ncopies
13455 > 1. Delete calls to print_include_font_comments and
13456 download_fonts. Add call to resource_manager::document_setup.
13457 (ps_printer::do_file): Call resource_manager::import_file instead
13458 of including it ourselves.
13459 (ps_printer::do_import): Likewise. Also don't call
13460 merge_import_fonts. Push userdict on the dictionary stack before
13461 and pop it afterwards.
13462 Move declaration of ps_output into ps.h.
13463 * ps/psrm.c: New file implementing resource_manager class.
13464 * ps/ps.h: New file declaring ps_output and resource_manager
13466 * ps/devps/zapfdr.ps:
13467 * ps/devps/symbolsl.ps:
13468 * ps/devps/prologue: Use 3.0 conventions.
13469 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13470 Add default definition of BROKEN_SPOOLER_FLAGS.
13471 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
13472 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13474 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
13476 * etc/grog.pl: New file.
13477 * Makefile (GROG): New variable.
13478 Add GROG to SUBFLAGS.
13479 * etc/Makefile (GROG): New variable.
13480 (install.nobin): Install $(GROG) rather than grog.sh.
13482 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
13484 * eqn/special.c (special_box::compute_metrics): Make the input and
13485 output strings the same. Get the new height and depth from the
13486 predefined height and depth registers. Also make subscript kern
13487 and skew available.
13488 (special_box::compute_subscript_kern, special_box::compute_skew):
13491 * eqn/box.c (pointer_box::compute_skew,
13492 simple_box::compute_metrics, box::top_level)
13493 * eqn/text.c (prime_box::compute_metrics,
13494 prime_box::comput_subscript_kern)
13495 * eqn/limit.c (limit_box::compute_metrics):
13496 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13497 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13498 negative numbers in `nr' requests with a leading 0.
13500 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
13502 * eqn/special.c: New file.
13503 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
13504 Add new rule for simple.
13505 * eqn/lex.c (token_table): Add SPECIAL.
13506 * eqn/box.h: Declare make_special_box.
13507 * eqn/Makefile: Add special.[co].
13509 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
13511 * ps/devps/prologue: Possibly set packing to true while defining.
13512 Create grops dictionary here. Initialize local variables before
13513 defining procedures.
13514 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13515 the dictionary stack. Set strokeadjust and overprint to false if
13516 the relevant operators are defined.
13517 (PEND): New procedure.
13518 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13519 prologue. Do everything else in the setup section.
13520 (ps_printer::do_import): Just call PBEGIN and PEND around the
13521 picture. Also push userdict before, and pop it afterwards.
13523 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
13525 * troff/node.c (bracket_node::tprint): Brackets were being printed
13528 * macros/tmac.an (SH, SS): Set fill mode.
13530 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
13532 * troff/div.c (top_level_diversion::begin_page): Set
13533 high_water_mark to 0.
13535 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
13537 * man/mdate.sh: New file.
13538 * man/mdate.c: Deleted.
13539 * man/Makefile: Use mdate.sh instead of mdate.
13542 * eqn/lex.c (do_gsize): Supply missing argument to error message.
13544 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
13546 * man/mdate.c: New file.
13547 * man/*.man: Replace modification date by @MDATE@.
13548 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13549 (mdate): New target.
13551 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13552 Remove illegal input characters.
13554 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
13556 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13558 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
13560 * troff/div.c (begin_page): Change behaviour when
13561 !first_page_begun and !break_flag.
13563 * troff/input.c (do_name_test): Return 0 if argument is empty.
13565 * troff/input.c (read_long_escape_name): Require closing ] to be
13566 at same input level as opening [.
13568 * troff/input.c (read_increment_and_escape_name): New function.
13569 (get_copy, process_input_stack): Use this for \n.
13571 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
13573 * troff/div.c (top_level_diversion::begin_page): Ignore the
13574 current value of page_number if !first_page_begun.
13576 * groff.c (main): Fix declaration of buf.
13578 * troff/input.c (do_name_test): New function.
13579 (token::next): Implement \A.
13580 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13581 (token::description, token::add_to_node_list, token::process):
13582 Handle TOKEN_ESCAPE.
13583 * troff/token.h: New token TOKEN_ESCAPE.
13585 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
13587 * pic/main.c (do_picture): Allow space before and after filename
13588 following `<'. Check that the filename is not empty.
13590 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
13592 * Version 1.01 released.
13594 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13596 * dvi/tmac.dvi: ftr HR to H.
13598 * macros/tmac.e: Round up computation of $r.
13600 * xditview/tmac.X: Don't give up completely in compatibility mode.
13601 Use \n(.s instead of \n[.s].
13603 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13604 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13605 Add u to factors inside \s[...]. Rename frac to dvi-frac.
13606 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13607 short names in the char definitions.
13609 * ps/tmac.ps: Don't give up completely in compatibility mode.
13610 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13611 quote in front of \n(.s. Add u to factors inside \s[...].
13613 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
13615 * tty/tmac.tty: Call the nroff request.
13617 * macros/tmac.e ((x, )x): Better definitions that work properly
13619 (@0, @1): Helper macros for (x.
13621 * macros/tmac.e ($s, hl): Use \l rather than \D.
13623 * tty/tmac.tty: Make it work better in compatibility mode.
13624 (pchar): Rename to tty-char.
13626 * macros/tmac.e (@E): New macro.
13627 (r, i, b, rb, bi): Use @E.
13629 * macros/tmac.e (@F): Don't use (;...) syntax.
13631 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
13632 it was modified for groff.
13634 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13636 * macros/tmac.e (<., .>): Removed.
13637 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13639 * macros/tmac.e: Remove check that groff is being used.
13641 * macros/tmac.e (@C): Change families only if using groff; turn
13642 compatibility mode off while changing familes. Save compatibility
13643 mode before changing families and restore it afterwards.
13645 * macros/tmac.e (@h): Remove test for offset + line length.
13647 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
13648 (lo, th, ac): Define to call @S instead of using als.
13650 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13651 the ratio of the vertical spacing to the point size in units
13652 expressed as a percentage. Use these instead of $10r and $10R,
13653 Delete $10r and $10R.
13655 * lib/font.c (font::load): In default computation of space_width,
13656 divide by sizescale. Use scale_round.
13658 * macros/tmac.an (TP): Don't call `nf'.
13659 (an-do-tag): Don't call `fi'.
13661 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
13663 * troff/input.c (process_input_stack): Handle the case where
13664 spaces at the beginning of an input line are followed by a
13667 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
13669 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13670 * groff.sh: Use pic -x with the dvi device.
13672 * dvi/devdvi/FontMakefile (H): Don't use -s.
13674 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13675 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13676 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13679 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
13681 * ps/psfig.diff: New file.
13682 * ps/tmac.psfig: New file.
13684 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
13686 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13687 (]-): Don't call ref*do-tl.
13689 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13691 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13692 (fn@do-FS): Rename to fn*do-FS.
13694 * troff/input.c (transparent_translate): New function.
13695 (process_input_stack): Apply transparent_translate before calling
13696 diversion::transparent_output(unsigned char).
13698 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
13700 * troff/input.c (do_define_macro): Define the macro before calling
13703 * xditview/Makefile: Add DEVICES variable. Change install target
13706 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
13708 * groff.c (run_commands): Handle the possibility that there are
13709 child processes other than those forked by us.
13711 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
13713 * lib/string.c (string::append): New function.
13714 * lib/stringclass.h: Declare it.
13716 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
13718 * eqn/main.c (main): New option -N which sets
13719 no_newline_in_delim_flag.
13720 (do_file): If no_newline_in_delim_flag is set don't allow newlines
13722 * groff.c (main): Pass -N on to eqn.
13723 (help, synopsis): Mention -N.
13724 * groff.sh: Implement -N.
13726 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
13728 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13729 (]-): Call ref*do-tl if ref*need-tl is non-zero.
13730 (XP): Allow as initializer.
13732 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
13734 * troff/env.c (environment::wrap_up_field): If field_spaces are
13735 non-zero and we have a current_tab, subtract padding from
13736 tab_distance. If this makes tab_distance <= 0, use the next tab
13737 stop instead. If there isn't any next tab or it's a left tab,
13738 wrap up the current tab.
13739 (environment::start_field): Initialize tab_precedes_field.
13740 (environment::wrap_up_tab): If there's a current field, update
13741 pre_field_width, field_distance and tab_precedes_field.
13742 * troff/env.h (environment::tab_precedes_field): New member.
13744 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
13746 * ps/ps.c (ps_printer::do_file): New function.
13747 (ps_printer::special): Bind to `file' special.
13748 (ps_printer::do_exec): Set ndefined_styles to 0.
13750 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
13752 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13753 Avoid stripping first character from the start of unrecognized
13754 escapes. Use lex_error instead of error to report errors.
13755 * eqn/lex.c (get_token): Rework handling of escapes.
13756 (lex_error): Move declaration into...
13759 * xditview/xditview.c (main): Make -page option work.
13761 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13763 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
13765 * macros/tmac.s (B2): Correct size of box.
13767 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
13769 * macros/tmac.s (B2): Postpone drawing the box until in the
13770 top-level diversion.
13772 * tty/tmac.tty: Add font translations for C, CR, CW.
13774 * groff.c (synopsis, help): Document -i.
13775 * groff.sh: Implement -i.
13777 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13778 Simplify the construction of SN.
13780 * troff/number.c (parse_term): Give `|' a higher precedence.
13781 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13784 * macros/tmac.s (B2): Use par@finish instead of par@reset.
13786 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
13788 * lib/string.c (string::move): New function.
13789 * lib/stringclass.h: Declare it.
13791 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
13793 * troff/env.c (distribute_space): Add optional argument
13795 (environment::wrap_up_field): Call distribute_space with
13796 `force_forward' argument of 1.
13798 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
13800 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13801 Inline it. Move reallocation into...
13802 (string::grow1): New function.
13803 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13804 dependencies to include library header files.
13805 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13807 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
13809 * macros/tmac.s (@NH): Use the same number registers than -ms does
13810 for the heading level counters. Use the same string that -ms does
13811 for the number for this heading.
13813 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
13815 * lib/new.c (operator new): Cast result of malloc to char *.
13817 * troff/input.c (spring_trap, lookup_request): Add assert that nm
13820 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
13822 * groff.c (main): Support -i.
13824 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
13826 * pic/pic.h: Include <osfcn.h>.
13828 * ps/ps.c: Add declaration of mktemp.
13830 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
13831 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
13832 argument as union wait *.
13833 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
13834 argument to union wait *.
13836 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
13838 * tty/tmac.tty: Add definition of \(co.
13840 * pic/object.c (make_arc): Only increase radius when radius
13841 strictly less than d.
13842 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
13845 * troff/env.c (environment::environment(symbol),
13846 environment::environment(const environment *)): Initialize
13849 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
13851 * tbl/main.c (main): Add exit(0).
13853 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
13855 * pic/main.c (main):
13856 * eqn/main.c (main):
13857 * tbl/main.c (main):
13858 * etc/soelim.c (main):
13859 * driver/printer.c (printer::~printer):
13860 * troff/node.c (real_output_file::~real_output_file,
13861 real_output_file::flush): Check for errors on stdout.
13863 * most files: Add 1991 to copyright notice.
13865 * macros/tmac.s: Don't test \n(.x and \n(.y.
13867 * troff/input.c (token::next): Rename `escape_char' label to
13868 `handle_escape_char' and `normal_char' label to
13869 `handle_normal_char'.
13871 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
13873 * groff.c (main, synopsis, help): Support -a option.
13874 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
13875 to trflags while parsing options.
13877 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
13879 * troff/number.c (parse_term): With `m', `M' and `n' scale
13880 indicators, convert scale factor to hunits before scaling.
13882 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
13884 * lib/font.c (scale_round): Better test for overflow when n is
13887 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
13889 * tbl/main.c (process_format): Add second argument of type
13890 options*. Change callers. Allow opt->tab_char as well as '\t'
13891 between format items.
13893 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
13895 * macros/tmac.an (PD): With no arguments, make sure register PD is
13897 (TH): Call PD with no argument, instead of setting register PD
13900 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
13902 * Version 1.00 released.
13904 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
13906 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
13908 * dvi/devdvi/DESC: Mount CW instead of CR.
13910 * dvi/tmac.dvi: Add definition of \(tm.
13912 * dvi/devdvi/texsy.map: Add lh, and rh.
13913 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
13914 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
13916 * dvi/devdvi/FontMakefile: Generate H from cmss10.
13917 * dvi/devdvi/Makefile: Install H.
13918 * dvi/devdvi/H: New file.
13920 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
13922 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
13925 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
13927 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
13929 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
13931 * macros/tmac.s (@EN): Handle the case where the equation is empty
13932 but the label is not.
13934 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
13936 * troff/groff.h: New warning category WARN_SPACE.
13937 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
13938 WARN_SPACE to warning_table.
13939 (interpolate_macro): Give a warning of type WARN_SPACE if the name
13940 is longer than two characters and is not defined, but the first
13941 two characters do make a defined name.
13943 * PROBLEMS: New file.
13945 * CHANGES: New file.
13946 * README-0.6, README-1.00: Deleted.
13948 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
13949 * xditview/devX75/Makefile: Make devX75-12.
13950 * xditview/devX100/Makefile: Make devX100-12.
13952 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
13953 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
13955 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
13957 * README-0.7: Rename to README-1.00.
13959 * macros/tmac.pic: New file.
13960 * macros/Makefile (install.nobin): Install tmac.pic.
13962 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
13964 * troff/env.c (hyphen_word): Correct the test for whether the
13965 token is a hyphen. Reset npos to 0.
13967 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
13969 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
13971 * macros/tmac.s (ds*common-end): Call par*reset.
13973 (par@reset-indent): Deleted.
13975 * macros/tmac.s (@IP): Divert the label.
13977 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
13979 * xditview/draw.c (setGC): Use a line width of .1m rather than
13980 .04m by default; round rather than truncate value.
13982 * tbl/table.c (class empty_entry): New class.
13983 (empty_entry::empty_entry, empty_entry::line_type): New functions.
13984 (table::add_entry): Represent empty entries by objects of type
13986 (table_entry::line_type): Return -1.
13987 (table::determine_row_type): Ignore entries with line_type 0.
13988 Treat type -1 as non-lines.
13990 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
13992 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
13993 macros/tmac.s: Rename \(-d to \(Sd.
13995 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
13997 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
13998 * xditview/libXdvi/DviChar.c: Likewise.
13999 * dvi/devdvi/texsy.map: Add `<<', `>>'.
14001 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
14003 * troff/div.c (top_level_diversion::begin_page): Call
14004 init_output() if the_output is 0.
14006 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
14008 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14010 (get_copy): Turn \E into ESCAPE_E.
14011 (token::process, asciify): Handle ESCAPE_E.
14013 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14015 (DS): Implement `.DS R'.
14017 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
14019 * macros/tmac.s (FS): New macro.
14021 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14023 * macros/tmac.s (cov*tl-init): Remove after first execution
14024 instead of aliasing to @nop. Call top of page macro explicitly
14025 instead of setting trap; call @init first. Set pg@top as top of
14027 (cov*auto-init): Deleted. Set cov*tl-init instead of
14028 cov*auto-init as top of page trap.
14029 (TL, LP): Do a break instead of calling cov*tl-init.
14030 (cov*print): With RP format but no TL, alias FS and FE to @FS and
14031 @FE; in this case also give a warning and always start another
14032 page. No need to set pg@top here.
14033 (cov*tl-init): Rename to cov*first-page-init.
14035 * macros/tmac.s (RP): Do `.pn 0'.
14036 (cov*tl-init): With RP format don't do `.pn 0'.
14038 * macros/tmac.s (pg@cs-top): Set no space mode.
14040 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
14041 (cov*ab-init): Alias TL, AU and AI to these.
14043 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
14045 * macros/tmac.s (@EQ): Move the space before the equation into @EN
14046 (@EN): Do nothing unless \n[dl] is > 0.
14048 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
14050 * pic/object.c (ellipse_object::radius): New function.
14052 * VERSION: Change version to 0.7.
14054 * tbl/table.c (block_entry::do_divert): Declare return type as
14056 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
14058 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
14060 * troff/column.c: New file.
14061 * troff/Makefile: Corresponding changes.
14063 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
14066 * troff/div.c (top_level_diversion::space): If the space causes
14067 the first-page transition and springs a trap, truncate the space
14070 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
14072 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
14075 * pic/troff.c (troff_output::line_thickness,
14076 troff_output::set_fill): Do a horizontal motion to compensate for
14077 the width of the \D escape sequence.
14079 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
14081 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
14084 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
14087 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
14088 Supply empty definition.
14089 (text_entry::simple_print, simple_text_entry::simple_print):
14090 Delete declarations.
14091 (table::add_entry): Represent empty entries by objects of type
14094 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
14096 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
14098 * tbl/table.c (left_text_entry::add_tab): New function.
14100 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
14101 initialize like LP.
14103 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
14105 * troff/env.c (environment::start_field): Give an error message if
14106 there is no next tab.
14108 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
14110 * troff/env.c (hyphenate): Skip initial elements with zero
14113 * macros/tmac.s (par@init): Keep VS in points rather than units.
14115 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
14117 * pic/main.c (main): Implement `-c' option.
14118 * pic/output.h: Declare make_tpic_output().
14119 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14121 (tpic_output): New class.
14122 (tpic_output::tpic_output, tpic_output::set_pen_size,
14123 tpic_output::command, make_tpic_output): New functions.
14125 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
14127 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
14128 if they're not already defined.
14129 * tbl/table.c (init_output): Don't test \n(.g.
14131 * troff/input.c (do_if_request): Delete `g' condition. Recognize
14132 `d', `r' and `c' conditions even in compatibility mode.
14134 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
14136 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14139 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
14141 * troff/env.h (environment::prev_line_interrupted): New member.
14142 (environment::get_prev_line_interrupted): New function.
14143 * troff/env.c (environment::newline): Set prev_line_interrupted.
14144 (environment::environment(const environment *),
14145 environment::environment(symbol)): Initialize
14146 prev_line_interrupted.
14147 * troff/input.c (process_input_stack): Don't give special
14148 treatment to space and newline at the beginning of the line if the
14149 previous line was interrupted.
14151 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
14153 * eqn/eqn.y: Disallow PRIME by itself.
14154 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14156 (def_table): Remove definition of '. Define prime to be `.
14158 * eqn/eqn.y: Split off part of rule `script' into a new rule
14161 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
14163 * macros/tmac.s ({, }): New string aliases.
14165 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
14167 * README-0.7: New file.
14169 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
14171 * macros/tmac.s: New file.
14172 * man/groff_ms.man: New file.
14173 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14174 * Makefile.bd: Similarily.
14175 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14176 definition of TMAC_S.
14177 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14178 * macros/TODO: New file.
14180 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
14182 * troff/env.c (right_justify): New function.
14183 (init_env_requests): Bind this to request "rj".
14184 (center_lines): Set right_justify_lines to 0. If we get a bad
14185 integer, center 1 line.
14186 (environment::environment(symbol), environment::environment(const
14187 environment *)): Initialize right_justify_lines.
14188 (environment::get_right_justify_lines): New function.
14189 (init_env_requests): Bind this to number_register ".rj".
14191 * troff/env.c (environment::choose_breakpoint): Implement
14192 hyphenation_margin and hyphenation_space.
14193 (environment::get_hyphenation_space,
14194 environment::get_hyphenation_margin): New functions.
14195 (init_env_requests): Bind these to .hys and .hym.
14196 (hyphenation_space_request, hyphenation_margin_request): New
14198 (init_env_requests): Bind these to hys and hym.
14199 (environment::environment(symbol), environment::environment(const
14200 environment *)): Initialize hyphenation_margin and
14202 * troff/env.h: Corresponding changes to class environment.
14204 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
14206 * troff/div.c (blank_line): Always do a break.
14208 * eqn/box.c (do_text): Turn off escapes while appending text to
14211 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
14213 * troff/input.c (while_break_request, while_continue_request): New
14215 (init_input_requests): Bind these to "break" and "continue".
14216 (while_depth, while_break_flag): New variables.
14217 (while_request): Update while_depth. Break out of loop if
14218 while_break_flag is set.
14220 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
14222 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14225 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
14227 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
14229 * stringify: New file.
14230 * Makefile (groff.o): Use stringify.
14232 * xditview/tmac.X: Remove definition of \(rn.
14233 * xditview/libXdvi/DviChar.c: Remove radicalex from
14236 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
14238 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14239 (alphabetic_block_entry::alphabetic_block_entry,
14240 alphabetic_block_entry::divert, alphabetic_block_entry::print):
14242 (block_entry::divert): Split off body into ...
14243 (block_entry::do_divert): If the block is alphabetic, subtract 2n
14244 from the line length; also update the span width to dl+2n, and the
14245 alphabetic span width to dl.
14247 * driver/input.c (do_file): While reading argument to D command,
14248 when expanding buffer, multiply szp by sizeof(int) rather than 2
14249 in the argument to memcpy.
14251 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14252 width of alphabetic columns.
14254 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
14256 * troff/node.c (lookup_family): Supply second argument to lookup.
14258 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14259 search, return immediately if v is 0.
14261 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14262 (troff_output::start_picture): Set this reg.
14263 (troff_output::end_picture): Remove this reg
14264 * eqn/box.c (box::extra_space): Don't produce `\x's if
14265 EQN_NO_EXTRA_SPACE_REG is defined.
14267 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14268 * eqn/text.c (split_text): Map ' to \(fm when it's the first
14271 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
14273 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14276 * troff/div.c (top_level_diversion::top_level_diversion):
14277 Initialize page_number to 0.
14279 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
14281 * groff/troff (environment::environment(const environment *)):
14282 Initialize name to e->name, rather than "anonymous".
14284 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
14286 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14287 requested_page. Split middle part into ...
14288 (FindPage): New function.
14289 (SetValues): If we don't yet know the last page, and the requested
14290 page is greater than the current page, call FindPage.
14291 Update the font_map_string before doing this.
14293 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14294 Translate \(lh and \(rh into left and right double arrows.
14296 * troff/node.c (class hyphen_inhibitor_node): New class.
14297 (hyphen_inhibitor_node::hyphen_inhibitor_node,
14298 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14299 hyphen_inhibitor_node::type,
14300 hyphen_inhibitor_node::get_hyphenation_type): New functions.
14301 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14302 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14305 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
14307 * troff/node.h (dummy_node::get_hyphenation_type,
14308 transparent_dummy_node::get_hyphenation_type): Declare them.
14309 * troff/node.c: (dummy_node::get_hyphenation_type,
14310 transparent_dummy_node::get_hyphenation_type): New functions.
14312 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
14314 * xditview/libXdvi/draw.c: If M_PI not defined after including
14315 math.h, then define it.
14317 * xditview/Makefile: Add definition of AR. Pass it to the submake
14319 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14321 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
14323 * troff/dictionary.h (object_dictionary::alias): Declare return
14325 * troff/dictionary.c (object_dictionary::alias): Return non-zero
14326 if the old name was defined.
14327 * troff/input.c (alias_macro): Give a warning if the old name was
14329 * troff/reg.c (alias_reg): Likewise.
14331 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
14333 * troff/input.c (token::next): Delete implementation of \R.
14335 * macros/Makefile: Strip comments from tmac.e while installing it.
14337 * troff/input.c: New variable `nroff_mode'.
14338 (troff_request, nroff_request): New functions.
14339 (init_input_requests): Bind `troff' and `nroff' to troff_request
14341 (do_if_request): Compute results of t and n conditions from
14344 * text/text.c (split_text): Fix typo in >=.
14346 * eqn/lex.c: Add definition of `==' to def_table.
14348 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
14350 * pic/tex.c (tex_output::start_picture): Change the definitions of
14351 \graph and \graphtemp so that they work properly with Plain TeX.
14353 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14354 argument to `ar' is not less than the first.
14356 * pic/pic.y: Allow a comma between elements of the variable list
14357 in the argument to `reset'.
14359 * pic/object.c (arc_object::arc_object): Fix computation of
14362 * eqn/main.c (main): Add exit(0).
14364 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
14366 * troff/div.c (begin_page): Test no_space_mode after doing the
14367 break, but still push the page ejector cookie before doing the
14368 break. Also set the next page number after doing the break.
14370 * xditview/xditview.c (NewFile): Don't set the title and icon name
14371 if this is the first file and its name is `-'.
14372 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
14373 the X75 and X100 devices.
14374 (main): If a device has the XT_OPTION flag set and there's exactly
14375 one file argument, pass the driver -xrm and -title options to set
14376 the icon name and window title to the name of the file.
14378 * troff/env.c (environment_switch): If there was an argument but
14379 it wasn't a valid number or name, then pop an environment but
14380 don't give an error message on underflow.
14382 * troff/number.c (start_number): Correct spelling in error message.
14384 * troff/input.c (token::delimiter): Don't print an error message
14387 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14388 ParseDrawFunction if dw->display_enable is true.
14390 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
14392 * pic/pic.y: Parse text positioning like normal attributes, so as
14393 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
14394 positioning attribute.
14396 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
14398 * tbl/main.c (process_data): When in state START while reading a
14399 text block, don't change to state MIDDLE if c is a newline.
14401 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
14403 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14404 so as to avoid shadowing parameter.
14406 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
14408 * tbl/table.c (trim_space): Deleted.
14409 (table::add_entry): Don't call trim_space.
14411 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
14413 * VERSION: Change version to 0.6.
14415 * troff/number.c (parse_expr): Make == work.
14417 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
14419 * man/grog.man: New file.
14420 * man/Makefile: Add grog.n to MAN1PAGES.
14421 * etc/grog.sh: New file.
14422 * etc/Makefile: Install grog.sh as grog.
14424 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
14426 * troff/input.c (token::next): Implement \E.
14428 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
14430 * xditview/tmac.X: Change font translations to match tmac.ps.
14432 * troff/input.c (non_empty_name_warning): Don't give a warning if
14433 `\{' terminates the name.
14435 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
14437 * ps/devps/symbol.diff: New file.
14438 * ps/devps/FontMakefile: Mention symbol.diff.
14440 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
14442 * troff/node.c (font_position): Use get_long_name to read the
14445 * troff/env.c (environment_switch): If we get a number that's < 0
14446 or >= NENVIRONMENTS, treat it like a name.
14447 Change NENVIRONMENTS to 10.
14449 * troff/groff.h: Remove definition of FONTS_MAX.
14450 * troff/node.h (class font_family): Make map a pointer instead of
14451 an array. Add a map_size member. Make it a class. Make nm const
14452 and public. Make invalidate_fontno a friend.
14453 * troff/node.c: Define font_table_size. Make font_info a pointer
14454 rather than an array.
14455 (class troff_output_file): Allocate font_position dynamically. Add
14456 nfont_positions member.
14457 (troff_output_file::set_font): Grow font_position if necessary.
14458 (troff_output_file::~troff_output_file): Delete font_position.
14459 (troff_output_file::troff_output_file): Allocate font_position.
14460 (grow_font_table): New function.
14461 (troff_output_file::really_begin_page,
14462 troff_output_file:really_copy_page): Use nfont_positions rather
14464 (mount_font_no_translate, mount_style): Call grow_font_table if
14466 (font_family::font_family): Allocate map.
14467 (font_family::make_definite): Grow map if necessary. Use
14468 font_table_size instead of FONTS_MAX.
14469 (font_family::~font_family): New function.
14470 (invalidate_fontno): Use font_family::map_size.
14471 (get_fontno, env_space_width, env_half_narrow_space_width,
14472 env_narrow_space_width, symbol_fotno, is_good_fontno,
14473 get_bold_fontno, make_glyph_node): Use font_table_size rather than
14475 (next_available_font_position): Never return 0.
14477 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
14479 * ps/tmac.ps: Add font translations for compatibility with dpost.
14481 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
14483 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14484 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14485 Move definitions baseline_sep, shift_down, column_sep,
14486 matrix_side_sep into...
14487 * eqn/box.c: Add them to param_table.
14488 * eqn/pbox.h: Add declarations to pbox.h.
14490 * troff/input.c (set_string): Cast value to unsigned char *.
14492 * troff/token.h (process_input_stack): Declare it static before
14493 declaring it a friend.
14495 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
14497 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14499 * dvi/devdvi/EX: Regenerate.
14501 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14504 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
14506 * eqn/lex.c: In defaults_table, make definition of `dot' call
14507 `dot_def'. Don't explicitly make it roman. Similarily for other
14510 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14512 (for_input::get, for_input::peek): Use this.
14513 (do_for): Add by_is_multiplicative argument.
14514 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14515 Change semantic value of optional_by to be a double plus a flag
14516 saying whethet the by clause is multiplicative.
14518 * eqn/lex.c (get_delimited_text): Remember location of start of
14519 definition. Improve error handling when EOF is encountered.
14521 * lib/font.h: Rename handle_x_command to
14522 handle_unknown_font_command.
14523 * lib/font.c (font::load): Call handle_unknown_font_command for
14524 any unknown command in the font description file. Don't call
14525 handle_x_command. Include the name of the command in the argv.
14526 Improve message for unknown command after kernpairs or charset
14528 * ps/ps.c (ps_font::handle_x_command): Rename to
14529 handle_unknown_font_command. Remove message about `x download'
14530 command. Give error message for wrong number of arguments.
14531 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14532 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14533 handle_unknown_font_command. Give an error message for wrong
14534 number of arguments. Rename design_size to designsize.
14535 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14536 checksum', `designsize' instead of `design_size'.
14538 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
14540 * eqn/*.[chy]: Change underaccent to uaccent.
14542 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
14543 give it the same precedence as ACCENT.
14544 * eqn/other.c (make_underaccent_box): New function.
14545 * eqn/box.h: Declare it.
14546 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14549 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
14551 * pic/pic.y (reset_all): New function. Called in rule for RESET.
14552 (parse_init): Call reset_all.
14553 (define_variable): When defining scale reset only those
14554 pre-defined variables that are scaled.
14555 (defaults_table): Add `scale' as non-scaled value.
14557 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14558 together with the text; allow any number of positioning words;
14559 allow center as a positioning word.
14561 * pic/object.c (output::compute_scale): Get picture maximum height
14562 and width from variables called maxpswid and maxpsht.
14563 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14565 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
14567 * pic/object.c (object_spec::make_text): Multiply textht by number
14570 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14572 (do_sprintf): New function.
14573 (pic.gperf): Add sprintf token.
14574 (text, sprintf): New rules.
14576 * pic/pic.y: `rand()' with no arguments returns a random number
14577 in the range [0,1).
14579 * pic/pic.y: Allow a bare expression to be an attribute: change
14580 precedences to support this. Change optional_ordinal rule to
14581 optional_ordinal_last to avoid reduce/reduce conflict.
14582 * pic/object.c (object_spec::object_spec): Initialize direction.
14584 * pic/pic.y: Implement ^ operator meaning exponentiation.
14586 * troff/node.h: Add default argument to mount_font.
14587 * troff/node.c (font_position): Read an optional third argument
14588 giving the external_name.
14589 (mount_font): Add optional argument giving the external_name.
14590 (mount_font_not_translate): Have additional argument giving
14591 external name. Use this name to load the font. Pass both names
14592 to font_info::font_info.
14593 (font_info::font_info): Have additional argument giving
14595 (class tfont): New member external_name.
14596 (font_info::get_tfont): Use external name to construct tfont_spec.
14598 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
14600 * eqn/lex.c (init_table): Add argument giving device. Define
14601 name of device to be "1".
14602 (do_ifdef): Counts as true if the argument has been defined with
14604 * eqn/main.c (main): Call init_table with device argument. Make
14605 device local to main.
14606 * eqn/eqn.h: Change declaration of init_table. Remove declaration
14609 * pic/lex.c (get_delimited): Allow text to be delimited by
14610 matching {}s. Don't recognize ending delimiter within a string.
14612 * troff/input.c (get_delim_name): New function.
14613 (token::next): Implement \C.
14615 * lib/font.c (font::load): Grok ---. Add an alias for each
14616 character based on its code.
14617 (font::get_code_width): Deleted.
14618 * lib/font.h (class font): Declare font::number_to_index().
14619 Remove declaration of font::get_code_width.
14620 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14621 to indices of named characters.
14622 (font::number_to_index): New function.
14623 * troff/input.c (font::number_to_index): New function.
14624 (get_charinfo_by_number, charinfo::get_number,
14625 charinfo::set_number): New functions.
14626 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14627 (token::process, token::description, token::get_char,
14628 token::add_to_node_list, token::operator==): Handle
14629 TOKEN_NUMBERED_CHAR.
14630 * troff/charinfo.h: Declare get_charinfo_by_number,
14631 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
14633 (charinfo::numbered): New function.
14634 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14635 * troff/env.h (class environment): Remove declaration of ...
14636 * troff/env.c (environment::make_numbered_char_node): Deleted.
14637 * troff/node.c (make_numbered_node): Deleted.
14638 (class numbered_glyph_node): Remove.
14639 (troff_output_file::put_char_width, troff_output_file::put_char):
14640 Handle numbered chars.
14641 (troff_output_file::numbered_char): Removed.
14642 (tfont::get_code_width): Removed.
14643 (make_glyph_node): Don't search special fonts for numbered
14645 * troff/node.h: Remove declaration of make_numbered_node.
14646 * driver/input.c (do_file): Handle N command.
14647 * driver/printer.h: Add declaration of ...
14648 * driver/printer.c (printer::set_numbered_char): New function.
14649 * dvi/tfmtodit.c (main): Generate unnamed entries.
14650 * ps/devps/afmtodit: Likewise.
14651 * xditview/xtotroff.c (MapFont): Likewise.
14652 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14654 * tbl/main.c (process_format): If multiple widths are specified
14655 for a column but all the widths are the same, don't give an error
14658 * tbl/table.c (table::do_row): If the current row is all lines and
14659 the stuff doesn't contains a line, mark the top of the row after
14660 printing stuff before the row. If the current row is not all
14661 lines and the stuff doesn't contain a line, don't unnecessarily
14662 mark the top of the row before printing the stuff.
14664 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
14666 * troff/groff.h: Remove MAX_PATH.
14667 * troff/input.c (open_file): Dynamically allocate space for the
14669 (open_mac_file, process_macro_file): Corresponding changes.
14671 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
14673 * troff/node.h (class output_file): Make copy_file pure. Add
14674 vspace method ifdef COLUMN. Add is_printing method.
14675 * troff/node.c: Add class printing_reg. Add class
14676 real_output_file. Derive other output_file classes from
14677 real_output_file; in these classes rename begin_page to
14678 really_begin_page, print_line to really_print_line, copy_file to
14679 really_copy_file, transparent_char to really_transparent_char.
14680 Move output_file::flush to real_output_file. Add printing member
14681 to class output_file.
14682 * troff/div.h: Remove printing member from top_level_diversion.
14683 Add vspace member function to class diversion ifdef COLUMN. Add
14684 some declarations ifdef COLUMN.
14685 * troff/div.c (top_level_diversion::copy_file,
14686 top_level_diversion::transparent_output,
14687 top_level_diversion::output): Don't test printing member before
14689 * troff/input.c: Handle initial variable_space_request ifdef
14691 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14692 but comment it out.
14694 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
14696 * troff/div.c (diversion::need): Make any space forced. If we
14697 sprung a trap, set truncated_space to minus the distance to the
14698 trap and set needed_space to the amount that was needed.
14699 (top_level_diversion::space): A forced space turns no_space_mode
14701 (class constant_vunits_reg): New class.
14702 (init_div_requests): Implement number registers .trunc and .ne
14703 using constant_vunits_reg.
14704 (class truncated_space_reg): Deleted.
14706 * troff/div.h: Don't have a no_space_mode member in diversion.
14707 Instead have it in top_level_diversion.
14708 * troff/div.c (diversion::diversion): Don't initialize
14710 (top_level_diversion::top_level_diversion): Initialize
14712 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14713 (macro_diversion::output): Don't clear no_space_mode.
14715 * troff/input.c (diverted_space_node::reread): Don't call
14716 environment::do_break. In fill mode, act like a blank line.
14717 (diverted_copy_file_node::reread): Don't call
14718 environment::do_break.
14720 * troff/div.c (blank_line): New function.
14721 * troff/div.h: Declare it.
14722 * troff/input.c (process_input_stack): Call it.
14724 * troff/div.c (truncated_space_reg::get_string): New function.
14725 (init_div_requests): Bind to .trunc.
14726 (space_request, top_level_diversion::space,
14727 top_level_diversion::output, macro_diversion::space,
14728 macro_diversion::output): Update truncated_space.
14729 (macro_diversion::output): Redo calculations when trap sprung.
14730 (macro_diversion::output, macro_diversion::space): No need for
14733 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14734 after truncating post line spacing.
14736 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
14738 * ps/devps/prologue (MF, SF): Make them work even if setfont is
14739 defined as a procedure rather than as an operator.
14741 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
14743 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14745 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
14747 * troff/div.c (top_level_diversion::output): Merge
14748 output_file::print_line and output_file::end_of_line member
14750 * troff/div.h (class output_file):
14751 * troff/node.c (troff_output_file::print_line,
14752 troff_output_file::end_of_line, output_file::end_of_line,
14753 ascii_output_file::print_line, suppress_output_file::print_line):
14754 Corresponding changes.
14756 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
14758 * troff/input.c (token::next): Don't give a warning for `\.'.
14760 * troff/env.c (environment::get_center_lines): New function.
14761 (init_env_requests): Bind number register .ce to it.
14762 * troff/env.h: Declare it.
14763 * tbl/table.c (table::init_output): Define reset macro to restore
14764 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
14766 (table::print): If center option not given, then imply center
14767 option if SAVED_CENTER_REG > 0.
14769 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
14771 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14772 Troff.ps from DOWNLOAD.
14774 * troff/Makefile: Change comment in DEFINES to avoid confusing
14777 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14778 code. Don't try to catch errors with stopped.
14779 (check_line_lengths): New function.
14780 * ps/devps/prologue (EXEC): Deleted.
14781 (EBEGIN, EEND): New procedures.
14783 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
14785 * troff/input.c: Include request.h before node.h.
14786 * troff/node.c: Likewise.
14787 * troff/env.c: Likewise.
14788 * troff/div.c: Likewise.
14789 * troff/node.h (class special_node): Store argument as a macro
14790 rather than a char *.
14791 * troff/node.c (special_node::special_node, special_node::copy):
14793 (special_node::~special_node): Deleted.
14794 (special_node::tprint): Deleted.
14795 (special_node::tprint_start, special_node::tprint_end,
14796 special_node::tprint_char): New functions.
14797 (troff_output_file::special): Deleted.
14798 (troff_output_file::start_special, troff_output_file::end_special,
14799 troff_output_file::special_char): New functions.
14800 * troff/input.c (special_node::tprint): New function.
14801 (do_special): Use macro not char *.
14802 (do_transparent_macro): Deleted.
14803 (token::next): Don't call do_transparent_macro.
14805 * troff/input.c (token::next): Add 'Y' case.
14806 (do_transparent_macro): New function.
14807 * troff/node.c (troff_output_file::special): Handle newlines with
14808 argument using new continuation convention.
14809 * driver/input.c (get_string): Cope with continuation convention.
14810 (do_file): Don't call skip_line after calling get_string(1).
14811 * ps/ps.c (ps_printer::special, ps_printer::do_import,
14812 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
14814 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
14817 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
14819 * troff/input.c (asciify): By default, illegal input characters
14820 should return empty string.
14822 * troff/input.c (copy_file): Handle first page transition like title.
14823 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
14825 * troff/input.c (token::next): Improve error message for EOF after
14827 (input_char_description): New function.
14828 (get_char_for_escape_name): Use input_char_description.
14829 (token::next): Warn about unrecognized escape sequences.
14830 (warning_table): Add WARN_ESCAPE.
14831 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
14834 * troff/token.h: Remove declaration of process_input_stack.
14836 * troff/input.c: Remove declaration of init_hyphen_requests.
14837 * troff/request.h: Correct spelling in declaration of same.
14839 * troff/input.c (token::next): Check whether escape_char is 0.
14841 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
14843 * groff.c (main, usage, help): Implement -P and -L options.
14844 * groff.sh: Likewise.
14846 * troff/input.c (token::next): Use some gotos to avoid code
14849 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
14850 Avoid calling symbol::symbol if name empty.
14852 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
14854 * troff/input.c (init_input_requests): Make \n(.x return the major
14855 version number and \n(.y return the minor version number.
14856 * troff/Makefile: Construct file majorminor.c defining
14857 major_version and minor_version automatically from ../VERSION.
14859 * troff/node.c (class glyph_node): Make operator new and operator
14861 (class ligature_node): Similarily.
14863 * troff/input.c (operator==(const macro &, const macro &)): New
14865 (non_interpreted_node::same): Use this.
14866 (string_iterator::string_iterator): Make macro& argument const.
14868 * troff/input.c (input_iterator::get): New function. Don't make
14869 asciify_macro or class non_interpreted_node friends of class
14871 (non_interpreted_node::interpret): Use input_iterator::get.
14872 (asciify_macro): Likewise.
14874 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
14875 ~non_interpreted_node): Deleted.
14876 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
14879 * troff/symbol.h: Make all symbol member functions const.
14881 * lib/strtol.c: New file.
14882 * lib/Makefile: Add strtol.c.
14883 * Makefile: Define STRTOL as strtol.o to include strtol in
14886 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
14888 * pic/troff.c (troff_output::simple_circle): Divide by scale.
14890 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
14892 * troff/input.c (do_special): Use input_level.
14894 * troff/token.h (TOKEN_BACKSPACE): New token.
14895 (token::backspace): New function.
14896 * troff/input.c (token::description, token::next, token::process):
14897 Grok TOKEN_BACKSPACE.
14898 (do_special): Turn TOKEN_BACKSPACE back into \b.
14900 * troff/token.h (token::leader): New function.
14901 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
14903 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
14905 * troff/input.c (do_special): Use token::description in error
14908 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
14910 * troff/input.c (decode_args): Combine quoted and
14911 quote_input_level variables. Make it a for (;;) loop.
14913 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
14915 * troff/input.c (read_long_escape_name): The test for whether to
14916 expand buffer was off by 1.
14917 (read_string): Similarily.
14919 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
14921 * troff/input.c: Use `const int' rather than `static const int'.
14923 * troff/div.h (diversion::copy_file): Declare as pure virtual.
14924 (macro_diversion::copy_file): New function.
14925 * troff/node.h: New class diverted_copy_file_node.
14926 * troff/node.c: Implement it.
14927 * troff/input.c (copy_file): Use diversion::copy_file. Handle
14928 first page transition by pushing a diverted_copy_file_node.
14929 * troff/input.c (token::next, process_input_stack): Don't handle
14932 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
14934 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
14935 whether space widths need adjusting.
14937 * troff/charinfo.h: Generalize translated_to_space to
14938 special_translation so as to allow translation to \&.
14939 * troff/input.c (translate): Allow translation to \&.
14940 (charinfo::*): Corresponding changes.
14941 * troff/node.c (make_node, node::add_char): Corresponding changes.
14942 * troff/node.h (dummy_node::dummy_node): Allow optional first
14945 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
14946 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
14948 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
14949 TOKEN_REQUEST with an argument of TITLE_REQUEST.
14950 (token::process): Grok that.
14951 * troff/input.c (copy_file): Handle first page transition like
14952 title by pushing a COPY_FILE_REQUEST cookie.
14953 (token::next, process_input_stack): Grok that.
14954 * troff/node.h (output_file::copy_file): Add x and y arguments.
14956 * troff/div.c (top_level_diversion::copy_file): Supply them.
14957 * troff/node.c (troff_output_file::copy_file): Add x and y
14958 arguments; moveto specified position. Invalidate font_position
14959 array after copying file.
14960 (output_file::copy_file): New function.
14961 (suppressed_output_file::copy_file, ascii_output::copy_file):
14963 * troff/input.c (transparent_file): New function.
14964 (init_input_requests): Bind to "trf".
14965 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
14966 (process_input_stack): Likewise.
14968 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
14970 * troff/node.c (init_node_requests): New number registers .kern
14971 pointing to global_kern_mode, and .lg pointing to
14972 global_ligature_mode.
14974 * troff/node.c (ligature): Don't change it if we get a bad
14977 * troff/input.c (do_define_string): Don't strip tabs.
14979 * troff/input.c (asciify_macro): Make the string_iterator auto.
14981 * troff/node.c (init_font_requests): Rename to...
14982 (init_node_requests):
14983 * troff/node.h: Change declaration.
14984 * troff/input.c (main): Change call.
14986 * troff/input.c (node::reread, diverted_space_node::reread): New
14988 (process_input_stack): Call reread rather than
14989 get_diverted_space_node.
14990 * troff/node.c (node::get_diverted_space_node,
14991 diverted_space_node::get_diverted_space_node): Removed.
14992 * troff/node.h: Declare reread methods instead of
14993 get_diverted_space_node methods. Make `n' member private.
14994 * troff/input.c: (token::diverted_space): Removed.
14995 * troff/token.h: Removed declaration.
14998 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
15000 * eqn/script.c (script_box::compute_metrics): Don't let
15001 SUP_RAISE_FORMAT become negative.
15003 * tbl/table.c (table::do_row): Entries that don't end in the
15004 this row shouldn't make the row non-blank.
15006 * tbl/table.c (table::make_columns_equal): Only set the width of
15007 columns which are marked as equal.
15009 * tbl/main.c (process_data): Before issuing excess data error,
15010 if last character was a newline unget it; then get it again after
15011 the error. Also include the contents of the entry in the message.
15013 * groff.c: New file.
15014 * Makefile: Build groff from groff.c. Make it possible to use
15015 either groff.sh or groff.c as groff.
15016 * Makefile.bd: Similarily.
15018 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
15020 * groff.sh: Don't delay expansion of $@ in assignment to files.
15021 Remove occurrences of \".
15023 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
15025 * all Makefiles: Simplify and rearrange.
15027 * Makefile: Handle fmod like malloc.
15028 * lib/Makefile: Similarily.
15029 * lib/fmod.c: Remove #ifdef NEED_FMOD.
15031 * Makefile: Rename OPTIMISE to OPTIMIZE.
15033 * groff.sh: Remove assignment to PATH.
15034 * Makefile: Remove SHPATH variable.
15035 * Makefile.bd: Similarily.
15037 * groff.sh: Add -V option to print the pipeline instead of
15040 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
15042 * lib/font.c: Split off file searching into ...
15043 * lib/fontfile.c: New file.
15045 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
15047 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
15049 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
15050 Also change misleading comment.
15051 (table::do_vspan): Change similarily misleading comment.
15052 * tbl/main.c (process_data): A format row with an explicit `s'
15053 uses up a data line, even if all the other columns are `_' or `='.
15055 * troff/input.c (token::description): Fix description of
15056 TOKEN_DUMMY and TOKEN_EMPTY.
15058 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
15060 * groff.sh: Fix description of -Z in help message.
15062 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
15064 * pic/object.c (object_spec::make_object): Allow negative and zero
15066 * pic/pic.y: Give linethick default value of -1.0.
15067 * pic/troff.c (troff_output::troff_output): Initialize
15068 last_line_thickness to BAD_THICKNESS.
15069 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
15070 (troff_output::line_thickness): Canonicalize negative thicknesses
15071 to RELATIVE_THICKNESS.
15072 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
15073 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
15075 (tex_output::start_picture): Set pen_size to -2.0.
15077 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
15078 0, then use 0 linewidth.
15079 (ps_printer::ps_printer): Initialize line_thickness to -1.
15081 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
15083 * ps/devps/symbolchars: Remove `or'.
15084 * ps/tmac.ps: Implement \(or with .char.
15086 * ps/devps/symbolchars: Move most characters into textmap.
15087 * ps/devps/textmap: Add names for troff bracket characters. Remove
15090 * ps/devps/TSymbol.ps: Removed.
15091 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
15092 * ps/tmac.ps: Do with .char what TSymbol did.
15093 * ps/devps/download: Remove TSymbol.
15095 * ps/devps/T: Removed.
15096 * ps/devps/Troff.ps: Removed.
15097 * ps/devps/Troff.afm: Removed.
15098 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
15099 * ps/devps/download: Remove Troff.
15100 * ps/devps/FontMakefile: Remove T target.
15101 * ps/devps/DESC-A4: Remove T from font list.
15102 * ps/devps/DESC-letter: Likewise.
15104 * troff/input.c (macro_to_node): Rename to ...
15105 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
15106 character's definition while processing it.
15107 * troff/node.c (node::add_char, make_node): Change calls to
15108 macro_to_node accordingly.
15110 * troff/input.c (token::next): Translate \_ to \(ul.
15112 * tty/devascii/R.proto: Add `|'.
15113 * tty/devlatin1/R.proto: Likewise.
15115 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
15117 * man: Put the version number in all the man pages.
15119 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
15121 * Makefile.bd: New file.
15122 * README.bd: New file.
15124 * VERSION: New file.
15125 * lib/version.c: Removed.
15126 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15129 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15130 environment variable.
15132 * all Makefiles: Split install target into install.bin for
15133 binaries, and install.nobin for everything else.
15134 * Makefile: Add bindist target.
15136 * man/afmtodit.man: New file.
15137 * man/Makefile: Add afmtodit.n to MAN1PAGES.
15138 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15140 * ps/Makefile: Pass BINDIR to make install in devps.
15142 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15143 the space character.
15145 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
15147 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
15149 * ps/ps.c: Redo font downloading.
15150 * ps/devps/download: New file.
15151 * ps/devps/Makefile: Add download to DEVICEFILES.
15152 * ps/devps/afmtodit: Remove -d option.
15153 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
15154 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15155 * ps/devps/zapfdr.ps: Likewise.
15156 * ps/devps/TSymbol.ps: Likewise.
15158 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
15160 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15162 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
15164 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15165 then strip the first line if it starts with %.
15166 * Makefile: Add a comment about this.
15168 * man/tfmtodit.man: New file.
15169 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15170 * dvi/Makefile: Install tfmtodit in BINDIR.
15172 * dvi/tfmtodit.c (usage): Mention -v option.
15174 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
15176 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15177 * troff/node.c (troff_output_file::transparent_char): Don't call
15180 * eqn: Add check_tabs method to most box classes.
15181 * eqn/box.c (box::top_level): Call check_tabs.
15183 * eqn/script.c (script_box::output): Use \Z.
15184 * eqn/limit.c (limit_box::output): Use \Z.
15186 * eqn/box.c (box::top_level): Use itoa.
15188 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
15190 * dvi/tmac.dvi: Add font translations for CR, C, TT.
15191 * dvi/devdvi/Makefile: Don't make links to CW.
15193 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15195 * xditview/tmac.X: Likewise.
15197 * troff/node.c: Add font translation feature.
15198 (get_font_translation): New function.
15199 (symbol_fontno): Translate the font name.
15200 (mount_font_no_translate): Rename to mount_font to this.
15201 (mount_font): New function.
15202 (font_family::make_definite): Call mount_font_no_translate instead
15204 (mount_style): Translate the font name.
15205 (font_translate): New function.
15206 (init_font_requests): Bind "ftr" to font_translate.
15208 * ps/devps/prologue (SN): New procedure that rounds a position to
15209 the nearest (pixel + (.25,.25)).
15210 (DL): Use SN to round endpoints.
15212 * lib/version.c: Changed version to 0.5.
15214 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
15216 * Makefile: Move definition of PAGE to the very beginning, so that
15217 people are less likely to miss it.
15219 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
15221 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15223 * troff/env.c (environment::choose_breakpoint): Make `can't find
15224 breakpoint' error a warning of type WARN_BREAK. Change message to
15225 `can't break line'.
15226 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15228 * troff/input.c: Add WARN_BREAK to warning_table. Include
15229 WARN_BREAK in DEFAULT_WARNING_MASK.
15231 * tty/tmac.tty: Add definition of \(+-.
15233 * groff.sh: Remove `--' option to set command.
15235 * dvi/devdvi/texsy.map: Remove duplicate md entry.
15237 * ps/devps/eqnchar: Better definition of cdot using md.
15238 * dvi/devdvi/eqnchar: Likewise.
15239 * xditview/devX100/eqnchar: Likewise.
15240 * xditview/devX75/eqnchar: Likewise.
15241 * eqn/lex.c: Add definition of cdot.
15243 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
15245 * troff/input.c (get_optional_char): New function.
15246 * troff/input.c (set_page_character): Use get_optional_char(),
15247 rather than has_arg() and tok.get_char(1).
15248 * troff/env.c (tab_character, leader_character, hyphen_char,
15249 field_characters): Likewise.
15250 (margin_character): Likewise. Also always delete the
15251 margin_character_node.
15253 * troff/input.c (token::get_char): Use token::description.
15255 * troff/input.c (has_arg): Don't skip over tab and \}.
15256 * troff/number.c (start_number): Give a warning if the number
15257 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15259 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
15261 * troff/input.c (empty_name_warning, non_empty_name_warning): New
15263 (get_name, get_long_name): Use these. Rename `warn' argument to
15266 * troff/node.c (get_fontno): Test that the symbol is not null.
15268 * troff/input.c (token::description): New function.
15269 * troff/number.c (parse_term): Use token::description in `numeric
15270 expression expected' message.
15271 * troff/groff.h: Add WARN_MISSING.
15272 * troff/number.c (start_number): New function.
15273 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15274 get_incr_number): Use start_number().
15275 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15277 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15278 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15280 * troff/input.c (token::get_char): Use WARN_MISSING.
15281 * troff/input.c (token::delimiter): Use token::description.
15282 * troff/env.c (environment_switch): Back out Aug 3 change.
15283 * troff/input.c (has_arg): Skip over \}s and tabs but give a
15285 * troff/token.h (token::tab): New function.
15286 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15287 * troff/reg.c (alter_format): Likewise.
15288 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15290 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
15292 * troff (most files): Redo warnings. Divide warnings into various
15293 categories; warning() has an additional first argument indicating
15294 the category it falls into.
15295 * troff/input.c (main): -w now takes an argument. New option -W.
15296 (enable_warning, disable_warning): New functions.
15298 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15299 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15301 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
15303 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15304 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15305 * xditview/devX75/eqnchar: Likewise.
15306 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15308 * eqn/other.c: When bar or over applies to a single character
15309 don't produce an overline_box or an underline_box. Instead produce
15310 an accent_box or an underaccent_box, with the accent a line
15311 whose width is accent_width. New classes underaccent_box,
15312 overline_char_box and underline_char_box.
15313 * eqn/box.h: Move overline_box, underline_box, accent_box class
15314 declarations into eqn/other.c. Add declarations of
15315 make_underline_box, make_overline_box, make_accent_box.
15316 * eqn/eqn.y: Call make_overline_box, make_underline_box
15317 make_accent_box instead of constructors.
15318 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15320 * eqn/other.c: Add accent_box::~accent_box.
15321 * eqn/box.h: Declare it.
15323 * groff.sh: With -Tps, use eqn -D.
15325 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15327 (underline_box::output): Similarily.
15328 (accent_box::output): Use \Z.
15330 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15333 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
15335 * troff/div.c (top_level_diversion::transparent_output(unsigned
15336 char)): Use asciify.
15337 * troff/input.c (asciify): Don't make it static.
15338 * troff/token.h (asciify): Declare it.
15340 * troff/input.c (get_name, get_long_name, token::get_char,
15341 token::delimiter): Add an extra default argument which says
15342 whether a warning should be printed.
15343 * troff: Pass a non-zero argument to one of these rather than
15344 printing a warning directly.
15346 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
15348 * troff: Consistently use symbol::is_null.
15350 * troff/dictionary.h: Move some inline functions into
15353 * troff/request.h: Move inline functions into input.c.
15354 (request_or_macro::invoke): Make it pure.
15356 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15357 * troff/input.c (init_input_requests): Use class constant_int_reg.
15358 (class compatible_reg): Deleted.
15359 * troff/div.c (init_div_requests): Use class constant_int_reg.
15360 (class last_post_line_extra_space_reg): Deleted.
15362 * troff/env.c (tab_character): Don't change the tab character if
15363 we get an invalid argument.
15364 (hyphen_char): Similarily.
15366 * troff/reg.c (alter_format): Check that nm is not null.
15368 * Makefile, groff.sh: Make it possible to customize the commands
15369 used for printing PostScript and dvi files. Also make it possible
15370 to customize the path used by groff.sh.
15372 * eqn/eqn.y: Make `left' right associative.
15374 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
15376 * pic/pic.h: Added definition of M_SQRT2 for those systems that
15379 * pic/pic.h: Removed definition of INT_MAX.
15381 * troff/node.c (italic_corrected_node::vertical_extent): Omit
15384 * troff/input.c (token::next): Handle \R like \n.
15386 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
15388 * ps/tmac.pc (PSPIC): Simplify.
15390 * troff/env.c (tab_stops::to_string):
15391 * pic/pic.y (object_type_name):
15392 * pic/troff.c (simple_output::line):
15393 * pic/tex.c (tex_output::spline):
15394 * pic/object.c (object_spec::make_object):
15395 * tbl/main.c (process_data): Add cases to switch statements to
15396 avoid cfront warnings. (Some of these are spurious, since the
15397 switch already has a default case.)
15399 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
15400 `ps-'. Don't test systat; instead check number of arguments to
15403 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
15405 * macros/tmac.e: Do not decrease the page offset by 0.5i.
15407 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15408 Unlink the file as soon as we have opened it, so that we don't
15409 have to bother with signal handlers.
15410 (handler): Deleted.
15411 (fatal_error_exit): Deleted.
15412 (main): Don't call signal.
15414 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15416 * dvi/devdvi/Makefile: Use the -k option with S and MI.
15418 * pic/pic.y: If there is a label, or an nth construction before
15419 the first `.' in the argument to `with', ignore it and generate a
15421 * pic/lex.c (lex_warning): New function.
15423 * tbl/table.c (table::init_output): In section keep and release
15424 macro, use 0 indent when diverting and the correct indent when
15427 * troff/input.c (interpolate_number_format): Do not interpolate
15428 anything if the number register is not defined.
15430 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15432 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
15434 * ps/devps/prologue (PICTURE): Set components of graphics state to
15435 their default values.
15437 * ps/devps/text.enc: Add trademark
15438 * ps/devps/textmap: Add names for club, spade, heart, diamond,
15439 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15440 * ps/devps/symbolchars: Add names for summation and product.
15442 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15443 suchthat. Add pp. Add upper-case letters.
15445 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15446 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15449 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15450 rA (right angle bracket) to ra. Introduce names for double-headed
15451 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15452 * ps/devps/textmap: Likewise for ps device.
15453 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15454 * tty/devascii/R.proto: Rename lA to la and rA to ra.
15455 * tty/devascii/R.proto: Likewise.
15456 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15458 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15460 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15462 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15465 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
15467 * troff/div.c (when_request): Use symbol::is_null rather than
15468 has_arg to determine whether we have an argument.
15469 (change_trap): Remove the trap if we get an invalid number. Give
15470 an error if we don't get at least the macro name.
15471 (diversion_trap): Remove trap if we get an invalid name or number.
15473 * troff/env.c (environment_switch): Pop if we get an invalid
15474 symbol or numeric expression.
15476 * troff/input.c (do_define_macro): If EOF is encoutered while
15477 defining the macro, do tok.next() before returning.
15479 * troff/token.h (has_arg): Move definition from here, to ...
15480 * troff/input.c (has_arg): ... here
15482 * troff/env.c (space_size): Do nothing if we get an invalid argument.
15483 * troff/input.c (shift): Likewise.
15485 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
15488 * pic/troff.c (troff_output::start_picture): Comment out calls to
15491 * eqn/main.c (do_file): Subtract 1 from current_lineno if
15492 interpret_lf_args succeeds.
15494 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15495 \\. This avoids problems with \$N.
15497 * groff.sh: Pass -C to preprocessors.
15499 * lib/lf.c (interpret_lf_args): Be more flexible.
15501 * tbl/main.c (main): Add -C option.
15502 (table_input::get): Do not recognize TE if followed by character
15503 other than a space or newline unless -C option given.
15504 (process_input_file): Likewise for lf, TS.
15505 (process_data): Likewise for lf in text blocks.
15507 * eqn/main.c (main): Add -C option.
15508 (do_file): Don't recognize EQ, EN or lf if followed by character
15509 other than space or newline unless -C option given.
15510 * eqn/lex.c (file_input::read_line): Similarily.
15511 * eqn/eqn.h: Declare compatible_flag.
15513 * etc/soelim.c (main): Add -C option.
15514 (interpret_lf_args): Use version in libgroff.
15517 * pic/main.c (main): Add -C option, which sets compatible_flag.
15518 (top_input::get), (top_input::peek): If -C option not given,
15519 do not recognize .PS/.PE/.PF/.lf if followed by a character
15520 other than space or newline.
15521 * pic/lex.c (file_input::read_line): Similarily.
15522 * pic/pic.h: Add declaration of compatible_flag.
15524 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
15526 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15528 * troff/node.c, troff/node.h: Add `asciify' methods to classes
15529 derived from node. New class space_char_hmotion_node.
15530 * troff/input.c (asciify_macro): New function.
15531 * troff/input.c (init_input_requests): New request `asciify' bound
15533 * macros/mm.diff: New file.
15534 * Makefile: In install.mm target use `patch' to apply
15537 * troff/input.c (macro::print_size): Just print the size in bytes.
15539 * troff/div.c (return_request): Correct the argument
15542 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
15544 * troff/node.h (class composite_node): Add sz member.
15545 * troff/node.c (composite_node::size): Return sz.
15546 * troff/input.c (macro_to_node): Use the initial size in the
15547 environment as the size of the composite_node.
15549 * troff/node.c (node::zero_width_tprint): Provide a reasonable
15552 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
15554 * troff/div.c (change_trap): If we get a bad number expression,
15557 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
15559 * lib/matherr.c (matherr): Define this only if math.h defines
15562 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
15564 * troff/div.c (macro_diversion::distance_to_next_trap): If there
15565 no diversion trap return vunits(INT_MAX - vresolution).
15567 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
15569 * troff/input.c (do_zero_width): New implementation that doesn't
15570 use a temporary environment. Use instead:
15571 (token::add_to_node_list): New function.
15572 * troff/env.c (environment::get_prev_char_height),
15573 (environment::get_prev_char_height),
15574 (environment::get_prev_char_skew): New functions.
15575 (environment::get_prev_char): New function.
15576 (environment::get_prev_char_width): Change to use get_prev_char.
15577 (init_env_request): Implement new registers .cht, .cdp, .csk.
15578 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15579 \Z being processed in a separate environment.
15581 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
15583 * tbl/table.c: Removed TABLE_BOTTOM_REG.
15585 * tbl/table.c (table::init_output): In the section release macro,
15586 give a warning message if the section won't fit on one page.
15588 * tbl/table.c (table::do_top): Emit table keep only if table is
15590 (table::do_bottom): Likewise for table release.
15591 (table::table), (table::add_vertical_rule): Remove reference to
15593 * tbl/table.h: Remove keep member.
15595 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15596 SECTION_RELEASE_MACRO, if there's not enough space before the next
15597 trap to output the diversion, call T# ourselves, set
15598 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15599 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
15600 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
15601 vertical position and return to it before turning traps on again.
15603 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
15605 * troff/node.c, troff/node.h: In classes derived from node,
15606 replace prev_char_width method by last_char_node method.
15607 * troff/env.c (environment::get_prev_char_width): Use
15608 node::last_char_node rather than node::get_prev_char_width.
15610 * Makefile: Added comment about -fno-inline on 68030-based
15613 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15614 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15615 expressions using sizeof to int.
15616 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15618 * macros/tmac.e (TS): Don't move @f back past the current
15621 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
15623 * ps/ps.c (main): Buffer stderr.
15624 * dvi/dvi.c (main): Likewise.
15625 * tty/tty.c (main): Likewise.
15627 * ps/ps.c (ps_printer::do_import): Improve error handling.
15629 * troff/input.c (abort_request): Use asciify.
15631 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15632 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15633 type of first argument int rather than char. This works around a
15634 bug on the 68030 based Apollo using g++ 1.37.1.
15636 * tbl/table.h (class table): Add `keep' member.
15637 * tbl/table.c (table::table): Initialize `keep'.
15638 (table::add_vertical_rule): Set `keep' to 1.
15639 (table::do_top): Only emit table keep macro is `keep' is non-zero.
15640 (table::do_bottom): Likewise for table release macro.
15641 (table::do_row): Emit section keep macro even if the row is 0.
15643 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
15645 * macros/tmac.e (@C): Preserve the font family across the change
15648 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
15650 * lib/font.c: Initialize font::hor and font::vert to 1.
15651 (font::load_desc): Check the values of font::hor and font::vert.
15653 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15654 be included in a C compilation.
15655 (iftoa): Use INT_DIGITS. Include lib.h.
15657 (as_string): Likewise.
15658 * tbl/table.c: Removed definition of INT_DIGITS.
15659 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15660 * troff/input.c (input_input_requests): Likewise.
15661 * ps/ps.c (make_encoding_name): Likewise.
15662 (ps_printer::set_style): Likewise.
15663 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15665 * tty/devascii/R.proto: Map fm onto '.
15666 * tty/devlatin1/R.proto: Likewise.
15668 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
15670 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15671 argument to \w is at a different input level.
15673 * tbl/table.c (table::init_output): Define a new macro
15674 REPEATED_VPT_MACRO, like vpt but if in a diversion also
15675 transparently outputs itself.
15676 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15678 (table::do_row): Likewise.
15680 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15681 TRANSPARENT_STRING_NAME.
15683 * tbl/table.c (table::init_output): In the table release macro
15684 print an error message and don't produce any output if after
15685 issuing the need request the table still will not fit. Also
15686 remove the diversion after bringing it back.
15688 * tbl/table.c (table::init_output): Define a new macro
15689 REPEATED_MARK_MACRO, like mk but if in a diversion also
15690 transparently outputs itself.
15691 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15692 is necessary because .TH might not call .T#.
15693 (table::do_top): Likewise TOP_REG.
15694 (table::define_bottom_macro): If TOP_REG is no longer valid, use
15695 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15696 table header might contain just the two top rules.
15698 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
15700 * troff/div.c: Implement new request `ptr' to print all traps.
15702 * troff/env.c (init_env_requests): Implement `.tabs' reg with
15703 init_string_env_reg.
15704 * troff/env.c (class tab_reg): Deleted.
15706 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
15708 * troff/div.c: New number register .pn returns the number of the
15709 next page as set by the pn request.
15711 * macros/tmac.an: Redid headers and footers. Number each manual
15712 entry starting from 1 unless \nC is > 0, like Sun. Added an
15713 optional 5th argument to .TH which specifies the manual name and
15714 appears in the center of the header. Understand the X, P and D
15715 registers like Sun.
15717 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
15719 * troff/env.c (init_env_requests): New number register `.lt' to
15720 return the title length.
15722 * troff/node.h (class transparent_dummy_node): New class.
15723 * troff/node.c (class transparent_dummy_node): Provide member
15725 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15728 * troff/input.c (token::next): New escape sequence \).
15729 * troff/input.c (get_copy): Recognize \) in copy mode.
15731 * troff/input.c (input_stack::clear): New function.
15732 * troff/input.c (exit_request): Use input_stack::clear.
15734 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15735 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15737 * troff/env.c: Move set_page_character to input.c. Move
15738 page_character to input.c also.
15739 * troff/env.c (title): Split off the reading of the parts of the
15740 title into read_title_parts.
15741 * troff/input.c (read_title_parts): New function. Check the
15742 input_level when testing whether a token matches the delimiter.
15744 * troff/input.c (exit_request): New function.
15745 * troff/input.c (init_input_requests): Bind ex request to
15746 exit_request rather than exit_groff.
15748 * troff/input.c (exit_groff): Call tok.next() before
15749 process_input_stack().
15751 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
15753 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15754 * troff/env.h: ditto.
15755 * troff/input.c: ditto.
15757 * troff/env.c (environment::is_empty): Test pending_lines.
15759 * troff/env.c (environment::have_pending_lines): Removed.
15761 * troff/input.c: Add request to flush pending lines from the
15764 * troff/env.c, troff/env.h: Add automatic widow control feature.
15766 * troff/input.c (exit_groff): Do process_input_stack() after
15767 do_break() but before setting exit_flag to 2.
15769 * troff/input.c: Remove FLUSH_PENDING_LINES and
15770 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15771 environment after END_TRAP token seen, but only if there aren't
15772 any more traps still unfinished.
15773 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15775 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
15777 * troff/env.c: Rename the `retain_size' member of class
15778 pending_output_line to `no_fill'.
15780 * troff/env.c (title): When the line is output, make the
15781 retain_size argument !fill.
15783 * troff/node.h: Add `hyphenated' member to struct breakpoint.
15784 * troff/node.c (space_node::get_breakpoints),
15785 (dbreak_node::get_breakpoints): Fill this in.
15786 * troff/env.c: Allow specification of maximum number of
15787 consecutive hyphenated lines.
15789 * troff/env.c (environment::is_empty): Add test for !current_tab.
15791 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
15793 * troff/env.c (environment::hyphenate_line): Don't completely give
15794 up if the word is not to be hyphenated; continue so that breaks
15795 can be made at break_char_node's.
15797 * lib/lib.h: Only define INT_MAX if it's not already defined;
15798 undef INT_MIN if it's already defined.
15800 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15802 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15803 This works around a bug in AT&T C++ 2.0 used with an ANSI C
15806 * macros/tmac.an (an-header): Set no-space mode.
15808 * macros/tmac.an (TH): Start a new page if necessary.
15810 * Started using ChangeLog at version 0.4.
15813 version-control: never