1 2003-11-10 Werner LEMBERG <wl@gnu.org>
3 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
5 * configure.ac: Check for vsnprintf.
6 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
8 * src/include/config.hin: Regenerated.
10 2003-11-09 Werner LEMBERG <wl@gnu.org>
12 * aclocal.m4: Updated syntax to autoconf 2.59.
13 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
14 Don't check for gsos2.
15 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
16 working abs_top_srcdir and abs_top_builddir.
18 * configure.ac: Updated syntax to autoconf 2.59.
19 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
20 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
21 * configure: Regenerated.
23 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
24 s/@groff_top_builddir@/@abs_top_builddir@/.
26 * src/roff/groff/pipeline.c (xstrsignal):
27 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
29 2003-11-07 Werner LEMBERG <wl@gnu.org>
31 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
32 make start angle smaller than end angle to circumvent a bug in tpic
33 handling of some versions of dvipdfm (and dvipdfmx).
35 2003-10-30 Werner LEMBERG <wl@gnu.org>
37 * src/devices/grops/grops.man: Improve section on creating EPS.
39 2003-10-29 Werner LEMBERG <wl@gnu.org>
41 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
44 2003-10-28 Werner LEMBERG <wl@gnu.org>
46 * doc/groff.texinfo: Fix documentation of `.if'.
48 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
50 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
51 the form `uniXXXX' also.
53 2003-10-27 Werner LEMBERG <wl@gnu.org>
55 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
56 contrib/pic2graph/pic2graph.sh: Implement secure management of
58 Pass `-P-pletter' to groff to avoid data outside of the converted
59 area -- some versions of `convert' (for example 5.3.8) don't check
60 the bounding box of the image but always use a fixed image size
61 (letter paper format).
62 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
63 contrib/pic2graph/pic2graph.man: Updated.
65 * src/roff/groff/groff.man: Document $TMP and $TEMP.
67 2003-10-26 Werner LEMBERG <wl@gnu.org>
69 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
70 troff_output::simple_ellipse, troff_output::simple_arc,
71 troff_output::simple_line, troff_output::simple_spline,
72 troff_output::simple_polygon): Insert a space before arguments.
73 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
74 latter doesn't produce a node, so the following `.sp -1' would do
76 Don't emit `.sp -1' after \M. This also doesn't produce a token
77 (and we don't have to care about compatibility mode).
78 (troff_output::set_color, troff_output::reset_color): Don't emit
79 `.sp -1' after \M and \m.
81 * src/roff/troff/input.cpp (old_have_input): New global variable.
82 (input_stack::get): Handle `old_have_input'.
83 (process_input_stack) <token::TOKEN_NEWLINE>: Call
84 `trapping_blank_line' depending on `old_have_input', not
87 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
89 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
90 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
91 default directory names for temporary files.
92 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
94 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
95 [__MSDOS__] (run_pipeline): Honour environment variables.
96 Don't use `tmpnam' but `tempnam' to work around messy
99 * README.MinGW: New file.
101 2003-10-16 Werner LEMBERG <wl@gnu.org>
103 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
104 `(*t)->next' without testing validity of `*t'.
105 (usage): Make it more readable.
107 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
109 Make html device run under both MS-DOS and Win32.
111 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
112 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
113 spawn or fork+exec has to be used, and whether parent must sleep
114 until the child process terminates. Used in
115 `char_buffer::run_output_filter'.
116 (copyofstdoutfd): Removed.
117 (char_buffer): Replace `write_file_html' and `write_file_troff'
118 member functions with `emit_troff_output' and `run_output_filter'.
120 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
122 (replaceFd): Replaced with...
123 (set_redirection): New auxiliary function.
124 (waitForChild): Replaced with...
125 (save_and_redirect): New auxiliary function for.
127 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
130 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
132 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
133 (GROFF_LIBC): New function.
134 * configure.ac: Call GROFF_LIBC.
136 * configure: Regenerated.
138 * src/include/lib.h: Handle __MINGW32__.
139 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
140 Add macro for `pipe'.
143 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
146 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
149 2003-10-13 Werner LEMBERG <wl@gnu.org>
151 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
154 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
157 2003-10-12 Werner LEMBERG <wl@gnu.org>
159 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
160 src/roff/troff/input.cc (usage): Updated.
162 * NEWS, doc/groff.texinfo: Updated.
164 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
166 * src/libs/libgroff/searchpath.cpp
167 (search_path::open_file_cautious): New function which also handles
168 `-' as stdin and stdout depending on the access mode.
169 * src/include/searchpath.h (search_path): Updated.
171 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
172 * src/devices/grops/ps.h: Include `searchpath.h'.
173 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
174 Open resource file with `include_search_path.open_file_cautious'.
175 * src/devices/grops/grops.man: Document new `-I' switch.
177 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
178 (main), src/devices/grolj4/lj4.cpp (main),
179 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
181 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
183 (include_search_path): New global variable.
184 (include_path_append): Removed.
185 (main): Use `include_search_path.command_line_dir' to handle `-I'.
186 (do_file): Simplify, using new
187 `include_search_path.open_file_cautious'.
189 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
191 (main): Pass arguments to `-I' to both troff and devices.
192 Improve handling of `-V'.
193 * src/roff/groff/groff.man: Document changes to -I and -V.
195 * src/roff/troff/input.cpp (include_search_path): New global
197 (next_file, source, ps_bbox_request, transparent_file,
198 process_input_file): Use new
199 `include_search_path.open_file_cautious'.
200 (main) Handle `-I' switch.
201 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
202 Use new `include_search_path.open_file_cautious'.
203 * src/roff/troff/node.h: New extern symbol `include_search_path'.
204 * src/roff/troff/troff.man: Document new `-I' switch.
206 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
208 Support multiple calls of .Lb in LIBRARY section.
210 * tmac/doc-common (doc-in-library-section): New register.
211 (doc-section-library): New string.
212 (Sh): Set `doc-in-library-section'.
214 * tmac/doc-syms (Lb): Insert breaks before and after arguments
215 if in LIBRARY section.
216 * tmac/doc.tmac (doc-save-global-vars): Updated.
217 * NEWS, tmac/groff_mdoc.man: Updated.
219 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
221 * tmac/doc-common (doc-default-operating-system): New variable.
224 2003-09-08 Werner LEMBERG <wl@gnu.org>
226 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
228 2003-08-31 Werner LEMBERG <wl@gnu.org>
230 * contrib/mom/Makefile.sub: Fix last change to make it really work.
231 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
232 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
233 $(DEVFILES) are not empty.
234 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
236 2003-08-26 Chuck Silvers <chuq@chuq.com>
238 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
239 with parallel runs of `make'.
241 2003-08-23 Stephen Gildea <gildea@stop.mail-abuse.org>
243 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
244 insert SORT_SEP. With certain combinations of sort specifications,
245 refer sorted entries in the wrong order. In particular, entries
246 with a missing field should be be sorted before all entries that
247 have that field, before refer looks to the next field.
249 2003-08-23 Werner LEMBERG <wl@gnu.org>
251 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
252 g++ linker is used. Reported by Mark J. Reed
253 <mark.reed@turner.com>.
255 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
257 Add key character `x' to tbl which makes tbl call a user-defined
258 macro on a table cell.
260 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
261 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
262 `set_modifier' after printing the compatibility request.
263 (set_modifier): Print call to `m->macro' if not empty.
264 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
266 (process_format): Implement cases `x' and `X'.
267 * src/preproc/tbl/tbl.man, NEWS: Updated.
269 2003-08-15 Werner LEMBERG <wl@gnu.org>
271 * doc/groff.texinfo: Minor fixes.
273 2003-08-09 Werner LEMBERG <wl@gnu.org>
275 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
277 2003-08-07 Werner LEMBERG <wl@gnu.org>
279 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
280 argument list to nothing if there is no file to match. Use `ls' as
281 a protection, similar to autoconf.
283 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
284 empty argument lists.
286 * doc/groff.texinfo: Improve documentation how vertical spacing
287 and line breaks interact.
290 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
292 2003-08-03 Werner LEMBERG <wl@gnu.org>
294 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
295 EPS (using eps2eps or similar programs to compute the bounding box).
297 2003-07-24 Werner LEMBERG <wl@gnu.org>
299 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
300 * doc/texinfo.tex: Updated from texinfo 4.6.
301 * README.CVS: From now on we need texinfo 4.6.
303 2003-07-23 Werner LEMBERG <wl@gnu.org>
305 Add requests `dei1' and `ami1' for completeness.
307 * src/roff/troff/input.cc (calling_mode): Remove
308 CALLING_DISABLE_COMP.
309 (comp_mode): New enumeration.
310 (do_define_string, define_string, define_nocomp_string,
311 append_string, append_nocomp_string): Updated.
312 (do_define_macro): Add third parameter.
313 (define_macro, define_nocomp_macro, define_indirect_macro,
314 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
315 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
318 (init_input_requests): Add `dei1' and `ami1'.
320 * tmac/trace.tmac: Handle de1 and am1.
321 (de): Improve tracing message.
322 (am): Add missing `do'.
325 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
326 Document new requests.
328 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
330 Add option -G to .MPIMG to insert a gap between text and the image.
332 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
333 www-finish-left-ll): Updated.
334 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
335 (MPIMG): Make option -L and -R optional.
338 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
340 * src/devices/grohtml/post-html.cpp
341 (html_printer::do_file_components): Don't use `stdout' as lvalue
342 since it can be a macro.
344 2003-07-22 Werner LEMBERG <wl@gnu.org>
346 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
347 the corresponding test in aclocal.m4.
349 2003-07-21 Werner LEMBERG <wl@gnu.org>
351 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
352 names but RGB values directly. Otherwise pnmtopng depends on
353 an external file `rgb.txt' which maps colour names to values.
355 2003-07-20 Werner LEMBERG <wl@gnu.org>
357 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
358 * configure, src/include/config.hin: Regenerated.
360 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
362 2003-07-19 Werner LEMBERG <wl@gnu.org>
364 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
366 2003-07-18 Werner LEMBERG <wl@gnu.org>
368 * *.man: Switch to non-compatibility mode temporarily if GNU
369 syntax extensions are used in the particular man page.
371 * PROBLEMS: Add solutions for SGR problems.
373 2003-07-17 Werner LEMBERG <wl@gnu.org>
375 Don't ignore grotty's command line options if \X'tty: sgr ...' is
376 used to change the drawing scheme.
378 * src/devives/grotty/tty.cpp (bold_flag_option,
379 underline_flag_option, italic_flag_option, reverse_flag_option,
380 bold_underline_mode_option): New global variables.
381 (update_options): New function.
382 (tty_printer::special): Call update_options.
383 (main): Don't set xxx_flag but xxx_flag_option, then call
386 2003-07-14 Werner LEMBERG <wl@gnu.org>
388 Make grotty emit proper Unicode box drawing characters for -Tutf8.
390 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
392 (hline_char, vline_char): New global variables.
393 (tty_printer::tty_printer): Initialize them.
394 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
395 horizontal and vertical lines.
396 (crossings): New global array.
397 (tty_printer::end_page): Use it to determine the proper crossing
398 character for -Tutf8.
400 2003-07-12 Werner LEMBERG <wl@gnu.org>
402 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
403 (HTMLDOCFILES): Revert to `pic.html'.
404 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
406 2003-07-11 Werner LEMBERG <wl@gnu.org>
408 * doc/pic.ms: Improve documentation of absolute coordinates.
409 Document absolute positioning of pictures.
411 * NEWS: Add new pic capability.
413 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
415 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
418 2003-07-07 Werner LEMBERG <wl@gnu.org>
420 Implement support for dashed and dotted ellipses in pic. Based on
421 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
423 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
424 common_output::dashed_ellipse, common_output::dotted_ellipse): New
425 functions. Ellipse arcs are approximated with circle arcs.
426 * src/preproc/pic/common.h (common_output): Updated.
427 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
429 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
431 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
433 2003-07-06 Werner LEMBERG <wl@gnu.org>
435 Make grotty work on platforms which have unsigned char as the
436 default for char. Based on a patch by Thomas Klausner
439 * src/devices/grotty/tty.cpp (schar): New typedef.
440 Updated calls to declare_ptable and implement_ptable.
441 (glyph): Use schar for back_color_idx and fore_color_idx.
442 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
443 (tty_printer::tty_color, tty_printer::tty_printer,
444 tty_printer::color_to_idx, tty_printer::put_color): Updated.
446 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
448 * src/roff/nroff/nroff.sh: Add option -d for completeness.
449 * src/roff/nroff/nroff.man: Updated.
451 2003-07-05 Werner LEMBERG <wl@gnu.org>
453 * NEWS, tmac/groff_www.man: Updated.
454 * doc/Makefile.sub: Updated.
456 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
458 Implement support for multiple HTML output files.
460 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
461 -j command line option.
463 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
465 (file): New fields `new_output_file', `require_links',
467 (file::file): Updated.
468 (files::set_file_name, files::set_links_required,
469 files::are_links_required, files::is_new_output_file,
470 files::file_name, files::next_file_name): New functions.
471 (header_desc): New fields `no_of_level_one_headings',
473 (header_desc::header_desc): Updated.
474 (header_desc::write_headings): Handle multiple files.
475 (html_printer::write_header): Save file name in which header occurs.
476 (html_printer::determine_header_level): Possibly split files on
478 (html_printer::do_links, html_printer::troff_tag): Updated.
479 (html_printer::insert_split_file, html_printer::do_job_name,
480 html_printer::emit_link, html_printer::write_navigation,
481 html_printer::do_file_components): New functions.
482 (html_printer::~html_printer): Handle multiple files.
483 (main): Handle command line option `-j'.
485 * src/devices/grohtml/grohtml.man: Updated.
487 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
490 * tmac/www.tmac (JOBNAME): New macro.
491 * tmac/s.tmac (SH-NO-TAG): New macro.
492 (@SH): Call SH-NO-TAG.
495 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
497 * tmac/groff_mdoc.man: Improve documentation of punctuation
500 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
502 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
504 2003-07-03 Werner LEMBERG <wl@gnu.org>
506 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
508 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
510 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
513 (Fn, Fo): Reduce indentation in synopsis.
515 * tmac/doc-common (doc-check-depth): New macro.
516 (doc-end-macro, Sh, Ss): Use it.
517 (Cd): Fix behaviour in synopsis.
518 (In): Make it parsed and callable.
519 If not in the synopsis, represent the C header file enclosed in
521 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
522 Use minus, not hyphen.
524 * tmc/groff_mdoc.man: Updated.
526 2003-07-01 Werner LEMBERG <wl@gnu.org>
528 Integrated grap2graph, contributed by Eric S. Raymond.
530 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
532 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
533 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
535 2003-07-01 Colin Watson <cjwatson@debian.org>
537 * src/xditview/*.c: Add prototypes, fix return types, add includes.
538 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
540 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
542 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
544 2003-06-31 Werner LEMBERG <wl@gnu.org>
546 * doc/Makefile.sub (CLEANADD): Remove all files created by
547 running `make groff.{pdf,dvi}'.
549 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
552 2003-06-30 Werner LEMBERG <wl@gnu.org>
554 * Makefile.in (SHELL): Define as @SHELL@.
555 (mkinstalldirs): Use $(SHELL).
556 (MDEFINES): Add $(SHELL).
557 * Makefile.comm (SHELL): Removed.
559 2003-06-29 Werner LEMBERG <wl@gnu.org>
561 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
562 The X11 documentation files use them.
563 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
565 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
567 * tmac/e.tmac (@C): Handle .ad also.
569 2003-06-12 Werner LEMBERG <wl@gnu.org>
571 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
573 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
574 Assign `n' even here. It is possible to construct a node
575 immediately following an escape character:
583 2003-06-10 Werner LEMBERG <wl@gnu.org>
585 * README.WIN32: Removed.
588 2003-06-07 Werner LEMBERG <wl@gnu.org>
590 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
592 2003-06-05 Werner LEMBERG <wl@gnu.org>
594 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
595 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
597 2003-06-03 Werner LEMBERG <wl@gnu.org>
599 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
600 is done by the calling function.
602 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
604 * tmac/X.tmac: Fix definition of `em'.
606 2003-05-22 Werner LEMBERG <wl@gnu.org>
608 * src/roff/troff/input.cc (return_macro_request): Fix detection of
611 2003-05-18 Werner LEMBERG <wl@gnu.org>
613 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
614 to make items work which consist only of a tag.
616 2003-05-17 Werner LEMBERG <wl@gnu.org>
618 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
619 aren't stretched in a tag (this can fail with unformatted boxes).
620 Instead, insert a break and go back one line.
622 2003-05-16 Werner LEMBERG <wl@gnu.org>
624 * src/roff/troff/input.cc (return_macro_request): If called with
625 argument pop macro twice. We need this to trace `return'.
627 * tmac/trace.tmac: Handle `return'.
630 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
633 2003-05-15 Larry Kollar <kollar@alltel.net>
635 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
636 registers `FPS', `FVS', and `FPD'.
638 2003-05-15 Werner LEMBERG <wl@gnu.org>
640 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
643 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
645 * tmac/groff_mdoc.man: Slight improvements.
647 2003-05-03 Werner LEMBERG <wl@gnu.org>
649 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
650 `doc-header-space' after header line if register `cR' is set.
652 2003-05-02 Werner LEMBERG <wl@gnu.org>
656 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
658 * tmac/doc-common (Nd): Use \[em].
660 2003-05-01 Werner LEMBERG <wl@gnu.org>
662 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
663 doc-footer-space): Initialize to 0.5i.
664 (doc-setup-page-layout): Don't set doc-header-space and
667 2003-04-30 Werner LEMBERG <wl@gnu.org>
669 * REVISION: Set to 1.
671 * doc/pic.ms: Document possible problems with `figname'.
673 2003-04-29 Werner LEMBERG <wl@gnu.org>
675 Version 1.19 released
676 =====================
678 * VERSION: Set to 1.19.
679 * REVISION: Set to 0.
680 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
682 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
683 Define charset as `US-ASCII' in html output.
685 * tmac/www.tmac (ULE): Add missing scaling indicator.
687 * win32-diffs: Removed.
689 2003-04-28 Werner LEMBERG <wl@gnu.org>
691 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
693 Document how to insert discardable whitespace with `.ss'.
695 2003-04-27 Werner LEMBERG <wl@gnu.org>
697 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
698 work with plain TeX also.
700 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
702 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
704 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
707 2003-04-24 Werner LEMBERG <wl@gnu.org>
709 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
710 vbox with positive height and zero depth if in TeX mode.
712 * NEWS: Document glyph name changes for grodvi and grolj4.
714 2003-04-23 Werner LEMBERG <wl@gnu.org>
716 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
719 2003-04-21 Werner LEMBERG <wl@gnu.org>
721 HP-UX 10.20 has `snprintf' but it isn't declared.
723 * configure.ac: Add declaration test for snprintf.
724 * configure: Regenerated.
725 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
726 * src/include/config.hin: Regenerated.
728 2003-04-19 Werner LEMBERG <wl@gnu.org>
730 Add keyword `figname' to pic, specifying the name of the picture
731 box in TeX mode. Based on a patch from William J Poser
732 <wjposer@unagi.cis.upenn.edu>.
734 * src/preproc/pic/pic.y: New token `FIGNAME'.
735 (macro_name): New rule of type <str>.
736 (placeless_element): Handle `FIGNAME'.
737 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
738 * src/preproc/pic/main.cpp (graphname): New global variable.
739 (do_picture): Initialize `graphname'.
740 * src/preproc/pic/pic.h: Updated.
741 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
744 (tex_output::text): Beautify output.
745 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
746 `shaded' and `outlined' unconditionally.
747 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
750 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
751 greater is necessary.
753 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
755 Add option -r to soelim to avoid emission of `.lf' lines.
756 Add option -t to produces TeX comment lines instead of `.lf' lines.
758 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
761 (main): Handle `-r' and `-t'.
762 (set_location): Handle `raw_flag' and `tex_flag'.
763 * src/preproc/soelim/soelim.man, NEWS: Updated.
765 2003-04-17 Werner LEMBERG <wl@gnu.org>
767 * tmac/hyphenex.sh: Replaced with...
768 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
771 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
772 if --quiet is used for the configure script.
773 * configure: Regenerated.
775 2003-04-16 Werner LEMBERG <wl@gnu.org>
777 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
778 Add `const' to second argument.
779 (html_printer::add_table_end): Add `const' to argument.
780 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
781 `const' to arguments.
782 * src/devices/grohtml/html-text.h: Updated.
784 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
785 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
788 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
789 cast for integer constant.
791 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
792 (writeNbytes): Add `const' to first argument.
793 (writeString): Add `const' to argument.
794 (char_buffer::can_see): Add `const' to third argument.
795 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
797 * src/preproc/html/pushback.h: Updated.
799 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
800 (include_path_append): Add `const' to argument.
803 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
805 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
806 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
808 (unicode_decompose_init::unicode_decompose_init): Updated.
809 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
811 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
812 * src/roff/troff/input.cc (process_startup_file): Add `const' to
815 * tmac/hyphenex.sh: Make script more portable by using a here
818 2003-04-15 Werner LEMBERG <wl@gnu.org>
820 Renamed all `*.cc' files to `*.cpp'.
821 Updated all configuration files, makefiles, and documentation.
823 2003-04-14 Werner LEMBERG <wl@gnu.org>
825 * tmac/hyphenex.sh: Slight improvements.
827 2003-04-13 Werner LEMBERG <wl@gnu.org>
829 * font/devascii/R.proto, font/devcp1037/R.proto,
830 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
831 character slots with unnamed glyphs.
833 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
834 (an-first): New global variable.
835 (an-header): Emit vertical space between multiple man pages.
837 2003-04-11 Werner LEMBERG <wl@gnu.org>
839 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
842 2003-04-10 Werner LEMBERG <wl@gnu.org>
846 2003-04-10 Bernd Warken <bwarken@mayn.de>
848 * doc/webpage.ms: Improved.
850 2003-04-09 Werner LEMBERG <wl@gnu.org>
852 Add register \n[.height] which returns the value of \H.
853 Add register \n[.slant] which returns the value of \S.
855 * src/roff/troff/env.cc (init_env_requests): Implement.
856 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
859 2003-04-08 Werner LEMBERG <wl@gnu.org>
861 * tmac/html.tmac: Move some of the data into html-end.tmac.
862 Remove most of the character translations for eqn since html fonts
863 now cover those characters.
865 * tmac/html-end.tmac: New file.
866 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
867 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
868 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
870 2003-04-07 Werner LEMBERG <wl@gnu.org>
872 * man/groff_out.man: Document negative values of `N' if -Thtml is
875 2003-04-06 Werner LEMBERG <wl@gnu.org>
877 * Makefile.comm (depend.temp): Check location of YTABC.
879 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
881 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
883 (groff_bin_path): Rename to GROFF_BIN_PATH.
884 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
885 * doc/Makefile.in (TROFFBIN): New variable for troff
887 (GROFFBIN): New variable for groff binary path.
888 (groff_bin_path): Rename to GROFF_BIN_PATH.
889 (TROFF): Use TROFFBIN.
890 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
891 * doc/Makefile.sub (GROFFBIN): New variable for groff
893 (groff_bin_path): Rename to GROFF_BIN_PATH.
894 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
896 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
898 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
899 * Makefile.dev (all): Depend on DEVSCRIPTS.
900 (install_dev): Likewise.
901 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
903 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
904 (DEVGENSCRIPTS): New variable to hold generated scripts.
906 2003-04-05 Werner LEMBERG <wl@gnu.org>
908 * src/libs/libdriver/input.cc (IntArray::operator[],
909 IntArray::get_data): Remove meaningless `const' in return value.
911 * README.CVS: New file.
913 2003-04-04 Werner LEMBERG <wl@gnu.org>
915 Check for stdint.h in C++, not in C.
917 * aclocal.m4 (GROFF_STDINT_H): New function,
918 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
920 * configure, src/include/config.hin: Regenerated.
921 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
924 Fix handling of in grohtml. To do this, troff emits `N'
925 with a negative value, representing the width of the unbreakable
926 space (only for -Thtml). grohtml then converts this back to
927 and uses the value of N as its width.
929 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
930 unbreakable_space_node::tprint): Emit `N-<width>'.
931 * src/include/printer.h (printer::set_numbered_char): Make it
933 Make members `font_table' and `nfonts' protected instead of private.
934 * src/devices/grohtml/post-html.cc
935 (html_printer::set_numbered_char): New member function.
938 * src/libs/libgroff/maxfilename.cc:
939 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
941 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
944 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
946 * man/roff.man: Small fixes.
948 2003-04-03 Werner LEMBERG <wl@gnu.org>
950 Make groff independent from locale's numeric settings.
952 * configure.ac: Check for `setlocale'.
953 * configure, src/include/config.hin: Regenerated.
955 * src/include/lib.h: Handle HAVE_SETLOCALE.
957 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
958 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
959 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
962 * doc/groff.texinfo: Change dir category to `Typesetting'.
963 (Man font macros): Mention that there is no space between arguments
966 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
967 (*printer::change_color, *printer::change_fill_color): Add missing
970 2003-04-02 Werner LEMBERG <wl@gnu.org>
972 * src/devices/grohtml/html-table.cc (html_table::emit_col,
973 html_table::is_gap): Compute table widths after converting border
974 positions to avoid rounding errors.
976 2003-04-01 Werner LEMBERG <wl@gnu.org>
978 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
979 `space_emitted' properly.
981 2003-03-31 Werner LEMBERG <wl@gnu.org>
983 * src/devices/grohtml/html-table.cc: Fix column width calculation.
984 (html_table::set_linelength): Don't add 1.
985 (html_table::add_indent): Don't subtract 1.
987 * tmac/html.tmac: Set default page offset to zero.
989 2003-03-30 Werner LEMBERG <wl@gnu.org>
991 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
993 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
994 unbreakable_space_node::tprint): New functions.
995 (troff_output_file): Make space_char_hmotion_mode::tprint and
996 unbreakable_space_node::tprint to friends.
997 * src/roff/troff/node.h: Updated.
999 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
1000 in the HTML standard).
1002 2003-03-29 Werner LEMBERG <wl@gnu.org>
1004 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1005 Otherwise, the following code
1014 produces `x a' instead of `xa'. This is a temporary fix, disabling
1015 font changes in diversions for -Thtml.
1017 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1019 (an-do-tag-html): Merge with ...
1020 (an-do-tag): This macro.
1021 Change code slightly to circumvent grohtml bug.
1022 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1024 * src/devices/grohtml/html-table.cc (html_table::emit_col,
1025 html_table::is_gap): Round `width' properly.
1027 * tmac/html.tmac: Provide some default layout parameters for
1030 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1033 2003-03-28 Werner LEMBERG <wl@gnu.org>
1035 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1037 2003-03-27 Werner LEMBERG <wl@gnu.org>
1039 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1042 2003-03-20 Werner LEMBERG <wl@gnu.org>
1044 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1046 * doc/groff.texinfo: Updated.
1048 2003-03-19 Werner LEMBERG <wl@gnu.org>
1050 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1051 TOKEN_END_TRAP>: Reset `have_input'.
1053 2003-03-18 Werner LEMBERG <wl@gnu.org>
1055 * src/roff/groff/groff.man: Mention groff_trace man page.
1057 2003-03-16 Werner LEMBERG <wl@gnu.org>
1059 * Makefile.in (LIBEXT): New variable to indicate the file extension
1060 of library files. Computed heuristically from $(OBJEXT).
1061 (MDEFINES): Add $(LIBEXT).
1062 * Makefile.lib, Makefile.comm: Use it.
1064 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
1065 overlong lines into smaller chunks.
1066 (get_binary): New function.
1068 * src/utils/pfbtops/pfbtops.man: Updated.
1070 2003-03-15 Colin Watson <cjwatson@debian.org>
1072 * src/roff/groff/groff.man: Minor syntax fix.
1074 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
1076 * src/devices/grops/ps.cc (ps_printer::media_set,
1077 ps_printer::~ps_printer): Handle zero paper width and length.
1079 2003-03-13 Werner LEMBERG <wl@gnu.org>
1081 Add options -p and -l to grodvi.
1083 * src/devices/grodvi/dvi.cc: Include paper.h.
1084 (landscape_flag, user_paper_length, user_paper_width): New global
1086 (dvi_printer::begin_page): Emit `papersize' special.
1087 Set color after initialization of `cur_h' and `cur_v'.
1088 (main): Add options `-l' and `-p'.
1089 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1090 * src/devices/grodvi/grodvi.man, NEWS: Updated.
1092 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1094 2003-03-12 Werner LEMBERG <wl@gnu.org>
1096 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1097 * man/groff_tmac.man: This man page.
1098 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1101 * tmac/X.tmac: Don't load pspic.tmac.
1103 2003-03-11 Werner LEMBERG <wl@gnu.org>
1105 Make variable `pr' local to libdriver/input.cc. Based on a patch
1106 by Bernd Warken <bwarken@mayn.de>.
1108 * src/include/driver.h (pr): Removed.
1110 * src/libs/libdriver/input.cc (pr): New global variable.
1111 (do_file): Deallocate `pr'.
1112 * src/libs/libdriver/printer.cc (pr): Removed.
1114 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1115 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1116 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1117 (main): Don't delete `pr'.
1119 2003-03-10 Werner LEMBERG <wl@gnu.org>
1121 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
1122 * tmac/papersize.tmac: New file.
1123 * tmac/troffrc: Include `papersize.tmac'.
1124 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
1125 * tmac/an-old.tmac: Set LT to LL by default.
1127 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
1128 doc/groff.texinfo: Updated.
1130 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
1131 bug which caused all odd iso papers to have wrong dimensions.
1133 * src/devices/grops/ps.cc (user_paper_width): New global variable.
1134 (main) <'p'>: Set `user_paper_width' also.
1135 (ps_printer::media_width, ps_printer::media_height): Use values
1136 given with option `-p'.
1138 2003-03-09 Werner LEMBERG <wl@gnu.org>
1140 * src/include/nonposix.h: Provide default for SET_BINARY.
1142 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
1143 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
1146 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
1147 (main): Treat \r\n as \n.
1149 2003-03-08 Werner LEMBERG <wl@gnu.org>
1151 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
1152 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
1154 2003-03-07 Werner LEMBERG <wl@gnu.org>
1156 Added support to access more than 256 glyphs in Type 1 fonts.
1158 * src/devices/grops/ps.cc (subencoding): New structure.
1159 (style): Add `sub' field.
1161 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
1162 Add `set_subencoding', `get_subfont' and `encode_subfont' member
1165 (ps_printer::set_char): Use `set_subencoding'.
1166 (make_subencoding_name): New function.
1167 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
1168 (ps_printer::~ps_printer): Emit subencoding definitions.
1170 * src/devices/grops/psrm.cc (valid_input_table): New array to
1171 properly support EBCDIC.
1172 (white_space): Add `\f'.
1173 (ps_get_line): Change first argument to be of type `string &'.
1174 Updated all callers.
1175 This allows to get lines of arbitrary length.
1176 Use `valid_input_table'.
1177 Remove warning about non-conforming PS line length. This seems
1178 not to be of great importance -- for example, dvips don't emit
1180 (PS_LINE_MAX): Removed.
1181 (matches_comment): Change first argument to be of type `string &'.
1183 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
1185 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1186 %AGL_to_unicode, %default_ligatures): New hash tables.
1187 Read all map entries.
1188 Add unencoded characters.
1189 Check for default ligatures if there are no `L' entries.
1190 Print all kern entries.
1191 Print all characters in charset.
1192 * src/utils/afmtodit/afmtodit.man: Updated.
1194 * font/devps/*: Regerated all fonts.
1196 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
1197 of characters, just use `.trin'. Otherwise the mapping depends
1198 on the font encoding.
1199 * tmac/ps.tmac: Add `fi' and `fl'.
1200 Improve `Fi' and `Fl'.
1201 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
1202 * tmac/Xps.tmac: Fix `em'.
1206 2003-03-04 Werner LEMBERG <wl@gnu.org>
1208 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1211 2003-03-03 Werner LEMBERG <wl@gnu.org>
1213 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1215 * font/devps/generate/textmap: Remove entry `similarequal'.
1216 * font/devps/symbolmap: Updated.
1218 2003-03-02 Werner LEMBERG <wl@gnu.org>
1220 * src/libs/libgroff/font.cc (font::load): Fix error message for
1223 * src/devices/grops/grops.man: Improve documentation of the -b
1226 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1227 `ascii' and `cp1047'.
1229 2003-03-01 Werner LEMBERG <wl@gnu.org>
1231 Document composite glyphs and the `composite' request.
1233 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
1235 2003-02-28 Werner LEMBERG <wl@gnu.org>
1237 * font/devdvi/generate/ec.map: Add some more Unicode entities.
1238 * font/devdvi/*EC: Updated.
1240 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1241 * tmac/latin1 (latin1-tr): Undo any previous mapping.
1242 * tmac/troffrc: Load `composite.tmac'.
1243 * tmac/Makefile.sub (NORMALFILES): Updated.
1245 * doc/groff.texinfo (Input Encodings): New section.
1248 2003-02-27 Werner LEMBERG <wl@gnu.org>
1250 * doc/texinfo.tex: New version 2003-02-11.06.
1252 * tmac/doc-common (Dt): Don't emit warning for unknown section.
1253 * tmac/groff_mdoc.man: Fix description of `Dt'.
1255 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
1257 * font/devps/prologue.ps: Fix for included Postscript that does
1258 a setpagedevice -- which is now safely ignored.
1262 * src/devices/grops/ps.cc: Now sets the page size in the generated
1263 document. This is done in two ways: Via a %%-comment for gv and
1264 the like, and via a PageSize and setpagedevice for programs that
1265 understands Postscript proper, like ps2pdf.
1267 * src/devices/grops/ps.h: New broken-flag to avoid page size
1268 definition, if required.
1270 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1272 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1273 Not really necessary due to the fix in prologue.ps, but cleaner:
1274 Such information does not belong in an .eps file.
1276 * doc/Makefile.sub: See doc/Makefile.in.
1278 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
1280 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1281 instead of P1 since the latter is broken in some versions of netpbm.
1282 * configure: Updated.
1284 2003-02-26 Larry Kollar <kollar@alltel.net>
1286 Make man pages more customizable.
1288 * tmac/an-old.tmac (FT): New register holding footer distance from
1290 (HF): New string holding the default heading font.
1291 (TH): Handle registers `IN' and `SN' set on the command line.
1293 (PT, BT): New strings to customize header and footer lines.
1294 (an-header, an-footer): Use them.
1296 * tmac/groff_man.man: Document changes.
1298 * doc/groff.texinfo: Document man changes.
1299 Document Ultrix extensions of man.
1301 2003-02-26 Werner LEMBERG <wl@gnu.org>
1303 * src/roff/troff/input.cc (do_width, do_if_request): Reset
1304 `have_input' after changing back to old environment.
1306 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1307 function up to be defined before first call. This is necessary to
1308 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1310 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1311 the default font directory also. Based on a patch from James
1312 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1313 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1314 * src/utils/afmtodit/afmtodit.man: Document it.
1318 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1320 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
1322 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1323 (GROFF_PNMTOPS_NOSETPAGE): New macro.
1324 * configure.ac: Use it.
1325 * configure: Regenerated.
1326 * Makefile.in: Updated.
1328 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1329 (CLEANADD): Add www.tmac-sed.
1330 (pnmtops_nosetpage): Define default.
1331 (install_data): Handle www.tmac-sed and substitute
1332 @PNMTOPS_NOSETPAGE@.
1333 (stamp-sed): Add www.tmac.
1334 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1335 It now breaks URLs at suitable places.
1336 (www:substring_ok): New register set by...
1337 (www:@test_substring): New macro.
1338 (www:error): New alias to www-error.
1339 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1341 (URL): Use www:url_breaks.
1342 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1343 (CDS, CDE): New macros.
1345 2003-02-25 Werner LEMBERG <wl@gnu.org>
1347 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1350 2003-02-24 Werner LEMBERG <wl@gnu.org>
1352 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1353 can be negative also.
1355 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1357 (read_char_table): Avoid negative ascenders.
1358 (output_charset): Add cast.
1359 * font/devlj4/*: Regenerated.
1361 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1364 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1365 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1367 * font/devdvi/*: Regenerated.
1369 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
1370 normal width, while the previously used characters (U+2329 and
1371 U+232A) are classified as wide due to canonical equivalence with the
1372 CJK punctuation characters U+3008 and U+3009.
1374 * font/devutf8/R.proto: Updated.
1375 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1377 * man/groff_char.man: Simplify handling of table traps by
1378 introducing `start block' and `end block' macros.
1379 (Ns, Ne, 2s, 2e, Ds, De): New macros.
1380 (DL): Make it work with Unix troff also.
1381 Fix code values of `la' and `ra'.
1383 * tmac/dvi.tmac: Define `<>' for CW and CWI.
1385 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
1387 * src/devices/grohtml/post-html.cc (element_list::~element_list):
1388 New destructor, fixing a major memory leak.
1390 2003-02-22 Werner LEMBERG <wl@gnu.org>
1392 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1393 to be in conformance with Unicode 3.0 and newer.
1395 * font/devlj4/generate/text.map: Add `Eu'.
1396 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1397 * font/devlj4/S: Regenerated.
1399 * man/groff_char.man: Completely rewritten.
1401 * doc/groff.texinfo: Fix description of request and macro arguments.
1403 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
1407 * src/devices/grohtml/html-table.cc (html_table::~html_table):
1408 Deallocate `columns' list.
1409 * src/devices/grohtml/post-html.cc (char_block::~char_block):
1411 (text_glob::text_glob_html, text_glob::text_glob_special,
1412 text_glob::text_glob_line, text_glob::text_glob_auto_image,
1413 text_glob::text_glob_tag): Avoid memory leaks.
1414 (text_glob::remember_table): Free memory before reassigning.
1416 2003-02-19 Werner LEMBERG <wl@gnu.org>
1418 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1419 alias `hbar'), the Planck constant over two pi.
1421 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1422 `+e' for position 34.
1423 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1424 `u2662' and `u2661'.
1425 * font/devdvi/{MI,S}: Regenerated.
1426 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1427 * font/devlbp/*: Add `hbar' alias.
1428 * font/devlj4/generate/special.map: Ditto.
1429 * font/devlj4/S: Regenerated.
1430 * font/devps/generate/symbolchars: Add `+e'.
1431 * font/devps/generate/textmap: Fix PS name for `-h'.
1433 * font/devps/symbolmap: Regenerated.
1435 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1437 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1439 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1442 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1444 * tmac/tty-char.tmac: Add `+e'.
1446 2003-02-17 Werner LEMBERG <wl@gnu.org>
1448 Another round trying to really fix problems with `have_input'.
1450 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1451 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1453 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1454 handling if both foreground and background colors are default.
1456 * doc/groff.texinfo (Debugging): Document .lf differences to
1459 2003-02-16 Werner LEMBERG <wl@gnu.org>
1461 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1462 null-bytes in created string.
1464 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1465 alias_macro, lookup_request): Improve warning messages.
1467 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1469 Free `last_image_filename'.
1471 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1473 (imageList::createPage, imageList::createImage): Use `free', not
1475 (imageItem::~imageItem): Free `imageName'.
1476 (addRegDef): Use `strsave', not `strdup'.
1477 (get_resolution): Free `pathp'.
1479 2003-02-15 Werner LEMBERG <wl@gnu.org>
1481 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1484 2003-02-14 Werner LEMBERG <wl@gnu.org>
1486 Add memory management for colors to deallocate unnamed colors
1489 * src/include/color.h (color): New members `free_list' and `next'.
1490 New member functions `new' and `delete'.
1492 * src/libs/libgroff/color.cc: Implement it.
1494 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1495 for array size of new operator.
1497 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1498 redundant comparison.
1500 * src/roff/troff/input.cc (word_space_node::reread,
1501 hmotion_node::reread): Avoid warning about unused parameter.
1502 (reset_output_registers): Remove redundant parameter.
1503 (define_color): Undo change 2003-02-12.
1505 * src/roff/troff/reg.h: Updated.
1507 * src/roff/troff/node.cc (troff_output_file::really_print_line,
1508 output_file::put_filename, real_output_file::really_put_filename,
1509 ascii_output_file::really_print_line,
1510 break_char_node::get_hyphen_list): Avoid warning about unused
1512 (suppress_node::tprint): Updated.
1514 * configure.ac: Check declaration for rand() and srand().
1515 * configure: Regenerated.
1517 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1519 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1522 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1523 to avoid compiler warnings.
1525 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1528 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1530 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1532 Updated all callers.
1534 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1536 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1537 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1539 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1540 Parameter is unused.
1541 (html_printer::add_table_end): Define parameter conditionally.
1542 * src/devices/grohtml/output.cc (simple_output::special): Parameter
1545 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1546 (lbp_printer::set_char): Last parameter is unused.
1548 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1550 2003-02-13 Werner LEMBERG <wl@gnu.org>
1552 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1553 Make \D'f ...' move horizontally again for backwards compatibility.
1554 Replace it with \D'Fg ...' where appropriate to avoid dependency
1555 on horizontal resolution.
1557 * src/roff/troff/input.cc (do_get_long_name): New function.
1558 (get_long_name): Call it.
1560 (read_draw_node): Handle `\D'Fx ...' by calling ...
1561 (read_color_draw_node): New function.
1563 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1565 Pass it to `do_get_long_name' which is used instead of
1568 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1569 unnecessary value guard.
1570 (parse_D_command) <'f'>: Add horizontal shift.
1572 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1573 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1574 (FILL_MAX): Removed.
1576 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1579 2003-02-12 Werner LEMBERG <wl@gnu.org>
1581 * src/roff/troff/input.cc (do_name_test, do_expr_test,
1582 do_zero_width): Push `\n' if closing delimiter is missing.
1584 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1585 <'F'>: Make \F non-transparent at the beginning of line.
1586 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1587 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1590 (define_color): Free color in case of reassignment.
1592 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1593 @DefescListEnd): Use @Var, not @var.
1596 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1598 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1599 `shaded' and `outlined' arrays.
1600 (object_spec::object_spec): Initialize `shaded' and `outlined'.
1601 (graphic_object::set_fill_color, graphic_object::set_outline_color):
1603 (closed_object::set_fill_color): Ditto.
1604 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1606 (troff_output::reset_color): Use a_delete instead of free.
1607 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1609 2003-02-11 Werner LEMBERG <wl@gnu.org>
1611 * doc/groff.texinfo: Improve documentation of `ad'.
1612 Document that \D'f...' is dependent on the horizontal resolution.
1613 * man/groff_diff.man: Improve documentation of \D'f...'.
1615 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1616 compensating \h'...' for \D'f ...' since the latter no longer moves
1618 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1620 2003-02-10 Werner LEMBERG <wl@gnu.org>
1622 Improve error messages for `x F' (and `F') commands.
1624 * src/include/error.h: Add declaration for
1625 `current_source_filename'.
1626 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1627 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1628 parameter for source file string.
1629 Updated all callers.
1631 * src/libs/libdriver/input.cc: Add `current_source_filename'.
1632 (remember_source_filename): New function.
1633 (parse_x_command <'F'>, do_file <'F'>): Use it.
1635 2003-02-09 Werner LEMBERG <wl@gnu.org>
1637 Make grotty not emit warnings about unknown colors more than
1640 * src/devices/grotty/tty.cc: Include `ptable.h'.
1641 (TTY_MAX_COLORS): Removed.
1642 (DEFAULT_COLOR_IDX): Defined to -1.
1643 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1644 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1645 Change `tty_colors' to be a ptable.
1646 First arg of `put_color' is now `char'.
1647 New functions `make_rgb_string' and `tty_color'.
1648 (tty_printer::tty_printer): Use `tty_color'.
1649 (tty_printer::color_to_idx): Return value is now `char'.
1652 * src/include/color.h (color): Add `print_color' member function.
1653 * src/libs/libgroff/color.cc (color::print_color): Implement it.
1655 2003-02-08 Werner LEMBERG <wl@gnu.org>
1659 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1662 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1663 assume that value has been allocated with `new[]', thus use
1664 `a_delete' for deallocation.
1666 * src/libs/libdriver/input.cc (get_integer_arg,
1667 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1670 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1671 * src/libs/libgroff/nametoindex.cc
1672 (character_indexer::named_char_index): Use `new <type>[1]'.
1674 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1676 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1677 (split_text): Use `a_delete'.
1679 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1682 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1683 harmless memory leak.
1684 (hyphen_trie::read_patterns_file): Initialize `buf'.
1685 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1686 Initialize `current_fill_color'and `current_glyph_color'.
1687 * src/roff/troff/glyphuni.cc
1688 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1689 * src/roff/troff/uniuni.cc
1690 (unicode_decompose_init::unicode_decompose_init): Ditto.
1691 * src/roff/troff/uniglyph.cc
1692 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1694 2003-01-26 Werner LEMBERG <wl@gnu.org>
1696 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1697 `access' before calling `unlink'.
1698 (do_file): Handle __EMX__.
1700 * src/include/nonposix.h: Handle __EMX__.
1702 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1703 (fontpath,tmacpath): Use it.
1705 Sorted alphabetically.
1707 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1709 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1712 2003-01-27 Werner LEMBERG <wl@gnu.org>
1714 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1715 New files, copied from gnulib.
1716 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1717 * configure.ac: Updated.
1718 * configure: Regenerated.
1720 * src/include/config.hin: Regenerated.
1721 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1722 Don't define `strcasecmp' as `strcmp'.
1723 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1724 Dont define `strncasecmp' as `strncmp'.
1726 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1729 2003-01-26 Werner LEMBERG <wl@gnu.org>
1731 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1734 2003-01-25 Werner LEMBERG <wl@gnu.org>
1736 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1738 2003-01-24 Werner LEMBERG <wl@gnu.org>
1740 Add US-english hyphenation exceptions (converted from Barbara
1741 Beeton's hyphenation exception log reports which appear irregularly
1744 * tmac/hyphen.us: Updated to latest version.
1745 * tmac/README: Updated.
1746 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1747 * tmac/troffrc: Load `hyphenex.us'.
1748 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1749 * doc/groff.texinfo: Updated.
1751 2003-01-23 Werner LEMBERG <wl@gnu.org>
1753 Improve hyphenation slightly. This is a first step in redesigning
1754 the hyphenation algorithm to make it more flexible (e.g. allowing
1755 kerns and ligatures between the hyphenation character and the
1756 following character -- while not used normally in English, other
1757 languages like German would benefit).
1759 * src/roff/troff/env.cc (environment::hyphenate_line): Use
1760 assertion instead of if-clause.
1761 Let `get_hyphen_list' return the number of involved characters in
1762 the hyphenation pattern instead of computing it directly (which
1763 often yields too small values).
1764 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1765 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1768 2003-01-22 Werner LEMBERG <wl@gnu.org>
1770 Fixing a bug which caused groff to hang if the hyphenation exception
1771 dictionary tried to grow.
1773 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1774 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1775 pointer to dictionary.
1777 2003-01-20 Werner LEMBERG <wl@gnu.org>
1779 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1780 negative left italic correction.
1781 * src/utils/afmtodit/afmtodit.man: Document it.
1783 * font/devps/generate/Makefile (RFLAG): Add `-m'.
1784 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1785 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1789 2003-01-16 Werner LEMBERG <wl@gnu.org>
1793 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
1795 * src/preproc/refer/refer.man: Mention REFER environment variable.
1797 2003-01-05 Werner LEMBERG <wl@gnu.org>
1799 Similar to \[is], the square root glyph (\[sr]) and the square root
1800 extension glyph (\[radicalex]) are now text symbols. The new
1801 mathematical versions are called \[sqrt] and \[sqrtex],
1804 * font/devX*/S: Regenerated.
1805 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1806 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1807 * font/devdvi/EX, font/devdvi/S: Regenerated.
1808 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1809 * font/devlj4/generate/special.map: Add `sqrt'.
1810 * font/devlj4/S: Regenerated.
1811 * font/devps/generate/textmap: Add `sqrt'.
1812 * font/devps/S, font/devps/symbolmap: Regenerated.
1814 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1815 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1816 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1817 overlap horizontally.
1819 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1820 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1823 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1824 and `sqrtex' are overlapping glyphs.
1826 2003-01-04 Werner LEMBERG <wl@gnu.org>
1828 * font/devdvi/generate/texsy.map: Add `is'.
1829 * font/devps/symbolmap: Regenerated.
1830 * font/devdvi/*TC, MI, S: Regenerated.
1832 * tmac/dvi.tmac: Remove `is'.
1834 2003-01-03 Werner LEMBERG <wl@gnu.org>
1836 `is' is now a text symbol (only relevant for dvi). The math variant
1837 can be accessed with `integral'.
1839 * font/devX*/S: Regenerated.
1840 * font/devdvi/generate/texex.map: Remove `is'.
1841 * font/devdvi/EX: Updated.
1842 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1843 * font/devlj4/generate/special.map: Ditto.
1844 * font/devlj4/S: Regenerated.
1845 * font/devps/generate/textmap: Add `integral'.
1846 * font/devps/S: Regenerated.
1848 * tmac/dvi.tmac: Define `is'.
1850 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1852 * src/preproc/tbl/main.cc (process_format): Fix error message.
1854 2003-01-02 Werner LEMBERG <wl@gnu.org>
1856 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1857 * font/devps/textmap: Fix entries for `ne' and `nc'.
1858 * font/devps/symbolmap: Regenerated.
1860 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1861 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1862 `38', `58', `78', `-+', `|=', `nc', `ne'.
1864 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1865 Use `schar' for `aq'.
1866 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1867 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1868 * tmac/tty.tmac: Add `ne'.
1870 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1871 for fallback glyphs.
1873 2002-12-29 Werner LEMBERG <wl@gnu.org>
1877 * font/devX*/*: Regenerated.
1878 * font/devdvi/generate/ec.map: Remove `eq'.
1879 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1880 Assign `|=' to position 39.
1881 * font/devdvi/*EC, S: Regenerated.
1882 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1883 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1884 Assign `|=' to position 549.
1885 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1887 Add `uni2243' for `|='.
1889 * tmac/ec.tmac: Add `eq'.
1890 * tmac/dvi.tmac: Add `=~'.
1891 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1894 2002-12-21 Werner LEMBERG <wl@gnu.org>
1896 * font/devdvi/generate/tc.map: Remove `**'.
1897 * font/devdvi/*TC: Regenerated.
1898 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
1900 * font/devutf8/NOTES: Updated.
1902 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
1903 Don't give default parameter to `set_macro'.
1904 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
1905 instead of `set_macro'.
1906 (charinfo::setx_macro): Implement it.
1907 (charinfo::set_macro): Don't change `mode'.
1909 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
1910 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
1911 * tmac/dvi.tmac: Define `!=' with `.schar'.
1913 2002-12-20 Werner LEMBERG <wl@gnu.org>
1915 * font/devX*/S: Regenerated.
1916 * font/devdvi/generate/ec.map: Remove `pl'.
1917 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
1918 * font/devdvi/*{TC,EC}: Regenerated.
1919 * font/devhtml/R.proto: Add `-+'.
1920 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
1921 * font/devlbp/*: Remove `or'.
1922 * font/devlj4/generate/special.map: Remove `or'.
1923 * font/devlj4/S: Regenerated.
1924 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
1925 `seveneighths', `threeeighths'.
1927 Replace `minusplus' with `uni2213'.
1928 * font/devps/symbolmap: Regenerated.
1929 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
1932 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
1934 * src/roff/troff/node.cc (troff_output_file::put_char_width):
1935 Call glyph_color and fill_color even if tcommand_flag isn't set.
1936 (make_node, node::add_char): Check not ci->is_fallback but
1939 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
1940 * tmac/ec.tmac: Add .rchar entry for `f/'.
1941 Don't remove `12', `14', `34'.
1942 Define `pl' to be always roman.
1943 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
1944 Define `18', `38', `58', `78'.
1945 * tmac/tty.tmac: Add `-+'.
1946 * tmac/dvi.tmac: Define `f/'.
1947 (dvi-frac): Use `f/'.
1948 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
1949 Define `18', `38', `58', `78'.
1951 2002-12-15 Colin Watson <cjwatson@debian.org>
1953 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
1955 2002-12-10 Werner LEMBERG <wl@gnu.org>
1957 Add glyph `tno', a textual variant of `no'.
1959 * font/devX*/*: Regenerated.
1960 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
1961 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
1962 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
1963 * font/devdvi/*: Regenerated.
1964 * font/devlbp/*: Add `tno'.
1965 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
1966 * font/devlj4/*: Regenerated.
1967 * font/devps/generate/textmap: Replace `no' with `tno'.
1968 * font/devps/generate/symbolchars: Add `no'.
1969 * font/devps/*: Regenerated.
1971 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
1973 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
1974 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
1978 * tmac/dvi.tmac: Replace most `\\' with `\E'.
1979 Add definition for `sd'.
1980 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
1982 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
1984 2002-12-08 Werner LEMBERG <wl@gnu.org>
1986 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
1987 mode to avoid rounding errors.
1988 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
1990 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
1991 src/roff/troff/troff.man: Improve documentation of -T.
1993 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
1995 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
1996 (run_pipeline) [_WIN32]: Provide working function without `fork'.
1998 2002-12-06 Werner LEMBERG <wl@gnu.org>
2000 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2001 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2002 Scaling Euro.sansserif glyphs down to have the same height as
2004 Removed unnecessary points; added some extrema.
2006 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2009 2002-12-04 Werner LEMBERG <wl@gnu.org>
2011 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2012 and `Euro.symbol.bold.slanted'.
2013 Improve some glyph offsets and widths.
2014 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2016 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2018 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2021 * tmac/europs.tmac: Updated to new glyph indices.
2022 Use Euro.symbol for font familiy `A'.
2024 * doc/groff.texinfo: Minor improvements.
2026 2002-12-02 Werner LEMBERG <wl@gnu.org>
2028 * font/devdvi/generate.tc.map: s/%O/%0/.
2029 * font/devdvi/*TC: Regenerated.
2031 * src/roff/troff/div.cc (init_div_requests): Sorted.
2033 * tmac/dvi.tmac: Remove `Ye'.
2034 * tmac/ec.tmac: Remove `Ye'.
2035 Add .rchar entry for `de'.
2037 * man/groff.man, man/groff_diff.man: Document register `.pe'.
2038 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2041 2002-11-30 Werner LEMBERG <wl@gnu.org>
2043 Add PS font for various Euro glyphs.
2045 * font/devps/generate/freeeuro.sfd: New master font file for
2047 * font/devps/generate/sfdtopfa.pe: New conversion script for
2049 * font/devps/generate/Makefile (FONTS): Add `EURO'.
2050 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2051 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2053 * font/devps/EURO: Generated from `freeeuro.afm'.
2054 * font/devps/download: Add `freeuro.pfa'.
2055 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2058 * tmac/europs.tmac: New file.
2059 * tmac/ps.tmac: Include `europs.tmac'.
2060 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2062 2002-11-29 Werner LEMBERG <wl@gnu.org>
2064 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2065 * font/devdvi/S: Regenerated.
2066 * font/devhtml/R.proto: Fix `CR' and `ci'.
2068 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2070 * font/devps/symbolmap: Regenerated.
2071 * font/devutf8/R.proto: Fix `CR' and `ci'.
2073 * font/devutf8/NOTES: Updated.
2075 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2078 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2080 * tmac/dvi.tmac: Add `lh' and `rh'.
2081 * tmac/Xps.tmac: Fix `lh' and `rh'.
2082 * tmac/X.tmac: Add `OK'.
2083 * tmac/lj4.tmac: Ditto.
2085 2002-11-24 Werner LEMBERG <wl@gnu.org>
2087 * font/devX*/S: Regenerated.
2088 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2089 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2090 * font/devdvi/generate/texsy.map: Remove `or' glyph.
2091 * font/devdvi/S: Regenerated.
2092 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2093 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2094 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2095 `bracketleftbt', `bracketrighttp', `bracketrightex',
2096 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2097 `braceex', `braceleftex', `bracerightex', `bracerighttp',
2098 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2100 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2101 * font/devutf8/NOTES: Updated.
2102 * font/devlj4/generate/special.map: Add glyph `braceex'.
2103 * font/devlj4/S: Regenerated.
2105 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2107 2002-11-14 Werner LEMBERG <wl@gnu.org>
2109 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2112 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2114 * doc/texinfo.tex: New version from texinfo 4.3.
2115 * doc/groff.texinfo: Updated for texinfo 4.3.
2116 Use @tie{} where appropriate.
2117 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2118 * font/devdvi/generate/tc.map: Remove `rn'.
2119 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2120 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2122 * font/devX100/*, font/devX100-12/*, font/devX75/*,
2123 font/devX75-12/*: Regenerated.
2125 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
2126 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
2127 Improve definition of `an'.
2128 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
2130 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
2131 * tmac/X.tmac: Add definition for `or'.
2132 * tmac/Xps.tmac: Undo change 2002-11-05.
2133 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
2135 2002-11-11 Werner LEMBERG <wl@gnu.org>
2137 * src/roff/troff/node.cc (troff_output_file::put_char): Always
2140 2002-11-10 Werner LEMBERG <wl@gnu.org>
2142 Added three new requests `schar', `fschar', and `rfschar'. `schar'
2143 defines a glyph which is searched after the check for fonts declared
2144 with `.special' (and before the check for all mounted special
2145 fonts). `fschar' defines a glyph for a particular font which is
2146 searched after the check for fonts declared with `.fspecial' (and
2147 before the check for fonts declared with `.special'). `rfschar'
2148 removes glyphs defined with `fschar'.
2150 * src/roff/troff/token.h (char_mode): New enum.
2151 Declare do_define_character.
2152 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
2154 (charinfo::is_fallback): Updated.
2155 (charinfo::is_special): New method.
2156 * src/roff/troff/input.cc (do_define_character): Add and use
2157 optional second parameter used as a prefix for font-specific glyph
2159 (define_character, define_fallback_character): Updated.
2160 (define_special_character): New function.
2161 (init_input_requests): Add `schar'.
2162 (charinfo::charinfo, charinfo::set_macro): Updated.
2163 * src/roff/troff/node.cc: Include `stringclass.h'.
2164 (make_glyph_node): Handle special glyphs defined with `.schar' and
2166 (define_font_special_character, remove_font_special_character): New
2168 (init_node_requests): Sorted.
2169 Add `fschar' and `rfschar'.
2170 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2171 Document new requests.
2173 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
2174 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
2176 2002-11-08 Werner LEMBERG <wl@gnu.org>
2178 Added new font `SC' (cmtex10) to devdvi.
2180 * devdvi/generate/Makefile (FONTS): Add `SC'.
2182 * devdvi/generate/textex.map: New map file for cmtex.
2184 * devdvi/Makefile.sub (DEVFILES): Updated.
2185 * tmac/dvi.tmac: Add fspecial entries for SC.
2186 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
2187 found before `S' since the font position of `SC' is lower due to the
2188 gaps in DESC's `font' line.
2189 * tmac/ec.tmac: Add a `special' call.
2192 * font/devhtml/R.proto: Remove double entry for `ti'.
2193 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
2194 * tmac/tty-char.tmac: Remove entry for `bq'.
2195 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
2196 * tmac/ec.tmac: Don't remove `aq' glyph.
2197 * tmac/X.tmac: Fix entry for `em'.
2198 Add entries for `fo' and `fc'.
2199 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
2201 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
2202 documentation of `special' and `fspecial' requests.
2204 2002-11-05 Werner LEMBERG <wl@gnu.org>
2206 * font/devascii/R.proto, font/devcp1047/R.proto,
2207 font/devlatin1/R.proto: Remove entry for `.i'.
2208 * font/devdvi/generate/textt.map: Add entry for `ad'.
2209 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2210 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2211 We need this for getting kerning values to compose `/l' and `/L'.
2212 * font/devdvi: Regenerated font definition files for CM fonts.
2213 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2214 * font/devutf8/R.proto: Ditto.
2215 Remove double entry for `ti'.
2217 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2218 for (groff) ligatures, `la', and `ra'.
2219 Add "'C", "'c", `IJ', and `ij'.
2220 Remove double entry for `ti'.
2221 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2223 Add "'C", "'c", `IJ', and `ij'.
2224 Fix entries for (groff) ligatures, `la', and `ra'.
2226 * tmac/ps.tmac (ps-achar): New macro.
2227 Define "'c" and "'C".
2228 * tmac/tty.tmac: Add entry for `.i'.
2229 * tmac/X.tmac (X-achar): New macro.
2230 Define "'c", "'C", and `:Y'.
2231 Add entries for `IJ' and `ij'.
2232 * tmac/Xps.tmac (Xps-achar): New macro.
2233 Define "'c" and "'C".
2234 Add entries for `IJ' and `ij'.
2235 * tmac/lbp.tmac (lbp-achar): New macro.
2236 Add fallback characters for all groff ligatures and many other
2238 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
2239 Add entries for `/l' and `/L'.
2240 Define "'c" and "'C".
2241 Add entries for `IJ' and `ij'.
2243 2002-11-02 Larry Kollar <kollar@alltel.net>
2245 * PROBLEMS: Document how to solve Mac OS X compilation problems.
2247 2002-11-02 Werner LEMBERG <wl@gnu.org>
2249 Adding support for composite glyphs: \[xxx yyy ...] and the
2250 `composite' request.
2252 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2253 to Unicode-based glyph names.
2254 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2255 glyph names to groff glyph names.
2256 * src/roff/troff/uniuni.cc: New file for canonically decomposing
2257 Unicode-based glyph names.
2258 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2259 for handling Unicode glyph names.
2260 * src/roff/troff/input.cc: Include unicode.h.
2261 (composite_glyph_name): New function.
2262 (token::next) <'['>: Handle Unicode glyph names and composite
2264 (composite_dictionary): New dictionary for the `composite' request.
2265 (composite_request): Implement `composite' request.
2266 (init_input_requests): Add `composite'.
2267 Alphabetically sorted.
2268 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2270 (init_env_requests): Alphabetically sorted.
2271 Removed `tas' and `tar' (already commented out).
2272 * src/roff/troff/Makefile.sub: Updated.
2274 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
2276 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2279 2002-10-29 Werner LEMBERG <wl@gnu.org>
2281 Fix computation of .trunc register. Additionally, its value (and
2282 the value of the .ne register) is now always set before entering the
2285 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2286 `needed_space' before calling `space'.
2287 (top_level_diversion::space): Remove special code for 'sp before the
2289 Call `begin_page' with the discarded space as a parameter.
2290 (top_level_diversion::begin_page): Add optional parameter to set
2292 * src/roff/troff/div.h: Updated.
2294 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2297 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2298 (LP): Remove superfluous call to `br'.
2299 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2300 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2302 2002-10-26 Werner LEMBERG <wl@gnu.org>
2304 * tmac/doc-ditroff: Remove useless switch/variable -rC.
2305 (doc-setup-header): Don't set page register `%'.
2306 * tmac/doc-nroff: Remove variable `C'.
2307 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2308 (doc-setup-header): Don't set page register `%'.
2310 * tmac/doc-common (doc-header): Call `ns'.
2311 (doc-paragraph): Protect .sp with .br so that it survives traps
2312 possibly set by the user.
2313 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2315 * tmac/doc*: Replace ' with . for consistency if no effect.
2317 2002-10-26 Werner LEMBERG <wl@gnu.org>
2319 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2320 so that it survives traps possibly set by the user.
2322 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2323 (troff_output_file::set_font): Call flush_tbuf if necessary.
2324 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2325 flush_tbuf and do_motion only if necessary.
2326 (troff_output_file::start_special,
2327 troff_output_file::put_char_width, troff_output_file::put_char,
2328 troff_output_file::draw): Updated.
2329 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2330 vmotion_node::tprint): Undo change 2002-10-23.
2332 2002-10-25 Werner LEMBERG <wl@gnu.org>
2334 * tmac/www.tmac (DC): Fix case of overlapping images.
2336 2002-10-23 Werner LEMBERG <wl@gnu.org>
2338 * src/roff/troff/node.cc (troff_output_file::fill_color,
2339 troff_output_file::glyph_color): Set current color before testing
2341 (troff_output_file::put_char_width, troff_output_file::put_char,
2342 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2344 (troff_output_file::file_color, troff_output_file::glyph_color):
2346 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2347 vmotion_node::tprint): Move first, then call fill_color.
2349 2002-10-20 Werner LEMBERG <wl@gnu.org>
2351 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2352 possible to use multiple main macro packages.
2354 2002-10-19 Werner LEMBERG <wl@gnu.org>
2356 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2357 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2358 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2360 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2361 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2363 2002-10-16 Werner LEMBERG <wl@gnu.org>
2365 * NEWS, doc/webpage.ms: Updated.
2367 2002-10-14 Werner LEMBERG <wl@gnu.org>
2369 * src/roff/troff/node.cc (troff_output_file::put_char_width,
2370 troff_output_file::put_char, troff_output_file::fill_color,
2371 troff_output_file::glyph_color): Handle case where color pointer
2374 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
2376 Add the new -r option to grotty. It is similar to the -i option
2377 except it tells grotty(1) to use the "reverse video" attribute to
2378 render italic fonts.
2380 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2381 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2382 (tty_printer::make_underline, tty_printer::put_color,
2383 tty_printer::end_page): Use it.
2384 (main): Add -r switch.
2386 * src/devices/grotty/grotty.man: Document it.
2388 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
2390 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2391 cast to `unsigned char' to properly read patterns with 8bit
2394 2002-10-08 Werner LEMBERG <wl@gnu.org>
2396 * REVISION: Increased to 2.
2398 Version 1.18.1 released
2399 =======================
2401 2002-10-08 Werner LEMBERG <wl@gnu.org>
2403 * doc/webpage.ms, NEWS: Updated.
2405 2002-10-07 Werner LEMBERG <wl@gnu.org>
2407 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2408 suppress additional whitespace after the header.
2410 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2413 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2415 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
2417 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2418 (Dt): Use it to improve language localization (especially Russian
2421 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
2423 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2424 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2426 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2428 Call `picurve' for BSPLINE.
2429 (HGPrintElt): Handle BSPLINE.
2430 * src/preproc/grn/README: Document it.
2432 2002-10-03 Werner LEMBERG <wl@gnu.org>
2434 * src/roff/troff/node.cc (break_char_node::col): New variable.
2435 Updated constructor.
2436 (space_node::tprint, word_space_node::tprint): Call `fill_color'
2438 (space_node::space_node): Remove assertion.
2439 (break_char_node::add_self): Pass color argument to space node.
2440 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2442 * src/roff/troff/env.cc (environment::do_break,
2443 environment::add_padding): Ditto.
2445 2002-10-02 Werner LEMBERG <wl@gnu.org>
2447 Redesigning color support in troff. Colors are no longer
2448 represented as separate nodes but are now part of glyph nodes and
2449 friends. This fixes the current formatting misbehaviour due to the
2450 changes introduced on 2002-09-20. Some extra code is necessary for
2451 proper grotty support: Without adding color variables to
2452 space-related nodes, the background color would be changed too late.
2454 * src/roff/troff/node.h, src/roff/troff/node.cc:
2455 s/current_pagecolor/current_fill_color/.
2456 s/current_glyphcolor/current_glyph_color/.
2457 (glyph_color_node, fill_color_node): Removed.
2458 (node::get_glyph_color, node::get_fill_color): New virtual member
2460 (space_node::col): New variable.
2461 Updated constructors of space_node and derived classes accordingly.
2462 (hmotion_node::col): New variable.
2463 Updated constructors of hmotion_node and space_char_hmotion_node
2465 (vmotion_node::col): New variable.
2466 Updated constructor accordingly.
2467 (draw_node::gcol, draw_node::fcol): New variables.
2468 Updated constructor accordingly.
2469 (special_node::gcol, special_node::fcol): New variables.
2470 Updated constructors accordingly.
2471 (troff_output_file::put_char, troff_output_file::put_charwidth,
2472 troff_output_file::draw): Set glyph and fill color.
2473 (troff_output_file::start_special): Set glyph and fill color.
2474 Always set current font.
2475 (troff_output_file::fill_color, troff_output_file::glyph_color):
2476 Don't call `do_motion'.
2477 (glyph_node::gcol, glyph_node::fcol): New variables.
2478 Updated constructors of glyph_node and ligature_node accordingly.
2479 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2481 (glyph_node::merge_glyph_node,
2482 kern_pair_node::add_discretionary_hyphen,
2483 node::add_discretionary_hyphen): Updated.
2484 (break_char_node::merge_self): Updated.
2485 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2486 vmotion_node::tprint): Handle color.
2487 (make_glyph_node, make_node, node::add_char): Updated.
2489 * src/roff/troff/env.cc (environment::space_newline,
2490 environment::space, environment::output_line, environment::do_break,
2491 environment::make_tab_node, environment::add_padding, title):
2493 (environment_switch, environment_copy): Don't add color nodes.
2495 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2497 (token::next): Updated.
2498 \m and \M now are as transparent as \s.
2499 (process_input_stack, token::add_to_node_list, token::process,
2500 read_draw_node): Updated.
2501 (charinfo_to_node_list): Don't add color nodes.
2503 * doc/groff.texinfo: Updated.
2505 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
2507 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2510 2002-09-27 Colin Watson <cjwatson@debian.org>
2512 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2514 2002-09-23 Werner LEMBERG <wl@gnu.org>
2516 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2518 (DEFAULT_LINEWIDTH_FACTOR): New macro.
2519 (linewidth_factor): New global variable.
2520 (lbp_printer::set_line_thickness): Fix case for size < 0, using
2522 (long_options): Add -w/--linewidth option.
2524 (main): Handle -w option to set linewidth_factor.
2525 (lbp_printer::lbp_printer): Initialize req_linethickness, not
2528 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2530 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
2532 Fixed a bug in the line thickness setting code.
2534 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2536 (lbp_printer::set_line_thickness): Pass environment as second
2538 Implement it actually.
2539 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2540 and `set_line_thickness, depending on the current font size.
2542 2002-09-21 Werner LEMBERG <wl@gnu.org>
2544 Some Debian patches.
2546 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2547 * src/roff/troff/node.cc (bracket_node::copy): Initialize
2550 2002-09-20 Werner LEMBERG <wl@gnu.org>
2552 * configure: Regenerated with autoconf 2.54.
2554 2002-09-20 Werner LEMBERG <wl@gnu.org>
2556 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2558 Rename cur_fill_color to fill_color.
2559 * src/roff/troff/env.cc: Updated.
2561 2002-09-20 Werner LEMBERG <wl@gnu.org>
2563 * src/roff/troff/env.cc (title): Copy color status after processing
2565 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2566 fill color nodes to reset colors properly.
2568 * tmac/www.tmac (DC): Fix color handling.
2570 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2571 * doc/groff.texinfo: Fixing documentation of `tl' request.
2572 * doc/webpage.ms: Updated.
2574 2002-09-19 Werner LEMBERG <wl@gnu.org>
2576 * src/roff/troff/env.cc (environent_switch, environment_copy):
2577 Emit glyph and fill color nodes to initialize colors properly.
2579 2002-09-17 Colin Watson <cjwatson@debian.org>
2581 * src/roff/troff/env.cc (environment::set_glyph_color,
2582 environment::set_fill_color): Fix typo which prevented \m[] work
2585 2002-09-17 Werner LEMBERG <wl@gnu.org>
2587 Add left and right italic correction to non-slanted PS fonts. This
2588 is an experimental feature to improve image rendering of grohtml.
2590 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2591 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2592 * font/devps/*: All non-slanted fonts regenerated.
2595 2002-09-16 Werner LEMBERG <wl@gnu.org>
2597 Add a site-specific font directory.
2599 * Makefile.in (localfontdir, legacyfontdir): New variables.
2600 (fontpath): Use them.
2601 (MDEFINES, uninstall_dirs): Updated.
2602 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2603 Remove `FONTPATH' and `MACROPATH'.
2605 * src/roff/troff/troff.man, NEWS: Updated.
2606 * doc/groff.texinfo (Font Directories): New section.
2609 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2610 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2611 src/preproc/grn/grn.man: Minor fixes.
2613 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2614 Remove unused variable.
2616 2002-09-11 Werner LEMBERG <wl@gnu.org>
2618 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2619 * man/groff_out.man: Fix documentation of 'N'.
2621 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
2623 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2624 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2626 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2627 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2628 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2629 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2630 PRE_TAG>: Call `begin' with `FALSE'.
2632 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2634 * src/libs/libgroff/string.cc (string::extract): Fix position of
2635 terminating null byte.
2637 2002-09-08 Werner LEMBERG <wl@gnu.org>
2639 Add global option `nospaces' to tbl so that leading and trailing
2640 spaces in data items are ignored.
2642 * src/libs/libgroff/string.cc (string::remove_spaces): New member
2643 function to remove leading and trailing spaces.
2644 * src/include/stringclass.h: Updated.
2646 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2648 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2650 Fix typo in error messages.
2651 (process_data): Implement `nospaces' option.
2652 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2654 2002-09-07 Werner LEMBERG <wl@gnu.org>
2656 * src/include/config.hin: Add `HAVE_ISATTY'.
2657 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2659 * src/libs/libgroff/tmpname.cc: Include `time.h'.
2660 * src/libs/libdriver/input.cc (Char): Add `operator==' and
2661 `operator!=' for `char'.
2662 * doc/groff.texinfo: Replace @ifnottex block for top node with
2665 2002-09-06 Werner LEMBERG <wl@gnu.org>
2667 * doc/Makefile.in (.texinfo.html): Add -I switch.
2668 * doc/groff.texinfo: Add @ifnottex block for top node to make
2669 translation to HTML work.
2671 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
2673 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2674 (get_papersize, determine_vertical_offset): Removed.
2675 (char_buffer::do_image): Always specify letter size.
2677 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2680 2002-09-05 Werner LEMBERG <wl@gnu.org>
2682 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2683 default indentation.
2685 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
2687 * src/preproc/html/pre-html.cc (imageList::createPage): Use
2689 (generateImages): Clean up push-back buffer.
2691 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2693 * doc/groff.texinfo: Minor fixes.
2695 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2697 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2698 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2700 (determine_vertical_offset): Use LETTER_LENGTH.
2701 (createPage): Moved to ...
2702 (imageList::createPage): This.
2703 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2704 (imageList::getMaxX): New function.
2705 (createImage): Moved to ...
2706 (imageList::createImage): This.
2707 (imageList::createImages): New function.
2708 (generateImages): Read `maxx' directly.
2710 (scanArguments): Don't specify `gsPaper' for `-o'.
2711 (makeTempFiles): Call `xtmpfile' with the last argument set to
2714 2002-08-24 Werner LEMBERG <wl@gnu.org>
2716 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2717 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2718 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2719 * src/preproc/html/pushback.cc: Include nonposix.h.
2720 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2723 2002-08-23 Werner LEMBERG <wl@gnu.org>
2725 Use $(OBJEXT) for the object file extension.
2727 * Makefile.comm (.SUFFIXES): Add .obj.
2728 (.cc.obj, .c.obj): New implicit rules.
2729 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2730 (MDEFINES): Add EXEEXT and OBJEXT.
2731 * */Makefile.sub: s/.o/.$(OBJEXT)/.
2733 2002-08-22 Werner LEMBERG <wl@gnu.org>
2735 * INSTALL: Mention texinfo 4.2 as a prerequisite.
2737 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2739 * src/devices/grohtml/post-html.cc (colType): Make enum global to
2741 (html_printer::update_min_max, html_printer::add_table_end): New
2743 (html_printer::lookahead_for_tables): Use them.
2744 Reset page offset correctly.
2745 (html_printer::~html_printer): Add creation of creator comment up.
2747 2002-08-20 Werner LEMBERG <wl@gnu.org>
2749 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2750 * man/groff_tmac.man: Fix typos.
2751 * man/groff_font.man: Minor reordering.
2752 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2753 * contrib/groffer/groffer.man: Fix typos.
2755 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2757 Avoid endless loops while scanning for tables.
2759 * src/devices/grohtml/post-html.cc (list::insert): Set
2761 (html_printer::next_horiz_pos): Add `text_glob' argument; update
2763 Return immediately if that argument is NULL.
2764 (html_printer::calc_nf): Don't test if `g' is NULL.
2765 (html_printer::lookahead_for_tables): Use
2766 `glyphs.move_right_get_data'.
2767 Don't test if `g' is NULL.
2769 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2771 A better fix, replacing fix 2002-08-15, for increasing SIZE.
2773 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2775 (char_block::char_block): Allocate `buffer'.
2776 (char_buffer::add_string): Use it.
2778 2002-08-15 Werner LEMBERG <wl@gnu.org>
2780 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2781 src/devices/grodvi/grodvi.man: Document default line thickness.
2783 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
2785 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2788 2002-08-14 Werner LEMBERG <wl@gnu.org>
2790 * doc/webpage.ms: Updated.
2792 2002-08-09 Werner LEMBERG <wl@gnu.org>
2794 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2797 2002-08-08 Aaron Campbell <aaron@monkey.org>
2799 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2802 2002-08-08 Werner LEMBERG <wl@gnu.org>
2804 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2807 Don't push back a space but a newline onto the stack.
2809 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
2811 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2814 * src/devices/grohtml/post-html.cc (html_printer::end_font,
2815 html_printer::start_font): Handle them.
2816 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2818 (html_text::do_bold): Don't reset italic and tt.
2819 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2820 * font/devhtml/DESC.proto: Add those fonts.
2821 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2823 2002-08-07 Werner LEMBERG <wl@gnu.org>
2825 * MORE.STUFF: Added gpresent.
2827 * tmac/trace.tmac: Show nesting level by a corresponding amount of
2828 whitespace before printing the logging message.
2830 2002-07-31 Colin Watson <cjwatson@debian.org>
2832 * src/devices/grohtml/html-table.cc (html_table::finish_row):
2833 Initialize `n' to zero. This fixes a segfault on ARM.
2835 2002-07-30 Werner LEMBERG <wl@gnu.org>
2837 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2839 2002-07-29 Werner LEMBERG <wl@gnu.org>
2841 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2844 2002-07-28 Colin Watson <cjwatson@debian.org>
2846 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2848 (html_printer::html_printer): Initialize `pointsize'.
2850 2002-07-26 Werner LEMBERG <wl@gnu.org>
2852 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2854 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2855 (gnu.eps): Add -rle switch to pnmtops.
2856 (distfiles): Add gnu.eps and gnu.png.
2858 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
2860 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2863 2002-07-24 Werner LEMBERG <wl@gnu.org>
2865 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2866 ' \+' but ' *' for sed.
2867 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2869 2002-07-23 Werner LEMBERG <wl@gnu.org>
2871 * doc/groff.texinfo: Document `papersize' keyword.
2872 * NEWS, man/groff_font.man: Updated.
2874 2002-07-23 Colin Watson <cjwatson@debian.org>
2876 Extend papersize keyword to accept more than a single entry. The
2877 first valid will be used.
2879 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2880 (font::scan_papersize): Really skip final newline.
2881 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2883 2002-07-23 Werner LEMBERG <wl@gnu.org>
2885 * configure.ac: Test for isatty.
2886 * configure: Regenerated.
2887 * src/include/posix.h: Check HAVE_ISATTY.
2888 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2889 * src/utils/lookbib/lookbib.cc: Include posix.h.
2890 Don't declare isatty.
2892 2002-07-21 Werner LEMBERG <wl@gnu.org>
2894 * NEWS: Add `output' request.
2896 * REVISION: Increased to 1.
2898 Version 1.18.0 released
2899 =======================
2901 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
2903 Allow internal glyph indices > 0xFF in grohtml for input characters.
2905 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
2907 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
2908 Updated all callers.
2909 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
2910 (html_printer): Updated.
2912 2002-07-19 Werner LEMBERG <wl@gnu.org>
2914 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
2915 * font/devutf8/R.proto: Adding some missing glyphs.
2916 * font/devutf8/NOTES: Updated.
2918 * tmac/dvi.tmac: Add more composite glyphs.
2919 * tmac/html.tmac: Updated.
2921 * man/groff_char.man: Add `sum' and `product' entities.
2925 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
2927 Improved table, tab, and indenting support.
2929 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
2930 string_iterator::suppress_newline_flag): Removed. Updated all
2931 function which have used it.
2933 * src/roff/troff/env.cc: Include `input.h'.
2934 (environment::add_node): Accept 0 as parameter.
2935 (environment::add_html_tag): Add `force' parameter.
2936 Updated all callers.
2937 (environment::add_html_tag_tabs): Ditto.
2938 For the moment, support left-aligned tabs only.
2939 (environment::make_html_tag): New function.
2940 (fill, no_fill): Set .br html tag additionally.
2941 (environment::newline): Emit `eol.ce' or `eol' tag for html.
2942 (environment::add_html_tag_eol): Removed.
2943 (tab_stops::distance_to_next_tab): Add variant for handling
2945 (environment::distance_to_next_tab): Ditto.
2946 Updated all callers.
2947 (environment::handle_tab): Handle tabs for html.
2949 * src/roff/troff/env.h: Updated.
2951 * src/roff/troff/div.cc: Updated all callers of
2952 `environment::add_html_tag'.
2954 * src/devices/grohtml/html-table.cc,
2955 src/devices/grohtml/html-table.h: New files.
2957 * src/devices/grohtml/html-text.cc (html_text): New members
2958 `blank_para' and `start_space'.
2959 (html_text::issue_tag): Don't emit TABLE_TAG.
2960 Handle indentation for PRE_TAG and P_TAG.
2961 (html_text::end_tag): Updated.
2962 (html_text::table_is_void, html_text::issue_table_begin,
2963 html_text::issue_table_end): Removed.
2964 (html_text::do_push): Simplified.
2965 [DEBUGGING]: Small fix.
2966 (html_text::push_para): Add new parameter for indentation; updated
2969 (html_text::do_indent, html_text::do_table, html_text::done_table,
2970 html_text::is_in_table): Removed.
2971 (html_text::do_pre): Handle P_TAG also.
2972 (html_text::shutdown): Handle p->indent.
2973 (html_text::check_emit_text): Simplified.
2974 (html_text::do_emittext): Reset `blank_para'.
2975 (html_text::do_para): Add new parameter for indentation; updated
2977 (html_text::remove_indent): New function.
2978 (html_text::do_space): Handle verbatim text properly.
2979 (html_text::ever_emitted_text, html_text::starts_with_space,
2980 html_text::remove_para_align): New functions.
2981 (html_text::dump_stack_element, html_text::dump_stack): Updated.
2983 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
2986 * src/devices/grohtml/post-html.cc: Include html-table.h.
2987 (INDENTATION): Removed.
2988 (text_glob): Added many `is_<foo>' functions.
2989 Added table description `tab'.
2990 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
2992 (list): Add `insert' and `move_to' member functions.
2993 (page): Add `insert_tag' member function.
2994 (page::dump_page) [DEBUG_TABLES]: Improved.
2995 (html_printer): Add `table' and `max_linelength' elements.
2996 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
2997 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
2998 `remove_tabs', `remove_courier_tabs'.
2999 (html_printer::emit_raw): Handle indentation.
3000 (html_printer::do_center, html_printer::write_header): Updated.
3001 (html_printer::is_courier_until_eol): Check for tag.
3002 (html_printer::do_linelength): Handle max_linelength.
3003 (html_printer::do_page_offset, html_printer::do_indentation): Handle
3005 (html_printer::do_tempindent): Updated.
3006 (html_printer::do_indentedparagraph): Removed.
3007 (html_printer::do_indent): Simplified.
3008 (html_printer::do_eol): Use `ever_emitted_text'.
3009 (html_printer::do_flush, html_printer::do_links): Don't call
3011 (html_printer::do_break): Handle end_tempindent.
3012 (html_printer::troff_tag): Get argument.
3014 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3015 (html_printer::flush_page): Call `lookahead_for_tables'.
3016 Don't call `done_table'.
3017 (html_printer::add_to_sbuf): Always call do_indent.
3019 * src/devices/grohtml/Makefile.sub: Updated.
3021 * tmac/an-old.tmac (TP): Don't handle html device specially.
3022 (an-do-tag-html): New function which will be used instead of
3023 `an-do-tag' if html device is used.
3025 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3027 * tmac/s.tmac (@IP): Don't handle html device specially.
3028 (@IP-html): New function which will be used instead of `@IP' if
3029 html device is used.
3031 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3032 is a hack which will eventually vanish again.
3033 (PIMG): Handle `-C' option correctly if not html.
3036 2002-07-17 Werner LEMBERG <wl@gnu.org>
3038 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3040 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
3042 * contrib/pic2graph/pic2graph.*: Use convert(1).
3043 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3045 2002-07-14 Bernd Warken <bwarken@mayn.de>
3047 * tmac/groff_trace.man: New file.
3048 * tmac/Makefile.sub: Updated.
3051 2002-07-13 Werner LEMBERG <wl@gnu.org>
3053 * src/roff/groff/groff.man: Add some cross references.
3055 2002-07-12 Werner LEMBERG <wl@gnu.org>
3057 * src/roff/troff/input.cc (substring_request): Add warnings for
3058 string indices out of range.
3060 2002-07-11 Werner LEMBERG <wl@gnu.org>
3062 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3063 * font/devdvi/*EC: Regenerated.
3065 2002-07-10 Bernd Warken <bwarken@mayn.de>
3067 * man/groff_char.man: Updated and extended.
3069 2002-07-10 Werner LEMBERG <wl@gnu.org>
3071 * src/roff/troff/input.cc (length_macro): Renamed to...
3072 (length_request): This.
3073 Move call of `tok.next()' to the very end, otherwise the register
3074 value hasn't been updated yet.
3075 (init_input_requests): Updated.
3077 2002-07-09 Werner LEMBERG <wl@gnu.org>
3079 * src/roff/troff/input.cc (substring_macro): Renamed to...
3080 (substring_request): This.
3081 (init_input_requests): Updated.
3082 * src/roff/troff/request.h: Updated.
3084 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
3086 * src/roff/grog/grog.sh: Fix typo.
3088 2002-07-08 Werner LEMBERG <wl@gnu.org>
3090 * win32-diffs: Updated.
3092 Handle `papersize' keyword properly in DESC.
3094 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3096 Updated all callers.
3097 * src/libs/libgroff/paper.cc: Add four more paper formats used by
3099 * src/include/paper.h: Updated.
3101 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3102 Other minor C syntax fixes.
3103 (papersize, paperlength, paperwidth): Renamed to `user_*'.
3104 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3106 (lbp_printer::lbp_printer): Pass three arguments.
3107 Set paper dimensions properly.
3108 (make_printer, main): Updated.
3109 (handle_unknown_desc_command): Fix error messages.
3110 (main): Handle papersize keyword in DESC properly.
3112 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3114 (lbp_printer::lbp_printer): Pass an argument.
3115 Set paper_size properly.
3116 (handle_unknown_desc_command): Removed.
3117 (make_printer, main): Updated.
3118 * src/devices/grolj4/grolj4.man: Minor documentation fix.
3120 * man/groff_font.man, NEWS: Updated.
3122 2002-07-07 Werner LEMBERG <wl@gnu.org>
3124 Integrated eqn2graph, contributed by Eric S. Raymond.
3126 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
3128 * Makefile.in, NEWS: Updated.
3130 2002-06-04 Werner LEMBERG <wl@gnu.org>
3132 Changing the substring request to make it fit better with other
3133 string manipulation functions in other programming languages:
3134 Index 0 is now the first character in the string, and index -1
3135 indicates the last character. Since this request didn't work
3136 properly anyway in the last release, it doesn't harm too much to
3139 * src/roff/troff/input.cc (substring_macro): Use loops to get
3140 the real string length (ignoring COMPATIBLE_SAVE and
3141 COMPATIBLE_RESTORE) and offsets.
3142 Implement change described above.
3144 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
3145 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
3147 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
3149 2002-06-03 Werner LEMBERG <wl@gnu.org>
3151 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
3152 COMPATIBLE_RESTORE are completely ignored.
3154 * src/roff/troff/input.cc (char_list::set, char_list::get): New
3156 (macro): `length' field renamed to `len'.
3157 Added new field `empty_macro' (1 if macro is empty), to be used
3158 instead of checking `len'.
3159 Updated all callers.
3160 (macro::empty): Updated.
3161 (macro::length, macro::set, macro::get): New functions.
3162 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3164 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
3165 COMPATIBLE_RESTORE pairs.
3166 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3167 * src/roff/troff/request.h: Updated.
3169 * doc/groff.texinfo: Document .chop's behaviour better.
3171 2002-06-02 Werner LEMBERG <wl@gnu.org>
3173 * doc/pic.ms: Fix documentation for the addition of positions.
3175 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
3177 2002-06-29 Werner LEMBERG <wl@gnu.org>
3179 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
3181 * src/roff/troff/input.cc (have_string_arg): New global variable.
3182 (read_mode): New enumeration.
3183 (read_escape_name): Use it. Update all calls.
3184 (read_long_escape_name): Use it. Update all calls.
3185 Set have_string_arg if appropriate.
3186 (get_char_for_escape_name): Add parameter for handling space
3188 (interpolate_string_with_args, decode_string_args): New functions.
3189 (get_copy, token::next): Call it if necessary.
3190 (interpolate_string): Fix error message.
3192 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3195 2002-06-24 Bernd Warken <bwarken@mayn.de>
3197 * man/groff_tmac.man: Updated and extended.
3199 2002-06-24 Werner LEMBERG <wl@gnu.org>
3201 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
3203 2002-06-23 Werner LEMBERG <wl@gnu.org>
3205 * doc/pic.ms: Improve documentation of composite block objects.
3207 2002-06-22 Werner LEMBERG <wl@gnu.org>
3209 * src/roff/troff/input.cc (init_registers): Add three registers
3210 `seconds', `minutes', and `hours' to hold the current time.
3212 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3215 2002-06-20 Werner LEMBERG <wl@gnu.org>
3217 Make \X accept both `\ ' and `\~', converting them to single space
3220 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3221 (token::unstretchable_space): New inline function.
3222 * src/roff/troff/input.cc (token::next, token::delimiter,
3223 token::description, token::add_to_node_list, token::process): Handle
3224 TOKEN_UNSTRETCHABLE_NODE.
3225 (encode_char): Handle tok.stretchable_space and
3226 tok.unstretchable_space.
3228 * NEWS, doc/groff.texinfo: Document it..
3230 2002-06-19 Werner LEMBERG <wl@gnu.org>
3232 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
3234 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
3235 keyword to enable/disable SGR output.
3236 (tty_printer::change_fill_color): New function.
3237 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
3239 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3242 2002-06-18 Werner LEMBERG <wl@gnu.org>
3244 Add a `color' request and a `.color' register to control usage of
3247 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3248 (color_flag): This (which is the inverse).
3249 (activate_color): New function.
3250 (main, init_input_requests): Updated.
3251 * src/roff/troff/troff.h, src/roff/troff/node.cc
3252 (troff_output_file::fill_color, troff_output_file::glyph_color):
3255 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3256 Document the changes.
3258 2002-06-17 Colin Watson <cjwatson@debian.org>
3260 Circumvent bug in autoconf 2.53 regarding top_builddir.
3262 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3263 * Makefile.in, doc/Makefile.in:
3264 s/@top_builddir@/@groff_top_builddir@/.
3265 * configure: Regenerated (with autoconf 2.53).
3267 2002-06-17 Werner LEMBERG <wl@gnu.org>
3269 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3270 `paperwidth' and `paperlength' for the `papersize' keyword.
3272 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
3274 * src/devices/grops/grops.man: Add info about Type 42 fonts.
3276 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
3278 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3279 html_printer::do_linelength, html_printer::do_pageoffset,
3280 html_printer::do_indentation, html_printer::do_tempindent,
3281 html_printer::do_break, html_printer::begin_page): Clear indented
3283 * tmac/html.tmac: Disable hyphenation.
3285 2002-06-15 Werner LEMBERG <wl@gnu.org>
3287 Don't produce HTML files if utility programs are missing.
3289 * Makefile.in (make_html, make_install_html): New variables.
3290 (MDEFINES): Updated.
3292 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3294 * configure.ac: Use it.
3295 * configure: Regenerated.
3297 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3298 (HTMLEXAMPLESFILES): This new variable.
3299 (EXAMPLESIMAGEFILES): Renamed to...
3300 (HTMLEXAMPLEIMAGEFILES): This.
3301 (CLEANADD): Add HTMLEXAMPLEFILES.
3302 (all): Use `make_html'.
3304 (install_data): Use `make_install_html'.
3305 Move html stuff to...
3306 (install_html): This new target.
3307 (uninstall_sub): Updated.
3309 2002-06-14 Bernd Warken <bwarken@mayn.de>
3311 * src/roff/grog/Makefile.sub (grog): Renamed to...
3313 (grog): New rule to always install grog.sh as grog.
3315 2002-06-08 Bernd Warken <bwarken@mayn.de>
3317 * src/roff/grog/grog.pl: Fix typo.
3319 2002-06-07 Werner LEMBERG <wl@gnu.org>
3321 * doc/groff.texinfo: Add more info on .tr arguments.
3323 2002-06-05 Werner LEMBERG <wl@gnu.org>
3325 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3327 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3328 * configure: Regenerated.
3330 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3332 * src/roff/troff/symbol.cc (table_sizes): Add more values.
3334 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3336 2002-06-04 Werner LEMBERG <wl@gnu.org>
3338 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3339 is not initialized at the time we need it in case `--prefix' hasn't
3340 been set. Check for `ac_default_prefix' also.
3341 Test for `papersize' keyword also and generalize allowed whitespace.
3342 * configure: Regenerated.
3344 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3347 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3349 (src_version, src_revision): New variables to avoid overwriting
3350 from parent make process.
3351 (version.cc): Updated.
3353 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3354 (linebuf, linebufsize): New global variables.
3355 (sys_fatal): Use `fatal' to abort properly.
3356 (get_line): New function.
3357 (get_resolution): Use it.
3358 Improve error messages.
3359 (get_papersize): Check `papersize' also.
3361 Improve error messages.
3363 2002-06-03 Werner LEMBERG <wl@gnu.org>
3365 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3366 should be removed only if builddir is not srcdir.
3367 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3368 (clean): Depend on `mostlyclean'.
3369 (distclean): Depend on `clean'.
3370 (realclean, extraclean): Depend on `distclean'.
3371 (.y.cc, .y.o): Simplified. The output files are no longer written
3372 to srcdir but to builddir.
3373 * Makefile.in (MDEFINES): Add `version' and `revision'.
3374 (uninstall_dirs): Fix order of directories.
3375 * doc/Makefile.sub (version, revision): Removed.
3376 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3377 Added `HTMLDOCFILES'.
3378 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3379 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3380 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3383 * doc/texinfo.tex (\authortt): New macro.
3384 (\shortcontt): Define.
3385 (\titlepage): Set \tt to \authortt while defining \authorfont.
3386 (\appendixbox): New macro.
3387 (\chapmacro, \appendixentry): Use \appendixbox to get even
3388 indentation for letters.
3389 (\summarycontents): Set \tt.
3390 (\internalpagesize): Add two arguments for real paper width and
3391 height as needed by pdfTeX.
3392 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3394 (\tempdima, \tempdimb): New temporary dimensions.
3395 (\pagesizesyyy): Updated.
3397 2002-06-02 Werner LEMBERG <wl@gnu.org>
3399 Adding a new keyword `papersize' to the DESC file format (similar
3400 but not completely identical to grolbp's extension). grops now has
3401 a -p command line option to override `papersize'. Finally, grolbp
3402 has been adapted to the new syntax.
3404 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
3405 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3407 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3408 (CCSRCS): Add `paper.cc'.
3410 * src/include/font.h (font): Add `papersize' element.
3411 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3412 (font::scan_papersize): New function.
3413 (font::load_desc): Use it for handling `papersize' keyword.
3414 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3416 * src/devices/grops/ps.cc: Include paper.h.
3417 (user_paper_length): New global variable.
3418 (ps_printer): Use paper length as initializer.
3419 (make_printer): Updated.
3420 (main): Handle new `-p' option.
3421 * src/devices/grops/grops.man: Updated.
3423 * src/devices/grolbp/lbp.cc: Include paper.h.
3424 s/papersizes/lbp_papersizes/.
3425 (set_papersize): Use new `papersizes' array.
3426 (handle_unknown_desc_command): Don't handle `papersize'.
3427 (main): Use `font::scan_papersize' for handling `-p' option.
3428 * src/devices/grolbp/grolbp.man: Updated.
3430 * man/groff_font.man: Document `papersize'.
3433 2002-05-30 Werner LEMBERG <wl@gnu.org>
3435 * src/devices/grops/TODO: Updated.
3436 * src/devices/grops/grops.man: More info on paper formats.
3437 * man/groff_font.man: Document `paperheight' and `paperwidth'.
3439 2002-05-29 Werner LEMBERG <wl@gnu.org>
3441 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3442 to list only if srcdir != currdir.
3443 (distfiles): New target.
3445 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3446 (NOMAKEDIRS): New variable.
3449 2002-05-26 Werner LEMBERG <wl@gnu.org>
3451 Add .output request, similar to \! at top-level.
3453 * src/roff/troff/input.cc (transparent): Remove unused declaration.
3454 (output_request): New function.
3455 (init_input_requests): Add it.
3457 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3460 * Makefile.in (MDEFINES): Add INSTALL_INFO.
3461 (prepare_examples): Fix typo.
3462 * doc/groff.texinfo (@direntry): Fix it.
3464 2002-05-25 Werner LEMBERG <wl@gnu.org>
3466 Including the doc subdir into groff's Makefile system.
3468 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3469 * configure.ac: Use it.
3470 Generate `doc/Makefile'.
3471 * configure: Regenerated.
3473 * Makefile.in (infodir, INSTALL_INFO): New variables.
3474 (MDEFINES, uninstall_dirs): Updated.
3475 (OTHERDIRS): Add `doc'.
3476 * Makefile.comm (CLEANDIRADD): New variable.
3477 (mostlyclean): Use it.
3479 * doc/Makefile.sub, doc/Makefile.in: New files.
3480 * doc/Makefile: Removed.
3482 * NEWS, INSTALL: Updated.
3484 2002-05-24 Werner LEMBERG <wl@gnu.org>
3486 * doc/homepage.ms: Renamed to ...
3487 * doc/webpage.ms: This.
3490 2002-05-23 Werner LEMBERG <wl@gnu.org>
3492 Integrating the `mom' macro package, contributed by Peter Schaffter
3495 * contrib/mom/*: New subdirectory tree.
3496 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3497 be used for documentation files.
3498 (MDEFINES, uninstall_dirs): Use them.
3499 (OTHERDIRS): Add contrib/mom.
3500 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3502 * MANIFEST, NEWS: Updated.
3504 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
3506 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3507 if at outer level; at start-up we are at outer level.
3509 * src/roff/troff/input.cc (do_suppress): Implement it.
3512 Add option -p to show progress information.
3513 pre-grohtml will now render only one page at a time, reducing the
3514 size of needed disk resources enormously.
3516 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3517 (imagePageName): New global variable.
3518 (psPageName, show_progress, currentPageNo): New global variables.
3519 (html_system): Close saved stderr and stdout handles.
3520 (write_end_image): Accept a parameter to control \O escape.
3521 (write_start_image): Adapted to new \O meaning.
3522 (char_buffer::write_upto_newline): Updated.
3523 (createAllPages): Replaced with...
3524 (createPage): This new function to create a single page for images.
3525 It uses `psselect' from the psutils package.
3526 (removeAllPages): Removed.
3527 (createImage): Updated.
3528 Handle progress display.
3529 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3530 (scanArguments): Add option -p.
3531 (makeTempFiles): Updated to create temp files for psPageName and
3533 (removeTempFiles): Removed.
3536 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3537 html_printer::write_header): Append `\0' to `buffer'.
3538 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3540 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3541 Handle `text_emitted'.
3542 (html_text::table_is_void): Slightly rewritten.
3543 (stop): New external symbol.
3544 (html_text::do_push) [DEBUGGING]: Use it and simplify.
3545 (html_text::shutdown): Call `dump_stack'.
3546 (html_text::do_space): Rewritten.
3547 * src/devices/grohtml/grohtml.man: Document -p and the need of
3550 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3552 Call \O[0] if `ps4html' is active.
3553 * tmac/s.tmac (@EQ, @EN): Handle html better.
3555 * tmac/html.tmac: Don't use black for background colour.
3557 * src/roff/troff/node.cc: Include `div.h'.
3558 (troff_output_file::really_print_line): Don't use `is_on'.
3559 (troff_output_file::word_marker, troff_output_file::flush_tbuf
3560 troff_output_file::check_charinfo,
3561 troff_output_file::put_char_width, troff_output_file::put_char,
3562 troff_output_file::determine_line_limits, troff_output_file::draw,
3563 real_output_file::begin_page, glyph_color_node::tprintf,
3564 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3566 (troff_output_file::really_on): Call `do_motion'.
3567 (suppress_node::tprint): Use `get_page_number' instead of `%'
3569 Call `reset_output_registers' conditionally on `is_on'.
3571 * doc/groff.texinfo: Document new syntax of \O.
3572 * NEWS, man/groff_diff.man: Updated.
3574 2002-05-22 Werner LEMBERG <wl@gnu.org>
3576 * MORE.STUFF: Add info about David Frey's deroff implementation.
3579 2002-05-16 Werner LEMBERG <wl@gnu.org>
3581 Pic's `with' attribute now accepts positions.
3583 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3584 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3586 (object_spec): Add rule for `WITH' and `position'.
3587 (relative_path): Give `corner' the precedence of `CHOP'.
3588 * src/preproc/pic/object.h (path): New members `pos' and
3590 * src/preproc/pic/object.cc: Updated initializers of `path'.
3591 (path::follow): Handle `is_position'.
3593 * doc/pic.ms: Completely updated grammar description.
3594 Many typographical improvements.
3596 2002-05-15 Werner LEMBERG <wl@gnu.org>
3598 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3599 code of x in range 0-127) also.
3600 * doc/groff.texinfo, man/groff_diff.man: Updated.
3602 Added keywords `north', `south', `east', and `west' for corners
3605 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3607 (yylex): Handle them.
3608 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3609 (corner): Handle them.
3611 2002-05-14 Werner LEMBERG <wl@gnu.org>
3613 * src/devices/grops/grops.man: Clarify handling of `download' file.
3615 2002-05-11 Werner LEMBERG <wl@gnu.org>
3617 Adding `warnscale' and `spreadwarn' requests, based on a patch from
3618 Jeffrey Friedl <jfriedl@yahoo.com>.
3620 * src/roff/troff/input.cc (spread_limit, warn_scale,
3621 warn_scaling_indicator): New global variables.
3622 (warnscale_request, spreadwarn_requests): New functions.
3623 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3624 (init_input_requests): Updated.
3625 (error_type): Add `OUTPUT_WARNING'.
3626 (do_error): Handle it.
3627 (output_warning): New warning function which shows output location.
3628 * src/roff/troff/env.h (spread_limit): New external variable.
3629 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3631 (distribute_space): Emit warning if added space is larger than
3633 (environment::possibly_break_line): Emit warning if a line can't
3634 be adjusted on both sides.
3636 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3638 2002-05-08 Werner LEMBERG <wl@gnu.org>
3640 * src/roff/troff/node.cc (special_node::special_node): Use
3641 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
3642 \X''\% crashes, for example.
3644 * doc/groff.texinfo: Document \! and \? used at top-level.
3646 2002-05-06 Werner LEMBERG <wl@gnu.org>
3648 * src/preproc/pic/pic.man: Fix some keyword syntax.
3649 Other minor typographical fixes.
3651 * src/roff/groff/groff.man: Fix typos.
3653 2002-05-04 Werner LEMBERG <wl@gnu.org>
3655 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3656 (ShortOpt[]): This to avoid problems with refer.
3658 * doc/pic.ms: Fix typo.
3659 Fix pic grammar description.
3661 * tmac/an-old.tmac (ne): Use de1, not de.
3663 2002-05-03 Werner LEMBERG <wl@gnu.org>
3665 * doc/groff.texinfo: Finished separation of glyphs and characters.
3666 Don't use the string `Appendix' for appendix headers (both in
3667 the text and the table of contents).
3668 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3671 Use registers LL and LT (similar to -ms) for controlling the
3672 length of title and line, respectively, in the -man and -mdoc
3675 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3676 (doc-setup-page-layout): Use \n[LL] and \n[LT].
3677 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3679 (an-header, an-p-footer): Use \n[LT].
3680 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3681 doc/groff.texinfo: Document it.
3683 2002-05-02 Werner LEMBERG <wl@gnu.org>
3685 * doc/fdl.texi: New file.
3686 * doc/groff.texinfo: Include it.
3687 Define and use @copying.
3688 Starting with separating glyph, symbol, and character.
3690 2002-04-27 Werner LEMBERG <wl@gnu.org>
3692 * Makefile.in (EXEEXT): Set it.
3693 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3696 * src/include/nonposix.h: Define GS_NAME.
3697 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3699 Some preliminary changes for EMX support under OS/2.
3701 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3702 __EMX__ similar to __MSDOS__.
3703 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3705 2002-04-25 Werner LEMBERG <wl@gnu.org>
3707 * doc/groff.texinfo: Integrated groff_out.man.
3710 2002-04-23 Werner LEMBERG <wl@gnu.org>
3712 * man/groff_out.man: Minor fixes.
3714 2002-04-23 Werner LEMBERG <wl@gnu.org>
3716 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3717 correct page references.
3718 Fixed many index entries.
3720 2002-04-23 Bernd Warken <bwarken@mayn.de>
3722 * man/roff.man: Enlarged.
3724 2002-04-22 Werner LEMBERG <wl@gnu.org>
3726 * doc/groff.texinfo: More examples, other fixes.
3728 2002-04-20 Werner LEMBERG <wl@gnu.org>
3730 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3731 will now form a chain, e.g.
3740 This is for compatibility with plan 9's troff.
3742 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3746 * doc/groff.texinfo: Add documentation of remaining requests and
3749 2002-04-19 Werner LEMBERG <wl@gnu.org>
3751 * doc/groff.texinfo: Add documentation of remaining escapes.
3753 * font/devdvi/generate/tc.map: Remove entry for `sr'.
3754 * font/devdvi/*TC: Regenerated.
3756 2002-04-18 Werner LEMBERG <wl@gnu.org>
3758 * src/roff/troff/input.cc (token::next): Make \H behave consistently
3759 if not in compatibility mode, i.e., increment relative to the
3761 * doc/groff.texinfo: Updated accordingly.
3763 2002-04-17 Werner LEMBERG <wl@gnu.org>
3765 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3767 2002-04-16 Bernd Warken <bwarken@mayn.de>
3769 * src/roff/groff/groff.man: Improve documentation of -P option.
3772 2002-04-15 Werner LEMBERG <wl@gnu.org>
3774 Add new escape \F to switch font family.
3776 * src/roff/troff/input.cc (token::next): Handle \F.
3777 * src/roff/troff/env.cc (environment::set_family): Handle
3779 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3782 2002-04-14 Werner LEMBERG <wl@gnu.org>
3784 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3787 2002-04-13 Werner LEMBERG <wl@gnu.org>
3789 Implement \f[] as an alternative to \fP. Change \mP and \MP to
3790 \m[] and \M[], respectively.
3792 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3793 (symbol::symbol): Handle NULL string and empty string differently.
3794 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3795 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3796 Add optional parameter.
3797 Updated calling functions.
3798 (get_copy, do_glyph_color, do_fill_color, token::next): Use
3800 * src/roff/troff/env.cc (environment::set_font): Ditto.
3802 * src/preproc/pic/troff.cc (troff_output::set_fill,
3803 troff_output::reset_color: Updated.
3805 * tmac/www.tmac: Updated.
3807 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3808 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3811 * tmac/Xps.tmac: Remove some redundant code.
3813 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3814 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3815 man/groff_out.man, man/groff.man, man/groff_diff.man,
3816 src/roff/groff/groff.man: Replace \f[P] with \f[].
3818 2002-04-13 Bernd Warken <bwarken@mayn.de>
3820 * src/include/printer.h, src/libs/libdriver/printer.cc
3821 (printer::change_fill_color): New member function.
3822 * src/libs/libdriver/input.cc (parse_D_command): Use it.
3824 2002-04-12 Werner LEMBERG <wl@gnu.org>
3826 * doc/groff.texinfo: Completed pass on gtroff reference.
3828 2002-04-11 Werner LEMBERG <wl@gnu.org>
3830 * doc/groff.texinfo: More fixes.
3832 2002-04-11 Bernd Warken <bwarken@mayn.de>
3834 * src/include/color.h: Decorate with `const'.
3837 * src/libs/libgroff.color.cc: Decorate with `const'.
3839 (color::color): Initialize members.
3840 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3841 command according to the documentation.
3843 * man/groff_out.man: Updated.
3846 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
3848 * src/preproc/html/pre-html.cc (write_start_image): Remove
3850 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3852 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3853 \C'hy' caused an assertion failure.
3855 * src/roff/troff/env.cc (environment::environment): Initialize
3857 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3859 2002-04-10 Werner LEMBERG <wl@gnu.org>
3861 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3862 Document pvs request and .pvs register.
3864 2002-04-09 Werner LEMBERG <wl@gnu.org>
3866 * doc/groff.texinfo: Improve and fix documentation of diversions
3869 2002-04-08 Werner LEMBERG <wl@gnu.org>
3871 * doc/groff.texinfo: Fix documentation of drawing functions.
3874 2002-04-07 Werner LEMBERG <wl@gnu.org>
3876 * doc/groff.texinfo: Better documentation of double quotes as
3880 2002-04-06 Werner LEMBERG <wl@gnu.org>
3882 * man/groff_font.man: Document names of special characters better.
3883 * doc/groff.texinfo: Minor improvements.
3885 * tmac/lbp.tmac: Load latin1.tmac.
3886 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3888 * font/devX*/*: Regenerated (all chars > 0x80 removed).
3890 2002-04-05 Werner LEMBERG <wl@gnu.org>
3892 * tmac/tty.tmac: Don't use shc request.
3893 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3896 * man/groff_diff.man: Minor fixes.
3898 * font/devlbp/*: Remove all `charXXX' entities.
3900 * src/libs/libgroff/font.cc (font::~font): Deallocate
3901 `special_device_coding'.
3902 (font::load): Use `new' for allocating `special_device_coding'.
3903 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
3904 Removed unused member.
3906 2002-04-05 Werner LEMBERG <wl@gnu.org>
3908 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
3909 (resource_manager::do_begin_binary,
3910 resource_manager::do_begin_data): Use it.
3912 * doc/texinfo.tex: Updated to version 4.2.
3914 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
3915 (token::zero_width_break): New inline function.
3916 * src/roff/troff/input.cc (token::next): Use it.
3917 (token::description): Updated.
3918 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
3919 (token::add_to_node_list, token::process): Use it.
3920 * NEWS, doc/groff.texinfo: Updated.
3922 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
3923 * tmac/tty.tmac: Add missing backslash.
3925 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
3927 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
3928 `.ps' register instead of `.s' to handle fractional point sizes.
3929 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
3930 limit_box::output): Ditto.
3931 * src/preproc/eqn/other.cc (size_box::compute_metrics,
3932 size_box::output): Ditto.
3933 * src/preproc/eqn/over.cc (over_box::compute_metrics,
3934 over_box::output): Ditto.
3935 * src/preproc/eqn/script.cc (script_box::compute_metrics,
3936 script_box::output): Ditto.
3937 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
3938 sqrt_box::output): Ditto.
3940 2002-04-03 Michael Selway <mas@ssl.co.uk>
3942 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
3945 2002-04-03 Werner LEMBERG <wl@gnu.org>
3947 * doc/homepage.ms: Reduce title size.
3948 * doc/groff.texinfo: Fix documentation of .t register.
3949 Fix handling of colon.
3952 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
3953 only if page length is positive to avoid a loop.
3955 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
3958 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
3960 * src/include/nonposix.h, src/roff/groff/pipeline.c:
3961 s/__CYGWIN32__/__CYGWIN__/.
3963 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
3965 * doc/gnu.xpm: New image contributed by Emily Mulley.
3966 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
3967 (homepage.html): Be dependent on gnu.eps.
3968 * doc/homepage.ms: Updated to new image.
3970 * src/devices/grohtml/post-html.cc (html_printer): New member
3972 (html_printer::flush_sbuf, html_printer::set_char): Set it.
3973 (html_printer::sbuf_continuation): Use it.
3975 2002-03-28 Werner LEMBERG <wl@gnu.org>
3977 * src/libs/libgroff/getopt.c: Updated to latest version.
3979 * tmac/README: More on hyphen.tex license.
3981 2002-03-26 Larry Kollar <kollar@alltel.net>
3983 * doc/groff.texinfo: Add documentation of most missing requests.
3985 2002-03-25 Werner LEMBERG <wl@gnu.org>
3987 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
3988 of `+-', `mu', and `di', respectively.
3990 * font/devascii/R.proto, font/devutf8/R.proto,
3991 font/devlatin1/R.proto, font/devhtml/R.proto,
3992 font/devcp1047/R.proto, font/devlpb/*: Add them.
3993 * font/devps/generate/textmap: Ditto.
3994 * font/devps/*: Regenerated.
3995 * font/devlj4/generate/text.map: Add them.
3996 * font/devlj4/*: Regenerated.
3997 * font/devdvi/generate/tc.map: Use them.
3998 * font/devdvi/generate/texsy.map: Add them.
3999 * font/devdvi/*: Regenerated.
4000 * font/devX*/*: Regenerated.
4002 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4003 tmac/tty-char.tmac: Updated.
4005 * NEWS, man/groff_char.man: Updated.
4007 2002-03-24 Werner LEMBERG <wl@gnu.org>
4009 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4010 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4011 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4012 we use `.fchar' in dvi.tmac.
4013 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4014 * tmac/Xps.tmac: Simplify some char definitions.
4015 Add definition for \[f/].
4016 * man/groff_char.man: Updated for new X.tmac.
4018 * tmac/README: New file.
4020 2002-03-23 Phil Lobbes <phil@perkpartners.com>
4022 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4023 internal .y.o rule took precendence over the .y.cc rule, compiling
4024 the yacc files with gcc instead of g++.
4026 2002-03-23 Werner LEMBERG <wl@gnu.org>
4028 * tmac/dvi.tmac: Add replacement font for `CB'.
4030 * tmac/doc.tmac: s/request/macro/ in messages.
4031 (doc-generic-macro): Improve error message.
4032 * tmac/groff_mdoc.man: Minor improvements.
4034 2002-03-22 Werner LEMBERG <wl@gnu.org>
4036 * doc/groff.texinfo: Document possible conflict between `tr' and
4039 2002-03-21 Werner LEMBERG <wl@gnu.org>
4041 Improve handling of hyphenation patterns. It is now possible to
4042 use most of TeX's pattern files unmodified. To make the process
4043 more flexible, a new request `hpfcode' has been added which
4044 provides a character code mapping for the `hpf' request. See
4045 comment before hpf_getc() for more details.
4047 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4049 (read_patterns_file): Additional parameter for exception dictionary.
4050 Extended to recognize \pattern, \hyphenation, and \endinput.
4051 (do_hyphenation_patterns_file): Updated.
4052 * src/roff/troff/env.h (hpf_code_table): New extern.
4054 * src/roff/troff/input.cc (hpf_code_table): New array.
4055 (init_hpf_code_table, hyphenation_patterns_file_code): New
4057 (hyphenation_code): Handle translation from `trin' correctly.
4058 (main, init_input_requests): Updated.
4059 (charinfo::set_translation): Handle hyphenation code also.
4061 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4064 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4065 char' is used for offsets in hyphenation exceptions.
4067 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4069 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4071 2002-03-20 Larry Kollar <kollar@alltel.net>
4073 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4076 2002-03-18 Werner LEMBERG <wl@gnu.org>
4078 * tmac/html.tmac: Fix serious typo.
4080 2002-03-17 Larry Kollar <kollar@alltel.net>
4082 * doc/groff.texinfo: Add documentation for `writec' request.
4084 2002-03-17 Werner LEMBERG <wl@gnu.org>
4086 Added request `hpfa' to append hyphenation patterns.
4088 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4090 (hyphenation_patterns_file): Renamed to...
4091 (do_hyphenation_patterns_file): This.
4092 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4094 (init_hyphen_requests): Updated.
4095 * NEWS, man/groff.man, man/groff_diff.man: Document it.
4097 2002-03-16 Werner LEMBERG <wl@gnu.org>
4099 Added request `writec' in analogy to `tmc'.
4101 * src/roff/troff/input.cc (write_request): Renamed to...
4102 (do_write_request): This.
4103 Added one parameter.
4104 (write_request, write_request_continue): New functions.
4105 (init_input_requests): Updated.
4106 * NEWS, man/groff.man, man/groff_diff.man: Document it.
4108 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4110 * NEWS: Document it.
4112 2002-03-15 Werner LEMBERG <wl@gnu.org>
4114 * man/groff.man: Add writem request.
4116 Add request `trin' (translate input) to make `.asciify' work
4117 correctly. This is necessary since `charXXX' entity names are no
4118 longer hardcoded in font definition files.
4120 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4121 `translate_input' members.
4122 (charinfo::set_asciify_code, charinfo::get_asciify_code,
4123 charinfo::set_translation_input): New methods.
4124 (charinfo::set_translation): Add third argument.
4125 * src/roff/troff/input.cc (charinfo:set_translation): Set
4127 (do_translate): Add second argument.
4128 (translate_input): New function.
4129 (init_input_requests): Updated.
4130 * src/roff/troff/node.cc (glyph_node::asciify,
4131 composite_node::asciify): Use `get_asciify_code'.
4133 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
4135 * NEWS, man/groff.man, man/groff_diff.man: Updated.
4137 2002-03-14 Larry Kollar <kollar@alltel.net>
4139 * doc/groff.texinfo: Improve documentation of .RS and .RE.
4141 2002-03-14 Werner LEMBERG <wl@gnu.org>
4143 Add a new request `sizes' similar to the `sizes' command in DESC
4146 * src/roff/troff/env.cc (override_sizes): New function.
4147 (init_env_requests): Use it.
4148 * src/roff/troff/token.h: Export `read_string'.
4149 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4151 2002-03-12 Werner LEMBERG <wl@gnu.org>
4153 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
4155 2002-03-10 Werner LEMBERG <wl@gnu.org>
4157 * tmac/pspic.tmac: Add support for -Tdvi.
4158 * tmac/dvi.tmac: Include pspic.tmac.
4159 * src/devices/grodvi/grodvi.man: Document it.
4162 * font/devlj4/generate/Makefile: Fix URL of metric files.
4164 2002-03-09 Werner LEMBERG <wl@gnu.org>
4166 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
4168 2002-03-09 Larry Kollar <kollar@alltel.net>
4170 * tmac/groff_ms.man: Add documentation for RS and RE macros.
4172 2002-03-08 Werner LEMBERG <wl@gnu.org>
4174 * doc/groff.texinfo: Fixes for texinfo 4.1.
4176 2002-03-07 Werner LEMBERG <wl@gnu.org>
4178 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
4180 Handle CYGWIN properly.
4182 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
4184 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
4185 * tmac/lbp.tmac: Add some font translations.
4187 2002-03-02 Werner LEMBERG <wl@gnu.org>
4189 * font/devcp1047/R.proto, font/devlatin1/R.proto,
4190 font/devhtml/R.proto: Remove `charXXX' entries.
4191 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
4194 * font/devlj4/generate/text.map: Remove `charXXX' entries.
4195 * font/devlj4/*: Regenerated all font definition files.
4196 * tmac/lj4.tmac: Load latin1.tmac.
4198 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
4199 from 2000-06-17: LJ4 metric files are *not* text files.
4201 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
4202 register to test for EBCDIC.
4204 2002-03-01 Werner LEMBERG <wl@gnu.org>
4206 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4207 files (as grops already does).
4208 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4210 * src/devices/grops/grops.man: Document comment lines in encoding
4213 * tmac/cp1047.tmac: New file.
4214 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4215 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4216 * tmac/Makefile.sub (NORMALFILES): Updated.
4218 * tmac/ec.tmac: Don't load latin1.tmac again.
4220 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4221 font/devps/generate/dingbats.map,
4222 font/devps/generate/dingbats.rmap, font/devps/text.enc,
4223 font/devps/generate/Makefile (symbolmap): Add header comment.
4224 * font/devps/generate/textmap: Ditto.
4225 Remove `charXXX' entries.
4226 * font/devps/symbolmap: Regenerated.
4227 * font/devps/*: Regenerated all font definition files.
4229 2002-02-28 Werner LEMBERG <wl@gnu.org>
4231 Add color support to grodvi (for drawing colors are currently
4232 translated to gray values).
4234 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
4235 (dvi_printer): Add `cur_color' member.
4236 (dvi_printer::set_color): New function.
4237 (draw_dvi_printer): Remove `fill'.
4238 (draw_dvi_printer::fill_next): Pass environment as parameter.
4239 Update code for new color support translated to gray.
4240 (dvi_printer::set_char): Updated.
4241 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4242 changes crossing the page border.
4243 (dvi_printer::draw): Updated.
4244 Remove cases `f' and `F'.
4245 * tmac/dvi.tmac: Add color definitions.
4246 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4248 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4251 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4252 versions of autoconf.
4253 * configure: Updated.
4255 * doc/homepage.ms: Use `.blm'.
4256 * tmac/www.tmac (www-depth): New auxiliary variable.
4257 (www-pop-level): Don't issue HTML tag.
4258 (ULS, ULE, LI): Use absolute indentation.
4260 * src/devices/grops/ps.cc (ps_printer::begin_page,
4261 ps_printer::end_page): Switch forth and back to default color while
4262 starting a new page.
4264 2002-02-27 Werner LEMBERG <wl@gnu.org>
4266 Add EC and TC fonts to devdvi.
4268 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4269 * font/devdvi/generate/cork.map: Renamed to...
4270 * font/devdvi/generate/ec.map: This.
4271 Remove entry for `aq'.
4272 * font/devdvi/generate/tc.map: New file.
4273 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4276 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4277 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4278 * tmac/ec.tmac: New file.
4279 * tmac/Makefile.sub (NORMALFILES): Updated.
4280 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4281 * man/groff_char.man: Check `ECFONTS' register.
4283 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4285 2002-02-26 Werner LEMBERG <wl@gnu.org>
4287 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4288 * font/devdvi/generate/cork.map: Add 'y and 'Y.
4289 * font/devdvi/*: Updated.
4290 * tmac/dvi.tmac: Formatting.
4292 Add font `HBI' for the dvi output.
4293 Add support for font families `T' and `H'.
4295 * font/devdvi/HBI: New file.
4296 * font/devdvi/B: Renamed to ...
4297 * font/devdvi/TB: This.
4298 * font/devdvi/BI: Renamed to ...
4299 * font/devdvi/TBI: This.
4300 * font/devdvi/I: Renamed to ...
4301 * font/devdvi/TI: This.
4302 * font/devdvi/R: Renamed to ...
4303 * font/devdvi/TR: This.
4304 * font/devdvi/H: Renamed to ...
4305 * font/devdvi/HR: This.
4306 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4307 * font/devdvi/generate/Makefile (HBI): New rule.
4309 (R, I, B, BI, H): Renamed to ...
4310 (TR, TI, TB, TBI, HR): This, respectively.
4312 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4313 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4314 Add `styles' and `family' keywords.
4315 * tmac/dvi.tmac: Alias `H' to `HR'.
4316 Add some fspecial requests for italic fonts.
4317 Add TR and TI as special.
4318 Add support for `_' with font CWI.
4320 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4321 operator `:'. Until now, the expression `0:1' would return 2
4324 2002-02-25 Werner LEMBERG <wl@gnu.org>
4326 * man/groff_char.man: Added some missing PS glyph names (from the
4328 * font/devps/generate/textmap, font/devps/symbolmap: Add
4331 * doc/groff.texinfo: Minor additions and fixes.
4332 * man/groff_diff.man: Remove documentation of fp request. This
4333 is already covered in the original troff manual.
4334 Updated to be consistent with other doc files.
4337 2002-02-24 Werner LEMBERG <wl@gnu.org>
4339 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4341 Define new variable OTHERDEVDIRS (containing `font/devlj4
4342 font/devlbp' if not EBCDIC).
4343 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4344 (OTHERDEVDIRS): New variable.
4345 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4346 * configure: Regenerated.
4348 * NEWS, src/devices/grotty/grotty.man: Updated.
4350 2002-02-23 Werner LEMBERG <wl@gnu.org>
4352 * src/roff/troff/input.cc (do_overstrike, do_bracket,
4353 get_line_arg): Honour input level.
4355 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4357 * font/*/*: Implement it in all font files.
4358 * font/devps/generate/textmap, font/devps/generate/symbolchars,
4359 * font/devps/symbolmap: Updated.
4360 * font/devlj4/generate/text.map: Updated.
4361 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4362 * font/devdvi/generate/texmi.map: Updated.
4364 * font/devutf8/R.proto: Remove all `charXXX' entries.
4365 * font/devutf8/NOTES: Updated.
4367 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4370 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4372 * NEWS, man/groff_char.man: Updated.
4374 2002-02-21 Phil Lobbes <phil@perkpartners.com>
4376 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4378 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4380 * src/roff/grog/grog.pl: Fix computation of $refer.
4382 2002-02-19 Werner LEMBERG <wl@gnu.org>
4384 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4385 `snprintf' and `vsnprintf'.
4387 * src/include/htmlindicate.h: Renamed to...
4388 * src/include/htmlhint.h: This.
4389 * src/include/Makefile.sub: Updated.
4390 * src/preproc/eqn/main.cc: Updated.
4392 2002-02-18 Werner LEMBERG <wl@gnu.org>
4394 * man/roff.man, man/groff_out.man, man/groff.man,
4395 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4396 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4398 * win32-diffs: Updated.
4400 2002-02-17 Werner LEMBERG <wl@gnu.org>
4402 * doc/Makefile (clean): Add *.eps.
4403 (MEMACROS): Removed.
4404 (TFLAG): New variable.
4407 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4409 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4411 * tmac/www.tmac: Use dummy diversion while resetting and disabling
4413 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4415 * src/roff/troff/troff.man: Fix order of parameter description.
4419 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
4421 Simplify image handling for grohtml.
4424 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4426 (html_text::dump_stack): Don't emit newline while debugging.
4427 (html_text::do_push) [DEBUGGING]: Print more info.
4428 (html_text::check_emit_text): Fix handling of <p>.
4429 * src/devices/grohtml/html.h: Updated.
4430 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4431 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
4432 send its data to stderr also.
4434 (simple_output::space_or_newline) [DEBUGGING]: Removed.
4435 * src/devices/grohtml/post-html.cc (html_printer::do_links,
4436 html_printer::html_printer): Remove `DEBUGGING' conditionals.
4438 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4440 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4441 is_inline_image): Removed.
4442 (html_begin_suppress, html_end_suppress): Don't take a parameter.
4443 (graphic_start, graphic_end): Removed.
4444 * src/include/htmlindicate.h: Updated.
4445 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4446 (macroset_template): New global variable.
4447 (makeFileName): Use `macroset_template'.
4448 (write_end_image): Don't take a parameter.
4450 (write_start_image: Don't emit newline.
4451 (char_buffer::write_upto_newline): Updated.
4452 (char_buffer::skip_to_newline): Renamed to ...
4453 (char_buffer::skip_until_newline): This.
4455 (char_buffer::write_file_troff, char_buffer::write_file_html):
4457 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4458 (removeAllPages): Remove `DEBUGGING' conditionals.
4459 (addRegDef, dump_args): New functions.
4460 (char_buffer::do_html, char_buffer::do_image): Handle
4461 `www-image-template' command line variable.
4462 Add more debugging code.
4463 (addps4html): Removed.
4464 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4466 * src/preproc/eqn/main.cc: Include `ctype.h'.
4467 (suppress_html): Removed.
4469 (inline_equation): Use `html_begin_suppress' and
4470 `html_end_suppress'.
4471 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4472 (troff_output::start_picture, troff_output::finish_picture):
4474 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4475 (process_input_file): Updated.
4477 * src/roff/troff/div.cc (page_number): Set page number only if the
4478 `ps4html' register isn't defined.
4479 * src/roff/troff/input.cc (image_no): New external variable.
4480 (do_suppress): Use it.
4481 * src/roff/troff/node.h (suppress_node::image_id): New member.
4482 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4483 (suppress_node::suppress_node): Initialize `image_id' member.
4484 (suppress_node::same): Handle `image_id' also.
4485 (suppress_node::copy): Updated.
4486 (last_image_id): New global variable.
4487 (suppress_node::tprint): Use it.
4489 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4491 * tmac/pspic.mac (PSPIC): Fix html support.
4492 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4493 * tmac/www.tmac (www-image-template): Set up.
4494 (HTMLINDEX): Renamed to...
4496 (BODYCOLOR): Renamed to...
4498 (BACKGROUND): Renamed to...
4500 (URL): Change order of parameters for consistency.
4501 (MAILTO): Renamed to...
4503 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4504 (IMG, PIMG, MPIMG): This.
4505 (HTML-H-BEGIN, HTML-H-END): Renamed to...
4507 (LINKS): Renamed to...
4509 (LINE): Renamed to...
4511 (NO-AUTO-RULE): Renamed to...
4513 (HTML-TL): Renamed to...
4515 (UL-BEGIN, UL-END): Renamed to...
4517 (DROPCAP): Renamed to...
4519 (TS, TE, EQ, EN): Provide default definitions.
4520 (www-make-unique-name): Updated.
4521 (HTML-IMAGE-INLINE): Fix typo.
4522 * tmac/groff_www.man: Updated.
4524 * doc/Makefile (homepage.html): Add option -r to grohtml.
4525 Use shortened image name.
4526 * doc/groff.texinfo: Updated info on grohtml strings and macros.
4527 * doc/homepage.ms: Updated and extended.
4529 2002-02-14 Werner LEMBERG <wl@gnu.org>
4531 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4533 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4534 SGR_BACK_DEFAULT_COLOR): Replaced with ...
4535 (tty_printer::put_color): Use it.
4536 (ttr_printer::end_page): Simplify.
4538 2002-02-13 Werner LEMBERG <wl@gnu.org>
4540 * tmac/groff_tmac.man: Moved to...
4541 * man/groff_tmac.man: This place.
4542 * tmac/Makefile.sub, man/Makefile.sub: Updated.
4544 2002-02-12 Werner LEMBERG <wl@gnu.org>
4546 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4547 $(COMPILE.c) to not include groff's assert.h.
4549 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4551 * NEWS, src/drivers/grotty/grotty.man: Document it.
4553 2002-02-11 Werner LEMBERG <wl@gnu.org>
4555 * src/libs/snprintf/snprintf.c: Updated to latest version
4558 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
4559 test whether there is `.]' also.
4560 Don't check for spaces after `.['.
4561 * src/roff/grog/grog.sh: Do the same.
4563 2002-02-10 Werner LEMBERG <wl@gnu.org>
4567 * src/libs/libgroff/illegal.cc: Renamed to ...
4568 * src/libs/libgroff/invalid.cc: This.
4569 (illegal_char_table): Renamed to ...
4570 (invalid_char_table): This.
4571 * src/libs/libgroff/Makefile.sub: Updated.
4572 * win32-diffs: Updated.
4574 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4575 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4576 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4577 font::load), src/preproc/eqn/main.cc (read_line, main),
4578 src/preproc/eqn/lex.cc (file_input::read_line),
4579 src/preproc/pic/lex.cc (file_input::read_line,
4580 simple_file_input::get, simple_file_input::peek),
4581 src/preproc/pic/main.cc (top_input::get, top_input::peek),
4582 src/preproc/pic/pic.man, src/preproc/refer/main.cc
4583 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4584 do_bib), src/preproc/tbl/main.cc (table_input::get),
4585 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4586 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4587 do_zero_width, read_request, encode_char, ps_get_line,
4588 transparent_file, get_char_for_escape_name, transparent_translate,
4589 asciify, input_char_description, read_string, set_string),
4590 src/roff/troff/env.cc (environment::add_html_tag),
4591 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4593 * src/include/lib.h: Updated.
4595 * src/preproc/eqn/eqn.cc: Removed.
4599 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4601 2002-02-09 Werner LEMBERG <wl@gnu.org>
4603 * doc/gnu.xpm: New image.
4604 * doc/Makefile (DOCS): Add homepage.ps.
4605 Add rules for converting xpm->png and xpm->eps.
4606 Use `gnu.{xpm,eps}' as image names.
4607 * doc/homepage.ms: Updated.
4609 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
4611 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4612 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4613 Remove calls to `B1' and `B2'
4614 (PNG-IMAGE): New macro for inclusion of images in PNG format.
4615 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4616 auxiliary variables for MARGIN-PNG-IMAGE.
4617 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4618 auxiliary macros for MARGIN-PNG-IMAGE.
4619 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4621 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4622 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4623 (DROPCAP): New macro to produce dropcap characters.
4624 (www-do-image): Renamed back to...
4625 (HTML-DO-IMAGE): This.
4626 Updated all callers.
4628 * doc/Makefile (gnubw.eps): Updated.
4629 * doc/homepage.ms: Updated.
4631 2002-02-08 Werner LEMBERG <wl@gnu.org>
4633 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4634 Added `linethick' to table in section `Style Variables'.
4636 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
4638 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4640 2002-02-07 Werner LEMBERG <wl@gnu.org>
4642 Adding options -C (compatibility mode) and -c (grotty's old output
4645 * src/roff/nroff/nroff.sh: Implement it.
4647 * NEWS, src/roff/nroff/nroff.man: Updated.
4649 * PROBLEMS: Document bison 1.32 bug.
4651 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4653 * src/roff/troff/node.cc (make_tfont): Define it earlier.
4654 * src/roff/troff/div.h: Add prototype for `end_diversions'.
4655 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4656 * src/roff/troff/env.h: Add prototype for `title'.
4658 Adding EBCDIC support to grotty.
4660 * src/devices/grotty/tty.cc (CSI): New macro.
4661 (SGR_*, tty_printer::put_color): Use it.
4663 2002-02-06 Werner LEMBERG <wl@gnu.org>
4665 Implementing color support in grotty. The new switch -c activates
4666 the old drawing scheme, disabling color at the same time. The new
4667 switch `-i' selects italic instead of underlining (SGR only).
4669 * src/devices/grotty/tty.cc (putstring): New define instead of
4670 `fputs'. Updated all callers.
4671 (old_drawing_scheme): New global variable.
4672 (COLOR_CHANGE): New enum value.
4673 (SGR_*): New defines containing color handling escape sequences.
4674 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4675 (glyph): New members `back_color_idx' and `fore_color_idx'.
4676 (glyph::order): Add COLOR_CHANGE.
4677 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4678 `is_underline', `is_bold', `cu_flag', `tty_colors'.
4679 New methods `make_underline', `make_bold', `color_to_idx',
4680 `change_color', `put_color'.
4681 (cu_flag): Moved into `tty_printer' class.
4682 (tty_printer::tty_printer): Initialize colors.
4683 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4684 tty_printer::draw, tty_printer::end_page): Handle colors also.
4685 (main): Add options `-c' and `-i'.
4687 * NEWS, src/devices/grotty/grotty.man: Updated.
4689 * src/include/errarg.h (errarg): Add support for `unsigned int'.
4690 * src/libs/libgroff/errarg.c: Implement it.
4692 * src/include/printer.h (printer): Add `change_color' method
4693 (currently used by grotty only).
4694 * src/libs/libdriver/printer.cc: Implement it.
4695 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4696 call to `pr->change_color'.
4698 * src/roff/troff/node.cc (troff_output_file::fill_color,
4699 troff_output_file::glyph_color): Call `do_motion'.
4701 * tmac/tty.tmac: Add color definitions.
4703 * src/roff/groff/groff.man: Minor fixes.
4705 2002-02-05 Bernd Warken <bwarken@mayn.de>
4707 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4708 it. This is a preparation for future changes.
4710 2002-02-05 Werner LEMBERG <wl@gnu.org>
4712 * src/roff/troff/input.cc (process_input_stack): Fix the case
4713 where leading spaces are followed by \f or \s; previously, an
4714 incorrect space width has been used.
4716 * doc/roff.man (quoted_char): Fix argument.
4717 (comment): Define string.
4719 2002-02-04 Larry Kollar <kollar@alltel.net>
4721 * doc/groff.texinfo: More fixes.
4723 2002-02-04 Werner LEMBERG <wl@gnu.org>
4725 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4726 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4727 `restore_compatibility' before `output_string' -- the LINE_STRING
4728 register now already contains proper switches from and to
4731 * man/groff_char.man: Add Euro symbol.
4732 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4733 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4734 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4737 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4739 (.texinfo.html): Add support for texinfo->html.
4741 2002-02-03 Werner LEMBERG <wl@gnu.org>
4743 Added three new requests `ds1', `as1', and `ami'. The former two
4744 are equivalent to `ds' and `as' with the difference that
4745 compatibility mode is saved on entry, switched off during string
4746 expansion, and restored on exit. The latter is the pendant to `dei'
4749 (do_define_string): Use `define_mode' and `calling mode'.
4750 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4751 end of string, respectively.
4752 (define_string, append_string): Use `calling_mode'.
4753 (define_nocomp_string, append_nocomp_string,
4754 define_string_indirect): New functions.
4755 (init_input_requests): Updated.
4756 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4758 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4759 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
4760 mm macro package accesses this string register directly.
4761 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4763 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
4766 2002-02-02 Larry Kollar <kollar@alltel.net>
4768 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4770 2002-01-31 Werner LEMBERG <wl@gnu.org>
4772 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4774 2002-01-31 Bernd Warken <bwarken@mayn.de>
4776 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4777 * man/groff_out.man: Revised and updated.
4779 2002-01-30 Bernd Warken <bwarken@mayn.de>
4781 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4782 out the unused `{' and `}' commands. Undefined by default.
4783 (IntArray): Make `data' private.
4784 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4785 new methods instead.
4786 (skip_line_D, skip_to_end_of_line): New functions.
4787 (get_D_fixed_args): Use `skip_line_D'.
4788 Changed to handle dummy odd arguments by ...
4789 (get_D_fixed_args_odd_dummy): This new function.
4790 (get_D_variable_args): Split some code into ...
4791 (get_possibly_integer_args): This new function.
4792 (send_draw): Use more `const'.
4793 (delete_current_env): New function.
4794 (position_to_end_of_args): Use `size_t'.
4796 (send_draw): Updated.
4797 (parse_D_command): Handle `c', `C', and `t' better.
4801 2002-01-29 Werner LEMBERG <wl@gnu.org>
4804 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4805 @Def...ListEnd which replaces @Def...x. This is necessary to get
4806 proper HTML output -- see the comment in the file for more
4810 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
4812 Fixes to make color changes of 2002-01-21 work with grohtml.
4814 * src/devices/grohtml/post-html.cc (style): Updated.
4815 (html_printer): Remove unused methods.
4816 (html_printer::do_font, html_printer::draw, html_printer::set_char,
4817 html_printer::special): Updated.
4818 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4819 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4820 Added some debugging code.
4821 (html_text::start_tag): Updated.
4822 (html_text::do_push): New method.
4823 (html_text::push_para): Call it.
4824 Add method for handling color.
4825 (html_text::do_color): Updated.
4826 (html_text::shutdown): Handle color.
4827 * src/devices/grohtml/html-text.h (tag_definition): New member
4831 2002-01-28 Werner LEMBERG <wl@gnu.org>
4833 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4835 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
4837 Add two switches -a and -g to control the antialiasing bits for
4838 text and graphics, respectively.
4840 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4842 * src/devices/grohtml/grohtml.man: Document them.
4843 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4845 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4846 (setupAntiAlias): New function.
4847 (createAllPages): Updated.
4848 (scanArguments): Handle `-a' and `-g'.
4849 (main): Call `setupAntiAlias'.
4852 2002-01-27 Werner LEMBERG <wl@gnu.org>
4854 * doc/groff.texinfo (Def*): Call index function after deffn.
4856 * tmac/html.tmac: Call `nroff' request.
4858 2002-01-26 Larry Kollar <kollar@alltel.net>
4860 * tmac/groff_ms.man: Add some omissions.
4862 2002-01-25 Larry Kollar <kollar@alltel.net>
4864 * tmac/groff_ms.man: Typographical improvements.
4866 2002-01-25 Werner LEMBERG <wl@gnu.org>
4868 * doc/groff.texinfo: Updated version and copyright.
4869 * src/devices/grops/grops.man: Updated.
4871 * tmac/groff_tmac.man: Fix `ig' macro.
4873 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4875 Use `.ne' unconditionally everywhere.
4876 (TS): Only insert some vertical space. Doing a page break is no
4877 longer necessary due to the redefinition of the `ne' request.
4879 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4880 warning for unknown subcommands but parse and pass them to the
4883 2002-01-24 Werner LEMBERG <wl@gnu.org>
4885 * tmac/groff_www.man, NEWS: Fix typos.
4887 2002-01-21 Werner LEMBERG <wl@gnu.org>
4889 Complete revision of color support:
4891 Adapt programs to the new libdriver/input.cc.
4893 Color spaces are no longer converted to RGB but transferred as-is
4894 in the troff intermediate output format.
4896 Handle default color gracefully. troff now supports a `default'
4897 color (which can't be changed).
4899 grops will now use the proper color space functions if available.
4903 Note that currently grohtml doesn't handle colors properly. This
4906 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
4907 (ui_to_a): New function.
4908 * src/include/lib.h: Updated.
4910 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
4911 (color): Simplified; removed all `double' members and methods.
4912 A new array `components' now holds the color parameters.
4913 (color::is_default, color::get_components): New methods.
4914 (color::operator==, color:operator!=): New.
4915 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
4916 to make access to the `components' array more comprehensible.
4917 * src/libs/libgroff/color.cc: Implement new color support.
4918 (atoh): Small fixes.
4919 (color::read_encoding): Simplified for new troff intermediate color
4921 (default_color): New global variable.
4923 * src/roff/troff/input.cc (default_symbol): New global variable.
4924 (lookup_color): Use it.
4925 (default_black): Removed.
4926 (do_glyph_color, do_fill_color): Simplified.
4927 (define_color): Handle default color.
4929 (do_if_request): Handle default color.
4930 * src/roff/troff/env.cc (environment::environment): Initialize
4931 colors with `default_color'.
4932 * src/roff/troff/node.cc (troff_output_file::put): Add method
4934 (troff_output_file::hex): Removed.
4935 (troff_output_file::fill_color, troff_output_file::glyph_color):
4936 Updated to include/color.h and libdriver/input.cc.
4938 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
4939 fill color properly (identically to the outline color). \D'f...'
4940 doesn't work any more.
4941 All function calls to it updated.
4943 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
4945 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
4948 * src/devices/grops/ps.cc (ps_output::put_color): New method.
4949 (ps_printer::sbuf_color): Make a real member instead of pointer.
4950 (ps_printer::fill_color, ps_printer::output_color): Removed.
4951 (ps_printer::ps_printer): Updated.
4952 (ps_printer::set_char): Ditto.
4953 (ps_printer::set_color): Use various color schemes.
4954 Use `put_color' method.
4955 (ps_printer::flush_sbuf): Don't set color.
4956 (ps_printer::fill_path): Take `environment' as parameter.
4957 Simplify color handling.
4958 (ps_printer::set_line_thickness): Renamed to ...
4959 (ps_printer::set_line_thickness_and_color): This (and updated).
4960 (ps_printer::set_color): Change second parameter from `complete'
4961 to `fill' which better describes what it does.
4962 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
4963 and text in the right order.
4965 Remove branches for `f' and `F'; this is handled by
4967 * src/devices/grops/ps.h: Updated.
4968 * font/devps/prologue (FL): Redefined.
4969 ({F,C}r,k,g: New color functions (with and without filling).
4971 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
4972 * man/groff_diff.man, man/groff.man, man/groff_out.man,
4973 doc/groff.texinfo, NEWS: Updated.
4975 2002-01-20 Bernd Warken <bwarken@mayn.de>
4977 * src/libs/libdriver/input.cc: Completely rewritten. See comments
4978 in this file for what has been changed.
4980 2002-01-19 Werner LEMBERG <wl@gnu.org>
4982 * test-groff: Fix GROFF_FONT_PATH.
4983 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
4984 is read before .TH or .Dd is parsed.
4986 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
4988 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
4989 quadrant boundaries.
4991 2002-01-18 Werner LEMBERG <wl@gnu.org>
4993 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
4996 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
4998 * tmac/doc.common: Initialize %I register for the %I macro to
4999 avoid (harmless) warning.
5000 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5001 when in the SYNOPSIS section.
5003 2002-01-17 Bruno Haible <haible@clisp.cons.org>
5005 * src/preproc/pic/lex.cc (get_token): Fix typo.
5007 2002-01-17 Werner LEMBERG <wl@gnu.org>
5009 * devices/grops/ps.cc: Fix incorrectly applied last patch.
5011 2002-01-17 Larry Kollar <kollar@alltel.net>
5013 * tmac/groff_ms.man: Completely rewritten.
5015 2002-01-16 Werner LEMBERG <wl@gnu.org>
5017 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5019 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
5021 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5023 (ps_printer::draw): Ditto.
5025 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
5027 * tmac/groff_mdoc.man: Minor fixes.
5029 2002-01-13 Werner LEMBERG <wl@gnu.org>
5031 * man/groff_out.man: Some fixes.
5033 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
5035 * doc/pic.ms: Fix typos.
5037 2002-01-12 Werner LEMBERG <wl@gnu.org>
5039 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5041 2002-01-10 Werner LEMBERG <wl@gnu.org>
5043 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5047 2002-01-09 Bernd Warken <bwarken@mayn.de>
5049 * man/groff_out.man: Revised.
5050 * man/roff.man: Minor fixes.
5051 * src/roff/troff/troff.man: Some reordering.
5053 2002-01-09 Werner LEMBERG <wl@gnu.org>
5055 * tmac/an-old.tmac: Add dummy macros for equation support.
5057 2002-01-07 Werner LEMBERG <wl@gnu.org>
5059 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5061 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
5063 * tmac/groff_man.man: Small improvements.
5065 2002-01-07 Bernd Warken <bwarken@mayn.de>
5067 * man/groff_diff.man: Revised.
5069 2002-01-06 Werner LEMBERG <wl@gnu.org>
5071 * tmac/www.tmac: Remove extraneous backslash.
5073 2002-01-06 Bernd Warken <bwarken@mayn.de>
5075 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5077 2002-01-05 Werner LEMBERG <wl@gnu.org>
5079 Integrated groffer, contributed by Bernd Warken.
5081 * contrib/groffer/*: New.
5082 * Makefile.in, NEWS: Updated.
5084 2002-01-04 Werner LEMBERG <wl@gnu.org>
5086 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5087 registers defined in macro packages.
5088 Revising the ms part.
5090 2002-01-04 Larry Kollar <kollar@alltel.net>
5092 * doc/groff.texinfo: Add documentation for ms macros.
5094 2002-01-02 Werner LEMBERG <wl@gnu.org>
5096 First step in adding PS support for the Euro symbol. `eu' is the
5097 official Euro logo, `Eu' is a font-specific glyph variant.
5099 * font/devps/text.enc: Add `Euro' at position 9.
5100 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5101 * font/devps/symbolmap: Regenerated.
5105 2002-01-02 Bernd Warken <bwarken@mayn.de>
5107 * man/roff.man: Revised.
5109 2002-01-01 Bernd Warken <bwarken@mayn.de>
5111 * src/roff/groff/groff.man: Completely rewritten.
5113 2001-12-31 Werner LEMBERG <wl@gnu.org>
5115 * doc/Makefile: Updated.
5117 2001-12-30 Werner LEMBERG <wl@gnu.org>
5119 * tmac/www.tmac: Make all names of internal macros/registers/strings
5120 lowercase, and prepend `www-'.
5121 Other minor changes.
5122 * src/roff/troff/troff.man: Add preprocessor string at BOF.
5124 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
5126 Implement option `-b' in grohtml to set the HTML background colour.
5128 * src/devices/grohtml/post-html.cc (default_background): New global
5130 (html_printer::html_printer): Initialize `background' to
5131 `default_background'.
5132 (main): Implement option `-b'.
5134 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
5136 * src/devices/grohtml/grohtml.man: Updated.
5137 * doc/Makefile (.ms.html): Use `-b'.
5138 * tmac/html.tmac: Don't set background color.
5140 Add new grohtml tag `.html-tl'.
5142 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
5144 (title_desc::title_desc): Updated.
5145 (html_printer::troff_tag): Handle `.html-tl'.
5146 (html_printer::write_title): Use `with_h1'.
5147 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
5148 (HTML-TL): New macro.
5150 Add support for unordered lists in HTML.
5152 * tmac/www.tmac (www-level): New auxiliary register.
5153 (www-level1, www-level2, www-level3): New auxiliary strings.
5154 (www-push-level, www-pop-level): New auxiliary macros
5155 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
5159 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
5160 (DEFAULT_VERTICAL_OFFSET): Removed.
5161 (IMAGE_BOARDER_PIXELS): Set to 0.
5162 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
5163 (vertical_offset): Initialize with 0.
5164 (gsPaper): New global variable.
5165 (get_resolution): Scan for and return unsigned int.
5166 (get_papersize): New function to get paper length from devps/DESC.
5167 (determine_vertical_offset): New function.
5168 (createAllPages): Produce gray-level images and use proper page
5170 (createImage): Use `-quiet' option of pnmcrop.
5171 (addZ): Fix passing of `-Z'.
5172 (scanArguments): Fix handling of `-o'.
5173 (main): Call `determine_vertical_offset'.
5174 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
5177 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
5178 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
5179 glyph descenders properly.
5181 * doc/homepage.ms: Include `gnubw.eps'.
5182 * doc/Makefile (gnubw.eps): New rule.
5183 (homepage.html): Depend on `gnubw.eps'.
5185 2001-12-25 Werner LEMBERG <wl@gnu.org>
5187 * src/roff/troff/input.cc (default_black): Fix return value.
5189 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
5191 * tmac/doc-common (Dt): Change output of architecture strings.
5192 Do some syntax cleanup.
5193 * tmac/groff_mdoc.man: Updated.
5195 2001-12-23 Werner LEMBERG <wl@gnu.org>
5197 Adding an `itc' request (input line trap accepting \c).
5199 * src/roff/troff/env.h (environment): New member
5200 `continued_input_trap'.
5201 Make `do_input_trap' a friend function instead of `input_trap'.
5202 * src/roff/troff/env.cc (environment::environment,
5203 environment::copy): Updated.
5204 (environment::newline): Implement it.
5205 (do_input_trap): New function.
5206 (input_trap): Call `do_input_trap'.
5207 (input_trap_continued): New function.
5208 (init_env_requests): Updated.
5209 * src/roff/troff/TODO: Updated.
5211 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5214 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5216 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
5218 * tmac/doc-common, tmac/doc-syms: Small updates.
5220 2001-12-22 Colin Watson <cjwatson@debian.org>
5222 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5224 2001-12-22 Bernd Warken <bwarken@mayn.de>
5226 * MANIFEST: New file.
5228 2001-12-22 Werner LEMBERG <wl@gnu.org>
5230 * src/preproc/grn/grn.man: Updated.
5232 2001-12-22 Solar Designer <solar@openwall.com>
5234 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
5237 2001-12-19 Werner LEMBERG <wl@gnu.org>
5239 Implement a fallback character request `.fchar'.
5241 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5242 (is_fallback): New inline function.
5243 * src/roff/troff/input.cc (do_define_character): New function.
5244 (define_character): Call `do_define_character'.
5245 (define_fallback_character): New function.
5246 (init_input_requests): Add `fchar'.
5247 (charinfo::charinfo): Updated.
5248 (charinfo::set_macro): New argument to set `fallback' flag.
5249 * src/roff/troff/node.cc (make_glyph_node, make_node,
5250 node::add_char): Check `fallback' flag.
5251 * NEWS, man/groff_diff.man, man/groff_man: Updated.
5253 2001-12-16 Werner LEMBERG <wl@gnu.org>
5255 * groff.texinfo: Document exact search algorithm for glyphs.
5257 2001-12-15 Werner LEMBERG <wl@gnu.org>
5259 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5260 the left side of $(MANPAGES) rule to make it always non-empty.
5262 2001-12-14 Werner LEMBERG <wl@gnu.org>
5264 * src/roff/troff/input.cc (default_black): Define default color
5265 `black' if not yet defined.
5267 2001-12-13 Werner LEMBERG <wl@gnu.org>
5269 Implement new string-valued register `.fn' to return the current
5270 real (internal) font name.
5272 * env.cc (environment::get_font_name_string): New function.
5273 (init_env_requests): Add `.fn' register.
5274 * env.h (environment): Updated.
5275 * node.cc (font_info): Make `get_font_name' a friend.
5276 (get_font_name): New function.
5279 * man/groff_diff.man, man/groff.man, NEWS: Updated.
5281 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5283 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5285 2001-12-12 Werner LEMBERG <wl@gnu.org>
5287 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5289 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
5291 * man/groff_diff.man: Adding documentation for \O.
5293 2001-12-10 Werner LEMBERG <wl@gnu.org>
5295 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5296 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5298 2001-12-09 Werner LEMBERG <wl@gnu.org>
5300 * man/roff.man: Revised.
5301 * src/roff/groff/groff.man: Replace man page references with a
5302 pointer to roff.man.
5304 2001-12-09 Bernd Warken <bwarken@mayn.de>
5306 * man/roff.man: Completely rewritten.
5308 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5310 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5312 2001-12-05 Werner LEMBERG <wl@gnu.org>
5314 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5316 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5317 order of initializers.
5320 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
5322 * doc/groff.texinfo: Fix documentation of \O.
5324 * src/devices/grohtml/html-text.cc (html_text::do_indent,
5325 html_text::do_table, html_text::do_emittext, html_text::do_para):
5326 Use `const' for first argument.
5327 (html_text::do_table): Use cast.
5328 * src/devices/grohtml/html-text.h: Updated.
5329 * src/devices/grohtml/output.cc (simple_output::put_string): Add
5330 method for `const string &s'.
5331 * src/devices/grohtml/html.h: Updated.
5332 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5333 (ANCHOR_TEMPLATE): Modified.
5334 (manufacture_headings): New global variable to handle `-h' option.
5335 (is_subsection): Removed.
5336 (char_buffer::add_string): Add `const' to first argument.
5337 Protect against invalid string argument.
5338 Add method for `const string &s'.
5339 (text_glob): Completely redesigned.
5340 (page): Use `const' for strings and remove string length variable.
5341 (page::add_html): Removed.
5342 (page::add_end_encode): New member function.
5343 (to_unicode): Moved upwards.
5344 (title_desc, header_desc): Updated.
5345 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5347 (html_printer::is_bold, html_printer::make_bold): New member
5349 (html_printer::end_of_line): Updated.
5350 (generate_img_src, html_printer::do_auto_image,
5351 html_printer::do_title, html_printer::write_header,
5352 html_printer::determine_header_level, html_printer::do_heading,
5353 html_printer::do_linelength, html_printer::do_pageoffset,
5354 html_printer::do_indentation, html_printer::do_tempindent,
5355 html_printer::do_indentedparagraph, html_printer::do_break,
5356 html_printer::flush_sbuf, get_html_translation,
5357 html_printer::begin_page, html_printer::special): Rewritten to get
5358 rid of static string length limit.
5359 (html_printer::troff_tag): Added `.no-auto-rule'.
5360 (html_printer::flush_globs): Small fix.
5361 (html_printer::determine_space): Don't compute `space_width'.
5362 (html_printer::translate_to_html): Renamed to ...
5363 (html_printer::emit_html): This (with updates).
5364 (html_printer::write_header): Implement `-h' option.
5365 (html_printer::draw): Remove commented-out code. Handle `F'
5367 (html_printer::add_char_to_sbuf): Removed.
5368 (html_printer::add_to_sbuf): Rewritten.
5369 (html_printer::sbuf_continuation): Fixed.
5370 (html_printer::seen_backwards_escape, reverse,
5371 html_printer::remove_last_char_from_sbuf): Removed.
5372 (char_translate_to_html, str_translate_to_html): Removed.
5373 (html_printer::overstrike): New function member.
5374 (html_printer::set_char): Use it.
5375 (html_printer::do_body): New function member.
5376 (html_printer::~html_printer): Use it.
5377 (main): Handle `-h' option.
5379 * src/devices/grohtml/grohtml.man: Document -h switch.
5381 * src/preproc/html/pre-html.cc: Include searchpath.h
5382 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5383 (get_resolution): New function.
5384 (checkImageDir): Use `0777' permissions in mkdir()
5385 (write_start_image): Rewritten to use `\O[5...]'.
5386 (createImage, generateImages): Updated.
5387 (main): Handle `F' and `h' options.
5388 Use `get_resolution'.
5390 * src/roff/troff/input.cc (begin, end, image): Removed.
5391 (do_suppress): Take parameter.
5392 Handle modified syntax of `\O'.
5393 (token::next): Updated.
5394 (init_markup_requests): Removed.
5397 * src/roff/troff/div.h: Add declaration for begin_page().
5399 * tmac/color-html.tmac: Removed. Contents moved to...
5400 * tmac/html.tmac: Here. Set background color.
5401 * tmac/color.tmac: Removed. Contents moved to...
5402 * tmac/ps.tmac: Here.
5403 * tmac/www.tmac: Remove the title command when generating images
5405 (NO_AUTO_RULE): New macro.
5406 (HTML_DO_IMAGE): Use revised `\O' escapes.
5407 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5409 2001-12-02 Werner LEMBERG <wl@gnu.org>
5411 * tmac/groff_mdoc.man: Fix typo.
5413 2001-12-01 Colin Watson <cjwatson@debian.org>
5415 * man/roff.man: Fix typo.
5417 2001-11-29 Werner LEMBERG <wl@gnu.org>
5419 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5422 * src/roff/troff/input.cc (read_draw_node): Emit error message if
5423 more than one argument to \D'f ...'.
5425 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5427 2001-11-28 Werner LEMBERG <wl@gnu.org>
5429 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5432 * tmac/groff_man.man: Minor cosmetic fix.
5434 2001-11-27 Werner LEMBERG <wl@gnu.org>
5436 * src/roff/groff/groff.man, tmac/groff_tmac.man,
5437 tmac/groff_www.man: s/mwww/www/.
5439 2001-11-26 Werner LEMBERG <wl@gnu.org>
5441 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5442 * configure: Regenerated.
5443 * win32-diffs: Updated.
5445 * tmac/groff_mwww.tmac: Renamed to ...
5446 * tmac/groff_www.tmac: This.
5447 * tmac/mwww.tmac: Removed.
5448 * NEWS, tmac/Makefile.sub: Updated.
5450 2001-11-21 Werner LEMBERG <wl@gnu.org>
5452 * doc/groff.texinfo: Improve documentation of the `\v' escape.
5453 Fix explanation of `\D' and `rt'.
5455 2001-11-20 Werner LEMBERG <wl@gnu.org>
5457 * tmac/an-old.tmac (an-header): Set header length equal to page
5459 * doc/groff.texinfo: Improve documentation of `ne' request. Other
5463 2001-11-19 Werner LEMBERG <wl@gnu.org>
5465 * NEWS, man/Makefile.sub: Updated.
5467 2001-11-19 Bernd Warken <bwarken@mayn.de>
5469 * man/ditroff.man: New file.
5471 2001-11-17 Werner LEMBERG <wl@gnu.org>
5473 * man/groff_differences.man: Renamed to ...
5474 * man/groff_diff.man: This. Updated.
5475 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5477 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5478 * src/preproc/html/pushback.cc: This. Updated.
5479 * src/preproc/html/pushbackbuffer.h: Renamed to ...
5480 * src/preproc/html/pushback.h: This.
5481 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5484 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5485 * src/libs/libgroff/htmlhint.cc: This.
5486 * src/libs/libgroff/Makefile.sub: Updated.
5488 * tmac/an-old.tmac (an-end): Fix page length.
5490 2001-11-16 Werner LEMBERG <wl@gnu.org>
5492 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5493 * man/Makefile.sub: Include groff_differences.man.
5494 * VERSION: Set to 1.18.
5495 * REVISION: Set to 0.
5497 2001-11-16 Bernd Warken <bwarken@mayn.de>
5499 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5500 the second dot (or ending macro name) to end a macro.
5501 * doc/groff.texinfo: Doc fix.
5503 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
5505 * tmac/doc-common (doc-header): Handle very long document titles
5508 2001-11-16 Werner LEMBERG <wl@gnu.org>
5510 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5512 2001-11-15 Werner LEMBERG <wl@gnu.org>
5514 * src/roff/troff/troff.man: Revised and split into troff.man and...
5515 * man/groff_differences.man: New file.
5518 2001-11-13 Werner LEMBERG <wl@gnu.org>
5520 * tmac/an-old.tmac (TS, TE): New macros for table support.
5522 2001-11-12 Werner LEMBERG <wl@gnu.org>
5524 * src/include/lib.h: Provide a fix for emx to not include
5527 2001-10-27 Werner LEMBERG <wl@gnu.org>
5529 * src/roff/troff/input.cc (substring_macro): Fix computation of
5532 2001-10-20 Werner LEMBERG <wl@gnu.org>
5534 Undo change from 2001-08-28.
5536 * src/roff/troff/input.cc (have_input): New global variable.
5537 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5538 in compatibility mode.
5539 (process_input_stack): Use it.
5541 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
5543 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5544 being handled as end-of-sentence characters,
5546 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
5548 * src/roff/troff/input.cc (file_iterator): New members
5549 `suppress_newline_flag' and `seen_escape'.
5550 (file_iterator::next_file): Updated.
5551 (file_iterator::fill): Use it.
5552 (string_iterator): New member `suppress_newline_flag'.
5553 (string_iterator::fill): Set it.
5554 (get_color_element): Use MAX_COLOR_VAL.
5555 * src/roff/troff/env.cc (environment): Remove `need_eol'.
5556 (no_fill): Don't set `env->ignore_next_eol'.
5557 (environment::newline): Handle `eol' tag properly.
5559 (environment::add_html_tag): Set `env->ignore_next_eol'.
5561 * src/roff/troff/env.h (environment): Updated.
5563 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5565 (html_printer::outstanding_eol): New member function.
5566 (html_printer::do_title): Use new functions.
5567 (html_printer::troff_tag): Test `id_eol_ce'.
5569 2001-10-10 Werner LEMBERG <wl@gnu.org>
5571 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5572 files work with -C also.
5574 2001-10-05 Werner LEMBERG <wl@gnu.org>
5576 * doc/pic.ms: Minor fix.
5577 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5578 as a valid command line switch.
5579 * src/devices/grohtml/post-html.cc (main): Ditto.
5581 * src/devices/grohtml/grohtml.man: Updated.
5582 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5584 2001-10-04 Werner LEMBERG <wl@gnu.org>
5586 Implementing color support in troff, pic, grops, and grohtml. These
5587 changes are based on a major patch provided by Gaius Mulley
5590 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5591 definitions with both hex values and fractions.
5593 New escapes: \m and \M for drawing and background color,
5594 respectively. This corresponds to the troff output commands `m'
5597 groff and troff accept command line switch `-c' to disable color
5598 output (which is automatically disabled in compatibility mode).
5600 New scaling indicator `f' for fractions (1f = 65536u).
5602 New conditional operator `m' to test for defined colors with `if'
5605 New keywords `color' (or `colour', `colored', `coloured'), `outline'
5606 (or `outlined'), and `shaded' added to pic.
5608 * src/include/color.h: New file.
5609 * src/include/driver.h: Include it.
5610 * src/include/printer.h: Include color.h.
5611 (environment): New members `col' and `fill'.
5612 (printer): Remove `adjust_arc_center' member function.
5613 * src/include/Makefile.sub: Updated.
5615 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5617 Handle `m' and `DF' troff commands.
5618 * src/libs/libgroff/color.cc: New file.
5619 * src/libs/libgroff/Makefile.sub: Updated.
5621 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5623 (createImage): Fix computation of `y2'.
5625 (buffer::write_file_html): Remove calls to `stop'.
5627 * src/preproc/pic/common.h (common_output): New abstract function
5628 members `set_color', `reset_color', `get_last_filled', and
5629 `get_outline_color'.
5630 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5631 (object_spec): Add members `shaded' and `outlined'.
5632 * src/preproc/pic/output.h (output): `command' is now abstract.
5633 New function members `set_color', `reset_color', `get_last_filled',
5634 and `get_outline_color'.
5635 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5636 `outline[d]', and `shaded'.
5637 * src/preproc/pic/object.cc (output::command): Removed.
5638 (output::set_location): Moved to output.h.
5639 (graphic_object): Add protected members `outline_color' and
5641 Add member functions `set_outline_color', `get_outline_color', and
5643 (closed_object): Add member function `set_fill_color'.
5644 Add member `color_fill'.
5645 (graphic_object::print_text): Use `out->set_color' and
5647 (box_object::print, ellipse_object::print, circle_object::print,
5648 line_object::print, spline_object::print, arc_object::print): Ditto.
5649 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5650 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5651 `SHADED', making them `%left'.
5652 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5653 * src/preproc/pic/tex.cc (tex_output): New dummy function members
5654 `set_color', `reset_color', `get_last_filled', and
5655 `get_outline_color'.
5656 * src/preproc/pic/troff.cc (simple_output): New abstract function
5657 members `set_color', `reset_color', and `get_last_filled'.
5658 (simple_output::polygon, simple_output::circle,
5659 simple_output::ellipse): Use `get_last_filled'.
5660 (troff_output): New members `last_filled' and `last_outlined'.
5661 New function members `set_color', `reset_color', `get_last_filled',
5662 and `get_outline_color'.
5663 (troff_output::finish_picture): Use `reset_color'.
5664 (troff_output::set_fill): Test `last_filled'.
5665 * src/preproc/pic/pic.man: Updated.
5667 * src/roff/groff/groff.cc (main): Implement `-c' option.
5668 (synopsis, help): Updated.
5669 src/roff/groff/groff.man: Updated.
5671 * src/roff/troff/troff.h: Include color.h.
5672 (warning_type): Add WARN_COLOR.
5673 * src/roff/troff/env.h (environment): New members
5674 `{cur,prev}_{glyph,fill}_color'.
5675 New member functions `get_{prev_,}{glyph,fill}_color'.
5676 * src/roff/troff/env.cc: Initialize and implement them.
5677 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5678 Replace `NULL' with `0' everywhere for consistency.
5679 (lookup_color, default_black, do_glyph_color, do_fill_color,
5680 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5681 define_color): New functions.
5682 (token::next): Implement \M and \m escapes.
5683 (do_if_request): Implement `m' operator.
5685 (main): Implement `-c' option.
5686 (init_markup_requests): Add `defcolor' request.
5687 (warning_table): Add `color' warning.
5688 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5690 * src/roff/troff/node.cc (troff_output_file): New members
5691 `current_{page,glyph}color'. New member functions `put_hex',
5692 `glyph_color', and `fill_color'.
5693 (glyph_color_node::*, fill_color_node::*): Implement it.
5694 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5695 (parse_term): Add support for `f'.
5696 * src/roff/troff/troff.man: Updated.
5698 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5700 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5701 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5703 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5704 (tag_definition): Use `void *' for arg1.
5705 (html_text): New member functions `do_color' and `done_color'.
5706 Use `void *' for second parameter of `push_para' member function.
5707 New `push_para' member function with a single parameter.
5708 Use `char *' for parameter of `issue_table_begin' member funtion.
5709 New `issue_color_begin' member function.
5710 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5712 (html_text::issue_color_begin): New function.
5713 (html_text::issue_table_begin): Use `char *' for parameter.
5714 (html_text::start_tag, html_text::shutdown,
5715 html_text::check_emit_text): Updated.
5716 (html_text::push_para): Use `void *' for second parameter.
5717 Add same function with only one parameter.
5718 (html_text::do_*): Updated.
5719 (html_text::do_color, html_text::done_color): New functions.
5720 * src/devices/grohtml/post-html.cc (style): New member `col'.
5721 Mew member `style' with 6 parameters.
5722 (style::style, style::operator==): Updated.
5723 (html_printer::do_font): Use it.
5724 (html_printer::draw): Add dummy entry for `F'.
5725 (html_printer::set_char): Updated.
5726 * src/devices/grohtml/grohtml.man: Updated.
5728 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5729 trailing zeroes removed.
5730 (ps_printer): New members `sbuf_color', `fill_color', and
5732 Removed member `fill'.
5733 New member function `set_color'.
5734 (ps_printer::ps_printer, ps_printer::set_char): Updated.
5735 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5736 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5738 * tmac/color-html.tmac, tmac/color.tmac: New files.
5739 * tmac/troffrc: Include them.
5740 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5741 * tmac/Makefile.sub: Updated.
5743 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5744 man/groff.man: Updated.
5745 * font/devps/prologue.ps: Define FC and CO functions.
5747 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
5749 Fix incorrect cropping of images and incorrect handling of special
5750 characters. Fix handling of file names in \O.
5752 * src/include/geometry.h: New file.
5753 * src/libs/libgroff/geometry.cc: New file.
5754 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5756 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5758 (do_suppress): Updated.
5759 * src/roff/troff/node.cc: Include geometry.h.
5760 (troff_output_file::flush_tbuf): Fixed parameters to
5761 `check_output_limits'.
5762 (troff_output_file::check_charinfo): Ditto.
5763 (troff_output_file::determine_line_limits): Add support for `Da'
5766 * src/devices/grohtml/post-html.cc (str_translate_to_html):
5767 Add new parameter `is_special' to decode special characters from
5769 (html_printer::do_title, html_printer::do_heading,
5770 html_printer::do_indentedparagraph,
5771 html_printer::translate_to_html, html_printer::special): Updated.
5773 2001-10-03 Werner LEMBERG <wl@gnu.org>
5775 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5776 Fix entry for config.h.
5777 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5778 * tmac/troffrc: Translate nonbreakable space character to `\~'.
5779 * src/preproc/eqn/eqn.man: Document -d command line option.
5781 2001-09-27 Werner LEMBERG <wl@gnu.org>
5783 * man/groff.man: Use
5791 instead of the old code (`.ad .hy' after the table) to suppress
5792 incorrect hyphenation for grohtml output.
5794 2001-09-22 Werner LEMBERG <wl@gnu.org>
5796 * man/groff_font.man, man/groff_out.man: Minor fixes.
5798 2001-09-20 Werner LEMBERG <wl@gnu.org>
5800 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
5801 Arnold Robbins <arnold@skeeve.com>).
5803 2001-09-09 Werner LEMBERG <wl@gnu.org>
5805 * configure: Regenerated with autoconf 2.52.
5807 * doc/groff.texinfo: Complete revision of indices.
5809 2001-09-07 Werner LEMBERG <wl@gnu.org>
5811 * doc/Makefile (clean): Updated to delete all indices.
5813 2001-09-05 Werner LEMBERG <wl@gnu.org>
5815 * src/roff/troff/troff.man: Remove superfluous line.
5817 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5818 given on the command line (or rather, if only the default warnings
5821 2001-09-03 Werner LEMBERG <wl@gnu.org>
5823 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5824 use .ne for TTY devices.
5826 2001-08-31 Werner LEMBERG <wl@gnu.org>
5828 * src/roff/troff/token.h, src/roff/troff/input.cc:
5829 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5831 2001-08-28 Werner LEMBERG <wl@gnu.org>
5833 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5834 * src/roff/troff/input.cc (token::next): Return
5835 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5837 (token::description): Updated.
5838 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5839 (token::add_to_node_list, token::process): Ignore
5840 TOKEN_TRANSPARENT_ESCAPE.
5842 2001-08-27 Werner LEMBERG <wl@gnu.org>
5844 * tmac/an-old.tmac: Fix `S' string.
5846 2001-08-26 Werner LEMBERG <wl@gnu.org>
5848 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5850 2001-08-25 Werner LEMBERG <wl@gnu.org>
5852 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5854 Many other minor fixes.
5856 * configure.ac: Add message at end to inform how to compile
5858 * configure: Regenerated.
5860 2001-08-24 Werner LEMBERG <wl@gnu.org>
5862 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5863 Updated to latest version of libc.
5865 2001-08-23 Werner LEMBERG <wl@gnu.org>
5867 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5868 Autoconf 2.50 and newer can handle this.
5869 * configure: Regenerated.
5871 2001-08-21 Werner LEMBERG <wl@gnu.org>
5873 * doc/pic.ms: Fix typo.
5874 * src/preproc/tbl/tbl.man: Document case of global options.
5876 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
5878 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5879 handling of `CR' font.
5881 2001-08-20 Werner LEMBERG <wl@gnu.org>
5883 Use a config.h file.
5885 * src/include/lib.h: Include config.h.
5886 * All C files: Ditto (if necessary).
5887 * All C++ source and header files: Include lib.h first (if
5890 * src/include/config.hin: New file (autogenerated by autoheader).
5891 * stamp-h.in: New file.
5892 * configure.ac: Updated.
5893 * aclocal.m4: Add third parameters to AC_DEFINE macros.
5894 (GROFF_ARRAY_DELETE): Simplified.
5895 * Makefile.sub (DISTCLEANFILES): Updated.
5896 Added targets for remaking config.status, config.hin, config.h,
5897 stamp-h.in, and stamp-h.
5898 * configure: Regenerated.
5900 2001-08-19 Werner LEMBERG <wl@gnu.org>
5904 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
5906 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
5907 (do_sprintf): Use snprintf().
5909 2001-08-18 Werner LEMBERG <wl@gnu.org>
5911 * src/libs/snprintf/*: Added an snprintf module written by Mark
5913 * src/libs/libgroff/Makefile.sub: Updated.
5914 * configure.ac: Add test for snprintf().
5915 * Makefile.in: Updated.
5916 * configure: Regenerated.
5918 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
5921 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
5923 * tmac/doc.tmac (Ex): New implementation.
5924 * tmac/doc-common, tmac/groff_tmac.man: Updated.
5926 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
5928 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
5930 * tmac/groff_tmac.man: Updated.
5932 2001-08-13 Werner LEMBERG <wl@gnu.org>
5934 * src/preproc/tbl/tbl.man: Minor documentation update.
5936 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
5938 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
5939 * configure.ac: Add declaration test for gettimeofday().
5940 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
5941 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
5942 * configure: Regenerated.
5944 2001-08-11 Werner LEMBERG <wl@gnu.org>
5946 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
5947 * configure.ac: Add declaration test for strcasecmp().
5948 * Makefile.in: Updated.
5949 * configure: Regenerated.
5950 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
5951 this is necessary because groff's mkstemp.cc is C++.
5952 Add declaration conditionally for strcasecmp().
5954 2001-08-10 Werner LEMBERG <wl@gnu.org>
5956 Integrated pic2graph, contributed by Eric S. Raymond.
5958 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
5960 * Makefile.in, NEWS: Updated.
5962 * src/preproc/tbl/tbl.man: Revised.
5964 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
5966 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
5968 2001-08-09 Werner LEMBERG <wl@gnu.org>
5970 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
5973 2001-08-08 Paul Eggert <eggert@twinsun.com>
5975 * Makefile.sub (configure): Depend on configure.ac, not
5977 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
5979 2001-08-07 Werner LEMBERG <wl@gnu.org>
5981 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
5984 2001-08-06 Werner LEMBERG <wl@gnu.org>
5986 * src/roff/troff/troff.man: Improve documentation of -E option.
5988 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5990 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
5993 2001-07-27 Werner LEMBERG <wl@gnu.org>
5995 * src/preproc/refer/refer.cc: Undo last change.
5996 * src/devices/grohtml/post-html.cc: Ditto.
5998 2001-07-26 Werner LEMBERG <wl@gnu.org>
6000 * src/preproc/refer/refer.cc: Include `lib.h'.
6001 * src/devices/grohtml/post-html.cc: Ditto.
6003 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
6005 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6006 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6007 * Makefile.in: Comment updated.
6008 * configure: Regenerated.
6010 2001-07-25 Werner LEMBERG <wl@gnu.org>
6012 * src/preproc/pic/pic.cc: Removed.
6013 * src/preproc/pic/pic_tab.h: Removed.
6014 * src/preproc/refer/label.cc: Removed.
6016 * doc/Makefile (.ms.html): Don't use a file name extension in
6017 argument to grohtml's -I option.
6018 * Makefile.in (dist): Remove CVS directories.
6019 Call `distfiles' target.
6021 * src/devices/grohtml/grohtml.man: Add information about valid
6022 versions of pnmtopng.
6023 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6024 name instead of number.
6026 2001-07-24 Werner LEMBERG <wl@gnu.org>
6028 * doc/groff.texinfo: Minor fixes.
6030 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
6032 * doc/Makefile (.ms.html): Put image files into a subdirectory.
6035 2001-07-20 Werner LEMBERG <wl@gnu.org>
6037 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6038 * src/libs/libgroff/mkstemp.cc: New file.
6039 * src/libs/libgroff/mksdir.cc: New file.
6040 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6041 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6042 * src/libs/libgroff/Makefile.sub: Updated.
6043 * src/include/lib.h: Add mksdir() prototype.
6044 * src/include/posix.h: Define S_IXUSR if not yet defined.
6046 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6047 (createAllPages): Use mksdir() instead of current code.
6048 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6049 (main): [!HAVE_MKSTEMP]: Removed.
6051 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6052 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6054 * configure.ac: Add tests for stdint.h, sys/time.h, and
6056 Call new GROFF_xxx macros.
6057 * configure: Regenerated.
6058 * Makefile.in: Comments updated.
6060 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
6062 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6063 instead of current code.
6064 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6065 * src/roff/groff/groff.cc (possible_command::insert_args): New
6067 (main): Use it for predriver handling instead of insert_arg().
6069 2001-07-19 Werner LEMBERG <wl@gnu.org>
6071 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6074 * src/include/posix.h: Define S_IWUSR if not yet defined.
6076 2001-07-18 Werner LEMBERG <wl@gnu.org>
6080 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
6082 * tmac/groff_mdoc.man: Document new -width and -column syntax.
6083 Some other minor fixes.
6084 * tmac/an-old.tmac: Add `AT' and `UC' macros.
6086 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
6088 Replace call to `troff' with `groff -Z' to make it aware of
6091 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6092 (troff_command, command_prefix): Removed.
6093 (alterDeviceTo): Use groff.
6094 (addZ): New function.
6095 (char_buffer::do_html): Use it.
6096 (scanArguments): Use TROFF_COMMAND.
6097 (findPrefix): Removed.
6099 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6101 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
6103 * doc/pic.ms: Documentation fixes.
6105 2001-07-17 Werner LEMBERG <wl@gnu.org>
6107 Replace atexit() with global destructor.
6109 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6110 (xtmpfile_list_init): New global structure to deallocate
6111 xtmpfile_list on exit. Its destructor inherits most code from
6113 (remove_tmp_files): Deleted.
6114 (add_tmp_file): Simplified.
6116 2001-07-16 Werner LEMBERG <wl@gnu.org>
6118 Replace strdup() with strsave().
6120 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6121 (set_papersize): Use strsave() and a_delete.
6122 (main): Use strsave().
6123 * src/preproc/html/pre-html.cc (make_message, createAllPages,
6124 removeAllPages): Use strsave() and a_delete.
6126 * configure.ac: Remove test for strdup.
6127 * Makefile.in: Comment updated.
6128 * configure: Regenerated.
6130 2001-07-15 Werner LEMBERG <wl@gnu.org>
6132 * win32-diffs: Updated.
6134 2001-07-14 Werner LEMBERG <wl@gnu.org>
6136 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
6137 removing the old one.
6138 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
6140 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6142 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
6144 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
6146 Merge -xwidth into -width. Add -xwidth functionality to -column
6149 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
6151 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
6152 string immediately following a leading dot starts with a valid mdoc
6154 Add similar code to the -column branch.
6155 (doc-Bl-usage): Updated.
6156 * groff_mdoc.man: s/-xwidth/-width/.
6158 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
6160 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
6161 running into centered or non-formatted text.
6163 2001-07-11 Werner LEMBERG <wl@gnu.org>
6165 Introduce short and long prefixes to have the selection at run-time
6166 whether there is a 8+3 limit for names of temporary files.
6168 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
6169 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
6170 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
6172 (temp_init): New global structure to initialize above three
6174 (xtmptemplate): Use two parameters for long and short prefix.
6175 Simplify code use above three variables.
6176 (xtmpfile): Use long and short prefixes as parameters.
6177 * src/include/lib.h: Updated.
6179 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
6181 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
6182 (createAllPages, makeTempFiles): Updated.
6184 2001-07-09 Werner LEMBERG <wl@gnu.org>
6186 * REVISION: Increased to 3.
6188 Version 1.17.2 released
6189 =======================
6191 2001-07-07 Werner LEMBERG <wl@gnu.org>
6193 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
6196 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
6198 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
6200 * tmac/groff_mdoc.man: Fix synopsis.
6202 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
6204 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6205 Restore `doc-Pa-font'.
6207 2001-07-04 Werner LEMBERG <wl@gnu.org>
6209 * src/utils/indxbib/dirnamemax.c: Moved to ...
6210 * src/libs/libgroff/maxfilename.cc: Here.
6211 s/dir_name_max/file_name_max/.
6213 * src/include/lib.h: Add file_name_max.
6214 * src/utils/indxbib/indxbib.cc: Updated.
6215 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6218 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6220 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6222 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6223 REGION_TEMPLATE): New macros.
6224 (createAllPages, makeTempFiles): Use them.
6225 Include `nonposix.h'.
6226 (html_system): New function.
6227 (createAllPages, createImage): Use it.
6230 * tmac/www.tmac: Fix typos.
6232 2001-07-03 Werner LEMBERG <wl@gnu.org>
6234 * tmac/www.tmac: Disable hyphenation in normal text only if output
6236 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
6237 * tmac/groff_mwww.man, NEWS: Updated.
6239 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
6241 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6244 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
6246 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6247 doc-display-ps-stack): Implement font and font size stack for
6250 2001-07-02 Werner LEMBERG <wl@gnu.org>
6252 * REVISION: Increased to 2.
6253 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6255 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6256 beginning of a line.
6257 * src/groff/grog/grog.sh: Ditto.
6259 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
6261 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6264 2001-06-27 Werner LEMBERG <wl@gnu.org>
6266 Fix problems with preprocessor string for `man' program.
6268 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
6269 Updated/added copyright.
6270 Moved Emacs's local variable to identify nroff mode to the end of
6271 the file; add local variable if missing.
6273 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
6275 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6276 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6277 * configure: Regenerated.
6279 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
6281 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6282 * configure: Regenerated.
6284 2001-06-24 Werner LEMBERG <wl@gnu.org>
6286 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6288 * doc/pic.ms: Fix typos.
6290 Version 1.17.1 released
6291 =======================
6293 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
6295 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6296 * configure: Updated.
6298 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
6300 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6302 * src/roff/troff/dic.cc (blank_line): Add html tag.
6304 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
6306 * src/roff/troff/input.cc (do_suppress): Fix typo.
6308 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
6310 Added two new options (-D and -I) to specify image names and a
6311 subdirectory to place the images in.
6313 Change syntax from \\Ox to \\O[x].
6315 * src/devices/grohtml/post-html.cc (main): Add options.
6317 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6318 Use `NULL' instead of `0' for null string pointers.
6319 (MAX_RETRIES): New macro.
6320 (lengthOfintToStr, intToStr, make_message): New functions.
6321 (makeFileName): Make function static.
6322 Implement -D and -I options.
6323 (checkImageDir): New function.
6324 (write_end_image, write_start_image): Use new syntax of \O.
6325 (createAllPages, removeAllPages): Implement -D and -I options. Use
6327 (createImage): Use make_message().
6328 (addps4html): Add guard for malloc().
6329 (usage, scanArguments): Updated.
6330 (makeTempFiles): Use mkstemp().
6331 (removeTempFiles): Use unlink().
6332 (findPrefix): Add guard for malloc().
6334 * src/roff/troff/input.cc (get_delim_file_name): New function to
6336 (do_suppress): Updated to parse new syntax.
6337 * src/devices/grohtml/grohtml.man: Updated.
6338 * tmac/www.tmac: Updated to new syntax.
6342 2001-06-15 Werner LEMBERG <wl@gnu.org>
6344 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6346 * src/devices/grohtml/grohtml.man: Minor improvements.
6348 2001-06-14 Werner LEMBERG <wl@gnu.org>
6350 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6352 2001-06-11 Werner LEMBERG <wl@gnu.org>
6354 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6355 line to specify preprocessor options -- mandb 2.3.1 only recognizes
6357 * src/preproc/grn/grn.man: Add proper '\" string.
6359 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
6361 * test-groff: Don't use PATH but GROFF_BIN_PATH.
6363 2001-06-08 Werner LEMBERG <wl@gnu.org>
6365 Updated to autoconf 2.50.
6367 * configure.in: Renamed to...
6368 * configure.ac: This.
6369 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6370 (GROFF_OS390): Updated.
6371 * configure: Regenerated.
6373 2001-05-18 Werner LEMBERG <wl@gnu.org>
6375 * src/roff/troff/env.c, src/roff/troff/env.h,
6376 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6379 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
6381 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6383 2001-05-16 Werner LEMBERG <wl@gnu.org>
6385 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6386 less than or equal zero; set it to 1 then.
6387 * src/roff/troff/node.h (node::node): Initialize `last'.
6389 2001-05-08 Werner LEMBERG <wl@gnu.org>
6391 * tmac/an-old.tmac: Make predefined strings work in compatibility
6393 Add troff version guard.
6394 * tmac/doc.tmac: Simplify version guard.
6396 2001-05-07 Werner LEMBERG <wl@gnu.org>
6398 The .ns and .rs requests are now honoured not only in the top-level
6399 but in all diversions (similar to UNIX troff).
6401 This change is based on a patch from Tadziu Hoffmann
6402 <hoffmann@usm.uni-muenchen.de>.
6404 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6405 (top_level_diversion): Remove `no_space_mode' member.
6406 * src/roff/troff/div.cc (diversion::diversion,
6407 top_level_diversion::top_level_diversion): Updated.
6408 (macro_diversion::output): Reset `no_space_mode'.
6409 (no_space, restore_spacing): Use `curdiv' unconditionally.
6410 (space_request, blank_line): Check `curdiv->no_space_mode'.
6411 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6412 `curdiv' unconditionally.
6413 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6416 2001-05-06 Werner LEMBERG <wl@gnu.org>
6418 Added two new requests `de1' and `am1' which are similar to `de' and
6419 `am' with the difference that compatibility mode is saved on entry,
6420 switched off during macro execution, and restored on exit.
6422 * src/roff/troff/input.h: Added two new special characters
6423 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6424 * src/roff/troff/input.cc (input_iterator): Added two member
6425 functions `save_compatible_flag' and `get_compatible_flag'.
6426 (input_stack): Ditto.
6427 (string_iterator): Ditto. Also add private member
6428 `saved_compatible_flag'.
6429 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6430 (calling_mode): New enumeration.
6431 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
6432 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6433 (define_macro, define_indirect_macro, append_macro, ignore): Use
6435 (define_nocomp_macro, append_nocomp_macro): New functions.
6436 (init_input_requests): Updated.
6437 (do_request): Rename local variable `saved_compatible_flag' to
6438 `old_compatible_flag'.
6439 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6441 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6442 public and trap-invoked macros. As a consequence, the man macros
6443 work in compatibility mode also.
6445 2001-05-06 Solar Designer <solar@openwall.com>
6447 * Makefile.in: Use $(mandir).
6449 2001-05-06 Alexios Zavras <zvr@pobox.com>
6451 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6453 2001-05-05 Werner LEMBERG <wl@gnu.org>
6455 Added `.ns' number register: Returns 1 in no-space mode (if in
6456 top-level diversion), 0 otherwise.
6458 * src/roff/troff/div.cc (no_space_mode_reg): New class.
6459 (init_div_requests): Updated.
6460 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6463 2001-05-04 Werner LEMBERG <wl@gnu.org>
6465 * src/roff/nroff/nroff.man: Improved documentation (especially
6468 2001-05-02 Werner LEMBERG <wl@gnu.org>
6470 Added `brp' request: This is \p as a request.
6472 * src/roff/troff/env.cc (environment::do_break): Add parameter
6474 (do_break_request): New function (was `break_request').
6475 (break_request): Calls `do_break_request'.
6476 (break_spread_request): New; calls `do_break_request'.
6477 (init_env_requests): Updated.
6478 * src/roff/troff/env.h: Updated.
6479 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6481 * REVISION: Increased to 1.
6482 * win32-diffs: Updated.
6484 2001-05-01 Werner LEMBERG <wl@gnu.org>
6486 * tmac/an-old.tmac: Fix minor compatibility mode issue.
6487 * tmac/troffrc-end: Make it really work in compatibility mode.
6489 2001-04-27 Werner LEMBERG <wl@gnu.org>
6491 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6494 2001-04-22 Werner LEMBERG <wl@gnu.org>
6496 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6497 latest versions from glibc CVS archive.
6499 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6500 <c.zeelenberg@hccnet.nl>.
6502 2001-04-21 Werner LEMBERG <wl@gnu.org>
6504 * configure.in: Move check for mkstemp() to...
6505 * aclocal.m4 (GROFF_MKSTEMP): This new function.
6506 * configure: Regenerated.
6508 * src/include/groff-getopt.h: Don't use variable names in
6511 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
6512 * src/devices/grohtml/Makefile.sub,
6513 src/devices/grohtml/post-html.cc: Updated.
6515 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
6517 * configure.in: Add special check for mkstemp().
6518 * src/libs/libgroff/tmpfile.cc: Use it.
6519 * src/utils/indxbib/indxbib.cc: Ditto.
6520 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6521 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6524 2001-04-20 Bruce Lilly <blilly@erols.com>
6526 `Version_string' as C++ object was not visible to linker from C
6528 Add `const' to `Version_string'.
6530 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6531 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6532 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6533 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6534 (scanArguments), src/preproc/refer/refer.cc (main),
6535 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6536 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6537 (main), src/devices/grohtml/post-html.cc (main),
6538 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6539 (main), src/utils/hpftodit/hpftodit.cc (main),
6540 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6541 (main), src/utils/lkbib/lkbib.cc (main),
6542 src/utils/addftinfo/addftinfo.cc (main): Implement it.
6544 * src/roff/groff/pipeline.c: Add _UWIN.
6545 * src/include/nonposix.h: Ditto.
6547 2001-04-20 Werner LEMBERG <wl@gnu.org>
6549 * src/include/lib.h: Use HAVE_STRERROR.
6550 * src/roff/groff/pipeline.c: Ditto.
6551 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6552 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6553 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6554 * win32-diffs: Updated.
6555 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6557 2001-04-19 Werner LEMBERG <wl@gnu.org>
6559 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6560 instead of hardwired `"troff"'.
6561 (char_buffer::read_file): Remove unused variables.
6562 (char_buffer::write_file_troff): Ditto.
6563 (char_buffer::write_file_html): Ditto.
6564 (generateImages): Ditto.
6566 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6568 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6570 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6571 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6572 index_search_item::search1): Ditto.
6573 * src/roff/troff/node.h (width_list): Reorder members.
6574 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6575 (lookup_warning): Ditto.
6576 (prepend_string): Commented out.
6577 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6578 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6579 * src/preproc/tbl/main.cc (process_format): Ditto.
6580 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6582 * src/preproc/pic/pic.cc: Updated.
6583 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6584 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6585 * src/preproc/refer/command.cc (execute_command): Ditto.
6586 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6587 * src/preproc/refer/token.cc (lookup_token): Ditto.
6588 * src/preproc/soelim/soelim.cc: Ditto.
6589 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6590 (isHexDigit): Commented out.
6591 (pushBackBuffer::isString): Remove unused variable.
6592 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6594 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6595 resource_manager::read_resource_arg, read_one_of, parse_extensions):
6597 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6598 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6599 lookup_paper_size): Ditto.
6600 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6601 (text_glob, element_list): Reorder members.
6602 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6604 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6605 return value to `void'.
6606 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6608 * src/devices/grohtml/html.h (simple_output::check_newline,
6609 simple_output::space_or_newline, simple_output::enable_newlines):
6611 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6613 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6614 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6615 output_ligatures, output_charset, read_map): Ditto.
6616 * src/utils/lookbib/lookbib.cc (main): Ditto.
6617 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6618 (do_file): Fix typo (`=' -> `==').
6619 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6620 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6622 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
6624 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6625 Fix usage of GROFF_BIN_PATH.
6626 * src/roff/nroff/nroff.man: Updated.
6628 2001-04-18 Werner LEMBERG <wl@gnu.org>
6630 * NEWS: Fixing typos.
6633 Version 1.17 released
6634 =====================
6636 2001-04-17 Werner LEMBERG <wl@gnu.org>
6638 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6639 directory, not in $(srcdir).
6641 2001-04-16 Werner LEMBERG <wl@gnu.org>
6643 * doc/groff.texinfo: More info on conditionals.
6645 2001-04-15 Werner LEMBERG <wl@gnu.org>
6647 * doc/groff.texinfo: Added some info about groff internals.
6649 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6650 about missing special character only if the name is non-null.
6652 2001-04-14 Werner LEMBERG <wl@gnu.org>
6654 Removing the grohtml-old device driver which is now obsolete.
6656 * src/devices/grohtml-old/*: Removed.
6657 * font/devhtml-old/*: Removed.
6658 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6660 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6661 * test-groff (PATH): Updated.
6662 * tmac/Makefile.sub (NORMALFILES): Updated.
6663 * tmac/an-old.tmac: Remove special code for html-old device.
6664 Replace `html-or-html-old' register with `an-html'.
6665 * tmac/eqnrc: Updated.
6666 * tmac/html-old.tmac: Removed.
6667 * tmac/troffrc, tmac/troffrc-end: Updated.
6668 * tmac/www.tmac: Remove special code for html-old device.
6669 Replace `html-or-html-old' register with `www-html'.
6671 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6672 src/libs/libgroff/htmlindicate.cc (graphic_end),
6673 include/htmlindicate.h, src/preproc/grn/*.cc,
6674 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6675 single argument for consistency with rest of source code.
6677 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6679 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
6681 * src/roff/troff/troff.man: Fixing typos.
6683 2001-04-13 Werner LEMBERG <wl@gnu.org>
6685 * doc/pic.ms: Fixing many font switches.
6686 * doc/groff.texinfo: Fixes, additions.
6687 * MORE.STUFF: Updated.
6689 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
6691 * src/devices/grohtml/grohtml.man: Updated manual page regarding
6693 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6695 (removeTempFiles): New function to tidy up temporary files.
6696 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6697 Many fixes to do with the new inline suppress node and image regions
6699 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6700 (generate_img_src): New function.
6701 (html_printer::do_auto_image): Utilizes it.
6702 (do_heading, do_title): Include inline images within their contents.
6703 (html_printer::begin_page): Tidied up comments that are issued to
6704 the html output file.
6705 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6707 (text_glob::is_br): New method used by do_heading.
6708 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6709 equivalent diversion.
6710 * src/include/html-strings.h: Altered image tags to reflect the
6712 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6714 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6715 it is already inside a pic image. Only emit tags if the argument
6716 `-Tps:html' is present.
6717 * src/preproc/tbl/main.cc: Changes to reflect additional
6718 `html_end_suppress' parameter.
6719 * src/roff/troff/env.cc: Only emit eol tag if a node has been
6720 emitted since the last eol tag was written.
6721 * src/roff/troff/env.h: New boolean `emitted_node'.
6722 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6723 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
6724 * src/roff/troff/node.cc (check_charinfo): New method.
6725 (troff_output_file::determine_line_limits): Alterations to limit
6727 * tmac/www.tmac: Changes to reflect new suppress nodes.
6729 2001-04-12 Bruno Haible <haible@clisp.cons.org>
6731 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6732 Escape the html_glyph in the buffer.
6733 (str_translate_to_html): Output the unescaped escaped_char.
6734 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6735 `frame=void', not `frame=none'. Add `border=0'.
6737 2001-04-12 Werner LEMBERG <wl@gnu.org>
6739 * PROBLEMS: Add some words on how to avoid wrapper macros.
6741 2001-04-11 Blake McBride <blake@florida-software.com>
6743 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6745 2001-04-11 Werner LEMBERG <wl@gnu.org>
6747 * font/devlbp/Makefile.sub (CLEANADD): Set it.
6748 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6749 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6750 * Makefile.sub (DISTCLEANFILES): Here.
6752 * libs/libgroff/new.cc: Include `nonposix.h'.
6753 * win32-diffs: Updated.
6755 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
6757 Added skeleton macro for defunct macros.
6759 Updated documentation.
6761 When inside displays, an empty input line warning should be
6762 suppressed. If another macro call is put inside a display,
6763 all subsequent empty lines found in that display caused a
6764 warning to be emitted.
6766 * tmac/doc.tmac (doc-defunct-macro): New macro.
6767 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6768 (doc-restore-global-vars): Fixed typo.
6769 (doc-empty-line): Check the `doc-display-depth' register to
6770 determine whether we are inside display or not.
6772 * tmac/doc-common: Removed `Or' and `Sf' registers.
6773 Moved obsolete `Ds' macro to doc.tmac.
6775 * tmac/groff_mdoc.man: Bump document date.
6776 Document `.Vt' under ``Variable Types''.
6777 Removed documentation for obsolete `.Or' macro.
6779 2001-04-10 Werner LEMBERG <wl@gnu.org>
6782 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6784 2001-04-10 Bruno Haible <haible@clisp.cons.org>
6786 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6787 (usage): Add stream argument. Don't exit.
6788 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6789 Write --version output to stdout, not stderr.
6790 (usage): Add stream argument. Don't exit.
6791 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6792 (usage): Add stream argument. Don't exit.
6793 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6795 (usage): Add stream argument. Don't exit.
6796 (main): Write --help output to stdout, not stderr.
6797 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6798 (usage): Add stream argument. Don't exit.
6799 * src/devices/grops/ps.cc (main): Accept --help and --version.
6800 (usage): Add stream argument. Don't exit.
6801 * src/devices/grotty/tty.cc (main): Accept --help and --version.
6802 (usage): Add stream argument. Don't exit.
6803 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6804 (main): Accept --help and --version.
6805 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6806 (main): Accept --help and --version.
6807 * src/preproc/html/pre-html.cc (usage): Add stream argument.
6808 (scanArguments): Accept --help and --version.
6809 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6810 (main): Accept --help and --version.
6811 * src/preproc/refer/refer.cc (main): Accept --help and --version.
6812 (usage): Add stream argument. Don't exit.
6813 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6815 (main): Accept --help and --version.
6816 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6817 (main): Accept --help and --version.
6818 * src/roff/groff/groff.cc (main): Accept --help and --version.
6819 (synopsis): Add stream argument.
6820 (help): Write --help output to stdout, not stderr.
6821 (usage): Add stream argument. Don't exit.
6822 * src/roff/grog/grog.pl: Accept --help and --version.
6824 * src/roff/grog/grog.sh: Accept --help and --version.
6825 * src/roff/nroff/nroff.sh: Accept --help and --version.
6826 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6827 (usage): Add stream argument. Don't exit.
6828 (main): Accept --help and --version.
6829 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6830 (usage): New function with stream argument, doesn't exit.
6831 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6832 (usage): New function with stream argument, doesn't exit.
6833 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6834 (usage): Add stream argument. Don't exit.
6835 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6836 (main): Accept --help and --version.
6837 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6839 (main): Accept --help and --version.
6840 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6841 (main): Accept --help and --version.
6842 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6843 (usage): Add stream argument. Don't exit.
6845 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
6847 Fix indentation in SYNOPSIS.
6849 Updated to include changes of latest BSD mdoc version (basically,
6850 the only change is that `.Fn' and `.Fc' put a final semicolon after
6851 a function declaration in the SYNOPSIS section).
6853 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6854 (doc-in-synopsis-section): New variable. Updated all related
6856 (doc-indent-synopsis-active): New register.
6857 (Nd, Fn, Fo): Use it.
6858 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6859 `.Cd' with long argument line produces indented wrapped lines.
6860 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6861 undesirable line break to be output.
6862 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6864 (Fn, Fc): Add final `;' to output.
6865 (doc-save-global-vars, doc-restore-global-vars): Updated.
6866 * tmac/doc-common: Remove `Ex' register.
6868 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6871 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
6873 * tmac/doc.tmac (Cd): Simplify code.
6874 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6876 2001-04-06 Werner LEMBERG <wl@gnu.org>
6878 Implement continuous underlining for nroff mode. To do that, a new
6879 request in the ditroff language has been added: `x u N' (N is 0
6882 \X and \Y are now transparent to end-of-sentence recognition.
6884 * src/include/printer.h (printer): Add `type' parameter to `special'
6886 * src/libs/libdriver/printer.cc (printer::special): Updated.
6887 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6889 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6890 specials of type `p'.
6891 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6892 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6893 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6894 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6895 (glyph::order): New method.
6896 (tty_printer::add_char): Use it.
6897 (tty_printer::special): New method.
6898 (tty_printer::end_page): Implement it.
6900 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
6901 * src/roff/troff/node.cc (special_node::special_node): Add parameter
6902 to set `no_init_string'.
6903 (special_node::tprint_start): Use it.
6904 (special_node::same, special_node::copy): Updated.
6905 (special_node::ends_sentence): New method.
6906 (troff_output_file::start_special): Add parameter to include
6907 inititialization of special conditionally.
6909 * src/roff/troff/env.h (environment): New member `underline_spaces'.
6910 * src/roff/troff/env.cc (do_underline_special): New function.
6911 (environment::set_font): Use it.
6912 (do_underline): Use it. This was `underline()'.
6913 (underline): Call `do_underline()'.
6914 (continuous_underline): New function which calls `do_underline()'.
6915 (environment::newline): Use `do_underline_special()'.
6916 (init_env_requests): Updated.
6918 * NEWS, man/troff_out.man: Updated.
6920 2001-04-06 Bruno Haible <haible@clisp.cons.org>
6922 * font/devutf8/R.proto: Fix code of 'shc'.
6924 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
6926 Many fixes. Diag lists can now be nested also; additionally,
6927 `-compact' and `-offset' are supported.
6929 * tmac/doc.tmac (doc-have-indent): Replaced with ...
6930 (doc-list-have-indent-stackXXX): A new register stack.
6931 (doc-have-diag-list): Removed.
6932 (Bl): Use `doc-list-have-indent-stackXXX'.
6934 (doc-diag-list): Use `doc-compact-list-stackXXX'.
6935 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
6936 (doc-set-vertical-and-indent): Ditto.
6937 (doc-next-list-depth): Removed.
6938 (doc-increment-list-stack): Updated.
6939 (doc-decrement-list-stack): Use `doc-list-depth' instead of
6940 `doc-next-list-depth'.
6941 (doc-end-list, doc-end-column-list): Don't use
6942 `doc-increment-list-stack'.
6943 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
6944 (doc-save-global-vars, doc-restore-global-vars): Updated.
6945 * tmac/doc-common: Updated.
6946 * tmac/groff_mdoc.man: Updated.
6949 2001-04-02 Werner LEMBERG <wl@gnu.org>
6951 * src/devices/grotty/grotty.man: Fix grammatical error.
6953 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
6955 Remove .Ld from mdoc package; replace it with special handling of
6958 * tmac/doc-common: Remove `Ld' register.
6959 Uncomment `doc-volume-ds-*' strings.
6960 Remove `doc-operating-system-default'.
6962 * tmac/doc-syms (Ld): Removed.
6963 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
6967 * tmac/groff_mdoc.man: Many fixes and updates.
6969 2001-03-29 Werner LEMBERG <wl@gnu.org>
6971 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
6972 Bond <tkb@tkb.mpl.com>.
6973 * tmac/www.tmac: Save compatibility mode.
6975 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
6977 * tmac/groff_mdoc.man: Many fixes.
6979 2001-03-28 Werner LEMBERG <wl@gnu.org>
6981 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
6984 2001-03-27 Werner LEMBERG <wl@gnu.org>
6986 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
6987 diversion. This fixes overlong tags.
6989 2001-03-26 Werner LEMBERG <wl@gnu.org>
6991 * doc/groff.texinfo: Fixed and improved documentation of fonts.
6992 * tmac/doc-syms: Fix error messages.
6993 * tmac/an-old.tmac: Remove incorrect double backslashes.
6995 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
6997 * tmac/Makefile.sub: Strip mdoc.local also
6998 * tmac/strip.sed: Fixed.
7000 2001-03-24 Werner LEMBERG <wl@gnu.org>
7002 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7003 selecting the font size.
7004 * tmac/groff_mdoc.man, NEWS: Document it.
7006 2001-03-23 Werner LEMBERG <wl@gnu.org>
7008 * src/roff/troff/div.cc (save_vertical_space): Add default argument
7010 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7011 argument to restore previous font family.
7012 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7014 * doc/groff.texinfo: More fixes and additions (mainly for font
7015 manipulating commands).
7017 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7018 * tmac/groff_mdoc.man: This. The quick reference has been removed.
7019 * tmac/Makefile.sub, NEWS: Updated.
7021 2001-03-23 Werner LEMBERG <wl@gnu.org>
7023 Replaced mdoc implementation. The new version is `state of the
7024 art', using almost all new features of groff 1.17 -- it won't run
7025 with older versions.
7027 * tmac/doc.tmac: Completely rewritten.
7028 * tmac/doc-common: Ditto.
7029 * tmac/doc-nroff: Ditto.
7030 * tmac/doc-ditroff: Ditto.
7031 * tmac/doc-syms: Ditto.
7032 * tmac/mdoc.local: New file.
7033 * tmac/groff_mdoc.samples.man: Replaced with ...
7034 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7035 * tmac/strip.sed: Updated.
7036 * tmac/Makefile.sub: Updated.
7039 * tmac/groff_man.man: Add `man.local' to the FILES section.
7041 2001-03-22 Werner LEMBERG <wl@gnu.org>
7043 * doc/groff.texinfo: Added many @noindent.
7044 Replaced @end_Example -> @endExample.
7045 Added info whether registers are r/o.
7046 Many other additions and fixes.
7048 2001-03-21 Werner LEMBERG <wl@gnu.org>
7050 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7051 in makeinfo of texinfo 4.0) to be used in @Def* macros.
7052 Improved @Def* macros: Now the exact syntax of request, register,
7053 and escapes is shown.
7054 Added macros for parentheses and brackets to be used in @Def*.
7055 Many fixes and improvements of the documentation.
7057 2001-03-20 Werner LEMBERG <wl@gnu.org>
7059 * doc/groff.texinfo: Added new index: `st' (for strings).
7060 Added macros @Defstr(x).
7061 Added macro @Example (adding @group).
7062 Other minor improvements.
7064 2001-03-19 Werner LEMBERG <wl@gnu.org>
7066 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7067 `rq' for requests. `fn' is no longer used.
7068 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7071 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7072 number with name of man page.
7074 2001-03-19 Larry Kollar <kollar@alltel.net>
7076 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
7079 2001-03-19 Werner LEMBERG <wl@gnu.org>
7081 * man/groff_font.man: Document `prepro', `postpro', and `print'.
7082 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7083 * src/devices/grohtml/grohtml.man: Fixing typos.
7085 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
7087 * tmac/s.tmac (@IP): Pass `.ip' html tag.
7088 * tmac/groff_mwww.man: Remove .LINE macro
7089 * tmac/www.tmac (LINE): Add `.ti'.
7091 * src/devices/grohtml/post-html.cc (html_printer): New member
7093 (html_printer::emit_raw): Use it.
7094 (html_printer::do_linelength): Ditto.
7095 (html_printer::do_pageoffset): Ditto.
7096 (html_printer::do_indentation): Ditto.
7097 (html_printer::do_tempindent): Ditto.
7098 (html_printer::do_break): Ditto.
7099 (html_printer::begin_page): Ditto.
7100 (html_printer::do_indentedparagraph): New function.
7101 (html_printer::troff_tag): Handle `.ip'.
7102 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7103 Add `<td width=...>' handling.
7104 (html_text::do_table): Add parameter.
7105 (html_text::do_indent): Updated.
7106 * src/devices/groohtml/html-text.h: Updated.
7108 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
7110 Introduced simple html tables to implement indentation.
7112 * src/devices/grohtml/html.h (word, word_list): New structures.
7113 (simple_output): Use it.
7114 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7115 (html_printer): Improve indentation handling.
7116 (html_printer::emit_raw): Set `in_table' element. Handle
7118 (html_printer::write_header): Move conditional downwards.
7119 Don't allow whitespace in tags.
7120 (html_printer::do_linelength): Handle line length and indentation
7122 (html_printer::do_pageoffset): Handle indentation conditionally.
7123 (html_printer::do_indentation): Ditto.
7124 (html_printer::do_tempindent): New function member.
7125 (html_printer::do_fill): Take care of indentation.
7126 (html_printer::do_flush): Finish table.
7127 (html_printer::do_links): Ditto.
7128 (html_printer::do_break): New function for handling `.br' and `.ti'.
7129 (html_printer::troff_tag): Use it.
7131 (html_printer::flush_globs): Fix.
7132 (html_printer::flush_page): Finish table.
7133 (html_printer::html_printer): Fix error message. Set up
7135 (html_printer::add_to_sbuf): Remove special handling of character
7137 (to_unicode): Remove `stop()'.
7138 (html_printer::write_title): Cleanup.
7139 (html_printer::begin_page): Use `put_string()'. Handle indentation.
7140 (html_printer::~html_printer): Flush text and end the line.
7142 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
7143 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
7145 (html_text::start_tag): Disable newlines.
7146 (html_text::table_is_void): New function.
7147 (html_text::issue_table_begin): Ditto.
7148 (html_text::issue_table_end): Ditto.
7149 (html_text::push_para): Better table handling.
7150 (html_text::do_indent): New function.
7151 (html_text::do_table): Ditto.
7152 (html_text::done_table): Ditto.
7153 (html_text::do_tt): Handle PRE_TAG.
7154 (html_text::is_in_table): New function.
7155 (html_text::check_emit_text): Handle tables.
7156 (html_text::do_emittext): Use `nl()'.
7157 (html_text::do_para): Handle table.
7158 (html_text::remove_def): New function.
7159 * src/devices/grohtml/output.cc (word, word_list): Implement
7161 (simple_output::end_line): Flush last word.
7162 (simple_output::simple_comment): Ditto.
7163 (simple_output::begin_comment): Recoded.
7164 (simple_output::end_comment): Ditto.
7165 (simple_output::comment_arg): Removed.
7166 (simple_output::check_newline): Improve test and flush last word.
7167 (simple_output::space_or_newline): Improved.
7168 (simple_output::write_newline): Replaced with...
7169 (simple_output::nl): This.
7170 (simple_output::put_raw_char): Flush last word.
7171 (simple_output::check_space): Removed.
7172 (simple_output::put_translated_string): Ditto.
7173 (simple_output::put_string): Simplified.
7174 (simple_output::put_number): Updated.
7175 (simple_output::put_float): Ditto.
7176 (simple_output::put_symbol): Removed.
7177 (simple_output::enable_newlines): Add `check_newline()'.
7178 (simple_output::flush_last_word): New function.
7180 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
7181 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
7183 * tmac/s.tmac (@PP, @IP): Add html conditional code.
7184 * tmac/an-old.tmac (TP): Ditto.
7186 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
7188 * mdate.sh: Make it POSIX compliant.
7190 2001-03-09 Werner LEMBERG <wl@gnu.org>
7192 Added the `return' request to end a macro immediately. It simply
7193 pops iterators from the input stack until a macro iterator is found.
7195 * src/roff/troff/input.cc (input_iterator::is_macro,
7196 macro_iterator::is_macro): New member.
7197 (input_return_boundary): New class to signal an immediate return
7199 (input_stack::add_return_boundary, input_stack::is_return_boundary):
7201 (input_stack::clear): Use it.
7202 (input_stack::pop_macro): New function.
7203 (while_request): Use `is_return_boundary()'.
7204 (return_macro_request): New function.
7205 (init_input_requests): Use it.
7207 * src/roff/troff/TODO: Updated.
7208 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7210 2001-03-08 Werner LEMBERG <wl@gnu.org>
7212 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7215 2001-03-07 Werner LEMBERG <wl@gnu.org>
7217 Make `\B' more rigid.
7219 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7221 (get_number_rigidly): New function.
7222 * src/roff/troff/input.cc (do_expr_test): Use it.
7223 * src/roff/troff/token.h: Updated.
7225 * src/roff/troff/request.h: Fix typo (init_html_request ->
7226 init_markup_request).
7228 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
7230 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
7231 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
7232 are now `.begin', `.end', `.image'.
7234 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
7235 (html_printer::add_to_sbuf): Changing type of `code' parameter.
7236 Use add_char_to_sbuf().
7237 (to_unicode): New function.
7238 (char_translate_to_html): Changing type of `ch' parameter.
7240 (html_printer::~html_printer): Comment out doctype string.
7241 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7242 instead of `.html-end'.
7243 (write_start_image): Use `.begin' and `.image' instead of
7244 `.html-begin' and `.html-image'.
7245 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7246 (html_begin): Renamed to ...
7248 (html_end): Renamed to ...
7250 (html_image): Renamed to ...
7252 (init_html_requests): Renamed to ...
7253 (init_markup_requests): This.
7254 * tmac/www.tmac: Updated.
7256 2001-02-28 Bram <bram@avontuur.org>
7258 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7261 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
7263 * doc/meref.me: Fixing some typos.
7265 2001-02-16 Werner LEMBERG <wl@gnu.org>
7267 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7268 method. Return `HYPHEN_MIDDLE' if it was `\:'.
7269 * src/roff/troff/node.h: Updated.
7271 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
7273 * tmac/groff_tmac.man: Fix typo.
7275 2001-02-16 Werner LEMBERG <wl@gnu.org>
7277 Fixing a bug which prevented proper end-of-sentence recognition
7278 between an `unformatted' box and the following text. As a
7279 consequence, vertical line distances are no longer preserved in
7280 boxes after a call to `.unformat' -- because boxes aren't
7281 line-oriented (contrary to diversions), this doesn't make sense
7284 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7286 (vertical_size_node::set_unformat_flag): New method.
7287 * src/roff/troff/node.hh: Updated.
7288 * src/roff/troff/input.cc (word_space_node::reread,
7289 hmotion_node::reread): Reset `unformat' flag after usage.
7290 (unformat_macro): Append only if `set_unformat_flag()' returns
7292 * src/roff/troff/troff.man: Updated.
7294 2001-02-15 Werner LEMBERG <wl@gnu.org>
7296 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7297 documentation of `asciify' and `unformat' requests.
7299 2001-02-13 Werner LEMBERG <wl@gnu.org>
7301 Redesigned the `unformat' request. It is no longer connected with
7302 `asciify' but rather uses new `reread()' methods if the `unformat'
7303 flag is set. Additionally, the handling of space characters after
7304 unformatting has been fixed so that they retain their width.
7306 * src/roff/troff/node.h (width_list): New structure to store
7307 original widths of spaces.
7308 (node): Added `unformat' member.
7309 Replaced `num_spaces' variable with `orig_width' list.
7310 * src/roff/troff/node.cc (*node::asciify,
7311 asciify_reverse_node_list): Removed `unformat_only' flag and related
7313 (word_space_node::asciify, word_space_node::word_space_node): Use
7315 (word_space_node::~word_space_node): New destructor.
7316 (word_space_node::copy): Updated to handle `orig_width'.
7317 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7318 (*node::merge_space): Update `orig_width' list if necessary.
7319 (*node::set_unformat_flag): New methods to set the `unformat' flag.
7320 * src/roff/troff/enc.cc (environment::space_newline): Use
7322 (environment::space): Added method to handle space width and
7323 sentence space width as parameters. Use `width_list'.
7324 (environment::make_tab_node): Updated.
7325 * src/roff/troff/env.h: Updated.
7326 * src/roff/troff/input.cc (word_space_node::reread,
7327 unbreakable_space_node::reread, hmotion_node::reread): New methods
7328 to handle nodes specially if `unformat' flag is set.
7329 (do_asciify_macro): Renamed back to ...
7330 (asciify_macro): This.
7331 (unformat_macro): New implementation to simply set the `unformat'
7334 * MORE.STUFF: Added more info about deroff.
7336 2001-02-08 Werner LEMBERG <wl@gnu.org>
7338 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7339 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7340 and `add_self()' methods to avoid hyphenation. For example, the
7341 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7342 soft hyphen after `foo'. Now the hyphen list is correctly
7343 `foo<ignore><ignore>bar'.
7345 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
7347 * tmac/groff_tmac.man: Fix `BIR' macro.
7349 2001-02-04 Werner LEMBERG <wl@gnu.org>
7351 A new escape sequence `\:', inserting a zero-width break point.
7353 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7354 * src/roff/troff/input.cc (get_copy, token::next, asciify):
7356 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7358 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
7359 and `asciify()' methods.
7360 * src/roff/troff/node.cc (space_node::space_node): Updated.
7361 (space_node::asciify): Handle `was_escape_colon'.
7362 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7364 Handle `\~' similar to other comparable requests.
7366 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7368 (token::next): Move creation of an unbreakable_space_node to...
7369 (token::add_to_node_list): Here.
7371 Fix a bug which sometimes prevented hyphenation of words connected
7372 with `\~' or `\ ' (and other escape sequences handled as
7373 TOKEN_NODE). This also fixes a hyphenation problem with boxes
7374 (after a call to the `unformat' request).
7376 * src/roff/troff/env.h (environment::possibly_break_line,
7377 environment::hyphenate_line): Introducing `start_here' parameter.
7378 * src/roff/troff/env.cc (environment::space_newline,
7379 environment::space): Use it.
7380 (environment::possibly_break_line, environment::hyphenate_line):
7382 * src/roff/troff/input.cc (process_input_stack): Use it.
7383 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7384 space_char_hmotion_node, overstrike_node): Add
7385 `get_hyphenation_type()' method.
7386 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7387 if `unformat_only' is active.
7389 2001-01-30 Werner LEMBERG <wl@gnu.org>
7391 Implemented new read-only number register `.linetabs' which
7392 returns 1 if in line-tabs mode, 0 otherwise.
7394 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7395 * src/roff/troff/env.cc (get_line_tabs): New function.
7396 (init_env_requests): Use it.
7397 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7399 * VERSION, REVISION: Changing to 1.17.0.
7401 2001-01-28 Werner LEMBERG <wl@gnu.org>
7403 Fixed a bug which prevented hyphenation of words which are finished
7406 * src/roff/troff/token.h (token): Add enum type
7407 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7408 * src/roff/troff/input.cc (token::next, token::description,
7409 get_line_arg, token::add_to_node_list, token::process): Use it.
7411 2001-01-27 Werner LEMBERG <wl@gnu.org>
7413 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7414 * src/roff/troff/div.cc (do_divert): Use it.
7416 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7418 2001-01-25 Werner LEMBERG <wl@gnu.org>
7420 Adding the `linetabs' request. If set, tab distances are not
7421 computed relative to the input line but relative to the output line.
7423 * src/roff/troff/env.h (environment): New member `line_tabs'.
7424 * src/roff/troff/env.cc (line_tabs_request): Implement request.
7425 (environment::environment, environment::copy): Updated.
7426 (environment::distance_to_next_tab): Use `line_tabs'.
7427 (init_env_requests): Register request.
7428 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
7431 2001-01-24 Werner LEMBERG <wl@gnu.org>
7433 Introducing a new read-only register `.int' which is set to a
7434 positive value if the last output line is interrupted (i.e., if it
7437 * src/roff/troff/env.cc (init_env_requests): Add it.
7438 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7440 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
7442 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7443 * src/preproc/html/pre-html.cc (findPrefix): New function which
7444 generates the troff executable name via the system prefix.
7445 * src/preproc/eqn/main.cc: Modified warning message.
7447 2001-01-23 Werner LEMBERG <wl@gnu.org>
7449 troff's `box' and `boxa' requests didn't preserve temporary
7452 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7453 `saved_target_text_length' members.
7454 * src/roff/troff/div.cc (do_divert): Use them.
7456 Tabs (but not yet leaders and fields) are now handled correctly by
7459 * node.h (hmotion_node): Add field `was_tab'.
7460 * env.cc (environment::make_tab_node): Set it.
7461 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7463 Added new request `unformat' which will, contrary to `asciify',
7464 preserve font information after unformatting (i.e., only nodes
7465 dealing with horizontal space are converted back to input
7468 * input.cc (asciify_macro): Renamed to ...
7469 (do_asciify_macro): this, having a new parameter `unformat_only'.
7470 (asciify_macro, unformat_macro): New; using do_asciify_macro.
7471 (init_input_requests): Added `unformat'.
7472 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7473 parameter to control asciification process.
7474 * node.h (*_node::asciify): Ditto.
7475 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7477 2001-01-20 Werner LEMBERG <wl@gnu.org>
7479 * doc/groff.texinfo: Minor improvement of `.in' documentation.
7481 2001-01-18 Werner LEMBERG <wl@gnu.org>
7483 * tmac/ps.tmac: Remove call of psold.tmac.
7484 * tmac/psold.tmac: Comment updated.
7485 * tmac/psnew.tmac: Removed since no longer needed.
7486 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7488 * font/devutf8/R.proto: Adding `shc' glyph.
7489 * font/devutf8/NOTES: Updated.
7491 * test-groff: Updated.
7493 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
7495 First cut of the new html device driver. Changes to pre-html and
7496 the new grohtml are too numerous to be documented here.
7498 Stuff related to `html' has been renamed to `html-old' and `html2'
7499 stuff has been renamed to `html' (including directories). The new
7500 html device driver is therefore invoked as `-Thtml'.
7502 Added new `\O' escape to suppress output (needed by html driver).
7504 Added functions and code to pass info about input-level commands
7505 (`.in', `.fl', etc.) to html driver.
7507 Three new functions (.html-begin, .html-end, and .html-image) for
7508 better html handling: `html-begin' will execute the remaining line
7509 if at the outermost nesting level, increasing an internal counter.
7510 `html-end' does the same but decreases the internal counter.
7511 `html_image' puts its arguments into a special node (suppress_node)
7512 to define an image region.
7514 The `output' request has been removed.
7516 * tmac/html-tags.tmac: Removed.
7517 * tmac/arkup.tmac: Updated and renamed to ...
7518 * tmac/www.tmac: New file.
7519 * tmac/markup.tmac Updated and renamed to ...
7520 * tmac/mwww.tmac: New file.
7521 * tmac/Makefile.sub: Updated.
7522 * tmac/an-old.tmac: Updated.
7523 * tmac/eqnrc: Updated.
7524 * tmac/groff_man.man
7525 * tmac/groff_markup.man: Updated and renamed to ...
7526 * tmac/groff_mwww.man: New file.
7527 * tmac/groff_tmac.man: Updated.
7528 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7529 * tmac/html.tmac: Updated and renamed from html2.tmac.
7530 * tmac/pspic.tmac: Updated html support.
7531 * tmac/s.tmac: Added html output support.
7532 * tmac/troffrc, tmac/troffrc-end: Updated.
7534 * Makefile.in, doc/Makefile: Updated.
7535 * doc/groff.texinfo: Added info about new `\O' escape.
7536 * doc/homepage.ms: Use `MAILTO' macro.
7538 * font/devhtml/DESC.proto: Add `C' font.
7539 * font/devhtml/Makefile.sub: Updated.
7540 * font/devhtml/R.proto: Minor fixes.
7541 * font/devhtml-old/Makefile.sub: Updated.
7543 * src/devices/grohtml-old/Makefile.sub: Updated.
7545 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7547 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7548 graphic_start): Add `inline' parameter. Update.
7549 (html_end_suppress, graphic_end): Update.
7551 * src/include/html-strings.h: New file.
7552 * src/include/htmlindicate.h: Comments updated.
7553 * src/include/printer.h: Updated.
7555 * src/preproc/eqn/main.cc (do_file, main): Updated.
7556 * src/preproc/pic/troff.cc (troff_output::start_picture,
7557 troff_output::finish_picture): Updated.
7558 * src/preproc/tbl/main.cc (process_input_file): Updated.
7560 * src/roff/groff/groff.cc (main): Updated.
7561 Pass device arguments to predrivers also.
7562 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7563 * src/roff/troff/env.h (environment): Updated.
7564 New elements `need_eol' and `ignore_next_eol' (for html output).
7565 * src/roff/troff/env.cc (environment::environment): Add initializers
7566 for `need_eol' and `ignore_next_eol'.
7567 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7569 (point_size, fill, no_fill, center, right_justify, line_length,
7570 indent, temporary_indent, break_request, handle_tab): Use
7572 (set_tabs): Use `add_html_tag_tabs()'.
7573 (environment::add_html_tag): Updated.
7574 (environment::do_break): Updated.
7575 * src/roff/troff/div.cc (space_request, flush_output): Use
7576 `environment::add_html_tag()'.
7577 * src/roff/troff/input.cc: Updated.
7578 New variable `html_level' to indicate nested `html-begin' requests.
7579 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7580 (non_interpreted_char_node, token_node, non_interpreted_node): Add
7581 `force_tprint()' method.
7582 (token::next): Handle `\O'.
7583 (do_suppress): Implement it.
7584 (html_begin, html_end, html_image): New functions.
7585 (init_output_requests): Renamed to ...
7586 (init_html_requests): this.
7588 (macro::append_str, macro::append_unsigned, macro::append_int): New
7590 New variable `output_low_mark_miny' to limit minimal value of y.
7591 (reset_output_registers): Use it.
7592 (output_request): Removed.
7593 (get_output_registers): New function.
7594 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7595 (*_node): Added `force_tprint()' if necessary.
7596 (special_node): New elements `tf' and `get_tfont()'.
7597 (suppress_node): New class.
7598 * src/roff/troff/node.cc:
7599 New global variables `image_no' and `suppress_start_page'.
7600 (real_output_file): New method `is_on()'.
7601 (troff_output_file): New method `start_special(tfont)'.
7602 (troff_output_file::really_print_line): Use `tprint' conditionally.
7603 (real_output_file::print_line): Updated.
7604 (real_output_file::on): Updated.
7605 (*_node): Added `force_tprint()'.
7606 (special_node::special_node): Initializer updated.
7607 (special_node::same, special_node::copy, special_node::tprint_start):
7609 (get_reg_int, get_reg_str): New functions.
7610 (suppress_node::*): New methods.
7611 New global variables last_position, last_image_filename;
7612 (min): New inline function.
7613 * src/roff/troff/reg.h, src/roff/troff/request.h,
7614 src/roff/troff/troff.h: Updated.
7616 2001-01-13 Werner LEMBERG <wl@gnu.org>
7618 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7619 documentation of `asciify' request.
7621 2001-01-12 Werner LEMBERG <wl@gnu.org>
7623 * src/roff/troff/input.cc: Move definition of special characters
7624 like `ESCAPE_TILDE' to ...
7625 * src/roff/troff/input.h: New file.
7626 * src/roff/troff/Makefile.sub (HDRS): Add it.
7628 Extending the .asciify request to `unformat' space characters also.
7630 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7631 to count input space characters.
7632 Update constructors to take care of it.
7633 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7634 `ESCAPE_SPACE' instead of normal space.
7635 (word_space_node::asciify): New method.
7636 (unbreakable_space_node::asciify): New method.
7637 (word_space_node::merge_space): New method.
7638 * src/roff/troff/env.cc (environment::space_newline,
7639 environment::space): Add code to initialize `num_spaces' (using the
7640 constructor of `word_space_node').
7641 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7644 2001-01-09 Werner LEMBERG <wl@gnu.org>
7646 * man/groff_char.man: Use table header traps only conditionally.
7648 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
7650 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7652 2001-01-08 Werner LEMBERG <wl@gnu.org>
7654 Introducing the `box' and `boxa' requests which are similar to
7655 `di' resp. `da' but omitting a partially filled line (which is
7656 restored after ending the diversion).
7658 * src/roff/troff/div.h (diversion): Add elements to save partially
7660 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7661 partially filled line.
7662 (divert, divert_append): Updated.
7663 (box, box_append): New functions.
7664 (init_div_requests): Use them.
7665 * src/roff/troff/env.h (environment): do_divert() is now a friend.
7666 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7668 * doc/groff.texinfo: Fix documentation of `lf' request.
7670 2000-12-25 Werner LEMBERG <wl@gnu.org>
7672 * src/roff/troff/troff.man, NEWS: Document `writem' request.
7674 2000-12-21 Werner LEMBERG <wl@gnu.org>
7676 Ignore `ss' request if in compatibility mode.
7678 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7679 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7680 * src/roff/troff/env.cc (space_size): Use it.
7682 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7683 `ss' request in nroff mode.
7685 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7688 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
7690 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7692 2000-12-13 Werner LEMBERG <wl@gnu.org>
7694 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7695 * src/preproc/eqn/neqn.man: Small fixes and additions.
7697 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
7699 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7702 * src/preproc/eqn/neqn.man: New file.
7704 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7707 * tmac/e.tmac: Add `T&' macro.
7708 Fix `indent cannot be negative' warning.
7709 * tmac/s.tmac: Fix `indent cannot be negative' warning.
7711 2000-12-07 Werner LEMBERG <wl@gnu.org>
7713 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7715 2000-12-06 Werner LEMBERG <wl@gnu.org>
7717 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7720 * MORE.STUFF: Added info about deroff for djgpp.
7722 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7723 documentation of -rcR switch.
7725 2000-12-03 Werner LEMBERG <wl@gnu.org>
7727 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7728 if -rcR=1 (which is now the default in nroff mode), a single, very
7729 long page is created instead of multiple pages: All `ne' and `wh'
7730 requests are put into conditionals; a new macro `an-end' is added to
7731 be called with `em'.
7733 Some other minor cleanups.
7735 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7737 2000-12-02 Werner LEMBERG <wl@gnu.org>
7739 Fixing a bug which prevented hyphenation in words followed
7740 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7742 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7743 Adding possibly_break_line().
7744 * src/roff/troff/env.h (environment): Make possibly_break_line()
7747 Make `\~' usable in .tr request.
7749 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7750 (token): Add stretchable_space().
7751 * src/roff/troff/input.cc (token::next, token::delimiter,
7752 token::description, process_input_stack, do_translate,
7753 add_to_node_list, token::process): Use it.
7754 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7755 for adjusting the space.
7756 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
7757 for stretchable space.
7758 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7759 (make_node): Add code for stretchable space.
7760 * src/roff/troff/env.cc (environment::add_char): Use it.
7761 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7762 (get_copy, token::next, transparent_translate, asciify): Use it.
7764 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7765 doc/groff.texinfo: Updated.
7766 * man/groff.man: Small reorderings.
7768 2000-11-23 Werner LEMBERG <wl@gnu.org>
7771 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7773 * src/roff/troff/input.cc (main): Add `config_macro_path' and
7774 `safer_macro_path' to -M option.
7775 * src/roff/troff/troff.man: Fixes.
7777 2000-11-22 Werner LEMBERG <wl@gnu.org>
7779 Use safer path (except for config files) if -U isn't specified. Add
7780 a special macro path (without home and current directory) for config
7781 files. Add home directory to unsafe path for consistency. Don't
7782 include the home directory in the font path.
7784 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7786 * src/include/macropath.h: Add `config_macrp_path'.
7787 * src/libs/libgroff/fontfile.cc: Fix font path.
7788 * src/roff/troff/input.cc (process_startup_file): Use
7789 `config_macro_path'.
7790 (main): Select unsafe path if -U is given.
7792 * src/preproc/eqn/main.cc (main): Fixing search path for
7794 * src/preproc/eqn/eqn.man: Updated.
7796 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7799 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7800 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7801 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7802 src/devices/grotty/grotty.man: Updated.
7804 * Makefile.in: Fix comments.
7806 2000-11-17 Werner LEMBERG <wl@gnu.org>
7808 * tmac/safer.tmac: Empty file added (again) for compatibility
7810 * tmac/Makefile.sub: Updated.
7812 2000-11-16 Werner LEMBERG <wl@gnu.org>
7814 * src/devices/grodvi/dvi.cc (main),
7815 src/devices/grohtml2/post-html.cc (main),
7816 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7817 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7818 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7819 (main), src/preproc/html2/pre-html.cc (main),
7820 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7821 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7822 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7823 (main), src/utils/hpftodit/hpftodit.cc (main),
7824 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7825 (main), src/utils/lookbib/lookbib.cc (main),
7826 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7827 (main): Use stdout for -v.
7828 * src/roff/groff/groff.cc (run_commands),
7829 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7830 to make direct printing to stdout possible.
7831 * src/roff/groff/pipeline.h: Updated.
7833 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7834 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7835 * src/utils/afmtodit/afmtodit.man: Updated.
7837 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7838 (version): New function.
7840 * src/utils/addftinfo/addftinfo.man: Updated.
7842 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7843 Fixing copyright dates.
7845 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7848 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7851 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7853 2000-11-15 Werner LEMBERG <wl@gnu.org>
7855 In all programs, make -v return immediately with exit status 0 to
7856 be compliant with the GNU standard.
7858 * src/devices/grodvi/dvi.cc (main),
7859 src/devices/grohtml2/post-html.cc (main),
7860 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7861 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7862 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7863 (main), src/preproc/html2/pre-html.cc (main),
7864 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7865 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7866 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7867 (main): Implement it.
7870 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
7871 and postprocessors to the -v option.
7873 * src/roff/grog/grog.pl: Implement -v.
7874 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7875 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7877 * src/roff/nroff/nroff.sh: Implement -v.
7878 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7879 * src/roff/nroff/nroff.man: Updated.
7881 * src/preproc/eqn/main.cc (main): Fix comment typo.
7883 * MORE.STUFF: Added info about djgpp port of grap.
7885 2000-11-14 Werner LEMBERG <wl@gnu.org>
7887 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7888 mode (or rather, implemented non-compatibility mode).
7889 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7891 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7892 replacing it -- we don't find gxditview otherwise.
7893 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7895 * src/preproc/pic/depend: Removed. Unnecessary.
7897 Implemented dummy keyword `solid' in pic for compatibility with
7900 * lex.cc (lookup_keyword): Added `solid'.
7901 * pic.y: Added SOLID with dummy rule.
7902 * pic.cc, pic_tab.h: Regenerated.
7903 * doc/pic.ms: Updated.
7905 2000-11-13 Werner LEMBERG <wl@gnu.org>
7907 For security reasons, don't use the current directory but the home
7908 directory while searching and scanning troffrc and troffrc-end.
7909 Similarly, replace the current directory with the home directory
7912 * Makefile.in (fontpath, tmacpath): Remove current directory.
7914 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
7915 two parameters `add_home' and `add_current'.
7916 (search_path::~search_path, search_path::command_line_dir,
7917 search_path::open_file): Remove tests for `dirs' being zero.
7918 * src/include/searchpath.h: Adjust.
7919 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
7921 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
7923 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
7924 * src/roff/troff/input.cc: Use `mac_path', initialized with
7926 (process_startup_file): Set `mac_path' to `safer_macro_path'.
7927 * src/roff/troff/env.cc: Use `mac_path'.
7929 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
7931 * NEWS, man/roff.man, src/roff/troff/troff.man,
7932 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
7935 2000-11-12 Werner LEMBERG <wl@gnu.org>
7937 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
7939 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
7940 * configure.in: Fix typo in comment.
7941 * configure: Regenerated.
7943 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
7946 2000-11-08 Werner LEMBERG <wl@gnu.org>
7948 Add system tmac directory (/usr/local/lib/groff/site-tmac).
7950 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
7951 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
7954 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
7955 * tmac/Makefile.sub (install_data): Create
7956 $(systemtmacdir) and $(localtmacdir).
7957 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
7958 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
7959 NEWS, doc/groff.texinfo: Updated and minor fixes.
7961 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
7962 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
7963 $(systemtmacdir) since the wrapper files are platform-dependent.
7965 2000-11-01 Werner LEMBERG <wl@gnu.org>
7967 * doc/groff.texinfo: Fix typo.
7969 2000-10-26 Werner LEMBERG <wl@gnu.org>
7971 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
7972 tmac.doc.old -> doc-old.tmac
7973 tmac.an.old -> an-old.tmac
7975 * tmac/tmac.*: Moved to ...
7976 * tmac/*.tmac: this.
7977 * tmac/man.local: Fix comment.
7978 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
7979 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
7980 Added some `FILES' sections. More use of @...@ directives. Other
7982 * arch/djgpp/README, font/devutf8/NOTES: Updated.
7983 * doc/homepage.ms, doc/groff.texinfo: Updated.
7984 * man/groff.man, man/roff.man: Updated.
7985 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
7986 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7987 src/devices/grotty/grotty.man: Updated.
7988 * src/preproc/pic/pic.man: Updated.
7989 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
7990 instead of -mdoc.old.
7991 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
7992 * src/roff/nroff/nroff.man: Updated.
7995 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
7997 * tmac/mm.diff: Removed -- it has no use now since the mm package
8000 * tmac/*: Removed trailing spaces.
8002 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8003 the tmac subdirectory also).
8005 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8006 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8007 stuff since it is no longer needed.
8009 * README, PROBLEMS: Updated.
8011 2000-10-25 Werner LEMBERG <wl@gnu.org>
8013 Invert current behaviour: Search first FOOBAR.tmac, then
8016 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8017 (open_mac_file, macro_source): Implement it.
8018 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8019 doc/groff.texinfo, NEWS: Document it.
8021 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8022 Small documentation improvements.
8024 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8027 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8029 2000-10-24 Werner LEMBERG <wl@gnu.org>
8031 Add local tmac directory (groff/site-tmac).
8033 * Makefile.in: Add $(localtmacdir).
8034 (uninstall_dirs): Add $(localtmacdir).
8035 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8036 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8037 in $(localtmacdir). Create $(localtmacdir).
8038 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8039 Updated and minor fixes.
8041 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8043 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8045 2000-10-23 Werner LEMBERG <wl@gnu.org>
8047 Move hyphen.us to tmac directory.
8049 * src/roff/troff/hyphen.us: Removed.
8050 * src/tmac/hyphen.us: Added.
8051 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8053 Change installation structure for data files from .../groff/... to
8054 .../groff/<version><revision>/... to be conform with other GNU
8057 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8058 doc/Makefile: Implement it.
8059 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8060 * configure: Updated.
8061 * arch/djgpp/README, font/devutf8/NOTES: Use it.
8062 * NEWS: Document it.
8063 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8064 @MACRODIR@ instead of hard-coded directories.
8066 2000-10-22 Werner LEMBERG <wl@gnu.org>
8068 Implement $GROFF_BIN_PATH environment variable (which defaults to
8069 $bindir) used for child programs of groff and similar wrappers.
8071 * gendefs.sh: Improve documentation.
8072 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8073 src/preproc/eqn/Makefile.sub (neqn),
8074 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8075 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8077 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8078 $GROFF_PATH__ (the latter for communication with troff).
8079 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8081 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8082 doc/groff.texinfo: Document it.
8084 * doc/groff.texinfo: Improve documentation of troff's -a option.
8086 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
8088 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8089 non-intrusive eol marker.
8090 (troff_output_file::determine_line_limits): New function.
8091 (troff_output_file::draw): Use it.
8092 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8093 output_pending_lines() instead of output_line().
8094 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8095 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8096 createImage): Small fixes.
8098 2000-10-14 Werner LEMBERG <wl@gnu.org>
8100 Replace tmac.safer with a real secure solution.
8102 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8103 system_request, pipe_output): Disable requests if in safer mode.
8104 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8105 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8106 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8107 doc/groff.texinfo, src/roff/groff/groff.man,
8108 src/roff/troff/troff.man, arch/djgpp/README: Updated.
8110 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8111 (resource_manager::output_prolog): Replace setenv() with putenv().
8113 2000-10-09 Werner LEMBERG <wl@gnu.org>
8115 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8116 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8117 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8118 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8119 compilation errors with some compilers. It seems that this code
8120 is no longer necessary -- if yes, it is easy to add some #ifdef's
8121 for that particular old-fashioned compiler.
8123 * MORE.STUFF: Added info about Meta-tbl.
8125 * doc/groff.texinfo: Added more info about `.if "..."..."'.
8127 2000-10-07 Werner LEMBERG <wl@gnu.org>
8129 Adding a new escape sequence \B'...': If the string between
8130 the delimiters is a valid numeric expression, return the character
8131 `1', and `0' otherwise. This is an analogon to \A.
8133 * src/roff/troff/input.cc (do_expr_test): Implement it.
8134 (token::next): Use it.
8135 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
8137 * tmac/tmac.trace: Made independent from escape character.
8139 2000-10-06 Werner LEMBERG <wl@gnu.org>
8141 Adding a new request .dei: define indirect. The first and second
8142 parameter of .dei are taken from string registers instead directly;
8143 this very special request is needed to make tmac.trace independent
8144 from the escape character (which might even be disabled).
8146 * src/roff/troff/input.cc (do_define_macro): Implement it.
8147 (define_macro_indirect): New function.
8148 (init_input_requests): Use it.
8150 Adding two requests .ecs and .ecr: Save and restore the escape
8151 character. These two requests are needed to make tmac.trace
8152 independent from the escape character (which might even be
8155 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
8157 (init_input_requests): Use it.
8159 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8161 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
8163 Adding a new option -P and new environment variable GROPS_PROLOGUE
8164 to grops, selecting a different prologue file (minor modifications
8167 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8168 src/devices/grops/ps.cc (main): Implement it.
8169 * src/devices/grops/grops.man, NEWS: Document it.
8171 2000-09-22 Werner LEMBERG <wl@gnu.org>
8173 * INSTALL: Add info about selecting paper format.
8175 2000-09-21 Werner LEMBERG <wl@gnu.org>
8177 * src/roff/troff/input.cc (main): Fixing compiler warning.
8178 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
8179 strings.h from the former to the latter.
8180 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
8181 stuff from the former to the latter.
8183 2000-09-11 Werner LEMBERG <wl@gnu.org>
8185 Implementing two new requests .tm1 and .tmc: The former is similar
8186 to .tm but can output leading spaces; its syntax is similar to
8187 defining a string, i.e., a `"' can be used to mark the beginning of
8188 the string to be written to stderr: `.tm1 " test'. The latter is
8189 similar to .tm1 but doesn't write out a final newline character.
8191 * src/roff/troff/input.cc (terminal1, terminal_continue,
8192 do_terminal): New functions.
8193 (init_input_requests): Use them.
8194 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8196 2000-09-09 Werner LEMBERG <wl@gnu.org>
8198 * tmac/groff_mdoc.samples.man: Small fixes.
8200 2000-09-08 Werner LEMBERG <wl@gnu.org>
8202 * tmac/groff_mdoc.man: Fixing typo.
8204 2000-09-02 Werner LEMBERG <wl@gnu.org>
8206 Implementing a .nop request which does nothing.
8208 * src/roff/troff/input.cc (nop_request): New function.
8209 (init_input_requests): Use it.
8210 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8212 2000-09-01 Werner LEMBERG <wl@gnu.org>
8214 * doc/groff.texinfo: Added some comments.
8216 2000-08-30 Werner LEMBERG <wl@gnu.org>
8218 * src/roff/troff/TODO: Updated.
8220 2000-08-25 Werner LEMBERG <wl@gnu.org>
8222 * doc/groff.texinfo: Fix comment how to compile the DVI file.
8224 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
8226 * font/devps/generate/Makefile (SHELL): Define explicitly to
8227 "/bin/sh", for non-Unix platforms.
8228 (extraclean): Use a more portable "" quoting instead of a
8229 backslash (which doesn't work on DOS/Windows).
8231 * font/devlj4/generate/Makefile (extraclean): Ditto.
8233 * font/devdvi/generate/Makefile (extraclean): Ditto.
8235 2000-08-25 Werner LEMBERG <wl@gnu.org>
8237 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
8238 src/roff/troff/troff.man: Document Eli's latest changes.
8240 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
8242 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8243 macro file names of the form NAME.tmac as well as tmac.NAME.
8245 2000-08-25 Werner LEMBERG <wl@gnu.org>
8247 * src/include/posix.h: Remove definition of FILENAME_MAX.
8249 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8250 `sys_fatal' and `stop' function().
8252 * test-groff: Updated.
8254 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
8256 Added the new troff command .output <arg> to suppress output (while
8257 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8258 registers (for passing the output dimensions to the output device).
8260 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8262 * src/roff/troff/node.h, src/roff/troff/node.cc
8263 (troff_output_file::really_print_line,
8264 ascii_output_file::really_print_line,
8265 supress_output_file::really_print_line): Use `width' parameter.
8266 (troff_output_file::really_on, troff_output_file::really_off,
8267 output_file::on, output_file::off, real_output_file::on,
8268 real_output_file::off, real_output_file::really_on,
8269 real_output_file::really_off): New functions.
8270 (real_output_file:public output_file): New variable `output_on'.
8271 (real_output_file::begin_page, real_output_file::copy_file,
8272 real_output_file::transparent_char, real_output_file::print_line):
8274 (real_output_file::print_line): Use check_output_limits.
8275 * src/roff/troff/reg.h, src/roff/troff/request.h,
8276 src/roff/troff/input.cc (assign_registers): New function to remove
8278 (do_ps_file): Use it.
8279 (check_output_limits, reset_output_registers, output_request,
8280 init_output_requests): New functions.
8281 (init_input_requests): Updated.
8283 Added new grohtml2 device and html2 preprocessor (coding
8284 not yet finished) which will eventually replace grohtml.
8286 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8288 * src/include/htmlindicate.h, src/include/htmlindicate
8289 (html_begin_suppress, html_end_suppress): New functions.
8290 * src/preproc/tbl/main.cc: Use it.
8291 * src/roff/groff/groff.cc: Add support for html2 device (which will
8292 automatically invoke the html2 preprocessor).
8293 * src/roff/troff/input.cc (is_html2): New variable.
8294 * src/roff/troff/troff.h, src/roff/troff/env.h,
8295 src/roff/troff/env.cc (environment::add_html_tag): New function
8297 (environment::do_break): Use it.
8298 * font/devhtml2/*: New files.
8299 * src/devices/grohtml2: New device.
8300 * src/preproc/html2: New preprocessor.
8301 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8303 2000-08-23 Werner LEMBERG <wl@gnu.org>
8305 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8307 2000-08-22 Werner LEMBERG <wl@gnu.org>
8309 * src/include/lib.h: Provide a fix for IRIX to not include
8312 2000-08-18 Werner LEMBERG <wl@gnu.org>
8314 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8315 since some non-GNU sed programs can't handle null regexps.
8316 * configure, src/preproc/eqn/Makefile.sub,
8317 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8319 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8320 bug (string.h and strings.h are both needed according to latest
8323 * MORE.STUFF: Added info about unroff and troffcvt.
8325 2000-08-08 Werner LEMBERG <wl@gnu.org>
8327 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8330 * tmac/tmac.man.old: Remove unused number register.
8332 * tmac.doc: Minor documentation fix.
8334 2000-08-07 Paul Eggert <eggert@twinsun.com>
8336 * src/roff/groff/pipeline.c (is_system_shell):
8337 Fix typo: "monocased_shell" no longer exists.
8339 2000-08-07 Paul Eggert <eggert@twinsun.com>
8341 Remove FILENAME_MAX limits.
8343 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8344 that the argument length is less than FILENAME_MAX.
8345 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8346 Use struct hack to allocate and free file name.
8347 (struct xtmpfile_list): fname is now part of the structure,
8348 not a pointer to another string.
8350 2000-08-07 Tom Schmidt <tschmidt@micron.com>
8352 * src/include/posix.h: Add a default value for FILENAME_MAX.
8354 2000-08-06 Paul Eggert <eggert@twinsun.com>
8356 Add support for new BSD-style man pages (with ".Dd" instead of
8357 ".TH"), so that "groff -man" understands both styles, even
8358 when running "groff -man" on a host whose system man page
8359 macros don't support ".Dd".
8361 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8362 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8363 in case the system man macros don't define Dd or TH.
8365 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8366 * tmac/tmac.an: New one-line file.
8367 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8369 2000-08-06 Werner LEMBERG <wl@gnu.org>
8371 * src/roff/troff/troff.man: Fixing typos.
8373 Version 1.16.1 released
8374 =======================
8376 2000-07-31 Werner LEMBERG <wl@gnu.org>
8378 Preparing release 1.16.1.
8380 * REVISION: Revision number set to 1.
8381 * MORE.STUFF: Added info about port to DOS.
8382 * NEWS, win32-diffs: Updated.
8384 * src/include/nonposix.h: Remove first line -- this file is used
8387 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8390 2000-07-30 Werner LEMBERG <wl@gnu.org>
8392 * doc/texinfo.tex: Update to latest version.
8394 2000-06-28 Paul Eggert <eggert@twinsun.com>
8396 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8397 commands that fail. Don't assume that "export a=b" is valid shell
8398 syntax. This is needed for Solaris 2.5.1.
8400 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8401 comment about missing Solaris headers.
8403 * PROBLEMS: Add section about problems with Sun Make and VPATH.
8405 2000-06-25 Werner LEMBERG <wl@gnu.org>
8407 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8410 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8412 * win32-diffs: Updated.
8413 * README.WIN32: Added CRs to make all Windows editors happy.
8415 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8416 src/roff/groff/pipeline.c).
8418 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8420 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8421 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8423 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
8425 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8426 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8428 (main): Support non-Posix systems with several different styles of
8429 slash characters in file names.
8431 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8432 (main) [SET_BINARY]: Switch stdin into binary mode.
8434 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8435 (main): Support file names with several possible slash-type
8436 characters, as given by DIR_SEPS[] in nonposix.h.
8437 (main) [__MSDOS__]: If renaming the temporary index file fails
8438 because it has more than one dot in its trunk, replace the dot
8439 with an underscore and try again.
8440 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
8442 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8444 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8445 (File::File): Open the input file in binary mode. Strip CR
8446 characters from each CR-LF pair.
8447 (xbasename): Support file names with several possible slash-type
8448 characters, as given by DIR_SEPS[] in nonposix.h.
8450 * src/include/Makefile.sub (HDRS): Add nonposix.h.
8452 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8453 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8454 [!_POSIX_VERSION]: Define for traditional Unix systems.
8455 (real_output_file::real_output_file): Remove the MSVC-specific
8456 call to popen, use instead POPEN_WT, appropriately defined on
8457 nonposix.h. #include nonposix.h.
8458 (real_output_file::~real_output_file): Remove the MSVC-specific
8459 call to pclose, a suitable macro is now defined on nonposix.h.
8460 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8461 and WEXITSTATUS instead of assuming traditional Unix
8462 interpretation of the status returned by pclose.
8464 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8465 call to popen, use POPEN_RT instead (appropriately defined on
8466 nonposix.h). #include nonposix.h.
8467 (ps_bbox_request): Open the PostScript file in binary mode.
8468 Close the file after processing it.
8469 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8472 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8473 A version of run_pipeline that doesn't use `fork'.
8474 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8475 (system_shell_name, system_shell_dash_c)
8476 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8477 the ugliness of testing DOS/Windows file names for equality, and
8478 support both stock shells and ports of Unix shells.
8480 * src/roff/groff/groff.cc: #include nonposix.h.
8481 (BSHELL): Definition moved to nonposix.h.
8482 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
8483 instead of a literal "-c".
8484 (xbasename): Support file names with several possible slash-type
8485 characters, as given by DIR_SEPS[] in nonposix.h.
8486 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8489 * src/preproc/soelim/soelim.cc: #include nonposix.h.
8490 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8492 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8495 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8497 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8500 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8502 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8503 P_tmpdir is defined, use it instead of the literal "/tmp".
8504 (remove_tmp_files, add_tmp_file): New functions.
8505 (xtmpfile): Record temporary files and register an atexit function
8506 to delete them explicitly, instead of relying on the OS to do
8507 that, which doesn't work on non-Unix systems.
8509 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8510 (search_path::search_path): Use PATH_SEP instead of a literal
8512 (search_path::command_line_dir): Ditto.
8513 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8514 to support non-Posix systems.
8516 * src/libs/libbib/search.cc: #include nonposix.h.
8517 (search_list::add_file): Open the file in binary mode.
8519 * src/libs/libbib/linear.cc: #include nonposix.h.
8520 (file_buffer::load): Remove \r characters preceding \n from the
8523 * src/libs/libbib/index.cc: #include nonposix.h.
8524 (make_index_search_item): Open index_filename in O_BINARY mode.
8525 (index_search_item_iterator::get_tag): Ditto. Remove \r
8526 characters before \n characters.
8527 (index_search_item::check_files): Open files in binary mode.
8528 (index_search_item::munge_filename): Support DOS-style file names
8529 with backslashes and drive letters, use IS_ABSOLUTE.
8531 * src/devices/grops/ps.cc: #include nonposix.h.
8532 (main) [SET_BINARY]: Switch stdout to binary mode.
8534 * src/devices/grolj4/lj4.cc: #include nonposix.h.
8535 (main) [SET_BINARY]: Switch stdout to binary mode.
8537 * src/devices/grolbp/lbp.cc: #include nonposix.h
8538 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8540 * src/devices/grodvi/dvi.cc: #include nonposix.h.
8541 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8543 (main) [SET_BINARY]: Switch stdout to binary mode.
8544 [_MSC_VER]: Remove an explicit call to _setmode.
8546 * src/include/nonposix.h: New file.
8548 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8549 operation when building with DJGPP.
8550 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8551 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8554 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8556 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8557 etc. can include a semi-colon on DOS/Windows.
8558 (depend.temp): Use depend1.temp instead of depend.temp1, to
8559 prevent files from overerwiting each other on 8+3 filesystems.
8561 * gendef.sh (t): Change definition to work with DOS/Windows.
8563 doc/groff.texinfo: Apart of some typo corrections, I also changed
8564 some index entris, to make them more non-ambiguous, and also put
8565 @ignore around some parts that are not yet written, to allow the
8566 Info output be readable.
8568 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
8570 Replaced specific checks for function declarations with a generic
8571 routine taken from GNU bfd.
8573 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8574 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8575 * configure.in: Use it.
8576 * src/devices/grolbp/lbp.cc, src/include/lib.h,
8577 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8578 src/roff/groff/groff.cc: Use it.
8579 * Makefile.in, configure: Updated.
8581 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
8583 * src/devides/grolbp/lbp.h: Removed unused variables.
8585 2000-05-31 Keith Thompson <kst@sdsc.edu>
8587 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8590 2000-05-31 Werner LEMBERG <wl@gnu.org>
8592 * aclocal.m4 (GROFF_SRAND): New function to test the return value
8593 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8594 * configure.in: Use it.
8595 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8596 * configure, Makefile.in: Updated.
8598 * configure.in: Add test for strncasecmp().
8599 * src/include/lib.h: Use it.
8601 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
8603 * src/preproc/grn/Makefile.sub: Add MLIB.
8605 2000-05-29 Nix <nix@esperi.demon.co.uk>
8607 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8609 2000-05-29 Werner LEMBERG <wl@gnu.org>
8611 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8613 * PROBLEMS: Small update.
8615 * src/devices/grolbp/lbp.cc: Various small fixes.
8617 2000-05-28 Keith Thompson <kst@sdsc.edu>
8619 * src/roff/nroff/nroff.sh: Fix main loop syntax.
8621 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8623 2000-05-25 Werner LEMBERG <wl@gnu.org>
8625 * man/roff.man: Removed unused macro.
8627 2000-05-24 Werner LEMBERG <wl@gnu.org>
8629 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
8630 This is needed e.g. if you do
8631 `make distclean; ./configure; make dist'.
8633 Version 1.16 released
8634 =====================
8636 2000-05-23 Werner LEMBERG <wl@gnu.org>
8638 Adding font CWI (constant width italic) to devdvi.
8640 * font/devdvi/CWI: New file.
8641 * font/devdvi/generate/Makefile: Add generating rule.
8642 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8643 tmac/tmac.dvi: Use it.
8644 * NEWS: Announce it.
8646 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8647 * font/devlj4/generate/Makefile: Cosmetic changes only.
8649 * man/groff.man: Removed most of the redundant description of
8650 special characters (which is in groff_char.man). Added font
8651 translation CB->CR for devdvi. Other minor fixes.
8653 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8654 (registered) symbols.
8656 2000-05-22 Werner LEMBERG <wl@gnu.org>
8658 * doc/Makefile: Added rule for creating info files.
8660 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
8662 * font/devdvi/generate/Makefile: Fixed dependencies.
8664 * font/devps/*: Regenerated. Heavy changes for Bookman and
8665 NewCentury Schoolbook!
8666 * font/devps/generate/afmname: Will now run with GNU awk.
8667 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8668 * font/devps/generate/Makefile: Cosmetic changes only.
8670 2000-05-21 Werner LEMBERG <wl@gnu.org>
8672 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8673 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
8674 `.SS' now produces a heading with a smaller size than `.SH'.
8675 Completely formatted.
8676 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8678 * man/groff.man: Improved table appearance. Use of `eo' request
8679 to reduce number of doubled backslashes in macro definitions.
8680 Replacing `\e' with `\(rs'. Other minor fixes.
8682 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8683 to have correct line number.
8685 * INSTALL: Small improvement.
8687 2000-05-20 Bernd Warken <bwarken@mayn.de>
8689 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8692 2000-05-19 Bernd Warken <bwarken@mayn.de>
8694 * man/groff.man: Complete update (with a lot of corrections by WL).
8696 2000-05-18 Werner LEMBERG <wl@gnu.org>
8698 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8700 * font/*/*: Implement it.
8701 * man/groff_char.man, NEWS: Document it.
8703 * src/include/unix.h: Removed. It isn't used.
8705 * doc/groff.texinfo: Slight improvements.
8707 2000-05-17 Werner LEMBERG <wl@gnu.org>
8709 * README, win32-diffs: Small fixes and improvements.
8711 2000-05-16 Werner LEMBERG <wl@gnu.org>
8713 * FDL: New file (the Free Documentation License version 1.1).
8715 * doc/groff.texinfo: Added many start-up values for gtroff.
8716 Some structural improvements of the source code.
8718 2000-05-15 Werner LEMBERG <wl@gnu.org>
8720 * src/roff/troff/input.cc: Added small comment about troffrc-end.
8721 * src/roff/troff/troff.man: Added info about troffrc-end.
8723 2000-05-14 Werner LEMBERG <wl@gnu.org>
8725 * Makefile.in (EXTRADIRS): Fix typos.
8726 (dist): Handle deletion of old .tar.gz file correctly.
8727 (DISTDIRS): Include all tty output devices.
8729 * doc/groff.texinfo: Adding more cross references; countless other
8732 2000-05-13 Werner LEMBERG <wl@gnu.org>
8734 * MORE.STUFF: Added Robert Marks's utilities.
8736 2000-05-12 Werner LEMBERG <wl@gnu.org>
8738 Added win32 port contributed by Blake McBride
8739 <blake@florida-software.com>.
8741 * README.WIN32, win32-diffs: New files.
8744 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8745 (tmove, tmove2): Added parentheses to avoid compiler warnings.
8746 (change): Removed unused variables.
8748 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8749 (savebounds): Changed return value from `int' to `void'.
8750 * src/preproc/grn/hdb.cc: Ditto.
8752 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8753 final backslash in comment to avoid compiler warning.
8755 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8757 * doc/groff.texinfo: More fixes.
8759 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
8761 * tmac/tmac.doc: Documentation fix.
8763 2000-05-11 Werner LEMBERG <wl@gnu.org>
8765 * doc/groff.texinfo: Reading the source code shows up a lot of
8766 omissions and incorrect data... More conversion to @Deffn macros.
8768 2000-05-10 Werner LEMBERG <wl@gnu.org>
8770 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8773 * src/roff/troff/request.h: Removing unused `no_break_flag'.
8775 2000-05-09 Werner LEMBERG <wl@gnu.org>
8777 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8780 * doc/groff.texinfo: Extended history section. More conversion to
8781 @Deffn macros. More .tr documentation.
8783 2000-05-07 Werner LEMBERG <wl@gnu.org>
8785 * doc/groff.texinfo: Completed tab section. Added info about
8788 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
8790 * PROBLEMS: Describe configure script fix for OS/390 Unix.
8792 2000-05-05 Werner LEMBERG <wl@gnu.org>
8794 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8796 * NEWS: Document it.
8798 * man/troff.man: Minor optical improvements.
8800 2000-05-03 Werner LEMBERG <wl@gnu.org>
8802 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8804 * font/*/*: Implement it.
8805 * man/groff_char.man, NEWS: Document it.
8807 2000-05-02 Werner LEMBERG <wl@gnu.org>
8809 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8811 * NEWS: Document the three new man pages.
8813 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8814 * configure: Updated.
8816 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8818 2000-05-01 Werner LEMBERG <wl@gnu.org>
8820 Added grap support to grog.
8822 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8823 * src/roff/grog/grog.man: Document it.
8825 * doc/groff.texinfo, NEWS: Add info about grap support.
8827 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8828 (with slight fixes by me).
8830 * tmac/groff_tmac.man: New file documenting tmac mechanism.
8831 * tmac/Makefile.sub: Add groff_tmac.man.
8832 * man/roff.man: New file giving overview of roff system.
8833 * man/troff.man: A short reference of troff.
8834 * man/Makefile.sub: Add roff.man and troff.man.
8836 2000-04-30 Werner LEMBERG <wl@gnu.org>
8838 Added grap support to groff.
8840 * src/roff/groff/groff.cc: Implement it.
8841 * src/roff/groff/groff.man: Document it.
8843 * src/devices/grotty/grotty.man: Add cp1047 device.
8844 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8846 * src/roff/groff/groff.man: Ditto.
8847 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8848 * doc/groff.texinfo: Ditto.
8850 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8853 2000-04-29 Werner LEMBERG <wl@gnu.org>
8855 * man/groff_char.man: Add `pc' glyph.
8856 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8857 * tmac/tmac.tty: Add `pc' glyph.
8858 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
8859 we use cp1047 output device.
8861 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8862 there are still hardcoded latin1->unicode values in utf8's font
8864 * configure: Updated.
8865 * NEWS: Minor clarification. Updated.
8867 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
8870 2000-04-28 Werner LEMBERG <wl@gnu.org>
8872 Adding EBCDIC code page 1047.
8874 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8875 font/devcp1047/DESC.proto: New files.
8877 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8878 either ascii/latin1 or cp1047.
8879 * Makefile.in: Use it.
8880 * configure: Updated.
8882 Replacing and/or adding `md' (mathdot) glyph with `pc'
8883 (periodcentered) in all text fonts.
8885 * font/*/*: Change it.
8887 2000-04-27 Werner LEMBERG <wl@gnu.org>
8889 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8891 * configure.in: Add check for strings.h.
8892 * src/include/driver.h: Use HAVE_STRINGS_H.
8893 * src/devices/grolbp/lpb.cc: Remove string.h.
8895 * src/include/groff-getopt.h: New file. It will be used instead of
8896 getopt.h (to be included in lib.h) to avoid endless problems with
8897 picky C++ compilers.
8898 * src/include/lib.h: Use groff-getopt.h.
8899 * src/include/Makefile.sub: Updated.
8901 * configure: Updated.
8902 * Makefile.in: Updated.
8904 * NEWS: Mention EBCDIC support.
8906 2000-04-26 Werner LEMBERG <wl@gnu.org>
8908 * TODO: Some additions.
8910 2000-04-25 Werner LEMBERG <wl@gnu.org>
8912 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
8915 2000-04-23 Werner LEMBERG <wl@gnu.org>
8917 * src/roff/troff/troff.man: Minor fixes.
8919 2000-04-22 Werner LEMBERG <wl@gnu.org>
8921 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
8922 `.T' string register and the incompatible definition of the `.T'
8923 number register (compared to Unix troff).
8925 * man/groff_char.man: Add some missing characters.
8926 * font/devutf8/NOTES: Update.
8928 2000-04-21 Werner LEMBERG <wl@gnu.org>
8930 * src/include/htmlindicate.h, src/include/lib.h,
8931 src/include/posix.h: Fix copyright.
8933 * src/include/Makefile.sub: Update.
8935 2000-04-20 Werner LEMBERG <wl@gnu.org>
8937 * src/roff/troff/input.cc (input_char_description): Removing
8938 superfluous space char.
8940 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
8942 * doc/groff.texinfo: Document EBCDIC.
8944 2000-04-19 Werner LEMBERG <wl@gnu.org>
8946 Introducing `shc' as the glyph name for the soft hyphen character.
8948 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
8949 font/devlatin1/R.proto: Use it.
8953 2000-04-18 Werner LEMBERG <wl@gnu.org>
8955 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
8956 dependency on ASCII order.
8958 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
8960 * src/libs/libgroff/illegal.c: Added EBCDIC table.
8961 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
8963 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
8964 to increase portability.
8966 2000-04-15 Werner LEMBERG <wl@gnu.org>
8968 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
8969 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
8970 the generic `\n' if under OS/390 Unix.
8972 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
8974 * configure: Regenerated.
8976 2000-04-14 Werner LEMBERG <wl@gnu.org>
8978 * doc/groff.texinfo: More conversions to @Deffn.
8980 2000-04-12 Werner LEMBERG <wl@gnu.org>
8982 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
8985 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
8987 2000-04-10 Werner LEMBERG <wl@gnu.org>
8989 * doc/groff.texinfo: More conversions to @Deffn.
8991 2000-04-08 Werner LEMBERG <wl@gnu.org>
8993 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
8994 Updated to latest version (glibc 2.1.3).
8996 2000-04-07 Werner LEMBERG <wl@gnu.org>
8998 * doc/Makefile (clean): Include more index files.
8999 Add rule texinfo->dvi.
9001 2000-04-05 Werner LEMBERG <wl@gnu.org>
9003 * doc/groff.texinfo: Added new index `op' for operators. More
9004 info on end of sentence characters. More use of @Deffn.
9006 2000-03-30 Werner LEMBERG <wl@gnu.org>
9008 * */*.man: Adding a note that a whitespace can be inserted between
9009 a command line option and its parameter -- we are using GNU getopt.
9011 * src/roff/groff/groff.man: Add example of `-m mandoc'.
9013 2000-03-28 Werner LEMBERG <wl@gnu.org>
9015 Correct anachronism of calling the man macro file with `-man'
9016 instead of `-m man' etc.
9018 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9019 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9020 load tmac.<package>.
9022 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
9026 * doc/groff.texinfo: Updated.
9028 * tmac/groff_man.man: Copyright added.
9030 2000-03-27 Werner LEMBERG <wl@gnu.org>
9032 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9033 typeset the request resp. escape name with a tt font -- due to a
9034 bug in texinfo.tex it is necessary to use the `-e' switch with
9037 Improving info about usage of groff units.
9041 2000-03-20 Werner LEMBERG <wl@gnu.org>
9043 * doc/groff.texinfo: Added section about man macro package
9044 (I've basically taken groff_man.man). Introducing new indices `ma'
9045 for macros/strings and `gl' for glyph names. Other minor fixes.
9047 * tmac/groff_man.man: Fixed some typos.
9049 2000-03-19 Werner LEMBERG <wl@gnu.org>
9051 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9054 * doc/texinfo.tex: New file.
9056 2000-03-18 Werner LEMBERG <wl@gnu.org>
9058 * doc/groff.texinfo: Improved section on number registers. Other
9061 2000-03-16 Werner LEMBERG <wl@gnu.org>
9063 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
9066 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9067 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9068 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9069 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9071 * src/preproc/grn/grn.man: Better synopsis; added copyright.
9073 * src/roff/grog/grog.man: Updated copyright date.
9075 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
9077 * configure.in: Added test for strdup.
9079 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9082 Replaced dynamic allocation of arrays `[...]' with `new' operator.
9086 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
9088 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9090 2000-03-11 Werner LEMBERG <wl@gnu.org>
9092 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9094 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9095 * src/include/lib.h: Remove some spaces.
9097 2000-03-10 Werner LEMBERG <wl@gnu.org>
9099 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9100 initializers from arguments (some compilers don't like this).
9102 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
9104 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9105 used by pic and eqn to tell grohtml where the graphic regions start
9107 * src/libs/libgroff/Makefile.sub: Use it.
9108 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9109 graphic_start() and graphic_end() from htmlindicate.cc.
9111 2000-03-09 Werner LEMBERG <wl@gnu.org>
9113 * tmac/tmac.safer: Will now work correctly in compatibility mode.
9114 * tmac/groff_man.man: More fixes.
9116 2000-03-08 Werner LEMBERG <wl@gnu.org>
9118 * doc/Makefile: Added texput.log to the `clean' target.
9119 * doc/groff.texinfo: Added info about delimiters for escapes.
9121 2000-03-08 Bernd Warken <bwarken@mayn.de>
9123 * src/preproc/pic/pic.man: Add info on conversion of pic images to
9124 other graphic formats.
9126 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
9128 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
9129 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
9130 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
9133 2000-03-07 Werner LEMBERG <wl@gnu.org>
9135 * doc/groff.texinfo: Spelling fixes.
9137 2000-03-06 Werner LEMBERG <wl@gnu.org>
9139 * tmac/groff_man.man: Completely revised to cover everything in
9142 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
9143 Other minor fixings.
9144 * src/roff/troff/env.cc (environment_copy): Improve error message and
9146 * src/roff/troff/TODO: Updated.
9148 * doc/Makefile: Bug fixes -- this is still provisional, though...
9150 * tmac/eqnrc: Small fixes.
9152 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
9154 Adding a request `evc' to copy environments.
9156 * src/roff/troff/env.cc (environment::copy, environment_copy):
9158 * src/roff/troff/env.h: Add prototype.
9160 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
9162 Adding strsep() -- Solaris 8 doesn't have it.
9164 * configure.in: Test it.
9165 * src/devices/grolbp/lbp.cc: Add code.
9167 2000-03-05 Werner LEMBERG <wl@gnu.org>
9169 * src/roff/troff/div.cc (macro_diversion::output,
9170 top_level_diversion::output): Fixing an incompatibility with
9171 original troff: \x'0' updates the .a register also. Thanks to
9172 <Andries.Brouwer@cwi.nl> for pointing this out.
9173 * doc/groff.texinfo: Document it.
9175 * Makefile.in: Create Makefile.dep if necessary before calling the
9176 submake process to avoid warning about nonexistent file.
9178 * NEWS, PROJECTS: Updated.
9180 2000-03-04 Werner LEMBERG <wl@gnu.org>
9182 * tmac/troffrc: Add tmac.lbp.
9184 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
9186 * tmac/tmac.lbp: New file.
9187 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9190 2000-03-03 Werner LEMBERG <wl@gnu.org>
9192 * Makefile.in: Fixing $(subdir).
9194 * README, NEWS: Small fixes.
9196 * test-groff: Adding path to grolbp.
9198 * configure.in: The (new) file src/xditview/Imakefile.in will be
9199 also configured -- it is now possible to build gxditview in a
9200 directory different from $srcdir.
9202 2000-03-02 Blake McBride <blake@florida-software.com>
9204 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9206 * MORE.STUFF: Added website of bell labs and info about plot2dev.
9208 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
9210 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9213 2000-02-29 Werner LEMBERG <wl@gnu.org>
9215 Adding GNU getopt to the groff distribution.
9217 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9219 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9220 * aclocal.a4: Remove GROFF_GETOPT function.
9221 * configure.in, Makefile.in, PROBLEMS: Update.
9222 * src/include/lib.h: Replace getopt tests with getopt.h.
9223 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9225 * doc/groff.texinfo: Further checking/updating. Adding more index
9228 * man/groff_out.man: Fix nroff mode activation (for emacs).
9229 * man/groff_font.man: Add missing ligature.
9231 2000-02-28 Werner LEMBERG <wl@gnu.org>
9233 * doc/groff.texinfo: Further checking/updating. Adding more index
9236 * src/devices/grolbp/grolbp.man: Added a comment line at the
9237 beginning of the file (similar to shell scripts) which indicates
9238 that `tbl' should be used as a preprocessor.
9240 2000-02-27 Blake McBride <blake@florida-software.com>
9242 Adapting groff to MS Visual C++ 6.0 compiler (tested with
9243 Windows NT 4.0). Uses _MSC_VER define where necessary.
9245 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9246 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9247 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9248 src/include/lib.h, src/libs/libgroff/errarg.cc,
9249 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9250 src/preproc/refer/label.y, src/preproc/refer/label.cc,
9251 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9252 src/roff/troff/div.cc, src/roff/troff/env.cc,
9253 src/roff/troff/input.cc, src/roff/troff/node.cc,
9254 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9255 if_to_a() to avoid name clashes.
9256 * src/include/posix.h: Don't use unistd.h.
9257 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9258 clause for integrating non-Unix xtmpfile() code.
9259 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9260 structure; use "rt" for popen() in pipe_source(); add getpid()
9262 * src/roff/troff/node.cc: Use special versions of popen() in
9263 real_output_file() and pclose() in ~real_output_file().
9265 2000-02-27 Werner LEMBERG <wl@gnu.org>
9267 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9268 LBP-8 series laser printers). This code has been contributed by
9269 Francisco Andrés Verdú <pandres@dragonet.es>.
9271 * src/devices/grolbp/*: The grolbp output device.
9272 * font/devlpb/*: The font description files.
9273 * Makefile.in: Add grolpb and devlbp subdirectories.
9275 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9276 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9279 * doc/groff.texinfo: Further checking/updating. Adding more index
9284 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9286 * man/groff_font.man: Adding info about obsolete DESC keywords.
9287 * src/devices/grolj4/grolj4.man: Documenting additional DESC
9290 2000-02-26 Werner LEMBERG <wl@gnu.org>
9292 * src/preproc/grn/grn.man: Added info about the gremlin file format
9293 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9295 2000-02-25 Werner LEMBERG <wl@gnu.org>
9297 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9298 friends to be non-integer.
9300 * src/preproc/grn/grn.man: Document it.
9302 * doc/groff.texinfo: Further checking/updating. Adding more index
9305 2000-02-24 Werner LEMBERG <wl@gnu.org>
9307 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9308 line thicknesses to be integer multiples of this value.
9310 * src/preproc/grn/grn.man: Commenting out the -s option -- the
9311 corresponding code doesn't work (yet).
9313 * doc/groff.texinfo: Further checking/updating. Adding more index
9316 2000-02-23 Werner LEMBERG <wl@gnu.org>
9318 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9319 specify line thickness instead of base units. The new default
9320 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9321 thick lines respectively.
9323 Removed unused variable `prevval'.
9325 * src/preproc/grn/grn.man: Updated.
9327 2000-02-22 Werner LEMBERG <wl@gnu.org>
9329 * src/preproc/grn/main.cc: Slight formatting.
9331 * src/roff/groff/groff.man: Formatting fix.
9332 * src/preproc/grn/grn.man: Ditto.
9334 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9336 * doc/groff.texinfo: Further checking/updating.
9338 2000-02-21 Werner LEMBERG <wl@gnu.org>
9340 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9342 * test-groff: Added grn subdir to path.
9344 * doc/groff.texinfo: Some restructing and other small improvements.
9346 * src/roff/groff/groff.cc (help): Fixed info string.
9348 2000-02-20 Werner LEMBERG <wl@gnu.org>
9350 * doc/meref.me: Fix description of .GS request.
9352 * src/roff/troff/troff.man: Fixing typo.
9354 Adding the `grn' preprocessor for gremlin graphic files.
9356 * src/preproc/grn/*: This is the Berkeley distribution written by
9357 David Slattengren and Barry Roitblat, adapted to groff by Daniel
9358 Senderowicz and Werner Lemberg.
9360 * doc/grnexampl.{me,g}: A sample for grn.
9362 * Makefile.in: Added subdirectory entry for grn.
9364 * src/roff/groff/groff.cc: Added support for grn. It can be now
9365 called with the switch `-g'.
9367 * src/roff/groff/groff.man: Updated.
9369 * src/roff/grog/grog.{man,pl,sh}: Updated.
9373 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
9375 * src/include/lib.h: Added xtmptemplate and made xtmpfile
9376 parametrically polymorphic.
9378 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9379 and the alterations to xtmpfile.
9380 xtmpfile can be requested to return the filename created
9381 and asked not to unlink the temp file. The default behaviour
9382 if parameters are absent is exactly the same as before.
9384 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
9386 A new request `length' is available which returns the length of a
9387 string in a number register:
9389 * src/roff/troff/input.cc (length_macro): Implement it.
9390 * src/roff/troff/input.cc (init_input_requests): Register it.
9392 2000-02-11 Werner LEMBERG <wl@gnu.org>
9394 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9395 of the `substring' request.
9397 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9400 * src/roff/troff/TODO, NEWS: Updated.
9402 2000-02-09 Werner LEMBERG <wl@gnu.org>
9404 * src/roff/groff/groff.man: Added an example.
9406 2000-02-06 Werner LEMBERG <wl@gnu.org>
9408 I've considerably modified the directory structure of the
9409 distribution to get a more vertical layout. For example, the number
9410 of top level directories has been reduced from 42 to 6.
9412 As a consequence, many changes, especially to the makefiles, were
9415 * The makefile variables `top_builddir' and `top_srcdir' have been
9416 introduced. Virtually all relative paths have been replaced with
9417 absolute ones using these two variables.
9419 * Dependencies (in the files `Makefile.dep') are no longer part of
9420 the distribution. Instead, they are created during a `make install'
9421 in the build directory.
9423 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9424 make `top_srcdir' and `top_builddir' absolute.
9428 * Man pages now depend on the files `VERSION' and `REVISION'.
9430 * The added shell script `mkinstalldirs' will replace `mkdir' in
9433 * VERSION: Version number increased to 1.16.
9435 2000-02-04 Werner LEMBERG <wl@gnu.org>
9437 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9439 * Makefile.in: Removed $(tmac_m) since it is no longer needed
9440 (after an update of the mm stuff).
9442 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9444 2000-02-03 Werner LEMBERG <wl@gnu.org>
9446 The .psbb request will now also accept Mac PS images (i.e. using LF
9447 as the EOL character).
9449 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9450 (with slight modifications).
9451 * troff/input.cc (do_ps_file): Use it.
9453 * test-groff: Add grohtml and grolj4 output devices to PATH.
9455 2000-01-30 Werner LEMBERG <wl@gnu.org>
9457 * NEWS, MORE.STUFF: Updated.
9459 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
9461 Add the `srand' command to pic.
9463 * pic/lex.cc, pic/pic.y: Implement it.
9464 * pic/pic.man: Document it.
9465 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9467 2000-01-30 Werner LEMBERG <wl@gnu.org>
9469 Add a new request `.psbb'. This does exactly what the external
9470 program psbb did. It scans a PostScript image file for a
9471 %%BoundingBox comment and extracts the bounding box values (in
9472 PostScript units) which are then stored in the four new (read-only)
9473 number registers `llx', `lly', `urx', and `ury'.
9475 This will allow the usage of the .PSPIC macro without worrying
9476 about unsafe behaviour of groff, i.e., it will work without the
9477 `-U' switch of groff.
9479 * troff/input.cc: Implement it.
9480 * tmac/tmac.pspic: Use it.
9481 * troff/troff.man, grops/grops.man, NEWS: Document it.
9482 * psbb/*, Makefile.in: Remove it since it is no longer needed.
9484 This is bloody C code simply adapted from psbb.c! Any improvements
9487 2000-01-29 Werner LEMBERG <wl@gnu.org>
9489 * man/groff_font.man: Minor clarifications.
9493 2000-01-28 Werner LEMBERG <wl@gnu.org>
9495 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9497 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
9499 * man/groff_font.man: Brought up to date regarding tcommand
9501 * libgroff/font.cc: Handle everything after `--' as a comment
9503 * devps/*: Added comment delimiter inside devps font files.
9505 2000-01-28 Werner LEMBERG <wl@gnu.org>
9507 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9508 \fC...\fP (which now works as expected).
9510 * troff/troff.man: Fix typo.
9512 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
9514 Completed the pass_filenames implementation in troff.
9516 * libdriver/input.cc: Will read the new `F' tcommand.
9517 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9518 * troff/input.cc: Use it.
9520 2000-01-26 Werner LEMBERG <wl@gnu.org>
9522 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
9523 font will now be updated even if an invalid font is selected.
9525 2000-01-24 Werner LEMBERG <wl@gnu.org>
9527 * doc/homepage.ms: Updated for new tmac.arkup.
9529 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9531 * tmac/tmac.arkup: Cleanup.
9533 Added `\&' to .HTML macro to `leave vertical mode', so to say.
9535 Removed obsolete .LINK macro completely.
9537 The macros .URL, .FTP, and .MAILTO now accept a third argument which
9538 will be immediately appended to the second argument (to be used with
9539 punctuation, for example).
9541 Disabled .CDFTP macro temporarily for security reasons.
9543 * tmac/groff_markup.man: Complete revision for latest changes in
9544 tmac.arkup -- note that it does not yet format correctly with
9547 2000-01-23 Bruno Haible <haible@clisp.cons.org>
9549 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9550 * devutf8/R.proto: Add mappings for wp, lh, rh.
9551 * devutf8/NOTES: Updated.
9553 2000-01-23 Werner LEMBERG <wl@gnu.org>
9555 * doc/groff.texinfo: Updated version/copyright info.
9557 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
9559 Added support for two new directives in device descriptions:
9560 `pass_filenames' (to pass the input file name to the output device)
9561 and `use_charnames_in_special' (to support e.g. accented characters
9562 in the `X' request).
9564 * include/font.h, troff/charinfo.h: Declare it.
9566 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9568 * devhtml/DESC: Use it.
9570 * troff/input.cc: New function encoded_char.
9572 * troff/token.h: Add test for `specialness'.
9574 2000-01-21 Werner LEMBERG <wl@gnu.org>
9576 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9577 mistake from the list of files to be installed.
9579 2000-01-18 Werner LEMBERG <wl@gnu.org>
9581 * README: Added info how to apply patches.
9583 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
9585 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
9587 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
9589 * troff/input.cc: Add support for troffrc-end.
9591 * tbl/main.cc: Altered to issue table-start and table-end special
9592 characters if using the html device.
9594 * devhtml/*: Modified font files to incorporate html encoding of
9597 * tmac/groff_markup.man: New file documenting tmac.arkup.
9599 * tmac/troffrc-end: New file. This is invoked after all user
9600 specified macros. Currently used by the html device to include
9601 tmac.html. Thus no need for users to specify -mhtml anymore.
9603 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9604 (MAN7): Add groff_markup.man.
9606 * tmac/tmac.an, tmac/tmac.html: Small html updates.
9608 * tmac/troffrc: tmac.arkup will now be called for the html device.
9610 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9611 extra device specific information about fonts.
9613 * doc/homepage.ms: New file. It is an example how an HTML home page
9614 could look like with grohtml.
9616 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
9618 2000-01-12 Bruno Haible <haible@clisp.cons.org>
9620 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
9623 * devutf8/NOTES: Updated.
9625 2000-01-08 Bruno Haible <haible@clisp.cons.org>
9627 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9628 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9629 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9630 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9631 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9632 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9633 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9634 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9637 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9639 2000-01-12 Fabrizio Polacco <fab@prosa.it>
9641 grolj4: Paper size will be searched case-insensitively.
9643 * include/lib.h: Add check for strcasecmp().
9644 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9645 * configure.in: Check for strcasecmp().
9647 2000-01-11 Werner LEMBERG <wl@gnu.org>
9649 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9652 2000-01-10 Werner LEMBERG <wl@gnu.org>
9654 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9657 Add a new read-only register, `.Y', which contains the groff
9660 * troff/input.cc (init_input_requests): Define it.
9661 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9662 * doc/groff.texinfo, troff/troff.man: Document it.
9664 * libgroff/Makefile.sub (version.cc): Add definition of
9665 `Version_string[]', consisting of `<major>.<minor>.<revision>'
9666 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9667 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9668 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9669 troff/input.cc, pfbtops/pfbtops.c: Use it.
9671 2000-01-10 Fabrizio Polacco <fab@prosa.it>
9673 Add a revision scheme to the groff package.
9675 * REVISION: New file.
9676 * libgroff/Makefile.sub (version.cc): Use it to define
9677 `revision_string[]'.
9678 * grops/psrm.cc: Use revision_string (converted to an unsigned
9679 integer) in constructor of resource_manager.
9681 2000-01-10 Bruno Haible <haible@clisp.cons.org>
9683 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9685 * Makefile.in (DEVDIRS): Add devutf8.
9686 * grotty/tty.cc: Include device.h.
9687 (glyph): Change type of `code' to `unsigned int'.
9688 (tty_printer): New field is_utf8. Constructor takes device argument.
9689 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9690 (tty_printer::add_char): Change type of first arg to `unsigned int'.
9691 (tty_printer::put_char): New function.
9692 (tty_printer::end_page): Use put_char() instead of ::putchar().
9693 (make_printer): Pass device to tty_printer constructor.
9694 * nroff.sh: Determine default device by calling 'locale'. As a
9695 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9696 Recognize UTF-8 locales.
9697 * tmac/eqnrc: Recognize utf8 like latin1.
9698 * tmac/troffrc: Device utf8 needs tmac.tty.
9700 2000-01-07 Werner LEMBERG <wl@gnu.org>
9702 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9704 2000-01-07 Paul Eggert <eggert@twinsun.com>
9706 Add a new predefined writeable number register, `year',
9707 which contains the current year.
9709 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9710 * tmac/tmac.s: Use it.
9711 * troff/input.cc (init_registers): Initialize it.
9713 2000-01-06 Werner LEMBERG <wl@gnu.org>
9715 * PROBLEMS: Fixed typo.
9717 2000-01-04 Paul Eggert <eggert@twinsun.com>
9719 * PROBLEMS: Add Y2k advice for the yr number register.
9721 2000-01-03 Paul Eggert <eggert@twinsun.com>
9723 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9725 2000-01-02 Werner LEMBERG <wl@gnu.org>
9727 * tmac/tmac.arkup: Slight modification of macros to provide better
9728 appearance for non-HTML formats.
9730 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
9732 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9733 does not automatically translate to malloc(n) on all OSes
9734 (e.g., SunOS) so do it explicitly. Also, check the returned
9737 2000-01-01 Werner LEMBERG <wl@gnu.org>
9739 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
9741 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9742 expects this variable
9744 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
9746 * doc/Makefile: Added instructions to create HTML and text
9747 versions of some files.
9749 1999-12-31 Werner LEMBERG <wl@gnu.org>
9751 * Updated INSTALL.gen.
9753 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9754 better resp. correctly with non-HTML devices.
9756 Version 1.15 released
9757 =====================
9759 1999-12-28 Werner LEMBERG <wl@gnu.org>
9761 * NEWS, VERSION: Changed to 1.15
9763 1999-12-27 Paul Eggert <eggert@twinsun.com>
9765 * nroff/nroff.man: -S is safer, not safe.
9767 * groff/groff.cc (main): Use `safer', not `safe', in variable
9768 names. This does not change the behavior.
9770 * troff/input.cc (main): Likewise.
9772 * nroff/nroff.sh: Likewise.
9774 * troff/input.cc (prepend_string): New function.
9775 (main): Prepend -msafer, so that we check macro libraries for
9778 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9780 Version 1.14 released
9781 =====================
9783 1999-12-26 Werner LEMBERG <wl@gnu.org>
9785 * NEWS, VERSION: Changed to 1.14.
9787 1999-12-24 Werner LEMBERG <wl@gnu.org>
9789 * refer/refer.cc: Fixing the last fix.
9791 Version 1.13 released
9792 =====================
9794 1999-12-23 Werner LEMBERG <wl@gnu.org>
9796 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9801 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9803 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9804 document conventions, the version number must be a real.
9806 Version 1.12.1 released
9807 =======================
9809 1999-12-22 Werner LEMBERG <wl@gnu.org>
9811 * VERSION: Changed to 1.12.1.
9813 1999-12-22 Alan Rooks <arooks@istar.ca>
9815 * refer/refer.cc (do_file): Slight modification to satisfy the
9816 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9819 1999-12-20 Werner LEMBERG <wl@gnu.org>
9821 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9824 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9825 list of unsafe requests.
9827 * pic/pic.man: Fixed a typo.
9829 * man/groff_out.man: Fixed a typo.
9831 1999-12-18 Werner LEMBERG <wl@gnu.org>
9833 * Makefile.in: Doc fixes.
9835 1999-12-17 Fabrizio Polacco <fab@prosa.it>
9837 * groff/groff.cc: Missing `U' option added to getopt().
9839 * troff/troff.man: Missing `U' option added to synopsis.
9841 Version 1.12 released
9842 =====================
9844 1999-12-14 Werner LEMBERG <wl@gnu.org>
9846 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9849 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9850 with the more appropriate terms `safer' and `unsafe'.
9852 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9853 sys_nerr and sys_errlist[].
9855 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9857 * pic/pic.y, pic/pic.cc: Added check for fmod().
9859 1999-12-13 Werner LEMBERG <wl@gnu.org>
9861 * VERSION: Changed to 1.12.
9863 Here some patches from various sources; most of them taken from
9864 the Debian distribution.
9866 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9867 tmac/Makefile.sub: New files copied directly from the NetBSD
9868 distribution. Probably, some additional adaptation later on is
9871 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9874 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9875 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9876 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
9877 (`-S') is now the default.
9879 * README, NEWS: Updated.
9881 1999-12-09 Werner LEMBERG <wl@gnu.org>
9883 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9885 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9887 1999-12-06 Werner LEMBERG <wl@gnu.org>
9889 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9890 grief than relief today. Additionally, it is against the GNU
9893 * configure: Recreated.
9895 1999-12-05 Werner LEMBERG <wl@gnu.org>
9897 * configure.in: Added GROFF_LIBM.
9899 * configure: Recreated.
9901 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
9904 * Makefile.in: Added definition of $(LIBM).
9906 * Makefile.comm (LIBM): Removed.
9908 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
9910 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
9912 * doc/Makefile: Added rule for generation pic.html.
9914 (clean): Files produced by grohtml will be removed also.
9916 * doc/pic.ms: Small fix.
9918 * tmac/tmac.html: Fixed suppression of headers.
9920 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
9922 * tmac/tmac.html: Fixing horizontal arrows.
9924 Turning off hyphenation.
9926 * tmac/tmac.an: Improved support for grohtml; better indentation,
9929 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
9931 * tmac/tmac.arkup: Added CDFTP macro
9933 * tmac/tmac.html: All headers are turned off for ms, me, and mm
9936 * tmac/troffrc: Some additions for HTML stuff.
9938 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
9940 * tmac/tmac.html: Small changes.
9942 1999-09-26 Werner LEMBERG <wl@gnu.org>
9944 * doc/groff.texinfo: Minor fixes.
9946 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
9948 * devhtml/TR: Changed spacewidth to 3.
9950 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
9952 * tmac/tmac.html: Moved markup macros to tmap.arkup.
9954 * tmac/tmac.arkup: New file.
9956 * grohtml/ChangeLog: New file.
9958 1999-09-16 Werner LEMBERG <wl@gnu.org>
9960 * doc/groff.texinfo (Common Features): Added Copying chapter.
9961 Changed format to @smallbook.
9963 1999-09-15 Werner LEMBERG <wl@gnu.org>
9965 * NEWS: Added info about groff.texinfo.
9967 * doc/groff.texinfo: Will now compile (using texi2dvi) without
9970 1999-09-14 Werner LEMBERG <wl@gnu.org>
9972 * groff/groff.man: More updates.
9974 1999-09-13 Werner LEMBERG <wl@gnu.org>
9976 * doc/groff.texinfo: New file. This manual is still very
9977 rudimentary. It has been originally contributed by Trent
9978 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
9981 * INSTALL: Added information about the `doc' subdir
9983 * troff/troff.man: Minor fixes.
9985 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
9988 * troff/input.cc (usage): Added missing `-ffam' to usage message.
9990 * Makefile.in (dist): groff-$(version).tar.gz must be removed
9991 also, otherwise it is included itself in another call of `make
9994 * groff/groff.cc (synopsis): Removed superfluous space.
9996 * PROJECTS, PROBLEMS, NEWS: Updated.
9998 * VERSION: Updated to 1.12beta.
10000 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
10002 * README: Updated: Included documentation about CVS repository,
10003 mailing lists, and daily snapshots.
10005 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10007 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
10009 * tmac/tmac.an: If the tag didn't fit into the space that the
10010 macro `TP' specifies, the rest of the tag went into the space for
10013 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
10015 * grolj4/lj4.cc: Added duplex printing (option `-d').
10017 * grolj4/grolj4.man: Document duplex printing.
10019 1999-09-12 Werner LEMBERG <wl@gnu.org>
10021 * doc/Makefile (pic.ps): Fixed rule which caused problems with
10022 non-GNUish sed programs.
10024 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10027 * configure.in (LIBS): Added `-lc'
10029 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10031 * pic/tex.cc (solid_arc): Casting M_PI to double.
10033 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10035 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10036 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10037 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10039 * groff/groff_man.man: New file. This manual page was originally
10040 written for the Debian GNU/Linux system by Susan G. Kleinmann
10043 * eqn/list.cc (list_box::compute_metrics,
10044 list_box::compute_sublist_width): Removed variable declaration to
10045 avoid shadowing warnings.
10047 * grops/psrm.cc (resource_manager::process_file): Ditto.
10049 * tfmtodit/tfmtodit.cc (main): Ditto.
10051 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10052 to avoid shadowing warnings.
10054 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10055 shadowing loop variable.
10057 * groff/groff.man, troff/troff.man: Added doc about grohtml.
10059 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
10061 New grohtml frontend to convert groff input to html.
10063 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10065 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10067 * tmac/eqnrc: Added html device.
10069 * tmac/tmac.html: New file.
10071 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10072 (troff_output::start_picture, troff_output::finish_picture),
10073 tbl/main.cc (process_input_file):
10074 Surrounded output with `graphics_start' and `graphics_end' so that
10075 the html driver can identify non-text portions.
10077 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10078 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10079 grotty/tty.ps (tty_printer::set_char): Additional parameter
10082 * include/printer.h: Class printer: New function
10083 set_char_and_width; new variables (is_char_named, is_named_set,
10084 named_command, named_char_s, named_char_n) to hold information
10085 about named characters -- needed by the html driver.
10087 * libdriver/printer.cc (printer::set_ascii_char,
10088 printer::set_special_char): Use set_char_and_width.
10090 * devhtml/*: New device files for html driver.
10092 * grohtml/*: New driver grohtml.
10094 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
10096 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10099 1999-09-11 Luke Mewburn <lukem@netbsd.org>
10101 * libgroff/string.cc (search): Small fix to test against NULL
10104 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
10106 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10107 \b'abc') were stacked in reverse order when processed in a
10110 * troff/node.h: Added `*last' to struct `node' to make the above
10113 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10114 The default scale for the 'f' and 't' graphics functions were 'm'
10115 rather than 'u' (i.e., no scaling).
10117 1999-09-11 Peter Miller <peterm@jna.com.au>
10119 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10120 do_file), soelim/soelim.man: Added `-I file' option to soelim,
10121 defining include paths.
10123 * soelim/soelim.cc (include_path_append): New function.
10125 1999-09-11 Larry Jones <larry.jones@sdrc.com>
10127 * tbl/main.cc (process_options): Unix (at least Documenter's
10128 Workbench) tbl allows arbitrary non-alpha characters between
10131 1999-09-11 Paul Eggert <eggert@twinsun.com>
10133 Y2k fixes. Don't assume that the current year precedes 2000.
10135 * doc/meref.me: Add \n(y2, \n(y4.
10137 * tmac/doc-common (Yr): New number register.
10138 (Dd): Don't assume current year precedes 2000.
10140 * tmac/tmac.e (td): Likewise.
10141 (y2, y4): New number registers.
10143 * pic/pic.man: Update reference for pic paper to May, 1991
10146 1999-09-11 Werner LEMBERG <wl@gnu.org>
10148 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10149 Removed quotation marks which prevented correct expansion of
10152 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
10154 1999-09-10 Werner LEMBERG <wl@gnu.org>
10156 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
10159 * Removed configure.old.
10161 1999-08-31 Werner LEMBERG <wl@gnu.org>
10163 * VERSION: Updated to 1.11.1
10165 1999-05-27 Werner LEMBERG <wl@gnu.org>
10167 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
10169 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10170 added quotations around $(tmac_wrap) to avoid syntax error if
10173 * configure: Newly generated using autoconf 2.13.
10175 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
10177 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
10179 * README, PROJECTS, NEWS, INSTALL, VERSION,
10180 doc/Makefile. doc/pic.ms, groff/groff.man:
10181 Prepare for 1.11 release. No code changes.
10182 Documentation for pic added (doc/pic.ms).
10184 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
10186 * Version 1.10 released.
10188 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
10190 * afmtodit/afmtodit.pl: Avoid comment on first line.
10192 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
10194 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
10195 * configure.in: Call it.
10197 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
10198 (distfiles): Doesn't depend on config.log or config.cache.
10200 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
10202 * grog/grog.sh: Use print "" rather than print in END rule.
10204 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
10206 * tbl/main.cc (process_data): Don't give error for excess data
10207 entries that are comments.
10209 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
10211 * tbl/main.cc (process_data): Fix case where new for-scope rules
10212 silently change meaning of code.
10214 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
10216 * troff/env.cc (hyphenate): Loop over all consecutive sequences
10217 of non-zero hyphenation codes.
10219 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
10221 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10223 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
10225 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10227 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
10229 * tmac/tmac.andoc: Make it work in compatibility mode.
10231 * refer/token.h (token_info::is_range_sep): New function.
10232 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
10233 * refer/ref.cc (reference::output): More sophisticated check for
10236 * devps/prologue.ps (MANUAL): New procedure.
10237 * grops/ps.cc (main): New -m option.
10238 (usage): Include -m.
10239 (ps_printer::~ps_printer): Implement -m.
10241 * aclocal.m4 (GROFF_G): New macro.
10242 * configure.in: Call it.
10243 * Makefile.in (g): Provided by configure.
10245 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10247 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
10250 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10251 (tmac_m, tmac_s): Deleted.
10252 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10253 tmac_s_prefix): New variables.
10254 (MDEFINES): Change accordingly.
10255 * Makefile.comm (.man.n): Use new TMAC_* variables.
10256 * configure.in (GROFF_TMAC): Call.
10257 * aclocal.m4 (GROFF_TMAC): Define.
10258 * tmac/Makefile.sub (stamp_wrap): New target.
10259 (install_data, uninstall_sub): Handle macro wrapping.
10261 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
10263 * tbl/main.cc (main): Ignore -T option.
10265 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
10267 * devlj4/generate/special.map: Add definition of \(nb.
10269 * tmac/tmac.dvi: Add definition of \(nb.
10271 * troff/dictionary.c (dictionary::dictionary): association::v gets
10272 initialized by association::association.
10274 * tmac/Makefile.sub: Avoid using temporary files when installing.
10276 * troff/env.cc (environment::set_font): Make bad font number a
10279 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10281 * Makefile.in (datadir): Use share rather than lib.
10283 * groff/groff.cc (basename): Rename to xbasename.
10285 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
10287 * Makefile (CCLIBS): Don't use.
10288 * Makefile.ccpg: Likewise.
10290 * acgroff.m4: Rename to...
10291 * aclocal.m4: Modify extensively for autoconf 2.
10292 * configure.in: Likewise.
10293 * Makefile.in: Likewise.
10295 * groff/pipeline.c (const): Declare as empty if __STDC__ not
10297 (xstrsignal): Check for definition of NSIG. Conditionalize
10298 on SYS_SIGLIST_DECLARED. Make return type const.
10300 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
10302 * troff/input.cc (interpolate_macro): Rephrase missing space
10305 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10307 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10308 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10309 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10310 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10311 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10312 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10313 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10314 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10315 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10316 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10317 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10320 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
10322 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10324 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10326 (macro_iterator::macro_iterator): Add additional argument.
10328 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
10330 * troff/div.cc (vertical_size::vertical_size): In place of integer
10331 specifying line spacing use cunits specifying post vertical
10333 (macro_diversion::output, top_level_diversion::output): Likewise.
10334 * troff/div.h: Change declarations accordingly.
10335 * troff/env.cc (pending_output_line): Replace ls field by post_vs
10337 (pending_output_line::pending_output_line,
10338 pending_output_line::output, environment::output,
10339 environment::output_line, environment::output_title,
10340 environment::hyphenate_line): In place of
10341 integer specifying line spacing use cunits specifying post vertical
10343 (environment::environment): Add post_vertical_spacing and
10344 prev_post_vertical_spacing arguments.
10345 (environment::get_post_vertical_spacing): New function.
10346 (environment::total_post_vertical_spacing): New function.
10347 (environment::post_vertical_spacing): New function.
10348 (init_env_requests): Initialize pvs request and .pvs register.
10349 * troff/env.h: Change declarations.
10351 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
10353 * tmac/tmac.pspic: Immediately remove the temporary file.
10355 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
10357 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10358 height is specified.
10360 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
10362 * tbl/table.c (struct vertical rule, class table_entry): Use int
10363 not short for start_row and end_row.
10365 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
10367 * troff/input.cc (trapping_blank_line, blank_line_macro): New
10369 (diverted_space_node::reread, process_input_stack): Call
10370 trapping_blank_line() rather than blank_line().
10371 (init_input_requests): Bind "blm" to blank_line_macro().
10373 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10375 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
10377 * troff/env.cc (environment::possibly_break_line): Require that
10378 width total excluding width of final space node be greater than
10379 the target text length.
10381 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
10383 * troff/node.cc (kern_pair_node::vertical_extent): New function.
10385 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
10387 * troff/node.cc (charinfo_node): New class.
10388 (glyph_node, composite_node): Derive from charinfo_node. Change
10389 member functions accordingly.
10391 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
10393 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10395 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
10397 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10399 * devps/generate/textmap (notsubset): Add.
10401 * tmac/tmac.a4: New file.
10403 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
10405 * pic/main.cc (had_parse_error): New variable.
10406 (do_picture, do_whole_file): Set had_parse_error if yyparse()
10408 (main): Return 1 if had_parse_error is true.
10410 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
10412 * grolj4/lj4.cc (main): Avoid use of strtoul.
10414 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
10416 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10417 iso_8859_1 or $LESSCHARSET is latin1.
10419 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
10421 * hpftodit: New directory.
10422 * Makefile.in (CCPROGDIRS): Add hpftodit.
10423 * devlj4/generate: New directory.
10425 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
10427 * configure.in: Don't use AC_VFORK.
10428 * groff/pipeline.c (run_pipeline): Use fork() always.
10430 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
10432 * grops/ps.cc (main): Use %1 not %s in error message for -w.
10434 * Makefile.in (CCPROGDIRS): Add grolj4.
10435 (DEVDIRS): Add devlj4.
10436 * grolj4, devlj4: New directories.
10437 * tmac/troffrc: Handle lj4.
10438 * tmac/tmac.lj4: New file.
10440 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
10442 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10444 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
10446 * troff/input.cc (do_if_request): At end of second string, switch
10447 environments before getting next token.
10449 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
10451 * devps/psstrip.sed: Split rule that strips whitespace on either
10452 side of delimiters.
10454 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
10456 * troff/node.h (font_family::make_definition): Add return value to
10457 declaration. * troff/symbol.h (symbol::operator==,
10458 symbol::operator!=): Likewise.
10460 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
10462 * groff/groff.cc (main, help, synopsis): Handle -S.
10463 (possible_command::insert_arg): New function.
10465 * tmac/tmac.safer: New file.
10466 * tmac/msafer.man: New file.
10467 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10469 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
10471 * pic/pic.h, pic/main.cc (safer_flag): New variable.
10472 * pic/pic.y (placeless_element): Avoid unsafe operations if
10473 `safer_flag' is set.
10474 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10476 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
10478 * eqn/lex.cc (get_token): Put call to add_context() in block to
10479 work around Sun C++ 4.0 bug.
10481 * include/stringclass.h (operator +): Use ?: instead of `if' to
10482 work around Sun C++ 4.0 bug.
10484 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
10486 * tbl/main.cc (process_format): Accept - as a synonym for the _
10489 * libbib/index.cc (minus_one): Don't declare as const.
10491 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
10493 * troff/input.cc (get_char_for_escape_name): Push back a newline.
10495 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
10497 * troff/input.cc (write_macro_request): New function.
10498 (init_input_requests): Bind write_macro_request to writem.
10500 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
10502 * tmac/tmac.s (@EN): Turn filling back on even if there was no
10505 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10507 * tmac/tmac.s (@TS): Renamed from TS.
10508 (TS): Call LP then TS again.
10509 (cov*ab-init): Alias @TS to TS.
10511 * tmac/tmac.s: Allow QP or RS to initialize.
10513 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
10514 Move initializations of PS and LL here.
10515 (par@init): Don't initialize HY. Avoid changing environment 0.
10516 (par*env-init): Don't all par@reset.
10518 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
10520 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10522 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
10524 * Makefile.in (MDEFINES): Add LDFLAGS.
10525 (LDFLAGS): Add definition line.
10527 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
10529 * troff/input.cc (get_optional_char): Split off error check into...
10530 (check_missing_character): New function.
10531 * troff/token.h: Declare it.
10532 * troff/env.cc (margin_character): Don't call get_optional_char.
10533 Only call tok.next() after making the node.
10535 * include/lib.h (getopt): Make 2nd argument char *const *.
10537 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
10539 * nroff/conftest.sh: Deleted.
10541 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
10543 * pic/make-dos-dist: Deleted.
10545 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
10547 * devps/psstrip.sed: Strip comments before stripping trailing
10550 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
10552 * Version 1.09 released.
10554 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
10556 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10558 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
10560 * libgroff/font.cc (font::load_desc): Fix typo in error message.
10562 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
10564 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10565 about returning without a value.
10567 * troff/charinfo.h (charinfo::get_special_translation): Cast
10568 TRANSLATE_NONE to int.
10570 * refer/token.cc (lookup_token, store_token): Remove bogus loop
10571 test. Fix test so that it works with n unsigned.
10573 * pic/pic.y (defaults_table): Fully bracket initializer.
10574 * pic/lex.cc (lookup_keyword): Likewise.
10575 * eqn/lex.cc (token_table, def_table): Likewise.
10576 * eqn/box.cc (param_table): Likewise.
10577 * troff/input.cc (warning_table): Likewise.
10578 * libgroff/font.cc (table): Likewise.
10579 * grops/ps.cc (ps_printer::special): Likewise.
10580 * grops/psrm.cc (resource_manager::process_file): Likewise.
10581 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10582 * refer/command.cc (command_table): Likewise.
10583 * addftinfo/addftinfo.cc (param_table): Likewise.
10585 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10586 about temp's being unused.
10587 (unused): New function.
10589 * groff/pipeline.cc: Declare c_fatal.
10591 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10594 * libbib/index.cc (index_search_item::load): Prevent compiler
10595 warnings about fd_closer's being unused.
10596 (unused): New function.
10598 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
10600 * troff/input.cc (copy_mode_error): Make `prefix' static.
10603 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10605 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10606 HAVE_CC_OSFCN_H and modify accordingly.
10608 * troff/input.cc (init_charset_table): radicalex overlaps
10611 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10612 udodo!hans@relay.NL.net).
10613 * groff/configure.in: Call it.
10615 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10616 * groff/configure.in: Call it.
10617 * include/lib.h: Conditionalize declaration of pclose.
10619 * troff/div.cc (last_page_number): New global variable.
10620 (top_level_diversion::begin_page): Exit if we just printed the
10622 * troff/div.h (last_page_number): Declare it.
10623 * troff/input.cc (parse_output_page_list): Set last_page_number.
10625 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10626 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10627 tmac/tmac.X: Likewise.
10628 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10629 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10631 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
10633 * tmac/doc-ditroff (hK): Remove groff specific code which
10634 prevented page-breaks between separate manual entries. If this is
10635 the first page, don't set the page number to 1.
10637 * acgroff.m4 (GROFF_POSIX): New macro.
10638 * configure.in: Use it.
10640 * troff/node.cc (class real_output_file,
10641 real_output_file::real_output_file,
10642 real_output_file::~real_output_file): Conditionalize use of
10643 popen/pclose on POPEN_MISSING.
10644 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10645 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10646 (pipe_source): Similarily.
10648 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10650 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10651 presence of declarations by trying to compile example with
10652 conflicting declarations. (gcc only gives a warning for missing
10655 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
10657 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10658 (from Ulrich Lauther).
10660 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
10662 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10664 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
10666 * indxbib/indxbib.cc (write_hash_table): Add code for case where
10667 pointers and ints have different sizes.
10669 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
10671 * tmac/tmac.s (par*env-init): Call par@reset.
10673 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
10675 * tmac/tmac.s (@IP): Switch to a new environment when diverting
10677 (par*push-tag-env, par*pop-tag-env): New macros.
10679 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
10681 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10682 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
10684 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10685 comment. Include <time.h>.
10687 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
10689 * grops/ps.cc (is_small_h, is_small_v): Deleted.
10690 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10693 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
10695 * troff/input.cc (read_request): Only print a prompt if reading
10696 from the terminal. Also clearerr on EOF if reading from the
10697 terminal. Declare isatty.
10699 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
10701 * refer/label.y: Rename map_t to map_func and extractor_t to
10704 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
10706 * include/assert.h: Don't use volatile.
10707 * libgroff/assert.cc: Likewise.
10709 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
10711 * troff/input.cc (abort_request): Look at character in tok before
10712 calling get_copy().
10714 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
10716 * troff/troff.h (NO_RETURN): Deleted.
10717 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
10718 * troff/input.cc (exit_troff): Likewise
10720 * Makefile.in: Remove `Making ...' messages since GNU make now
10723 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10725 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
10727 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10728 to constant 1 inch.
10730 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
10732 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10734 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
10736 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10737 MARK_REG if there was no left delimiter.
10739 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
10741 * pic/troff.cc (troff_output::text): Set line thickness to
10742 relative before outputting text.
10744 * tmac/tmac.e (@k): Don't zero ?T.
10747 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
10749 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10751 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
10753 * troff/input.cc (decode_args): Warn about unquoted tabs (from
10756 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
10758 * troff/input.cc (ignoring): New variable.
10759 (ignore): Set ignoring during call to do_define_macro.
10760 (do_define_macro): Clear ignoring before interpolating terminating
10762 (copy_mode_error): New function.
10763 (get_char_for_escape_name, read_long_escape_name,
10764 interpolate_arg): Use copy_mode_error.
10765 (warning_table): Add WARN_IG.
10766 * troff/troff.h (WARN_IG): Declare.
10767 (WARN_TOTAL): Change accordingly.
10769 * groff/pipeline.c (strsignal): Rename to xstrsignal.
10770 * groff/groff.cc (strsignal): Delete declaration.
10772 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
10774 * troff/div.cc (page_offset): Use 'm' as default scaling.
10776 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
10778 * nroff/nroff.sh: Ignore -u.
10780 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
10782 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10784 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
10786 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10788 (B2): With -Tascii, leave additional vertical space before
10789 and after. Ensure that the left and right indent is restored to
10790 what it was even if the point size changes. Don't call
10791 par@finish. Change the indent, line length and title length
10792 directly. With -Tascii, make the width of the box 1n less.
10793 (B1): Remember 1n at the current point size. Don't call
10794 par@reset. Change the indent, line length and title length
10795 directly. Ensure that the temporary indent is preserved.
10796 (par*box-mark-top): Turn off no spacing mode.
10798 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
10800 * Makefile.in (dist): Use .gz suffix.
10802 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
10804 * troff/input.cc (main): Add return 0.
10805 * pic/main.cc (main): Use return instead of exit.
10806 * tbl/main.cc (main): Likewise.
10807 * eqn/main.cc (main): Likewise.
10808 * grops/ps.cc (main): Likewise.
10809 * grotty/tty.cc (main): Likewise.
10810 * groff/groff.cc (main): Likewise.
10811 * grodvi/dvi.cc (main): Likewise.
10812 * refer/refer.cc (main): Likewise.
10813 * indxbib/indxbib.cc (main): Likewise.
10814 * lkbib/lkbib.cc (main): Likewise.
10815 * soelim/soelim.cc (main): Likewise.
10816 * addftinfo/addftinfo.cc (main): Likewise.
10817 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10818 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10820 * troff/token.h (process_input_stack): Don't declare as static.
10821 * troff/input.cc: Likewise.
10823 * troff/node.c (invalidate_fontno): Make it a static member of
10824 class font_family. Change callers.
10825 * troff/node.c: Change declaration.
10827 * tbl/main.cc (struct input_entry_format): Add explicit public
10829 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10830 struct double_hline_stuff): Likewise.
10831 * tbl/table.h (struct entry_format): Likewise.
10832 * pic/object.h (struct saved_state): Likewise.
10834 * include/stringclass.h: Add forward declarations of friend
10835 functions that are later declared as inline. Don't include inline
10836 specifier in friend declaration.
10838 * libgroff/lib.h: Declare popen and pclose.
10839 * acgroff.m4 (GROFF_POPEN): New macro.
10840 * configure.in: Call it.
10842 * include/lib.h (PI): New constant. Undef first if necessary.
10843 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10844 * grops/ps.cc (degrees, radians): Likewise.
10845 * libgroff/font.cc (font::get_skew): Likewise.
10847 * grops/ps.cc (is_ascii): New function.
10848 (ps_output::put_string): Use is_ascii. Use csprint rather than
10850 (ps_printer::define_encoding): Use csspace.
10851 * libgroff/strtol.c (ISASCII): New macro.
10852 (strtol): Cast arguments to is*() and tolower() to unsigned char.
10853 Use ISASCII rather than isascii.
10854 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10855 * libgroff/cset.cc: Likewise.
10856 * libdriver/input.cc: Include cset.h.
10857 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10860 * refer/refer.cc (main): Use %ld rather than %d for longs.
10862 * libbib/index.cc (index_search_item_iterator::get_tag): Use
10865 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10867 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
10869 * troff/input.cc (hyphenation_code): Skip white space between
10872 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
10874 * tbl/table.h (table::entry_list_tailp): New member.
10875 (table::table): Initialize it.
10876 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10879 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
10881 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10882 with negative horizontal positions. Remove casts of glyph::hpos to
10884 (USHRT_MAX): Delete definition.
10885 (SHRT_MAX, SHRT_MIN): New definitions.
10886 (glyph::hpos): Change type to short.
10887 (tty_printer::end_page): Output multiple backspaces if necessary.
10888 Remove casts of glyph::hpos to int.
10890 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
10892 * tmac/tmac.s (@RT): New definition.
10894 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
10896 * refer/refer.cc (do_file): Make sure current_filename is set when
10899 * pic/common.cc (common_output::dot_line): Handle zero length
10902 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
10904 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
10905 (par@init): Initialize \n[HY].
10907 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
10909 * troff/dictionary.cc (dictionary::remove): Continue when
10912 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
10914 * Makefile.com (.y.cc): Avoid ending up with two versions of
10917 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
10919 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
10920 (\(,C): Likewise. Also fix typo.
10922 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
10924 * lib.h: Delete extraneous semi-colon.
10926 * Add pso request: `so' from a pipe.
10927 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
10928 (file_iterator::close): New function.
10929 (file_iterator::~file_iterator, file_iterator::next_file): Use
10930 file_iterator::close.
10931 (file_iterator::backtrace): Say `process' rather than `file' when
10932 the stream is popened.
10933 (pipe_source): New function.
10934 (init_input_requests): Bind ".pso" to pipe_source.
10936 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
10938 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
10940 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
10941 digits in lower case.
10943 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
10945 * Version 1.08 released.
10947 * Makefile.in (dist): Insert || true after ln -s commands that
10950 * mm: Update to mm 1.16.
10952 * acgroff.m4 (GROFF_CSH_HACK): New macro.
10953 * configure.in: Call GROFF_CSH_HACK. Substitute for
10955 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
10957 * nroff/Makefile.sub (nroff): New target.
10958 (install_data): Install nroff.
10959 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
10960 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
10962 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
10964 * eqn/Makefile.sub (neqn): Add chmod +x.
10966 * grog/Makefile.sub (grog): Remove spurious semi-colon.
10968 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
10970 * troff/input.cc (string_iterator::string_iterator()): Initialize
10973 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
10975 * troff/div.cc (macro_diversion::space,
10976 top_level_diversion::space): Don't set high_water_mark.
10977 (macro_diversion::output, top_level_diversion::output): Don't
10978 include post line space in high water mark.
10980 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
10982 * eqn/eqn.y: Don't define YYDEBUG.
10983 * pic/pic.y: Likewise.
10985 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
10987 * tmac/tmac.e ([3): Add space after comma following editors.
10988 Change double spaces to single spaces.
10989 ([4): Change double spaces to single spaces.
10991 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
10992 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
10993 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
10994 after %!PS-Adobe- (for Newsprint).
10996 * troff/div.cc (top_level_diversion::begin_page): When
10997 before_first_page is 1, set page_number to 1.
10999 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
11001 * eqn/box.cc (box::top_level): Protect equation with \&.
11003 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
11005 * groff/groff.cc (possible_command::set_name): Delete old name.
11007 * groff/groff.cc (possible_command::~possible_command): Use
11010 * troff/node.cc (troff_output_file::begun_page): New member.
11011 (troff_output_file::troff_output_file): Initialize it.
11012 (troff_output_file::really_begin_page): Only output V command if a
11013 page has been begun.
11015 * pic/pic.y (placeless_element): Delete argument to PRINT after
11018 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
11020 * Make wrapman work.
11021 * troff/div.h (class top_level_diversion): Replace
11022 first_page_begun by before_first_page (with opposite sense).
11023 * Change first_page_begun to before_first_page inverting sense.
11024 * troff/div.cc (class nl_reg): New class.
11025 (init_div_requests): Use class nl_reg for \n(nl.
11026 (top_level_diversion::begin_page): Don't call
11027 output_file::begin_page if before_first_page is 2;
11028 reset before_first_page afterwards. If have_next_page_number is
11029 false, then always increment page_number.
11030 * tmac/tmac.an: Set traps within TH rather than at the top-level.
11031 Restore compatibility mode after loading, and then disable
11032 compatibility mode in TH.
11034 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
11036 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11038 * troff/node.h (output_file::trailer): Declare.
11039 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11040 * troff/node.cc (output_file::trailer): New function.
11041 (troff_output_file::~troff_output_file): Move most code into...
11042 (troff_output_file::trailer): New function.
11043 (class troff_output_file): Delete page_length member. Declare
11045 (troff_output_file::really_begin_page): Use current page length
11046 for final V command.
11048 * tbl/main.cc (struct options): New decimal_point_char member.
11049 (options::options): Initialize this.
11050 (process_options): Implement decimalpoint option.
11051 (process_data): Pass decimal_point_char option to table::table.
11052 * tbl/table.h (class table): New decimal_point_char member.
11053 (table::table): Add additional argument.
11054 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11055 second argument specifying decimal point character. Use this
11057 (table::table): Initialize decimal_point_char.
11058 (table::add_entry): Change call to find_dot.
11060 * troff/input.cc (get_copy, token::next): Implement \V.
11061 (interpolate_environment_variable): New function.
11063 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
11065 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11066 * pic/pic.y: Likewise.
11068 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11070 * refer/ref.cc (reference::insert_field, reference::delete_field):
11072 * troff/number.cc (parse_term): Likewise.
11074 * acgroff.m4 (GROFF_PROG_YACC): New macro.
11075 * configure.in: Use GROFF_PROG_YACC.
11077 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11079 * Makefile.in (OPTIMIZE): New define.
11080 (DEBUG): Empty by default.
11081 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11083 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11084 (GROFF_ARRAY_DELETE): Likewise.
11085 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11087 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11089 * devps/psstrip.sed: Use different delimiter on last line (so that
11090 it works with BSD 4.4 sed.)
11092 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
11094 * devps/psstrip.sed: Delete comments.
11096 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11097 optind, opterr, optarg.
11098 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11101 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
11103 * Makefile.in (check): Dummy target.
11105 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
11107 * Version 1.07 released.
11109 * Integrate mm 1.11.
11111 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11112 where start_col was meant.
11114 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
11116 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11118 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
11120 * troff/input.cc (token::next): Make \z\o'...' and similar things
11123 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
11125 (environment): Add margin_character_flags member.
11126 * env.cc (environment::environment(symbol),
11127 environment::environment(const environment *): Initialize
11128 margin_character_flags.
11129 (margin_character): Rewrite.
11130 (environment::output_line): Add a margin character if
11131 margin_character_flags is non-zero. Turn off the
11132 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
11133 zero, use margin_character_node without copying and then set
11134 margin_character_node to 0.
11136 * devps/DESC.in: Change minimum size to 1000.
11138 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
11140 * troff/symbol.h (symbol::hash): Change return type to unsigned
11142 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
11145 * test-groff: Use -r rather than -x.
11147 * grops/psfig.diff: Include in distribution again.
11149 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
11151 * Makefile.in (dist): Use gzip.
11153 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
11155 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
11156 unistd.h as well as in stdlib.h.
11157 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
11158 defined; otherwise include <sys/types.h> and <unistd.h> if
11159 UNISTD_H_DECLARES_GETOPT is defined.
11161 * configure.in: use builtin(include, ... rather than include(...
11162 * configure: Regenerate with autoconf 1.3.
11164 * libdriver/print.cc (printer::adjust_arc_center): Use new
11165 algorithm suggested by Andy Fyfe.
11167 * libdriver/printer.cc (printer::adjust_arc_center): New function.
11168 * include/printer.h: Declare this.
11169 * grops/ps.cc (ps_printer::draw): Use it.
11170 * grodvi/dvi.cc (dvi_printer::draw): Use it.
11172 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
11174 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
11176 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
11178 * eqn/main.cc (main): Handle "eqn -".
11180 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
11182 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
11184 * mm: Integrate version 1.08.
11186 * pic/troff.cc (troff_output::finish_picture): Set
11187 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
11188 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
11189 if it's not defined. Check whether the register is non-zero rather
11190 than whether it's not defined.
11191 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
11193 * indxbib/indxbib.cc: Move all signal handling into...
11194 * indxbib/signal.c: New file.
11195 * configure.in: Call AC_RETSIGTYPE.
11197 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
11198 * configure.in: Call GROFF_STRUCT_EXCEPTION.
11199 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
11201 * troff/input.cc (token::token, token::operator=): Work round SGI
11203 * pic/object.cc (position::position): Likewise.
11205 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
11207 * pic/pic.h: Move declaration of hypot().
11209 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
11211 * pic/pic.h: Declare hypot().
11213 * pic/pic.h: Define M_PI if necessary.
11215 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
11217 * tmac/tmac.e (re): Add alternative version that doesn't use groff
11220 * devps/prologue.ps (RE): Handle the possibility that the old font
11221 doesn't have a FontName entry.
11223 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
11225 * tmac/tmac.e (fam): Redefine to set family in environment 2.
11226 (@C): Use @fam not fam.
11228 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
11230 * lookbib/lookbib.cc (main): Change type of start to const char *.
11231 * lkbib/lkbib.cc (main): Likewise.
11233 * eqn/lex.cc (definition::definition): Don't use member
11234 initializer syntax for members of anonymous unions.
11236 * troff/input.cc (input_stack::backtrace): Change type of to const
11239 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
11241 * include/stringclass.h (class string): Declare inline friend
11242 functions as inline in class declaration.
11243 * troff/hvunits.h (class hunits, class vunits): Likewise.
11244 * include/refid.h (class reference_id): Likewise
11245 * troff/troff.h (points_to_units(units), scale(units, double)):
11246 Delete declarations.
11247 * libdriver/input.cc (get_char): Delete declaration.
11248 * include/lib.h: Change 2nd argument of getopt from const char **
11250 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11251 char **' before assigning to a `const char **'.
11252 * tbl/table.cc: Delete extra declarations of prints().
11254 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
11256 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11257 char **' before assigning to a `const char **'.
11259 * libgroff/errarg.cc (errarg::errarg): Don't use member
11260 initializer syntax for members of anonymous unions.
11262 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
11264 * mm: Integrate version 1.07.
11266 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
11268 * troff/input.c (translate2): Rename to
11269 (translate_no_transparent).
11270 (init_input_requests): Rename tr2 to trnt.
11272 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
11274 * troff/charinfo.h (class charinfo): Add transparent_translate field.
11275 (charinfo::set_translation, charinfo::set_special_translation):
11276 Add second argument that specifies value for
11277 transparent_translate.
11278 (charinfo::get_translation, charinfo::get_special_translation):
11279 Add optional second argument that specifies whether translation is
11280 being used for transparent throughput.
11281 * troff/input.cc (charinfo::set_translation,
11282 charinfo::set_special_translation): Handle second argument.
11283 (charinfo::charinfo): Initialize transparent_translate.
11284 (translate): Split main part off into
11285 (do_translate): New function. Pass argument saying whether
11286 translation applies to transparent throughput.
11287 (translate2): New request.
11288 (init_input_requests): Bind translate2 to `tr2'.
11290 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
11292 * tbl/table.h (class table): Add `nokeep' flag.
11293 * tbl/main.cc (process_options): Handle `nokeep' option.
11294 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11295 table::do_bottom): Don't output keep/release macro definitions or
11296 calls when `nokeep' option has been specified.
11298 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
11300 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11302 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
11304 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11305 block_entry::divert, alphabetic_block_entry::divert): Add extra
11306 argument giving column separation.
11307 (table::compute_widths): Pass column separation to
11308 table_entry::divert().
11309 (block_entry::do_divert): If an entry spans multiple columns and a
11310 minimumum width has been specified for each column, then set the
11311 line length to the sum of the widths (plus possibly the column
11314 * troff/input.cc (set_escape_char): Don't set the escape_char
11315 until after calling has_arg().
11317 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
11319 * tbl/table.cc (table::do_top): Add missing \s0 for double box
11322 * tbl/table.cc (table::print_double_hline): Avoid extra new line
11323 in case where r > nrows - 1.
11325 * tbl/table.cc (BODY_HEIGHT): Deleted.
11326 (LINE_SEP): New definition.
11327 (table::print_single_hline, table::print_double_hline,
11328 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11329 table::do_row, table::do_top): Use LINE_SEP space before a line
11330 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11332 * tbl/table.cc (text_entry::print_contents): New function.
11333 (text_string_name, right_text_string_name): Deleted.
11334 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11335 (simple_text_entry::do_width, numeric_text_entry::do_width,
11336 alphabetic_text_entry::do_width): Don't store the contents of the
11338 (left_text_entry::simple_print, right_text_entry::simple_print,
11339 center_text_entry::simple_print,
11340 alphabetic_text_entry::simple_print,
11341 numeric_text_entry::simple_print): Print the entry directly
11342 instead of using the stored string.
11344 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
11346 * devps/Makefile: Strip PostScript files.
11347 * devps/prologue: Rename to...
11348 * devps/prologue.ps.
11349 * devps/psstrip.sed: New file.
11350 * devps/download: Use .pfa rather than .ps for installed versions
11353 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
11355 * troff/env.cc (input_trap): Give a warning if the argument is out
11358 * troff/env.cc (adjust): Treat negative argument as missing. Round
11359 argument > 5 down to 5.
11361 * troff/env.cc (center, right_justify): Make negative argument zero.
11363 * troff/div.cc (page_offset, vertical_position_traps): Treat
11364 invalid argument as missing.
11365 * troff/env.cc (line_spacing, line_length, title_length, indent,
11366 underline, hyphen_line_max_request, control_char,
11367 no_break_control_char, widow_control_request, adjust, input_trap,
11368 point_size): Likewise.
11369 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11370 constant_space): Likewise.
11371 * troff/input.cc (compatible, shift, warn_request,
11372 set_escape_char): Likewise.
11374 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11375 * tbl/table.cc (table::table): Likewise.
11377 * Makefile.dev (install_dev): depends on $(DEVFILES).
11379 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
11381 * devX75, devX75-12, devX100, devX100-12: New directories.
11382 * Makefile.in: Add these to DEVDIRS.
11384 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11385 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11386 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11387 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11389 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11390 (uninstall): New target.
11391 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11392 uninstall_prog, uninstall_dev): New targets.
11394 * troff/div.cc (return_request): Treat an invalid argument as
11397 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
11399 * tmac/tmac.e ((f): Set up the environment even when there's a
11400 current diversion. Transperently throughput a call to @N.
11403 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
11405 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11406 up to vertical resolution.
11408 * tbl/table.cc (table::do_row): Change row number after printing
11411 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11413 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
11415 * Rename CHANGES to NEWS.
11417 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
11419 * libgroff/new.cc (operator new): Avoid calling malloc(0).
11421 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
11423 * man.ultrix: Removed.
11425 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
11427 * Makefile.comm (extraclean): Delete files whose names begin with
11430 * pic/troff.cc (troff_output::text): Fix typo in implementation of
11433 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
11435 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11436 * troff/div.cc (page_length, need_space, space_request): Treat
11437 invalid optional argument as missing.
11438 * troff/env.cc (number_lines): If the first argument is present
11439 but not a number, turn on line numbering, don't change the next
11440 line number and parse the remaining arguments.
11442 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11444 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
11446 * eqn/box.h: Change declaration accordingly.
11447 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
11448 the specified size was bad but don't give an error. Check for
11450 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11451 * eqn/lex (do_size): Likewise.
11453 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
11455 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11456 compatible headers.
11458 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
11460 * tbl/table.cc (table::init_output): Improve error message when
11461 table won't fit on one page.
11463 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
11465 * pic/troff.cc (troff_output::start_picture): Generate line
11466 containing a horizontal motion equal to the width of the picture.
11468 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11469 using GROFF_COMMAND_PREFIX environment variable.
11471 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
11473 * mdate.sh: Use $NF rather than $(NF).
11475 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
11477 * pic/main.cc (main): Use %1 not %c in argument to warning.
11479 * eqn/main.cc (main): Output code to check that geqn was given the
11482 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
11484 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11485 `ln -s ../Makefile .; make; rm -f Makefile'.
11487 * troff/hyphen: Rename to...
11489 * troff/input.cc (main): Delete -H option. Don't call
11490 read_hyphen_file().
11491 * troff/env.cc: Include searchpath.h and macropath.h.
11492 (exception_dictionary): Deleted.
11494 (read_hyphen_file): Deleted.
11495 (hyphenation_language): New struct.
11496 (class trie, class hyphen_trie): Move declarations up.
11497 (trie_node::~trie_node): Deleted.
11498 (trie::delete_trie_node): New function.
11499 (trie::do_delete): New pure virtual function.
11500 (hyphen_trie::do_delete): New function.
11501 (trie::~trie): New function.
11502 (hyphen_trie::~hyphen_trie): New function.
11503 (trie::clear): No need to chcek that tp is not 0.
11504 (current_language, language_dictionary): New variables.
11505 (hyphen_word): Give an error if no current language. Use
11506 exceptions dictionary in current language.
11507 (hyphen_trie::read_patterns_file): Find file using macro_path.
11508 Allow comments (starting with %) in patterns file. Don't make it
11509 a fatal error if the file can't be found.
11510 (hyphenate): Return if no current language. Get the exceptions
11511 dictionary and the hyphenation patterns from the current language.
11512 (set_hyphenation_language): New variable.
11513 (hyphenation_patterns_file): New function.
11514 (hyphenation_language_reg): New class.
11515 (hyphenation_language_reg::get_string): New function.
11516 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11517 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
11519 * groff/groff.cc (main, help, synopsis): Delete -H option.
11520 * include/Makefile.sub: Don't define HYPHENFILE.
11521 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11522 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11523 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11524 hyphenation patterns.
11526 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
11528 * eqn/neqn.sh: New file.
11529 * eqn/Makefile.sub: Handle neqn.sh.
11531 * eqn/eqn.h: Declare `nroff' variable.
11532 * eqn/box.cc (param_table): Add `nroff' param.
11533 (nroff): Define it.
11534 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11536 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11538 * troff/troff.h (WARN_FONT): New warning.
11539 (WARN_TOTAL): Change accordingly.
11540 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11541 (warning_table): Add WARN_FONT.
11542 * troff/node.cc (mount_font_no_translate): Pass argument to
11543 font::load_font. If this is non-zero, give a warning.
11544 Don't give an error message when accessing a font that has already
11545 been found to be invalid.
11546 * include/font.h (font::load, font::load_font): Add additional
11547 optional argument which suppresses error message if the font is
11549 * libgroff/font.cc (font::load_font): Handle additional argument.
11550 (font::load): Add additional argument. If this is non-null, set it
11551 to 1 and don't give error message.
11553 * include/printer.h (printer::end_page): Add argument giving
11555 * libdriver/input.cc (do_file): Pass this.
11556 * grops/ps.cc (ps_printer::end_page): Add argument.
11557 * grodvi/dvi.cc (dvi_printer::end_page,
11558 draw_dvi_printer::end_page): Add argument.
11559 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11560 columns_per_page members. New member nlines.
11561 (DEFAULT_LINES_PER_PAGE): Deleted.
11562 (tty_printer::tty_printer): Don't compute lines_per_page from
11563 font::paperlength. Don't compute columns_per_page from
11565 (tty_printer::add_char): Don't check horizontal position against
11566 columns_per_page. Grow glyphs vector if neccessary.
11567 (tty_printer::end_page): Add argument giving page_length in units.
11568 Discard lines past end of page.
11570 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
11572 * tmac/tmac.tty-char: Fix definition of \(/l.
11574 * tmac/tmac.X: Define \(en.
11576 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
11578 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11579 lpq, then use lp rather than lpr.
11581 * tmac/tmac.s (par@reset): Don't call `ad'.
11582 (par*env-init): Call `ad'.
11584 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
11586 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11589 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11590 * indxbib/indxbib.cc: Likewise.
11592 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
11594 * libgroff/putenv.c: New file.
11595 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11596 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11597 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11598 stdlib.h with AC_HAVE_HEADERS.
11600 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
11602 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11605 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
11607 * eqn/box.cc (gsize): Make it an int.
11608 (set_gsize): Parse argument handling increment or decrement.
11609 (box::top_level): Convert gsize to a string.
11611 * troff/input.cc (exit_troff): Make buf unsigned char [].
11612 Call to make_temp_iterator casts buf to char*.
11614 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11616 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11617 * Makefile.cpg (depend.temp): Likewise.
11619 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11621 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11623 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
11625 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11627 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
11629 * Version 1.06 released.
11631 * Integrate mm 1.04.
11633 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
11635 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11637 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
11639 * afmtodit/afmtodit.pl: Add -n option that disables generation of
11641 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11642 afmtodit. Regenerate.
11644 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11645 @f back past the current position.
11647 * tmac/tmac.e: Change calls to @R so that comments are not part of
11650 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
11652 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11654 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11655 check that we can link a call to a function declared in <stdio.h>.
11656 (GROFF_UNISTD_H): New macro.
11657 * configure.in: Call it.
11658 * Makefile.in: Document it.
11659 * include/posix.h: New file.
11660 * troff/troff.h: Don't include <osfcn.h>
11661 * troff/input.cc: Include posix.h.
11662 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11664 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11665 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11667 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11668 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11669 * libbib/search.cc (O_RDONLY): Delete definition.
11670 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11671 Don't include <osfcn.h>.
11673 * acgroff.m4 (GROFF_TIME_T): New macro.
11674 * configure.in: Call it.
11675 * Makefile.in: Document it.
11677 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11678 * configure.in: Call it.
11679 * Makefile.in: Document -DTRADITIONAL_CPP.
11680 * include/ptable.h: Don't include generic.h.
11681 (name2): Define it.
11683 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11684 Afterwards remove [T1 and [T2.
11685 (ref*spec!0, ref*spec!2): Use T1 rather than T.
11686 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11687 (ref*add-T2): Renamed from ref*add-T.
11688 (ref*add-T1): New macro.
11690 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
11692 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11694 * libbib/index.cc: Include <fcntl.h>.
11695 (O_RDONLY): Define if necessary.
11696 (make_index_search_item, index_search_item_iterator::get_tag,
11697 index_search_item::check_files): Use O_RDONLY.
11698 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11699 (O_RDONLY): Define if necessary.
11700 (search_list::add_file): Use O_RDONLY.
11701 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11703 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11706 * libbib/index.cc (S_ISREG): Define it if necessary.
11707 (index_search_item::load): Use S_ISREG.
11709 * include/driver.h: Include <errno.h>.
11711 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
11713 * eqn/box.cc (body_height): Increase default value to 85.
11714 (body_depth): Increase default value to 35.
11716 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
11718 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11719 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11720 protected from expansion with \E.
11722 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11724 * Makefile (Makefile): New target.
11726 * Makefile.sub (configure, distfiles): New targets.
11728 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11731 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
11733 * eqn/box.cc (param_table): Add body_height and body_depth.
11735 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11737 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
11739 * psbb/Makefile.sub: Don't link with libgroff.a.
11741 * acgroff.m4 (GROFF_PUTENV): New macro.
11742 * configure.in: Call GROFF_PUTENV.
11743 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11744 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11747 * troff/env.cc (distribute_space): Rename force_forward argument
11748 to force_reverse. Reverse the list if force_reverse is true.
11750 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
11752 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11754 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11755 height or depth to be negative. Guard against SUP_RAISE quantity
11758 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
11760 * devps/generate/textmap: Add `an' (arrowhorizex).
11761 * tmac/tmac.ps: \(an overlaps horizontally.
11762 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11764 * devps/symbolchars: Add arrowverttp, arrowvertbt.
11765 * devps/textmap: Add arrowvertex.
11766 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11767 updownarrow delimiters.
11768 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11770 * tbl/table.cc (simple_entry::position_vertically,
11771 block_entry::position_vertically): For a centered entry, perform
11772 the motion in two stages.
11774 * refer/refer.cc (split_punct): Don't call lookup_token if there
11777 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
11779 * troff/input.cc (token::next): Delete token_node after copying
11782 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11785 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11787 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11789 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
11791 * grops/ps.cc (usage): -b option takes an argument.
11793 * devps/prologue (PLG): New procedure.
11794 * grops/ps.cc (main, usage): New -g option.
11795 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
11798 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
11800 * include/cset.h: Include <limits.h> if we have it.
11802 * libgroff/illegal.cc: New file.
11803 * include/lib.h (illegal_input_char): Use table.
11804 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11805 * pic/lex.cc (ARG1): Renumber to 14.
11806 * eqn/lex.cc (ARG1): Likewise.
11808 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11809 (eg 1.05.90) correctly.
11811 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
11813 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11814 Rename $r and $R registers to $v and $V.
11815 ($r, $R): Initialize to 0.
11816 (@v, @V): New macros.
11820 * troff/input.cc (main, usage): Add -R option that says not to
11822 * eqn/main.cc (main, usage): Rename -n to -R.
11824 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
11826 * devps/DESC.in: Leave font positions 5-9 blank.
11827 * devdvi/DESC.in: Likewise.
11829 * grog/grog.pl: Handle `.PS <file' correctly.
11831 * troff/input.cc (input_stack::push): Improve error message when
11832 input stack limit exceeded.
11834 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
11836 * refer/refer.cc (main): Fix typo in handling of `a' option.
11838 * refer/refer.cc (do_bib): In state START after a newline remain
11841 * groff/groff.sh: Deleted.
11842 * groff/Makefile.sub: Delete handling of groff.sh.
11844 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11845 to determine whether to use \X'ps:...'.
11846 * tmac/troffrc: Set 0p register to 0.
11847 * tmac/tmac.ps: Set 0p register to 1.
11849 * groff/groff.cc: Support -X option. Give warning for -TXps and
11850 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11851 * tmac/troffrc: Support -r.X=1.
11853 * pic/troff.cc (troff_output::dot): Don't test
11854 zero_length_line_flag.
11856 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
11858 * include/lib.h: Declare getopt() and friends unless
11859 STDLIB_H_DECLARES_GETOPT is defined.
11861 * doc/chars.tr: Delete.
11862 * man/groff_char.man: New file.
11864 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
11866 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11867 user has changed register format.
11869 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
11871 * groff/groff.cc: Get rid of device_table. Get postprocessor from
11872 `postpro' command in DESC file. Get spooler command from `print'
11873 command in DESC file. Execute spooler command with /bin/sh.
11875 * groff/groff.cc: Split Unix-specific parts into...
11876 * groff/pipeline.c: New file.
11879 * COPYING: New file.
11880 * all files: Update copyright notices.
11882 * Rearrange files. Redo Makefiles. Use autoconf.
11884 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
11886 * troff/input.c (charinfo_to_node_list): Interpret character
11887 definition with escape_char of `\'.
11889 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
11891 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11892 Define INT_DIGITS as big enough for 64-bit integer.
11893 * lib/strtol.c: Don't include lib.h.
11894 * lib/lib.h: Delete ifdef __cplusplus stuff.
11896 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
11898 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
11899 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
11900 get DESC from current directory.
11902 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
11904 * tbl/main.c (main): Always reset the line number when reading
11907 * tbl/table.c (table::print_single_hline, table::print_double_hline,
11908 table::define_bottom_macro, table::do_row, table::do_top): Round
11909 vertical spacing up to vertical resolution.
11911 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
11913 * ps/ps.h (enum resource_type): Avoid comma at end of
11915 * dvi/dvi.c (class dvi_printer): Likewise.
11916 * dvi/tfmtodit.c (gf::load): Likewise.
11917 * refer/label.y (struct expression): Likewise.
11918 * refer/refer.c (class label_processing_state): Likewise.
11919 * refer/indxbib.c (do_file): Likewise.
11920 * troff/troff.c (enum warning_type): Likewise.
11921 * tbl/main.c (process_data): Likewise.
11922 * troff/charinfo.h (class charinfo):
11924 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
11926 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
11928 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
11930 * groff.c: Move to new groff subdirectory.
11931 * groff/Makefile: New file.
11932 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
11934 * man/mdate.sh: Use ls -L if supported.
11936 * Consolidate all header files produced by gendef into lib/defs.h.
11937 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
11938 Don't include path.h.
11939 * lib/Makefile (path.h): Don't generate.
11940 * troff/input.c: Include defs.h. Don't include config.h.
11941 * troff/Makefile (config.h): Don't generate.
11942 * refer/index.h: Don't include suffix.h.
11943 * refer/index.c: Include defs.h.
11944 * refer/indxbib.c: Include defs.h.
11945 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
11947 * refer/Makefile (suffix.h, path.h): Don't generate.
11948 * groff.c: Don't include config.h. Include defs.h.
11949 * Makefile (config.h): Don't generate.
11950 (lib/defs.h): Generate.
11951 (topclean): Remove lib/defs.h.
11953 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
11955 * lib/malloc.c, lib/getpagesize.h: Deleted.
11956 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
11958 * lib/Makefile: Delete malloc-related stuff.
11959 * lib/new.c: Workaround COOKIE_BUG if necessary.
11961 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
11962 needed header files directly.
11963 * refer/refer.h: Omit definition of DEFAULT_INDEX.
11964 * Makefile: Include definition of DEFAULT_INDEX in path.h.
11966 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
11968 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
11970 * lib/font (font::load_desc, font::load): Don't split argument of
11972 (font::handle_unknown_font_command): Change type.
11973 * ps/ps.c (ps_font::handle_unknown_font_command,
11974 handle_unknown_desc_command): Change type.
11975 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
11977 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
11979 * lib/font.h (font::handle_unknown_font_command): Add file and
11981 * lib/font.c (font::handle_unknown_font_command):
11982 * ps/ps.c (ps_font::handle_unknown_font_command):
11983 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
11984 lineno arguments. Use _with_file_and_line functions for error
11987 * lib/fontfile.c (font::unknown_desc_command_handler): New static
11989 * lib/font.c (font::set_unknown_desc_command_handler): New
11991 (font::load_desc): For unknown commands, call
11992 unknown_desc_command_handler if not null.
11993 * lib/font.h (class font): Declare them.
11994 (FONT_COMMAND_HANDLER): New typedef.
11995 * ps/ps.c (handle_unknown_desc_command): New function.
11996 (main): Set bflag if we had a -b option. Call
11997 font::set_unknown_desc_command_handler.
11998 (broken.h): Don't include.
11999 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
12001 * ps/devps/Makefile: Add `broken' command to DESC file using
12002 BROKEN_SPOOLER_FLAGS.
12004 * macros/tmac.e ([, ]): Add as synonyms for { and }.
12006 * macros/tmac.e ($p): Only exdent if \$3 > 0.
12008 * macros/tmac.e (@R, @S): New macros.
12009 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12010 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12011 Declare $H, $[0-9], .. macros with @S.
12012 Declare |0, |1, |2, |3 strings with @S.
12014 * macros/tmac.e (@S): Rename to @U.
12016 * macros/tmac.e (@z): Define @b and bp as empty instead of
12019 * macros/tmac.e (@m): Deleted.
12020 (@h): Don't call @m.
12021 (@z): Don't set @m trap.
12023 * macros/tmac.e ($h, $f): Define |z as empty string.
12025 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12028 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12030 ()f): Likewise for * register.
12032 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12033 argument is missing, don't change $R. Call sr with three
12034 arguments when initializing.
12036 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
12038 * macros/tmac.e (sr): New macro.
12039 Initialize $r and $R using sr.
12041 * macros/tmac.e (,): Delete \*(#[.
12043 * troff/env.c (set_tabs): Read the tab type even if the position
12044 is bad. Allow the position of the first tab stop to be negative.
12046 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
12048 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12050 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12051 rather than -DPATHCONF_MISSING.
12052 * Makefile: Get rid of PATHCONF_MISSING.
12054 * refer/map.c: New file.
12055 * refer/index.c: Interface to mmap through map.c. Rename map_size
12057 * refer/Makefile: Handle map.c.
12058 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12060 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
12062 * Makefile: RANLIB should be `true' if there is no ranlib.
12063 * lib/Makefile (libgroff.a): Simplify.
12064 * driver/Makefile (libdriver.a): Simplify.
12066 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12067 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
12070 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
12072 * troff/env.c (compare_ranges): Declare as extern "C".
12074 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12076 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12078 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
12080 * pic/troff.c (troff_output::text): Merge in grops_output::text,
12081 but conditionalize use of \X based on \*(.T.
12082 (grops_output::*): Deleted.
12083 * pic/output.h: Delete declaration of make_grops_output.
12084 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
12085 by default. -n sets it to 0.
12086 (usage): Corresponding changes.
12087 * groff.c (main): Don't pass -x or -p to pic.
12088 * groff.sh: Likewise.
12090 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12093 * ps/devps/afmtodit: Change calculation of asc_boundary and
12094 desc_boundary. Make these bounds inclusive.
12095 * ps/devps: Regenerate font files.
12097 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
12099 * macros/tmac.latin1: New file.
12100 * macros/tmac.tty-char: Use tmac.latin1.
12101 (tmac.tty-tr): Deleted.
12102 * macros/Makefile: Install tmac.latin1.
12103 * macros/tmac.dvi: Use tmac.latin1.
12104 * macros/troffrc: Translate \[char160] onto no-break space here.
12105 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12107 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
12109 * macros/tmac.Xps: Use `do' request.
12111 * macros/tmac.ps: Use `do' request.
12113 * macros/tmac.e (@C): Use `do' request.
12115 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12116 * macros/Makefile: Install tmac.X*.
12118 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12119 * tty/Makefile: Don't install tmac.tty*.
12120 * macros/Makefile: Install tmac.tty*.
12122 * dvi/tmac.dvi: Move to macros.
12123 * dvi/Makefile: Don't install tmac.dvi.
12124 * macros/Makefile: Install tmac.dvi.
12126 * ps/tmac.ps*: Move to macros.
12127 * ps/Makefile: Don't install tmac.ps*.
12128 * macros/Makefile: Install tmac.ps*.
12130 * eqn/box.c: Provide draw_lines parameter corresponding to -D
12132 * macros/eqnrc: Set draw_lines parameter based on device.
12133 * groff.c: Don't pass -D flag to eqn.
12134 * groff.sh: Likewise.
12135 * eqn/main.c: Warn about use of -D.
12137 * troff/input.c (process_startup_file): New function.
12138 (main): Call process_startup_file().
12139 * macros/troffrc: New file.
12140 * macros/Makefile: Install troffrc.
12141 * groff.c (main): Don't pass extra -m option to troff. For a
12142 pseudo device pass the name of the pseudo device to troff using
12144 * groff.sh: Likewise.
12145 * groff.c (possible_command::prepend_arg): Deleted.
12147 * troff/input.c (do_request): New function.
12148 (init_input_requests): Bind "do" to do_request.
12150 * eqn/main.c (main): Instead of loading eqnchar from device directory,
12151 load eqnrc from macro directory.
12152 * macros/eqnrc: New file.
12153 * macros/Makefile: Install eqnrc.
12154 * ps/devps/eqnchar: Deleted.
12155 * ps/devps/Makefile: Don't install eqnchar.
12156 * dvi/devdvi/eqnchar: Deleted.
12157 * dvi/devdvi/Makefile: Don't install eqnchar.
12158 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
12161 * lib/device.[ch]: New files.
12162 * lib/font.h (font::set_device_name, font::get_device_name):
12164 * lib/fontfile.c: Use device.h.
12165 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
12166 * troff/input.c: Delete definition of `device'.
12167 (main): Don't initialize device.
12168 * troff/troff.h: Include device.h rather than declaring device.
12169 * troff/Makefile: No need to handle DEVICE.
12170 * driver/input.c: Include device.h. Don't use
12171 font::{set,get}_device_name.
12172 * groff.c, Makefile: Rename device.h to config.h.
12173 * groff.c: Use library device variable.
12174 * eqn/main.c: Use library device variable.
12175 * eqn/Makefile: No need to handle DEVICE.
12177 * lib/searchpath.[ch]: New files.
12178 * lib/Makefile: Handle searchpath.[ch].
12179 * troff/input.c (open_file, init_dirs): Deleted.
12180 (macro_dirs): Deleted.
12181 (open_mac_file, macro_source): Use class search_path.
12182 (add_string, struct string_list): Move definition.
12183 (main): Change -M option to use macro_path. Delete call to
12185 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
12186 Rewrite to use class search_path.
12187 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
12188 * lib/Makefile: fontfile.c depends on searchpath.h.
12189 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
12191 * lib/macropath.[ch]: New files.
12192 * troff/Makefile: No need to handle MACROPATH.
12194 * troff/input.c: Delete DUMP code.
12195 * lib/fontfile.c, lib/font.h: Delete
12196 font::forget_command_line_font_dirs.
12198 * troff/input.c (push_token): New function.
12199 (handle_first_page_transition): Use push_token().
12200 (process_input_stack): Change handling of a space at the beginning
12203 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
12205 * troff/input.c (font_dirs): Delete unused variable.
12207 * eqn/lex.c (do_set): Correct error messages.
12209 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
12211 * troff/input.c (do_define_string): Allow the string name to be
12212 followed immediately by a tab.
12213 (define_character): Likewise.
12215 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
12217 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12220 * troff/input.c (input_iterator::is_file): New virtual function.
12221 (file_iterator::is_file): New function.
12222 (input_stack::end_file): New function.
12223 (input_stack::next_file): Handle the situation where there is no
12224 file on the input stack correctly. Avoid making two passes over
12226 (next_file): Make the filename optional; in this case call
12227 input_stack::end_file().
12229 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
12231 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
12232 produce a real _ charater when the current font is CW and _
12235 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
12236 expression to work around gcc 2.2 bug.
12238 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
12240 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12242 * troff/env.c (environment::add_padding): New function.
12243 (environment::add_char): Use add_padding().
12244 (environment::space): Likewise.
12245 (environment::wrap_up_field): Add some padding if there is none
12246 and there's no current tab.
12247 * troff/env.h: Declare environment::add_padding.
12249 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
12251 * pic/pic.y: undef fmod and rand before declaring them.
12253 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
12255 * troff/input.c (main): If the DESC file specifies a font name of
12256 0, then leave the corresponding font position empty.
12258 * nroff.sh: New file.
12259 * Makefile (install.nobin): Install nroff.sh.
12261 * tty/devlatin1/R.proto: Add ao as synonym for de.
12262 * tty/tmac.tty-char: Define ao as o.
12264 * tty/dev{ascii,latin1}/R.proto: Add aq.
12265 * tty/tmac.tty-char: Delete definition of aq.
12267 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
12269 * troff/input.c (init_charset_table): Don't translate 0240.
12270 * ps/tmac.ps: Translate char160 to space.
12271 * dvi/tmac.dvi: Likewise.
12272 * tty/tmac.tty: Likewise.
12274 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
12276 * dvi/tmac.dvi: Add support for all Latin-1 characters.
12278 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12279 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12282 * tty/tmac.tty-char: Add \(ah.
12284 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12285 No need to define \(FM and \(!/. Conditionalize all character
12288 * ps/devps/lgreekmap: Add +h, +f, +p.
12290 * ps/tmac.psnew: New file.
12291 * ps/Makefile: Install tmac.psnew.
12293 * troff/input.c (charinfo_to_node_list): Don't ever interpret
12294 character definitions in compatible mode.
12296 * troff/input.c (remove_character): New function.
12297 (init_input_requests): Bind remove_character to "rchar".
12299 * ps/tmac.psold: New file.
12300 * ps/Makefile: Install tmac.psold.
12301 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12302 characters into tmac.psold. Make these definitions unconditional.
12304 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12306 * ps/tmac.ps: Don't define \('c and \('C.
12308 * ps/devps/textmap: Move Greek characters to...
12309 * ps/devps/symbolchars:
12311 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
12313 * ps/devps/text.enc: Add quotesingle.
12314 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12315 * tty/tmac.tty-char: Likewise.
12316 * dvi/devdvi/texmi.map: Add +h, +f, +p.
12317 * dvi/devdvi/texi.map: Add Fn.
12318 * dvi/devdvi/msam.map: Add lz.
12319 * dvi/tmac.dvi: Handle Bq, bq, aq.
12321 * pic/lex.c (get_token): Recognize 'th.
12322 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12324 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
12326 * ps/devps/textmap: Move di, mu, +- to...
12327 * ps/devps/symbolchars:
12329 * macros/tmac.s (@XS): Don't call par@reset or fi.
12330 (XA): Call LP. Turn off adjustment. Reduce line length.
12332 * macros/tmac.s: Initially alias XS to LP.
12333 (XS): Rename to @XS.
12334 (cov*ab-init): Alias XS to @XS.
12336 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
12338 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12339 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12340 (token::is_size, token::changes_env): Deleted.
12341 * troff/number.c (parse_term): No need to process \s explicitly.
12342 Call tok.next() only after scale indicator has been processed.
12343 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12345 (token::next): Handle \s, \f, \S, \H immediately rather than
12346 returning them as tokens.
12347 (token::operator==, token::description, token::add_to_node_list,
12348 token::process): Remove handling of deleted tokens.
12350 * troff/env.c (environment::add_char): When adding padding
12351 indicator character, call start_line() if necessary.
12353 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
12355 * ps/devps/afmtodit: Don't output 0 kerns.
12357 * ps/devps/afmtodit: Remove directory from name of encoding in
12358 font description file.
12360 * ps/devps/afmtodit: Improve error messages.
12362 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12364 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12365 * ps/devps/FontMakefile: Deleted.
12366 * ps/devps/afmname: New file.
12368 * ps/devps/symbol.sed: New file.
12369 * ps/devps/symbol.diff: Deleted.
12370 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12371 Generate zapfdr.afm from zapfd.afm.
12373 * tty/tmac.tty (tty-char): Prefix definition with ".
12375 * macros/tmac.an (TP): Don't start a diversion if one has already
12378 * tty/tmac.tty-char: Add Latin-1 characters.
12380 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12382 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
12384 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12385 Move declaration of struct horizontal_span.
12387 * tbl/table.c (table::table): Initialize span_list.
12388 (table::~table): Delete span_list.
12390 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12392 * ps/devps/Makefile: Avoid dependency on GNU make.
12394 * ps/tmac.ps: Check that character does not already exist before
12397 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12398 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12399 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12402 * tty/tmac.tty-char: New file.
12403 * tty/Makefile: Install tmac.tty-char.
12404 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12407 * tty/tmac.tty: Fix definition of \(34.
12409 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12410 bracket-drawing characters onto |. Add *o.
12412 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12413 only if current_field.
12415 * troff/dictionary.c (dictionary::lookup): Free old_table after
12418 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
12420 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12421 whose glyphs are identical to glyphs of some Roman character.
12423 * tty/devlatin1/R.proto (bu): Deleted.
12424 * tty/devascii/R.proto (bu): Deleted.
12425 * tty/tmac.tty: Add definition of \(bu.
12427 * eqn/main.c (do_file): Pass FILE as argument.
12428 (main): Automatically load eqnchar. New options -F and -n.
12429 Pass do_file an opened FILE.
12430 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12431 No need to include font.h.
12432 * groff.sh: Likewise. Don't need to use - for standard input.
12433 Prefix files with -- if first file starts with -.
12435 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12437 * troff/env.c (environment::possibly_break_line): Don't set line
12438 to 0 across call to output_line(). Don't call output_line() until
12439 after discarding nodes after break.
12441 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
12443 * request.h (macro::empty): Declare it.
12444 * input.c (macro::empty): New method.
12445 (interpolate_macro): Don't give a WARN_SPACE if the two-character
12448 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
12450 * troff/env.c (environment::start_field): Decrement space_total
12451 when a space is frozen.
12453 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
12455 * macros/tmac.an (R): Delete macro.
12457 * troff/input.c (get_copy, token::next): Support \# (like \" but
12458 newline is ignored).
12460 * troff/input.c (token::next): Fix error message in 'Y' case.
12462 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
12464 * eqn/delim.c (define_extensible_string): Recognize any prefix of
12467 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
12469 * c++test.c: Include <osfcn.h>.
12471 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12474 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
12476 * tbl/table.c (table::divide_span): Don't count column separation
12477 if expand was specified.
12479 * tbl/main.c (process_format): Don't ignore width specs in
12480 continued format. Give warning for changing equal widths or
12481 column separation in continued format.
12482 (process_data): Set column separation, minimum width, equal
12483 columns at end of table.
12485 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
12487 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12488 node::add_discretionary_hyphen): Use soft_hyphen_char.
12489 (set_soft_hyphen_char): New function.
12490 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
12492 * Makefile (c++tested): Give more helpful message if test fails.
12494 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
12496 * troff/input.c (init_charset_table): Translate 0240 to
12497 an unbreakable space.
12499 * troff/token.h (token::hyphen_indicator): New function.
12500 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12502 * troff/input.c (translate): Allow translation to \%.
12503 * troff/node.c (node::add_char): Handle
12504 TRANSLATE_HYPHEN_INDICATOR.
12505 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12507 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12510 * tty/devlatin1/R.proto: \(hy and - should print as 055.
12512 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
12514 * groff.c (run_commands): If the last command gets a SIGPIPE send
12515 a SIGPIPE to all children than haven't yet terminated. When
12516 command terminates, set pid field to -1.
12518 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
12520 * groff.c (main): Pass an appropriate -filename option to gxditview.
12522 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
12524 * Makefile.bd (install): Remove existing program before copying.
12526 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12527 programs which have Unix counterparts to be installed with
12528 user-specified prefix.
12530 * troff/input.c (exit_troff): Don't check if exit_started.
12531 (exit_request): Don't call exit_troff if exit_started.
12533 * Makefile.bd (install.mm): Rename to install.dwbmm.
12535 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
12537 * driver/input.c (do_file): Add missing break for '#' case.
12539 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
12541 * troff/input.c (input_stack::clear): Clear past any boundaries and
12542 then add the boundaries back.
12544 * troff/input.c (exit_troff): Return immediately if already
12547 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
12549 (pg*end-page): If the text has ended and there are no more
12550 footnotes or keeps, exit.
12552 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12554 * troff/input.c (init_charset_table): Make \(rq transparent by
12557 * macros/tmac.an: Define lq and rq strings.
12559 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12561 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
12563 * troff/env.c (environment::final_break): New function.
12564 (environment::newline): Set prev_line_interrupted to 2 if
12566 * troff/env.h: Declare environment::final_break.
12567 * troff/input.c (exit_troff): Call environment::final_break()
12568 instead of environment::do_break().
12570 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12571 doesn't already exist.
12572 * macros/man.local: New file.
12573 * macros/tmac.an: Load man.local.
12574 * macros/man.ultrix: New file.
12576 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
12578 * troff/input.c (exit_groff): Rename to...
12579 (exit_troff): New function.
12581 * troff/div.c (exit_started, done_end_macro,
12582 seen_last_page_ejector): New global variables.
12583 (began_page_in_end_macro): New static variable.
12584 (exit_flag): Deleted.
12585 (top_level_diversion::top_level_diversion): Initialize
12587 (top_level_diversion): More elaborate test for whether
12588 cleanup_and_exit() should be called.
12589 Set began_page_in_end_macro if the end macro isn't yet finished.
12590 * troff/div.h (top_level_diversion::last_page_count): New data
12592 (top_level_diversion::set_last_page): New function.
12593 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12594 * troff/env.c (do_break): Zero prev_line_interrupted.
12595 * troff/input.c (exit_flag): Delete declaration.
12596 (LAST_PAGE_EJECTOR): New magic cookie.
12597 (token::next): Handle LAST_PAGE_EJECTOR.
12598 (exit_groff): Set exit_started and done_end_macro instead of
12599 exit_flag. Call top_level_diversion::set_last_page. Push a
12600 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
12601 another ejection after setting seen_last_page_ejector.
12603 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
12605 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12607 * macros/tmac.e (TH): Make sure there's room for the initial
12610 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12611 Set FVS in points rather than units.
12613 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
12615 * troff/div.c (top_level_diversion::add_trap): Don't consider the
12616 position of empty slots.
12618 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
12620 * ps/devps/S: Fix height and depth of parenrightex.
12621 * ps/devps/symbol.diff: Regenerate.
12623 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
12625 * tmac.e (u): Do underlining as in -mgs.
12627 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
12629 * tty/tty.c (tty_printer::end_page): If overstriking is
12630 suppressed, still turn overstruck horizontal and vertical lines
12633 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12636 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12638 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
12640 * Version 1.05 released.
12642 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
12644 * tty/tty.c: Instead of keeping an array of glyphs and then
12645 sorting it, keep a ordered linked list of glyphs for each line.
12647 * driver/driver.h: Include stddef.h.
12649 * tty/tty.c (compare_glyph):
12650 * refer/refer.c (rcompare):
12651 * troff/env.c (compare_ranges): Arguments of qsort comparison
12652 function should be const void *.
12654 * troff/number.c (parse_term):
12655 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12658 * refer/label.y (consider_authors): Don't access variables
12659 constructed under a condition outside that condition: put braces
12660 round for statement containing declaration; redeclare use of same
12663 * pic/pic.y (text_expr): Delete production that allows
12664 parenthesised text_expr.
12665 (expr): Allow a conditional_expr to appear in parentheses.
12666 (conditional_expr): Rename to any_expr.
12668 * mm: Install new version 1.01 from jh.
12670 * lib/font.c (font::get_width): Cache scaled widths.
12671 (font::font): Initialize widths_cache.
12672 (font::~font): Destroy widths_cache.
12673 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12675 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
12677 * c++test.c, c++test.ref: New files.
12678 * Makefile: Check that the C++ compiler works.
12680 * ps/tmac.pspic (PSPIC): Do a break.
12682 * ps/tmac.ps: Move definition of PSPIC into...
12683 * ps/tmac.pspic: New file.
12684 (PSPIC): Draw box around picture, but make it invisible to grops.
12685 * ps/tmac.ps: Load tmac.pspic.
12686 * ps/Makefile: Install tmac.pspic.
12688 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
12690 * lib/font.c (scale_round): If n is negative,
12691 subtract .5 before truncating floating point result.
12693 * lib/fontfile.c: Include <errno.h>.
12695 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
12697 * driver/input.c (get_char): Inline. Don't update current_lineno.
12698 Change callers to up date current_lineno if necessary.
12699 Use get_char() instead of getc(current_file).
12701 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
12703 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12705 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
12707 * tty/tty.c (tmac.tty): Define \(rg as (R).
12709 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
12711 * lib/lib.h: New define a_delete.
12712 * Use a_delete instead of delete when deleting an array of objects
12713 without destructors.
12715 * lib/lib.h: Rename adelete to ad_delete.
12716 * Change uses of adelete.
12718 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
12720 * eqn/eqn.y: Include lib.h.
12722 * troff/node.c (grow_font_table): Delete old_font_table.
12724 * mm: Install new version from jh.
12726 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
12728 * tbl/table.h (format_type): Make global instead of local to class
12729 entry_format. Prefix enumerators with FORMAT_.
12730 * tbl/table.c, tbl/main.c: Corresponding changes.
12731 * refer/token.h (token_type): Make global. Prefix enumerators
12733 * refer/token.[ch]: Corresponding changes.
12734 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12736 * troff/div.c (node::set_vertical_size): Don't name argument.
12738 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
12740 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12741 * lib/lib.h: Define adelete accordingly.
12742 * pic/object.c (graphic_object::graphic_object):
12743 * tbl/main.c (format::~format):
12744 * tbl/table.c (table::~table):
12745 * refer/ref.c (reference::~reference, reference::merge,
12746 reference::insert_field, reference::delete_field): Use adelete.
12748 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12750 * tbl/table.h: Corresponding changes.
12752 * common.c (common_output::dashed_arc, common_output::dotted_arc):
12753 Ensure total_angle is positive.
12755 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
12757 * refer/ref.c (reference::merge, reference::insert_field,
12758 reference::delete_field): Avoid delete[0].
12760 * refer/token.c (init_special_chars): Move calls to cmupper
12761 outside calls to init_two_char_letter to work around bug in gcc
12764 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
12766 * lib/new.c (operator new): Use __builtin_new for g++.
12768 * pic/object.c (graphic_object::~graphic_object): Don't use
12771 * pic/object.c (output::compute_scale): Initialize max_width and
12774 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
12776 * troff/input.c (write_request): Call fflush.
12778 * troff/node.h (class composite_node): Move declaration to node.c
12779 * troff/input.c (charinfo_to_node): Rename to ...
12780 (charinfo_to_node_list): Return node list rather than composite
12782 * troff/node.c (make_composite_node): New function.
12783 (make_node, add_char): Call make_composite_node instead of
12785 (class composite_node): Add a tfont * member. Delete font_size
12787 (composite_node::composite_node, composite_node::copy,
12788 composite_node::size): Corresponding changes.
12789 (composite_node::tprint): Provide constant spacing, emboldening
12790 and track kerning as specified in tfont.
12791 (composite_node::width): Change width calculation accordingly.
12792 * troff/env.h (environment::composite): New member.
12793 (environment::is_composite, environment::set_composite): New
12795 * troff/env.c (environment::environment): Initialize composite.
12796 * troff/input.c (charinfo_to_node): Call
12797 environment::set_composite.
12798 * troff/node.c (make_composite_node, make_glyph_node): Use the
12799 plain version of the tfont if the environment is composite.
12801 * troff/node.c (font_info::get_space_width): Additional argument
12802 giving space_size. Handle constant space correctly. Scale by
12803 space_size unless constant spaced.
12804 (env_sentence_space_width): New function.
12805 * troff/node.h: Declare it.
12806 * troff/env.h (environment::get_space_size,
12807 environment::get_sentence_space_size,
12808 environment::get_narrow_space_width,
12809 environment::get_half_narrow_space_width): Make inline.
12810 (environment::get_space_width): Make inline. Just call
12812 * troff/env.c: Delete definitions for funtions made inline.
12813 (environment::space_newline, environment::space): Use
12814 env_sentence_space_width(). Don't scale by space_size.
12815 * troff/node.h: Move declarations of env*space_width() functions
12818 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
12820 * macros/tmac.s (PS): Don't try to set negative indent.
12822 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
12824 * pic/pic.y: Fix min function.
12826 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
12828 * man/mdate.sh: Clear LANGUAGE.
12830 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
12832 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12833 * pic/lex.c: New COMMAND keyword.
12834 * pic/pic.y (print_args, print_arg): New rules.
12835 (placeless_element): Use print_args for PRINT.
12836 New COMMAND element.
12838 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
12840 * troff/input.c (terminal): Handle missing argument correctly.
12842 * pic/pic.y (text_expr): New rule.
12844 * pic/pic.y: Implement := operator.
12846 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
12848 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12851 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
12853 * ps/devps/dingbatsrmap: Include this in the distribution.
12855 * macros/tmac.doc: Replace with new version from 2nd Networking
12856 Release. Fix loading of doc-* files.
12857 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12858 * macros/tmac.doc.old: New file. Apply fixes that had been
12859 applied to old tmac.doc.
12860 * macros/tmac.andoc: Check that we're running under groff.
12861 * macros/Makefile: Rework.
12863 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
12865 * tbl/table.h (format_type):
12866 * refer/token.h (token_type): If NESTED_TYPES is defined, use
12867 typedef to make these types visible at file scope.
12868 * Makefile: Add NESTED_TYPES configuration option.
12870 * troff/div.c (mark): At the top level use the value of
12871 nl_reg_contents rather than the current vertical position.
12873 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
12875 * tty/tty.c: Implement \D for horizontal or vertical lines.
12876 (tty_printer::set_char): Use vec_used+2 as serial number.
12877 Don't allow size of vector to exceed USHRT_MAX-2.
12878 Split off part into...
12879 (tty_printer::add_char): New function.
12880 (tty_printer::draw): New function.
12881 (compare_glyph): Handle equal serial numbers.
12882 (tty_printer::end_page): Handle overstruck characters from \D.
12883 (main, usage): Implement -d option.
12885 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
12887 * tbl/main.c (process_format):
12888 * eqn/text.c (split_text):
12889 * troff/input.c (token::next): Use inner block for declarations
12890 with initializers in switch statement.
12892 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
12894 * pic/common.c (common_output::dash_line): Cope with zero-length
12897 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
12899 * Version 1.04 released.
12901 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
12903 * macros/tmac.an (TH): Define a macro an-init to define variables
12904 based on command line arguments.
12905 (an-header): Call it.
12907 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
12909 * Makefile (install.mm): Rename to install.dwbmm.
12911 * Makefile: Integrate mm.
12912 * mm: New directory.
12914 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
12916 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
12919 * pic/troff.c (troff_output::simple_spline,
12920 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
12921 shadowing parameter.
12923 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
12925 * lib/ptable.h: Add explicit casts when converting from unsigned
12928 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
12929 * dvi/devdvi/Makefile: Install SA, SB.
12931 * refer/indxbib.c: Add declaration of mktemp.
12933 * refer/lookbib.c: Add declaration of isatty.
12935 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
12937 * pic/lex.c (interpolate_macro_with_args): While collecting
12938 arguments, keep track of whether we're in a string.
12940 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
12942 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
12943 down with \v, so as to avoid problems with top of page trap
12944 setting no space mode.
12946 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
12948 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
12950 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
12952 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
12953 Improve error message.
12955 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
12957 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
12960 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
12962 * groff.c (possible_command::execp): Always use _exit() after a
12965 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
12966 NO_SYS_WAIT_H configuration options.
12967 * groff.c: Use these options. Use POSIX-style macros to extract
12968 fields from the status returned by wait().
12970 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
12972 * tbl/table.c (table::compute_separation_factor): Allow the
12973 separation factor to drop to 0.
12975 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
12977 * refer/search.c: Include <errno.h>.
12979 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
12981 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
12983 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
12986 * pic/lex.c (input_stack::bol): Move definition out of class body.
12988 * pic/main.c: On MSDOS munge argv[0].
12990 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
12992 * lib/ptable.c (hash_string): Use unsigned long rather than
12994 (next_ptable_size): Use unsigned rather than int. Give an error
12995 message if we've hit the largest table size.
12996 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
12999 * pic/object.h (object_spec): Make flags unsigned long. Declare
13000 flags as const unisgned long rather than as enums.
13002 * pic/output.c: Deleted.
13004 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13006 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13007 Add additional argument.
13008 (line_entry::note_double_vrule_on_{left,right}): Set value of
13009 douvle_vrule_on_{right,left} flag according to argument.
13010 (simple_line_entry::simple_print,
13011 simple_line_entry::double_line_print): If adjacent to double vrule
13012 on a corner extend rather than shorten the rule by half the double
13015 * troff/number.c (parse_term): In checking for overflow, handle the
13016 case where the current horizontal position is negative.
13018 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
13020 * pic/object.c (draw_arrow): Check for object having zero length.
13022 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
13024 * eqn/main.c (do_file): Split off inline equation handling into...
13025 (inline_equation): New function. Search for starting delimiter
13027 (delim_search): New function. Don't recognize a delimiter that
13028 occurs in the name of an escape sequence, number register, string
13031 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
13033 * eqn/delim.c (delim_box::compute_metrics): Don't call
13034 define_extensible_string if left is 0.
13035 (delim_box::output): Don't print the left delimiter if left is 0.
13036 (delim_box::debug_print): Check for left == 0 before calling printf.
13038 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
13040 * troff/Makefile (majorminor.c): Include only digits in
13043 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
13045 * refer/dirnamemax.c: new file.
13046 * refer/genlimits.c: Deleted.
13047 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13048 Don't check path length.
13049 * refer/Makefile: Add dir_name_max.o; delete genlimits.
13050 * Makefile: Add PATHCONF_MISSING option.
13052 * refer/indxbib.c (get_cwd): New function.
13053 (main): Use get_cwd().
13054 * lib/getcwd.c: New file.
13055 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13056 GETCWD in SUBFLAGS.
13057 * lib/Makefile: Compile getcwd.o.
13059 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13062 * refer/indxbib.c (main): Check success of mktemp.
13064 * lib/tmpfile.c: New file.
13065 * lib/Makefile: Add tmpfile.c.
13066 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13067 * ps/ps.h: Delete declaration of mktemp().
13068 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13069 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13070 * driver/driver.h: No need now to include errno.h.
13072 * everywhere: Set errno to 0 before calling fopen().
13074 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13075 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13076 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13078 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
13080 * troff/env.h (translate_space_to_dummy): Declare it.
13081 * troff/env.c (environment::space_newline, environment::space):
13082 If translate_space_to_dummy is set then make the width of spaces 0.
13083 * troff/input.c (translate): If the second character of a
13084 translation is a space, translate to unbreakable space. If the
13085 first character is a space, set or clear translate_space_to_dummy
13086 according to whether the second character is \&. Weird!
13088 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
13090 * groff.c (run_commands): Don't use non-zero exit code because a
13091 command gets SIGPIPE.
13093 * groff.c, groff.sh: Use -mXps with -TXps.
13095 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13096 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13097 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13098 (ps_printer::special): New specials invis and endinvis.
13099 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13100 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
13101 (ps_printer::end_page): Check that invis_count == 0.
13102 (ps_printer::invis_count): New member.
13103 (ps_printer::ps_printer): Initialize invis_count to 0.
13105 * troff/env.c (environment::hyphenate_line): Hyphenation
13106 indicator at beginning of word inhibits splitting after -, \(em
13109 * pic/pic.y (element): Allow another element to follow } without
13110 any intervening separator.
13112 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
13114 * pic/lex.c (get_delimited): Allow tabs before delimiter.
13116 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
13118 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
13119 declaration of wait() in header files.
13120 * Makefile: Get rid of -DHAVE_UNION_WAIT.
13122 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
13124 * lib/lib.h: Declare return type of strerror as char *.
13126 * man/Makefile: Add g flag to sed substitutions.
13127 * Makefile (shgroff, bindist): Likewise.
13129 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
13131 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
13132 * ps/devps/prologue (PBEGIN): Define showpage after pushing
13135 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
13137 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
13140 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
13142 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
13145 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
13147 * troff/input.c (define_number_reg): If currently undefined,
13148 don't define it if the argument is an invalid expression.
13150 * Makefile: Ignore return value of `if' commands without `else'
13153 * Makefile: Split up CPPDEFINES into a series of separate
13154 configuration options.
13156 * troff/input.c (init_registers): Use time_t instead of long
13157 unless LONG_FOR_TIME_T is defined. Use returned result rather
13158 than passing pointer.
13159 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
13161 * lib/Makefile (fontpath.h): Use gendef.
13163 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
13165 * troff/input.c (input_iterator::shift): Delete argument name.
13166 * troff/node.c (suppress_output_file::really_begin_page,
13167 suppress_output_file::really_transparent_char, node::ascii_print,
13168 node::tprint): Delete names of unused arguments.
13170 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
13172 * refer/label.y (string): Pass $4 to command_error.
13174 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
13176 * Version 1.03 released.
13178 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
13180 * Makefile: Pass definition of SHELL in SUBFLAGS.
13182 * gendef: New file.
13183 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
13184 ps/Makefile: Use gendef to construct header files that are
13185 constructed from the Makefile.
13187 * macros/Makefile: make all should build stripped version of tmac.e.
13189 * refer/Makefile (clean): Remove y.output.
13191 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
13193 * ps/pfbtops.c (main): Add -v option which prints out a version
13195 * ps/Makefile (pfbtops): Link with libgroff.a.
13197 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
13199 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
13200 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
13202 * refer/lkbib.c (main): Always terminate reference with blank
13204 * refer/lookbib.c (main): Likewise.
13206 * refer/linear.c (file_buffer::load): Check that the file is not a
13209 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13210 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13211 Delete second inclusion of <sys/param.h>.
13213 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
13215 * troff/token.h (token::special): Deleted.
13217 * tbl/main.c (process_format): Rework so that opt->tab_char is
13218 recognized only when appropriate.
13220 * ps/Makefile (clean): Remove pfbtops.
13222 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
13224 * lib/font.c (text_file::next): Don't return if we have got a
13227 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
13229 * refer/refer.c (store_reference): Get hash code from old_table[i]
13230 when rehashing the table.
13232 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
13234 * eqn/box.c (box::top_level): Save size and prev size using \R and
13235 restore it afterwards. Set the size to the size at the beginning
13237 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
13238 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
13240 * refer/Makefile (limits.h): Use ./genlimits.
13242 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
13244 * refer/index.c: Delete declarations of stat() and fstat().
13246 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
13248 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13250 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
13252 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13254 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
13256 * troff/input.c (token::get_char): Handle \e.
13258 * refer/linear.c: Delete declarations of fstat() and stat().
13260 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
13262 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13263 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13265 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
13267 * troff/input.c (do_define_macro): Improve error handling for end
13268 of file while defining macro.
13270 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
13272 * eqn/box.h: Fix declaration of set_gsize.
13273 * eqn/box.c (set_gsize): Make argument const char *.
13274 (gsize): Declare as char *.
13275 * eqn/main.c (main): Don't convert gsize to int.
13276 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13278 * Version 1.02 released.
13280 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
13282 * macros/tmac.andoc: New file.
13283 * macros/Makefile: Install tmac.andoc.
13285 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13286 operator new and delete on OP_DELETE_BROKEN not being defined.
13287 * Makefile: Mention OP_DELETE_BROKEN.
13289 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
13291 * Makefile (bindist): Pass SUBFLAGS.
13293 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
13295 * Makefile, groff.c: Pass definitions to groff.c via device.h.
13297 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13300 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13302 * ps/ps.h, ps/psrm.c: Make comment_table and
13303 header_comment_table local to resource_manager::process_file.
13305 * groff.sh: With -TXps pass -printCommand option to gxditview.
13307 * groff.c (possible_command::print): Implement using
13308 append_arg_to_string.
13310 * xditview: Merge in new implementation with own ChangeLog.
13312 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
13314 * groff.c (main): Implement PRINT_OPTION.
13315 (append_arg_to_string): New command.
13316 (device_table): Set PRINT_OPTION flag for Xps.
13318 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
13320 * troff/groff.h: Rename to troff.h.
13322 * pic/lex.c (lookup_keyword, docmp): New functions.
13323 (get_token): Use new lookup_keyword.
13324 Don't include key.h.
13325 * pic/key.[ch], pic/pic.gperf: Deleted.
13326 * pic/Makefile: Remove gperf stuff.
13328 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13330 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13332 * troff/Makefile, troff/node.c: Move definition of
13333 STORE_WIDTH into node.c.
13335 * etc/grog.pl, etc/grog.sh: Support -mdoc.
13337 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
13339 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13340 dvi/devdvi/texb.map: Add lq and rq.
13341 dvi/devdvi: Regenerate fonts.
13342 * ps/devps/textmap: Add lq and rq.
13343 * ps/devps: Regenerate fonts.
13344 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13345 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13347 * pic/object.c (position_rectangle): When checking radius
13348 cope with possiblity that width or height is negative.
13349 (box_object::box_object): Have separate xrad and yrad with
13350 signs matching signs of dim components.
13351 (box_object::{north,south}_{east,west}): Use xrad and yrad.
13352 (box_object::print): With rounded boxes use absolute values
13353 for dim and rad arguments.
13355 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13358 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13360 * various files: Add explicit destructors to keep Saber CC +d
13363 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
13365 * eqn/box.c (box::top_level): Restore fonts correctly after
13366 font changes in line containing inline equation. Also
13367 restore previous font as well as current font.
13368 * eqn/pbox.h: Define necessary string and register names.
13370 * troff/input.c (token::next): Case 'R' calls do_register.
13371 (do_register): New function.
13373 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
13375 * groff.c, groff.sh: Support Xps device. Allow each device
13376 to have a pseudo_name and a real_name.
13378 * groff.c (run_commands): Don't print `Broken pipe' messages.
13380 * ps/pfbtops.c: New file.
13381 * ps/Makefile: Add pfbtops.
13383 * troff/number.c (parse_term): Improved error message.
13385 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
13387 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13389 * Makefile: Integrate refer.
13390 * refer: New directory.
13391 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13392 man/lkbib.man: New files.
13393 * man/Makefile: Support refer man pages.
13395 * lib/lib.h: Declare is_prime.
13396 * lib/prime.c: New file.
13398 * troff/input.c (macro_source): New function.
13399 (init_input_requests): Bind "mso" to macro_source.
13401 * troff/env.c (environment::possibly_break_line): Maintain
13402 pointer to pointer to node to be split in ndp so as to avoid
13403 using address of freed node.
13405 * troff/env.c (environment::hyphenate_line): Maintain pointer to
13406 pointer to first node to be hyphenated in startp so as to
13407 avoid using address of freed node.
13409 * troff/env.c (class trie, class hyphen_trie): Make the
13410 elements of the trie be of type char not unsigned char.
13411 Declare arguments to be const char* instead of unsigned char *.
13413 * troff/env.c (hyphenate): Initialize hbuf[0].
13415 * troff/input.c (set_string): Declare p to be char * and cast
13416 *p to unsigned char when necessary.
13418 * troff/input.c (do_define_macro): Declare s to be const
13419 char*. Cast element to unisgned char when necessary, Declare
13420 d to be an int. Handle EOF better.
13422 * troff/Makefile, troff/input.c: Different scheme for passing
13423 definitions of MACROPATH, HYPHENFILE and DEVICE.
13425 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
13427 * tty/devascii/R.proto: Delete entry for em.
13428 * tty/devlatin1/R.proto: Likewise.
13430 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
13432 * troff/input.c (translate): Stop when we get a space. Treat eof
13435 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13437 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
13439 * tbl/main.c (process_format): A font name following a `f'
13440 modifier that starts with a digit can be only one character long.
13441 Also deal with EOF on the second character of the font name.
13443 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
13445 * troff/input.c (token::next): Turn \~ into an
13446 unbreakable_space_node.
13447 * troff/node.c (unbreakable_space_node): New class.
13448 * troff/node.h: Declare it.
13450 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
13452 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
13453 it's >= 0, before outputting it as a single byte.
13455 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
13457 * lib/font.c: Make font_char_metric::code an int.
13458 (font::get_code): Change return type to int.
13459 (font::load): Allow code to be arbitrary integer.
13460 * lib/font.h (font::get_code): Change return type to int.
13461 (font::number_to_index): Change argument type to int.
13462 * troff/input.c (token::next): In case 'N', allow any value.
13463 Store value in token::val.
13464 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13465 (token::get_char, token::add_to_node_list, token::process): Get
13467 (charinfo::set_number): Change argument to int.
13468 (charinfo::get_number): Require that NUMBERED flag be set.
13469 (get_charinfo_by_number): Store numbered characters not between 0
13470 and 255 in a dictionary.
13471 * troff/charinfo.h (get_charinfo_by_number): Change argument type
13473 (charinfo::number): Change type to int.
13474 (charinfo::set_number): Change type of set_number to int.
13475 * troff/node.c (troff_output_file::put_char_width,
13476 troff_output_file::put_char): Test whether character is numbered
13477 using charinfo::numbered().
13478 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13480 * lib/nametoindex.c: New implementation to cope with arbitrary
13483 * troff/input.c (token::operator==): Test val for
13484 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13487 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13488 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
13490 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
13492 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
13495 * all Makefiles: rm targets of cp and >.
13497 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13500 * eqn/lex.c (def_table): Add dollar.
13502 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
13504 * troff/input.c (do_width): Push back newline before closing delim
13507 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
13509 * groff.c (possible_command::prepend_arg): New function.
13510 (main): Prepend device -m option.
13511 * groff.sh: Put device -m options before command-line options.
13513 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
13515 * macros/tmac.an (IP): Quote argument to TP.
13517 * ps/ps.c (main): New option -b, which sets...
13518 (broken_flags): New variable.
13519 (ps_printer::~ps_printer): Incorporate the setup section in the
13520 prolog if (broken_flags & NO_SETUP_SECTION).
13521 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13522 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13523 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13524 ps_printer::print_needed_font_comment,
13525 ps_printer::print_supplied_font_comment,
13526 ps_printer::print_include_font_comments,
13527 ps_printer::lookup_doc_font, ps_printer::download_fonts,
13528 ps_printer::read_download_file, read_document_fonts, add_font,
13529 skip_line, parse_fonts_arg, document_font::document_font,
13530 document_font::~document_font, document_font::download,
13531 ps_output::include_file): Deleted.
13532 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13533 rather than %!PS-Adobe-2.0. Make calls to
13534 resource_manager::need_font for each font that we used. Replace
13535 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13536 print_supplied_font_comment, print_needed_font_comment by call to
13537 resource_manager::print_header_comments. Output %%Orientation
13538 comment. Output %%Requirements: numcopies comment if ncopies > 1.
13539 Don't output the prolog directly. Instead call
13540 resource_manager::output_prolog. Only define #copies when ncopies
13541 > 1. Delete calls to print_include_font_comments and
13542 download_fonts. Add call to resource_manager::document_setup.
13543 (ps_printer::do_file): Call resource_manager::import_file instead
13544 of including it ourselves.
13545 (ps_printer::do_import): Likewise. Also don't call
13546 merge_import_fonts. Push userdict on the dictionary stack before
13547 and pop it afterwards.
13548 Move declaration of ps_output into ps.h.
13549 * ps/psrm.c: New file implementing resource_manager class.
13550 * ps/ps.h: New file declaring ps_output and resource_manager
13552 * ps/devps/zapfdr.ps:
13553 * ps/devps/symbolsl.ps:
13554 * ps/devps/prologue: Use 3.0 conventions.
13555 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13556 Add default definition of BROKEN_SPOOLER_FLAGS.
13557 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
13558 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13560 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
13562 * etc/grog.pl: New file.
13563 * Makefile (GROG): New variable.
13564 Add GROG to SUBFLAGS.
13565 * etc/Makefile (GROG): New variable.
13566 (install.nobin): Install $(GROG) rather than grog.sh.
13568 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
13570 * eqn/special.c (special_box::compute_metrics): Make the input and
13571 output strings the same. Get the new height and depth from the
13572 predefined height and depth registers. Also make subscript kern
13573 and skew available.
13574 (special_box::compute_subscript_kern, special_box::compute_skew):
13577 * eqn/box.c (pointer_box::compute_skew,
13578 simple_box::compute_metrics, box::top_level)
13579 * eqn/text.c (prime_box::compute_metrics,
13580 prime_box::comput_subscript_kern)
13581 * eqn/limit.c (limit_box::compute_metrics):
13582 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13583 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13584 negative numbers in `nr' requests with a leading 0.
13586 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
13588 * eqn/special.c: New file.
13589 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
13590 Add new rule for simple.
13591 * eqn/lex.c (token_table): Add SPECIAL.
13592 * eqn/box.h: Declare make_special_box.
13593 * eqn/Makefile: Add special.[co].
13595 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
13597 * ps/devps/prologue: Possibly set packing to true while defining.
13598 Create grops dictionary here. Initialize local variables before
13599 defining procedures.
13600 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13601 the dictionary stack. Set strokeadjust and overprint to false if
13602 the relevant operators are defined.
13603 (PEND): New procedure.
13604 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13605 prologue. Do everything else in the setup section.
13606 (ps_printer::do_import): Just call PBEGIN and PEND around the
13607 picture. Also push userdict before, and pop it afterwards.
13609 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
13611 * troff/node.c (bracket_node::tprint): Brackets were being printed
13614 * macros/tmac.an (SH, SS): Set fill mode.
13616 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
13618 * troff/div.c (top_level_diversion::begin_page): Set
13619 high_water_mark to 0.
13621 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
13623 * man/mdate.sh: New file.
13624 * man/mdate.c: Deleted.
13625 * man/Makefile: Use mdate.sh instead of mdate.
13628 * eqn/lex.c (do_gsize): Supply missing argument to error message.
13630 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
13632 * man/mdate.c: New file.
13633 * man/*.man: Replace modification date by @MDATE@.
13634 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13635 (mdate): New target.
13637 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13638 Remove illegal input characters.
13640 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
13642 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13644 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
13646 * troff/div.c (begin_page): Change behaviour when
13647 !first_page_begun and !break_flag.
13649 * troff/input.c (do_name_test): Return 0 if argument is empty.
13651 * troff/input.c (read_long_escape_name): Require closing ] to be
13652 at same input level as opening [.
13654 * troff/input.c (read_increment_and_escape_name): New function.
13655 (get_copy, process_input_stack): Use this for \n.
13657 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
13659 * troff/div.c (top_level_diversion::begin_page): Ignore the
13660 current value of page_number if !first_page_begun.
13662 * groff.c (main): Fix declaration of buf.
13664 * troff/input.c (do_name_test): New function.
13665 (token::next): Implement \A.
13666 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13667 (token::description, token::add_to_node_list, token::process):
13668 Handle TOKEN_ESCAPE.
13669 * troff/token.h: New token TOKEN_ESCAPE.
13671 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
13673 * pic/main.c (do_picture): Allow space before and after filename
13674 following `<'. Check that the filename is not empty.
13676 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
13678 * Version 1.01 released.
13680 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13682 * dvi/tmac.dvi: ftr HR to H.
13684 * macros/tmac.e: Round up computation of $r.
13686 * xditview/tmac.X: Don't give up completely in compatibility mode.
13687 Use \n(.s instead of \n[.s].
13689 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13690 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13691 Add u to factors inside \s[...]. Rename frac to dvi-frac.
13692 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13693 short names in the char definitions.
13695 * ps/tmac.ps: Don't give up completely in compatibility mode.
13696 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13697 quote in front of \n(.s. Add u to factors inside \s[...].
13699 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
13701 * tty/tmac.tty: Call the nroff request.
13703 * macros/tmac.e ((x, )x): Better definitions that work properly
13705 (@0, @1): Helper macros for (x.
13707 * macros/tmac.e ($s, hl): Use \l rather than \D.
13709 * tty/tmac.tty: Make it work better in compatibility mode.
13710 (pchar): Rename to tty-char.
13712 * macros/tmac.e (@E): New macro.
13713 (r, i, b, rb, bi): Use @E.
13715 * macros/tmac.e (@F): Don't use (;...) syntax.
13717 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
13718 it was modified for groff.
13720 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13722 * macros/tmac.e (<., .>): Removed.
13723 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13725 * macros/tmac.e: Remove check that groff is being used.
13727 * macros/tmac.e (@C): Change families only if using groff; turn
13728 compatibility mode off while changing familes. Save compatibility
13729 mode before changing families and restore it afterwards.
13731 * macros/tmac.e (@h): Remove test for offset + line length.
13733 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
13734 (lo, th, ac): Define to call @S instead of using als.
13736 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13737 the ratio of the vertical spacing to the point size in units
13738 expressed as a percentage. Use these instead of $10r and $10R,
13739 Delete $10r and $10R.
13741 * lib/font.c (font::load): In default computation of space_width,
13742 divide by sizescale. Use scale_round.
13744 * macros/tmac.an (TP): Don't call `nf'.
13745 (an-do-tag): Don't call `fi'.
13747 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
13749 * troff/input.c (process_input_stack): Handle the case where
13750 spaces at the beginning of an input line are followed by a
13753 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
13755 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13756 * groff.sh: Use pic -x with the dvi device.
13758 * dvi/devdvi/FontMakefile (H): Don't use -s.
13760 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13761 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13762 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13765 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
13767 * ps/psfig.diff: New file.
13768 * ps/tmac.psfig: New file.
13770 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
13772 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13773 (]-): Don't call ref*do-tl.
13775 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13777 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13778 (fn@do-FS): Rename to fn*do-FS.
13780 * troff/input.c (transparent_translate): New function.
13781 (process_input_stack): Apply transparent_translate before calling
13782 diversion::transparent_output(unsigned char).
13784 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
13786 * troff/input.c (do_define_macro): Define the macro before calling
13789 * xditview/Makefile: Add DEVICES variable. Change install target
13792 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
13794 * groff.c (run_commands): Handle the possibility that there are
13795 child processes other than those forked by us.
13797 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
13799 * lib/string.c (string::append): New function.
13800 * lib/stringclass.h: Declare it.
13802 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
13804 * eqn/main.c (main): New option -N which sets
13805 no_newline_in_delim_flag.
13806 (do_file): If no_newline_in_delim_flag is set don't allow newlines
13808 * groff.c (main): Pass -N on to eqn.
13809 (help, synopsis): Mention -N.
13810 * groff.sh: Implement -N.
13812 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
13814 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13815 (]-): Call ref*do-tl if ref*need-tl is non-zero.
13816 (XP): Allow as initializer.
13818 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
13820 * troff/env.c (environment::wrap_up_field): If field_spaces are
13821 non-zero and we have a current_tab, subtract padding from
13822 tab_distance. If this makes tab_distance <= 0, use the next tab
13823 stop instead. If there isn't any next tab or it's a left tab,
13824 wrap up the current tab.
13825 (environment::start_field): Initialize tab_precedes_field.
13826 (environment::wrap_up_tab): If there's a current field, update
13827 pre_field_width, field_distance and tab_precedes_field.
13828 * troff/env.h (environment::tab_precedes_field): New member.
13830 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
13832 * ps/ps.c (ps_printer::do_file): New function.
13833 (ps_printer::special): Bind to `file' special.
13834 (ps_printer::do_exec): Set ndefined_styles to 0.
13836 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
13838 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13839 Avoid stripping first character from the start of unrecognized
13840 escapes. Use lex_error instead of error to report errors.
13841 * eqn/lex.c (get_token): Rework handling of escapes.
13842 (lex_error): Move declaration into...
13845 * xditview/xditview.c (main): Make -page option work.
13847 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13849 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
13851 * macros/tmac.s (B2): Correct size of box.
13853 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
13855 * macros/tmac.s (B2): Postpone drawing the box until in the
13856 top-level diversion.
13858 * tty/tmac.tty: Add font translations for C, CR, CW.
13860 * groff.c (synopsis, help): Document -i.
13861 * groff.sh: Implement -i.
13863 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13864 Simplify the construction of SN.
13866 * troff/number.c (parse_term): Give `|' a higher precedence.
13867 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13870 * macros/tmac.s (B2): Use par@finish instead of par@reset.
13872 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
13874 * lib/string.c (string::move): New function.
13875 * lib/stringclass.h: Declare it.
13877 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
13879 * troff/env.c (distribute_space): Add optional argument
13881 (environment::wrap_up_field): Call distribute_space with
13882 `force_forward' argument of 1.
13884 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
13886 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13887 Inline it. Move reallocation into...
13888 (string::grow1): New function.
13889 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13890 dependencies to include library header files.
13891 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13893 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
13895 * macros/tmac.s (@NH): Use the same number registers than -ms does
13896 for the heading level counters. Use the same string that -ms does
13897 for the number for this heading.
13899 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
13901 * lib/new.c (operator new): Cast result of malloc to char *.
13903 * troff/input.c (spring_trap, lookup_request): Add assert that nm
13906 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
13908 * groff.c (main): Support -i.
13910 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
13912 * pic/pic.h: Include <osfcn.h>.
13914 * ps/ps.c: Add declaration of mktemp.
13916 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
13917 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
13918 argument as union wait *.
13919 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
13920 argument to union wait *.
13922 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
13924 * tty/tmac.tty: Add definition of \(co.
13926 * pic/object.c (make_arc): Only increase radius when radius
13927 strictly less than d.
13928 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
13931 * troff/env.c (environment::environment(symbol),
13932 environment::environment(const environment *)): Initialize
13935 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
13937 * tbl/main.c (main): Add exit(0).
13939 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
13941 * pic/main.c (main):
13942 * eqn/main.c (main):
13943 * tbl/main.c (main):
13944 * etc/soelim.c (main):
13945 * driver/printer.c (printer::~printer):
13946 * troff/node.c (real_output_file::~real_output_file,
13947 real_output_file::flush): Check for errors on stdout.
13949 * most files: Add 1991 to copyright notice.
13951 * macros/tmac.s: Don't test \n(.x and \n(.y.
13953 * troff/input.c (token::next): Rename `escape_char' label to
13954 `handle_escape_char' and `normal_char' label to
13955 `handle_normal_char'.
13957 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
13959 * groff.c (main, synopsis, help): Support -a option.
13960 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
13961 to trflags while parsing options.
13963 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
13965 * troff/number.c (parse_term): With `m', `M' and `n' scale
13966 indicators, convert scale factor to hunits before scaling.
13968 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
13970 * lib/font.c (scale_round): Better test for overflow when n is
13973 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
13975 * tbl/main.c (process_format): Add second argument of type
13976 options*. Change callers. Allow opt->tab_char as well as '\t'
13977 between format items.
13979 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
13981 * macros/tmac.an (PD): With no arguments, make sure register PD is
13983 (TH): Call PD with no argument, instead of setting register PD
13986 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
13988 * Version 1.00 released.
13990 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
13992 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
13994 * dvi/devdvi/DESC: Mount CW instead of CR.
13996 * dvi/tmac.dvi: Add definition of \(tm.
13998 * dvi/devdvi/texsy.map: Add lh, and rh.
13999 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14000 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14002 * dvi/devdvi/FontMakefile: Generate H from cmss10.
14003 * dvi/devdvi/Makefile: Install H.
14004 * dvi/devdvi/H: New file.
14006 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
14008 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14011 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
14013 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14015 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14017 * macros/tmac.s (@EN): Handle the case where the equation is empty
14018 but the label is not.
14020 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
14022 * troff/groff.h: New warning category WARN_SPACE.
14023 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14024 WARN_SPACE to warning_table.
14025 (interpolate_macro): Give a warning of type WARN_SPACE if the name
14026 is longer than two characters and is not defined, but the first
14027 two characters do make a defined name.
14029 * PROBLEMS: New file.
14031 * CHANGES: New file.
14032 * README-0.6, README-1.00: Deleted.
14034 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14035 * xditview/devX75/Makefile: Make devX75-12.
14036 * xditview/devX100/Makefile: Make devX100-12.
14038 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14039 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14041 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
14043 * README-0.7: Rename to README-1.00.
14045 * macros/tmac.pic: New file.
14046 * macros/Makefile (install.nobin): Install tmac.pic.
14048 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
14050 * troff/env.c (hyphen_word): Correct the test for whether the
14051 token is a hyphen. Reset npos to 0.
14053 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14055 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
14057 * macros/tmac.s (ds*common-end): Call par*reset.
14059 (par@reset-indent): Deleted.
14061 * macros/tmac.s (@IP): Divert the label.
14063 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
14065 * xditview/draw.c (setGC): Use a line width of .1m rather than
14066 .04m by default; round rather than truncate value.
14068 * tbl/table.c (class empty_entry): New class.
14069 (empty_entry::empty_entry, empty_entry::line_type): New functions.
14070 (table::add_entry): Represent empty entries by objects of type
14072 (table_entry::line_type): Return -1.
14073 (table::determine_row_type): Ignore entries with line_type 0.
14074 Treat type -1 as non-lines.
14076 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
14078 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14079 macros/tmac.s: Rename \(-d to \(Sd.
14081 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
14083 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14084 * xditview/libXdvi/DviChar.c: Likewise.
14085 * dvi/devdvi/texsy.map: Add `<<', `>>'.
14087 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
14089 * troff/div.c (top_level_diversion::begin_page): Call
14090 init_output() if the_output is 0.
14092 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
14094 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14096 (get_copy): Turn \E into ESCAPE_E.
14097 (token::process, asciify): Handle ESCAPE_E.
14099 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14101 (DS): Implement `.DS R'.
14103 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
14105 * macros/tmac.s (FS): New macro.
14107 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14109 * macros/tmac.s (cov*tl-init): Remove after first execution
14110 instead of aliasing to @nop. Call top of page macro explicitly
14111 instead of setting trap; call @init first. Set pg@top as top of
14113 (cov*auto-init): Deleted. Set cov*tl-init instead of
14114 cov*auto-init as top of page trap.
14115 (TL, LP): Do a break instead of calling cov*tl-init.
14116 (cov*print): With RP format but no TL, alias FS and FE to @FS and
14117 @FE; in this case also give a warning and always start another
14118 page. No need to set pg@top here.
14119 (cov*tl-init): Rename to cov*first-page-init.
14121 * macros/tmac.s (RP): Do `.pn 0'.
14122 (cov*tl-init): With RP format don't do `.pn 0'.
14124 * macros/tmac.s (pg@cs-top): Set no space mode.
14126 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
14127 (cov*ab-init): Alias TL, AU and AI to these.
14129 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
14131 * macros/tmac.s (@EQ): Move the space before the equation into @EN
14132 (@EN): Do nothing unless \n[dl] is > 0.
14134 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
14136 * pic/object.c (ellipse_object::radius): New function.
14138 * VERSION: Change version to 0.7.
14140 * tbl/table.c (block_entry::do_divert): Declare return type as
14142 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
14144 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
14146 * troff/column.c: New file.
14147 * troff/Makefile: Corresponding changes.
14149 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
14152 * troff/div.c (top_level_diversion::space): If the space causes
14153 the first-page transition and springs a trap, truncate the space
14156 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
14158 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
14161 * pic/troff.c (troff_output::line_thickness,
14162 troff_output::set_fill): Do a horizontal motion to compensate for
14163 the width of the \D escape sequence.
14165 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
14167 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
14170 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
14173 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
14174 Supply empty definition.
14175 (text_entry::simple_print, simple_text_entry::simple_print):
14176 Delete declarations.
14177 (table::add_entry): Represent empty entries by objects of type
14180 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
14182 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
14184 * tbl/table.c (left_text_entry::add_tab): New function.
14186 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
14187 initialize like LP.
14189 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
14191 * troff/env.c (environment::start_field): Give an error message if
14192 there is no next tab.
14194 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
14196 * troff/env.c (hyphenate): Skip initial elements with zero
14199 * macros/tmac.s (par@init): Keep VS in points rather than units.
14201 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
14203 * pic/main.c (main): Implement `-c' option.
14204 * pic/output.h: Declare make_tpic_output().
14205 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14207 (tpic_output): New class.
14208 (tpic_output::tpic_output, tpic_output::set_pen_size,
14209 tpic_output::command, make_tpic_output): New functions.
14211 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
14213 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
14214 if they're not already defined.
14215 * tbl/table.c (init_output): Don't test \n(.g.
14217 * troff/input.c (do_if_request): Delete `g' condition. Recognize
14218 `d', `r' and `c' conditions even in compatibility mode.
14220 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
14222 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14225 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
14227 * troff/env.h (environment::prev_line_interrupted): New member.
14228 (environment::get_prev_line_interrupted): New function.
14229 * troff/env.c (environment::newline): Set prev_line_interrupted.
14230 (environment::environment(const environment *),
14231 environment::environment(symbol)): Initialize
14232 prev_line_interrupted.
14233 * troff/input.c (process_input_stack): Don't give special
14234 treatment to space and newline at the beginning of the line if the
14235 previous line was interrupted.
14237 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
14239 * eqn/eqn.y: Disallow PRIME by itself.
14240 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14242 (def_table): Remove definition of '. Define prime to be `.
14244 * eqn/eqn.y: Split off part of rule `script' into a new rule
14247 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
14249 * macros/tmac.s ({, }): New string aliases.
14251 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
14253 * README-0.7: New file.
14255 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
14257 * macros/tmac.s: New file.
14258 * man/groff_ms.man: New file.
14259 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14260 * Makefile.bd: Similarily.
14261 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14262 definition of TMAC_S.
14263 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14264 * macros/TODO: New file.
14266 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
14268 * troff/env.c (right_justify): New function.
14269 (init_env_requests): Bind this to request "rj".
14270 (center_lines): Set right_justify_lines to 0. If we get a bad
14271 integer, center 1 line.
14272 (environment::environment(symbol), environment::environment(const
14273 environment *)): Initialize right_justify_lines.
14274 (environment::get_right_justify_lines): New function.
14275 (init_env_requests): Bind this to number_register ".rj".
14277 * troff/env.c (environment::choose_breakpoint): Implement
14278 hyphenation_margin and hyphenation_space.
14279 (environment::get_hyphenation_space,
14280 environment::get_hyphenation_margin): New functions.
14281 (init_env_requests): Bind these to .hys and .hym.
14282 (hyphenation_space_request, hyphenation_margin_request): New
14284 (init_env_requests): Bind these to hys and hym.
14285 (environment::environment(symbol), environment::environment(const
14286 environment *)): Initialize hyphenation_margin and
14288 * troff/env.h: Corresponding changes to class environment.
14290 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
14292 * troff/div.c (blank_line): Always do a break.
14294 * eqn/box.c (do_text): Turn off escapes while appending text to
14297 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
14299 * troff/input.c (while_break_request, while_continue_request): New
14301 (init_input_requests): Bind these to "break" and "continue".
14302 (while_depth, while_break_flag): New variables.
14303 (while_request): Update while_depth. Break out of loop if
14304 while_break_flag is set.
14306 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
14308 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14311 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
14313 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
14315 * stringify: New file.
14316 * Makefile (groff.o): Use stringify.
14318 * xditview/tmac.X: Remove definition of \(rn.
14319 * xditview/libXdvi/DviChar.c: Remove radicalex from
14322 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
14324 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14325 (alphabetic_block_entry::alphabetic_block_entry,
14326 alphabetic_block_entry::divert, alphabetic_block_entry::print):
14328 (block_entry::divert): Split off body into ...
14329 (block_entry::do_divert): If the block is alphabetic, subtract 2n
14330 from the line length; also update the span width to dl+2n, and the
14331 alphabetic span width to dl.
14333 * driver/input.c (do_file): While reading argument to D command,
14334 when expanding buffer, multiply szp by sizeof(int) rather than 2
14335 in the argument to memcpy.
14337 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14338 width of alphabetic columns.
14340 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
14342 * troff/node.c (lookup_family): Supply second argument to lookup.
14344 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14345 search, return immediately if v is 0.
14347 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14348 (troff_output::start_picture): Set this reg.
14349 (troff_output::end_picture): Remove this reg
14350 * eqn/box.c (box::extra_space): Don't produce `\x's if
14351 EQN_NO_EXTRA_SPACE_REG is defined.
14353 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14354 * eqn/text.c (split_text): Map ' to \(fm when it's the first
14357 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
14359 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14362 * troff/div.c (top_level_diversion::top_level_diversion):
14363 Initialize page_number to 0.
14365 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
14367 * groff/troff (environment::environment(const environment *)):
14368 Initialize name to e->name, rather than "anonymous".
14370 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
14372 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14373 requested_page. Split middle part into ...
14374 (FindPage): New function.
14375 (SetValues): If we don't yet know the last page, and the requested
14376 page is greater than the current page, call FindPage.
14377 Update the font_map_string before doing this.
14379 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14380 Translate \(lh and \(rh into left and right double arrows.
14382 * troff/node.c (class hyphen_inhibitor_node): New class.
14383 (hyphen_inhibitor_node::hyphen_inhibitor_node,
14384 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14385 hyphen_inhibitor_node::type,
14386 hyphen_inhibitor_node::get_hyphenation_type): New functions.
14387 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14388 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14391 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
14393 * troff/node.h (dummy_node::get_hyphenation_type,
14394 transparent_dummy_node::get_hyphenation_type): Declare them.
14395 * troff/node.c: (dummy_node::get_hyphenation_type,
14396 transparent_dummy_node::get_hyphenation_type): New functions.
14398 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
14400 * xditview/libXdvi/draw.c: If M_PI not defined after including
14401 math.h, then define it.
14403 * xditview/Makefile: Add definition of AR. Pass it to the submake
14405 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14407 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
14409 * troff/dictionary.h (object_dictionary::alias): Declare return
14411 * troff/dictionary.c (object_dictionary::alias): Return non-zero
14412 if the old name was defined.
14413 * troff/input.c (alias_macro): Give a warning if the old name was
14415 * troff/reg.c (alias_reg): Likewise.
14417 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
14419 * troff/input.c (token::next): Delete implementation of \R.
14421 * macros/Makefile: Strip comments from tmac.e while installing it.
14423 * troff/input.c: New variable `nroff_mode'.
14424 (troff_request, nroff_request): New functions.
14425 (init_input_requests): Bind `troff' and `nroff' to troff_request
14427 (do_if_request): Compute results of t and n conditions from
14430 * text/text.c (split_text): Fix typo in >=.
14432 * eqn/lex.c: Add definition of `==' to def_table.
14434 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
14436 * pic/tex.c (tex_output::start_picture): Change the definitions of
14437 \graph and \graphtemp so that they work properly with Plain TeX.
14439 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14440 argument to `ar' is not less than the first.
14442 * pic/pic.y: Allow a comma between elements of the variable list
14443 in the argument to `reset'.
14445 * pic/object.c (arc_object::arc_object): Fix computation of
14448 * eqn/main.c (main): Add exit(0).
14450 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
14452 * troff/div.c (begin_page): Test no_space_mode after doing the
14453 break, but still push the page ejector cookie before doing the
14454 break. Also set the next page number after doing the break.
14456 * xditview/xditview.c (NewFile): Don't set the title and icon name
14457 if this is the first file and its name is `-'.
14458 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
14459 the X75 and X100 devices.
14460 (main): If a device has the XT_OPTION flag set and there's exactly
14461 one file argument, pass the driver -xrm and -title options to set
14462 the icon name and window title to the name of the file.
14464 * troff/env.c (environment_switch): If there was an argument but
14465 it wasn't a valid number or name, then pop an environment but
14466 don't give an error message on underflow.
14468 * troff/number.c (start_number): Correct spelling in error message.
14470 * troff/input.c (token::delimiter): Don't print an error message
14473 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14474 ParseDrawFunction if dw->display_enable is true.
14476 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
14478 * pic/pic.y: Parse text positioning like normal attributes, so as
14479 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
14480 positioning attribute.
14482 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
14484 * tbl/main.c (process_data): When in state START while reading a
14485 text block, don't change to state MIDDLE if c is a newline.
14487 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
14489 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14490 so as to avoid shadowing parameter.
14492 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
14494 * tbl/table.c (trim_space): Deleted.
14495 (table::add_entry): Don't call trim_space.
14497 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
14499 * VERSION: Change version to 0.6.
14501 * troff/number.c (parse_expr): Make == work.
14503 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
14505 * man/grog.man: New file.
14506 * man/Makefile: Add grog.n to MAN1PAGES.
14507 * etc/grog.sh: New file.
14508 * etc/Makefile: Install grog.sh as grog.
14510 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
14512 * troff/input.c (token::next): Implement \E.
14514 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
14516 * xditview/tmac.X: Change font translations to match tmac.ps.
14518 * troff/input.c (non_empty_name_warning): Don't give a warning if
14519 `\{' terminates the name.
14521 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
14523 * ps/devps/symbol.diff: New file.
14524 * ps/devps/FontMakefile: Mention symbol.diff.
14526 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
14528 * troff/node.c (font_position): Use get_long_name to read the
14531 * troff/env.c (environment_switch): If we get a number that's < 0
14532 or >= NENVIRONMENTS, treat it like a name.
14533 Change NENVIRONMENTS to 10.
14535 * troff/groff.h: Remove definition of FONTS_MAX.
14536 * troff/node.h (class font_family): Make map a pointer instead of
14537 an array. Add a map_size member. Make it a class. Make nm const
14538 and public. Make invalidate_fontno a friend.
14539 * troff/node.c: Define font_table_size. Make font_info a pointer
14540 rather than an array.
14541 (class troff_output_file): Allocate font_position dynamically. Add
14542 nfont_positions member.
14543 (troff_output_file::set_font): Grow font_position if necessary.
14544 (troff_output_file::~troff_output_file): Delete font_position.
14545 (troff_output_file::troff_output_file): Allocate font_position.
14546 (grow_font_table): New function.
14547 (troff_output_file::really_begin_page,
14548 troff_output_file:really_copy_page): Use nfont_positions rather
14550 (mount_font_no_translate, mount_style): Call grow_font_table if
14552 (font_family::font_family): Allocate map.
14553 (font_family::make_definite): Grow map if necessary. Use
14554 font_table_size instead of FONTS_MAX.
14555 (font_family::~font_family): New function.
14556 (invalidate_fontno): Use font_family::map_size.
14557 (get_fontno, env_space_width, env_half_narrow_space_width,
14558 env_narrow_space_width, symbol_fotno, is_good_fontno,
14559 get_bold_fontno, make_glyph_node): Use font_table_size rather than
14561 (next_available_font_position): Never return 0.
14563 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
14565 * ps/tmac.ps: Add font translations for compatibility with dpost.
14567 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
14569 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14570 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14571 Move definitions baseline_sep, shift_down, column_sep,
14572 matrix_side_sep into...
14573 * eqn/box.c: Add them to param_table.
14574 * eqn/pbox.h: Add declarations to pbox.h.
14576 * troff/input.c (set_string): Cast value to unsigned char *.
14578 * troff/token.h (process_input_stack): Declare it static before
14579 declaring it a friend.
14581 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
14583 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14585 * dvi/devdvi/EX: Regenerate.
14587 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14590 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
14592 * eqn/lex.c: In defaults_table, make definition of `dot' call
14593 `dot_def'. Don't explicitly make it roman. Similarily for other
14596 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14598 (for_input::get, for_input::peek): Use this.
14599 (do_for): Add by_is_multiplicative argument.
14600 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14601 Change semantic value of optional_by to be a double plus a flag
14602 saying whethet the by clause is multiplicative.
14604 * eqn/lex.c (get_delimited_text): Remember location of start of
14605 definition. Improve error handling when EOF is encountered.
14607 * lib/font.h: Rename handle_x_command to
14608 handle_unknown_font_command.
14609 * lib/font.c (font::load): Call handle_unknown_font_command for
14610 any unknown command in the font description file. Don't call
14611 handle_x_command. Include the name of the command in the argv.
14612 Improve message for unknown command after kernpairs or charset
14614 * ps/ps.c (ps_font::handle_x_command): Rename to
14615 handle_unknown_font_command. Remove message about `x download'
14616 command. Give error message for wrong number of arguments.
14617 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14618 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14619 handle_unknown_font_command. Give an error message for wrong
14620 number of arguments. Rename design_size to designsize.
14621 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14622 checksum', `designsize' instead of `design_size'.
14624 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
14626 * eqn/*.[chy]: Change underaccent to uaccent.
14628 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
14629 give it the same precedence as ACCENT.
14630 * eqn/other.c (make_underaccent_box): New function.
14631 * eqn/box.h: Declare it.
14632 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14635 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
14637 * pic/pic.y (reset_all): New function. Called in rule for RESET.
14638 (parse_init): Call reset_all.
14639 (define_variable): When defining scale reset only those
14640 pre-defined variables that are scaled.
14641 (defaults_table): Add `scale' as non-scaled value.
14643 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14644 together with the text; allow any number of positioning words;
14645 allow center as a positioning word.
14647 * pic/object.c (output::compute_scale): Get picture maximum height
14648 and width from variables called maxpswid and maxpsht.
14649 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14651 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
14653 * pic/object.c (object_spec::make_text): Multiply textht by number
14656 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14658 (do_sprintf): New function.
14659 (pic.gperf): Add sprintf token.
14660 (text, sprintf): New rules.
14662 * pic/pic.y: `rand()' with no arguments returns a random number
14663 in the range [0,1).
14665 * pic/pic.y: Allow a bare expression to be an attribute: change
14666 precedences to support this. Change optional_ordinal rule to
14667 optional_ordinal_last to avoid reduce/reduce conflict.
14668 * pic/object.c (object_spec::object_spec): Initialize direction.
14670 * pic/pic.y: Implement ^ operator meaning exponentiation.
14672 * troff/node.h: Add default argument to mount_font.
14673 * troff/node.c (font_position): Read an optional third argument
14674 giving the external_name.
14675 (mount_font): Add optional argument giving the external_name.
14676 (mount_font_not_translate): Have additional argument giving
14677 external name. Use this name to load the font. Pass both names
14678 to font_info::font_info.
14679 (font_info::font_info): Have additional argument giving
14681 (class tfont): New member external_name.
14682 (font_info::get_tfont): Use external name to construct tfont_spec.
14684 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
14686 * eqn/lex.c (init_table): Add argument giving device. Define
14687 name of device to be "1".
14688 (do_ifdef): Counts as true if the argument has been defined with
14690 * eqn/main.c (main): Call init_table with device argument. Make
14691 device local to main.
14692 * eqn/eqn.h: Change declaration of init_table. Remove declaration
14695 * pic/lex.c (get_delimited): Allow text to be delimited by
14696 matching {}s. Don't recognize ending delimiter within a string.
14698 * troff/input.c (get_delim_name): New function.
14699 (token::next): Implement \C.
14701 * lib/font.c (font::load): Grok ---. Add an alias for each
14702 character based on its code.
14703 (font::get_code_width): Deleted.
14704 * lib/font.h (class font): Declare font::number_to_index().
14705 Remove declaration of font::get_code_width.
14706 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14707 to indices of named characters.
14708 (font::number_to_index): New function.
14709 * troff/input.c (font::number_to_index): New function.
14710 (get_charinfo_by_number, charinfo::get_number,
14711 charinfo::set_number): New functions.
14712 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14713 (token::process, token::description, token::get_char,
14714 token::add_to_node_list, token::operator==): Handle
14715 TOKEN_NUMBERED_CHAR.
14716 * troff/charinfo.h: Declare get_charinfo_by_number,
14717 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
14719 (charinfo::numbered): New function.
14720 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14721 * troff/env.h (class environment): Remove declaration of ...
14722 * troff/env.c (environment::make_numbered_char_node): Deleted.
14723 * troff/node.c (make_numbered_node): Deleted.
14724 (class numbered_glyph_node): Remove.
14725 (troff_output_file::put_char_width, troff_output_file::put_char):
14726 Handle numbered chars.
14727 (troff_output_file::numbered_char): Removed.
14728 (tfont::get_code_width): Removed.
14729 (make_glyph_node): Don't search special fonts for numbered
14731 * troff/node.h: Remove declaration of make_numbered_node.
14732 * driver/input.c (do_file): Handle N command.
14733 * driver/printer.h: Add declaration of ...
14734 * driver/printer.c (printer::set_numbered_char): New function.
14735 * dvi/tfmtodit.c (main): Generate unnamed entries.
14736 * ps/devps/afmtodit: Likewise.
14737 * xditview/xtotroff.c (MapFont): Likewise.
14738 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14740 * tbl/main.c (process_format): If multiple widths are specified
14741 for a column but all the widths are the same, don't give an error
14744 * tbl/table.c (table::do_row): If the current row is all lines and
14745 the stuff doesn't contains a line, mark the top of the row after
14746 printing stuff before the row. If the current row is not all
14747 lines and the stuff doesn't contain a line, don't unnecessarily
14748 mark the top of the row before printing the stuff.
14750 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
14752 * troff/groff.h: Remove MAX_PATH.
14753 * troff/input.c (open_file): Dynamically allocate space for the
14755 (open_mac_file, process_macro_file): Corresponding changes.
14757 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
14759 * troff/node.h (class output_file): Make copy_file pure. Add
14760 vspace method ifdef COLUMN. Add is_printing method.
14761 * troff/node.c: Add class printing_reg. Add class
14762 real_output_file. Derive other output_file classes from
14763 real_output_file; in these classes rename begin_page to
14764 really_begin_page, print_line to really_print_line, copy_file to
14765 really_copy_file, transparent_char to really_transparent_char.
14766 Move output_file::flush to real_output_file. Add printing member
14767 to class output_file.
14768 * troff/div.h: Remove printing member from top_level_diversion.
14769 Add vspace member function to class diversion ifdef COLUMN. Add
14770 some declarations ifdef COLUMN.
14771 * troff/div.c (top_level_diversion::copy_file,
14772 top_level_diversion::transparent_output,
14773 top_level_diversion::output): Don't test printing member before
14775 * troff/input.c: Handle initial variable_space_request ifdef
14777 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14778 but comment it out.
14780 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
14782 * troff/div.c (diversion::need): Make any space forced. If we
14783 sprung a trap, set truncated_space to minus the distance to the
14784 trap and set needed_space to the amount that was needed.
14785 (top_level_diversion::space): A forced space turns no_space_mode
14787 (class constant_vunits_reg): New class.
14788 (init_div_requests): Implement number registers .trunc and .ne
14789 using constant_vunits_reg.
14790 (class truncated_space_reg): Deleted.
14792 * troff/div.h: Don't have a no_space_mode member in diversion.
14793 Instead have it in top_level_diversion.
14794 * troff/div.c (diversion::diversion): Don't initialize
14796 (top_level_diversion::top_level_diversion): Initialize
14798 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14799 (macro_diversion::output): Don't clear no_space_mode.
14801 * troff/input.c (diverted_space_node::reread): Don't call
14802 environment::do_break. In fill mode, act like a blank line.
14803 (diverted_copy_file_node::reread): Don't call
14804 environment::do_break.
14806 * troff/div.c (blank_line): New function.
14807 * troff/div.h: Declare it.
14808 * troff/input.c (process_input_stack): Call it.
14810 * troff/div.c (truncated_space_reg::get_string): New function.
14811 (init_div_requests): Bind to .trunc.
14812 (space_request, top_level_diversion::space,
14813 top_level_diversion::output, macro_diversion::space,
14814 macro_diversion::output): Update truncated_space.
14815 (macro_diversion::output): Redo calculations when trap sprung.
14816 (macro_diversion::output, macro_diversion::space): No need for
14819 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14820 after truncating post line spacing.
14822 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
14824 * ps/devps/prologue (MF, SF): Make them work even if setfont is
14825 defined as a procedure rather than as an operator.
14827 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
14829 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14831 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
14833 * troff/div.c (top_level_diversion::output): Merge
14834 output_file::print_line and output_file::end_of_line member
14836 * troff/div.h (class output_file):
14837 * troff/node.c (troff_output_file::print_line,
14838 troff_output_file::end_of_line, output_file::end_of_line,
14839 ascii_output_file::print_line, suppress_output_file::print_line):
14840 Corresponding changes.
14842 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
14844 * troff/input.c (token::next): Don't give a warning for `\.'.
14846 * troff/env.c (environment::get_center_lines): New function.
14847 (init_env_requests): Bind number register .ce to it.
14848 * troff/env.h: Declare it.
14849 * tbl/table.c (table::init_output): Define reset macro to restore
14850 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
14852 (table::print): If center option not given, then imply center
14853 option if SAVED_CENTER_REG > 0.
14855 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
14857 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14858 Troff.ps from DOWNLOAD.
14860 * troff/Makefile: Change comment in DEFINES to avoid confusing
14863 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14864 code. Don't try to catch errors with stopped.
14865 (check_line_lengths): New function.
14866 * ps/devps/prologue (EXEC): Deleted.
14867 (EBEGIN, EEND): New procedures.
14869 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
14871 * troff/input.c: Include request.h before node.h.
14872 * troff/node.c: Likewise.
14873 * troff/env.c: Likewise.
14874 * troff/div.c: Likewise.
14875 * troff/node.h (class special_node): Store argument as a macro
14876 rather than a char *.
14877 * troff/node.c (special_node::special_node, special_node::copy):
14879 (special_node::~special_node): Deleted.
14880 (special_node::tprint): Deleted.
14881 (special_node::tprint_start, special_node::tprint_end,
14882 special_node::tprint_char): New functions.
14883 (troff_output_file::special): Deleted.
14884 (troff_output_file::start_special, troff_output_file::end_special,
14885 troff_output_file::special_char): New functions.
14886 * troff/input.c (special_node::tprint): New function.
14887 (do_special): Use macro not char *.
14888 (do_transparent_macro): Deleted.
14889 (token::next): Don't call do_transparent_macro.
14891 * troff/input.c (token::next): Add 'Y' case.
14892 (do_transparent_macro): New function.
14893 * troff/node.c (troff_output_file::special): Handle newlines with
14894 argument using new continuation convention.
14895 * driver/input.c (get_string): Cope with continuation convention.
14896 (do_file): Don't call skip_line after calling get_string(1).
14897 * ps/ps.c (ps_printer::special, ps_printer::do_import,
14898 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
14900 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
14903 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
14905 * troff/input.c (asciify): By default, illegal input characters
14906 should return empty string.
14908 * troff/input.c (copy_file): Handle first page transition like title.
14909 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
14911 * troff/input.c (token::next): Improve error message for EOF after
14913 (input_char_description): New function.
14914 (get_char_for_escape_name): Use input_char_description.
14915 (token::next): Warn about unrecognized escape sequences.
14916 (warning_table): Add WARN_ESCAPE.
14917 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
14920 * troff/token.h: Remove declaration of process_input_stack.
14922 * troff/input.c: Remove declaration of init_hyphen_requests.
14923 * troff/request.h: Correct spelling in declaration of same.
14925 * troff/input.c (token::next): Check whether escape_char is 0.
14927 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
14929 * groff.c (main, usage, help): Implement -P and -L options.
14930 * groff.sh: Likewise.
14932 * troff/input.c (token::next): Use some gotos to avoid code
14935 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
14936 Avoid calling symbol::symbol if name empty.
14938 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
14940 * troff/input.c (init_input_requests): Make \n(.x return the major
14941 version number and \n(.y return the minor version number.
14942 * troff/Makefile: Construct file majorminor.c defining
14943 major_version and minor_version automatically from ../VERSION.
14945 * troff/node.c (class glyph_node): Make operator new and operator
14947 (class ligature_node): Similarily.
14949 * troff/input.c (operator==(const macro &, const macro &)): New
14951 (non_interpreted_node::same): Use this.
14952 (string_iterator::string_iterator): Make macro& argument const.
14954 * troff/input.c (input_iterator::get): New function. Don't make
14955 asciify_macro or class non_interpreted_node friends of class
14957 (non_interpreted_node::interpret): Use input_iterator::get.
14958 (asciify_macro): Likewise.
14960 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
14961 ~non_interpreted_node): Deleted.
14962 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
14965 * troff/symbol.h: Make all symbol member functions const.
14967 * lib/strtol.c: New file.
14968 * lib/Makefile: Add strtol.c.
14969 * Makefile: Define STRTOL as strtol.o to include strtol in
14972 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
14974 * pic/troff.c (troff_output::simple_circle): Divide by scale.
14976 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
14978 * troff/input.c (do_special): Use input_level.
14980 * troff/token.h (TOKEN_BACKSPACE): New token.
14981 (token::backspace): New function.
14982 * troff/input.c (token::description, token::next, token::process):
14983 Grok TOKEN_BACKSPACE.
14984 (do_special): Turn TOKEN_BACKSPACE back into \b.
14986 * troff/token.h (token::leader): New function.
14987 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
14989 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
14991 * troff/input.c (do_special): Use token::description in error
14994 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
14996 * troff/input.c (decode_args): Combine quoted and
14997 quote_input_level variables. Make it a for (;;) loop.
14999 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15001 * troff/input.c (read_long_escape_name): The test for whether to
15002 expand buffer was off by 1.
15003 (read_string): Similarily.
15005 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
15007 * troff/input.c: Use `const int' rather than `static const int'.
15009 * troff/div.h (diversion::copy_file): Declare as pure virtual.
15010 (macro_diversion::copy_file): New function.
15011 * troff/node.h: New class diverted_copy_file_node.
15012 * troff/node.c: Implement it.
15013 * troff/input.c (copy_file): Use diversion::copy_file. Handle
15014 first page transition by pushing a diverted_copy_file_node.
15015 * troff/input.c (token::next, process_input_stack): Don't handle
15018 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
15020 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15021 whether space widths need adjusting.
15023 * troff/charinfo.h: Generalize translated_to_space to
15024 special_translation so as to allow translation to \&.
15025 * troff/input.c (translate): Allow translation to \&.
15026 (charinfo::*): Corresponding changes.
15027 * troff/node.c (make_node, node::add_char): Corresponding changes.
15028 * troff/node.h (dummy_node::dummy_node): Allow optional first
15031 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15032 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15034 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15035 TOKEN_REQUEST with an argument of TITLE_REQUEST.
15036 (token::process): Grok that.
15037 * troff/input.c (copy_file): Handle first page transition like
15038 title by pushing a COPY_FILE_REQUEST cookie.
15039 (token::next, process_input_stack): Grok that.
15040 * troff/node.h (output_file::copy_file): Add x and y arguments.
15042 * troff/div.c (top_level_diversion::copy_file): Supply them.
15043 * troff/node.c (troff_output_file::copy_file): Add x and y
15044 arguments; moveto specified position. Invalidate font_position
15045 array after copying file.
15046 (output_file::copy_file): New function.
15047 (suppressed_output_file::copy_file, ascii_output::copy_file):
15049 * troff/input.c (transparent_file): New function.
15050 (init_input_requests): Bind to "trf".
15051 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15052 (process_input_stack): Likewise.
15054 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15056 * troff/node.c (init_node_requests): New number registers .kern
15057 pointing to global_kern_mode, and .lg pointing to
15058 global_ligature_mode.
15060 * troff/node.c (ligature): Don't change it if we get a bad
15063 * troff/input.c (do_define_string): Don't strip tabs.
15065 * troff/input.c (asciify_macro): Make the string_iterator auto.
15067 * troff/node.c (init_font_requests): Rename to...
15068 (init_node_requests):
15069 * troff/node.h: Change declaration.
15070 * troff/input.c (main): Change call.
15072 * troff/input.c (node::reread, diverted_space_node::reread): New
15074 (process_input_stack): Call reread rather than
15075 get_diverted_space_node.
15076 * troff/node.c (node::get_diverted_space_node,
15077 diverted_space_node::get_diverted_space_node): Removed.
15078 * troff/node.h: Declare reread methods instead of
15079 get_diverted_space_node methods. Make `n' member private.
15080 * troff/input.c: (token::diverted_space): Removed.
15081 * troff/token.h: Removed declaration.
15084 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
15086 * eqn/script.c (script_box::compute_metrics): Don't let
15087 SUP_RAISE_FORMAT become negative.
15089 * tbl/table.c (table::do_row): Entries that don't end in the
15090 this row shouldn't make the row non-blank.
15092 * tbl/table.c (table::make_columns_equal): Only set the width of
15093 columns which are marked as equal.
15095 * tbl/main.c (process_data): Before issuing excess data error,
15096 if last character was a newline unget it; then get it again after
15097 the error. Also include the contents of the entry in the message.
15099 * groff.c: New file.
15100 * Makefile: Build groff from groff.c. Make it possible to use
15101 either groff.sh or groff.c as groff.
15102 * Makefile.bd: Similarily.
15104 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
15106 * groff.sh: Don't delay expansion of $@ in assignment to files.
15107 Remove occurrences of \".
15109 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
15111 * all Makefiles: Simplify and rearrange.
15113 * Makefile: Handle fmod like malloc.
15114 * lib/Makefile: Similarily.
15115 * lib/fmod.c: Remove #ifdef NEED_FMOD.
15117 * Makefile: Rename OPTIMISE to OPTIMIZE.
15119 * groff.sh: Remove assignment to PATH.
15120 * Makefile: Remove SHPATH variable.
15121 * Makefile.bd: Similarily.
15123 * groff.sh: Add -V option to print the pipeline instead of
15126 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
15128 * lib/font.c: Split off file searching into ...
15129 * lib/fontfile.c: New file.
15131 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
15133 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
15135 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
15136 Also change misleading comment.
15137 (table::do_vspan): Change similarily misleading comment.
15138 * tbl/main.c (process_data): A format row with an explicit `s'
15139 uses up a data line, even if all the other columns are `_' or `='.
15141 * troff/input.c (token::description): Fix description of
15142 TOKEN_DUMMY and TOKEN_EMPTY.
15144 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
15146 * groff.sh: Fix description of -Z in help message.
15148 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
15150 * pic/object.c (object_spec::make_object): Allow negative and zero
15152 * pic/pic.y: Give linethick default value of -1.0.
15153 * pic/troff.c (troff_output::troff_output): Initialize
15154 last_line_thickness to BAD_THICKNESS.
15155 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
15156 (troff_output::line_thickness): Canonicalize negative thicknesses
15157 to RELATIVE_THICKNESS.
15158 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
15159 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
15161 (tex_output::start_picture): Set pen_size to -2.0.
15163 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
15164 0, then use 0 linewidth.
15165 (ps_printer::ps_printer): Initialize line_thickness to -1.
15167 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
15169 * ps/devps/symbolchars: Remove `or'.
15170 * ps/tmac.ps: Implement \(or with .char.
15172 * ps/devps/symbolchars: Move most characters into textmap.
15173 * ps/devps/textmap: Add names for troff bracket characters. Remove
15176 * ps/devps/TSymbol.ps: Removed.
15177 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
15178 * ps/tmac.ps: Do with .char what TSymbol did.
15179 * ps/devps/download: Remove TSymbol.
15181 * ps/devps/T: Removed.
15182 * ps/devps/Troff.ps: Removed.
15183 * ps/devps/Troff.afm: Removed.
15184 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
15185 * ps/devps/download: Remove Troff.
15186 * ps/devps/FontMakefile: Remove T target.
15187 * ps/devps/DESC-A4: Remove T from font list.
15188 * ps/devps/DESC-letter: Likewise.
15190 * troff/input.c (macro_to_node): Rename to ...
15191 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
15192 character's definition while processing it.
15193 * troff/node.c (node::add_char, make_node): Change calls to
15194 macro_to_node accordingly.
15196 * troff/input.c (token::next): Translate \_ to \(ul.
15198 * tty/devascii/R.proto: Add `|'.
15199 * tty/devlatin1/R.proto: Likewise.
15201 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
15203 * man: Put the version number in all the man pages.
15205 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
15207 * Makefile.bd: New file.
15208 * README.bd: New file.
15210 * VERSION: New file.
15211 * lib/version.c: Removed.
15212 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15215 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15216 environment variable.
15218 * all Makefiles: Split install target into install.bin for
15219 binaries, and install.nobin for everything else.
15220 * Makefile: Add bindist target.
15222 * man/afmtodit.man: New file.
15223 * man/Makefile: Add afmtodit.n to MAN1PAGES.
15224 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15226 * ps/Makefile: Pass BINDIR to make install in devps.
15228 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15229 the space character.
15231 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
15233 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
15235 * ps/ps.c: Redo font downloading.
15236 * ps/devps/download: New file.
15237 * ps/devps/Makefile: Add download to DEVICEFILES.
15238 * ps/devps/afmtodit: Remove -d option.
15239 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
15240 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15241 * ps/devps/zapfdr.ps: Likewise.
15242 * ps/devps/TSymbol.ps: Likewise.
15244 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
15246 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15248 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
15250 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15251 then strip the first line if it starts with %.
15252 * Makefile: Add a comment about this.
15254 * man/tfmtodit.man: New file.
15255 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15256 * dvi/Makefile: Install tfmtodit in BINDIR.
15258 * dvi/tfmtodit.c (usage): Mention -v option.
15260 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
15262 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15263 * troff/node.c (troff_output_file::transparent_char): Don't call
15266 * eqn: Add check_tabs method to most box classes.
15267 * eqn/box.c (box::top_level): Call check_tabs.
15269 * eqn/script.c (script_box::output): Use \Z.
15270 * eqn/limit.c (limit_box::output): Use \Z.
15272 * eqn/box.c (box::top_level): Use itoa.
15274 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
15276 * dvi/tmac.dvi: Add font translations for CR, C, TT.
15277 * dvi/devdvi/Makefile: Don't make links to CW.
15279 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15281 * xditview/tmac.X: Likewise.
15283 * troff/node.c: Add font translation feature.
15284 (get_font_translation): New function.
15285 (symbol_fontno): Translate the font name.
15286 (mount_font_no_translate): Rename to mount_font to this.
15287 (mount_font): New function.
15288 (font_family::make_definite): Call mount_font_no_translate instead
15290 (mount_style): Translate the font name.
15291 (font_translate): New function.
15292 (init_font_requests): Bind "ftr" to font_translate.
15294 * ps/devps/prologue (SN): New procedure that rounds a position to
15295 the nearest (pixel + (.25,.25)).
15296 (DL): Use SN to round endpoints.
15298 * lib/version.c: Changed version to 0.5.
15300 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
15302 * Makefile: Move definition of PAGE to the very beginning, so that
15303 people are less likely to miss it.
15305 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
15307 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15309 * troff/env.c (environment::choose_breakpoint): Make `can't find
15310 breakpoint' error a warning of type WARN_BREAK. Change message to
15311 `can't break line'.
15312 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15314 * troff/input.c: Add WARN_BREAK to warning_table. Include
15315 WARN_BREAK in DEFAULT_WARNING_MASK.
15317 * tty/tmac.tty: Add definition of \(+-.
15319 * groff.sh: Remove `--' option to set command.
15321 * dvi/devdvi/texsy.map: Remove duplicate md entry.
15323 * ps/devps/eqnchar: Better definition of cdot using md.
15324 * dvi/devdvi/eqnchar: Likewise.
15325 * xditview/devX100/eqnchar: Likewise.
15326 * xditview/devX75/eqnchar: Likewise.
15327 * eqn/lex.c: Add definition of cdot.
15329 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
15331 * troff/input.c (get_optional_char): New function.
15332 * troff/input.c (set_page_character): Use get_optional_char(),
15333 rather than has_arg() and tok.get_char(1).
15334 * troff/env.c (tab_character, leader_character, hyphen_char,
15335 field_characters): Likewise.
15336 (margin_character): Likewise. Also always delete the
15337 margin_character_node.
15339 * troff/input.c (token::get_char): Use token::description.
15341 * troff/input.c (has_arg): Don't skip over tab and \}.
15342 * troff/number.c (start_number): Give a warning if the number
15343 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15345 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
15347 * troff/input.c (empty_name_warning, non_empty_name_warning): New
15349 (get_name, get_long_name): Use these. Rename `warn' argument to
15352 * troff/node.c (get_fontno): Test that the symbol is not null.
15354 * troff/input.c (token::description): New function.
15355 * troff/number.c (parse_term): Use token::description in `numeric
15356 expression expected' message.
15357 * troff/groff.h: Add WARN_MISSING.
15358 * troff/number.c (start_number): New function.
15359 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15360 get_incr_number): Use start_number().
15361 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15363 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15364 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15366 * troff/input.c (token::get_char): Use WARN_MISSING.
15367 * troff/input.c (token::delimiter): Use token::description.
15368 * troff/env.c (environment_switch): Back out Aug 3 change.
15369 * troff/input.c (has_arg): Skip over \}s and tabs but give a
15371 * troff/token.h (token::tab): New function.
15372 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15373 * troff/reg.c (alter_format): Likewise.
15374 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15376 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
15378 * troff (most files): Redo warnings. Divide warnings into various
15379 categories; warning() has an additional first argument indicating
15380 the category it falls into.
15381 * troff/input.c (main): -w now takes an argument. New option -W.
15382 (enable_warning, disable_warning): New functions.
15384 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15385 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15387 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
15389 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15390 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15391 * xditview/devX75/eqnchar: Likewise.
15392 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15394 * eqn/other.c: When bar or over applies to a single character
15395 don't produce an overline_box or an underline_box. Instead produce
15396 an accent_box or an underaccent_box, with the accent a line
15397 whose width is accent_width. New classes underaccent_box,
15398 overline_char_box and underline_char_box.
15399 * eqn/box.h: Move overline_box, underline_box, accent_box class
15400 declarations into eqn/other.c. Add declarations of
15401 make_underline_box, make_overline_box, make_accent_box.
15402 * eqn/eqn.y: Call make_overline_box, make_underline_box
15403 make_accent_box instead of constructors.
15404 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15406 * eqn/other.c: Add accent_box::~accent_box.
15407 * eqn/box.h: Declare it.
15409 * groff.sh: With -Tps, use eqn -D.
15411 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15413 (underline_box::output): Similarily.
15414 (accent_box::output): Use \Z.
15416 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15419 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
15421 * troff/div.c (top_level_diversion::transparent_output(unsigned
15422 char)): Use asciify.
15423 * troff/input.c (asciify): Don't make it static.
15424 * troff/token.h (asciify): Declare it.
15426 * troff/input.c (get_name, get_long_name, token::get_char,
15427 token::delimiter): Add an extra default argument which says
15428 whether a warning should be printed.
15429 * troff: Pass a non-zero argument to one of these rather than
15430 printing a warning directly.
15432 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
15434 * troff: Consistently use symbol::is_null.
15436 * troff/dictionary.h: Move some inline functions into
15439 * troff/request.h: Move inline functions into input.c.
15440 (request_or_macro::invoke): Make it pure.
15442 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15443 * troff/input.c (init_input_requests): Use class constant_int_reg.
15444 (class compatible_reg): Deleted.
15445 * troff/div.c (init_div_requests): Use class constant_int_reg.
15446 (class last_post_line_extra_space_reg): Deleted.
15448 * troff/env.c (tab_character): Don't change the tab character if
15449 we get an invalid argument.
15450 (hyphen_char): Similarily.
15452 * troff/reg.c (alter_format): Check that nm is not null.
15454 * Makefile, groff.sh: Make it possible to customize the commands
15455 used for printing PostScript and dvi files. Also make it possible
15456 to customize the path used by groff.sh.
15458 * eqn/eqn.y: Make `left' right associative.
15460 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
15462 * pic/pic.h: Added definition of M_SQRT2 for those systems that
15465 * pic/pic.h: Removed definition of INT_MAX.
15467 * troff/node.c (italic_corrected_node::vertical_extent): Omit
15470 * troff/input.c (token::next): Handle \R like \n.
15472 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
15474 * ps/tmac.pc (PSPIC): Simplify.
15476 * troff/env.c (tab_stops::to_string):
15477 * pic/pic.y (object_type_name):
15478 * pic/troff.c (simple_output::line):
15479 * pic/tex.c (tex_output::spline):
15480 * pic/object.c (object_spec::make_object):
15481 * tbl/main.c (process_data): Add cases to switch statements to
15482 avoid cfront warnings. (Some of these are spurious, since the
15483 switch already has a default case.)
15485 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
15486 `ps-'. Don't test systat; instead check number of arguments to
15489 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
15491 * macros/tmac.e: Do not decrease the page offset by 0.5i.
15493 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15494 Unlink the file as soon as we have opened it, so that we don't
15495 have to bother with signal handlers.
15496 (handler): Deleted.
15497 (fatal_error_exit): Deleted.
15498 (main): Don't call signal.
15500 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15502 * dvi/devdvi/Makefile: Use the -k option with S and MI.
15504 * pic/pic.y: If there is a label, or an nth construction before
15505 the first `.' in the argument to `with', ignore it and generate a
15507 * pic/lex.c (lex_warning): New function.
15509 * tbl/table.c (table::init_output): In section keep and release
15510 macro, use 0 indent when diverting and the correct indent when
15513 * troff/input.c (interpolate_number_format): Do not interpolate
15514 anything if the number register is not defined.
15516 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15518 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
15520 * ps/devps/prologue (PICTURE): Set components of graphics state to
15521 their default values.
15523 * ps/devps/text.enc: Add trademark
15524 * ps/devps/textmap: Add names for club, spade, heart, diamond,
15525 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15526 * ps/devps/symbolchars: Add names for summation and product.
15528 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15529 suchthat. Add pp. Add upper-case letters.
15531 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15532 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15535 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15536 rA (right angle bracket) to ra. Introduce names for double-headed
15537 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15538 * ps/devps/textmap: Likewise for ps device.
15539 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15540 * tty/devascii/R.proto: Rename lA to la and rA to ra.
15541 * tty/devascii/R.proto: Likewise.
15542 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15544 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15546 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15548 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15551 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
15553 * troff/div.c (when_request): Use symbol::is_null rather than
15554 has_arg to determine whether we have an argument.
15555 (change_trap): Remove the trap if we get an invalid number. Give
15556 an error if we don't get at least the macro name.
15557 (diversion_trap): Remove trap if we get an invalid name or number.
15559 * troff/env.c (environment_switch): Pop if we get an invalid
15560 symbol or numeric expression.
15562 * troff/input.c (do_define_macro): If EOF is encoutered while
15563 defining the macro, do tok.next() before returning.
15565 * troff/token.h (has_arg): Move definition from here, to ...
15566 * troff/input.c (has_arg): ... here
15568 * troff/env.c (space_size): Do nothing if we get an invalid argument.
15569 * troff/input.c (shift): Likewise.
15571 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
15574 * pic/troff.c (troff_output::start_picture): Comment out calls to
15577 * eqn/main.c (do_file): Subtract 1 from current_lineno if
15578 interpret_lf_args succeeds.
15580 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15581 \\. This avoids problems with \$N.
15583 * groff.sh: Pass -C to preprocessors.
15585 * lib/lf.c (interpret_lf_args): Be more flexible.
15587 * tbl/main.c (main): Add -C option.
15588 (table_input::get): Do not recognize TE if followed by character
15589 other than a space or newline unless -C option given.
15590 (process_input_file): Likewise for lf, TS.
15591 (process_data): Likewise for lf in text blocks.
15593 * eqn/main.c (main): Add -C option.
15594 (do_file): Don't recognize EQ, EN or lf if followed by character
15595 other than space or newline unless -C option given.
15596 * eqn/lex.c (file_input::read_line): Similarily.
15597 * eqn/eqn.h: Declare compatible_flag.
15599 * etc/soelim.c (main): Add -C option.
15600 (interpret_lf_args): Use version in libgroff.
15603 * pic/main.c (main): Add -C option, which sets compatible_flag.
15604 (top_input::get), (top_input::peek): If -C option not given,
15605 do not recognize .PS/.PE/.PF/.lf if followed by a character
15606 other than space or newline.
15607 * pic/lex.c (file_input::read_line): Similarily.
15608 * pic/pic.h: Add declaration of compatible_flag.
15610 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
15612 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15614 * troff/node.c, troff/node.h: Add `asciify' methods to classes
15615 derived from node. New class space_char_hmotion_node.
15616 * troff/input.c (asciify_macro): New function.
15617 * troff/input.c (init_input_requests): New request `asciify' bound
15619 * macros/mm.diff: New file.
15620 * Makefile: In install.mm target use `patch' to apply
15623 * troff/input.c (macro::print_size): Just print the size in bytes.
15625 * troff/div.c (return_request): Correct the argument
15628 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
15630 * troff/node.h (class composite_node): Add sz member.
15631 * troff/node.c (composite_node::size): Return sz.
15632 * troff/input.c (macro_to_node): Use the initial size in the
15633 environment as the size of the composite_node.
15635 * troff/node.c (node::zero_width_tprint): Provide a reasonable
15638 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
15640 * troff/div.c (change_trap): If we get a bad number expression,
15643 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
15645 * lib/matherr.c (matherr): Define this only if math.h defines
15648 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
15650 * troff/div.c (macro_diversion::distance_to_next_trap): If there
15651 no diversion trap return vunits(INT_MAX - vresolution).
15653 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
15655 * troff/input.c (do_zero_width): New implementation that doesn't
15656 use a temporary environment. Use instead:
15657 (token::add_to_node_list): New function.
15658 * troff/env.c (environment::get_prev_char_height),
15659 (environment::get_prev_char_height),
15660 (environment::get_prev_char_skew): New functions.
15661 (environment::get_prev_char): New function.
15662 (environment::get_prev_char_width): Change to use get_prev_char.
15663 (init_env_request): Implement new registers .cht, .cdp, .csk.
15664 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15665 \Z being processed in a separate environment.
15667 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
15669 * tbl/table.c: Removed TABLE_BOTTOM_REG.
15671 * tbl/table.c (table::init_output): In the section release macro,
15672 give a warning message if the section won't fit on one page.
15674 * tbl/table.c (table::do_top): Emit table keep only if table is
15676 (table::do_bottom): Likewise for table release.
15677 (table::table), (table::add_vertical_rule): Remove reference to
15679 * tbl/table.h: Remove keep member.
15681 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15682 SECTION_RELEASE_MACRO, if there's not enough space before the next
15683 trap to output the diversion, call T# ourselves, set
15684 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15685 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
15686 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
15687 vertical position and return to it before turning traps on again.
15689 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
15691 * troff/node.c, troff/node.h: In classes derived from node,
15692 replace prev_char_width method by last_char_node method.
15693 * troff/env.c (environment::get_prev_char_width): Use
15694 node::last_char_node rather than node::get_prev_char_width.
15696 * Makefile: Added comment about -fno-inline on 68030-based
15699 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15700 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15701 expressions using sizeof to int.
15702 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15704 * macros/tmac.e (TS): Don't move @f back past the current
15707 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
15709 * ps/ps.c (main): Buffer stderr.
15710 * dvi/dvi.c (main): Likewise.
15711 * tty/tty.c (main): Likewise.
15713 * ps/ps.c (ps_printer::do_import): Improve error handling.
15715 * troff/input.c (abort_request): Use asciify.
15717 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15718 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15719 type of first argument int rather than char. This works around a
15720 bug on the 68030 based Apollo using g++ 1.37.1.
15722 * tbl/table.h (class table): Add `keep' member.
15723 * tbl/table.c (table::table): Initialize `keep'.
15724 (table::add_vertical_rule): Set `keep' to 1.
15725 (table::do_top): Only emit table keep macro is `keep' is non-zero.
15726 (table::do_bottom): Likewise for table release macro.
15727 (table::do_row): Emit section keep macro even if the row is 0.
15729 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
15731 * macros/tmac.e (@C): Preserve the font family across the change
15734 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
15736 * lib/font.c: Initialize font::hor and font::vert to 1.
15737 (font::load_desc): Check the values of font::hor and font::vert.
15739 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15740 be included in a C compilation.
15741 (iftoa): Use INT_DIGITS. Include lib.h.
15743 (as_string): Likewise.
15744 * tbl/table.c: Removed definition of INT_DIGITS.
15745 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15746 * troff/input.c (input_input_requests): Likewise.
15747 * ps/ps.c (make_encoding_name): Likewise.
15748 (ps_printer::set_style): Likewise.
15749 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15751 * tty/devascii/R.proto: Map fm onto '.
15752 * tty/devlatin1/R.proto: Likewise.
15754 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
15756 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15757 argument to \w is at a different input level.
15759 * tbl/table.c (table::init_output): Define a new macro
15760 REPEATED_VPT_MACRO, like vpt but if in a diversion also
15761 transparently outputs itself.
15762 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15764 (table::do_row): Likewise.
15766 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15767 TRANSPARENT_STRING_NAME.
15769 * tbl/table.c (table::init_output): In the table release macro
15770 print an error message and don't produce any output if after
15771 issuing the need request the table still will not fit. Also
15772 remove the diversion after bringing it back.
15774 * tbl/table.c (table::init_output): Define a new macro
15775 REPEATED_MARK_MACRO, like mk but if in a diversion also
15776 transparently outputs itself.
15777 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15778 is necessary because .TH might not call .T#.
15779 (table::do_top): Likewise TOP_REG.
15780 (table::define_bottom_macro): If TOP_REG is no longer valid, use
15781 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15782 table header might contain just the two top rules.
15784 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
15786 * troff/div.c: Implement new request `ptr' to print all traps.
15788 * troff/env.c (init_env_requests): Implement `.tabs' reg with
15789 init_string_env_reg.
15790 * troff/env.c (class tab_reg): Deleted.
15792 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
15794 * troff/div.c: New number register .pn returns the number of the
15795 next page as set by the pn request.
15797 * macros/tmac.an: Redid headers and footers. Number each manual
15798 entry starting from 1 unless \nC is > 0, like Sun. Added an
15799 optional 5th argument to .TH which specifies the manual name and
15800 appears in the center of the header. Understand the X, P and D
15801 registers like Sun.
15803 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
15805 * troff/env.c (init_env_requests): New number register `.lt' to
15806 return the title length.
15808 * troff/node.h (class transparent_dummy_node): New class.
15809 * troff/node.c (class transparent_dummy_node): Provide member
15811 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15814 * troff/input.c (token::next): New escape sequence \).
15815 * troff/input.c (get_copy): Recognize \) in copy mode.
15817 * troff/input.c (input_stack::clear): New function.
15818 * troff/input.c (exit_request): Use input_stack::clear.
15820 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15821 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15823 * troff/env.c: Move set_page_character to input.c. Move
15824 page_character to input.c also.
15825 * troff/env.c (title): Split off the reading of the parts of the
15826 title into read_title_parts.
15827 * troff/input.c (read_title_parts): New function. Check the
15828 input_level when testing whether a token matches the delimiter.
15830 * troff/input.c (exit_request): New function.
15831 * troff/input.c (init_input_requests): Bind ex request to
15832 exit_request rather than exit_groff.
15834 * troff/input.c (exit_groff): Call tok.next() before
15835 process_input_stack().
15837 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
15839 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15840 * troff/env.h: ditto.
15841 * troff/input.c: ditto.
15843 * troff/env.c (environment::is_empty): Test pending_lines.
15845 * troff/env.c (environment::have_pending_lines): Removed.
15847 * troff/input.c: Add request to flush pending lines from the
15850 * troff/env.c, troff/env.h: Add automatic widow control feature.
15852 * troff/input.c (exit_groff): Do process_input_stack() after
15853 do_break() but before setting exit_flag to 2.
15855 * troff/input.c: Remove FLUSH_PENDING_LINES and
15856 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15857 environment after END_TRAP token seen, but only if there aren't
15858 any more traps still unfinished.
15859 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15861 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
15863 * troff/env.c: Rename the `retain_size' member of class
15864 pending_output_line to `no_fill'.
15866 * troff/env.c (title): When the line is output, make the
15867 retain_size argument !fill.
15869 * troff/node.h: Add `hyphenated' member to struct breakpoint.
15870 * troff/node.c (space_node::get_breakpoints),
15871 (dbreak_node::get_breakpoints): Fill this in.
15872 * troff/env.c: Allow specification of maximum number of
15873 consecutive hyphenated lines.
15875 * troff/env.c (environment::is_empty): Add test for !current_tab.
15877 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
15879 * troff/env.c (environment::hyphenate_line): Don't completely give
15880 up if the word is not to be hyphenated; continue so that breaks
15881 can be made at break_char_node's.
15883 * lib/lib.h: Only define INT_MAX if it's not already defined;
15884 undef INT_MIN if it's already defined.
15886 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15888 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15889 This works around a bug in AT&T C++ 2.0 used with an ANSI C
15892 * macros/tmac.an (an-header): Set no-space mode.
15894 * macros/tmac.an (TH): Start a new page if necessary.
15896 * Started using ChangeLog at version 0.4.
15899 version-control: never