1 2003-12-02 Werner LEMBERG <wl@gnu.org>
3 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
4 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
5 src/roff/troff/uniuni.cpp: Moved to...
6 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
7 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
8 src/libs/libgroff/uniuni.cpp: Here.
10 * src/include/Makefile.sub.old (HDRS),
11 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
12 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
14 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
16 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
20 2003-12-01 Werner LEMBERG <wl@gnu.org>
22 * groff.texinfo: Document special behaviour of `.vs 0'.
23 Improve documentation of `cflags' request.
26 2003-11-29 Werner LEMBERG <wl@gnu.org>
28 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
29 * font/devlj4/CORONET: Regenerated.
31 2003-11-24 Werner LEMBERG <wl@gnu.org>
33 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
34 if processing hyphenation patterns in traditional mode.
35 Improve error messages.
37 2003-11-20 Werner LEMBERG <wl@gnu.org>
39 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
40 troff_output_file::put_char): Fix type of local variable `c'.
42 2003-11-19 Werner LEMBERG <wl@gnu.org>
44 * src/roff/groff/pipeline.c (P): Removed. Updated all function
46 (i_to_a): Removed. libgroff already provides this function.
47 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
49 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
51 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
54 2003-11-17 Werner LEMBERG <wl@gnu.org>
56 * COPYING: Use correct version.
58 2003-11-11 Werner LEMBERG <wl@gnu.org>
60 LynxOS 4.0.0 doesn't declare vfprintf.
62 * configure.ac: Check for vfprintf.
63 * configure: Regenerated.
64 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
65 * src/include/config.hin: Regenerated.
67 2003-11-10 Werner LEMBERG <wl@gnu.org>
69 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
71 * configure.ac: Check for vsnprintf.
72 * configure: Regenerated.
73 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
75 * src/include/config.hin: Regenerated.
77 2003-11-09 Werner LEMBERG <wl@gnu.org>
79 * aclocal.m4: Updated syntax to autoconf 2.59.
80 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
81 Don't check for gsos2.
82 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
83 working abs_top_srcdir and abs_top_builddir.
85 * configure.ac: Updated syntax to autoconf 2.59.
86 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
87 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
88 * configure: Regenerated.
90 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
91 s/@groff_top_builddir@/@abs_top_builddir@/.
93 * src/roff/groff/pipeline.c (xstrsignal):
94 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
96 2003-11-07 Werner LEMBERG <wl@gnu.org>
98 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
99 make start angle smaller than end angle to circumvent a bug in tpic
100 handling of some versions of dvipdfm (and dvipdfmx).
102 2003-10-30 Werner LEMBERG <wl@gnu.org>
104 * src/devices/grops/grops.man: Improve section on creating EPS.
106 2003-10-29 Werner LEMBERG <wl@gnu.org>
108 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
111 2003-10-28 Werner LEMBERG <wl@gnu.org>
113 * doc/groff.texinfo: Fix documentation of `.if'.
115 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
117 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
118 the form `uniXXXX' also.
120 2003-10-27 Werner LEMBERG <wl@gnu.org>
122 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
123 contrib/pic2graph/pic2graph.sh: Implement secure management of
125 Pass `-P-pletter' to groff to avoid data outside of the converted
126 area -- some versions of `convert' (for example 5.3.8) don't check
127 the bounding box of the image but always use a fixed image size
128 (letter paper format).
129 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
130 contrib/pic2graph/pic2graph.man: Updated.
132 * src/roff/groff/groff.man: Document $TMP and $TEMP.
134 2003-10-26 Werner LEMBERG <wl@gnu.org>
136 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
137 troff_output::simple_ellipse, troff_output::simple_arc,
138 troff_output::simple_line, troff_output::simple_spline,
139 troff_output::simple_polygon): Insert a space before arguments.
140 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
141 latter doesn't produce a node, so the following `.sp -1' would do
143 Don't emit `.sp -1' after \M. This also doesn't produce a token
144 (and we don't have to care about compatibility mode).
145 (troff_output::set_color, troff_output::reset_color): Don't emit
146 `.sp -1' after \M and \m.
148 * src/roff/troff/input.cpp (old_have_input): New global variable.
149 (input_stack::get): Handle `old_have_input'.
150 (process_input_stack) <token::TOKEN_NEWLINE>: Call
151 `trapping_blank_line' depending on `old_have_input', not
154 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
156 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
157 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
158 default directory names for temporary files.
159 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
161 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
162 [__MSDOS__] (run_pipeline): Honour environment variables.
163 Don't use `tmpnam' but `tempnam' to work around messy
166 * README.MinGW: New file.
168 2003-10-16 Werner LEMBERG <wl@gnu.org>
170 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
171 `(*t)->next' without testing validity of `*t'.
172 (usage): Make it more readable.
174 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
176 Make html device run under both MS-DOS and Win32.
178 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
179 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
180 spawn or fork+exec has to be used, and whether parent must sleep
181 until the child process terminates. Used in
182 `char_buffer::run_output_filter'.
183 (copyofstdoutfd): Removed.
184 (char_buffer): Replace `write_file_html' and `write_file_troff'
185 member functions with `emit_troff_output' and `run_output_filter'.
187 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
189 (replaceFd): Replaced with...
190 (set_redirection): New auxiliary function.
191 (waitForChild): Replaced with...
192 (save_and_redirect): New auxiliary function for.
194 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
197 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
199 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
200 (GROFF_LIBC): New function.
201 * configure.ac: Call GROFF_LIBC.
203 * configure: Regenerated.
205 * src/include/lib.h: Handle __MINGW32__.
206 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
207 Add macro for `pipe'.
210 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
213 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
216 2003-10-13 Werner LEMBERG <wl@gnu.org>
218 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
221 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
224 2003-10-12 Werner LEMBERG <wl@gnu.org>
226 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
227 src/roff/troff/input.cc (usage): Updated.
229 * NEWS, doc/groff.texinfo: Updated.
231 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
233 * src/libs/libgroff/searchpath.cpp
234 (search_path::open_file_cautious): New function which also handles
235 `-' as stdin and stdout depending on the access mode.
236 * src/include/searchpath.h (search_path): Updated.
238 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
239 * src/devices/grops/ps.h: Include `searchpath.h'.
240 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
241 Open resource file with `include_search_path.open_file_cautious'.
242 * src/devices/grops/grops.man: Document new `-I' switch.
244 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
245 (main), src/devices/grolj4/lj4.cpp (main),
246 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
248 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
250 (include_search_path): New global variable.
251 (include_path_append): Removed.
252 (main): Use `include_search_path.command_line_dir' to handle `-I'.
253 (do_file): Simplify, using new
254 `include_search_path.open_file_cautious'.
256 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
258 (main): Pass arguments to `-I' to both troff and devices.
259 Improve handling of `-V'.
260 * src/roff/groff/groff.man: Document changes to -I and -V.
262 * src/roff/troff/input.cpp (include_search_path): New global
264 (next_file, source, ps_bbox_request, transparent_file,
265 process_input_file): Use new
266 `include_search_path.open_file_cautious'.
267 (main) Handle `-I' switch.
268 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
269 Use new `include_search_path.open_file_cautious'.
270 * src/roff/troff/node.h: New extern symbol `include_search_path'.
271 * src/roff/troff/troff.man: Document new `-I' switch.
273 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
275 Support multiple calls of .Lb in LIBRARY section.
277 * tmac/doc-common (doc-in-library-section): New register.
278 (doc-section-library): New string.
279 (Sh): Set `doc-in-library-section'.
281 * tmac/doc-syms (Lb): Insert breaks before and after arguments
282 if in LIBRARY section.
283 * tmac/doc.tmac (doc-save-global-vars): Updated.
284 * NEWS, tmac/groff_mdoc.man: Updated.
286 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
288 * tmac/doc-common (doc-default-operating-system): New variable.
291 2003-09-08 Werner LEMBERG <wl@gnu.org>
293 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
295 2003-08-31 Werner LEMBERG <wl@gnu.org>
297 * contrib/mom/Makefile.sub: Fix last change to make it really work.
298 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
299 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
300 $(DEVFILES) are not empty.
301 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
303 2003-08-26 Chuck Silvers <chuq@chuq.com>
305 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
306 with parallel runs of `make'.
308 2003-08-23 Stephen Gildea <gildea@stop.mail-abuse.org>
310 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
311 insert SORT_SEP. With certain combinations of sort specifications,
312 refer sorted entries in the wrong order. In particular, entries
313 with a missing field should be be sorted before all entries that
314 have that field, before refer looks to the next field.
316 2003-08-23 Werner LEMBERG <wl@gnu.org>
318 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
319 g++ linker is used. Reported by Mark J. Reed
320 <mark.reed@turner.com>.
322 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
324 Add key character `x' to tbl which makes tbl call a user-defined
325 macro on a table cell.
327 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
328 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
329 `set_modifier' after printing the compatibility request.
330 (set_modifier): Print call to `m->macro' if not empty.
331 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
333 (process_format): Implement cases `x' and `X'.
334 * src/preproc/tbl/tbl.man, NEWS: Updated.
336 2003-08-15 Werner LEMBERG <wl@gnu.org>
338 * doc/groff.texinfo: Minor fixes.
340 2003-08-09 Werner LEMBERG <wl@gnu.org>
342 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
344 2003-08-07 Werner LEMBERG <wl@gnu.org>
346 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
347 argument list to nothing if there is no file to match. Use `ls' as
348 a protection, similar to autoconf.
350 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
351 empty argument lists.
353 * doc/groff.texinfo: Improve documentation how vertical spacing
354 and line breaks interact.
357 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
359 2003-08-03 Werner LEMBERG <wl@gnu.org>
361 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
362 EPS (using eps2eps or similar programs to compute the bounding box).
364 2003-07-24 Werner LEMBERG <wl@gnu.org>
366 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
367 * doc/texinfo.tex: Updated from texinfo 4.6.
368 * README.CVS: From now on we need texinfo 4.6.
370 2003-07-23 Werner LEMBERG <wl@gnu.org>
372 Add requests `dei1' and `ami1' for completeness.
374 * src/roff/troff/input.cc (calling_mode): Remove
375 CALLING_DISABLE_COMP.
376 (comp_mode): New enumeration.
377 (do_define_string, define_string, define_nocomp_string,
378 append_string, append_nocomp_string): Updated.
379 (do_define_macro): Add third parameter.
380 (define_macro, define_nocomp_macro, define_indirect_macro,
381 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
382 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
385 (init_input_requests): Add `dei1' and `ami1'.
387 * tmac/trace.tmac: Handle de1 and am1.
388 (de): Improve tracing message.
389 (am): Add missing `do'.
392 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
393 Document new requests.
395 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
397 Add option -G to .MPIMG to insert a gap between text and the image.
399 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
400 www-finish-left-ll): Updated.
401 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
402 (MPIMG): Make option -L and -R optional.
405 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
407 * src/devices/grohtml/post-html.cpp
408 (html_printer::do_file_components): Don't use `stdout' as lvalue
409 since it can be a macro.
411 2003-07-22 Werner LEMBERG <wl@gnu.org>
413 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
414 the corresponding test in aclocal.m4.
416 2003-07-21 Werner LEMBERG <wl@gnu.org>
418 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
419 names but RGB values directly. Otherwise pnmtopng depends on
420 an external file `rgb.txt' which maps colour names to values.
422 2003-07-20 Werner LEMBERG <wl@gnu.org>
424 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
425 * configure, src/include/config.hin: Regenerated.
427 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
429 2003-07-19 Werner LEMBERG <wl@gnu.org>
431 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
433 2003-07-18 Werner LEMBERG <wl@gnu.org>
435 * *.man: Switch to non-compatibility mode temporarily if GNU
436 syntax extensions are used in the particular man page.
438 * PROBLEMS: Add solutions for SGR problems.
440 2003-07-17 Werner LEMBERG <wl@gnu.org>
442 Don't ignore grotty's command line options if \X'tty: sgr ...' is
443 used to change the drawing scheme.
445 * src/devives/grotty/tty.cpp (bold_flag_option,
446 underline_flag_option, italic_flag_option, reverse_flag_option,
447 bold_underline_mode_option): New global variables.
448 (update_options): New function.
449 (tty_printer::special): Call update_options.
450 (main): Don't set xxx_flag but xxx_flag_option, then call
453 2003-07-14 Werner LEMBERG <wl@gnu.org>
455 Make grotty emit proper Unicode box drawing characters for -Tutf8.
457 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
459 (hline_char, vline_char): New global variables.
460 (tty_printer::tty_printer): Initialize them.
461 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
462 horizontal and vertical lines.
463 (crossings): New global array.
464 (tty_printer::end_page): Use it to determine the proper crossing
465 character for -Tutf8.
467 2003-07-12 Werner LEMBERG <wl@gnu.org>
469 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
470 (HTMLDOCFILES): Revert to `pic.html'.
471 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
473 2003-07-11 Werner LEMBERG <wl@gnu.org>
475 * doc/pic.ms: Improve documentation of absolute coordinates.
476 Document absolute positioning of pictures.
478 * NEWS: Add new pic capability.
480 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
482 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
485 2003-07-07 Werner LEMBERG <wl@gnu.org>
487 Implement support for dashed and dotted ellipses in pic. Based on
488 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
490 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
491 common_output::dashed_ellipse, common_output::dotted_ellipse): New
492 functions. Ellipse arcs are approximated with circle arcs.
493 * src/preproc/pic/common.h (common_output): Updated.
494 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
496 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
498 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
500 2003-07-06 Werner LEMBERG <wl@gnu.org>
502 Make grotty work on platforms which have unsigned char as the
503 default for char. Based on a patch by Thomas Klausner
506 * src/devices/grotty/tty.cpp (schar): New typedef.
507 Updated calls to declare_ptable and implement_ptable.
508 (glyph): Use schar for back_color_idx and fore_color_idx.
509 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
510 (tty_printer::tty_color, tty_printer::tty_printer,
511 tty_printer::color_to_idx, tty_printer::put_color): Updated.
513 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
515 * src/roff/nroff/nroff.sh: Add option -d for completeness.
516 * src/roff/nroff/nroff.man: Updated.
518 2003-07-05 Werner LEMBERG <wl@gnu.org>
520 * NEWS, tmac/groff_www.man: Updated.
521 * doc/Makefile.sub: Updated.
523 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
525 Implement support for multiple HTML output files.
527 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
528 -j command line option.
530 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
532 (file): New fields `new_output_file', `require_links',
534 (file::file): Updated.
535 (files::set_file_name, files::set_links_required,
536 files::are_links_required, files::is_new_output_file,
537 files::file_name, files::next_file_name): New functions.
538 (header_desc): New fields `no_of_level_one_headings',
540 (header_desc::header_desc): Updated.
541 (header_desc::write_headings): Handle multiple files.
542 (html_printer::write_header): Save file name in which header occurs.
543 (html_printer::determine_header_level): Possibly split files on
545 (html_printer::do_links, html_printer::troff_tag): Updated.
546 (html_printer::insert_split_file, html_printer::do_job_name,
547 html_printer::emit_link, html_printer::write_navigation,
548 html_printer::do_file_components): New functions.
549 (html_printer::~html_printer): Handle multiple files.
550 (main): Handle command line option `-j'.
552 * src/devices/grohtml/grohtml.man: Updated.
554 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
557 * tmac/www.tmac (JOBNAME): New macro.
558 * tmac/s.tmac (SH-NO-TAG): New macro.
559 (@SH): Call SH-NO-TAG.
562 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
564 * tmac/groff_mdoc.man: Improve documentation of punctuation
567 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
569 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
571 2003-07-03 Werner LEMBERG <wl@gnu.org>
573 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
575 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
577 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
580 (Fn, Fo): Reduce indentation in synopsis.
582 * tmac/doc-common (doc-check-depth): New macro.
583 (doc-end-macro, Sh, Ss): Use it.
584 (Cd): Fix behaviour in synopsis.
585 (In): Make it parsed and callable.
586 If not in the synopsis, represent the C header file enclosed in
588 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
589 Use minus, not hyphen.
591 * tmc/groff_mdoc.man: Updated.
593 2003-07-01 Werner LEMBERG <wl@gnu.org>
595 Integrated grap2graph, contributed by Eric S. Raymond.
597 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
599 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
600 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
602 2003-07-01 Colin Watson <cjwatson@debian.org>
604 * src/xditview/*.c: Add prototypes, fix return types, add includes.
605 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
607 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
609 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
611 2003-06-31 Werner LEMBERG <wl@gnu.org>
613 * doc/Makefile.sub (CLEANADD): Remove all files created by
614 running `make groff.{pdf,dvi}'.
616 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
619 2003-06-30 Werner LEMBERG <wl@gnu.org>
621 * Makefile.in (SHELL): Define as @SHELL@.
622 (mkinstalldirs): Use $(SHELL).
623 (MDEFINES): Add $(SHELL).
624 * Makefile.comm (SHELL): Removed.
626 2003-06-29 Werner LEMBERG <wl@gnu.org>
628 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
629 The X11 documentation files use them.
630 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
632 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
634 * tmac/e.tmac (@C): Handle .ad also.
636 2003-06-12 Werner LEMBERG <wl@gnu.org>
638 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
640 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
641 Assign `n' even here. It is possible to construct a node
642 immediately following an escape character:
650 2003-06-10 Werner LEMBERG <wl@gnu.org>
652 * README.WIN32: Removed.
655 2003-06-07 Werner LEMBERG <wl@gnu.org>
657 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
659 2003-06-05 Werner LEMBERG <wl@gnu.org>
661 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
662 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
664 2003-06-03 Werner LEMBERG <wl@gnu.org>
666 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
667 is done by the calling function.
669 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
671 * tmac/X.tmac: Fix definition of `em'.
673 2003-05-22 Werner LEMBERG <wl@gnu.org>
675 * src/roff/troff/input.cc (return_macro_request): Fix detection of
678 2003-05-18 Werner LEMBERG <wl@gnu.org>
680 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
681 to make items work which consist only of a tag.
683 2003-05-17 Werner LEMBERG <wl@gnu.org>
685 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
686 aren't stretched in a tag (this can fail with unformatted boxes).
687 Instead, insert a break and go back one line.
689 2003-05-16 Werner LEMBERG <wl@gnu.org>
691 * src/roff/troff/input.cc (return_macro_request): If called with
692 argument pop macro twice. We need this to trace `return'.
694 * tmac/trace.tmac: Handle `return'.
697 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
700 2003-05-15 Larry Kollar <kollar@alltel.net>
702 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
703 registers `FPS', `FVS', and `FPD'.
705 2003-05-15 Werner LEMBERG <wl@gnu.org>
707 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
710 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
712 * tmac/groff_mdoc.man: Slight improvements.
714 2003-05-03 Werner LEMBERG <wl@gnu.org>
716 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
717 `doc-header-space' after header line if register `cR' is set.
719 2003-05-02 Werner LEMBERG <wl@gnu.org>
723 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
725 * tmac/doc-common (Nd): Use \[em].
727 2003-05-01 Werner LEMBERG <wl@gnu.org>
729 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
730 doc-footer-space): Initialize to 0.5i.
731 (doc-setup-page-layout): Don't set doc-header-space and
734 2003-04-30 Werner LEMBERG <wl@gnu.org>
736 * REVISION: Set to 1.
738 * doc/pic.ms: Document possible problems with `figname'.
740 2003-04-29 Werner LEMBERG <wl@gnu.org>
742 Version 1.19 released
743 =====================
745 * VERSION: Set to 1.19.
746 * REVISION: Set to 0.
747 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
749 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
750 Define charset as `US-ASCII' in html output.
752 * tmac/www.tmac (ULE): Add missing scaling indicator.
754 * win32-diffs: Removed.
756 2003-04-28 Werner LEMBERG <wl@gnu.org>
758 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
760 Document how to insert discardable whitespace with `.ss'.
762 2003-04-27 Werner LEMBERG <wl@gnu.org>
764 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
765 work with plain TeX also.
767 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
769 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
771 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
774 2003-04-24 Werner LEMBERG <wl@gnu.org>
776 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
777 vbox with positive height and zero depth if in TeX mode.
779 * NEWS: Document glyph name changes for grodvi and grolj4.
781 2003-04-23 Werner LEMBERG <wl@gnu.org>
783 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
786 2003-04-21 Werner LEMBERG <wl@gnu.org>
788 HP-UX 10.20 has `snprintf' but it isn't declared.
790 * configure.ac: Add declaration test for snprintf.
791 * configure: Regenerated.
792 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
793 * src/include/config.hin: Regenerated.
795 2003-04-19 Werner LEMBERG <wl@gnu.org>
797 Add keyword `figname' to pic, specifying the name of the picture
798 box in TeX mode. Based on a patch from William J Poser
799 <wjposer@unagi.cis.upenn.edu>.
801 * src/preproc/pic/pic.y: New token `FIGNAME'.
802 (macro_name): New rule of type <str>.
803 (placeless_element): Handle `FIGNAME'.
804 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
805 * src/preproc/pic/main.cpp (graphname): New global variable.
806 (do_picture): Initialize `graphname'.
807 * src/preproc/pic/pic.h: Updated.
808 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
811 (tex_output::text): Beautify output.
812 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
813 `shaded' and `outlined' unconditionally.
814 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
817 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
818 greater is necessary.
820 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
822 Add option -r to soelim to avoid emission of `.lf' lines.
823 Add option -t to produces TeX comment lines instead of `.lf' lines.
825 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
828 (main): Handle `-r' and `-t'.
829 (set_location): Handle `raw_flag' and `tex_flag'.
830 * src/preproc/soelim/soelim.man, NEWS: Updated.
832 2003-04-17 Werner LEMBERG <wl@gnu.org>
834 * tmac/hyphenex.sh: Replaced with...
835 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
838 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
839 if --quiet is used for the configure script.
840 * configure: Regenerated.
842 2003-04-16 Werner LEMBERG <wl@gnu.org>
844 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
845 Add `const' to second argument.
846 (html_printer::add_table_end): Add `const' to argument.
847 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
848 `const' to arguments.
849 * src/devices/grohtml/html-text.h: Updated.
851 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
852 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
855 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
856 cast for integer constant.
858 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
859 (writeNbytes): Add `const' to first argument.
860 (writeString): Add `const' to argument.
861 (char_buffer::can_see): Add `const' to third argument.
862 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
864 * src/preproc/html/pushback.h: Updated.
866 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
867 (include_path_append): Add `const' to argument.
870 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
872 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
873 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
875 (unicode_decompose_init::unicode_decompose_init): Updated.
876 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
878 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
879 * src/roff/troff/input.cc (process_startup_file): Add `const' to
882 * tmac/hyphenex.sh: Make script more portable by using a here
885 2003-04-15 Werner LEMBERG <wl@gnu.org>
887 Renamed all `*.cc' files to `*.cpp'.
888 Updated all configuration files, makefiles, and documentation.
890 2003-04-14 Werner LEMBERG <wl@gnu.org>
892 * tmac/hyphenex.sh: Slight improvements.
894 2003-04-13 Werner LEMBERG <wl@gnu.org>
896 * font/devascii/R.proto, font/devcp1037/R.proto,
897 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
898 character slots with unnamed glyphs.
900 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
901 (an-first): New global variable.
902 (an-header): Emit vertical space between multiple man pages.
904 2003-04-11 Werner LEMBERG <wl@gnu.org>
906 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
909 2003-04-10 Werner LEMBERG <wl@gnu.org>
913 2003-04-10 Bernd Warken <bwarken@mayn.de>
915 * doc/webpage.ms: Improved.
917 2003-04-09 Werner LEMBERG <wl@gnu.org>
919 Add register \n[.height] which returns the value of \H.
920 Add register \n[.slant] which returns the value of \S.
922 * src/roff/troff/env.cc (init_env_requests): Implement.
923 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
926 2003-04-08 Werner LEMBERG <wl@gnu.org>
928 * tmac/html.tmac: Move some of the data into html-end.tmac.
929 Remove most of the character translations for eqn since html fonts
930 now cover those characters.
932 * tmac/html-end.tmac: New file.
933 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
934 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
935 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
937 2003-04-07 Werner LEMBERG <wl@gnu.org>
939 * man/groff_out.man: Document negative values of `N' if -Thtml is
942 2003-04-06 Werner LEMBERG <wl@gnu.org>
944 * Makefile.comm (depend.temp): Check location of YTABC.
946 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
948 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
950 (groff_bin_path): Rename to GROFF_BIN_PATH.
951 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
952 * doc/Makefile.in (TROFFBIN): New variable for troff
954 (GROFFBIN): New variable for groff binary path.
955 (groff_bin_path): Rename to GROFF_BIN_PATH.
956 (TROFF): Use TROFFBIN.
957 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
958 * doc/Makefile.sub (GROFFBIN): New variable for groff
960 (groff_bin_path): Rename to GROFF_BIN_PATH.
961 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
963 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
965 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
966 * Makefile.dev (all): Depend on DEVSCRIPTS.
967 (install_dev): Likewise.
968 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
970 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
971 (DEVGENSCRIPTS): New variable to hold generated scripts.
973 2003-04-05 Werner LEMBERG <wl@gnu.org>
975 * src/libs/libdriver/input.cc (IntArray::operator[],
976 IntArray::get_data): Remove meaningless `const' in return value.
978 * README.CVS: New file.
980 2003-04-04 Werner LEMBERG <wl@gnu.org>
982 Check for stdint.h in C++, not in C.
984 * aclocal.m4 (GROFF_STDINT_H): New function,
985 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
987 * configure, src/include/config.hin: Regenerated.
988 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
991 Fix handling of in grohtml. To do this, troff emits `N'
992 with a negative value, representing the width of the unbreakable
993 space (only for -Thtml). grohtml then converts this back to
994 and uses the value of N as its width.
996 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
997 unbreakable_space_node::tprint): Emit `N-<width>'.
998 * src/include/printer.h (printer::set_numbered_char): Make it
1000 Make members `font_table' and `nfonts' protected instead of private.
1001 * src/devices/grohtml/post-html.cc
1002 (html_printer::set_numbered_char): New member function.
1005 * src/libs/libgroff/maxfilename.cc:
1006 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
1008 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
1011 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
1013 * man/roff.man: Small fixes.
1015 2003-04-03 Werner LEMBERG <wl@gnu.org>
1017 Make groff independent from locale's numeric settings.
1019 * configure.ac: Check for `setlocale'.
1020 * configure, src/include/config.hin: Regenerated.
1022 * src/include/lib.h: Handle HAVE_SETLOCALE.
1024 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1025 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
1026 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
1029 * doc/groff.texinfo: Change dir category to `Typesetting'.
1030 (Man font macros): Mention that there is no space between arguments
1033 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
1034 (*printer::change_color, *printer::change_fill_color): Add missing
1037 2003-04-02 Werner LEMBERG <wl@gnu.org>
1039 * src/devices/grohtml/html-table.cc (html_table::emit_col,
1040 html_table::is_gap): Compute table widths after converting border
1041 positions to avoid rounding errors.
1043 2003-04-01 Werner LEMBERG <wl@gnu.org>
1045 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
1046 `space_emitted' properly.
1048 2003-03-31 Werner LEMBERG <wl@gnu.org>
1050 * src/devices/grohtml/html-table.cc: Fix column width calculation.
1051 (html_table::set_linelength): Don't add 1.
1052 (html_table::add_indent): Don't subtract 1.
1054 * tmac/html.tmac: Set default page offset to zero.
1056 2003-03-30 Werner LEMBERG <wl@gnu.org>
1058 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
1060 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
1061 unbreakable_space_node::tprint): New functions.
1062 (troff_output_file): Make space_char_hmotion_mode::tprint and
1063 unbreakable_space_node::tprint to friends.
1064 * src/roff/troff/node.h: Updated.
1066 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
1067 in the HTML standard).
1069 2003-03-29 Werner LEMBERG <wl@gnu.org>
1071 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
1072 Otherwise, the following code
1081 produces `x a' instead of `xa'. This is a temporary fix, disabling
1082 font changes in diversions for -Thtml.
1084 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
1086 (an-do-tag-html): Merge with ...
1087 (an-do-tag): This macro.
1088 Change code slightly to circumvent grohtml bug.
1089 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
1091 * src/devices/grohtml/html-table.cc (html_table::emit_col,
1092 html_table::is_gap): Round `width' properly.
1094 * tmac/html.tmac: Provide some default layout parameters for
1097 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
1100 2003-03-28 Werner LEMBERG <wl@gnu.org>
1102 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
1104 2003-03-27 Werner LEMBERG <wl@gnu.org>
1106 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
1109 2003-03-20 Werner LEMBERG <wl@gnu.org>
1111 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
1113 * doc/groff.texinfo: Updated.
1115 2003-03-19 Werner LEMBERG <wl@gnu.org>
1117 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
1118 TOKEN_END_TRAP>: Reset `have_input'.
1120 2003-03-18 Werner LEMBERG <wl@gnu.org>
1122 * src/roff/groff/groff.man: Mention groff_trace man page.
1124 2003-03-16 Werner LEMBERG <wl@gnu.org>
1126 * Makefile.in (LIBEXT): New variable to indicate the file extension
1127 of library files. Computed heuristically from $(OBJEXT).
1128 (MDEFINES): Add $(LIBEXT).
1129 * Makefile.lib, Makefile.comm: Use it.
1131 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
1132 overlong lines into smaller chunks.
1133 (get_binary): New function.
1135 * src/utils/pfbtops/pfbtops.man: Updated.
1137 2003-03-15 Colin Watson <cjwatson@debian.org>
1139 * src/roff/groff/groff.man: Minor syntax fix.
1141 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
1143 * src/devices/grops/ps.cc (ps_printer::media_set,
1144 ps_printer::~ps_printer): Handle zero paper width and length.
1146 2003-03-13 Werner LEMBERG <wl@gnu.org>
1148 Add options -p and -l to grodvi.
1150 * src/devices/grodvi/dvi.cc: Include paper.h.
1151 (landscape_flag, user_paper_length, user_paper_width): New global
1153 (dvi_printer::begin_page): Emit `papersize' special.
1154 Set color after initialization of `cur_h' and `cur_v'.
1155 (main): Add options `-l' and `-p'.
1156 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
1157 * src/devices/grodvi/grodvi.man, NEWS: Updated.
1159 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
1161 2003-03-12 Werner LEMBERG <wl@gnu.org>
1163 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
1164 * man/groff_tmac.man: This man page.
1165 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
1168 * tmac/X.tmac: Don't load pspic.tmac.
1170 2003-03-11 Werner LEMBERG <wl@gnu.org>
1172 Make variable `pr' local to libdriver/input.cc. Based on a patch
1173 by Bernd Warken <bwarken@mayn.de>.
1175 * src/include/driver.h (pr): Removed.
1177 * src/libs/libdriver/input.cc (pr): New global variable.
1178 (do_file): Deallocate `pr'.
1179 * src/libs/libdriver/printer.cc (pr): Removed.
1181 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
1182 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1183 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1184 (main): Don't delete `pr'.
1186 2003-03-10 Werner LEMBERG <wl@gnu.org>
1188 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
1189 * tmac/papersize.tmac: New file.
1190 * tmac/troffrc: Include `papersize.tmac'.
1191 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
1192 * tmac/an-old.tmac: Set LT to LL by default.
1194 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
1195 doc/groff.texinfo: Updated.
1197 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
1198 bug which caused all odd iso papers to have wrong dimensions.
1200 * src/devices/grops/ps.cc (user_paper_width): New global variable.
1201 (main) <'p'>: Set `user_paper_width' also.
1202 (ps_printer::media_width, ps_printer::media_height): Use values
1203 given with option `-p'.
1205 2003-03-09 Werner LEMBERG <wl@gnu.org>
1207 * src/include/nonposix.h: Provide default for SET_BINARY.
1209 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
1210 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
1213 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
1214 (main): Treat \r\n as \n.
1216 2003-03-08 Werner LEMBERG <wl@gnu.org>
1218 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
1219 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
1221 2003-03-07 Werner LEMBERG <wl@gnu.org>
1223 Added support to access more than 256 glyphs in Type 1 fonts.
1225 * src/devices/grops/ps.cc (subencoding): New structure.
1226 (style): Add `sub' field.
1228 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
1229 Add `set_subencoding', `get_subfont' and `encode_subfont' member
1232 (ps_printer::set_char): Use `set_subencoding'.
1233 (make_subencoding_name): New function.
1234 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
1235 (ps_printer::~ps_printer): Emit subencoding definitions.
1237 * src/devices/grops/psrm.cc (valid_input_table): New array to
1238 properly support EBCDIC.
1239 (white_space): Add `\f'.
1240 (ps_get_line): Change first argument to be of type `string &'.
1241 Updated all callers.
1242 This allows to get lines of arbitrary length.
1243 Use `valid_input_table'.
1244 Remove warning about non-conforming PS line length. This seems
1245 not to be of great importance -- for example, dvips don't emit
1247 (PS_LINE_MAX): Removed.
1248 (matches_comment): Change first argument to be of type `string &'.
1250 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
1252 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
1253 %AGL_to_unicode, %default_ligatures): New hash tables.
1254 Read all map entries.
1255 Add unencoded characters.
1256 Check for default ligatures if there are no `L' entries.
1257 Print all kern entries.
1258 Print all characters in charset.
1259 * src/utils/afmtodit/afmtodit.man: Updated.
1261 * font/devps/*: Regerated all fonts.
1263 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
1264 of characters, just use `.trin'. Otherwise the mapping depends
1265 on the font encoding.
1266 * tmac/ps.tmac: Add `fi' and `fl'.
1267 Improve `Fi' and `Fl'.
1268 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
1269 * tmac/Xps.tmac: Fix `em'.
1273 2003-03-04 Werner LEMBERG <wl@gnu.org>
1275 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1278 2003-03-03 Werner LEMBERG <wl@gnu.org>
1280 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1282 * font/devps/generate/textmap: Remove entry `similarequal'.
1283 * font/devps/symbolmap: Updated.
1285 2003-03-02 Werner LEMBERG <wl@gnu.org>
1287 * src/libs/libgroff/font.cc (font::load): Fix error message for
1290 * src/devices/grops/grops.man: Improve documentation of the -b
1293 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1294 `ascii' and `cp1047'.
1296 2003-03-01 Werner LEMBERG <wl@gnu.org>
1298 Document composite glyphs and the `composite' request.
1300 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
1302 2003-02-28 Werner LEMBERG <wl@gnu.org>
1304 * font/devdvi/generate/ec.map: Add some more Unicode entities.
1305 * font/devdvi/*EC: Updated.
1307 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1308 * tmac/latin1 (latin1-tr): Undo any previous mapping.
1309 * tmac/troffrc: Load `composite.tmac'.
1310 * tmac/Makefile.sub (NORMALFILES): Updated.
1312 * doc/groff.texinfo (Input Encodings): New section.
1315 2003-02-27 Werner LEMBERG <wl@gnu.org>
1317 * doc/texinfo.tex: New version 2003-02-11.06.
1319 * tmac/doc-common (Dt): Don't emit warning for unknown section.
1320 * tmac/groff_mdoc.man: Fix description of `Dt'.
1322 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
1324 * font/devps/prologue.ps: Fix for included Postscript that does
1325 a setpagedevice -- which is now safely ignored.
1329 * src/devices/grops/ps.cc: Now sets the page size in the generated
1330 document. This is done in two ways: Via a %%-comment for gv and
1331 the like, and via a PageSize and setpagedevice for programs that
1332 understands Postscript proper, like ps2pdf.
1334 * src/devices/grops/ps.h: New broken-flag to avoid page size
1335 definition, if required.
1337 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1339 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1340 Not really necessary due to the fix in prologue.ps, but cleaner:
1341 Such information does not belong in an .eps file.
1343 * doc/Makefile.sub: See doc/Makefile.in.
1345 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
1347 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1348 instead of P1 since the latter is broken in some versions of netpbm.
1349 * configure: Updated.
1351 2003-02-26 Larry Kollar <kollar@alltel.net>
1353 Make man pages more customizable.
1355 * tmac/an-old.tmac (FT): New register holding footer distance from
1357 (HF): New string holding the default heading font.
1358 (TH): Handle registers `IN' and `SN' set on the command line.
1360 (PT, BT): New strings to customize header and footer lines.
1361 (an-header, an-footer): Use them.
1363 * tmac/groff_man.man: Document changes.
1365 * doc/groff.texinfo: Document man changes.
1366 Document Ultrix extensions of man.
1368 2003-02-26 Werner LEMBERG <wl@gnu.org>
1370 * src/roff/troff/input.cc (do_width, do_if_request): Reset
1371 `have_input' after changing back to old environment.
1373 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1374 function up to be defined before first call. This is necessary to
1375 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1377 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1378 the default font directory also. Based on a patch from James
1379 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1380 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1381 * src/utils/afmtodit/afmtodit.man: Document it.
1385 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1387 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
1389 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1390 (GROFF_PNMTOPS_NOSETPAGE): New macro.
1391 * configure.ac: Use it.
1392 * configure: Regenerated.
1393 * Makefile.in: Updated.
1395 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1396 (CLEANADD): Add www.tmac-sed.
1397 (pnmtops_nosetpage): Define default.
1398 (install_data): Handle www.tmac-sed and substitute
1399 @PNMTOPS_NOSETPAGE@.
1400 (stamp-sed): Add www.tmac.
1401 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1402 It now breaks URLs at suitable places.
1403 (www:substring_ok): New register set by...
1404 (www:@test_substring): New macro.
1405 (www:error): New alias to www-error.
1406 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1408 (URL): Use www:url_breaks.
1409 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1410 (CDS, CDE): New macros.
1412 2003-02-25 Werner LEMBERG <wl@gnu.org>
1414 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1417 2003-02-24 Werner LEMBERG <wl@gnu.org>
1419 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1420 can be negative also.
1422 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1424 (read_char_table): Avoid negative ascenders.
1425 (output_charset): Add cast.
1426 * font/devlj4/*: Regenerated.
1428 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1431 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1432 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1434 * font/devdvi/*: Regenerated.
1436 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
1437 normal width, while the previously used characters (U+2329 and
1438 U+232A) are classified as wide due to canonical equivalence with the
1439 CJK punctuation characters U+3008 and U+3009.
1441 * font/devutf8/R.proto: Updated.
1442 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1444 * man/groff_char.man: Simplify handling of table traps by
1445 introducing `start block' and `end block' macros.
1446 (Ns, Ne, 2s, 2e, Ds, De): New macros.
1447 (DL): Make it work with Unix troff also.
1448 Fix code values of `la' and `ra'.
1450 * tmac/dvi.tmac: Define `<>' for CW and CWI.
1452 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
1454 * src/devices/grohtml/post-html.cc (element_list::~element_list):
1455 New destructor, fixing a major memory leak.
1457 2003-02-22 Werner LEMBERG <wl@gnu.org>
1459 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1460 to be in conformance with Unicode 3.0 and newer.
1462 * font/devlj4/generate/text.map: Add `Eu'.
1463 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1464 * font/devlj4/S: Regenerated.
1466 * man/groff_char.man: Completely rewritten.
1468 * doc/groff.texinfo: Fix description of request and macro arguments.
1470 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
1474 * src/devices/grohtml/html-table.cc (html_table::~html_table):
1475 Deallocate `columns' list.
1476 * src/devices/grohtml/post-html.cc (char_block::~char_block):
1478 (text_glob::text_glob_html, text_glob::text_glob_special,
1479 text_glob::text_glob_line, text_glob::text_glob_auto_image,
1480 text_glob::text_glob_tag): Avoid memory leaks.
1481 (text_glob::remember_table): Free memory before reassigning.
1483 2003-02-19 Werner LEMBERG <wl@gnu.org>
1485 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1486 alias `hbar'), the Planck constant over two pi.
1488 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1489 `+e' for position 34.
1490 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1491 `u2662' and `u2661'.
1492 * font/devdvi/{MI,S}: Regenerated.
1493 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1494 * font/devlbp/*: Add `hbar' alias.
1495 * font/devlj4/generate/special.map: Ditto.
1496 * font/devlj4/S: Regenerated.
1497 * font/devps/generate/symbolchars: Add `+e'.
1498 * font/devps/generate/textmap: Fix PS name for `-h'.
1500 * font/devps/symbolmap: Regenerated.
1502 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1504 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1506 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1509 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1511 * tmac/tty-char.tmac: Add `+e'.
1513 2003-02-17 Werner LEMBERG <wl@gnu.org>
1515 Another round trying to really fix problems with `have_input'.
1517 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1518 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1520 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1521 handling if both foreground and background colors are default.
1523 * doc/groff.texinfo (Debugging): Document .lf differences to
1526 2003-02-16 Werner LEMBERG <wl@gnu.org>
1528 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1529 null-bytes in created string.
1531 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1532 alias_macro, lookup_request): Improve warning messages.
1534 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1536 Free `last_image_filename'.
1538 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1540 (imageList::createPage, imageList::createImage): Use `free', not
1542 (imageItem::~imageItem): Free `imageName'.
1543 (addRegDef): Use `strsave', not `strdup'.
1544 (get_resolution): Free `pathp'.
1546 2003-02-15 Werner LEMBERG <wl@gnu.org>
1548 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1551 2003-02-14 Werner LEMBERG <wl@gnu.org>
1553 Add memory management for colors to deallocate unnamed colors
1556 * src/include/color.h (color): New members `free_list' and `next'.
1557 New member functions `new' and `delete'.
1559 * src/libs/libgroff/color.cc: Implement it.
1561 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1562 for array size of new operator.
1564 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1565 redundant comparison.
1567 * src/roff/troff/input.cc (word_space_node::reread,
1568 hmotion_node::reread): Avoid warning about unused parameter.
1569 (reset_output_registers): Remove redundant parameter.
1570 (define_color): Undo change 2003-02-12.
1572 * src/roff/troff/reg.h: Updated.
1574 * src/roff/troff/node.cc (troff_output_file::really_print_line,
1575 output_file::put_filename, real_output_file::really_put_filename,
1576 ascii_output_file::really_print_line,
1577 break_char_node::get_hyphen_list): Avoid warning about unused
1579 (suppress_node::tprint): Updated.
1581 * configure.ac: Check declaration for rand() and srand().
1582 * configure: Regenerated.
1584 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1586 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1589 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1590 to avoid compiler warnings.
1592 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1595 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1597 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1599 Updated all callers.
1601 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1603 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1604 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1606 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1607 Parameter is unused.
1608 (html_printer::add_table_end): Define parameter conditionally.
1609 * src/devices/grohtml/output.cc (simple_output::special): Parameter
1612 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1613 (lbp_printer::set_char): Last parameter is unused.
1615 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1617 2003-02-13 Werner LEMBERG <wl@gnu.org>
1619 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1620 Make \D'f ...' move horizontally again for backwards compatibility.
1621 Replace it with \D'Fg ...' where appropriate to avoid dependency
1622 on horizontal resolution.
1624 * src/roff/troff/input.cc (do_get_long_name): New function.
1625 (get_long_name): Call it.
1627 (read_draw_node): Handle `\D'Fx ...' by calling ...
1628 (read_color_draw_node): New function.
1630 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1632 Pass it to `do_get_long_name' which is used instead of
1635 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1636 unnecessary value guard.
1637 (parse_D_command) <'f'>: Add horizontal shift.
1639 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1640 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1641 (FILL_MAX): Removed.
1643 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1646 2003-02-12 Werner LEMBERG <wl@gnu.org>
1648 * src/roff/troff/input.cc (do_name_test, do_expr_test,
1649 do_zero_width): Push `\n' if closing delimiter is missing.
1651 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1652 <'F'>: Make \F non-transparent at the beginning of line.
1653 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1654 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1657 (define_color): Free color in case of reassignment.
1659 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1660 @DefescListEnd): Use @Var, not @var.
1663 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1665 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1666 `shaded' and `outlined' arrays.
1667 (object_spec::object_spec): Initialize `shaded' and `outlined'.
1668 (graphic_object::set_fill_color, graphic_object::set_outline_color):
1670 (closed_object::set_fill_color): Ditto.
1671 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1673 (troff_output::reset_color): Use a_delete instead of free.
1674 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1676 2003-02-11 Werner LEMBERG <wl@gnu.org>
1678 * doc/groff.texinfo: Improve documentation of `ad'.
1679 Document that \D'f...' is dependent on the horizontal resolution.
1680 * man/groff_diff.man: Improve documentation of \D'f...'.
1682 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1683 compensating \h'...' for \D'f ...' since the latter no longer moves
1685 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1687 2003-02-10 Werner LEMBERG <wl@gnu.org>
1689 Improve error messages for `x F' (and `F') commands.
1691 * src/include/error.h: Add declaration for
1692 `current_source_filename'.
1693 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1694 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1695 parameter for source file string.
1696 Updated all callers.
1698 * src/libs/libdriver/input.cc: Add `current_source_filename'.
1699 (remember_source_filename): New function.
1700 (parse_x_command <'F'>, do_file <'F'>): Use it.
1702 2003-02-09 Werner LEMBERG <wl@gnu.org>
1704 Make grotty not emit warnings about unknown colors more than
1707 * src/devices/grotty/tty.cc: Include `ptable.h'.
1708 (TTY_MAX_COLORS): Removed.
1709 (DEFAULT_COLOR_IDX): Defined to -1.
1710 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1711 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1712 Change `tty_colors' to be a ptable.
1713 First arg of `put_color' is now `char'.
1714 New functions `make_rgb_string' and `tty_color'.
1715 (tty_printer::tty_printer): Use `tty_color'.
1716 (tty_printer::color_to_idx): Return value is now `char'.
1719 * src/include/color.h (color): Add `print_color' member function.
1720 * src/libs/libgroff/color.cc (color::print_color): Implement it.
1722 2003-02-08 Werner LEMBERG <wl@gnu.org>
1726 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1729 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1730 assume that value has been allocated with `new[]', thus use
1731 `a_delete' for deallocation.
1733 * src/libs/libdriver/input.cc (get_integer_arg,
1734 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1737 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1738 * src/libs/libgroff/nametoindex.cc
1739 (character_indexer::named_char_index): Use `new <type>[1]'.
1741 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1743 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1744 (split_text): Use `a_delete'.
1746 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1749 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1750 harmless memory leak.
1751 (hyphen_trie::read_patterns_file): Initialize `buf'.
1752 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1753 Initialize `current_fill_color'and `current_glyph_color'.
1754 * src/roff/troff/glyphuni.cc
1755 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1756 * src/roff/troff/uniuni.cc
1757 (unicode_decompose_init::unicode_decompose_init): Ditto.
1758 * src/roff/troff/uniglyph.cc
1759 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1761 2003-01-26 Werner LEMBERG <wl@gnu.org>
1763 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1764 `access' before calling `unlink'.
1765 (do_file): Handle __EMX__.
1767 * src/include/nonposix.h: Handle __EMX__.
1769 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1770 (fontpath,tmacpath): Use it.
1772 Sorted alphabetically.
1774 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1776 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1779 2003-01-27 Werner LEMBERG <wl@gnu.org>
1781 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1782 New files, copied from gnulib.
1783 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1784 * configure.ac: Updated.
1785 * configure: Regenerated.
1787 * src/include/config.hin: Regenerated.
1788 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1789 Don't define `strcasecmp' as `strcmp'.
1790 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1791 Dont define `strncasecmp' as `strncmp'.
1793 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1796 2003-01-26 Werner LEMBERG <wl@gnu.org>
1798 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1801 2003-01-25 Werner LEMBERG <wl@gnu.org>
1803 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1805 2003-01-24 Werner LEMBERG <wl@gnu.org>
1807 Add US-english hyphenation exceptions (converted from Barbara
1808 Beeton's hyphenation exception log reports which appear irregularly
1811 * tmac/hyphen.us: Updated to latest version.
1812 * tmac/README: Updated.
1813 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1814 * tmac/troffrc: Load `hyphenex.us'.
1815 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1816 * doc/groff.texinfo: Updated.
1818 2003-01-23 Werner LEMBERG <wl@gnu.org>
1820 Improve hyphenation slightly. This is a first step in redesigning
1821 the hyphenation algorithm to make it more flexible (e.g. allowing
1822 kerns and ligatures between the hyphenation character and the
1823 following character -- while not used normally in English, other
1824 languages like German would benefit).
1826 * src/roff/troff/env.cc (environment::hyphenate_line): Use
1827 assertion instead of if-clause.
1828 Let `get_hyphen_list' return the number of involved characters in
1829 the hyphenation pattern instead of computing it directly (which
1830 often yields too small values).
1831 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1832 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1835 2003-01-22 Werner LEMBERG <wl@gnu.org>
1837 Fixing a bug which caused groff to hang if the hyphenation exception
1838 dictionary tried to grow.
1840 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1841 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1842 pointer to dictionary.
1844 2003-01-20 Werner LEMBERG <wl@gnu.org>
1846 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1847 negative left italic correction.
1848 * src/utils/afmtodit/afmtodit.man: Document it.
1850 * font/devps/generate/Makefile (RFLAG): Add `-m'.
1851 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1852 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1856 2003-01-16 Werner LEMBERG <wl@gnu.org>
1860 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
1862 * src/preproc/refer/refer.man: Mention REFER environment variable.
1864 2003-01-05 Werner LEMBERG <wl@gnu.org>
1866 Similar to \[is], the square root glyph (\[sr]) and the square root
1867 extension glyph (\[radicalex]) are now text symbols. The new
1868 mathematical versions are called \[sqrt] and \[sqrtex],
1871 * font/devX*/S: Regenerated.
1872 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1873 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1874 * font/devdvi/EX, font/devdvi/S: Regenerated.
1875 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1876 * font/devlj4/generate/special.map: Add `sqrt'.
1877 * font/devlj4/S: Regenerated.
1878 * font/devps/generate/textmap: Add `sqrt'.
1879 * font/devps/S, font/devps/symbolmap: Regenerated.
1881 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1882 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1883 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1884 overlap horizontally.
1886 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1887 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1890 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1891 and `sqrtex' are overlapping glyphs.
1893 2003-01-04 Werner LEMBERG <wl@gnu.org>
1895 * font/devdvi/generate/texsy.map: Add `is'.
1896 * font/devps/symbolmap: Regenerated.
1897 * font/devdvi/*TC, MI, S: Regenerated.
1899 * tmac/dvi.tmac: Remove `is'.
1901 2003-01-03 Werner LEMBERG <wl@gnu.org>
1903 `is' is now a text symbol (only relevant for dvi). The math variant
1904 can be accessed with `integral'.
1906 * font/devX*/S: Regenerated.
1907 * font/devdvi/generate/texex.map: Remove `is'.
1908 * font/devdvi/EX: Updated.
1909 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1910 * font/devlj4/generate/special.map: Ditto.
1911 * font/devlj4/S: Regenerated.
1912 * font/devps/generate/textmap: Add `integral'.
1913 * font/devps/S: Regenerated.
1915 * tmac/dvi.tmac: Define `is'.
1917 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1919 * src/preproc/tbl/main.cc (process_format): Fix error message.
1921 2003-01-02 Werner LEMBERG <wl@gnu.org>
1923 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1924 * font/devps/textmap: Fix entries for `ne' and `nc'.
1925 * font/devps/symbolmap: Regenerated.
1927 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1928 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1929 `38', `58', `78', `-+', `|=', `nc', `ne'.
1931 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1932 Use `schar' for `aq'.
1933 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1934 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1935 * tmac/tty.tmac: Add `ne'.
1937 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1938 for fallback glyphs.
1940 2002-12-29 Werner LEMBERG <wl@gnu.org>
1944 * font/devX*/*: Regenerated.
1945 * font/devdvi/generate/ec.map: Remove `eq'.
1946 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1947 Assign `|=' to position 39.
1948 * font/devdvi/*EC, S: Regenerated.
1949 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1950 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1951 Assign `|=' to position 549.
1952 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1954 Add `uni2243' for `|='.
1956 * tmac/ec.tmac: Add `eq'.
1957 * tmac/dvi.tmac: Add `=~'.
1958 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1961 2002-12-21 Werner LEMBERG <wl@gnu.org>
1963 * font/devdvi/generate/tc.map: Remove `**'.
1964 * font/devdvi/*TC: Regenerated.
1965 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
1967 * font/devutf8/NOTES: Updated.
1969 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
1970 Don't give default parameter to `set_macro'.
1971 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
1972 instead of `set_macro'.
1973 (charinfo::setx_macro): Implement it.
1974 (charinfo::set_macro): Don't change `mode'.
1976 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
1977 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
1978 * tmac/dvi.tmac: Define `!=' with `.schar'.
1980 2002-12-20 Werner LEMBERG <wl@gnu.org>
1982 * font/devX*/S: Regenerated.
1983 * font/devdvi/generate/ec.map: Remove `pl'.
1984 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
1985 * font/devdvi/*{TC,EC}: Regenerated.
1986 * font/devhtml/R.proto: Add `-+'.
1987 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
1988 * font/devlbp/*: Remove `or'.
1989 * font/devlj4/generate/special.map: Remove `or'.
1990 * font/devlj4/S: Regenerated.
1991 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
1992 `seveneighths', `threeeighths'.
1994 Replace `minusplus' with `uni2213'.
1995 * font/devps/symbolmap: Regenerated.
1996 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
1999 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
2001 * src/roff/troff/node.cc (troff_output_file::put_char_width):
2002 Call glyph_color and fill_color even if tcommand_flag isn't set.
2003 (make_node, node::add_char): Check not ci->is_fallback but
2006 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
2007 * tmac/ec.tmac: Add .rchar entry for `f/'.
2008 Don't remove `12', `14', `34'.
2009 Define `pl' to be always roman.
2010 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
2011 Define `18', `38', `58', `78'.
2012 * tmac/tty.tmac: Add `-+'.
2013 * tmac/dvi.tmac: Define `f/'.
2014 (dvi-frac): Use `f/'.
2015 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
2016 Define `18', `38', `58', `78'.
2018 2002-12-15 Colin Watson <cjwatson@debian.org>
2020 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
2022 2002-12-10 Werner LEMBERG <wl@gnu.org>
2024 Add glyph `tno', a textual variant of `no'.
2026 * font/devX*/*: Regenerated.
2027 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
2028 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
2029 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
2030 * font/devdvi/*: Regenerated.
2031 * font/devlbp/*: Add `tno'.
2032 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
2033 * font/devlj4/*: Regenerated.
2034 * font/devps/generate/textmap: Replace `no' with `tno'.
2035 * font/devps/generate/symbolchars: Add `no'.
2036 * font/devps/*: Regenerated.
2038 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
2040 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
2041 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
2045 * tmac/dvi.tmac: Replace most `\\' with `\E'.
2046 Add definition for `sd'.
2047 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
2049 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
2051 2002-12-08 Werner LEMBERG <wl@gnu.org>
2053 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
2054 mode to avoid rounding errors.
2055 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
2057 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
2058 src/roff/troff/troff.man: Improve documentation of -T.
2060 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
2062 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
2063 (run_pipeline) [_WIN32]: Provide working function without `fork'.
2065 2002-12-06 Werner LEMBERG <wl@gnu.org>
2067 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
2068 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
2069 Scaling Euro.sansserif glyphs down to have the same height as
2071 Removed unnecessary points; added some extrema.
2073 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2076 2002-12-04 Werner LEMBERG <wl@gnu.org>
2078 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
2079 and `Euro.symbol.bold.slanted'.
2080 Improve some glyph offsets and widths.
2081 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
2083 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
2085 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
2088 * tmac/europs.tmac: Updated to new glyph indices.
2089 Use Euro.symbol for font familiy `A'.
2091 * doc/groff.texinfo: Minor improvements.
2093 2002-12-02 Werner LEMBERG <wl@gnu.org>
2095 * font/devdvi/generate.tc.map: s/%O/%0/.
2096 * font/devdvi/*TC: Regenerated.
2098 * src/roff/troff/div.cc (init_div_requests): Sorted.
2100 * tmac/dvi.tmac: Remove `Ye'.
2101 * tmac/ec.tmac: Remove `Ye'.
2102 Add .rchar entry for `de'.
2104 * man/groff.man, man/groff_diff.man: Document register `.pe'.
2105 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
2108 2002-11-30 Werner LEMBERG <wl@gnu.org>
2110 Add PS font for various Euro glyphs.
2112 * font/devps/generate/freeeuro.sfd: New master font file for
2114 * font/devps/generate/sfdtopfa.pe: New conversion script for
2116 * font/devps/generate/Makefile (FONTS): Add `EURO'.
2117 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
2118 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
2120 * font/devps/EURO: Generated from `freeeuro.afm'.
2121 * font/devps/download: Add `freeuro.pfa'.
2122 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
2125 * tmac/europs.tmac: New file.
2126 * tmac/ps.tmac: Include `europs.tmac'.
2127 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
2129 2002-11-29 Werner LEMBERG <wl@gnu.org>
2131 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
2132 * font/devdvi/S: Regenerated.
2133 * font/devhtml/R.proto: Fix `CR' and `ci'.
2135 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
2137 * font/devps/symbolmap: Regenerated.
2138 * font/devutf8/R.proto: Fix `CR' and `ci'.
2140 * font/devutf8/NOTES: Updated.
2142 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
2145 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2147 * tmac/dvi.tmac: Add `lh' and `rh'.
2148 * tmac/Xps.tmac: Fix `lh' and `rh'.
2149 * tmac/X.tmac: Add `OK'.
2150 * tmac/lj4.tmac: Ditto.
2152 2002-11-24 Werner LEMBERG <wl@gnu.org>
2154 * font/devX*/S: Regenerated.
2155 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
2156 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
2157 * font/devdvi/generate/texsy.map: Remove `or' glyph.
2158 * font/devdvi/S: Regenerated.
2159 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
2160 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
2161 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
2162 `bracketleftbt', `bracketrighttp', `bracketrightex',
2163 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
2164 `braceex', `braceleftex', `bracerightex', `bracerighttp',
2165 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
2167 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
2168 * font/devutf8/NOTES: Updated.
2169 * font/devlj4/generate/special.map: Add glyph `braceex'.
2170 * font/devlj4/S: Regenerated.
2172 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
2174 2002-11-14 Werner LEMBERG <wl@gnu.org>
2176 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
2179 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
2181 * doc/texinfo.tex: New version from texinfo 4.3.
2182 * doc/groff.texinfo: Updated for texinfo 4.3.
2183 Use @tie{} where appropriate.
2184 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
2185 * font/devdvi/generate/tc.map: Remove `rn'.
2186 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
2187 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
2189 * font/devX100/*, font/devX100-12/*, font/devX75/*,
2190 font/devX75-12/*: Regenerated.
2192 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
2193 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
2194 Improve definition of `an'.
2195 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
2197 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
2198 * tmac/X.tmac: Add definition for `or'.
2199 * tmac/Xps.tmac: Undo change 2002-11-05.
2200 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
2202 2002-11-11 Werner LEMBERG <wl@gnu.org>
2204 * src/roff/troff/node.cc (troff_output_file::put_char): Always
2207 2002-11-10 Werner LEMBERG <wl@gnu.org>
2209 Added three new requests `schar', `fschar', and `rfschar'. `schar'
2210 defines a glyph which is searched after the check for fonts declared
2211 with `.special' (and before the check for all mounted special
2212 fonts). `fschar' defines a glyph for a particular font which is
2213 searched after the check for fonts declared with `.fspecial' (and
2214 before the check for fonts declared with `.special'). `rfschar'
2215 removes glyphs defined with `fschar'.
2217 * src/roff/troff/token.h (char_mode): New enum.
2218 Declare do_define_character.
2219 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
2221 (charinfo::is_fallback): Updated.
2222 (charinfo::is_special): New method.
2223 * src/roff/troff/input.cc (do_define_character): Add and use
2224 optional second parameter used as a prefix for font-specific glyph
2226 (define_character, define_fallback_character): Updated.
2227 (define_special_character): New function.
2228 (init_input_requests): Add `schar'.
2229 (charinfo::charinfo, charinfo::set_macro): Updated.
2230 * src/roff/troff/node.cc: Include `stringclass.h'.
2231 (make_glyph_node): Handle special glyphs defined with `.schar' and
2233 (define_font_special_character, remove_font_special_character): New
2235 (init_node_requests): Sorted.
2236 Add `fschar' and `rfschar'.
2237 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2238 Document new requests.
2240 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
2241 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
2243 2002-11-08 Werner LEMBERG <wl@gnu.org>
2245 Added new font `SC' (cmtex10) to devdvi.
2247 * devdvi/generate/Makefile (FONTS): Add `SC'.
2249 * devdvi/generate/textex.map: New map file for cmtex.
2251 * devdvi/Makefile.sub (DEVFILES): Updated.
2252 * tmac/dvi.tmac: Add fspecial entries for SC.
2253 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
2254 found before `S' since the font position of `SC' is lower due to the
2255 gaps in DESC's `font' line.
2256 * tmac/ec.tmac: Add a `special' call.
2259 * font/devhtml/R.proto: Remove double entry for `ti'.
2260 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
2261 * tmac/tty-char.tmac: Remove entry for `bq'.
2262 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
2263 * tmac/ec.tmac: Don't remove `aq' glyph.
2264 * tmac/X.tmac: Fix entry for `em'.
2265 Add entries for `fo' and `fc'.
2266 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
2268 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
2269 documentation of `special' and `fspecial' requests.
2271 2002-11-05 Werner LEMBERG <wl@gnu.org>
2273 * font/devascii/R.proto, font/devcp1047/R.proto,
2274 font/devlatin1/R.proto: Remove entry for `.i'.
2275 * font/devdvi/generate/textt.map: Add entry for `ad'.
2276 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2277 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2278 We need this for getting kerning values to compose `/l' and `/L'.
2279 * font/devdvi: Regenerated font definition files for CM fonts.
2280 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2281 * font/devutf8/R.proto: Ditto.
2282 Remove double entry for `ti'.
2284 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2285 for (groff) ligatures, `la', and `ra'.
2286 Add "'C", "'c", `IJ', and `ij'.
2287 Remove double entry for `ti'.
2288 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2290 Add "'C", "'c", `IJ', and `ij'.
2291 Fix entries for (groff) ligatures, `la', and `ra'.
2293 * tmac/ps.tmac (ps-achar): New macro.
2294 Define "'c" and "'C".
2295 * tmac/tty.tmac: Add entry for `.i'.
2296 * tmac/X.tmac (X-achar): New macro.
2297 Define "'c", "'C", and `:Y'.
2298 Add entries for `IJ' and `ij'.
2299 * tmac/Xps.tmac (Xps-achar): New macro.
2300 Define "'c" and "'C".
2301 Add entries for `IJ' and `ij'.
2302 * tmac/lbp.tmac (lbp-achar): New macro.
2303 Add fallback characters for all groff ligatures and many other
2305 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
2306 Add entries for `/l' and `/L'.
2307 Define "'c" and "'C".
2308 Add entries for `IJ' and `ij'.
2310 2002-11-02 Larry Kollar <kollar@alltel.net>
2312 * PROBLEMS: Document how to solve Mac OS X compilation problems.
2314 2002-11-02 Werner LEMBERG <wl@gnu.org>
2316 Adding support for composite glyphs: \[xxx yyy ...] and the
2317 `composite' request.
2319 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2320 to Unicode-based glyph names.
2321 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2322 glyph names to groff glyph names.
2323 * src/roff/troff/uniuni.cc: New file for canonically decomposing
2324 Unicode-based glyph names.
2325 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2326 for handling Unicode glyph names.
2327 * src/roff/troff/input.cc: Include unicode.h.
2328 (composite_glyph_name): New function.
2329 (token::next) <'['>: Handle Unicode glyph names and composite
2331 (composite_dictionary): New dictionary for the `composite' request.
2332 (composite_request): Implement `composite' request.
2333 (init_input_requests): Add `composite'.
2334 Alphabetically sorted.
2335 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2337 (init_env_requests): Alphabetically sorted.
2338 Removed `tas' and `tar' (already commented out).
2339 * src/roff/troff/Makefile.sub: Updated.
2341 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
2343 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2346 2002-10-29 Werner LEMBERG <wl@gnu.org>
2348 Fix computation of .trunc register. Additionally, its value (and
2349 the value of the .ne register) is now always set before entering the
2352 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2353 `needed_space' before calling `space'.
2354 (top_level_diversion::space): Remove special code for 'sp before the
2356 Call `begin_page' with the discarded space as a parameter.
2357 (top_level_diversion::begin_page): Add optional parameter to set
2359 * src/roff/troff/div.h: Updated.
2361 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2364 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2365 (LP): Remove superfluous call to `br'.
2366 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2367 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2369 2002-10-26 Werner LEMBERG <wl@gnu.org>
2371 * tmac/doc-ditroff: Remove useless switch/variable -rC.
2372 (doc-setup-header): Don't set page register `%'.
2373 * tmac/doc-nroff: Remove variable `C'.
2374 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2375 (doc-setup-header): Don't set page register `%'.
2377 * tmac/doc-common (doc-header): Call `ns'.
2378 (doc-paragraph): Protect .sp with .br so that it survives traps
2379 possibly set by the user.
2380 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2382 * tmac/doc*: Replace ' with . for consistency if no effect.
2384 2002-10-26 Werner LEMBERG <wl@gnu.org>
2386 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2387 so that it survives traps possibly set by the user.
2389 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2390 (troff_output_file::set_font): Call flush_tbuf if necessary.
2391 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2392 flush_tbuf and do_motion only if necessary.
2393 (troff_output_file::start_special,
2394 troff_output_file::put_char_width, troff_output_file::put_char,
2395 troff_output_file::draw): Updated.
2396 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2397 vmotion_node::tprint): Undo change 2002-10-23.
2399 2002-10-25 Werner LEMBERG <wl@gnu.org>
2401 * tmac/www.tmac (DC): Fix case of overlapping images.
2403 2002-10-23 Werner LEMBERG <wl@gnu.org>
2405 * src/roff/troff/node.cc (troff_output_file::fill_color,
2406 troff_output_file::glyph_color): Set current color before testing
2408 (troff_output_file::put_char_width, troff_output_file::put_char,
2409 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2411 (troff_output_file::file_color, troff_output_file::glyph_color):
2413 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2414 vmotion_node::tprint): Move first, then call fill_color.
2416 2002-10-20 Werner LEMBERG <wl@gnu.org>
2418 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2419 possible to use multiple main macro packages.
2421 2002-10-19 Werner LEMBERG <wl@gnu.org>
2423 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2424 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2425 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2427 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2428 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2430 2002-10-16 Werner LEMBERG <wl@gnu.org>
2432 * NEWS, doc/webpage.ms: Updated.
2434 2002-10-14 Werner LEMBERG <wl@gnu.org>
2436 * src/roff/troff/node.cc (troff_output_file::put_char_width,
2437 troff_output_file::put_char, troff_output_file::fill_color,
2438 troff_output_file::glyph_color): Handle case where color pointer
2441 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
2443 Add the new -r option to grotty. It is similar to the -i option
2444 except it tells grotty(1) to use the "reverse video" attribute to
2445 render italic fonts.
2447 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2448 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2449 (tty_printer::make_underline, tty_printer::put_color,
2450 tty_printer::end_page): Use it.
2451 (main): Add -r switch.
2453 * src/devices/grotty/grotty.man: Document it.
2455 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
2457 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2458 cast to `unsigned char' to properly read patterns with 8bit
2461 2002-10-08 Werner LEMBERG <wl@gnu.org>
2463 * REVISION: Increased to 2.
2465 Version 1.18.1 released
2466 =======================
2468 2002-10-08 Werner LEMBERG <wl@gnu.org>
2470 * doc/webpage.ms, NEWS: Updated.
2472 2002-10-07 Werner LEMBERG <wl@gnu.org>
2474 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2475 suppress additional whitespace after the header.
2477 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2480 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2482 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
2484 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2485 (Dt): Use it to improve language localization (especially Russian
2488 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
2490 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2491 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2493 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2495 Call `picurve' for BSPLINE.
2496 (HGPrintElt): Handle BSPLINE.
2497 * src/preproc/grn/README: Document it.
2499 2002-10-03 Werner LEMBERG <wl@gnu.org>
2501 * src/roff/troff/node.cc (break_char_node::col): New variable.
2502 Updated constructor.
2503 (space_node::tprint, word_space_node::tprint): Call `fill_color'
2505 (space_node::space_node): Remove assertion.
2506 (break_char_node::add_self): Pass color argument to space node.
2507 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2509 * src/roff/troff/env.cc (environment::do_break,
2510 environment::add_padding): Ditto.
2512 2002-10-02 Werner LEMBERG <wl@gnu.org>
2514 Redesigning color support in troff. Colors are no longer
2515 represented as separate nodes but are now part of glyph nodes and
2516 friends. This fixes the current formatting misbehaviour due to the
2517 changes introduced on 2002-09-20. Some extra code is necessary for
2518 proper grotty support: Without adding color variables to
2519 space-related nodes, the background color would be changed too late.
2521 * src/roff/troff/node.h, src/roff/troff/node.cc:
2522 s/current_pagecolor/current_fill_color/.
2523 s/current_glyphcolor/current_glyph_color/.
2524 (glyph_color_node, fill_color_node): Removed.
2525 (node::get_glyph_color, node::get_fill_color): New virtual member
2527 (space_node::col): New variable.
2528 Updated constructors of space_node and derived classes accordingly.
2529 (hmotion_node::col): New variable.
2530 Updated constructors of hmotion_node and space_char_hmotion_node
2532 (vmotion_node::col): New variable.
2533 Updated constructor accordingly.
2534 (draw_node::gcol, draw_node::fcol): New variables.
2535 Updated constructor accordingly.
2536 (special_node::gcol, special_node::fcol): New variables.
2537 Updated constructors accordingly.
2538 (troff_output_file::put_char, troff_output_file::put_charwidth,
2539 troff_output_file::draw): Set glyph and fill color.
2540 (troff_output_file::start_special): Set glyph and fill color.
2541 Always set current font.
2542 (troff_output_file::fill_color, troff_output_file::glyph_color):
2543 Don't call `do_motion'.
2544 (glyph_node::gcol, glyph_node::fcol): New variables.
2545 Updated constructors of glyph_node and ligature_node accordingly.
2546 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2548 (glyph_node::merge_glyph_node,
2549 kern_pair_node::add_discretionary_hyphen,
2550 node::add_discretionary_hyphen): Updated.
2551 (break_char_node::merge_self): Updated.
2552 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2553 vmotion_node::tprint): Handle color.
2554 (make_glyph_node, make_node, node::add_char): Updated.
2556 * src/roff/troff/env.cc (environment::space_newline,
2557 environment::space, environment::output_line, environment::do_break,
2558 environment::make_tab_node, environment::add_padding, title):
2560 (environment_switch, environment_copy): Don't add color nodes.
2562 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2564 (token::next): Updated.
2565 \m and \M now are as transparent as \s.
2566 (process_input_stack, token::add_to_node_list, token::process,
2567 read_draw_node): Updated.
2568 (charinfo_to_node_list): Don't add color nodes.
2570 * doc/groff.texinfo: Updated.
2572 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
2574 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2577 2002-09-27 Colin Watson <cjwatson@debian.org>
2579 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2581 2002-09-23 Werner LEMBERG <wl@gnu.org>
2583 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2585 (DEFAULT_LINEWIDTH_FACTOR): New macro.
2586 (linewidth_factor): New global variable.
2587 (lbp_printer::set_line_thickness): Fix case for size < 0, using
2589 (long_options): Add -w/--linewidth option.
2591 (main): Handle -w option to set linewidth_factor.
2592 (lbp_printer::lbp_printer): Initialize req_linethickness, not
2595 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2597 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
2599 Fixed a bug in the line thickness setting code.
2601 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2603 (lbp_printer::set_line_thickness): Pass environment as second
2605 Implement it actually.
2606 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2607 and `set_line_thickness, depending on the current font size.
2609 2002-09-21 Werner LEMBERG <wl@gnu.org>
2611 Some Debian patches.
2613 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2614 * src/roff/troff/node.cc (bracket_node::copy): Initialize
2617 2002-09-20 Werner LEMBERG <wl@gnu.org>
2619 * configure: Regenerated with autoconf 2.54.
2621 2002-09-20 Werner LEMBERG <wl@gnu.org>
2623 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2625 Rename cur_fill_color to fill_color.
2626 * src/roff/troff/env.cc: Updated.
2628 2002-09-20 Werner LEMBERG <wl@gnu.org>
2630 * src/roff/troff/env.cc (title): Copy color status after processing
2632 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2633 fill color nodes to reset colors properly.
2635 * tmac/www.tmac (DC): Fix color handling.
2637 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2638 * doc/groff.texinfo: Fixing documentation of `tl' request.
2639 * doc/webpage.ms: Updated.
2641 2002-09-19 Werner LEMBERG <wl@gnu.org>
2643 * src/roff/troff/env.cc (environent_switch, environment_copy):
2644 Emit glyph and fill color nodes to initialize colors properly.
2646 2002-09-17 Colin Watson <cjwatson@debian.org>
2648 * src/roff/troff/env.cc (environment::set_glyph_color,
2649 environment::set_fill_color): Fix typo which prevented \m[] work
2652 2002-09-17 Werner LEMBERG <wl@gnu.org>
2654 Add left and right italic correction to non-slanted PS fonts. This
2655 is an experimental feature to improve image rendering of grohtml.
2657 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2658 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2659 * font/devps/*: All non-slanted fonts regenerated.
2662 2002-09-16 Werner LEMBERG <wl@gnu.org>
2664 Add a site-specific font directory.
2666 * Makefile.in (localfontdir, legacyfontdir): New variables.
2667 (fontpath): Use them.
2668 (MDEFINES, uninstall_dirs): Updated.
2669 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2670 Remove `FONTPATH' and `MACROPATH'.
2672 * src/roff/troff/troff.man, NEWS: Updated.
2673 * doc/groff.texinfo (Font Directories): New section.
2676 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2677 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2678 src/preproc/grn/grn.man: Minor fixes.
2680 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2681 Remove unused variable.
2683 2002-09-11 Werner LEMBERG <wl@gnu.org>
2685 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2686 * man/groff_out.man: Fix documentation of 'N'.
2688 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
2690 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2691 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2693 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2694 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2695 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2696 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2697 PRE_TAG>: Call `begin' with `FALSE'.
2699 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2701 * src/libs/libgroff/string.cc (string::extract): Fix position of
2702 terminating null byte.
2704 2002-09-08 Werner LEMBERG <wl@gnu.org>
2706 Add global option `nospaces' to tbl so that leading and trailing
2707 spaces in data items are ignored.
2709 * src/libs/libgroff/string.cc (string::remove_spaces): New member
2710 function to remove leading and trailing spaces.
2711 * src/include/stringclass.h: Updated.
2713 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2715 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2717 Fix typo in error messages.
2718 (process_data): Implement `nospaces' option.
2719 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2721 2002-09-07 Werner LEMBERG <wl@gnu.org>
2723 * src/include/config.hin: Add `HAVE_ISATTY'.
2724 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2726 * src/libs/libgroff/tmpname.cc: Include `time.h'.
2727 * src/libs/libdriver/input.cc (Char): Add `operator==' and
2728 `operator!=' for `char'.
2729 * doc/groff.texinfo: Replace @ifnottex block for top node with
2732 2002-09-06 Werner LEMBERG <wl@gnu.org>
2734 * doc/Makefile.in (.texinfo.html): Add -I switch.
2735 * doc/groff.texinfo: Add @ifnottex block for top node to make
2736 translation to HTML work.
2738 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
2740 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2741 (get_papersize, determine_vertical_offset): Removed.
2742 (char_buffer::do_image): Always specify letter size.
2744 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2747 2002-09-05 Werner LEMBERG <wl@gnu.org>
2749 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2750 default indentation.
2752 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
2754 * src/preproc/html/pre-html.cc (imageList::createPage): Use
2756 (generateImages): Clean up push-back buffer.
2758 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
2760 * doc/groff.texinfo: Minor fixes.
2762 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2764 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2765 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2767 (determine_vertical_offset): Use LETTER_LENGTH.
2768 (createPage): Moved to ...
2769 (imageList::createPage): This.
2770 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2771 (imageList::getMaxX): New function.
2772 (createImage): Moved to ...
2773 (imageList::createImage): This.
2774 (imageList::createImages): New function.
2775 (generateImages): Read `maxx' directly.
2777 (scanArguments): Don't specify `gsPaper' for `-o'.
2778 (makeTempFiles): Call `xtmpfile' with the last argument set to
2781 2002-08-24 Werner LEMBERG <wl@gnu.org>
2783 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2784 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2785 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2786 * src/preproc/html/pushback.cc: Include nonposix.h.
2787 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2790 2002-08-23 Werner LEMBERG <wl@gnu.org>
2792 Use $(OBJEXT) for the object file extension.
2794 * Makefile.comm (.SUFFIXES): Add .obj.
2795 (.cc.obj, .c.obj): New implicit rules.
2796 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2797 (MDEFINES): Add EXEEXT and OBJEXT.
2798 * */Makefile.sub: s/.o/.$(OBJEXT)/.
2800 2002-08-22 Werner LEMBERG <wl@gnu.org>
2802 * INSTALL: Mention texinfo 4.2 as a prerequisite.
2804 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
2806 * src/devices/grohtml/post-html.cc (colType): Make enum global to
2808 (html_printer::update_min_max, html_printer::add_table_end): New
2810 (html_printer::lookahead_for_tables): Use them.
2811 Reset page offset correctly.
2812 (html_printer::~html_printer): Add creation of creator comment up.
2814 2002-08-20 Werner LEMBERG <wl@gnu.org>
2816 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2817 * man/groff_tmac.man: Fix typos.
2818 * man/groff_font.man: Minor reordering.
2819 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2820 * contrib/groffer/groffer.man: Fix typos.
2822 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2824 Avoid endless loops while scanning for tables.
2826 * src/devices/grohtml/post-html.cc (list::insert): Set
2828 (html_printer::next_horiz_pos): Add `text_glob' argument; update
2830 Return immediately if that argument is NULL.
2831 (html_printer::calc_nf): Don't test if `g' is NULL.
2832 (html_printer::lookahead_for_tables): Use
2833 `glyphs.move_right_get_data'.
2834 Don't test if `g' is NULL.
2836 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
2838 A better fix, replacing fix 2002-08-15, for increasing SIZE.
2840 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2842 (char_block::char_block): Allocate `buffer'.
2843 (char_buffer::add_string): Use it.
2845 2002-08-15 Werner LEMBERG <wl@gnu.org>
2847 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2848 src/devices/grodvi/grodvi.man: Document default line thickness.
2850 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
2852 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2855 2002-08-14 Werner LEMBERG <wl@gnu.org>
2857 * doc/webpage.ms: Updated.
2859 2002-08-09 Werner LEMBERG <wl@gnu.org>
2861 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2864 2002-08-08 Aaron Campbell <aaron@monkey.org>
2866 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2869 2002-08-08 Werner LEMBERG <wl@gnu.org>
2871 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2874 Don't push back a space but a newline onto the stack.
2876 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
2878 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2881 * src/devices/grohtml/post-html.cc (html_printer::end_font,
2882 html_printer::start_font): Handle them.
2883 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2885 (html_text::do_bold): Don't reset italic and tt.
2886 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2887 * font/devhtml/DESC.proto: Add those fonts.
2888 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2890 2002-08-07 Werner LEMBERG <wl@gnu.org>
2892 * MORE.STUFF: Added gpresent.
2894 * tmac/trace.tmac: Show nesting level by a corresponding amount of
2895 whitespace before printing the logging message.
2897 2002-07-31 Colin Watson <cjwatson@debian.org>
2899 * src/devices/grohtml/html-table.cc (html_table::finish_row):
2900 Initialize `n' to zero. This fixes a segfault on ARM.
2902 2002-07-30 Werner LEMBERG <wl@gnu.org>
2904 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2906 2002-07-29 Werner LEMBERG <wl@gnu.org>
2908 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2911 2002-07-28 Colin Watson <cjwatson@debian.org>
2913 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2915 (html_printer::html_printer): Initialize `pointsize'.
2917 2002-07-26 Werner LEMBERG <wl@gnu.org>
2919 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2921 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2922 (gnu.eps): Add -rle switch to pnmtops.
2923 (distfiles): Add gnu.eps and gnu.png.
2925 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
2927 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2930 2002-07-24 Werner LEMBERG <wl@gnu.org>
2932 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2933 ' \+' but ' *' for sed.
2934 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2936 2002-07-23 Werner LEMBERG <wl@gnu.org>
2938 * doc/groff.texinfo: Document `papersize' keyword.
2939 * NEWS, man/groff_font.man: Updated.
2941 2002-07-23 Colin Watson <cjwatson@debian.org>
2943 Extend papersize keyword to accept more than a single entry. The
2944 first valid will be used.
2946 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2947 (font::scan_papersize): Really skip final newline.
2948 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2950 2002-07-23 Werner LEMBERG <wl@gnu.org>
2952 * configure.ac: Test for isatty.
2953 * configure: Regenerated.
2954 * src/include/posix.h: Check HAVE_ISATTY.
2955 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2956 * src/utils/lookbib/lookbib.cc: Include posix.h.
2957 Don't declare isatty.
2959 2002-07-21 Werner LEMBERG <wl@gnu.org>
2961 * NEWS: Add `output' request.
2963 * REVISION: Increased to 1.
2965 Version 1.18.0 released
2966 =======================
2968 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
2970 Allow internal glyph indices > 0xFF in grohtml for input characters.
2972 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
2974 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
2975 Updated all callers.
2976 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
2977 (html_printer): Updated.
2979 2002-07-19 Werner LEMBERG <wl@gnu.org>
2981 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
2982 * font/devutf8/R.proto: Adding some missing glyphs.
2983 * font/devutf8/NOTES: Updated.
2985 * tmac/dvi.tmac: Add more composite glyphs.
2986 * tmac/html.tmac: Updated.
2988 * man/groff_char.man: Add `sum' and `product' entities.
2992 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
2994 Improved table, tab, and indenting support.
2996 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
2997 string_iterator::suppress_newline_flag): Removed. Updated all
2998 function which have used it.
3000 * src/roff/troff/env.cc: Include `input.h'.
3001 (environment::add_node): Accept 0 as parameter.
3002 (environment::add_html_tag): Add `force' parameter.
3003 Updated all callers.
3004 (environment::add_html_tag_tabs): Ditto.
3005 For the moment, support left-aligned tabs only.
3006 (environment::make_html_tag): New function.
3007 (fill, no_fill): Set .br html tag additionally.
3008 (environment::newline): Emit `eol.ce' or `eol' tag for html.
3009 (environment::add_html_tag_eol): Removed.
3010 (tab_stops::distance_to_next_tab): Add variant for handling
3012 (environment::distance_to_next_tab): Ditto.
3013 Updated all callers.
3014 (environment::handle_tab): Handle tabs for html.
3016 * src/roff/troff/env.h: Updated.
3018 * src/roff/troff/div.cc: Updated all callers of
3019 `environment::add_html_tag'.
3021 * src/devices/grohtml/html-table.cc,
3022 src/devices/grohtml/html-table.h: New files.
3024 * src/devices/grohtml/html-text.cc (html_text): New members
3025 `blank_para' and `start_space'.
3026 (html_text::issue_tag): Don't emit TABLE_TAG.
3027 Handle indentation for PRE_TAG and P_TAG.
3028 (html_text::end_tag): Updated.
3029 (html_text::table_is_void, html_text::issue_table_begin,
3030 html_text::issue_table_end): Removed.
3031 (html_text::do_push): Simplified.
3032 [DEBUGGING]: Small fix.
3033 (html_text::push_para): Add new parameter for indentation; updated
3036 (html_text::do_indent, html_text::do_table, html_text::done_table,
3037 html_text::is_in_table): Removed.
3038 (html_text::do_pre): Handle P_TAG also.
3039 (html_text::shutdown): Handle p->indent.
3040 (html_text::check_emit_text): Simplified.
3041 (html_text::do_emittext): Reset `blank_para'.
3042 (html_text::do_para): Add new parameter for indentation; updated
3044 (html_text::remove_indent): New function.
3045 (html_text::do_space): Handle verbatim text properly.
3046 (html_text::ever_emitted_text, html_text::starts_with_space,
3047 html_text::remove_para_align): New functions.
3048 (html_text::dump_stack_element, html_text::dump_stack): Updated.
3050 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
3053 * src/devices/grohtml/post-html.cc: Include html-table.h.
3054 (INDENTATION): Removed.
3055 (text_glob): Added many `is_<foo>' functions.
3056 Added table description `tab'.
3057 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
3059 (list): Add `insert' and `move_to' member functions.
3060 (page): Add `insert_tag' member function.
3061 (page::dump_page) [DEBUG_TABLES]: Improved.
3062 (html_printer): Add `table' and `max_linelength' elements.
3063 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
3064 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
3065 `remove_tabs', `remove_courier_tabs'.
3066 (html_printer::emit_raw): Handle indentation.
3067 (html_printer::do_center, html_printer::write_header): Updated.
3068 (html_printer::is_courier_until_eol): Check for tag.
3069 (html_printer::do_linelength): Handle max_linelength.
3070 (html_printer::do_page_offset, html_printer::do_indentation): Handle
3072 (html_printer::do_tempindent): Updated.
3073 (html_printer::do_indentedparagraph): Removed.
3074 (html_printer::do_indent): Simplified.
3075 (html_printer::do_eol): Use `ever_emitted_text'.
3076 (html_printer::do_flush, html_printer::do_links): Don't call
3078 (html_printer::do_break): Handle end_tempindent.
3079 (html_printer::troff_tag): Get argument.
3081 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
3082 (html_printer::flush_page): Call `lookahead_for_tables'.
3083 Don't call `done_table'.
3084 (html_printer::add_to_sbuf): Always call do_indent.
3086 * src/devices/grohtml/Makefile.sub: Updated.
3088 * tmac/an-old.tmac (TP): Don't handle html device specially.
3089 (an-do-tag-html): New function which will be used instead of
3090 `an-do-tag' if html device is used.
3092 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
3094 * tmac/s.tmac (@IP): Don't handle html device specially.
3095 (@IP-html): New function which will be used instead of `@IP' if
3096 html device is used.
3098 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
3099 is a hack which will eventually vanish again.
3100 (PIMG): Handle `-C' option correctly if not html.
3103 2002-07-17 Werner LEMBERG <wl@gnu.org>
3105 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
3107 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
3109 * contrib/pic2graph/pic2graph.*: Use convert(1).
3110 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
3112 2002-07-14 Bernd Warken <bwarken@mayn.de>
3114 * tmac/groff_trace.man: New file.
3115 * tmac/Makefile.sub: Updated.
3118 2002-07-13 Werner LEMBERG <wl@gnu.org>
3120 * src/roff/groff/groff.man: Add some cross references.
3122 2002-07-12 Werner LEMBERG <wl@gnu.org>
3124 * src/roff/troff/input.cc (substring_request): Add warnings for
3125 string indices out of range.
3127 2002-07-11 Werner LEMBERG <wl@gnu.org>
3129 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
3130 * font/devdvi/*EC: Regenerated.
3132 2002-07-10 Bernd Warken <bwarken@mayn.de>
3134 * man/groff_char.man: Updated and extended.
3136 2002-07-10 Werner LEMBERG <wl@gnu.org>
3138 * src/roff/troff/input.cc (length_macro): Renamed to...
3139 (length_request): This.
3140 Move call of `tok.next()' to the very end, otherwise the register
3141 value hasn't been updated yet.
3142 (init_input_requests): Updated.
3144 2002-07-09 Werner LEMBERG <wl@gnu.org>
3146 * src/roff/troff/input.cc (substring_macro): Renamed to...
3147 (substring_request): This.
3148 (init_input_requests): Updated.
3149 * src/roff/troff/request.h: Updated.
3151 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
3153 * src/roff/grog/grog.sh: Fix typo.
3155 2002-07-08 Werner LEMBERG <wl@gnu.org>
3157 * win32-diffs: Updated.
3159 Handle `papersize' keyword properly in DESC.
3161 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
3163 Updated all callers.
3164 * src/libs/libgroff/paper.cc: Add four more paper formats used by
3166 * src/include/paper.h: Updated.
3168 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
3169 Other minor C syntax fixes.
3170 (papersize, paperlength, paperwidth): Renamed to `user_*'.
3171 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
3173 (lbp_printer::lbp_printer): Pass three arguments.
3174 Set paper dimensions properly.
3175 (make_printer, main): Updated.
3176 (handle_unknown_desc_command): Fix error messages.
3177 (main): Handle papersize keyword in DESC properly.
3179 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
3181 (lbp_printer::lbp_printer): Pass an argument.
3182 Set paper_size properly.
3183 (handle_unknown_desc_command): Removed.
3184 (make_printer, main): Updated.
3185 * src/devices/grolj4/grolj4.man: Minor documentation fix.
3187 * man/groff_font.man, NEWS: Updated.
3189 2002-07-07 Werner LEMBERG <wl@gnu.org>
3191 Integrated eqn2graph, contributed by Eric S. Raymond.
3193 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
3195 * Makefile.in, NEWS: Updated.
3197 2002-06-04 Werner LEMBERG <wl@gnu.org>
3199 Changing the substring request to make it fit better with other
3200 string manipulation functions in other programming languages:
3201 Index 0 is now the first character in the string, and index -1
3202 indicates the last character. Since this request didn't work
3203 properly anyway in the last release, it doesn't harm too much to
3206 * src/roff/troff/input.cc (substring_macro): Use loops to get
3207 the real string length (ignoring COMPATIBLE_SAVE and
3208 COMPATIBLE_RESTORE) and offsets.
3209 Implement change described above.
3211 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
3212 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
3214 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
3216 2002-06-03 Werner LEMBERG <wl@gnu.org>
3218 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
3219 COMPATIBLE_RESTORE are completely ignored.
3221 * src/roff/troff/input.cc (char_list::set, char_list::get): New
3223 (macro): `length' field renamed to `len'.
3224 Added new field `empty_macro' (1 if macro is empty), to be used
3225 instead of checking `len'.
3226 Updated all callers.
3227 (macro::empty): Updated.
3228 (macro::length, macro::set, macro::get): New functions.
3229 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3231 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
3232 COMPATIBLE_RESTORE pairs.
3233 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3234 * src/roff/troff/request.h: Updated.
3236 * doc/groff.texinfo: Document .chop's behaviour better.
3238 2002-06-02 Werner LEMBERG <wl@gnu.org>
3240 * doc/pic.ms: Fix documentation for the addition of positions.
3242 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
3244 2002-06-29 Werner LEMBERG <wl@gnu.org>
3246 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
3248 * src/roff/troff/input.cc (have_string_arg): New global variable.
3249 (read_mode): New enumeration.
3250 (read_escape_name): Use it. Update all calls.
3251 (read_long_escape_name): Use it. Update all calls.
3252 Set have_string_arg if appropriate.
3253 (get_char_for_escape_name): Add parameter for handling space
3255 (interpolate_string_with_args, decode_string_args): New functions.
3256 (get_copy, token::next): Call it if necessary.
3257 (interpolate_string): Fix error message.
3259 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3262 2002-06-24 Bernd Warken <bwarken@mayn.de>
3264 * man/groff_tmac.man: Updated and extended.
3266 2002-06-24 Werner LEMBERG <wl@gnu.org>
3268 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
3270 2002-06-23 Werner LEMBERG <wl@gnu.org>
3272 * doc/pic.ms: Improve documentation of composite block objects.
3274 2002-06-22 Werner LEMBERG <wl@gnu.org>
3276 * src/roff/troff/input.cc (init_registers): Add three registers
3277 `seconds', `minutes', and `hours' to hold the current time.
3279 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3282 2002-06-20 Werner LEMBERG <wl@gnu.org>
3284 Make \X accept both `\ ' and `\~', converting them to single space
3287 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3288 (token::unstretchable_space): New inline function.
3289 * src/roff/troff/input.cc (token::next, token::delimiter,
3290 token::description, token::add_to_node_list, token::process): Handle
3291 TOKEN_UNSTRETCHABLE_NODE.
3292 (encode_char): Handle tok.stretchable_space and
3293 tok.unstretchable_space.
3295 * NEWS, doc/groff.texinfo: Document it..
3297 2002-06-19 Werner LEMBERG <wl@gnu.org>
3299 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
3301 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
3302 keyword to enable/disable SGR output.
3303 (tty_printer::change_fill_color): New function.
3304 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
3306 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3309 2002-06-18 Werner LEMBERG <wl@gnu.org>
3311 Add a `color' request and a `.color' register to control usage of
3314 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3315 (color_flag): This (which is the inverse).
3316 (activate_color): New function.
3317 (main, init_input_requests): Updated.
3318 * src/roff/troff/troff.h, src/roff/troff/node.cc
3319 (troff_output_file::fill_color, troff_output_file::glyph_color):
3322 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3323 Document the changes.
3325 2002-06-17 Colin Watson <cjwatson@debian.org>
3327 Circumvent bug in autoconf 2.53 regarding top_builddir.
3329 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3330 * Makefile.in, doc/Makefile.in:
3331 s/@top_builddir@/@groff_top_builddir@/.
3332 * configure: Regenerated (with autoconf 2.53).
3334 2002-06-17 Werner LEMBERG <wl@gnu.org>
3336 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3337 `paperwidth' and `paperlength' for the `papersize' keyword.
3339 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
3341 * src/devices/grops/grops.man: Add info about Type 42 fonts.
3343 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
3345 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3346 html_printer::do_linelength, html_printer::do_pageoffset,
3347 html_printer::do_indentation, html_printer::do_tempindent,
3348 html_printer::do_break, html_printer::begin_page): Clear indented
3350 * tmac/html.tmac: Disable hyphenation.
3352 2002-06-15 Werner LEMBERG <wl@gnu.org>
3354 Don't produce HTML files if utility programs are missing.
3356 * Makefile.in (make_html, make_install_html): New variables.
3357 (MDEFINES): Updated.
3359 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3361 * configure.ac: Use it.
3362 * configure: Regenerated.
3364 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3365 (HTMLEXAMPLESFILES): This new variable.
3366 (EXAMPLESIMAGEFILES): Renamed to...
3367 (HTMLEXAMPLEIMAGEFILES): This.
3368 (CLEANADD): Add HTMLEXAMPLEFILES.
3369 (all): Use `make_html'.
3371 (install_data): Use `make_install_html'.
3372 Move html stuff to...
3373 (install_html): This new target.
3374 (uninstall_sub): Updated.
3376 2002-06-14 Bernd Warken <bwarken@mayn.de>
3378 * src/roff/grog/Makefile.sub (grog): Renamed to...
3380 (grog): New rule to always install grog.sh as grog.
3382 2002-06-08 Bernd Warken <bwarken@mayn.de>
3384 * src/roff/grog/grog.pl: Fix typo.
3386 2002-06-07 Werner LEMBERG <wl@gnu.org>
3388 * doc/groff.texinfo: Add more info on .tr arguments.
3390 2002-06-05 Werner LEMBERG <wl@gnu.org>
3392 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3394 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3395 * configure: Regenerated.
3397 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
3399 * src/roff/troff/symbol.cc (table_sizes): Add more values.
3401 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3403 2002-06-04 Werner LEMBERG <wl@gnu.org>
3405 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3406 is not initialized at the time we need it in case `--prefix' hasn't
3407 been set. Check for `ac_default_prefix' also.
3408 Test for `papersize' keyword also and generalize allowed whitespace.
3409 * configure: Regenerated.
3411 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3414 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3416 (src_version, src_revision): New variables to avoid overwriting
3417 from parent make process.
3418 (version.cc): Updated.
3420 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3421 (linebuf, linebufsize): New global variables.
3422 (sys_fatal): Use `fatal' to abort properly.
3423 (get_line): New function.
3424 (get_resolution): Use it.
3425 Improve error messages.
3426 (get_papersize): Check `papersize' also.
3428 Improve error messages.
3430 2002-06-03 Werner LEMBERG <wl@gnu.org>
3432 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3433 should be removed only if builddir is not srcdir.
3434 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3435 (clean): Depend on `mostlyclean'.
3436 (distclean): Depend on `clean'.
3437 (realclean, extraclean): Depend on `distclean'.
3438 (.y.cc, .y.o): Simplified. The output files are no longer written
3439 to srcdir but to builddir.
3440 * Makefile.in (MDEFINES): Add `version' and `revision'.
3441 (uninstall_dirs): Fix order of directories.
3442 * doc/Makefile.sub (version, revision): Removed.
3443 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3444 Added `HTMLDOCFILES'.
3445 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3446 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3447 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3450 * doc/texinfo.tex (\authortt): New macro.
3451 (\shortcontt): Define.
3452 (\titlepage): Set \tt to \authortt while defining \authorfont.
3453 (\appendixbox): New macro.
3454 (\chapmacro, \appendixentry): Use \appendixbox to get even
3455 indentation for letters.
3456 (\summarycontents): Set \tt.
3457 (\internalpagesize): Add two arguments for real paper width and
3458 height as needed by pdfTeX.
3459 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3461 (\tempdima, \tempdimb): New temporary dimensions.
3462 (\pagesizesyyy): Updated.
3464 2002-06-02 Werner LEMBERG <wl@gnu.org>
3466 Adding a new keyword `papersize' to the DESC file format (similar
3467 but not completely identical to grolbp's extension). grops now has
3468 a -p command line option to override `papersize'. Finally, grolbp
3469 has been adapted to the new syntax.
3471 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
3472 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3474 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3475 (CCSRCS): Add `paper.cc'.
3477 * src/include/font.h (font): Add `papersize' element.
3478 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3479 (font::scan_papersize): New function.
3480 (font::load_desc): Use it for handling `papersize' keyword.
3481 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3483 * src/devices/grops/ps.cc: Include paper.h.
3484 (user_paper_length): New global variable.
3485 (ps_printer): Use paper length as initializer.
3486 (make_printer): Updated.
3487 (main): Handle new `-p' option.
3488 * src/devices/grops/grops.man: Updated.
3490 * src/devices/grolbp/lbp.cc: Include paper.h.
3491 s/papersizes/lbp_papersizes/.
3492 (set_papersize): Use new `papersizes' array.
3493 (handle_unknown_desc_command): Don't handle `papersize'.
3494 (main): Use `font::scan_papersize' for handling `-p' option.
3495 * src/devices/grolbp/grolbp.man: Updated.
3497 * man/groff_font.man: Document `papersize'.
3500 2002-05-30 Werner LEMBERG <wl@gnu.org>
3502 * src/devices/grops/TODO: Updated.
3503 * src/devices/grops/grops.man: More info on paper formats.
3504 * man/groff_font.man: Document `paperheight' and `paperwidth'.
3506 2002-05-29 Werner LEMBERG <wl@gnu.org>
3508 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3509 to list only if srcdir != currdir.
3510 (distfiles): New target.
3512 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3513 (NOMAKEDIRS): New variable.
3516 2002-05-26 Werner LEMBERG <wl@gnu.org>
3518 Add .output request, similar to \! at top-level.
3520 * src/roff/troff/input.cc (transparent): Remove unused declaration.
3521 (output_request): New function.
3522 (init_input_requests): Add it.
3524 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3527 * Makefile.in (MDEFINES): Add INSTALL_INFO.
3528 (prepare_examples): Fix typo.
3529 * doc/groff.texinfo (@direntry): Fix it.
3531 2002-05-25 Werner LEMBERG <wl@gnu.org>
3533 Including the doc subdir into groff's Makefile system.
3535 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3536 * configure.ac: Use it.
3537 Generate `doc/Makefile'.
3538 * configure: Regenerated.
3540 * Makefile.in (infodir, INSTALL_INFO): New variables.
3541 (MDEFINES, uninstall_dirs): Updated.
3542 (OTHERDIRS): Add `doc'.
3543 * Makefile.comm (CLEANDIRADD): New variable.
3544 (mostlyclean): Use it.
3546 * doc/Makefile.sub, doc/Makefile.in: New files.
3547 * doc/Makefile: Removed.
3549 * NEWS, INSTALL: Updated.
3551 2002-05-24 Werner LEMBERG <wl@gnu.org>
3553 * doc/homepage.ms: Renamed to ...
3554 * doc/webpage.ms: This.
3557 2002-05-23 Werner LEMBERG <wl@gnu.org>
3559 Integrating the `mom' macro package, contributed by Peter Schaffter
3562 * contrib/mom/*: New subdirectory tree.
3563 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3564 be used for documentation files.
3565 (MDEFINES, uninstall_dirs): Use them.
3566 (OTHERDIRS): Add contrib/mom.
3567 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3569 * MANIFEST, NEWS: Updated.
3571 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
3573 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3574 if at outer level; at start-up we are at outer level.
3576 * src/roff/troff/input.cc (do_suppress): Implement it.
3579 Add option -p to show progress information.
3580 pre-grohtml will now render only one page at a time, reducing the
3581 size of needed disk resources enormously.
3583 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3584 (imagePageName): New global variable.
3585 (psPageName, show_progress, currentPageNo): New global variables.
3586 (html_system): Close saved stderr and stdout handles.
3587 (write_end_image): Accept a parameter to control \O escape.
3588 (write_start_image): Adapted to new \O meaning.
3589 (char_buffer::write_upto_newline): Updated.
3590 (createAllPages): Replaced with...
3591 (createPage): This new function to create a single page for images.
3592 It uses `psselect' from the psutils package.
3593 (removeAllPages): Removed.
3594 (createImage): Updated.
3595 Handle progress display.
3596 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3597 (scanArguments): Add option -p.
3598 (makeTempFiles): Updated to create temp files for psPageName and
3600 (removeTempFiles): Removed.
3603 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3604 html_printer::write_header): Append `\0' to `buffer'.
3605 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3607 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3608 Handle `text_emitted'.
3609 (html_text::table_is_void): Slightly rewritten.
3610 (stop): New external symbol.
3611 (html_text::do_push) [DEBUGGING]: Use it and simplify.
3612 (html_text::shutdown): Call `dump_stack'.
3613 (html_text::do_space): Rewritten.
3614 * src/devices/grohtml/grohtml.man: Document -p and the need of
3617 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3619 Call \O[0] if `ps4html' is active.
3620 * tmac/s.tmac (@EQ, @EN): Handle html better.
3622 * tmac/html.tmac: Don't use black for background colour.
3624 * src/roff/troff/node.cc: Include `div.h'.
3625 (troff_output_file::really_print_line): Don't use `is_on'.
3626 (troff_output_file::word_marker, troff_output_file::flush_tbuf
3627 troff_output_file::check_charinfo,
3628 troff_output_file::put_char_width, troff_output_file::put_char,
3629 troff_output_file::determine_line_limits, troff_output_file::draw,
3630 real_output_file::begin_page, glyph_color_node::tprintf,
3631 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3633 (troff_output_file::really_on): Call `do_motion'.
3634 (suppress_node::tprint): Use `get_page_number' instead of `%'
3636 Call `reset_output_registers' conditionally on `is_on'.
3638 * doc/groff.texinfo: Document new syntax of \O.
3639 * NEWS, man/groff_diff.man: Updated.
3641 2002-05-22 Werner LEMBERG <wl@gnu.org>
3643 * MORE.STUFF: Add info about David Frey's deroff implementation.
3646 2002-05-16 Werner LEMBERG <wl@gnu.org>
3648 Pic's `with' attribute now accepts positions.
3650 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3651 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3653 (object_spec): Add rule for `WITH' and `position'.
3654 (relative_path): Give `corner' the precedence of `CHOP'.
3655 * src/preproc/pic/object.h (path): New members `pos' and
3657 * src/preproc/pic/object.cc: Updated initializers of `path'.
3658 (path::follow): Handle `is_position'.
3660 * doc/pic.ms: Completely updated grammar description.
3661 Many typographical improvements.
3663 2002-05-15 Werner LEMBERG <wl@gnu.org>
3665 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3666 code of x in range 0-127) also.
3667 * doc/groff.texinfo, man/groff_diff.man: Updated.
3669 Added keywords `north', `south', `east', and `west' for corners
3672 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3674 (yylex): Handle them.
3675 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3676 (corner): Handle them.
3678 2002-05-14 Werner LEMBERG <wl@gnu.org>
3680 * src/devices/grops/grops.man: Clarify handling of `download' file.
3682 2002-05-11 Werner LEMBERG <wl@gnu.org>
3684 Adding `warnscale' and `spreadwarn' requests, based on a patch from
3685 Jeffrey Friedl <jfriedl@yahoo.com>.
3687 * src/roff/troff/input.cc (spread_limit, warn_scale,
3688 warn_scaling_indicator): New global variables.
3689 (warnscale_request, spreadwarn_requests): New functions.
3690 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3691 (init_input_requests): Updated.
3692 (error_type): Add `OUTPUT_WARNING'.
3693 (do_error): Handle it.
3694 (output_warning): New warning function which shows output location.
3695 * src/roff/troff/env.h (spread_limit): New external variable.
3696 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3698 (distribute_space): Emit warning if added space is larger than
3700 (environment::possibly_break_line): Emit warning if a line can't
3701 be adjusted on both sides.
3703 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3705 2002-05-08 Werner LEMBERG <wl@gnu.org>
3707 * src/roff/troff/node.cc (special_node::special_node): Use
3708 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
3709 \X''\% crashes, for example.
3711 * doc/groff.texinfo: Document \! and \? used at top-level.
3713 2002-05-06 Werner LEMBERG <wl@gnu.org>
3715 * src/preproc/pic/pic.man: Fix some keyword syntax.
3716 Other minor typographical fixes.
3718 * src/roff/groff/groff.man: Fix typos.
3720 2002-05-04 Werner LEMBERG <wl@gnu.org>
3722 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3723 (ShortOpt[]): This to avoid problems with refer.
3725 * doc/pic.ms: Fix typo.
3726 Fix pic grammar description.
3728 * tmac/an-old.tmac (ne): Use de1, not de.
3730 2002-05-03 Werner LEMBERG <wl@gnu.org>
3732 * doc/groff.texinfo: Finished separation of glyphs and characters.
3733 Don't use the string `Appendix' for appendix headers (both in
3734 the text and the table of contents).
3735 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3738 Use registers LL and LT (similar to -ms) for controlling the
3739 length of title and line, respectively, in the -man and -mdoc
3742 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3743 (doc-setup-page-layout): Use \n[LL] and \n[LT].
3744 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3746 (an-header, an-p-footer): Use \n[LT].
3747 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3748 doc/groff.texinfo: Document it.
3750 2002-05-02 Werner LEMBERG <wl@gnu.org>
3752 * doc/fdl.texi: New file.
3753 * doc/groff.texinfo: Include it.
3754 Define and use @copying.
3755 Starting with separating glyph, symbol, and character.
3757 2002-04-27 Werner LEMBERG <wl@gnu.org>
3759 * Makefile.in (EXEEXT): Set it.
3760 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3763 * src/include/nonposix.h: Define GS_NAME.
3764 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3766 Some preliminary changes for EMX support under OS/2.
3768 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3769 __EMX__ similar to __MSDOS__.
3770 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3772 2002-04-25 Werner LEMBERG <wl@gnu.org>
3774 * doc/groff.texinfo: Integrated groff_out.man.
3777 2002-04-23 Werner LEMBERG <wl@gnu.org>
3779 * man/groff_out.man: Minor fixes.
3781 2002-04-23 Werner LEMBERG <wl@gnu.org>
3783 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3784 correct page references.
3785 Fixed many index entries.
3787 2002-04-23 Bernd Warken <bwarken@mayn.de>
3789 * man/roff.man: Enlarged.
3791 2002-04-22 Werner LEMBERG <wl@gnu.org>
3793 * doc/groff.texinfo: More examples, other fixes.
3795 2002-04-20 Werner LEMBERG <wl@gnu.org>
3797 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3798 will now form a chain, e.g.
3807 This is for compatibility with plan 9's troff.
3809 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3813 * doc/groff.texinfo: Add documentation of remaining requests and
3816 2002-04-19 Werner LEMBERG <wl@gnu.org>
3818 * doc/groff.texinfo: Add documentation of remaining escapes.
3820 * font/devdvi/generate/tc.map: Remove entry for `sr'.
3821 * font/devdvi/*TC: Regenerated.
3823 2002-04-18 Werner LEMBERG <wl@gnu.org>
3825 * src/roff/troff/input.cc (token::next): Make \H behave consistently
3826 if not in compatibility mode, i.e., increment relative to the
3828 * doc/groff.texinfo: Updated accordingly.
3830 2002-04-17 Werner LEMBERG <wl@gnu.org>
3832 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3834 2002-04-16 Bernd Warken <bwarken@mayn.de>
3836 * src/roff/groff/groff.man: Improve documentation of -P option.
3839 2002-04-15 Werner LEMBERG <wl@gnu.org>
3841 Add new escape \F to switch font family.
3843 * src/roff/troff/input.cc (token::next): Handle \F.
3844 * src/roff/troff/env.cc (environment::set_family): Handle
3846 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3849 2002-04-14 Werner LEMBERG <wl@gnu.org>
3851 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3854 2002-04-13 Werner LEMBERG <wl@gnu.org>
3856 Implement \f[] as an alternative to \fP. Change \mP and \MP to
3857 \m[] and \M[], respectively.
3859 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3860 (symbol::symbol): Handle NULL string and empty string differently.
3861 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3862 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3863 Add optional parameter.
3864 Updated calling functions.
3865 (get_copy, do_glyph_color, do_fill_color, token::next): Use
3867 * src/roff/troff/env.cc (environment::set_font): Ditto.
3869 * src/preproc/pic/troff.cc (troff_output::set_fill,
3870 troff_output::reset_color: Updated.
3872 * tmac/www.tmac: Updated.
3874 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3875 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3878 * tmac/Xps.tmac: Remove some redundant code.
3880 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3881 tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3882 man/groff_out.man, man/groff.man, man/groff_diff.man,
3883 src/roff/groff/groff.man: Replace \f[P] with \f[].
3885 2002-04-13 Bernd Warken <bwarken@mayn.de>
3887 * src/include/printer.h, src/libs/libdriver/printer.cc
3888 (printer::change_fill_color): New member function.
3889 * src/libs/libdriver/input.cc (parse_D_command): Use it.
3891 2002-04-12 Werner LEMBERG <wl@gnu.org>
3893 * doc/groff.texinfo: Completed pass on gtroff reference.
3895 2002-04-11 Werner LEMBERG <wl@gnu.org>
3897 * doc/groff.texinfo: More fixes.
3899 2002-04-11 Bernd Warken <bwarken@mayn.de>
3901 * src/include/color.h: Decorate with `const'.
3904 * src/libs/libgroff.color.cc: Decorate with `const'.
3906 (color::color): Initialize members.
3907 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3908 command according to the documentation.
3910 * man/groff_out.man: Updated.
3913 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
3915 * src/preproc/html/pre-html.cc (write_start_image): Remove
3917 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3919 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3920 \C'hy' caused an assertion failure.
3922 * src/roff/troff/env.cc (environment::environment): Initialize
3924 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3926 2002-04-10 Werner LEMBERG <wl@gnu.org>
3928 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3929 Document pvs request and .pvs register.
3931 2002-04-09 Werner LEMBERG <wl@gnu.org>
3933 * doc/groff.texinfo: Improve and fix documentation of diversions
3936 2002-04-08 Werner LEMBERG <wl@gnu.org>
3938 * doc/groff.texinfo: Fix documentation of drawing functions.
3941 2002-04-07 Werner LEMBERG <wl@gnu.org>
3943 * doc/groff.texinfo: Better documentation of double quotes as
3947 2002-04-06 Werner LEMBERG <wl@gnu.org>
3949 * man/groff_font.man: Document names of special characters better.
3950 * doc/groff.texinfo: Minor improvements.
3952 * tmac/lbp.tmac: Load latin1.tmac.
3953 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3955 * font/devX*/*: Regenerated (all chars > 0x80 removed).
3957 2002-04-05 Werner LEMBERG <wl@gnu.org>
3959 * tmac/tty.tmac: Don't use shc request.
3960 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3963 * man/groff_diff.man: Minor fixes.
3965 * font/devlbp/*: Remove all `charXXX' entities.
3967 * src/libs/libgroff/font.cc (font::~font): Deallocate
3968 `special_device_coding'.
3969 (font::load): Use `new' for allocating `special_device_coding'.
3970 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
3971 Removed unused member.
3973 2002-04-05 Werner LEMBERG <wl@gnu.org>
3975 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
3976 (resource_manager::do_begin_binary,
3977 resource_manager::do_begin_data): Use it.
3979 * doc/texinfo.tex: Updated to version 4.2.
3981 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
3982 (token::zero_width_break): New inline function.
3983 * src/roff/troff/input.cc (token::next): Use it.
3984 (token::description): Updated.
3985 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
3986 (token::add_to_node_list, token::process): Use it.
3987 * NEWS, doc/groff.texinfo: Updated.
3989 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
3990 * tmac/tty.tmac: Add missing backslash.
3992 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
3994 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
3995 `.ps' register instead of `.s' to handle fractional point sizes.
3996 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
3997 limit_box::output): Ditto.
3998 * src/preproc/eqn/other.cc (size_box::compute_metrics,
3999 size_box::output): Ditto.
4000 * src/preproc/eqn/over.cc (over_box::compute_metrics,
4001 over_box::output): Ditto.
4002 * src/preproc/eqn/script.cc (script_box::compute_metrics,
4003 script_box::output): Ditto.
4004 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
4005 sqrt_box::output): Ditto.
4007 2002-04-03 Michael Selway <mas@ssl.co.uk>
4009 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
4012 2002-04-03 Werner LEMBERG <wl@gnu.org>
4014 * doc/homepage.ms: Reduce title size.
4015 * doc/groff.texinfo: Fix documentation of .t register.
4016 Fix handling of colon.
4019 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
4020 only if page length is positive to avoid a loop.
4022 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
4025 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
4027 * src/include/nonposix.h, src/roff/groff/pipeline.c:
4028 s/__CYGWIN32__/__CYGWIN__/.
4030 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
4032 * doc/gnu.xpm: New image contributed by Emily Mulley.
4033 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
4034 (homepage.html): Be dependent on gnu.eps.
4035 * doc/homepage.ms: Updated to new image.
4037 * src/devices/grohtml/post-html.cc (html_printer): New member
4039 (html_printer::flush_sbuf, html_printer::set_char): Set it.
4040 (html_printer::sbuf_continuation): Use it.
4042 2002-03-28 Werner LEMBERG <wl@gnu.org>
4044 * src/libs/libgroff/getopt.c: Updated to latest version.
4046 * tmac/README: More on hyphen.tex license.
4048 2002-03-26 Larry Kollar <kollar@alltel.net>
4050 * doc/groff.texinfo: Add documentation of most missing requests.
4052 2002-03-25 Werner LEMBERG <wl@gnu.org>
4054 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
4055 of `+-', `mu', and `di', respectively.
4057 * font/devascii/R.proto, font/devutf8/R.proto,
4058 font/devlatin1/R.proto, font/devhtml/R.proto,
4059 font/devcp1047/R.proto, font/devlpb/*: Add them.
4060 * font/devps/generate/textmap: Ditto.
4061 * font/devps/*: Regenerated.
4062 * font/devlj4/generate/text.map: Add them.
4063 * font/devlj4/*: Regenerated.
4064 * font/devdvi/generate/tc.map: Use them.
4065 * font/devdvi/generate/texsy.map: Add them.
4066 * font/devdvi/*: Regenerated.
4067 * font/devX*/*: Regenerated.
4069 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
4070 tmac/tty-char.tmac: Updated.
4072 * NEWS, man/groff_char.man: Updated.
4074 2002-03-24 Werner LEMBERG <wl@gnu.org>
4076 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
4077 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
4078 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
4079 we use `.fchar' in dvi.tmac.
4080 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
4081 * tmac/Xps.tmac: Simplify some char definitions.
4082 Add definition for \[f/].
4083 * man/groff_char.man: Updated for new X.tmac.
4085 * tmac/README: New file.
4087 2002-03-23 Phil Lobbes <phil@perkpartners.com>
4089 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
4090 internal .y.o rule took precendence over the .y.cc rule, compiling
4091 the yacc files with gcc instead of g++.
4093 2002-03-23 Werner LEMBERG <wl@gnu.org>
4095 * tmac/dvi.tmac: Add replacement font for `CB'.
4097 * tmac/doc.tmac: s/request/macro/ in messages.
4098 (doc-generic-macro): Improve error message.
4099 * tmac/groff_mdoc.man: Minor improvements.
4101 2002-03-22 Werner LEMBERG <wl@gnu.org>
4103 * doc/groff.texinfo: Document possible conflict between `tr' and
4106 2002-03-21 Werner LEMBERG <wl@gnu.org>
4108 Improve handling of hyphenation patterns. It is now possible to
4109 use most of TeX's pattern files unmodified. To make the process
4110 more flexible, a new request `hpfcode' has been added which
4111 provides a character code mapping for the `hpf' request. See
4112 comment before hpf_getc() for more details.
4114 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
4116 (read_patterns_file): Additional parameter for exception dictionary.
4117 Extended to recognize \pattern, \hyphenation, and \endinput.
4118 (do_hyphenation_patterns_file): Updated.
4119 * src/roff/troff/env.h (hpf_code_table): New extern.
4121 * src/roff/troff/input.cc (hpf_code_table): New array.
4122 (init_hpf_code_table, hyphenation_patterns_file_code): New
4124 (hyphenation_code): Handle translation from `trin' correctly.
4125 (main, init_input_requests): Updated.
4126 (charinfo::set_translation): Handle hyphenation code also.
4128 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
4131 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
4132 char' is used for offsets in hyphenation exceptions.
4134 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
4136 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4138 2002-03-20 Larry Kollar <kollar@alltel.net>
4140 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
4143 2002-03-18 Werner LEMBERG <wl@gnu.org>
4145 * tmac/html.tmac: Fix serious typo.
4147 2002-03-17 Larry Kollar <kollar@alltel.net>
4149 * doc/groff.texinfo: Add documentation for `writec' request.
4151 2002-03-17 Werner LEMBERG <wl@gnu.org>
4153 Added request `hpfa' to append hyphenation patterns.
4155 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4157 (hyphenation_patterns_file): Renamed to...
4158 (do_hyphenation_patterns_file): This.
4159 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
4161 (init_hyphen_requests): Updated.
4162 * NEWS, man/groff.man, man/groff_diff.man: Document it.
4164 2002-03-16 Werner LEMBERG <wl@gnu.org>
4166 Added request `writec' in analogy to `tmc'.
4168 * src/roff/troff/input.cc (write_request): Renamed to...
4169 (do_write_request): This.
4170 Added one parameter.
4171 (write_request, write_request_continue): New functions.
4172 (init_input_requests): Updated.
4173 * NEWS, man/groff.man, man/groff_diff.man: Document it.
4175 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
4177 * NEWS: Document it.
4179 2002-03-15 Werner LEMBERG <wl@gnu.org>
4181 * man/groff.man: Add writem request.
4183 Add request `trin' (translate input) to make `.asciify' work
4184 correctly. This is necessary since `charXXX' entity names are no
4185 longer hardcoded in font definition files.
4187 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
4188 `translate_input' members.
4189 (charinfo::set_asciify_code, charinfo::get_asciify_code,
4190 charinfo::set_translation_input): New methods.
4191 (charinfo::set_translation): Add third argument.
4192 * src/roff/troff/input.cc (charinfo:set_translation): Set
4194 (do_translate): Add second argument.
4195 (translate_input): New function.
4196 (init_input_requests): Updated.
4197 * src/roff/troff/node.cc (glyph_node::asciify,
4198 composite_node::asciify): Use `get_asciify_code'.
4200 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
4202 * NEWS, man/groff.man, man/groff_diff.man: Updated.
4204 2002-03-14 Larry Kollar <kollar@alltel.net>
4206 * doc/groff.texinfo: Improve documentation of .RS and .RE.
4208 2002-03-14 Werner LEMBERG <wl@gnu.org>
4210 Add a new request `sizes' similar to the `sizes' command in DESC
4213 * src/roff/troff/env.cc (override_sizes): New function.
4214 (init_env_requests): Use it.
4215 * src/roff/troff/token.h: Export `read_string'.
4216 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4218 2002-03-12 Werner LEMBERG <wl@gnu.org>
4220 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
4222 2002-03-10 Werner LEMBERG <wl@gnu.org>
4224 * tmac/pspic.tmac: Add support for -Tdvi.
4225 * tmac/dvi.tmac: Include pspic.tmac.
4226 * src/devices/grodvi/grodvi.man: Document it.
4229 * font/devlj4/generate/Makefile: Fix URL of metric files.
4231 2002-03-09 Werner LEMBERG <wl@gnu.org>
4233 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
4235 2002-03-09 Larry Kollar <kollar@alltel.net>
4237 * tmac/groff_ms.man: Add documentation for RS and RE macros.
4239 2002-03-08 Werner LEMBERG <wl@gnu.org>
4241 * doc/groff.texinfo: Fixes for texinfo 4.1.
4243 2002-03-07 Werner LEMBERG <wl@gnu.org>
4245 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
4247 Handle CYGWIN properly.
4249 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
4251 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
4252 * tmac/lbp.tmac: Add some font translations.
4254 2002-03-02 Werner LEMBERG <wl@gnu.org>
4256 * font/devcp1047/R.proto, font/devlatin1/R.proto,
4257 font/devhtml/R.proto: Remove `charXXX' entries.
4258 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
4261 * font/devlj4/generate/text.map: Remove `charXXX' entries.
4262 * font/devlj4/*: Regenerated all font definition files.
4263 * tmac/lj4.tmac: Load latin1.tmac.
4265 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
4266 from 2000-06-17: LJ4 metric files are *not* text files.
4268 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
4269 register to test for EBCDIC.
4271 2002-03-01 Werner LEMBERG <wl@gnu.org>
4273 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4274 files (as grops already does).
4275 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4277 * src/devices/grops/grops.man: Document comment lines in encoding
4280 * tmac/cp1047.tmac: New file.
4281 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4282 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4283 * tmac/Makefile.sub (NORMALFILES): Updated.
4285 * tmac/ec.tmac: Don't load latin1.tmac again.
4287 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4288 font/devps/generate/dingbats.map,
4289 font/devps/generate/dingbats.rmap, font/devps/text.enc,
4290 font/devps/generate/Makefile (symbolmap): Add header comment.
4291 * font/devps/generate/textmap: Ditto.
4292 Remove `charXXX' entries.
4293 * font/devps/symbolmap: Regenerated.
4294 * font/devps/*: Regenerated all font definition files.
4296 2002-02-28 Werner LEMBERG <wl@gnu.org>
4298 Add color support to grodvi (for drawing colors are currently
4299 translated to gray values).
4301 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
4302 (dvi_printer): Add `cur_color' member.
4303 (dvi_printer::set_color): New function.
4304 (draw_dvi_printer): Remove `fill'.
4305 (draw_dvi_printer::fill_next): Pass environment as parameter.
4306 Update code for new color support translated to gray.
4307 (dvi_printer::set_char): Updated.
4308 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4309 changes crossing the page border.
4310 (dvi_printer::draw): Updated.
4311 Remove cases `f' and `F'.
4312 * tmac/dvi.tmac: Add color definitions.
4313 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4315 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4318 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4319 versions of autoconf.
4320 * configure: Updated.
4322 * doc/homepage.ms: Use `.blm'.
4323 * tmac/www.tmac (www-depth): New auxiliary variable.
4324 (www-pop-level): Don't issue HTML tag.
4325 (ULS, ULE, LI): Use absolute indentation.
4327 * src/devices/grops/ps.cc (ps_printer::begin_page,
4328 ps_printer::end_page): Switch forth and back to default color while
4329 starting a new page.
4331 2002-02-27 Werner LEMBERG <wl@gnu.org>
4333 Add EC and TC fonts to devdvi.
4335 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4336 * font/devdvi/generate/cork.map: Renamed to...
4337 * font/devdvi/generate/ec.map: This.
4338 Remove entry for `aq'.
4339 * font/devdvi/generate/tc.map: New file.
4340 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4343 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4344 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4345 * tmac/ec.tmac: New file.
4346 * tmac/Makefile.sub (NORMALFILES): Updated.
4347 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4348 * man/groff_char.man: Check `ECFONTS' register.
4350 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4352 2002-02-26 Werner LEMBERG <wl@gnu.org>
4354 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4355 * font/devdvi/generate/cork.map: Add 'y and 'Y.
4356 * font/devdvi/*: Updated.
4357 * tmac/dvi.tmac: Formatting.
4359 Add font `HBI' for the dvi output.
4360 Add support for font families `T' and `H'.
4362 * font/devdvi/HBI: New file.
4363 * font/devdvi/B: Renamed to ...
4364 * font/devdvi/TB: This.
4365 * font/devdvi/BI: Renamed to ...
4366 * font/devdvi/TBI: This.
4367 * font/devdvi/I: Renamed to ...
4368 * font/devdvi/TI: This.
4369 * font/devdvi/R: Renamed to ...
4370 * font/devdvi/TR: This.
4371 * font/devdvi/H: Renamed to ...
4372 * font/devdvi/HR: This.
4373 * font/devdvi/Makefile.sub (DEVFILES): Updated.
4374 * font/devdvi/generate/Makefile (HBI): New rule.
4376 (R, I, B, BI, H): Renamed to ...
4377 (TR, TI, TB, TBI, HR): This, respectively.
4379 * NEWS, src/devices/grodvi/grodvi.man: Updated.
4380 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4381 Add `styles' and `family' keywords.
4382 * tmac/dvi.tmac: Alias `H' to `HR'.
4383 Add some fspecial requests for italic fonts.
4384 Add TR and TI as special.
4385 Add support for `_' with font CWI.
4387 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4388 operator `:'. Until now, the expression `0:1' would return 2
4391 2002-02-25 Werner LEMBERG <wl@gnu.org>
4393 * man/groff_char.man: Added some missing PS glyph names (from the
4395 * font/devps/generate/textmap, font/devps/symbolmap: Add
4398 * doc/groff.texinfo: Minor additions and fixes.
4399 * man/groff_diff.man: Remove documentation of fp request. This
4400 is already covered in the original troff manual.
4401 Updated to be consistent with other doc files.
4404 2002-02-24 Werner LEMBERG <wl@gnu.org>
4406 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4408 Define new variable OTHERDEVDIRS (containing `font/devlj4
4409 font/devlbp' if not EBCDIC).
4410 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4411 (OTHERDEVDIRS): New variable.
4412 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4413 * configure: Regenerated.
4415 * NEWS, src/devices/grotty/grotty.man: Updated.
4417 2002-02-23 Werner LEMBERG <wl@gnu.org>
4419 * src/roff/troff/input.cc (do_overstrike, do_bracket,
4420 get_line_arg): Honour input level.
4422 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4424 * font/*/*: Implement it in all font files.
4425 * font/devps/generate/textmap, font/devps/generate/symbolchars,
4426 * font/devps/symbolmap: Updated.
4427 * font/devlj4/generate/text.map: Updated.
4428 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4429 * font/devdvi/generate/texmi.map: Updated.
4431 * font/devutf8/R.proto: Remove all `charXXX' entries.
4432 * font/devutf8/NOTES: Updated.
4434 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4437 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4439 * NEWS, man/groff_char.man: Updated.
4441 2002-02-21 Phil Lobbes <phil@perkpartners.com>
4443 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4445 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4447 * src/roff/grog/grog.pl: Fix computation of $refer.
4449 2002-02-19 Werner LEMBERG <wl@gnu.org>
4451 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4452 `snprintf' and `vsnprintf'.
4454 * src/include/htmlindicate.h: Renamed to...
4455 * src/include/htmlhint.h: This.
4456 * src/include/Makefile.sub: Updated.
4457 * src/preproc/eqn/main.cc: Updated.
4459 2002-02-18 Werner LEMBERG <wl@gnu.org>
4461 * man/roff.man, man/groff_out.man, man/groff.man,
4462 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4463 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4465 * win32-diffs: Updated.
4467 2002-02-17 Werner LEMBERG <wl@gnu.org>
4469 * doc/Makefile (clean): Add *.eps.
4470 (MEMACROS): Removed.
4471 (TFLAG): New variable.
4474 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4476 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4478 * tmac/www.tmac: Use dummy diversion while resetting and disabling
4480 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4482 * src/roff/troff/troff.man: Fix order of parameter description.
4486 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
4488 Simplify image handling for grohtml.
4491 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4493 (html_text::dump_stack): Don't emit newline while debugging.
4494 (html_text::do_push) [DEBUGGING]: Print more info.
4495 (html_text::check_emit_text): Fix handling of <p>.
4496 * src/devices/grohtml/html.h: Updated.
4497 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4498 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
4499 send its data to stderr also.
4501 (simple_output::space_or_newline) [DEBUGGING]: Removed.
4502 * src/devices/grohtml/post-html.cc (html_printer::do_links,
4503 html_printer::html_printer): Remove `DEBUGGING' conditionals.
4505 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4507 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4508 is_inline_image): Removed.
4509 (html_begin_suppress, html_end_suppress): Don't take a parameter.
4510 (graphic_start, graphic_end): Removed.
4511 * src/include/htmlindicate.h: Updated.
4512 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4513 (macroset_template): New global variable.
4514 (makeFileName): Use `macroset_template'.
4515 (write_end_image): Don't take a parameter.
4517 (write_start_image: Don't emit newline.
4518 (char_buffer::write_upto_newline): Updated.
4519 (char_buffer::skip_to_newline): Renamed to ...
4520 (char_buffer::skip_until_newline): This.
4522 (char_buffer::write_file_troff, char_buffer::write_file_html):
4524 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4525 (removeAllPages): Remove `DEBUGGING' conditionals.
4526 (addRegDef, dump_args): New functions.
4527 (char_buffer::do_html, char_buffer::do_image): Handle
4528 `www-image-template' command line variable.
4529 Add more debugging code.
4530 (addps4html): Removed.
4531 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4533 * src/preproc/eqn/main.cc: Include `ctype.h'.
4534 (suppress_html): Removed.
4536 (inline_equation): Use `html_begin_suppress' and
4537 `html_end_suppress'.
4538 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4539 (troff_output::start_picture, troff_output::finish_picture):
4541 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4542 (process_input_file): Updated.
4544 * src/roff/troff/div.cc (page_number): Set page number only if the
4545 `ps4html' register isn't defined.
4546 * src/roff/troff/input.cc (image_no): New external variable.
4547 (do_suppress): Use it.
4548 * src/roff/troff/node.h (suppress_node::image_id): New member.
4549 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4550 (suppress_node::suppress_node): Initialize `image_id' member.
4551 (suppress_node::same): Handle `image_id' also.
4552 (suppress_node::copy): Updated.
4553 (last_image_id): New global variable.
4554 (suppress_node::tprint): Use it.
4556 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4558 * tmac/pspic.mac (PSPIC): Fix html support.
4559 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4560 * tmac/www.tmac (www-image-template): Set up.
4561 (HTMLINDEX): Renamed to...
4563 (BODYCOLOR): Renamed to...
4565 (BACKGROUND): Renamed to...
4567 (URL): Change order of parameters for consistency.
4568 (MAILTO): Renamed to...
4570 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4571 (IMG, PIMG, MPIMG): This.
4572 (HTML-H-BEGIN, HTML-H-END): Renamed to...
4574 (LINKS): Renamed to...
4576 (LINE): Renamed to...
4578 (NO-AUTO-RULE): Renamed to...
4580 (HTML-TL): Renamed to...
4582 (UL-BEGIN, UL-END): Renamed to...
4584 (DROPCAP): Renamed to...
4586 (TS, TE, EQ, EN): Provide default definitions.
4587 (www-make-unique-name): Updated.
4588 (HTML-IMAGE-INLINE): Fix typo.
4589 * tmac/groff_www.man: Updated.
4591 * doc/Makefile (homepage.html): Add option -r to grohtml.
4592 Use shortened image name.
4593 * doc/groff.texinfo: Updated info on grohtml strings and macros.
4594 * doc/homepage.ms: Updated and extended.
4596 2002-02-14 Werner LEMBERG <wl@gnu.org>
4598 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4600 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4601 SGR_BACK_DEFAULT_COLOR): Replaced with ...
4602 (tty_printer::put_color): Use it.
4603 (ttr_printer::end_page): Simplify.
4605 2002-02-13 Werner LEMBERG <wl@gnu.org>
4607 * tmac/groff_tmac.man: Moved to...
4608 * man/groff_tmac.man: This place.
4609 * tmac/Makefile.sub, man/Makefile.sub: Updated.
4611 2002-02-12 Werner LEMBERG <wl@gnu.org>
4613 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4614 $(COMPILE.c) to not include groff's assert.h.
4616 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4618 * NEWS, src/drivers/grotty/grotty.man: Document it.
4620 2002-02-11 Werner LEMBERG <wl@gnu.org>
4622 * src/libs/snprintf/snprintf.c: Updated to latest version
4625 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
4626 test whether there is `.]' also.
4627 Don't check for spaces after `.['.
4628 * src/roff/grog/grog.sh: Do the same.
4630 2002-02-10 Werner LEMBERG <wl@gnu.org>
4634 * src/libs/libgroff/illegal.cc: Renamed to ...
4635 * src/libs/libgroff/invalid.cc: This.
4636 (illegal_char_table): Renamed to ...
4637 (invalid_char_table): This.
4638 * src/libs/libgroff/Makefile.sub: Updated.
4639 * win32-diffs: Updated.
4641 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4642 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4643 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4644 font::load), src/preproc/eqn/main.cc (read_line, main),
4645 src/preproc/eqn/lex.cc (file_input::read_line),
4646 src/preproc/pic/lex.cc (file_input::read_line,
4647 simple_file_input::get, simple_file_input::peek),
4648 src/preproc/pic/main.cc (top_input::get, top_input::peek),
4649 src/preproc/pic/pic.man, src/preproc/refer/main.cc
4650 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4651 do_bib), src/preproc/tbl/main.cc (table_input::get),
4652 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4653 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4654 do_zero_width, read_request, encode_char, ps_get_line,
4655 transparent_file, get_char_for_escape_name, transparent_translate,
4656 asciify, input_char_description, read_string, set_string),
4657 src/roff/troff/env.cc (environment::add_html_tag),
4658 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4660 * src/include/lib.h: Updated.
4662 * src/preproc/eqn/eqn.cc: Removed.
4666 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4668 2002-02-09 Werner LEMBERG <wl@gnu.org>
4670 * doc/gnu.xpm: New image.
4671 * doc/Makefile (DOCS): Add homepage.ps.
4672 Add rules for converting xpm->png and xpm->eps.
4673 Use `gnu.{xpm,eps}' as image names.
4674 * doc/homepage.ms: Updated.
4676 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
4678 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4679 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4680 Remove calls to `B1' and `B2'
4681 (PNG-IMAGE): New macro for inclusion of images in PNG format.
4682 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4683 auxiliary variables for MARGIN-PNG-IMAGE.
4684 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4685 auxiliary macros for MARGIN-PNG-IMAGE.
4686 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4688 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4689 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4690 (DROPCAP): New macro to produce dropcap characters.
4691 (www-do-image): Renamed back to...
4692 (HTML-DO-IMAGE): This.
4693 Updated all callers.
4695 * doc/Makefile (gnubw.eps): Updated.
4696 * doc/homepage.ms: Updated.
4698 2002-02-08 Werner LEMBERG <wl@gnu.org>
4700 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4701 Added `linethick' to table in section `Style Variables'.
4703 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
4705 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4707 2002-02-07 Werner LEMBERG <wl@gnu.org>
4709 Adding options -C (compatibility mode) and -c (grotty's old output
4712 * src/roff/nroff/nroff.sh: Implement it.
4714 * NEWS, src/roff/nroff/nroff.man: Updated.
4716 * PROBLEMS: Document bison 1.32 bug.
4718 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4720 * src/roff/troff/node.cc (make_tfont): Define it earlier.
4721 * src/roff/troff/div.h: Add prototype for `end_diversions'.
4722 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4723 * src/roff/troff/env.h: Add prototype for `title'.
4725 Adding EBCDIC support to grotty.
4727 * src/devices/grotty/tty.cc (CSI): New macro.
4728 (SGR_*, tty_printer::put_color): Use it.
4730 2002-02-06 Werner LEMBERG <wl@gnu.org>
4732 Implementing color support in grotty. The new switch -c activates
4733 the old drawing scheme, disabling color at the same time. The new
4734 switch `-i' selects italic instead of underlining (SGR only).
4736 * src/devices/grotty/tty.cc (putstring): New define instead of
4737 `fputs'. Updated all callers.
4738 (old_drawing_scheme): New global variable.
4739 (COLOR_CHANGE): New enum value.
4740 (SGR_*): New defines containing color handling escape sequences.
4741 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4742 (glyph): New members `back_color_idx' and `fore_color_idx'.
4743 (glyph::order): Add COLOR_CHANGE.
4744 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4745 `is_underline', `is_bold', `cu_flag', `tty_colors'.
4746 New methods `make_underline', `make_bold', `color_to_idx',
4747 `change_color', `put_color'.
4748 (cu_flag): Moved into `tty_printer' class.
4749 (tty_printer::tty_printer): Initialize colors.
4750 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4751 tty_printer::draw, tty_printer::end_page): Handle colors also.
4752 (main): Add options `-c' and `-i'.
4754 * NEWS, src/devices/grotty/grotty.man: Updated.
4756 * src/include/errarg.h (errarg): Add support for `unsigned int'.
4757 * src/libs/libgroff/errarg.c: Implement it.
4759 * src/include/printer.h (printer): Add `change_color' method
4760 (currently used by grotty only).
4761 * src/libs/libdriver/printer.cc: Implement it.
4762 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4763 call to `pr->change_color'.
4765 * src/roff/troff/node.cc (troff_output_file::fill_color,
4766 troff_output_file::glyph_color): Call `do_motion'.
4768 * tmac/tty.tmac: Add color definitions.
4770 * src/roff/groff/groff.man: Minor fixes.
4772 2002-02-05 Bernd Warken <bwarken@mayn.de>
4774 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4775 it. This is a preparation for future changes.
4777 2002-02-05 Werner LEMBERG <wl@gnu.org>
4779 * src/roff/troff/input.cc (process_input_stack): Fix the case
4780 where leading spaces are followed by \f or \s; previously, an
4781 incorrect space width has been used.
4783 * doc/roff.man (quoted_char): Fix argument.
4784 (comment): Define string.
4786 2002-02-04 Larry Kollar <kollar@alltel.net>
4788 * doc/groff.texinfo: More fixes.
4790 2002-02-04 Werner LEMBERG <wl@gnu.org>
4792 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4793 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4794 `restore_compatibility' before `output_string' -- the LINE_STRING
4795 register now already contains proper switches from and to
4798 * man/groff_char.man: Add Euro symbol.
4799 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4800 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4801 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4804 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4806 (.texinfo.html): Add support for texinfo->html.
4808 2002-02-03 Werner LEMBERG <wl@gnu.org>
4810 Added three new requests `ds1', `as1', and `ami'. The former two
4811 are equivalent to `ds' and `as' with the difference that
4812 compatibility mode is saved on entry, switched off during string
4813 expansion, and restored on exit. The latter is the pendant to `dei'
4816 (do_define_string): Use `define_mode' and `calling mode'.
4817 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4818 end of string, respectively.
4819 (define_string, append_string): Use `calling_mode'.
4820 (define_nocomp_string, append_nocomp_string,
4821 define_string_indirect): New functions.
4822 (init_input_requests): Updated.
4823 * NEWS, man/groff_diff.man, man/groff.man: Document it.
4825 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4826 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
4827 mm macro package accesses this string register directly.
4828 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4830 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
4833 2002-02-02 Larry Kollar <kollar@alltel.net>
4835 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4837 2002-01-31 Werner LEMBERG <wl@gnu.org>
4839 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4841 2002-01-31 Bernd Warken <bwarken@mayn.de>
4843 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4844 * man/groff_out.man: Revised and updated.
4846 2002-01-30 Bernd Warken <bwarken@mayn.de>
4848 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4849 out the unused `{' and `}' commands. Undefined by default.
4850 (IntArray): Make `data' private.
4851 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4852 new methods instead.
4853 (skip_line_D, skip_to_end_of_line): New functions.
4854 (get_D_fixed_args): Use `skip_line_D'.
4855 Changed to handle dummy odd arguments by ...
4856 (get_D_fixed_args_odd_dummy): This new function.
4857 (get_D_variable_args): Split some code into ...
4858 (get_possibly_integer_args): This new function.
4859 (send_draw): Use more `const'.
4860 (delete_current_env): New function.
4861 (position_to_end_of_args): Use `size_t'.
4863 (send_draw): Updated.
4864 (parse_D_command): Handle `c', `C', and `t' better.
4868 2002-01-29 Werner LEMBERG <wl@gnu.org>
4871 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4872 @Def...ListEnd which replaces @Def...x. This is necessary to get
4873 proper HTML output -- see the comment in the file for more
4877 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
4879 Fixes to make color changes of 2002-01-21 work with grohtml.
4881 * src/devices/grohtml/post-html.cc (style): Updated.
4882 (html_printer): Remove unused methods.
4883 (html_printer::do_font, html_printer::draw, html_printer::set_char,
4884 html_printer::special): Updated.
4885 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4886 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4887 Added some debugging code.
4888 (html_text::start_tag): Updated.
4889 (html_text::do_push): New method.
4890 (html_text::push_para): Call it.
4891 Add method for handling color.
4892 (html_text::do_color): Updated.
4893 (html_text::shutdown): Handle color.
4894 * src/devices/grohtml/html-text.h (tag_definition): New member
4898 2002-01-28 Werner LEMBERG <wl@gnu.org>
4900 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4902 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
4904 Add two switches -a and -g to control the antialiasing bits for
4905 text and graphics, respectively.
4907 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4909 * src/devices/grohtml/grohtml.man: Document them.
4910 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4912 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4913 (setupAntiAlias): New function.
4914 (createAllPages): Updated.
4915 (scanArguments): Handle `-a' and `-g'.
4916 (main): Call `setupAntiAlias'.
4919 2002-01-27 Werner LEMBERG <wl@gnu.org>
4921 * doc/groff.texinfo (Def*): Call index function after deffn.
4923 * tmac/html.tmac: Call `nroff' request.
4925 2002-01-26 Larry Kollar <kollar@alltel.net>
4927 * tmac/groff_ms.man: Add some omissions.
4929 2002-01-25 Larry Kollar <kollar@alltel.net>
4931 * tmac/groff_ms.man: Typographical improvements.
4933 2002-01-25 Werner LEMBERG <wl@gnu.org>
4935 * doc/groff.texinfo: Updated version and copyright.
4936 * src/devices/grops/grops.man: Updated.
4938 * tmac/groff_tmac.man: Fix `ig' macro.
4940 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4942 Use `.ne' unconditionally everywhere.
4943 (TS): Only insert some vertical space. Doing a page break is no
4944 longer necessary due to the redefinition of the `ne' request.
4946 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4947 warning for unknown subcommands but parse and pass them to the
4950 2002-01-24 Werner LEMBERG <wl@gnu.org>
4952 * tmac/groff_www.man, NEWS: Fix typos.
4954 2002-01-21 Werner LEMBERG <wl@gnu.org>
4956 Complete revision of color support:
4958 Adapt programs to the new libdriver/input.cc.
4960 Color spaces are no longer converted to RGB but transferred as-is
4961 in the troff intermediate output format.
4963 Handle default color gracefully. troff now supports a `default'
4964 color (which can't be changed).
4966 grops will now use the proper color space functions if available.
4970 Note that currently grohtml doesn't handle colors properly. This
4973 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
4974 (ui_to_a): New function.
4975 * src/include/lib.h: Updated.
4977 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
4978 (color): Simplified; removed all `double' members and methods.
4979 A new array `components' now holds the color parameters.
4980 (color::is_default, color::get_components): New methods.
4981 (color::operator==, color:operator!=): New.
4982 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
4983 to make access to the `components' array more comprehensible.
4984 * src/libs/libgroff/color.cc: Implement new color support.
4985 (atoh): Small fixes.
4986 (color::read_encoding): Simplified for new troff intermediate color
4988 (default_color): New global variable.
4990 * src/roff/troff/input.cc (default_symbol): New global variable.
4991 (lookup_color): Use it.
4992 (default_black): Removed.
4993 (do_glyph_color, do_fill_color): Simplified.
4994 (define_color): Handle default color.
4996 (do_if_request): Handle default color.
4997 * src/roff/troff/env.cc (environment::environment): Initialize
4998 colors with `default_color'.
4999 * src/roff/troff/node.cc (troff_output_file::put): Add method
5001 (troff_output_file::hex): Removed.
5002 (troff_output_file::fill_color, troff_output_file::glyph_color):
5003 Updated to include/color.h and libdriver/input.cc.
5005 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
5006 fill color properly (identically to the outline color). \D'f...'
5007 doesn't work any more.
5008 All function calls to it updated.
5010 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
5012 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
5015 * src/devices/grops/ps.cc (ps_output::put_color): New method.
5016 (ps_printer::sbuf_color): Make a real member instead of pointer.
5017 (ps_printer::fill_color, ps_printer::output_color): Removed.
5018 (ps_printer::ps_printer): Updated.
5019 (ps_printer::set_char): Ditto.
5020 (ps_printer::set_color): Use various color schemes.
5021 Use `put_color' method.
5022 (ps_printer::flush_sbuf): Don't set color.
5023 (ps_printer::fill_path): Take `environment' as parameter.
5024 Simplify color handling.
5025 (ps_printer::set_line_thickness): Renamed to ...
5026 (ps_printer::set_line_thickness_and_color): This (and updated).
5027 (ps_printer::set_color): Change second parameter from `complete'
5028 to `fill' which better describes what it does.
5029 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
5030 and text in the right order.
5032 Remove branches for `f' and `F'; this is handled by
5034 * src/devices/grops/ps.h: Updated.
5035 * font/devps/prologue (FL): Redefined.
5036 ({F,C}r,k,g: New color functions (with and without filling).
5038 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
5039 * man/groff_diff.man, man/groff.man, man/groff_out.man,
5040 doc/groff.texinfo, NEWS: Updated.
5042 2002-01-20 Bernd Warken <bwarken@mayn.de>
5044 * src/libs/libdriver/input.cc: Completely rewritten. See comments
5045 in this file for what has been changed.
5047 2002-01-19 Werner LEMBERG <wl@gnu.org>
5049 * test-groff: Fix GROFF_FONT_PATH.
5050 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
5051 is read before .TH or .Dd is parsed.
5053 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
5055 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
5056 quadrant boundaries.
5058 2002-01-18 Werner LEMBERG <wl@gnu.org>
5060 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
5063 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
5065 * tmac/doc.common: Initialize %I register for the %I macro to
5066 avoid (harmless) warning.
5067 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
5068 when in the SYNOPSIS section.
5070 2002-01-17 Bruno Haible <haible@clisp.cons.org>
5072 * src/preproc/pic/lex.cc (get_token): Fix typo.
5074 2002-01-17 Werner LEMBERG <wl@gnu.org>
5076 * devices/grops/ps.cc: Fix incorrectly applied last patch.
5078 2002-01-17 Larry Kollar <kollar@alltel.net>
5080 * tmac/groff_ms.man: Completely rewritten.
5082 2002-01-16 Werner LEMBERG <wl@gnu.org>
5084 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
5086 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
5088 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
5090 (ps_printer::draw): Ditto.
5092 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
5094 * tmac/groff_mdoc.man: Minor fixes.
5096 2002-01-13 Werner LEMBERG <wl@gnu.org>
5098 * man/groff_out.man: Some fixes.
5100 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
5102 * doc/pic.ms: Fix typos.
5104 2002-01-12 Werner LEMBERG <wl@gnu.org>
5106 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
5108 2002-01-10 Werner LEMBERG <wl@gnu.org>
5110 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
5114 2002-01-09 Bernd Warken <bwarken@mayn.de>
5116 * man/groff_out.man: Revised.
5117 * man/roff.man: Minor fixes.
5118 * src/roff/troff/troff.man: Some reordering.
5120 2002-01-09 Werner LEMBERG <wl@gnu.org>
5122 * tmac/an-old.tmac: Add dummy macros for equation support.
5124 2002-01-07 Werner LEMBERG <wl@gnu.org>
5126 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
5128 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
5130 * tmac/groff_man.man: Small improvements.
5132 2002-01-07 Bernd Warken <bwarken@mayn.de>
5134 * man/groff_diff.man: Revised.
5136 2002-01-06 Werner LEMBERG <wl@gnu.org>
5138 * tmac/www.tmac: Remove extraneous backslash.
5140 2002-01-06 Bernd Warken <bwarken@mayn.de>
5142 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
5144 2002-01-05 Werner LEMBERG <wl@gnu.org>
5146 Integrated groffer, contributed by Bernd Warken.
5148 * contrib/groffer/*: New.
5149 * Makefile.in, NEWS: Updated.
5151 2002-01-04 Werner LEMBERG <wl@gnu.org>
5153 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
5154 registers defined in macro packages.
5155 Revising the ms part.
5157 2002-01-04 Larry Kollar <kollar@alltel.net>
5159 * doc/groff.texinfo: Add documentation for ms macros.
5161 2002-01-02 Werner LEMBERG <wl@gnu.org>
5163 First step in adding PS support for the Euro symbol. `eu' is the
5164 official Euro logo, `Eu' is a font-specific glyph variant.
5166 * font/devps/text.enc: Add `Euro' at position 9.
5167 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
5168 * font/devps/symbolmap: Regenerated.
5172 2002-01-02 Bernd Warken <bwarken@mayn.de>
5174 * man/roff.man: Revised.
5176 2002-01-01 Bernd Warken <bwarken@mayn.de>
5178 * src/roff/groff/groff.man: Completely rewritten.
5180 2001-12-31 Werner LEMBERG <wl@gnu.org>
5182 * doc/Makefile: Updated.
5184 2001-12-30 Werner LEMBERG <wl@gnu.org>
5186 * tmac/www.tmac: Make all names of internal macros/registers/strings
5187 lowercase, and prepend `www-'.
5188 Other minor changes.
5189 * src/roff/troff/troff.man: Add preprocessor string at BOF.
5191 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
5193 Implement option `-b' in grohtml to set the HTML background colour.
5195 * src/devices/grohtml/post-html.cc (default_background): New global
5197 (html_printer::html_printer): Initialize `background' to
5198 `default_background'.
5199 (main): Implement option `-b'.
5201 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
5203 * src/devices/grohtml/grohtml.man: Updated.
5204 * doc/Makefile (.ms.html): Use `-b'.
5205 * tmac/html.tmac: Don't set background color.
5207 Add new grohtml tag `.html-tl'.
5209 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
5211 (title_desc::title_desc): Updated.
5212 (html_printer::troff_tag): Handle `.html-tl'.
5213 (html_printer::write_title): Use `with_h1'.
5214 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
5215 (HTML-TL): New macro.
5217 Add support for unordered lists in HTML.
5219 * tmac/www.tmac (www-level): New auxiliary register.
5220 (www-level1, www-level2, www-level3): New auxiliary strings.
5221 (www-push-level, www-pop-level): New auxiliary macros
5222 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
5226 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
5227 (DEFAULT_VERTICAL_OFFSET): Removed.
5228 (IMAGE_BOARDER_PIXELS): Set to 0.
5229 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
5230 (vertical_offset): Initialize with 0.
5231 (gsPaper): New global variable.
5232 (get_resolution): Scan for and return unsigned int.
5233 (get_papersize): New function to get paper length from devps/DESC.
5234 (determine_vertical_offset): New function.
5235 (createAllPages): Produce gray-level images and use proper page
5237 (createImage): Use `-quiet' option of pnmcrop.
5238 (addZ): Fix passing of `-Z'.
5239 (scanArguments): Fix handling of `-o'.
5240 (main): Call `determine_vertical_offset'.
5241 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
5244 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
5245 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
5246 glyph descenders properly.
5248 * doc/homepage.ms: Include `gnubw.eps'.
5249 * doc/Makefile (gnubw.eps): New rule.
5250 (homepage.html): Depend on `gnubw.eps'.
5252 2001-12-25 Werner LEMBERG <wl@gnu.org>
5254 * src/roff/troff/input.cc (default_black): Fix return value.
5256 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
5258 * tmac/doc-common (Dt): Change output of architecture strings.
5259 Do some syntax cleanup.
5260 * tmac/groff_mdoc.man: Updated.
5262 2001-12-23 Werner LEMBERG <wl@gnu.org>
5264 Adding an `itc' request (input line trap accepting \c).
5266 * src/roff/troff/env.h (environment): New member
5267 `continued_input_trap'.
5268 Make `do_input_trap' a friend function instead of `input_trap'.
5269 * src/roff/troff/env.cc (environment::environment,
5270 environment::copy): Updated.
5271 (environment::newline): Implement it.
5272 (do_input_trap): New function.
5273 (input_trap): Call `do_input_trap'.
5274 (input_trap_continued): New function.
5275 (init_env_requests): Updated.
5276 * src/roff/troff/TODO: Updated.
5278 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5281 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5283 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
5285 * tmac/doc-common, tmac/doc-syms: Small updates.
5287 2001-12-22 Colin Watson <cjwatson@debian.org>
5289 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5291 2001-12-22 Bernd Warken <bwarken@mayn.de>
5293 * MANIFEST: New file.
5295 2001-12-22 Werner LEMBERG <wl@gnu.org>
5297 * src/preproc/grn/grn.man: Updated.
5299 2001-12-22 Solar Designer <solar@openwall.com>
5301 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
5304 2001-12-19 Werner LEMBERG <wl@gnu.org>
5306 Implement a fallback character request `.fchar'.
5308 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5309 (is_fallback): New inline function.
5310 * src/roff/troff/input.cc (do_define_character): New function.
5311 (define_character): Call `do_define_character'.
5312 (define_fallback_character): New function.
5313 (init_input_requests): Add `fchar'.
5314 (charinfo::charinfo): Updated.
5315 (charinfo::set_macro): New argument to set `fallback' flag.
5316 * src/roff/troff/node.cc (make_glyph_node, make_node,
5317 node::add_char): Check `fallback' flag.
5318 * NEWS, man/groff_diff.man, man/groff_man: Updated.
5320 2001-12-16 Werner LEMBERG <wl@gnu.org>
5322 * groff.texinfo: Document exact search algorithm for glyphs.
5324 2001-12-15 Werner LEMBERG <wl@gnu.org>
5326 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5327 the left side of $(MANPAGES) rule to make it always non-empty.
5329 2001-12-14 Werner LEMBERG <wl@gnu.org>
5331 * src/roff/troff/input.cc (default_black): Define default color
5332 `black' if not yet defined.
5334 2001-12-13 Werner LEMBERG <wl@gnu.org>
5336 Implement new string-valued register `.fn' to return the current
5337 real (internal) font name.
5339 * env.cc (environment::get_font_name_string): New function.
5340 (init_env_requests): Add `.fn' register.
5341 * env.h (environment): Updated.
5342 * node.cc (font_info): Make `get_font_name' a friend.
5343 (get_font_name): New function.
5346 * man/groff_diff.man, man/groff.man, NEWS: Updated.
5348 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5350 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5352 2001-12-12 Werner LEMBERG <wl@gnu.org>
5354 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5356 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
5358 * man/groff_diff.man: Adding documentation for \O.
5360 2001-12-10 Werner LEMBERG <wl@gnu.org>
5362 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5363 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5365 2001-12-09 Werner LEMBERG <wl@gnu.org>
5367 * man/roff.man: Revised.
5368 * src/roff/groff/groff.man: Replace man page references with a
5369 pointer to roff.man.
5371 2001-12-09 Bernd Warken <bwarken@mayn.de>
5373 * man/roff.man: Completely rewritten.
5375 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5377 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5379 2001-12-05 Werner LEMBERG <wl@gnu.org>
5381 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5383 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5384 order of initializers.
5387 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
5389 * doc/groff.texinfo: Fix documentation of \O.
5391 * src/devices/grohtml/html-text.cc (html_text::do_indent,
5392 html_text::do_table, html_text::do_emittext, html_text::do_para):
5393 Use `const' for first argument.
5394 (html_text::do_table): Use cast.
5395 * src/devices/grohtml/html-text.h: Updated.
5396 * src/devices/grohtml/output.cc (simple_output::put_string): Add
5397 method for `const string &s'.
5398 * src/devices/grohtml/html.h: Updated.
5399 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5400 (ANCHOR_TEMPLATE): Modified.
5401 (manufacture_headings): New global variable to handle `-h' option.
5402 (is_subsection): Removed.
5403 (char_buffer::add_string): Add `const' to first argument.
5404 Protect against invalid string argument.
5405 Add method for `const string &s'.
5406 (text_glob): Completely redesigned.
5407 (page): Use `const' for strings and remove string length variable.
5408 (page::add_html): Removed.
5409 (page::add_end_encode): New member function.
5410 (to_unicode): Moved upwards.
5411 (title_desc, header_desc): Updated.
5412 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5414 (html_printer::is_bold, html_printer::make_bold): New member
5416 (html_printer::end_of_line): Updated.
5417 (generate_img_src, html_printer::do_auto_image,
5418 html_printer::do_title, html_printer::write_header,
5419 html_printer::determine_header_level, html_printer::do_heading,
5420 html_printer::do_linelength, html_printer::do_pageoffset,
5421 html_printer::do_indentation, html_printer::do_tempindent,
5422 html_printer::do_indentedparagraph, html_printer::do_break,
5423 html_printer::flush_sbuf, get_html_translation,
5424 html_printer::begin_page, html_printer::special): Rewritten to get
5425 rid of static string length limit.
5426 (html_printer::troff_tag): Added `.no-auto-rule'.
5427 (html_printer::flush_globs): Small fix.
5428 (html_printer::determine_space): Don't compute `space_width'.
5429 (html_printer::translate_to_html): Renamed to ...
5430 (html_printer::emit_html): This (with updates).
5431 (html_printer::write_header): Implement `-h' option.
5432 (html_printer::draw): Remove commented-out code. Handle `F'
5434 (html_printer::add_char_to_sbuf): Removed.
5435 (html_printer::add_to_sbuf): Rewritten.
5436 (html_printer::sbuf_continuation): Fixed.
5437 (html_printer::seen_backwards_escape, reverse,
5438 html_printer::remove_last_char_from_sbuf): Removed.
5439 (char_translate_to_html, str_translate_to_html): Removed.
5440 (html_printer::overstrike): New function member.
5441 (html_printer::set_char): Use it.
5442 (html_printer::do_body): New function member.
5443 (html_printer::~html_printer): Use it.
5444 (main): Handle `-h' option.
5446 * src/devices/grohtml/grohtml.man: Document -h switch.
5448 * src/preproc/html/pre-html.cc: Include searchpath.h
5449 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5450 (get_resolution): New function.
5451 (checkImageDir): Use `0777' permissions in mkdir()
5452 (write_start_image): Rewritten to use `\O[5...]'.
5453 (createImage, generateImages): Updated.
5454 (main): Handle `F' and `h' options.
5455 Use `get_resolution'.
5457 * src/roff/troff/input.cc (begin, end, image): Removed.
5458 (do_suppress): Take parameter.
5459 Handle modified syntax of `\O'.
5460 (token::next): Updated.
5461 (init_markup_requests): Removed.
5464 * src/roff/troff/div.h: Add declaration for begin_page().
5466 * tmac/color-html.tmac: Removed. Contents moved to...
5467 * tmac/html.tmac: Here. Set background color.
5468 * tmac/color.tmac: Removed. Contents moved to...
5469 * tmac/ps.tmac: Here.
5470 * tmac/www.tmac: Remove the title command when generating images
5472 (NO_AUTO_RULE): New macro.
5473 (HTML_DO_IMAGE): Use revised `\O' escapes.
5474 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5476 2001-12-02 Werner LEMBERG <wl@gnu.org>
5478 * tmac/groff_mdoc.man: Fix typo.
5480 2001-12-01 Colin Watson <cjwatson@debian.org>
5482 * man/roff.man: Fix typo.
5484 2001-11-29 Werner LEMBERG <wl@gnu.org>
5486 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5489 * src/roff/troff/input.cc (read_draw_node): Emit error message if
5490 more than one argument to \D'f ...'.
5492 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5494 2001-11-28 Werner LEMBERG <wl@gnu.org>
5496 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5499 * tmac/groff_man.man: Minor cosmetic fix.
5501 2001-11-27 Werner LEMBERG <wl@gnu.org>
5503 * src/roff/groff/groff.man, tmac/groff_tmac.man,
5504 tmac/groff_www.man: s/mwww/www/.
5506 2001-11-26 Werner LEMBERG <wl@gnu.org>
5508 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5509 * configure: Regenerated.
5510 * win32-diffs: Updated.
5512 * tmac/groff_mwww.tmac: Renamed to ...
5513 * tmac/groff_www.tmac: This.
5514 * tmac/mwww.tmac: Removed.
5515 * NEWS, tmac/Makefile.sub: Updated.
5517 2001-11-21 Werner LEMBERG <wl@gnu.org>
5519 * doc/groff.texinfo: Improve documentation of the `\v' escape.
5520 Fix explanation of `\D' and `rt'.
5522 2001-11-20 Werner LEMBERG <wl@gnu.org>
5524 * tmac/an-old.tmac (an-header): Set header length equal to page
5526 * doc/groff.texinfo: Improve documentation of `ne' request. Other
5530 2001-11-19 Werner LEMBERG <wl@gnu.org>
5532 * NEWS, man/Makefile.sub: Updated.
5534 2001-11-19 Bernd Warken <bwarken@mayn.de>
5536 * man/ditroff.man: New file.
5538 2001-11-17 Werner LEMBERG <wl@gnu.org>
5540 * man/groff_differences.man: Renamed to ...
5541 * man/groff_diff.man: This. Updated.
5542 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5544 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5545 * src/preproc/html/pushback.cc: This. Updated.
5546 * src/preproc/html/pushbackbuffer.h: Renamed to ...
5547 * src/preproc/html/pushback.h: This.
5548 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5551 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5552 * src/libs/libgroff/htmlhint.cc: This.
5553 * src/libs/libgroff/Makefile.sub: Updated.
5555 * tmac/an-old.tmac (an-end): Fix page length.
5557 2001-11-16 Werner LEMBERG <wl@gnu.org>
5559 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5560 * man/Makefile.sub: Include groff_differences.man.
5561 * VERSION: Set to 1.18.
5562 * REVISION: Set to 0.
5564 2001-11-16 Bernd Warken <bwarken@mayn.de>
5566 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5567 the second dot (or ending macro name) to end a macro.
5568 * doc/groff.texinfo: Doc fix.
5570 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
5572 * tmac/doc-common (doc-header): Handle very long document titles
5575 2001-11-16 Werner LEMBERG <wl@gnu.org>
5577 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5579 2001-11-15 Werner LEMBERG <wl@gnu.org>
5581 * src/roff/troff/troff.man: Revised and split into troff.man and...
5582 * man/groff_differences.man: New file.
5585 2001-11-13 Werner LEMBERG <wl@gnu.org>
5587 * tmac/an-old.tmac (TS, TE): New macros for table support.
5589 2001-11-12 Werner LEMBERG <wl@gnu.org>
5591 * src/include/lib.h: Provide a fix for emx to not include
5594 2001-10-27 Werner LEMBERG <wl@gnu.org>
5596 * src/roff/troff/input.cc (substring_macro): Fix computation of
5599 2001-10-20 Werner LEMBERG <wl@gnu.org>
5601 Undo change from 2001-08-28.
5603 * src/roff/troff/input.cc (have_input): New global variable.
5604 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5605 in compatibility mode.
5606 (process_input_stack): Use it.
5608 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
5610 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5611 being handled as end-of-sentence characters,
5613 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
5615 * src/roff/troff/input.cc (file_iterator): New members
5616 `suppress_newline_flag' and `seen_escape'.
5617 (file_iterator::next_file): Updated.
5618 (file_iterator::fill): Use it.
5619 (string_iterator): New member `suppress_newline_flag'.
5620 (string_iterator::fill): Set it.
5621 (get_color_element): Use MAX_COLOR_VAL.
5622 * src/roff/troff/env.cc (environment): Remove `need_eol'.
5623 (no_fill): Don't set `env->ignore_next_eol'.
5624 (environment::newline): Handle `eol' tag properly.
5626 (environment::add_html_tag): Set `env->ignore_next_eol'.
5628 * src/roff/troff/env.h (environment): Updated.
5630 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5632 (html_printer::outstanding_eol): New member function.
5633 (html_printer::do_title): Use new functions.
5634 (html_printer::troff_tag): Test `id_eol_ce'.
5636 2001-10-10 Werner LEMBERG <wl@gnu.org>
5638 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5639 files work with -C also.
5641 2001-10-05 Werner LEMBERG <wl@gnu.org>
5643 * doc/pic.ms: Minor fix.
5644 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5645 as a valid command line switch.
5646 * src/devices/grohtml/post-html.cc (main): Ditto.
5648 * src/devices/grohtml/grohtml.man: Updated.
5649 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5651 2001-10-04 Werner LEMBERG <wl@gnu.org>
5653 Implementing color support in troff, pic, grops, and grohtml. These
5654 changes are based on a major patch provided by Gaius Mulley
5657 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5658 definitions with both hex values and fractions.
5660 New escapes: \m and \M for drawing and background color,
5661 respectively. This corresponds to the troff output commands `m'
5664 groff and troff accept command line switch `-c' to disable color
5665 output (which is automatically disabled in compatibility mode).
5667 New scaling indicator `f' for fractions (1f = 65536u).
5669 New conditional operator `m' to test for defined colors with `if'
5672 New keywords `color' (or `colour', `colored', `coloured'), `outline'
5673 (or `outlined'), and `shaded' added to pic.
5675 * src/include/color.h: New file.
5676 * src/include/driver.h: Include it.
5677 * src/include/printer.h: Include color.h.
5678 (environment): New members `col' and `fill'.
5679 (printer): Remove `adjust_arc_center' member function.
5680 * src/include/Makefile.sub: Updated.
5682 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5684 Handle `m' and `DF' troff commands.
5685 * src/libs/libgroff/color.cc: New file.
5686 * src/libs/libgroff/Makefile.sub: Updated.
5688 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5690 (createImage): Fix computation of `y2'.
5692 (buffer::write_file_html): Remove calls to `stop'.
5694 * src/preproc/pic/common.h (common_output): New abstract function
5695 members `set_color', `reset_color', `get_last_filled', and
5696 `get_outline_color'.
5697 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5698 (object_spec): Add members `shaded' and `outlined'.
5699 * src/preproc/pic/output.h (output): `command' is now abstract.
5700 New function members `set_color', `reset_color', `get_last_filled',
5701 and `get_outline_color'.
5702 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5703 `outline[d]', and `shaded'.
5704 * src/preproc/pic/object.cc (output::command): Removed.
5705 (output::set_location): Moved to output.h.
5706 (graphic_object): Add protected members `outline_color' and
5708 Add member functions `set_outline_color', `get_outline_color', and
5710 (closed_object): Add member function `set_fill_color'.
5711 Add member `color_fill'.
5712 (graphic_object::print_text): Use `out->set_color' and
5714 (box_object::print, ellipse_object::print, circle_object::print,
5715 line_object::print, spline_object::print, arc_object::print): Ditto.
5716 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5717 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5718 `SHADED', making them `%left'.
5719 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5720 * src/preproc/pic/tex.cc (tex_output): New dummy function members
5721 `set_color', `reset_color', `get_last_filled', and
5722 `get_outline_color'.
5723 * src/preproc/pic/troff.cc (simple_output): New abstract function
5724 members `set_color', `reset_color', and `get_last_filled'.
5725 (simple_output::polygon, simple_output::circle,
5726 simple_output::ellipse): Use `get_last_filled'.
5727 (troff_output): New members `last_filled' and `last_outlined'.
5728 New function members `set_color', `reset_color', `get_last_filled',
5729 and `get_outline_color'.
5730 (troff_output::finish_picture): Use `reset_color'.
5731 (troff_output::set_fill): Test `last_filled'.
5732 * src/preproc/pic/pic.man: Updated.
5734 * src/roff/groff/groff.cc (main): Implement `-c' option.
5735 (synopsis, help): Updated.
5736 src/roff/groff/groff.man: Updated.
5738 * src/roff/troff/troff.h: Include color.h.
5739 (warning_type): Add WARN_COLOR.
5740 * src/roff/troff/env.h (environment): New members
5741 `{cur,prev}_{glyph,fill}_color'.
5742 New member functions `get_{prev_,}{glyph,fill}_color'.
5743 * src/roff/troff/env.cc: Initialize and implement them.
5744 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5745 Replace `NULL' with `0' everywhere for consistency.
5746 (lookup_color, default_black, do_glyph_color, do_fill_color,
5747 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5748 define_color): New functions.
5749 (token::next): Implement \M and \m escapes.
5750 (do_if_request): Implement `m' operator.
5752 (main): Implement `-c' option.
5753 (init_markup_requests): Add `defcolor' request.
5754 (warning_table): Add `color' warning.
5755 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5757 * src/roff/troff/node.cc (troff_output_file): New members
5758 `current_{page,glyph}color'. New member functions `put_hex',
5759 `glyph_color', and `fill_color'.
5760 (glyph_color_node::*, fill_color_node::*): Implement it.
5761 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5762 (parse_term): Add support for `f'.
5763 * src/roff/troff/troff.man: Updated.
5765 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5767 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5768 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5770 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5771 (tag_definition): Use `void *' for arg1.
5772 (html_text): New member functions `do_color' and `done_color'.
5773 Use `void *' for second parameter of `push_para' member function.
5774 New `push_para' member function with a single parameter.
5775 Use `char *' for parameter of `issue_table_begin' member funtion.
5776 New `issue_color_begin' member function.
5777 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5779 (html_text::issue_color_begin): New function.
5780 (html_text::issue_table_begin): Use `char *' for parameter.
5781 (html_text::start_tag, html_text::shutdown,
5782 html_text::check_emit_text): Updated.
5783 (html_text::push_para): Use `void *' for second parameter.
5784 Add same function with only one parameter.
5785 (html_text::do_*): Updated.
5786 (html_text::do_color, html_text::done_color): New functions.
5787 * src/devices/grohtml/post-html.cc (style): New member `col'.
5788 Mew member `style' with 6 parameters.
5789 (style::style, style::operator==): Updated.
5790 (html_printer::do_font): Use it.
5791 (html_printer::draw): Add dummy entry for `F'.
5792 (html_printer::set_char): Updated.
5793 * src/devices/grohtml/grohtml.man: Updated.
5795 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5796 trailing zeroes removed.
5797 (ps_printer): New members `sbuf_color', `fill_color', and
5799 Removed member `fill'.
5800 New member function `set_color'.
5801 (ps_printer::ps_printer, ps_printer::set_char): Updated.
5802 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5803 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5805 * tmac/color-html.tmac, tmac/color.tmac: New files.
5806 * tmac/troffrc: Include them.
5807 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5808 * tmac/Makefile.sub: Updated.
5810 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5811 man/groff.man: Updated.
5812 * font/devps/prologue.ps: Define FC and CO functions.
5814 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
5816 Fix incorrect cropping of images and incorrect handling of special
5817 characters. Fix handling of file names in \O.
5819 * src/include/geometry.h: New file.
5820 * src/libs/libgroff/geometry.cc: New file.
5821 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5823 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5825 (do_suppress): Updated.
5826 * src/roff/troff/node.cc: Include geometry.h.
5827 (troff_output_file::flush_tbuf): Fixed parameters to
5828 `check_output_limits'.
5829 (troff_output_file::check_charinfo): Ditto.
5830 (troff_output_file::determine_line_limits): Add support for `Da'
5833 * src/devices/grohtml/post-html.cc (str_translate_to_html):
5834 Add new parameter `is_special' to decode special characters from
5836 (html_printer::do_title, html_printer::do_heading,
5837 html_printer::do_indentedparagraph,
5838 html_printer::translate_to_html, html_printer::special): Updated.
5840 2001-10-03 Werner LEMBERG <wl@gnu.org>
5842 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5843 Fix entry for config.h.
5844 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5845 * tmac/troffrc: Translate nonbreakable space character to `\~'.
5846 * src/preproc/eqn/eqn.man: Document -d command line option.
5848 2001-09-27 Werner LEMBERG <wl@gnu.org>
5850 * man/groff.man: Use
5858 instead of the old code (`.ad .hy' after the table) to suppress
5859 incorrect hyphenation for grohtml output.
5861 2001-09-22 Werner LEMBERG <wl@gnu.org>
5863 * man/groff_font.man, man/groff_out.man: Minor fixes.
5865 2001-09-20 Werner LEMBERG <wl@gnu.org>
5867 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
5868 Arnold Robbins <arnold@skeeve.com>).
5870 2001-09-09 Werner LEMBERG <wl@gnu.org>
5872 * configure: Regenerated with autoconf 2.52.
5874 * doc/groff.texinfo: Complete revision of indices.
5876 2001-09-07 Werner LEMBERG <wl@gnu.org>
5878 * doc/Makefile (clean): Updated to delete all indices.
5880 2001-09-05 Werner LEMBERG <wl@gnu.org>
5882 * src/roff/troff/troff.man: Remove superfluous line.
5884 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5885 given on the command line (or rather, if only the default warnings
5888 2001-09-03 Werner LEMBERG <wl@gnu.org>
5890 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5891 use .ne for TTY devices.
5893 2001-08-31 Werner LEMBERG <wl@gnu.org>
5895 * src/roff/troff/token.h, src/roff/troff/input.cc:
5896 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5898 2001-08-28 Werner LEMBERG <wl@gnu.org>
5900 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5901 * src/roff/troff/input.cc (token::next): Return
5902 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5904 (token::description): Updated.
5905 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5906 (token::add_to_node_list, token::process): Ignore
5907 TOKEN_TRANSPARENT_ESCAPE.
5909 2001-08-27 Werner LEMBERG <wl@gnu.org>
5911 * tmac/an-old.tmac: Fix `S' string.
5913 2001-08-26 Werner LEMBERG <wl@gnu.org>
5915 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5917 2001-08-25 Werner LEMBERG <wl@gnu.org>
5919 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5921 Many other minor fixes.
5923 * configure.ac: Add message at end to inform how to compile
5925 * configure: Regenerated.
5927 2001-08-24 Werner LEMBERG <wl@gnu.org>
5929 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5930 Updated to latest version of libc.
5932 2001-08-23 Werner LEMBERG <wl@gnu.org>
5934 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5935 Autoconf 2.50 and newer can handle this.
5936 * configure: Regenerated.
5938 2001-08-21 Werner LEMBERG <wl@gnu.org>
5940 * doc/pic.ms: Fix typo.
5941 * src/preproc/tbl/tbl.man: Document case of global options.
5943 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
5945 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5946 handling of `CR' font.
5948 2001-08-20 Werner LEMBERG <wl@gnu.org>
5950 Use a config.h file.
5952 * src/include/lib.h: Include config.h.
5953 * All C files: Ditto (if necessary).
5954 * All C++ source and header files: Include lib.h first (if
5957 * src/include/config.hin: New file (autogenerated by autoheader).
5958 * stamp-h.in: New file.
5959 * configure.ac: Updated.
5960 * aclocal.m4: Add third parameters to AC_DEFINE macros.
5961 (GROFF_ARRAY_DELETE): Simplified.
5962 * Makefile.sub (DISTCLEANFILES): Updated.
5963 Added targets for remaking config.status, config.hin, config.h,
5964 stamp-h.in, and stamp-h.
5965 * configure: Regenerated.
5967 2001-08-19 Werner LEMBERG <wl@gnu.org>
5971 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
5973 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
5974 (do_sprintf): Use snprintf().
5976 2001-08-18 Werner LEMBERG <wl@gnu.org>
5978 * src/libs/snprintf/*: Added an snprintf module written by Mark
5980 * src/libs/libgroff/Makefile.sub: Updated.
5981 * configure.ac: Add test for snprintf().
5982 * Makefile.in: Updated.
5983 * configure: Regenerated.
5985 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
5988 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
5990 * tmac/doc.tmac (Ex): New implementation.
5991 * tmac/doc-common, tmac/groff_tmac.man: Updated.
5993 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
5995 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
5997 * tmac/groff_tmac.man: Updated.
5999 2001-08-13 Werner LEMBERG <wl@gnu.org>
6001 * src/preproc/tbl/tbl.man: Minor documentation update.
6003 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
6005 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
6006 * configure.ac: Add declaration test for gettimeofday().
6007 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
6008 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
6009 * configure: Regenerated.
6011 2001-08-11 Werner LEMBERG <wl@gnu.org>
6013 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
6014 * configure.ac: Add declaration test for strcasecmp().
6015 * Makefile.in: Updated.
6016 * configure: Regenerated.
6017 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
6018 this is necessary because groff's mkstemp.cc is C++.
6019 Add declaration conditionally for strcasecmp().
6021 2001-08-10 Werner LEMBERG <wl@gnu.org>
6023 Integrated pic2graph, contributed by Eric S. Raymond.
6025 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
6027 * Makefile.in, NEWS: Updated.
6029 * src/preproc/tbl/tbl.man: Revised.
6031 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
6033 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
6035 2001-08-09 Werner LEMBERG <wl@gnu.org>
6037 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
6040 2001-08-08 Paul Eggert <eggert@twinsun.com>
6042 * Makefile.sub (configure): Depend on configure.ac, not
6044 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
6046 2001-08-07 Werner LEMBERG <wl@gnu.org>
6048 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
6051 2001-08-06 Werner LEMBERG <wl@gnu.org>
6053 * src/roff/troff/troff.man: Improve documentation of -E option.
6055 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6057 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
6060 2001-07-27 Werner LEMBERG <wl@gnu.org>
6062 * src/preproc/refer/refer.cc: Undo last change.
6063 * src/devices/grohtml/post-html.cc: Ditto.
6065 2001-07-26 Werner LEMBERG <wl@gnu.org>
6067 * src/preproc/refer/refer.cc: Include `lib.h'.
6068 * src/devices/grohtml/post-html.cc: Ditto.
6070 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
6072 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
6073 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
6074 * Makefile.in: Comment updated.
6075 * configure: Regenerated.
6077 2001-07-25 Werner LEMBERG <wl@gnu.org>
6079 * src/preproc/pic/pic.cc: Removed.
6080 * src/preproc/pic/pic_tab.h: Removed.
6081 * src/preproc/refer/label.cc: Removed.
6083 * doc/Makefile (.ms.html): Don't use a file name extension in
6084 argument to grohtml's -I option.
6085 * Makefile.in (dist): Remove CVS directories.
6086 Call `distfiles' target.
6088 * src/devices/grohtml/grohtml.man: Add information about valid
6089 versions of pnmtopng.
6090 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
6091 name instead of number.
6093 2001-07-24 Werner LEMBERG <wl@gnu.org>
6095 * doc/groff.texinfo: Minor fixes.
6097 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
6099 * doc/Makefile (.ms.html): Put image files into a subdirectory.
6102 2001-07-20 Werner LEMBERG <wl@gnu.org>
6104 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
6105 * src/libs/libgroff/mkstemp.cc: New file.
6106 * src/libs/libgroff/mksdir.cc: New file.
6107 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
6108 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
6109 * src/libs/libgroff/Makefile.sub: Updated.
6110 * src/include/lib.h: Add mksdir() prototype.
6111 * src/include/posix.h: Define S_IXUSR if not yet defined.
6113 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
6114 (createAllPages): Use mksdir() instead of current code.
6115 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
6116 (main): [!HAVE_MKSTEMP]: Removed.
6118 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
6119 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
6121 * configure.ac: Add tests for stdint.h, sys/time.h, and
6123 Call new GROFF_xxx macros.
6124 * configure: Regenerated.
6125 * Makefile.in: Comments updated.
6127 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
6129 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
6130 instead of current code.
6131 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
6132 * src/roff/groff/groff.cc (possible_command::insert_args): New
6134 (main): Use it for predriver handling instead of insert_arg().
6136 2001-07-19 Werner LEMBERG <wl@gnu.org>
6138 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
6141 * src/include/posix.h: Define S_IWUSR if not yet defined.
6143 2001-07-18 Werner LEMBERG <wl@gnu.org>
6147 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
6149 * tmac/groff_mdoc.man: Document new -width and -column syntax.
6150 Some other minor fixes.
6151 * tmac/an-old.tmac: Add `AT' and `UC' macros.
6153 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
6155 Replace call to `troff' with `groff -Z' to make it aware of
6158 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
6159 (troff_command, command_prefix): Removed.
6160 (alterDeviceTo): Use groff.
6161 (addZ): New function.
6162 (char_buffer::do_html): Use it.
6163 (scanArguments): Use TROFF_COMMAND.
6164 (findPrefix): Removed.
6166 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
6168 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
6170 * doc/pic.ms: Documentation fixes.
6172 2001-07-17 Werner LEMBERG <wl@gnu.org>
6174 Replace atexit() with global destructor.
6176 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
6177 (xtmpfile_list_init): New global structure to deallocate
6178 xtmpfile_list on exit. Its destructor inherits most code from
6180 (remove_tmp_files): Deleted.
6181 (add_tmp_file): Simplified.
6183 2001-07-16 Werner LEMBERG <wl@gnu.org>
6185 Replace strdup() with strsave().
6187 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
6188 (set_papersize): Use strsave() and a_delete.
6189 (main): Use strsave().
6190 * src/preproc/html/pre-html.cc (make_message, createAllPages,
6191 removeAllPages): Use strsave() and a_delete.
6193 * configure.ac: Remove test for strdup.
6194 * Makefile.in: Comment updated.
6195 * configure: Regenerated.
6197 2001-07-15 Werner LEMBERG <wl@gnu.org>
6199 * win32-diffs: Updated.
6201 2001-07-14 Werner LEMBERG <wl@gnu.org>
6203 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
6204 removing the old one.
6205 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
6207 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6209 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
6211 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
6213 Merge -xwidth into -width. Add -xwidth functionality to -column
6216 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
6218 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
6219 string immediately following a leading dot starts with a valid mdoc
6221 Add similar code to the -column branch.
6222 (doc-Bl-usage): Updated.
6223 * groff_mdoc.man: s/-xwidth/-width/.
6225 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
6227 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
6228 running into centered or non-formatted text.
6230 2001-07-11 Werner LEMBERG <wl@gnu.org>
6232 Introduce short and long prefixes to have the selection at run-time
6233 whether there is a 8+3 limit for names of temporary files.
6235 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
6236 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
6237 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
6239 (temp_init): New global structure to initialize above three
6241 (xtmptemplate): Use two parameters for long and short prefix.
6242 Simplify code use above three variables.
6243 (xtmpfile): Use long and short prefixes as parameters.
6244 * src/include/lib.h: Updated.
6246 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
6248 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
6249 (createAllPages, makeTempFiles): Updated.
6251 2001-07-09 Werner LEMBERG <wl@gnu.org>
6253 * REVISION: Increased to 3.
6255 Version 1.17.2 released
6256 =======================
6258 2001-07-07 Werner LEMBERG <wl@gnu.org>
6260 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
6263 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
6265 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
6267 * tmac/groff_mdoc.man: Fix synopsis.
6269 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
6271 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6272 Restore `doc-Pa-font'.
6274 2001-07-04 Werner LEMBERG <wl@gnu.org>
6276 * src/utils/indxbib/dirnamemax.c: Moved to ...
6277 * src/libs/libgroff/maxfilename.cc: Here.
6278 s/dir_name_max/file_name_max/.
6280 * src/include/lib.h: Add file_name_max.
6281 * src/utils/indxbib/indxbib.cc: Updated.
6282 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6285 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6287 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6289 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6290 REGION_TEMPLATE): New macros.
6291 (createAllPages, makeTempFiles): Use them.
6292 Include `nonposix.h'.
6293 (html_system): New function.
6294 (createAllPages, createImage): Use it.
6297 * tmac/www.tmac: Fix typos.
6299 2001-07-03 Werner LEMBERG <wl@gnu.org>
6301 * tmac/www.tmac: Disable hyphenation in normal text only if output
6303 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
6304 * tmac/groff_mwww.man, NEWS: Updated.
6306 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
6308 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6311 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
6313 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6314 doc-display-ps-stack): Implement font and font size stack for
6317 2001-07-02 Werner LEMBERG <wl@gnu.org>
6319 * REVISION: Increased to 2.
6320 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6322 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6323 beginning of a line.
6324 * src/groff/grog/grog.sh: Ditto.
6326 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
6328 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6331 2001-06-27 Werner LEMBERG <wl@gnu.org>
6333 Fix problems with preprocessor string for `man' program.
6335 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
6336 Updated/added copyright.
6337 Moved Emacs's local variable to identify nroff mode to the end of
6338 the file; add local variable if missing.
6340 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
6342 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6343 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6344 * configure: Regenerated.
6346 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
6348 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6349 * configure: Regenerated.
6351 2001-06-24 Werner LEMBERG <wl@gnu.org>
6353 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6355 * doc/pic.ms: Fix typos.
6357 Version 1.17.1 released
6358 =======================
6360 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
6362 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6363 * configure: Updated.
6365 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
6367 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6369 * src/roff/troff/dic.cc (blank_line): Add html tag.
6371 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
6373 * src/roff/troff/input.cc (do_suppress): Fix typo.
6375 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
6377 Added two new options (-D and -I) to specify image names and a
6378 subdirectory to place the images in.
6380 Change syntax from \\Ox to \\O[x].
6382 * src/devices/grohtml/post-html.cc (main): Add options.
6384 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6385 Use `NULL' instead of `0' for null string pointers.
6386 (MAX_RETRIES): New macro.
6387 (lengthOfintToStr, intToStr, make_message): New functions.
6388 (makeFileName): Make function static.
6389 Implement -D and -I options.
6390 (checkImageDir): New function.
6391 (write_end_image, write_start_image): Use new syntax of \O.
6392 (createAllPages, removeAllPages): Implement -D and -I options. Use
6394 (createImage): Use make_message().
6395 (addps4html): Add guard for malloc().
6396 (usage, scanArguments): Updated.
6397 (makeTempFiles): Use mkstemp().
6398 (removeTempFiles): Use unlink().
6399 (findPrefix): Add guard for malloc().
6401 * src/roff/troff/input.cc (get_delim_file_name): New function to
6403 (do_suppress): Updated to parse new syntax.
6404 * src/devices/grohtml/grohtml.man: Updated.
6405 * tmac/www.tmac: Updated to new syntax.
6409 2001-06-15 Werner LEMBERG <wl@gnu.org>
6411 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6413 * src/devices/grohtml/grohtml.man: Minor improvements.
6415 2001-06-14 Werner LEMBERG <wl@gnu.org>
6417 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6419 2001-06-11 Werner LEMBERG <wl@gnu.org>
6421 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6422 line to specify preprocessor options -- mandb 2.3.1 only recognizes
6424 * src/preproc/grn/grn.man: Add proper '\" string.
6426 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
6428 * test-groff: Don't use PATH but GROFF_BIN_PATH.
6430 2001-06-08 Werner LEMBERG <wl@gnu.org>
6432 Updated to autoconf 2.50.
6434 * configure.in: Renamed to...
6435 * configure.ac: This.
6436 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6437 (GROFF_OS390): Updated.
6438 * configure: Regenerated.
6440 2001-05-18 Werner LEMBERG <wl@gnu.org>
6442 * src/roff/troff/env.c, src/roff/troff/env.h,
6443 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6446 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
6448 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6450 2001-05-16 Werner LEMBERG <wl@gnu.org>
6452 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6453 less than or equal zero; set it to 1 then.
6454 * src/roff/troff/node.h (node::node): Initialize `last'.
6456 2001-05-08 Werner LEMBERG <wl@gnu.org>
6458 * tmac/an-old.tmac: Make predefined strings work in compatibility
6460 Add troff version guard.
6461 * tmac/doc.tmac: Simplify version guard.
6463 2001-05-07 Werner LEMBERG <wl@gnu.org>
6465 The .ns and .rs requests are now honoured not only in the top-level
6466 but in all diversions (similar to UNIX troff).
6468 This change is based on a patch from Tadziu Hoffmann
6469 <hoffmann@usm.uni-muenchen.de>.
6471 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6472 (top_level_diversion): Remove `no_space_mode' member.
6473 * src/roff/troff/div.cc (diversion::diversion,
6474 top_level_diversion::top_level_diversion): Updated.
6475 (macro_diversion::output): Reset `no_space_mode'.
6476 (no_space, restore_spacing): Use `curdiv' unconditionally.
6477 (space_request, blank_line): Check `curdiv->no_space_mode'.
6478 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6479 `curdiv' unconditionally.
6480 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6483 2001-05-06 Werner LEMBERG <wl@gnu.org>
6485 Added two new requests `de1' and `am1' which are similar to `de' and
6486 `am' with the difference that compatibility mode is saved on entry,
6487 switched off during macro execution, and restored on exit.
6489 * src/roff/troff/input.h: Added two new special characters
6490 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6491 * src/roff/troff/input.cc (input_iterator): Added two member
6492 functions `save_compatible_flag' and `get_compatible_flag'.
6493 (input_stack): Ditto.
6494 (string_iterator): Ditto. Also add private member
6495 `saved_compatible_flag'.
6496 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6497 (calling_mode): New enumeration.
6498 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
6499 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6500 (define_macro, define_indirect_macro, append_macro, ignore): Use
6502 (define_nocomp_macro, append_nocomp_macro): New functions.
6503 (init_input_requests): Updated.
6504 (do_request): Rename local variable `saved_compatible_flag' to
6505 `old_compatible_flag'.
6506 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6508 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6509 public and trap-invoked macros. As a consequence, the man macros
6510 work in compatibility mode also.
6512 2001-05-06 Solar Designer <solar@openwall.com>
6514 * Makefile.in: Use $(mandir).
6516 2001-05-06 Alexios Zavras <zvr@pobox.com>
6518 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6520 2001-05-05 Werner LEMBERG <wl@gnu.org>
6522 Added `.ns' number register: Returns 1 in no-space mode (if in
6523 top-level diversion), 0 otherwise.
6525 * src/roff/troff/div.cc (no_space_mode_reg): New class.
6526 (init_div_requests): Updated.
6527 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6530 2001-05-04 Werner LEMBERG <wl@gnu.org>
6532 * src/roff/nroff/nroff.man: Improved documentation (especially
6535 2001-05-02 Werner LEMBERG <wl@gnu.org>
6537 Added `brp' request: This is \p as a request.
6539 * src/roff/troff/env.cc (environment::do_break): Add parameter
6541 (do_break_request): New function (was `break_request').
6542 (break_request): Calls `do_break_request'.
6543 (break_spread_request): New; calls `do_break_request'.
6544 (init_env_requests): Updated.
6545 * src/roff/troff/env.h: Updated.
6546 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6548 * REVISION: Increased to 1.
6549 * win32-diffs: Updated.
6551 2001-05-01 Werner LEMBERG <wl@gnu.org>
6553 * tmac/an-old.tmac: Fix minor compatibility mode issue.
6554 * tmac/troffrc-end: Make it really work in compatibility mode.
6556 2001-04-27 Werner LEMBERG <wl@gnu.org>
6558 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6561 2001-04-22 Werner LEMBERG <wl@gnu.org>
6563 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6564 latest versions from glibc CVS archive.
6566 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6567 <c.zeelenberg@hccnet.nl>.
6569 2001-04-21 Werner LEMBERG <wl@gnu.org>
6571 * configure.in: Move check for mkstemp() to...
6572 * aclocal.m4 (GROFF_MKSTEMP): This new function.
6573 * configure: Regenerated.
6575 * src/include/groff-getopt.h: Don't use variable names in
6578 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
6579 * src/devices/grohtml/Makefile.sub,
6580 src/devices/grohtml/post-html.cc: Updated.
6582 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
6584 * configure.in: Add special check for mkstemp().
6585 * src/libs/libgroff/tmpfile.cc: Use it.
6586 * src/utils/indxbib/indxbib.cc: Ditto.
6587 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6588 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6591 2001-04-20 Bruce Lilly <blilly@erols.com>
6593 `Version_string' as C++ object was not visible to linker from C
6595 Add `const' to `Version_string'.
6597 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6598 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6599 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6600 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6601 (scanArguments), src/preproc/refer/refer.cc (main),
6602 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6603 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6604 (main), src/devices/grohtml/post-html.cc (main),
6605 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6606 (main), src/utils/hpftodit/hpftodit.cc (main),
6607 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6608 (main), src/utils/lkbib/lkbib.cc (main),
6609 src/utils/addftinfo/addftinfo.cc (main): Implement it.
6611 * src/roff/groff/pipeline.c: Add _UWIN.
6612 * src/include/nonposix.h: Ditto.
6614 2001-04-20 Werner LEMBERG <wl@gnu.org>
6616 * src/include/lib.h: Use HAVE_STRERROR.
6617 * src/roff/groff/pipeline.c: Ditto.
6618 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6619 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6620 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6621 * win32-diffs: Updated.
6622 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6624 2001-04-19 Werner LEMBERG <wl@gnu.org>
6626 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6627 instead of hardwired `"troff"'.
6628 (char_buffer::read_file): Remove unused variables.
6629 (char_buffer::write_file_troff): Ditto.
6630 (char_buffer::write_file_html): Ditto.
6631 (generateImages): Ditto.
6633 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6635 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6637 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6638 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6639 index_search_item::search1): Ditto.
6640 * src/roff/troff/node.h (width_list): Reorder members.
6641 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6642 (lookup_warning): Ditto.
6643 (prepend_string): Commented out.
6644 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6645 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6646 * src/preproc/tbl/main.cc (process_format): Ditto.
6647 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6649 * src/preproc/pic/pic.cc: Updated.
6650 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6651 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6652 * src/preproc/refer/command.cc (execute_command): Ditto.
6653 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6654 * src/preproc/refer/token.cc (lookup_token): Ditto.
6655 * src/preproc/soelim/soelim.cc: Ditto.
6656 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6657 (isHexDigit): Commented out.
6658 (pushBackBuffer::isString): Remove unused variable.
6659 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6661 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6662 resource_manager::read_resource_arg, read_one_of, parse_extensions):
6664 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6665 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6666 lookup_paper_size): Ditto.
6667 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6668 (text_glob, element_list): Reorder members.
6669 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6671 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6672 return value to `void'.
6673 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6675 * src/devices/grohtml/html.h (simple_output::check_newline,
6676 simple_output::space_or_newline, simple_output::enable_newlines):
6678 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6680 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6681 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6682 output_ligatures, output_charset, read_map): Ditto.
6683 * src/utils/lookbib/lookbib.cc (main): Ditto.
6684 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6685 (do_file): Fix typo (`=' -> `==').
6686 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6687 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6689 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
6691 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6692 Fix usage of GROFF_BIN_PATH.
6693 * src/roff/nroff/nroff.man: Updated.
6695 2001-04-18 Werner LEMBERG <wl@gnu.org>
6697 * NEWS: Fixing typos.
6700 Version 1.17 released
6701 =====================
6703 2001-04-17 Werner LEMBERG <wl@gnu.org>
6705 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6706 directory, not in $(srcdir).
6708 2001-04-16 Werner LEMBERG <wl@gnu.org>
6710 * doc/groff.texinfo: More info on conditionals.
6712 2001-04-15 Werner LEMBERG <wl@gnu.org>
6714 * doc/groff.texinfo: Added some info about groff internals.
6716 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6717 about missing special character only if the name is non-null.
6719 2001-04-14 Werner LEMBERG <wl@gnu.org>
6721 Removing the grohtml-old device driver which is now obsolete.
6723 * src/devices/grohtml-old/*: Removed.
6724 * font/devhtml-old/*: Removed.
6725 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6727 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6728 * test-groff (PATH): Updated.
6729 * tmac/Makefile.sub (NORMALFILES): Updated.
6730 * tmac/an-old.tmac: Remove special code for html-old device.
6731 Replace `html-or-html-old' register with `an-html'.
6732 * tmac/eqnrc: Updated.
6733 * tmac/html-old.tmac: Removed.
6734 * tmac/troffrc, tmac/troffrc-end: Updated.
6735 * tmac/www.tmac: Remove special code for html-old device.
6736 Replace `html-or-html-old' register with `www-html'.
6738 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6739 src/libs/libgroff/htmlindicate.cc (graphic_end),
6740 include/htmlindicate.h, src/preproc/grn/*.cc,
6741 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6742 single argument for consistency with rest of source code.
6744 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6746 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
6748 * src/roff/troff/troff.man: Fixing typos.
6750 2001-04-13 Werner LEMBERG <wl@gnu.org>
6752 * doc/pic.ms: Fixing many font switches.
6753 * doc/groff.texinfo: Fixes, additions.
6754 * MORE.STUFF: Updated.
6756 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
6758 * src/devices/grohtml/grohtml.man: Updated manual page regarding
6760 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6762 (removeTempFiles): New function to tidy up temporary files.
6763 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6764 Many fixes to do with the new inline suppress node and image regions
6766 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6767 (generate_img_src): New function.
6768 (html_printer::do_auto_image): Utilizes it.
6769 (do_heading, do_title): Include inline images within their contents.
6770 (html_printer::begin_page): Tidied up comments that are issued to
6771 the html output file.
6772 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6774 (text_glob::is_br): New method used by do_heading.
6775 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6776 equivalent diversion.
6777 * src/include/html-strings.h: Altered image tags to reflect the
6779 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6781 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6782 it is already inside a pic image. Only emit tags if the argument
6783 `-Tps:html' is present.
6784 * src/preproc/tbl/main.cc: Changes to reflect additional
6785 `html_end_suppress' parameter.
6786 * src/roff/troff/env.cc: Only emit eol tag if a node has been
6787 emitted since the last eol tag was written.
6788 * src/roff/troff/env.h: New boolean `emitted_node'.
6789 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6790 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
6791 * src/roff/troff/node.cc (check_charinfo): New method.
6792 (troff_output_file::determine_line_limits): Alterations to limit
6794 * tmac/www.tmac: Changes to reflect new suppress nodes.
6796 2001-04-12 Bruno Haible <haible@clisp.cons.org>
6798 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6799 Escape the html_glyph in the buffer.
6800 (str_translate_to_html): Output the unescaped escaped_char.
6801 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6802 `frame=void', not `frame=none'. Add `border=0'.
6804 2001-04-12 Werner LEMBERG <wl@gnu.org>
6806 * PROBLEMS: Add some words on how to avoid wrapper macros.
6808 2001-04-11 Blake McBride <blake@florida-software.com>
6810 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6812 2001-04-11 Werner LEMBERG <wl@gnu.org>
6814 * font/devlbp/Makefile.sub (CLEANADD): Set it.
6815 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6816 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6817 * Makefile.sub (DISTCLEANFILES): Here.
6819 * libs/libgroff/new.cc: Include `nonposix.h'.
6820 * win32-diffs: Updated.
6822 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
6824 Added skeleton macro for defunct macros.
6826 Updated documentation.
6828 When inside displays, an empty input line warning should be
6829 suppressed. If another macro call is put inside a display,
6830 all subsequent empty lines found in that display caused a
6831 warning to be emitted.
6833 * tmac/doc.tmac (doc-defunct-macro): New macro.
6834 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6835 (doc-restore-global-vars): Fixed typo.
6836 (doc-empty-line): Check the `doc-display-depth' register to
6837 determine whether we are inside display or not.
6839 * tmac/doc-common: Removed `Or' and `Sf' registers.
6840 Moved obsolete `Ds' macro to doc.tmac.
6842 * tmac/groff_mdoc.man: Bump document date.
6843 Document `.Vt' under ``Variable Types''.
6844 Removed documentation for obsolete `.Or' macro.
6846 2001-04-10 Werner LEMBERG <wl@gnu.org>
6849 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6851 2001-04-10 Bruno Haible <haible@clisp.cons.org>
6853 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6854 (usage): Add stream argument. Don't exit.
6855 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6856 Write --version output to stdout, not stderr.
6857 (usage): Add stream argument. Don't exit.
6858 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6859 (usage): Add stream argument. Don't exit.
6860 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6862 (usage): Add stream argument. Don't exit.
6863 (main): Write --help output to stdout, not stderr.
6864 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6865 (usage): Add stream argument. Don't exit.
6866 * src/devices/grops/ps.cc (main): Accept --help and --version.
6867 (usage): Add stream argument. Don't exit.
6868 * src/devices/grotty/tty.cc (main): Accept --help and --version.
6869 (usage): Add stream argument. Don't exit.
6870 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6871 (main): Accept --help and --version.
6872 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6873 (main): Accept --help and --version.
6874 * src/preproc/html/pre-html.cc (usage): Add stream argument.
6875 (scanArguments): Accept --help and --version.
6876 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6877 (main): Accept --help and --version.
6878 * src/preproc/refer/refer.cc (main): Accept --help and --version.
6879 (usage): Add stream argument. Don't exit.
6880 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6882 (main): Accept --help and --version.
6883 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6884 (main): Accept --help and --version.
6885 * src/roff/groff/groff.cc (main): Accept --help and --version.
6886 (synopsis): Add stream argument.
6887 (help): Write --help output to stdout, not stderr.
6888 (usage): Add stream argument. Don't exit.
6889 * src/roff/grog/grog.pl: Accept --help and --version.
6891 * src/roff/grog/grog.sh: Accept --help and --version.
6892 * src/roff/nroff/nroff.sh: Accept --help and --version.
6893 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6894 (usage): Add stream argument. Don't exit.
6895 (main): Accept --help and --version.
6896 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6897 (usage): New function with stream argument, doesn't exit.
6898 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6899 (usage): New function with stream argument, doesn't exit.
6900 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6901 (usage): Add stream argument. Don't exit.
6902 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6903 (main): Accept --help and --version.
6904 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6906 (main): Accept --help and --version.
6907 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6908 (main): Accept --help and --version.
6909 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6910 (usage): Add stream argument. Don't exit.
6912 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
6914 Fix indentation in SYNOPSIS.
6916 Updated to include changes of latest BSD mdoc version (basically,
6917 the only change is that `.Fn' and `.Fc' put a final semicolon after
6918 a function declaration in the SYNOPSIS section).
6920 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6921 (doc-in-synopsis-section): New variable. Updated all related
6923 (doc-indent-synopsis-active): New register.
6924 (Nd, Fn, Fo): Use it.
6925 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6926 `.Cd' with long argument line produces indented wrapped lines.
6927 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6928 undesirable line break to be output.
6929 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6931 (Fn, Fc): Add final `;' to output.
6932 (doc-save-global-vars, doc-restore-global-vars): Updated.
6933 * tmac/doc-common: Remove `Ex' register.
6935 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6938 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
6940 * tmac/doc.tmac (Cd): Simplify code.
6941 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6943 2001-04-06 Werner LEMBERG <wl@gnu.org>
6945 Implement continuous underlining for nroff mode. To do that, a new
6946 request in the ditroff language has been added: `x u N' (N is 0
6949 \X and \Y are now transparent to end-of-sentence recognition.
6951 * src/include/printer.h (printer): Add `type' parameter to `special'
6953 * src/libs/libdriver/printer.cc (printer::special): Updated.
6954 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6956 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6957 specials of type `p'.
6958 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6959 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6960 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6961 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6962 (glyph::order): New method.
6963 (tty_printer::add_char): Use it.
6964 (tty_printer::special): New method.
6965 (tty_printer::end_page): Implement it.
6967 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
6968 * src/roff/troff/node.cc (special_node::special_node): Add parameter
6969 to set `no_init_string'.
6970 (special_node::tprint_start): Use it.
6971 (special_node::same, special_node::copy): Updated.
6972 (special_node::ends_sentence): New method.
6973 (troff_output_file::start_special): Add parameter to include
6974 inititialization of special conditionally.
6976 * src/roff/troff/env.h (environment): New member `underline_spaces'.
6977 * src/roff/troff/env.cc (do_underline_special): New function.
6978 (environment::set_font): Use it.
6979 (do_underline): Use it. This was `underline()'.
6980 (underline): Call `do_underline()'.
6981 (continuous_underline): New function which calls `do_underline()'.
6982 (environment::newline): Use `do_underline_special()'.
6983 (init_env_requests): Updated.
6985 * NEWS, man/troff_out.man: Updated.
6987 2001-04-06 Bruno Haible <haible@clisp.cons.org>
6989 * font/devutf8/R.proto: Fix code of 'shc'.
6991 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
6993 Many fixes. Diag lists can now be nested also; additionally,
6994 `-compact' and `-offset' are supported.
6996 * tmac/doc.tmac (doc-have-indent): Replaced with ...
6997 (doc-list-have-indent-stackXXX): A new register stack.
6998 (doc-have-diag-list): Removed.
6999 (Bl): Use `doc-list-have-indent-stackXXX'.
7001 (doc-diag-list): Use `doc-compact-list-stackXXX'.
7002 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
7003 (doc-set-vertical-and-indent): Ditto.
7004 (doc-next-list-depth): Removed.
7005 (doc-increment-list-stack): Updated.
7006 (doc-decrement-list-stack): Use `doc-list-depth' instead of
7007 `doc-next-list-depth'.
7008 (doc-end-list, doc-end-column-list): Don't use
7009 `doc-increment-list-stack'.
7010 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
7011 (doc-save-global-vars, doc-restore-global-vars): Updated.
7012 * tmac/doc-common: Updated.
7013 * tmac/groff_mdoc.man: Updated.
7016 2001-04-02 Werner LEMBERG <wl@gnu.org>
7018 * src/devices/grotty/grotty.man: Fix grammatical error.
7020 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
7022 Remove .Ld from mdoc package; replace it with special handling of
7025 * tmac/doc-common: Remove `Ld' register.
7026 Uncomment `doc-volume-ds-*' strings.
7027 Remove `doc-operating-system-default'.
7029 * tmac/doc-syms (Ld): Removed.
7030 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
7034 * tmac/groff_mdoc.man: Many fixes and updates.
7036 2001-03-29 Werner LEMBERG <wl@gnu.org>
7038 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
7039 Bond <tkb@tkb.mpl.com>.
7040 * tmac/www.tmac: Save compatibility mode.
7042 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
7044 * tmac/groff_mdoc.man: Many fixes.
7046 2001-03-28 Werner LEMBERG <wl@gnu.org>
7048 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
7051 2001-03-27 Werner LEMBERG <wl@gnu.org>
7053 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
7054 diversion. This fixes overlong tags.
7056 2001-03-26 Werner LEMBERG <wl@gnu.org>
7058 * doc/groff.texinfo: Fixed and improved documentation of fonts.
7059 * tmac/doc-syms: Fix error messages.
7060 * tmac/an-old.tmac: Remove incorrect double backslashes.
7062 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
7064 * tmac/Makefile.sub: Strip mdoc.local also
7065 * tmac/strip.sed: Fixed.
7067 2001-03-24 Werner LEMBERG <wl@gnu.org>
7069 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
7070 selecting the font size.
7071 * tmac/groff_mdoc.man, NEWS: Document it.
7073 2001-03-23 Werner LEMBERG <wl@gnu.org>
7075 * src/roff/troff/div.cc (save_vertical_space): Add default argument
7077 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
7078 argument to restore previous font family.
7079 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
7081 * doc/groff.texinfo: More fixes and additions (mainly for font
7082 manipulating commands).
7084 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
7085 * tmac/groff_mdoc.man: This. The quick reference has been removed.
7086 * tmac/Makefile.sub, NEWS: Updated.
7088 2001-03-23 Werner LEMBERG <wl@gnu.org>
7090 Replaced mdoc implementation. The new version is `state of the
7091 art', using almost all new features of groff 1.17 -- it won't run
7092 with older versions.
7094 * tmac/doc.tmac: Completely rewritten.
7095 * tmac/doc-common: Ditto.
7096 * tmac/doc-nroff: Ditto.
7097 * tmac/doc-ditroff: Ditto.
7098 * tmac/doc-syms: Ditto.
7099 * tmac/mdoc.local: New file.
7100 * tmac/groff_mdoc.samples.man: Replaced with ...
7101 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
7102 * tmac/strip.sed: Updated.
7103 * tmac/Makefile.sub: Updated.
7106 * tmac/groff_man.man: Add `man.local' to the FILES section.
7108 2001-03-22 Werner LEMBERG <wl@gnu.org>
7110 * doc/groff.texinfo: Added many @noindent.
7111 Replaced @end_Example -> @endExample.
7112 Added info whether registers are r/o.
7113 Many other additions and fixes.
7115 2001-03-21 Werner LEMBERG <wl@gnu.org>
7117 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
7118 in makeinfo of texinfo 4.0) to be used in @Def* macros.
7119 Improved @Def* macros: Now the exact syntax of request, register,
7120 and escapes is shown.
7121 Added macros for parentheses and brackets to be used in @Def*.
7122 Many fixes and improvements of the documentation.
7124 2001-03-20 Werner LEMBERG <wl@gnu.org>
7126 * doc/groff.texinfo: Added new index: `st' (for strings).
7127 Added macros @Defstr(x).
7128 Added macro @Example (adding @group).
7129 Other minor improvements.
7131 2001-03-19 Werner LEMBERG <wl@gnu.org>
7133 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
7134 `rq' for requests. `fn' is no longer used.
7135 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
7138 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
7139 number with name of man page.
7141 2001-03-19 Larry Kollar <kollar@alltel.net>
7143 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
7146 2001-03-19 Werner LEMBERG <wl@gnu.org>
7148 * man/groff_font.man: Document `prepro', `postpro', and `print'.
7149 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
7150 * src/devices/grohtml/grohtml.man: Fixing typos.
7152 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
7154 * tmac/s.tmac (@IP): Pass `.ip' html tag.
7155 * tmac/groff_mwww.man: Remove .LINE macro
7156 * tmac/www.tmac (LINE): Add `.ti'.
7158 * src/devices/grohtml/post-html.cc (html_printer): New member
7160 (html_printer::emit_raw): Use it.
7161 (html_printer::do_linelength): Ditto.
7162 (html_printer::do_pageoffset): Ditto.
7163 (html_printer::do_indentation): Ditto.
7164 (html_printer::do_tempindent): Ditto.
7165 (html_printer::do_break): Ditto.
7166 (html_printer::begin_page): Ditto.
7167 (html_printer::do_indentedparagraph): New function.
7168 (html_printer::troff_tag): Handle `.ip'.
7169 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
7170 Add `<td width=...>' handling.
7171 (html_text::do_table): Add parameter.
7172 (html_text::do_indent): Updated.
7173 * src/devices/groohtml/html-text.h: Updated.
7175 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
7177 Introduced simple html tables to implement indentation.
7179 * src/devices/grohtml/html.h (word, word_list): New structures.
7180 (simple_output): Use it.
7181 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
7182 (html_printer): Improve indentation handling.
7183 (html_printer::emit_raw): Set `in_table' element. Handle
7185 (html_printer::write_header): Move conditional downwards.
7186 Don't allow whitespace in tags.
7187 (html_printer::do_linelength): Handle line length and indentation
7189 (html_printer::do_pageoffset): Handle indentation conditionally.
7190 (html_printer::do_indentation): Ditto.
7191 (html_printer::do_tempindent): New function member.
7192 (html_printer::do_fill): Take care of indentation.
7193 (html_printer::do_flush): Finish table.
7194 (html_printer::do_links): Ditto.
7195 (html_printer::do_break): New function for handling `.br' and `.ti'.
7196 (html_printer::troff_tag): Use it.
7198 (html_printer::flush_globs): Fix.
7199 (html_printer::flush_page): Finish table.
7200 (html_printer::html_printer): Fix error message. Set up
7202 (html_printer::add_to_sbuf): Remove special handling of character
7204 (to_unicode): Remove `stop()'.
7205 (html_printer::write_title): Cleanup.
7206 (html_printer::begin_page): Use `put_string()'. Handle indentation.
7207 (html_printer::~html_printer): Flush text and end the line.
7209 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
7210 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
7212 (html_text::start_tag): Disable newlines.
7213 (html_text::table_is_void): New function.
7214 (html_text::issue_table_begin): Ditto.
7215 (html_text::issue_table_end): Ditto.
7216 (html_text::push_para): Better table handling.
7217 (html_text::do_indent): New function.
7218 (html_text::do_table): Ditto.
7219 (html_text::done_table): Ditto.
7220 (html_text::do_tt): Handle PRE_TAG.
7221 (html_text::is_in_table): New function.
7222 (html_text::check_emit_text): Handle tables.
7223 (html_text::do_emittext): Use `nl()'.
7224 (html_text::do_para): Handle table.
7225 (html_text::remove_def): New function.
7226 * src/devices/grohtml/output.cc (word, word_list): Implement
7228 (simple_output::end_line): Flush last word.
7229 (simple_output::simple_comment): Ditto.
7230 (simple_output::begin_comment): Recoded.
7231 (simple_output::end_comment): Ditto.
7232 (simple_output::comment_arg): Removed.
7233 (simple_output::check_newline): Improve test and flush last word.
7234 (simple_output::space_or_newline): Improved.
7235 (simple_output::write_newline): Replaced with...
7236 (simple_output::nl): This.
7237 (simple_output::put_raw_char): Flush last word.
7238 (simple_output::check_space): Removed.
7239 (simple_output::put_translated_string): Ditto.
7240 (simple_output::put_string): Simplified.
7241 (simple_output::put_number): Updated.
7242 (simple_output::put_float): Ditto.
7243 (simple_output::put_symbol): Removed.
7244 (simple_output::enable_newlines): Add `check_newline()'.
7245 (simple_output::flush_last_word): New function.
7247 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
7248 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
7250 * tmac/s.tmac (@PP, @IP): Add html conditional code.
7251 * tmac/an-old.tmac (TP): Ditto.
7253 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
7255 * mdate.sh: Make it POSIX compliant.
7257 2001-03-09 Werner LEMBERG <wl@gnu.org>
7259 Added the `return' request to end a macro immediately. It simply
7260 pops iterators from the input stack until a macro iterator is found.
7262 * src/roff/troff/input.cc (input_iterator::is_macro,
7263 macro_iterator::is_macro): New member.
7264 (input_return_boundary): New class to signal an immediate return
7266 (input_stack::add_return_boundary, input_stack::is_return_boundary):
7268 (input_stack::clear): Use it.
7269 (input_stack::pop_macro): New function.
7270 (while_request): Use `is_return_boundary()'.
7271 (return_macro_request): New function.
7272 (init_input_requests): Use it.
7274 * src/roff/troff/TODO: Updated.
7275 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7277 2001-03-08 Werner LEMBERG <wl@gnu.org>
7279 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7282 2001-03-07 Werner LEMBERG <wl@gnu.org>
7284 Make `\B' more rigid.
7286 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7288 (get_number_rigidly): New function.
7289 * src/roff/troff/input.cc (do_expr_test): Use it.
7290 * src/roff/troff/token.h: Updated.
7292 * src/roff/troff/request.h: Fix typo (init_html_request ->
7293 init_markup_request).
7295 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
7297 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
7298 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
7299 are now `.begin', `.end', `.image'.
7301 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
7302 (html_printer::add_to_sbuf): Changing type of `code' parameter.
7303 Use add_char_to_sbuf().
7304 (to_unicode): New function.
7305 (char_translate_to_html): Changing type of `ch' parameter.
7307 (html_printer::~html_printer): Comment out doctype string.
7308 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7309 instead of `.html-end'.
7310 (write_start_image): Use `.begin' and `.image' instead of
7311 `.html-begin' and `.html-image'.
7312 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7313 (html_begin): Renamed to ...
7315 (html_end): Renamed to ...
7317 (html_image): Renamed to ...
7319 (init_html_requests): Renamed to ...
7320 (init_markup_requests): This.
7321 * tmac/www.tmac: Updated.
7323 2001-02-28 Bram <bram@avontuur.org>
7325 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7328 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
7330 * doc/meref.me: Fixing some typos.
7332 2001-02-16 Werner LEMBERG <wl@gnu.org>
7334 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7335 method. Return `HYPHEN_MIDDLE' if it was `\:'.
7336 * src/roff/troff/node.h: Updated.
7338 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
7340 * tmac/groff_tmac.man: Fix typo.
7342 2001-02-16 Werner LEMBERG <wl@gnu.org>
7344 Fixing a bug which prevented proper end-of-sentence recognition
7345 between an `unformatted' box and the following text. As a
7346 consequence, vertical line distances are no longer preserved in
7347 boxes after a call to `.unformat' -- because boxes aren't
7348 line-oriented (contrary to diversions), this doesn't make sense
7351 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7353 (vertical_size_node::set_unformat_flag): New method.
7354 * src/roff/troff/node.hh: Updated.
7355 * src/roff/troff/input.cc (word_space_node::reread,
7356 hmotion_node::reread): Reset `unformat' flag after usage.
7357 (unformat_macro): Append only if `set_unformat_flag()' returns
7359 * src/roff/troff/troff.man: Updated.
7361 2001-02-15 Werner LEMBERG <wl@gnu.org>
7363 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7364 documentation of `asciify' and `unformat' requests.
7366 2001-02-13 Werner LEMBERG <wl@gnu.org>
7368 Redesigned the `unformat' request. It is no longer connected with
7369 `asciify' but rather uses new `reread()' methods if the `unformat'
7370 flag is set. Additionally, the handling of space characters after
7371 unformatting has been fixed so that they retain their width.
7373 * src/roff/troff/node.h (width_list): New structure to store
7374 original widths of spaces.
7375 (node): Added `unformat' member.
7376 Replaced `num_spaces' variable with `orig_width' list.
7377 * src/roff/troff/node.cc (*node::asciify,
7378 asciify_reverse_node_list): Removed `unformat_only' flag and related
7380 (word_space_node::asciify, word_space_node::word_space_node): Use
7382 (word_space_node::~word_space_node): New destructor.
7383 (word_space_node::copy): Updated to handle `orig_width'.
7384 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7385 (*node::merge_space): Update `orig_width' list if necessary.
7386 (*node::set_unformat_flag): New methods to set the `unformat' flag.
7387 * src/roff/troff/enc.cc (environment::space_newline): Use
7389 (environment::space): Added method to handle space width and
7390 sentence space width as parameters. Use `width_list'.
7391 (environment::make_tab_node): Updated.
7392 * src/roff/troff/env.h: Updated.
7393 * src/roff/troff/input.cc (word_space_node::reread,
7394 unbreakable_space_node::reread, hmotion_node::reread): New methods
7395 to handle nodes specially if `unformat' flag is set.
7396 (do_asciify_macro): Renamed back to ...
7397 (asciify_macro): This.
7398 (unformat_macro): New implementation to simply set the `unformat'
7401 * MORE.STUFF: Added more info about deroff.
7403 2001-02-08 Werner LEMBERG <wl@gnu.org>
7405 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7406 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7407 and `add_self()' methods to avoid hyphenation. For example, the
7408 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7409 soft hyphen after `foo'. Now the hyphen list is correctly
7410 `foo<ignore><ignore>bar'.
7412 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
7414 * tmac/groff_tmac.man: Fix `BIR' macro.
7416 2001-02-04 Werner LEMBERG <wl@gnu.org>
7418 A new escape sequence `\:', inserting a zero-width break point.
7420 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7421 * src/roff/troff/input.cc (get_copy, token::next, asciify):
7423 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7425 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
7426 and `asciify()' methods.
7427 * src/roff/troff/node.cc (space_node::space_node): Updated.
7428 (space_node::asciify): Handle `was_escape_colon'.
7429 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7431 Handle `\~' similar to other comparable requests.
7433 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7435 (token::next): Move creation of an unbreakable_space_node to...
7436 (token::add_to_node_list): Here.
7438 Fix a bug which sometimes prevented hyphenation of words connected
7439 with `\~' or `\ ' (and other escape sequences handled as
7440 TOKEN_NODE). This also fixes a hyphenation problem with boxes
7441 (after a call to the `unformat' request).
7443 * src/roff/troff/env.h (environment::possibly_break_line,
7444 environment::hyphenate_line): Introducing `start_here' parameter.
7445 * src/roff/troff/env.cc (environment::space_newline,
7446 environment::space): Use it.
7447 (environment::possibly_break_line, environment::hyphenate_line):
7449 * src/roff/troff/input.cc (process_input_stack): Use it.
7450 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7451 space_char_hmotion_node, overstrike_node): Add
7452 `get_hyphenation_type()' method.
7453 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7454 if `unformat_only' is active.
7456 2001-01-30 Werner LEMBERG <wl@gnu.org>
7458 Implemented new read-only number register `.linetabs' which
7459 returns 1 if in line-tabs mode, 0 otherwise.
7461 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7462 * src/roff/troff/env.cc (get_line_tabs): New function.
7463 (init_env_requests): Use it.
7464 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7466 * VERSION, REVISION: Changing to 1.17.0.
7468 2001-01-28 Werner LEMBERG <wl@gnu.org>
7470 Fixed a bug which prevented hyphenation of words which are finished
7473 * src/roff/troff/token.h (token): Add enum type
7474 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7475 * src/roff/troff/input.cc (token::next, token::description,
7476 get_line_arg, token::add_to_node_list, token::process): Use it.
7478 2001-01-27 Werner LEMBERG <wl@gnu.org>
7480 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7481 * src/roff/troff/div.cc (do_divert): Use it.
7483 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7485 2001-01-25 Werner LEMBERG <wl@gnu.org>
7487 Adding the `linetabs' request. If set, tab distances are not
7488 computed relative to the input line but relative to the output line.
7490 * src/roff/troff/env.h (environment): New member `line_tabs'.
7491 * src/roff/troff/env.cc (line_tabs_request): Implement request.
7492 (environment::environment, environment::copy): Updated.
7493 (environment::distance_to_next_tab): Use `line_tabs'.
7494 (init_env_requests): Register request.
7495 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
7498 2001-01-24 Werner LEMBERG <wl@gnu.org>
7500 Introducing a new read-only register `.int' which is set to a
7501 positive value if the last output line is interrupted (i.e., if it
7504 * src/roff/troff/env.cc (init_env_requests): Add it.
7505 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7507 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
7509 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7510 * src/preproc/html/pre-html.cc (findPrefix): New function which
7511 generates the troff executable name via the system prefix.
7512 * src/preproc/eqn/main.cc: Modified warning message.
7514 2001-01-23 Werner LEMBERG <wl@gnu.org>
7516 troff's `box' and `boxa' requests didn't preserve temporary
7519 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7520 `saved_target_text_length' members.
7521 * src/roff/troff/div.cc (do_divert): Use them.
7523 Tabs (but not yet leaders and fields) are now handled correctly by
7526 * node.h (hmotion_node): Add field `was_tab'.
7527 * env.cc (environment::make_tab_node): Set it.
7528 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7530 Added new request `unformat' which will, contrary to `asciify',
7531 preserve font information after unformatting (i.e., only nodes
7532 dealing with horizontal space are converted back to input
7535 * input.cc (asciify_macro): Renamed to ...
7536 (do_asciify_macro): this, having a new parameter `unformat_only'.
7537 (asciify_macro, unformat_macro): New; using do_asciify_macro.
7538 (init_input_requests): Added `unformat'.
7539 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7540 parameter to control asciification process.
7541 * node.h (*_node::asciify): Ditto.
7542 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7544 2001-01-20 Werner LEMBERG <wl@gnu.org>
7546 * doc/groff.texinfo: Minor improvement of `.in' documentation.
7548 2001-01-18 Werner LEMBERG <wl@gnu.org>
7550 * tmac/ps.tmac: Remove call of psold.tmac.
7551 * tmac/psold.tmac: Comment updated.
7552 * tmac/psnew.tmac: Removed since no longer needed.
7553 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7555 * font/devutf8/R.proto: Adding `shc' glyph.
7556 * font/devutf8/NOTES: Updated.
7558 * test-groff: Updated.
7560 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
7562 First cut of the new html device driver. Changes to pre-html and
7563 the new grohtml are too numerous to be documented here.
7565 Stuff related to `html' has been renamed to `html-old' and `html2'
7566 stuff has been renamed to `html' (including directories). The new
7567 html device driver is therefore invoked as `-Thtml'.
7569 Added new `\O' escape to suppress output (needed by html driver).
7571 Added functions and code to pass info about input-level commands
7572 (`.in', `.fl', etc.) to html driver.
7574 Three new functions (.html-begin, .html-end, and .html-image) for
7575 better html handling: `html-begin' will execute the remaining line
7576 if at the outermost nesting level, increasing an internal counter.
7577 `html-end' does the same but decreases the internal counter.
7578 `html_image' puts its arguments into a special node (suppress_node)
7579 to define an image region.
7581 The `output' request has been removed.
7583 * tmac/html-tags.tmac: Removed.
7584 * tmac/arkup.tmac: Updated and renamed to ...
7585 * tmac/www.tmac: New file.
7586 * tmac/markup.tmac Updated and renamed to ...
7587 * tmac/mwww.tmac: New file.
7588 * tmac/Makefile.sub: Updated.
7589 * tmac/an-old.tmac: Updated.
7590 * tmac/eqnrc: Updated.
7591 * tmac/groff_man.man
7592 * tmac/groff_markup.man: Updated and renamed to ...
7593 * tmac/groff_mwww.man: New file.
7594 * tmac/groff_tmac.man: Updated.
7595 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7596 * tmac/html.tmac: Updated and renamed from html2.tmac.
7597 * tmac/pspic.tmac: Updated html support.
7598 * tmac/s.tmac: Added html output support.
7599 * tmac/troffrc, tmac/troffrc-end: Updated.
7601 * Makefile.in, doc/Makefile: Updated.
7602 * doc/groff.texinfo: Added info about new `\O' escape.
7603 * doc/homepage.ms: Use `MAILTO' macro.
7605 * font/devhtml/DESC.proto: Add `C' font.
7606 * font/devhtml/Makefile.sub: Updated.
7607 * font/devhtml/R.proto: Minor fixes.
7608 * font/devhtml-old/Makefile.sub: Updated.
7610 * src/devices/grohtml-old/Makefile.sub: Updated.
7612 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7614 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7615 graphic_start): Add `inline' parameter. Update.
7616 (html_end_suppress, graphic_end): Update.
7618 * src/include/html-strings.h: New file.
7619 * src/include/htmlindicate.h: Comments updated.
7620 * src/include/printer.h: Updated.
7622 * src/preproc/eqn/main.cc (do_file, main): Updated.
7623 * src/preproc/pic/troff.cc (troff_output::start_picture,
7624 troff_output::finish_picture): Updated.
7625 * src/preproc/tbl/main.cc (process_input_file): Updated.
7627 * src/roff/groff/groff.cc (main): Updated.
7628 Pass device arguments to predrivers also.
7629 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7630 * src/roff/troff/env.h (environment): Updated.
7631 New elements `need_eol' and `ignore_next_eol' (for html output).
7632 * src/roff/troff/env.cc (environment::environment): Add initializers
7633 for `need_eol' and `ignore_next_eol'.
7634 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7636 (point_size, fill, no_fill, center, right_justify, line_length,
7637 indent, temporary_indent, break_request, handle_tab): Use
7639 (set_tabs): Use `add_html_tag_tabs()'.
7640 (environment::add_html_tag): Updated.
7641 (environment::do_break): Updated.
7642 * src/roff/troff/div.cc (space_request, flush_output): Use
7643 `environment::add_html_tag()'.
7644 * src/roff/troff/input.cc: Updated.
7645 New variable `html_level' to indicate nested `html-begin' requests.
7646 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7647 (non_interpreted_char_node, token_node, non_interpreted_node): Add
7648 `force_tprint()' method.
7649 (token::next): Handle `\O'.
7650 (do_suppress): Implement it.
7651 (html_begin, html_end, html_image): New functions.
7652 (init_output_requests): Renamed to ...
7653 (init_html_requests): this.
7655 (macro::append_str, macro::append_unsigned, macro::append_int): New
7657 New variable `output_low_mark_miny' to limit minimal value of y.
7658 (reset_output_registers): Use it.
7659 (output_request): Removed.
7660 (get_output_registers): New function.
7661 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7662 (*_node): Added `force_tprint()' if necessary.
7663 (special_node): New elements `tf' and `get_tfont()'.
7664 (suppress_node): New class.
7665 * src/roff/troff/node.cc:
7666 New global variables `image_no' and `suppress_start_page'.
7667 (real_output_file): New method `is_on()'.
7668 (troff_output_file): New method `start_special(tfont)'.
7669 (troff_output_file::really_print_line): Use `tprint' conditionally.
7670 (real_output_file::print_line): Updated.
7671 (real_output_file::on): Updated.
7672 (*_node): Added `force_tprint()'.
7673 (special_node::special_node): Initializer updated.
7674 (special_node::same, special_node::copy, special_node::tprint_start):
7676 (get_reg_int, get_reg_str): New functions.
7677 (suppress_node::*): New methods.
7678 New global variables last_position, last_image_filename;
7679 (min): New inline function.
7680 * src/roff/troff/reg.h, src/roff/troff/request.h,
7681 src/roff/troff/troff.h: Updated.
7683 2001-01-13 Werner LEMBERG <wl@gnu.org>
7685 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7686 documentation of `asciify' request.
7688 2001-01-12 Werner LEMBERG <wl@gnu.org>
7690 * src/roff/troff/input.cc: Move definition of special characters
7691 like `ESCAPE_TILDE' to ...
7692 * src/roff/troff/input.h: New file.
7693 * src/roff/troff/Makefile.sub (HDRS): Add it.
7695 Extending the .asciify request to `unformat' space characters also.
7697 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7698 to count input space characters.
7699 Update constructors to take care of it.
7700 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7701 `ESCAPE_SPACE' instead of normal space.
7702 (word_space_node::asciify): New method.
7703 (unbreakable_space_node::asciify): New method.
7704 (word_space_node::merge_space): New method.
7705 * src/roff/troff/env.cc (environment::space_newline,
7706 environment::space): Add code to initialize `num_spaces' (using the
7707 constructor of `word_space_node').
7708 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7711 2001-01-09 Werner LEMBERG <wl@gnu.org>
7713 * man/groff_char.man: Use table header traps only conditionally.
7715 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
7717 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7719 2001-01-08 Werner LEMBERG <wl@gnu.org>
7721 Introducing the `box' and `boxa' requests which are similar to
7722 `di' resp. `da' but omitting a partially filled line (which is
7723 restored after ending the diversion).
7725 * src/roff/troff/div.h (diversion): Add elements to save partially
7727 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7728 partially filled line.
7729 (divert, divert_append): Updated.
7730 (box, box_append): New functions.
7731 (init_div_requests): Use them.
7732 * src/roff/troff/env.h (environment): do_divert() is now a friend.
7733 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7735 * doc/groff.texinfo: Fix documentation of `lf' request.
7737 2000-12-25 Werner LEMBERG <wl@gnu.org>
7739 * src/roff/troff/troff.man, NEWS: Document `writem' request.
7741 2000-12-21 Werner LEMBERG <wl@gnu.org>
7743 Ignore `ss' request if in compatibility mode.
7745 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7746 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7747 * src/roff/troff/env.cc (space_size): Use it.
7749 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7750 `ss' request in nroff mode.
7752 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7755 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
7757 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7759 2000-12-13 Werner LEMBERG <wl@gnu.org>
7761 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7762 * src/preproc/eqn/neqn.man: Small fixes and additions.
7764 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
7766 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7769 * src/preproc/eqn/neqn.man: New file.
7771 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7774 * tmac/e.tmac: Add `T&' macro.
7775 Fix `indent cannot be negative' warning.
7776 * tmac/s.tmac: Fix `indent cannot be negative' warning.
7778 2000-12-07 Werner LEMBERG <wl@gnu.org>
7780 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7782 2000-12-06 Werner LEMBERG <wl@gnu.org>
7784 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7787 * MORE.STUFF: Added info about deroff for djgpp.
7789 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7790 documentation of -rcR switch.
7792 2000-12-03 Werner LEMBERG <wl@gnu.org>
7794 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7795 if -rcR=1 (which is now the default in nroff mode), a single, very
7796 long page is created instead of multiple pages: All `ne' and `wh'
7797 requests are put into conditionals; a new macro `an-end' is added to
7798 be called with `em'.
7800 Some other minor cleanups.
7802 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7804 2000-12-02 Werner LEMBERG <wl@gnu.org>
7806 Fixing a bug which prevented hyphenation in words followed
7807 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7809 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7810 Adding possibly_break_line().
7811 * src/roff/troff/env.h (environment): Make possibly_break_line()
7814 Make `\~' usable in .tr request.
7816 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7817 (token): Add stretchable_space().
7818 * src/roff/troff/input.cc (token::next, token::delimiter,
7819 token::description, process_input_stack, do_translate,
7820 add_to_node_list, token::process): Use it.
7821 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7822 for adjusting the space.
7823 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
7824 for stretchable space.
7825 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7826 (make_node): Add code for stretchable space.
7827 * src/roff/troff/env.cc (environment::add_char): Use it.
7828 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7829 (get_copy, token::next, transparent_translate, asciify): Use it.
7831 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7832 doc/groff.texinfo: Updated.
7833 * man/groff.man: Small reorderings.
7835 2000-11-23 Werner LEMBERG <wl@gnu.org>
7838 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7840 * src/roff/troff/input.cc (main): Add `config_macro_path' and
7841 `safer_macro_path' to -M option.
7842 * src/roff/troff/troff.man: Fixes.
7844 2000-11-22 Werner LEMBERG <wl@gnu.org>
7846 Use safer path (except for config files) if -U isn't specified. Add
7847 a special macro path (without home and current directory) for config
7848 files. Add home directory to unsafe path for consistency. Don't
7849 include the home directory in the font path.
7851 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7853 * src/include/macropath.h: Add `config_macrp_path'.
7854 * src/libs/libgroff/fontfile.cc: Fix font path.
7855 * src/roff/troff/input.cc (process_startup_file): Use
7856 `config_macro_path'.
7857 (main): Select unsafe path if -U is given.
7859 * src/preproc/eqn/main.cc (main): Fixing search path for
7861 * src/preproc/eqn/eqn.man: Updated.
7863 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7866 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7867 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7868 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7869 src/devices/grotty/grotty.man: Updated.
7871 * Makefile.in: Fix comments.
7873 2000-11-17 Werner LEMBERG <wl@gnu.org>
7875 * tmac/safer.tmac: Empty file added (again) for compatibility
7877 * tmac/Makefile.sub: Updated.
7879 2000-11-16 Werner LEMBERG <wl@gnu.org>
7881 * src/devices/grodvi/dvi.cc (main),
7882 src/devices/grohtml2/post-html.cc (main),
7883 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7884 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7885 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7886 (main), src/preproc/html2/pre-html.cc (main),
7887 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7888 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7889 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7890 (main), src/utils/hpftodit/hpftodit.cc (main),
7891 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7892 (main), src/utils/lookbib/lookbib.cc (main),
7893 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7894 (main): Use stdout for -v.
7895 * src/roff/groff/groff.cc (run_commands),
7896 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7897 to make direct printing to stdout possible.
7898 * src/roff/groff/pipeline.h: Updated.
7900 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7901 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7902 * src/utils/afmtodit/afmtodit.man: Updated.
7904 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7905 (version): New function.
7907 * src/utils/addftinfo/addftinfo.man: Updated.
7909 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7910 Fixing copyright dates.
7912 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7915 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7918 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7920 2000-11-15 Werner LEMBERG <wl@gnu.org>
7922 In all programs, make -v return immediately with exit status 0 to
7923 be compliant with the GNU standard.
7925 * src/devices/grodvi/dvi.cc (main),
7926 src/devices/grohtml2/post-html.cc (main),
7927 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7928 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7929 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7930 (main), src/preproc/html2/pre-html.cc (main),
7931 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7932 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7933 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7934 (main): Implement it.
7937 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
7938 and postprocessors to the -v option.
7940 * src/roff/grog/grog.pl: Implement -v.
7941 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7942 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7944 * src/roff/nroff/nroff.sh: Implement -v.
7945 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7946 * src/roff/nroff/nroff.man: Updated.
7948 * src/preproc/eqn/main.cc (main): Fix comment typo.
7950 * MORE.STUFF: Added info about djgpp port of grap.
7952 2000-11-14 Werner LEMBERG <wl@gnu.org>
7954 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7955 mode (or rather, implemented non-compatibility mode).
7956 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7958 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7959 replacing it -- we don't find gxditview otherwise.
7960 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7962 * src/preproc/pic/depend: Removed. Unnecessary.
7964 Implemented dummy keyword `solid' in pic for compatibility with
7967 * lex.cc (lookup_keyword): Added `solid'.
7968 * pic.y: Added SOLID with dummy rule.
7969 * pic.cc, pic_tab.h: Regenerated.
7970 * doc/pic.ms: Updated.
7972 2000-11-13 Werner LEMBERG <wl@gnu.org>
7974 For security reasons, don't use the current directory but the home
7975 directory while searching and scanning troffrc and troffrc-end.
7976 Similarly, replace the current directory with the home directory
7979 * Makefile.in (fontpath, tmacpath): Remove current directory.
7981 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
7982 two parameters `add_home' and `add_current'.
7983 (search_path::~search_path, search_path::command_line_dir,
7984 search_path::open_file): Remove tests for `dirs' being zero.
7985 * src/include/searchpath.h: Adjust.
7986 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
7988 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
7990 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
7991 * src/roff/troff/input.cc: Use `mac_path', initialized with
7993 (process_startup_file): Set `mac_path' to `safer_macro_path'.
7994 * src/roff/troff/env.cc: Use `mac_path'.
7996 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
7998 * NEWS, man/roff.man, src/roff/troff/troff.man,
7999 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
8002 2000-11-12 Werner LEMBERG <wl@gnu.org>
8004 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
8006 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
8007 * configure.in: Fix typo in comment.
8008 * configure: Regenerated.
8010 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
8013 2000-11-08 Werner LEMBERG <wl@gnu.org>
8015 Add system tmac directory (/usr/local/lib/groff/site-tmac).
8017 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
8018 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
8021 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
8022 * tmac/Makefile.sub (install_data): Create
8023 $(systemtmacdir) and $(localtmacdir).
8024 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
8025 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
8026 NEWS, doc/groff.texinfo: Updated and minor fixes.
8028 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
8029 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
8030 $(systemtmacdir) since the wrapper files are platform-dependent.
8032 2000-11-01 Werner LEMBERG <wl@gnu.org>
8034 * doc/groff.texinfo: Fix typo.
8036 2000-10-26 Werner LEMBERG <wl@gnu.org>
8038 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
8039 tmac.doc.old -> doc-old.tmac
8040 tmac.an.old -> an-old.tmac
8042 * tmac/tmac.*: Moved to ...
8043 * tmac/*.tmac: this.
8044 * tmac/man.local: Fix comment.
8045 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
8046 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
8047 Added some `FILES' sections. More use of @...@ directives. Other
8049 * arch/djgpp/README, font/devutf8/NOTES: Updated.
8050 * doc/homepage.ms, doc/groff.texinfo: Updated.
8051 * man/groff.man, man/roff.man: Updated.
8052 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
8053 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
8054 src/devices/grotty/grotty.man: Updated.
8055 * src/preproc/pic/pic.man: Updated.
8056 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
8057 instead of -mdoc.old.
8058 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
8059 * src/roff/nroff/nroff.man: Updated.
8062 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
8064 * tmac/mm.diff: Removed -- it has no use now since the mm package
8067 * tmac/*: Removed trailing spaces.
8069 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
8070 the tmac subdirectory also).
8072 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
8073 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
8074 stuff since it is no longer needed.
8076 * README, PROBLEMS: Updated.
8078 2000-10-25 Werner LEMBERG <wl@gnu.org>
8080 Invert current behaviour: Search first FOOBAR.tmac, then
8083 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
8084 (open_mac_file, macro_source): Implement it.
8085 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
8086 doc/groff.texinfo, NEWS: Document it.
8088 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
8089 Small documentation improvements.
8091 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
8094 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
8096 2000-10-24 Werner LEMBERG <wl@gnu.org>
8098 Add local tmac directory (groff/site-tmac).
8100 * Makefile.in: Add $(localtmacdir).
8101 (uninstall_dirs): Add $(localtmacdir).
8102 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
8103 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
8104 in $(localtmacdir). Create $(localtmacdir).
8105 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
8106 Updated and minor fixes.
8108 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
8110 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
8112 2000-10-23 Werner LEMBERG <wl@gnu.org>
8114 Move hyphen.us to tmac directory.
8116 * src/roff/troff/hyphen.us: Removed.
8117 * src/tmac/hyphen.us: Added.
8118 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
8120 Change installation structure for data files from .../groff/... to
8121 .../groff/<version><revision>/... to be conform with other GNU
8124 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
8125 doc/Makefile: Implement it.
8126 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
8127 * configure: Updated.
8128 * arch/djgpp/README, font/devutf8/NOTES: Use it.
8129 * NEWS: Document it.
8130 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
8131 @MACRODIR@ instead of hard-coded directories.
8133 2000-10-22 Werner LEMBERG <wl@gnu.org>
8135 Implement $GROFF_BIN_PATH environment variable (which defaults to
8136 $bindir) used for child programs of groff and similar wrappers.
8138 * gendefs.sh: Improve documentation.
8139 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
8140 src/preproc/eqn/Makefile.sub (neqn),
8141 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
8142 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
8144 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
8145 $GROFF_PATH__ (the latter for communication with troff).
8146 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
8148 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
8149 doc/groff.texinfo: Document it.
8151 * doc/groff.texinfo: Improve documentation of troff's -a option.
8153 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
8155 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
8156 non-intrusive eol marker.
8157 (troff_output_file::determine_line_limits): New function.
8158 (troff_output_file::draw): Use it.
8159 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
8160 output_pending_lines() instead of output_line().
8161 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
8162 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
8163 createImage): Small fixes.
8165 2000-10-14 Werner LEMBERG <wl@gnu.org>
8167 Replace tmac.safer with a real secure solution.
8169 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
8170 system_request, pipe_output): Disable requests if in safer mode.
8171 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
8172 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
8173 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
8174 doc/groff.texinfo, src/roff/groff/groff.man,
8175 src/roff/troff/troff.man, arch/djgpp/README: Updated.
8177 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
8178 (resource_manager::output_prolog): Replace setenv() with putenv().
8180 2000-10-09 Werner LEMBERG <wl@gnu.org>
8182 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
8183 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
8184 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
8185 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
8186 compilation errors with some compilers. It seems that this code
8187 is no longer necessary -- if yes, it is easy to add some #ifdef's
8188 for that particular old-fashioned compiler.
8190 * MORE.STUFF: Added info about Meta-tbl.
8192 * doc/groff.texinfo: Added more info about `.if "..."..."'.
8194 2000-10-07 Werner LEMBERG <wl@gnu.org>
8196 Adding a new escape sequence \B'...': If the string between
8197 the delimiters is a valid numeric expression, return the character
8198 `1', and `0' otherwise. This is an analogon to \A.
8200 * src/roff/troff/input.cc (do_expr_test): Implement it.
8201 (token::next): Use it.
8202 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
8204 * tmac/tmac.trace: Made independent from escape character.
8206 2000-10-06 Werner LEMBERG <wl@gnu.org>
8208 Adding a new request .dei: define indirect. The first and second
8209 parameter of .dei are taken from string registers instead directly;
8210 this very special request is needed to make tmac.trace independent
8211 from the escape character (which might even be disabled).
8213 * src/roff/troff/input.cc (do_define_macro): Implement it.
8214 (define_macro_indirect): New function.
8215 (init_input_requests): Use it.
8217 Adding two requests .ecs and .ecr: Save and restore the escape
8218 character. These two requests are needed to make tmac.trace
8219 independent from the escape character (which might even be
8222 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
8224 (init_input_requests): Use it.
8226 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8228 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
8230 Adding a new option -P and new environment variable GROPS_PROLOGUE
8231 to grops, selecting a different prologue file (minor modifications
8234 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
8235 src/devices/grops/ps.cc (main): Implement it.
8236 * src/devices/grops/grops.man, NEWS: Document it.
8238 2000-09-22 Werner LEMBERG <wl@gnu.org>
8240 * INSTALL: Add info about selecting paper format.
8242 2000-09-21 Werner LEMBERG <wl@gnu.org>
8244 * src/roff/troff/input.cc (main): Fixing compiler warning.
8245 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
8246 strings.h from the former to the latter.
8247 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
8248 stuff from the former to the latter.
8250 2000-09-11 Werner LEMBERG <wl@gnu.org>
8252 Implementing two new requests .tm1 and .tmc: The former is similar
8253 to .tm but can output leading spaces; its syntax is similar to
8254 defining a string, i.e., a `"' can be used to mark the beginning of
8255 the string to be written to stderr: `.tm1 " test'. The latter is
8256 similar to .tm1 but doesn't write out a final newline character.
8258 * src/roff/troff/input.cc (terminal1, terminal_continue,
8259 do_terminal): New functions.
8260 (init_input_requests): Use them.
8261 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8263 2000-09-09 Werner LEMBERG <wl@gnu.org>
8265 * tmac/groff_mdoc.samples.man: Small fixes.
8267 2000-09-08 Werner LEMBERG <wl@gnu.org>
8269 * tmac/groff_mdoc.man: Fixing typo.
8271 2000-09-02 Werner LEMBERG <wl@gnu.org>
8273 Implementing a .nop request which does nothing.
8275 * src/roff/troff/input.cc (nop_request): New function.
8276 (init_input_requests): Use it.
8277 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8279 2000-09-01 Werner LEMBERG <wl@gnu.org>
8281 * doc/groff.texinfo: Added some comments.
8283 2000-08-30 Werner LEMBERG <wl@gnu.org>
8285 * src/roff/troff/TODO: Updated.
8287 2000-08-25 Werner LEMBERG <wl@gnu.org>
8289 * doc/groff.texinfo: Fix comment how to compile the DVI file.
8291 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
8293 * font/devps/generate/Makefile (SHELL): Define explicitly to
8294 "/bin/sh", for non-Unix platforms.
8295 (extraclean): Use a more portable "" quoting instead of a
8296 backslash (which doesn't work on DOS/Windows).
8298 * font/devlj4/generate/Makefile (extraclean): Ditto.
8300 * font/devdvi/generate/Makefile (extraclean): Ditto.
8302 2000-08-25 Werner LEMBERG <wl@gnu.org>
8304 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
8305 src/roff/troff/troff.man: Document Eli's latest changes.
8307 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
8309 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8310 macro file names of the form NAME.tmac as well as tmac.NAME.
8312 2000-08-25 Werner LEMBERG <wl@gnu.org>
8314 * src/include/posix.h: Remove definition of FILENAME_MAX.
8316 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8317 `sys_fatal' and `stop' function().
8319 * test-groff: Updated.
8321 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
8323 Added the new troff command .output <arg> to suppress output (while
8324 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8325 registers (for passing the output dimensions to the output device).
8327 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8329 * src/roff/troff/node.h, src/roff/troff/node.cc
8330 (troff_output_file::really_print_line,
8331 ascii_output_file::really_print_line,
8332 supress_output_file::really_print_line): Use `width' parameter.
8333 (troff_output_file::really_on, troff_output_file::really_off,
8334 output_file::on, output_file::off, real_output_file::on,
8335 real_output_file::off, real_output_file::really_on,
8336 real_output_file::really_off): New functions.
8337 (real_output_file:public output_file): New variable `output_on'.
8338 (real_output_file::begin_page, real_output_file::copy_file,
8339 real_output_file::transparent_char, real_output_file::print_line):
8341 (real_output_file::print_line): Use check_output_limits.
8342 * src/roff/troff/reg.h, src/roff/troff/request.h,
8343 src/roff/troff/input.cc (assign_registers): New function to remove
8345 (do_ps_file): Use it.
8346 (check_output_limits, reset_output_registers, output_request,
8347 init_output_requests): New functions.
8348 (init_input_requests): Updated.
8350 Added new grohtml2 device and html2 preprocessor (coding
8351 not yet finished) which will eventually replace grohtml.
8353 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8355 * src/include/htmlindicate.h, src/include/htmlindicate
8356 (html_begin_suppress, html_end_suppress): New functions.
8357 * src/preproc/tbl/main.cc: Use it.
8358 * src/roff/groff/groff.cc: Add support for html2 device (which will
8359 automatically invoke the html2 preprocessor).
8360 * src/roff/troff/input.cc (is_html2): New variable.
8361 * src/roff/troff/troff.h, src/roff/troff/env.h,
8362 src/roff/troff/env.cc (environment::add_html_tag): New function
8364 (environment::do_break): Use it.
8365 * font/devhtml2/*: New files.
8366 * src/devices/grohtml2: New device.
8367 * src/preproc/html2: New preprocessor.
8368 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8370 2000-08-23 Werner LEMBERG <wl@gnu.org>
8372 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8374 2000-08-22 Werner LEMBERG <wl@gnu.org>
8376 * src/include/lib.h: Provide a fix for IRIX to not include
8379 2000-08-18 Werner LEMBERG <wl@gnu.org>
8381 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8382 since some non-GNU sed programs can't handle null regexps.
8383 * configure, src/preproc/eqn/Makefile.sub,
8384 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8386 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8387 bug (string.h and strings.h are both needed according to latest
8390 * MORE.STUFF: Added info about unroff and troffcvt.
8392 2000-08-08 Werner LEMBERG <wl@gnu.org>
8394 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8397 * tmac/tmac.man.old: Remove unused number register.
8399 * tmac.doc: Minor documentation fix.
8401 2000-08-07 Paul Eggert <eggert@twinsun.com>
8403 * src/roff/groff/pipeline.c (is_system_shell):
8404 Fix typo: "monocased_shell" no longer exists.
8406 2000-08-07 Paul Eggert <eggert@twinsun.com>
8408 Remove FILENAME_MAX limits.
8410 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8411 that the argument length is less than FILENAME_MAX.
8412 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8413 Use struct hack to allocate and free file name.
8414 (struct xtmpfile_list): fname is now part of the structure,
8415 not a pointer to another string.
8417 2000-08-07 Tom Schmidt <tschmidt@micron.com>
8419 * src/include/posix.h: Add a default value for FILENAME_MAX.
8421 2000-08-06 Paul Eggert <eggert@twinsun.com>
8423 Add support for new BSD-style man pages (with ".Dd" instead of
8424 ".TH"), so that "groff -man" understands both styles, even
8425 when running "groff -man" on a host whose system man page
8426 macros don't support ".Dd".
8428 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8429 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8430 in case the system man macros don't define Dd or TH.
8432 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8433 * tmac/tmac.an: New one-line file.
8434 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8436 2000-08-06 Werner LEMBERG <wl@gnu.org>
8438 * src/roff/troff/troff.man: Fixing typos.
8440 Version 1.16.1 released
8441 =======================
8443 2000-07-31 Werner LEMBERG <wl@gnu.org>
8445 Preparing release 1.16.1.
8447 * REVISION: Revision number set to 1.
8448 * MORE.STUFF: Added info about port to DOS.
8449 * NEWS, win32-diffs: Updated.
8451 * src/include/nonposix.h: Remove first line -- this file is used
8454 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8457 2000-07-30 Werner LEMBERG <wl@gnu.org>
8459 * doc/texinfo.tex: Update to latest version.
8461 2000-06-28 Paul Eggert <eggert@twinsun.com>
8463 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8464 commands that fail. Don't assume that "export a=b" is valid shell
8465 syntax. This is needed for Solaris 2.5.1.
8467 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8468 comment about missing Solaris headers.
8470 * PROBLEMS: Add section about problems with Sun Make and VPATH.
8472 2000-06-25 Werner LEMBERG <wl@gnu.org>
8474 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8477 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8479 * win32-diffs: Updated.
8480 * README.WIN32: Added CRs to make all Windows editors happy.
8482 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8483 src/roff/groff/pipeline.c).
8485 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8487 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8488 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8490 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
8492 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8493 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8495 (main): Support non-Posix systems with several different styles of
8496 slash characters in file names.
8498 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8499 (main) [SET_BINARY]: Switch stdin into binary mode.
8501 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8502 (main): Support file names with several possible slash-type
8503 characters, as given by DIR_SEPS[] in nonposix.h.
8504 (main) [__MSDOS__]: If renaming the temporary index file fails
8505 because it has more than one dot in its trunk, replace the dot
8506 with an underscore and try again.
8507 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
8509 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8511 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8512 (File::File): Open the input file in binary mode. Strip CR
8513 characters from each CR-LF pair.
8514 (xbasename): Support file names with several possible slash-type
8515 characters, as given by DIR_SEPS[] in nonposix.h.
8517 * src/include/Makefile.sub (HDRS): Add nonposix.h.
8519 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8520 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8521 [!_POSIX_VERSION]: Define for traditional Unix systems.
8522 (real_output_file::real_output_file): Remove the MSVC-specific
8523 call to popen, use instead POPEN_WT, appropriately defined on
8524 nonposix.h. #include nonposix.h.
8525 (real_output_file::~real_output_file): Remove the MSVC-specific
8526 call to pclose, a suitable macro is now defined on nonposix.h.
8527 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8528 and WEXITSTATUS instead of assuming traditional Unix
8529 interpretation of the status returned by pclose.
8531 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8532 call to popen, use POPEN_RT instead (appropriately defined on
8533 nonposix.h). #include nonposix.h.
8534 (ps_bbox_request): Open the PostScript file in binary mode.
8535 Close the file after processing it.
8536 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8539 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8540 A version of run_pipeline that doesn't use `fork'.
8541 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8542 (system_shell_name, system_shell_dash_c)
8543 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8544 the ugliness of testing DOS/Windows file names for equality, and
8545 support both stock shells and ports of Unix shells.
8547 * src/roff/groff/groff.cc: #include nonposix.h.
8548 (BSHELL): Definition moved to nonposix.h.
8549 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
8550 instead of a literal "-c".
8551 (xbasename): Support file names with several possible slash-type
8552 characters, as given by DIR_SEPS[] in nonposix.h.
8553 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8556 * src/preproc/soelim/soelim.cc: #include nonposix.h.
8557 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8559 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8562 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8564 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8567 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8569 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8570 P_tmpdir is defined, use it instead of the literal "/tmp".
8571 (remove_tmp_files, add_tmp_file): New functions.
8572 (xtmpfile): Record temporary files and register an atexit function
8573 to delete them explicitly, instead of relying on the OS to do
8574 that, which doesn't work on non-Unix systems.
8576 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8577 (search_path::search_path): Use PATH_SEP instead of a literal
8579 (search_path::command_line_dir): Ditto.
8580 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8581 to support non-Posix systems.
8583 * src/libs/libbib/search.cc: #include nonposix.h.
8584 (search_list::add_file): Open the file in binary mode.
8586 * src/libs/libbib/linear.cc: #include nonposix.h.
8587 (file_buffer::load): Remove \r characters preceding \n from the
8590 * src/libs/libbib/index.cc: #include nonposix.h.
8591 (make_index_search_item): Open index_filename in O_BINARY mode.
8592 (index_search_item_iterator::get_tag): Ditto. Remove \r
8593 characters before \n characters.
8594 (index_search_item::check_files): Open files in binary mode.
8595 (index_search_item::munge_filename): Support DOS-style file names
8596 with backslashes and drive letters, use IS_ABSOLUTE.
8598 * src/devices/grops/ps.cc: #include nonposix.h.
8599 (main) [SET_BINARY]: Switch stdout to binary mode.
8601 * src/devices/grolj4/lj4.cc: #include nonposix.h.
8602 (main) [SET_BINARY]: Switch stdout to binary mode.
8604 * src/devices/grolbp/lbp.cc: #include nonposix.h
8605 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8607 * src/devices/grodvi/dvi.cc: #include nonposix.h.
8608 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8610 (main) [SET_BINARY]: Switch stdout to binary mode.
8611 [_MSC_VER]: Remove an explicit call to _setmode.
8613 * src/include/nonposix.h: New file.
8615 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8616 operation when building with DJGPP.
8617 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8618 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8621 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8623 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8624 etc. can include a semi-colon on DOS/Windows.
8625 (depend.temp): Use depend1.temp instead of depend.temp1, to
8626 prevent files from overerwiting each other on 8+3 filesystems.
8628 * gendef.sh (t): Change definition to work with DOS/Windows.
8630 doc/groff.texinfo: Apart of some typo corrections, I also changed
8631 some index entris, to make them more non-ambiguous, and also put
8632 @ignore around some parts that are not yet written, to allow the
8633 Info output be readable.
8635 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
8637 Replaced specific checks for function declarations with a generic
8638 routine taken from GNU bfd.
8640 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8641 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8642 * configure.in: Use it.
8643 * src/devices/grolbp/lbp.cc, src/include/lib.h,
8644 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8645 src/roff/groff/groff.cc: Use it.
8646 * Makefile.in, configure: Updated.
8648 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
8650 * src/devides/grolbp/lbp.h: Removed unused variables.
8652 2000-05-31 Keith Thompson <kst@sdsc.edu>
8654 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8657 2000-05-31 Werner LEMBERG <wl@gnu.org>
8659 * aclocal.m4 (GROFF_SRAND): New function to test the return value
8660 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8661 * configure.in: Use it.
8662 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8663 * configure, Makefile.in: Updated.
8665 * configure.in: Add test for strncasecmp().
8666 * src/include/lib.h: Use it.
8668 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
8670 * src/preproc/grn/Makefile.sub: Add MLIB.
8672 2000-05-29 Nix <nix@esperi.demon.co.uk>
8674 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8676 2000-05-29 Werner LEMBERG <wl@gnu.org>
8678 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8680 * PROBLEMS: Small update.
8682 * src/devices/grolbp/lbp.cc: Various small fixes.
8684 2000-05-28 Keith Thompson <kst@sdsc.edu>
8686 * src/roff/nroff/nroff.sh: Fix main loop syntax.
8688 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8690 2000-05-25 Werner LEMBERG <wl@gnu.org>
8692 * man/roff.man: Removed unused macro.
8694 2000-05-24 Werner LEMBERG <wl@gnu.org>
8696 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
8697 This is needed e.g. if you do
8698 `make distclean; ./configure; make dist'.
8700 Version 1.16 released
8701 =====================
8703 2000-05-23 Werner LEMBERG <wl@gnu.org>
8705 Adding font CWI (constant width italic) to devdvi.
8707 * font/devdvi/CWI: New file.
8708 * font/devdvi/generate/Makefile: Add generating rule.
8709 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8710 tmac/tmac.dvi: Use it.
8711 * NEWS: Announce it.
8713 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8714 * font/devlj4/generate/Makefile: Cosmetic changes only.
8716 * man/groff.man: Removed most of the redundant description of
8717 special characters (which is in groff_char.man). Added font
8718 translation CB->CR for devdvi. Other minor fixes.
8720 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8721 (registered) symbols.
8723 2000-05-22 Werner LEMBERG <wl@gnu.org>
8725 * doc/Makefile: Added rule for creating info files.
8727 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
8729 * font/devdvi/generate/Makefile: Fixed dependencies.
8731 * font/devps/*: Regenerated. Heavy changes for Bookman and
8732 NewCentury Schoolbook!
8733 * font/devps/generate/afmname: Will now run with GNU awk.
8734 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8735 * font/devps/generate/Makefile: Cosmetic changes only.
8737 2000-05-21 Werner LEMBERG <wl@gnu.org>
8739 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8740 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
8741 `.SS' now produces a heading with a smaller size than `.SH'.
8742 Completely formatted.
8743 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8745 * man/groff.man: Improved table appearance. Use of `eo' request
8746 to reduce number of doubled backslashes in macro definitions.
8747 Replacing `\e' with `\(rs'. Other minor fixes.
8749 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8750 to have correct line number.
8752 * INSTALL: Small improvement.
8754 2000-05-20 Bernd Warken <bwarken@mayn.de>
8756 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8759 2000-05-19 Bernd Warken <bwarken@mayn.de>
8761 * man/groff.man: Complete update (with a lot of corrections by WL).
8763 2000-05-18 Werner LEMBERG <wl@gnu.org>
8765 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8767 * font/*/*: Implement it.
8768 * man/groff_char.man, NEWS: Document it.
8770 * src/include/unix.h: Removed. It isn't used.
8772 * doc/groff.texinfo: Slight improvements.
8774 2000-05-17 Werner LEMBERG <wl@gnu.org>
8776 * README, win32-diffs: Small fixes and improvements.
8778 2000-05-16 Werner LEMBERG <wl@gnu.org>
8780 * FDL: New file (the Free Documentation License version 1.1).
8782 * doc/groff.texinfo: Added many start-up values for gtroff.
8783 Some structural improvements of the source code.
8785 2000-05-15 Werner LEMBERG <wl@gnu.org>
8787 * src/roff/troff/input.cc: Added small comment about troffrc-end.
8788 * src/roff/troff/troff.man: Added info about troffrc-end.
8790 2000-05-14 Werner LEMBERG <wl@gnu.org>
8792 * Makefile.in (EXTRADIRS): Fix typos.
8793 (dist): Handle deletion of old .tar.gz file correctly.
8794 (DISTDIRS): Include all tty output devices.
8796 * doc/groff.texinfo: Adding more cross references; countless other
8799 2000-05-13 Werner LEMBERG <wl@gnu.org>
8801 * MORE.STUFF: Added Robert Marks's utilities.
8803 2000-05-12 Werner LEMBERG <wl@gnu.org>
8805 Added win32 port contributed by Blake McBride
8806 <blake@florida-software.com>.
8808 * README.WIN32, win32-diffs: New files.
8811 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8812 (tmove, tmove2): Added parentheses to avoid compiler warnings.
8813 (change): Removed unused variables.
8815 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8816 (savebounds): Changed return value from `int' to `void'.
8817 * src/preproc/grn/hdb.cc: Ditto.
8819 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8820 final backslash in comment to avoid compiler warning.
8822 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8824 * doc/groff.texinfo: More fixes.
8826 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
8828 * tmac/tmac.doc: Documentation fix.
8830 2000-05-11 Werner LEMBERG <wl@gnu.org>
8832 * doc/groff.texinfo: Reading the source code shows up a lot of
8833 omissions and incorrect data... More conversion to @Deffn macros.
8835 2000-05-10 Werner LEMBERG <wl@gnu.org>
8837 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8840 * src/roff/troff/request.h: Removing unused `no_break_flag'.
8842 2000-05-09 Werner LEMBERG <wl@gnu.org>
8844 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8847 * doc/groff.texinfo: Extended history section. More conversion to
8848 @Deffn macros. More .tr documentation.
8850 2000-05-07 Werner LEMBERG <wl@gnu.org>
8852 * doc/groff.texinfo: Completed tab section. Added info about
8855 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
8857 * PROBLEMS: Describe configure script fix for OS/390 Unix.
8859 2000-05-05 Werner LEMBERG <wl@gnu.org>
8861 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8863 * NEWS: Document it.
8865 * man/troff.man: Minor optical improvements.
8867 2000-05-03 Werner LEMBERG <wl@gnu.org>
8869 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8871 * font/*/*: Implement it.
8872 * man/groff_char.man, NEWS: Document it.
8874 2000-05-02 Werner LEMBERG <wl@gnu.org>
8876 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8878 * NEWS: Document the three new man pages.
8880 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8881 * configure: Updated.
8883 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8885 2000-05-01 Werner LEMBERG <wl@gnu.org>
8887 Added grap support to grog.
8889 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8890 * src/roff/grog/grog.man: Document it.
8892 * doc/groff.texinfo, NEWS: Add info about grap support.
8894 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8895 (with slight fixes by me).
8897 * tmac/groff_tmac.man: New file documenting tmac mechanism.
8898 * tmac/Makefile.sub: Add groff_tmac.man.
8899 * man/roff.man: New file giving overview of roff system.
8900 * man/troff.man: A short reference of troff.
8901 * man/Makefile.sub: Add roff.man and troff.man.
8903 2000-04-30 Werner LEMBERG <wl@gnu.org>
8905 Added grap support to groff.
8907 * src/roff/groff/groff.cc: Implement it.
8908 * src/roff/groff/groff.man: Document it.
8910 * src/devices/grotty/grotty.man: Add cp1047 device.
8911 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8913 * src/roff/groff/groff.man: Ditto.
8914 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8915 * doc/groff.texinfo: Ditto.
8917 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8920 2000-04-29 Werner LEMBERG <wl@gnu.org>
8922 * man/groff_char.man: Add `pc' glyph.
8923 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8924 * tmac/tmac.tty: Add `pc' glyph.
8925 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
8926 we use cp1047 output device.
8928 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8929 there are still hardcoded latin1->unicode values in utf8's font
8931 * configure: Updated.
8932 * NEWS: Minor clarification. Updated.
8934 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
8937 2000-04-28 Werner LEMBERG <wl@gnu.org>
8939 Adding EBCDIC code page 1047.
8941 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8942 font/devcp1047/DESC.proto: New files.
8944 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8945 either ascii/latin1 or cp1047.
8946 * Makefile.in: Use it.
8947 * configure: Updated.
8949 Replacing and/or adding `md' (mathdot) glyph with `pc'
8950 (periodcentered) in all text fonts.
8952 * font/*/*: Change it.
8954 2000-04-27 Werner LEMBERG <wl@gnu.org>
8956 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8958 * configure.in: Add check for strings.h.
8959 * src/include/driver.h: Use HAVE_STRINGS_H.
8960 * src/devices/grolbp/lpb.cc: Remove string.h.
8962 * src/include/groff-getopt.h: New file. It will be used instead of
8963 getopt.h (to be included in lib.h) to avoid endless problems with
8964 picky C++ compilers.
8965 * src/include/lib.h: Use groff-getopt.h.
8966 * src/include/Makefile.sub: Updated.
8968 * configure: Updated.
8969 * Makefile.in: Updated.
8971 * NEWS: Mention EBCDIC support.
8973 2000-04-26 Werner LEMBERG <wl@gnu.org>
8975 * TODO: Some additions.
8977 2000-04-25 Werner LEMBERG <wl@gnu.org>
8979 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
8982 2000-04-23 Werner LEMBERG <wl@gnu.org>
8984 * src/roff/troff/troff.man: Minor fixes.
8986 2000-04-22 Werner LEMBERG <wl@gnu.org>
8988 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
8989 `.T' string register and the incompatible definition of the `.T'
8990 number register (compared to Unix troff).
8992 * man/groff_char.man: Add some missing characters.
8993 * font/devutf8/NOTES: Update.
8995 2000-04-21 Werner LEMBERG <wl@gnu.org>
8997 * src/include/htmlindicate.h, src/include/lib.h,
8998 src/include/posix.h: Fix copyright.
9000 * src/include/Makefile.sub: Update.
9002 2000-04-20 Werner LEMBERG <wl@gnu.org>
9004 * src/roff/troff/input.cc (input_char_description): Removing
9005 superfluous space char.
9007 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
9009 * doc/groff.texinfo: Document EBCDIC.
9011 2000-04-19 Werner LEMBERG <wl@gnu.org>
9013 Introducing `shc' as the glyph name for the soft hyphen character.
9015 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
9016 font/devlatin1/R.proto: Use it.
9020 2000-04-18 Werner LEMBERG <wl@gnu.org>
9022 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
9023 dependency on ASCII order.
9025 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
9027 * src/libs/libgroff/illegal.c: Added EBCDIC table.
9028 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
9030 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
9031 to increase portability.
9033 2000-04-15 Werner LEMBERG <wl@gnu.org>
9035 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
9036 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
9037 the generic `\n' if under OS/390 Unix.
9039 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
9041 * configure: Regenerated.
9043 2000-04-14 Werner LEMBERG <wl@gnu.org>
9045 * doc/groff.texinfo: More conversions to @Deffn.
9047 2000-04-12 Werner LEMBERG <wl@gnu.org>
9049 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
9052 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
9054 2000-04-10 Werner LEMBERG <wl@gnu.org>
9056 * doc/groff.texinfo: More conversions to @Deffn.
9058 2000-04-08 Werner LEMBERG <wl@gnu.org>
9060 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
9061 Updated to latest version (glibc 2.1.3).
9063 2000-04-07 Werner LEMBERG <wl@gnu.org>
9065 * doc/Makefile (clean): Include more index files.
9066 Add rule texinfo->dvi.
9068 2000-04-05 Werner LEMBERG <wl@gnu.org>
9070 * doc/groff.texinfo: Added new index `op' for operators. More
9071 info on end of sentence characters. More use of @Deffn.
9073 2000-03-30 Werner LEMBERG <wl@gnu.org>
9075 * */*.man: Adding a note that a whitespace can be inserted between
9076 a command line option and its parameter -- we are using GNU getopt.
9078 * src/roff/groff/groff.man: Add example of `-m mandoc'.
9080 2000-03-28 Werner LEMBERG <wl@gnu.org>
9082 Correct anachronism of calling the man macro file with `-man'
9083 instead of `-m man' etc.
9085 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
9086 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
9087 load tmac.<package>.
9089 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
9093 * doc/groff.texinfo: Updated.
9095 * tmac/groff_man.man: Copyright added.
9097 2000-03-27 Werner LEMBERG <wl@gnu.org>
9099 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
9100 typeset the request resp. escape name with a tt font -- due to a
9101 bug in texinfo.tex it is necessary to use the `-e' switch with
9104 Improving info about usage of groff units.
9108 2000-03-20 Werner LEMBERG <wl@gnu.org>
9110 * doc/groff.texinfo: Added section about man macro package
9111 (I've basically taken groff_man.man). Introducing new indices `ma'
9112 for macros/strings and `gl' for glyph names. Other minor fixes.
9114 * tmac/groff_man.man: Fixed some typos.
9116 2000-03-19 Werner LEMBERG <wl@gnu.org>
9118 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
9121 * doc/texinfo.tex: New file.
9123 2000-03-18 Werner LEMBERG <wl@gnu.org>
9125 * doc/groff.texinfo: Improved section on number registers. Other
9128 2000-03-16 Werner LEMBERG <wl@gnu.org>
9130 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
9133 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
9134 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
9135 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
9136 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
9138 * src/preproc/grn/grn.man: Better synopsis; added copyright.
9140 * src/roff/grog/grog.man: Updated copyright date.
9142 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
9144 * configure.in: Added test for strdup.
9146 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
9149 Replaced dynamic allocation of arrays `[...]' with `new' operator.
9153 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
9155 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
9157 2000-03-11 Werner LEMBERG <wl@gnu.org>
9159 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
9161 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
9162 * src/include/lib.h: Remove some spaces.
9164 2000-03-10 Werner LEMBERG <wl@gnu.org>
9166 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
9167 initializers from arguments (some compilers don't like this).
9169 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
9171 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
9172 used by pic and eqn to tell grohtml where the graphic regions start
9174 * src/libs/libgroff/Makefile.sub: Use it.
9175 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
9176 graphic_start() and graphic_end() from htmlindicate.cc.
9178 2000-03-09 Werner LEMBERG <wl@gnu.org>
9180 * tmac/tmac.safer: Will now work correctly in compatibility mode.
9181 * tmac/groff_man.man: More fixes.
9183 2000-03-08 Werner LEMBERG <wl@gnu.org>
9185 * doc/Makefile: Added texput.log to the `clean' target.
9186 * doc/groff.texinfo: Added info about delimiters for escapes.
9188 2000-03-08 Bernd Warken <bwarken@mayn.de>
9190 * src/preproc/pic/pic.man: Add info on conversion of pic images to
9191 other graphic formats.
9193 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
9195 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
9196 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
9197 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
9200 2000-03-07 Werner LEMBERG <wl@gnu.org>
9202 * doc/groff.texinfo: Spelling fixes.
9204 2000-03-06 Werner LEMBERG <wl@gnu.org>
9206 * tmac/groff_man.man: Completely revised to cover everything in
9209 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
9210 Other minor fixings.
9211 * src/roff/troff/env.cc (environment_copy): Improve error message and
9213 * src/roff/troff/TODO: Updated.
9215 * doc/Makefile: Bug fixes -- this is still provisional, though...
9217 * tmac/eqnrc: Small fixes.
9219 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
9221 Adding a request `evc' to copy environments.
9223 * src/roff/troff/env.cc (environment::copy, environment_copy):
9225 * src/roff/troff/env.h: Add prototype.
9227 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
9229 Adding strsep() -- Solaris 8 doesn't have it.
9231 * configure.in: Test it.
9232 * src/devices/grolbp/lbp.cc: Add code.
9234 2000-03-05 Werner LEMBERG <wl@gnu.org>
9236 * src/roff/troff/div.cc (macro_diversion::output,
9237 top_level_diversion::output): Fixing an incompatibility with
9238 original troff: \x'0' updates the .a register also. Thanks to
9239 <Andries.Brouwer@cwi.nl> for pointing this out.
9240 * doc/groff.texinfo: Document it.
9242 * Makefile.in: Create Makefile.dep if necessary before calling the
9243 submake process to avoid warning about nonexistent file.
9245 * NEWS, PROJECTS: Updated.
9247 2000-03-04 Werner LEMBERG <wl@gnu.org>
9249 * tmac/troffrc: Add tmac.lbp.
9251 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
9253 * tmac/tmac.lbp: New file.
9254 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
9257 2000-03-03 Werner LEMBERG <wl@gnu.org>
9259 * Makefile.in: Fixing $(subdir).
9261 * README, NEWS: Small fixes.
9263 * test-groff: Adding path to grolbp.
9265 * configure.in: The (new) file src/xditview/Imakefile.in will be
9266 also configured -- it is now possible to build gxditview in a
9267 directory different from $srcdir.
9269 2000-03-02 Blake McBride <blake@florida-software.com>
9271 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9273 * MORE.STUFF: Added website of bell labs and info about plot2dev.
9275 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
9277 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9280 2000-02-29 Werner LEMBERG <wl@gnu.org>
9282 Adding GNU getopt to the groff distribution.
9284 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9286 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9287 * aclocal.a4: Remove GROFF_GETOPT function.
9288 * configure.in, Makefile.in, PROBLEMS: Update.
9289 * src/include/lib.h: Replace getopt tests with getopt.h.
9290 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9292 * doc/groff.texinfo: Further checking/updating. Adding more index
9295 * man/groff_out.man: Fix nroff mode activation (for emacs).
9296 * man/groff_font.man: Add missing ligature.
9298 2000-02-28 Werner LEMBERG <wl@gnu.org>
9300 * doc/groff.texinfo: Further checking/updating. Adding more index
9303 * src/devices/grolbp/grolbp.man: Added a comment line at the
9304 beginning of the file (similar to shell scripts) which indicates
9305 that `tbl' should be used as a preprocessor.
9307 2000-02-27 Blake McBride <blake@florida-software.com>
9309 Adapting groff to MS Visual C++ 6.0 compiler (tested with
9310 Windows NT 4.0). Uses _MSC_VER define where necessary.
9312 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9313 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9314 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9315 src/include/lib.h, src/libs/libgroff/errarg.cc,
9316 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9317 src/preproc/refer/label.y, src/preproc/refer/label.cc,
9318 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9319 src/roff/troff/div.cc, src/roff/troff/env.cc,
9320 src/roff/troff/input.cc, src/roff/troff/node.cc,
9321 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9322 if_to_a() to avoid name clashes.
9323 * src/include/posix.h: Don't use unistd.h.
9324 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9325 clause for integrating non-Unix xtmpfile() code.
9326 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9327 structure; use "rt" for popen() in pipe_source(); add getpid()
9329 * src/roff/troff/node.cc: Use special versions of popen() in
9330 real_output_file() and pclose() in ~real_output_file().
9332 2000-02-27 Werner LEMBERG <wl@gnu.org>
9334 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9335 LBP-8 series laser printers). This code has been contributed by
9336 Francisco Andrés Verdú <pandres@dragonet.es>.
9338 * src/devices/grolbp/*: The grolbp output device.
9339 * font/devlpb/*: The font description files.
9340 * Makefile.in: Add grolpb and devlbp subdirectories.
9342 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9343 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9346 * doc/groff.texinfo: Further checking/updating. Adding more index
9351 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9353 * man/groff_font.man: Adding info about obsolete DESC keywords.
9354 * src/devices/grolj4/grolj4.man: Documenting additional DESC
9357 2000-02-26 Werner LEMBERG <wl@gnu.org>
9359 * src/preproc/grn/grn.man: Added info about the gremlin file format
9360 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9362 2000-02-25 Werner LEMBERG <wl@gnu.org>
9364 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9365 friends to be non-integer.
9367 * src/preproc/grn/grn.man: Document it.
9369 * doc/groff.texinfo: Further checking/updating. Adding more index
9372 2000-02-24 Werner LEMBERG <wl@gnu.org>
9374 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9375 line thicknesses to be integer multiples of this value.
9377 * src/preproc/grn/grn.man: Commenting out the -s option -- the
9378 corresponding code doesn't work (yet).
9380 * doc/groff.texinfo: Further checking/updating. Adding more index
9383 2000-02-23 Werner LEMBERG <wl@gnu.org>
9385 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9386 specify line thickness instead of base units. The new default
9387 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9388 thick lines respectively.
9390 Removed unused variable `prevval'.
9392 * src/preproc/grn/grn.man: Updated.
9394 2000-02-22 Werner LEMBERG <wl@gnu.org>
9396 * src/preproc/grn/main.cc: Slight formatting.
9398 * src/roff/groff/groff.man: Formatting fix.
9399 * src/preproc/grn/grn.man: Ditto.
9401 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9403 * doc/groff.texinfo: Further checking/updating.
9405 2000-02-21 Werner LEMBERG <wl@gnu.org>
9407 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9409 * test-groff: Added grn subdir to path.
9411 * doc/groff.texinfo: Some restructing and other small improvements.
9413 * src/roff/groff/groff.cc (help): Fixed info string.
9415 2000-02-20 Werner LEMBERG <wl@gnu.org>
9417 * doc/meref.me: Fix description of .GS request.
9419 * src/roff/troff/troff.man: Fixing typo.
9421 Adding the `grn' preprocessor for gremlin graphic files.
9423 * src/preproc/grn/*: This is the Berkeley distribution written by
9424 David Slattengren and Barry Roitblat, adapted to groff by Daniel
9425 Senderowicz and Werner Lemberg.
9427 * doc/grnexampl.{me,g}: A sample for grn.
9429 * Makefile.in: Added subdirectory entry for grn.
9431 * src/roff/groff/groff.cc: Added support for grn. It can be now
9432 called with the switch `-g'.
9434 * src/roff/groff/groff.man: Updated.
9436 * src/roff/grog/grog.{man,pl,sh}: Updated.
9440 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
9442 * src/include/lib.h: Added xtmptemplate and made xtmpfile
9443 parametrically polymorphic.
9445 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9446 and the alterations to xtmpfile.
9447 xtmpfile can be requested to return the filename created
9448 and asked not to unlink the temp file. The default behaviour
9449 if parameters are absent is exactly the same as before.
9451 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
9453 A new request `length' is available which returns the length of a
9454 string in a number register:
9456 * src/roff/troff/input.cc (length_macro): Implement it.
9457 * src/roff/troff/input.cc (init_input_requests): Register it.
9459 2000-02-11 Werner LEMBERG <wl@gnu.org>
9461 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9462 of the `substring' request.
9464 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9467 * src/roff/troff/TODO, NEWS: Updated.
9469 2000-02-09 Werner LEMBERG <wl@gnu.org>
9471 * src/roff/groff/groff.man: Added an example.
9473 2000-02-06 Werner LEMBERG <wl@gnu.org>
9475 I've considerably modified the directory structure of the
9476 distribution to get a more vertical layout. For example, the number
9477 of top level directories has been reduced from 42 to 6.
9479 As a consequence, many changes, especially to the makefiles, were
9482 * The makefile variables `top_builddir' and `top_srcdir' have been
9483 introduced. Virtually all relative paths have been replaced with
9484 absolute ones using these two variables.
9486 * Dependencies (in the files `Makefile.dep') are no longer part of
9487 the distribution. Instead, they are created during a `make install'
9488 in the build directory.
9490 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9491 make `top_srcdir' and `top_builddir' absolute.
9495 * Man pages now depend on the files `VERSION' and `REVISION'.
9497 * The added shell script `mkinstalldirs' will replace `mkdir' in
9500 * VERSION: Version number increased to 1.16.
9502 2000-02-04 Werner LEMBERG <wl@gnu.org>
9504 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9506 * Makefile.in: Removed $(tmac_m) since it is no longer needed
9507 (after an update of the mm stuff).
9509 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9511 2000-02-03 Werner LEMBERG <wl@gnu.org>
9513 The .psbb request will now also accept Mac PS images (i.e. using LF
9514 as the EOL character).
9516 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9517 (with slight modifications).
9518 * troff/input.cc (do_ps_file): Use it.
9520 * test-groff: Add grohtml and grolj4 output devices to PATH.
9522 2000-01-30 Werner LEMBERG <wl@gnu.org>
9524 * NEWS, MORE.STUFF: Updated.
9526 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
9528 Add the `srand' command to pic.
9530 * pic/lex.cc, pic/pic.y: Implement it.
9531 * pic/pic.man: Document it.
9532 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9534 2000-01-30 Werner LEMBERG <wl@gnu.org>
9536 Add a new request `.psbb'. This does exactly what the external
9537 program psbb did. It scans a PostScript image file for a
9538 %%BoundingBox comment and extracts the bounding box values (in
9539 PostScript units) which are then stored in the four new (read-only)
9540 number registers `llx', `lly', `urx', and `ury'.
9542 This will allow the usage of the .PSPIC macro without worrying
9543 about unsafe behaviour of groff, i.e., it will work without the
9544 `-U' switch of groff.
9546 * troff/input.cc: Implement it.
9547 * tmac/tmac.pspic: Use it.
9548 * troff/troff.man, grops/grops.man, NEWS: Document it.
9549 * psbb/*, Makefile.in: Remove it since it is no longer needed.
9551 This is bloody C code simply adapted from psbb.c! Any improvements
9554 2000-01-29 Werner LEMBERG <wl@gnu.org>
9556 * man/groff_font.man: Minor clarifications.
9560 2000-01-28 Werner LEMBERG <wl@gnu.org>
9562 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9564 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
9566 * man/groff_font.man: Brought up to date regarding tcommand
9568 * libgroff/font.cc: Handle everything after `--' as a comment
9570 * devps/*: Added comment delimiter inside devps font files.
9572 2000-01-28 Werner LEMBERG <wl@gnu.org>
9574 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9575 \fC...\fP (which now works as expected).
9577 * troff/troff.man: Fix typo.
9579 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
9581 Completed the pass_filenames implementation in troff.
9583 * libdriver/input.cc: Will read the new `F' tcommand.
9584 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9585 * troff/input.cc: Use it.
9587 2000-01-26 Werner LEMBERG <wl@gnu.org>
9589 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
9590 font will now be updated even if an invalid font is selected.
9592 2000-01-24 Werner LEMBERG <wl@gnu.org>
9594 * doc/homepage.ms: Updated for new tmac.arkup.
9596 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9598 * tmac/tmac.arkup: Cleanup.
9600 Added `\&' to .HTML macro to `leave vertical mode', so to say.
9602 Removed obsolete .LINK macro completely.
9604 The macros .URL, .FTP, and .MAILTO now accept a third argument which
9605 will be immediately appended to the second argument (to be used with
9606 punctuation, for example).
9608 Disabled .CDFTP macro temporarily for security reasons.
9610 * tmac/groff_markup.man: Complete revision for latest changes in
9611 tmac.arkup -- note that it does not yet format correctly with
9614 2000-01-23 Bruno Haible <haible@clisp.cons.org>
9616 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9617 * devutf8/R.proto: Add mappings for wp, lh, rh.
9618 * devutf8/NOTES: Updated.
9620 2000-01-23 Werner LEMBERG <wl@gnu.org>
9622 * doc/groff.texinfo: Updated version/copyright info.
9624 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
9626 Added support for two new directives in device descriptions:
9627 `pass_filenames' (to pass the input file name to the output device)
9628 and `use_charnames_in_special' (to support e.g. accented characters
9629 in the `X' request).
9631 * include/font.h, troff/charinfo.h: Declare it.
9633 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9635 * devhtml/DESC: Use it.
9637 * troff/input.cc: New function encoded_char.
9639 * troff/token.h: Add test for `specialness'.
9641 2000-01-21 Werner LEMBERG <wl@gnu.org>
9643 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9644 mistake from the list of files to be installed.
9646 2000-01-18 Werner LEMBERG <wl@gnu.org>
9648 * README: Added info how to apply patches.
9650 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
9652 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
9654 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
9656 * troff/input.cc: Add support for troffrc-end.
9658 * tbl/main.cc: Altered to issue table-start and table-end special
9659 characters if using the html device.
9661 * devhtml/*: Modified font files to incorporate html encoding of
9664 * tmac/groff_markup.man: New file documenting tmac.arkup.
9666 * tmac/troffrc-end: New file. This is invoked after all user
9667 specified macros. Currently used by the html device to include
9668 tmac.html. Thus no need for users to specify -mhtml anymore.
9670 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9671 (MAN7): Add groff_markup.man.
9673 * tmac/tmac.an, tmac/tmac.html: Small html updates.
9675 * tmac/troffrc: tmac.arkup will now be called for the html device.
9677 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9678 extra device specific information about fonts.
9680 * doc/homepage.ms: New file. It is an example how an HTML home page
9681 could look like with grohtml.
9683 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
9685 2000-01-12 Bruno Haible <haible@clisp.cons.org>
9687 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
9690 * devutf8/NOTES: Updated.
9692 2000-01-08 Bruno Haible <haible@clisp.cons.org>
9694 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9695 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9696 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9697 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9698 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9699 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9700 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9701 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9704 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9706 2000-01-12 Fabrizio Polacco <fab@prosa.it>
9708 grolj4: Paper size will be searched case-insensitively.
9710 * include/lib.h: Add check for strcasecmp().
9711 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9712 * configure.in: Check for strcasecmp().
9714 2000-01-11 Werner LEMBERG <wl@gnu.org>
9716 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9719 2000-01-10 Werner LEMBERG <wl@gnu.org>
9721 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9724 Add a new read-only register, `.Y', which contains the groff
9727 * troff/input.cc (init_input_requests): Define it.
9728 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9729 * doc/groff.texinfo, troff/troff.man: Document it.
9731 * libgroff/Makefile.sub (version.cc): Add definition of
9732 `Version_string[]', consisting of `<major>.<minor>.<revision>'
9733 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9734 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9735 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9736 troff/input.cc, pfbtops/pfbtops.c: Use it.
9738 2000-01-10 Fabrizio Polacco <fab@prosa.it>
9740 Add a revision scheme to the groff package.
9742 * REVISION: New file.
9743 * libgroff/Makefile.sub (version.cc): Use it to define
9744 `revision_string[]'.
9745 * grops/psrm.cc: Use revision_string (converted to an unsigned
9746 integer) in constructor of resource_manager.
9748 2000-01-10 Bruno Haible <haible@clisp.cons.org>
9750 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9752 * Makefile.in (DEVDIRS): Add devutf8.
9753 * grotty/tty.cc: Include device.h.
9754 (glyph): Change type of `code' to `unsigned int'.
9755 (tty_printer): New field is_utf8. Constructor takes device argument.
9756 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9757 (tty_printer::add_char): Change type of first arg to `unsigned int'.
9758 (tty_printer::put_char): New function.
9759 (tty_printer::end_page): Use put_char() instead of ::putchar().
9760 (make_printer): Pass device to tty_printer constructor.
9761 * nroff.sh: Determine default device by calling 'locale'. As a
9762 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9763 Recognize UTF-8 locales.
9764 * tmac/eqnrc: Recognize utf8 like latin1.
9765 * tmac/troffrc: Device utf8 needs tmac.tty.
9767 2000-01-07 Werner LEMBERG <wl@gnu.org>
9769 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9771 2000-01-07 Paul Eggert <eggert@twinsun.com>
9773 Add a new predefined writeable number register, `year',
9774 which contains the current year.
9776 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9777 * tmac/tmac.s: Use it.
9778 * troff/input.cc (init_registers): Initialize it.
9780 2000-01-06 Werner LEMBERG <wl@gnu.org>
9782 * PROBLEMS: Fixed typo.
9784 2000-01-04 Paul Eggert <eggert@twinsun.com>
9786 * PROBLEMS: Add Y2k advice for the yr number register.
9788 2000-01-03 Paul Eggert <eggert@twinsun.com>
9790 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9792 2000-01-02 Werner LEMBERG <wl@gnu.org>
9794 * tmac/tmac.arkup: Slight modification of macros to provide better
9795 appearance for non-HTML formats.
9797 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
9799 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9800 does not automatically translate to malloc(n) on all OSes
9801 (e.g., SunOS) so do it explicitly. Also, check the returned
9804 2000-01-01 Werner LEMBERG <wl@gnu.org>
9806 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
9808 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9809 expects this variable
9811 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
9813 * doc/Makefile: Added instructions to create HTML and text
9814 versions of some files.
9816 1999-12-31 Werner LEMBERG <wl@gnu.org>
9818 * Updated INSTALL.gen.
9820 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9821 better resp. correctly with non-HTML devices.
9823 Version 1.15 released
9824 =====================
9826 1999-12-28 Werner LEMBERG <wl@gnu.org>
9828 * NEWS, VERSION: Changed to 1.15
9830 1999-12-27 Paul Eggert <eggert@twinsun.com>
9832 * nroff/nroff.man: -S is safer, not safe.
9834 * groff/groff.cc (main): Use `safer', not `safe', in variable
9835 names. This does not change the behavior.
9837 * troff/input.cc (main): Likewise.
9839 * nroff/nroff.sh: Likewise.
9841 * troff/input.cc (prepend_string): New function.
9842 (main): Prepend -msafer, so that we check macro libraries for
9845 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9847 Version 1.14 released
9848 =====================
9850 1999-12-26 Werner LEMBERG <wl@gnu.org>
9852 * NEWS, VERSION: Changed to 1.14.
9854 1999-12-24 Werner LEMBERG <wl@gnu.org>
9856 * refer/refer.cc: Fixing the last fix.
9858 Version 1.13 released
9859 =====================
9861 1999-12-23 Werner LEMBERG <wl@gnu.org>
9863 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9868 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9870 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9871 document conventions, the version number must be a real.
9873 Version 1.12.1 released
9874 =======================
9876 1999-12-22 Werner LEMBERG <wl@gnu.org>
9878 * VERSION: Changed to 1.12.1.
9880 1999-12-22 Alan Rooks <arooks@istar.ca>
9882 * refer/refer.cc (do_file): Slight modification to satisfy the
9883 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9886 1999-12-20 Werner LEMBERG <wl@gnu.org>
9888 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9891 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9892 list of unsafe requests.
9894 * pic/pic.man: Fixed a typo.
9896 * man/groff_out.man: Fixed a typo.
9898 1999-12-18 Werner LEMBERG <wl@gnu.org>
9900 * Makefile.in: Doc fixes.
9902 1999-12-17 Fabrizio Polacco <fab@prosa.it>
9904 * groff/groff.cc: Missing `U' option added to getopt().
9906 * troff/troff.man: Missing `U' option added to synopsis.
9908 Version 1.12 released
9909 =====================
9911 1999-12-14 Werner LEMBERG <wl@gnu.org>
9913 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9916 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9917 with the more appropriate terms `safer' and `unsafe'.
9919 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9920 sys_nerr and sys_errlist[].
9922 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9924 * pic/pic.y, pic/pic.cc: Added check for fmod().
9926 1999-12-13 Werner LEMBERG <wl@gnu.org>
9928 * VERSION: Changed to 1.12.
9930 Here some patches from various sources; most of them taken from
9931 the Debian distribution.
9933 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9934 tmac/Makefile.sub: New files copied directly from the NetBSD
9935 distribution. Probably, some additional adaptation later on is
9938 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9941 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9942 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9943 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
9944 (`-S') is now the default.
9946 * README, NEWS: Updated.
9948 1999-12-09 Werner LEMBERG <wl@gnu.org>
9950 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9952 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9954 1999-12-06 Werner LEMBERG <wl@gnu.org>
9956 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9957 grief than relief today. Additionally, it is against the GNU
9960 * configure: Recreated.
9962 1999-12-05 Werner LEMBERG <wl@gnu.org>
9964 * configure.in: Added GROFF_LIBM.
9966 * configure: Recreated.
9968 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
9971 * Makefile.in: Added definition of $(LIBM).
9973 * Makefile.comm (LIBM): Removed.
9975 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
9977 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
9979 * doc/Makefile: Added rule for generation pic.html.
9981 (clean): Files produced by grohtml will be removed also.
9983 * doc/pic.ms: Small fix.
9985 * tmac/tmac.html: Fixed suppression of headers.
9987 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
9989 * tmac/tmac.html: Fixing horizontal arrows.
9991 Turning off hyphenation.
9993 * tmac/tmac.an: Improved support for grohtml; better indentation,
9996 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
9998 * tmac/tmac.arkup: Added CDFTP macro
10000 * tmac/tmac.html: All headers are turned off for ms, me, and mm
10003 * tmac/troffrc: Some additions for HTML stuff.
10005 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
10007 * tmac/tmac.html: Small changes.
10009 1999-09-26 Werner LEMBERG <wl@gnu.org>
10011 * doc/groff.texinfo: Minor fixes.
10013 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
10015 * devhtml/TR: Changed spacewidth to 3.
10017 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
10019 * tmac/tmac.html: Moved markup macros to tmap.arkup.
10021 * tmac/tmac.arkup: New file.
10023 * grohtml/ChangeLog: New file.
10025 1999-09-16 Werner LEMBERG <wl@gnu.org>
10027 * doc/groff.texinfo (Common Features): Added Copying chapter.
10028 Changed format to @smallbook.
10030 1999-09-15 Werner LEMBERG <wl@gnu.org>
10032 * NEWS: Added info about groff.texinfo.
10034 * doc/groff.texinfo: Will now compile (using texi2dvi) without
10037 1999-09-14 Werner LEMBERG <wl@gnu.org>
10039 * groff/groff.man: More updates.
10041 1999-09-13 Werner LEMBERG <wl@gnu.org>
10043 * doc/groff.texinfo: New file. This manual is still very
10044 rudimentary. It has been originally contributed by Trent
10045 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
10048 * INSTALL: Added information about the `doc' subdir
10050 * troff/troff.man: Minor fixes.
10052 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
10055 * troff/input.cc (usage): Added missing `-ffam' to usage message.
10057 * Makefile.in (dist): groff-$(version).tar.gz must be removed
10058 also, otherwise it is included itself in another call of `make
10061 * groff/groff.cc (synopsis): Removed superfluous space.
10063 * PROJECTS, PROBLEMS, NEWS: Updated.
10065 * VERSION: Updated to 1.12beta.
10067 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
10069 * README: Updated: Included documentation about CVS repository,
10070 mailing lists, and daily snapshots.
10072 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
10074 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
10076 * tmac/tmac.an: If the tag didn't fit into the space that the
10077 macro `TP' specifies, the rest of the tag went into the space for
10080 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
10082 * grolj4/lj4.cc: Added duplex printing (option `-d').
10084 * grolj4/grolj4.man: Document duplex printing.
10086 1999-09-12 Werner LEMBERG <wl@gnu.org>
10088 * doc/Makefile (pic.ps): Fixed rule which caused problems with
10089 non-GNUish sed programs.
10091 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
10094 * configure.in (LIBS): Added `-lc'
10096 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
10098 * pic/tex.cc (solid_arc): Casting M_PI to double.
10100 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
10102 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
10103 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
10104 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
10106 * groff/groff_man.man: New file. This manual page was originally
10107 written for the Debian GNU/Linux system by Susan G. Kleinmann
10110 * eqn/list.cc (list_box::compute_metrics,
10111 list_box::compute_sublist_width): Removed variable declaration to
10112 avoid shadowing warnings.
10114 * grops/psrm.cc (resource_manager::process_file): Ditto.
10116 * tfmtodit/tfmtodit.cc (main): Ditto.
10118 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
10119 to avoid shadowing warnings.
10121 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
10122 shadowing loop variable.
10124 * groff/groff.man, troff/troff.man: Added doc about grohtml.
10126 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
10128 New grohtml frontend to convert groff input to html.
10130 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
10132 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
10134 * tmac/eqnrc: Added html device.
10136 * tmac/tmac.html: New file.
10138 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
10139 (troff_output::start_picture, troff_output::finish_picture),
10140 tbl/main.cc (process_input_file):
10141 Surrounded output with `graphics_start' and `graphics_end' so that
10142 the html driver can identify non-text portions.
10144 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
10145 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
10146 grotty/tty.ps (tty_printer::set_char): Additional parameter
10149 * include/printer.h: Class printer: New function
10150 set_char_and_width; new variables (is_char_named, is_named_set,
10151 named_command, named_char_s, named_char_n) to hold information
10152 about named characters -- needed by the html driver.
10154 * libdriver/printer.cc (printer::set_ascii_char,
10155 printer::set_special_char): Use set_char_and_width.
10157 * devhtml/*: New device files for html driver.
10159 * grohtml/*: New driver grohtml.
10161 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
10163 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
10166 1999-09-11 Luke Mewburn <lukem@netbsd.org>
10168 * libgroff/string.cc (search): Small fix to test against NULL
10171 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
10173 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
10174 \b'abc') were stacked in reverse order when processed in a
10177 * troff/node.h: Added `*last' to struct `node' to make the above
10180 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
10181 The default scale for the 'f' and 't' graphics functions were 'm'
10182 rather than 'u' (i.e., no scaling).
10184 1999-09-11 Peter Miller <peterm@jna.com.au>
10186 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
10187 do_file), soelim/soelim.man: Added `-I file' option to soelim,
10188 defining include paths.
10190 * soelim/soelim.cc (include_path_append): New function.
10192 1999-09-11 Larry Jones <larry.jones@sdrc.com>
10194 * tbl/main.cc (process_options): Unix (at least Documenter's
10195 Workbench) tbl allows arbitrary non-alpha characters between
10198 1999-09-11 Paul Eggert <eggert@twinsun.com>
10200 Y2k fixes. Don't assume that the current year precedes 2000.
10202 * doc/meref.me: Add \n(y2, \n(y4.
10204 * tmac/doc-common (Yr): New number register.
10205 (Dd): Don't assume current year precedes 2000.
10207 * tmac/tmac.e (td): Likewise.
10208 (y2, y4): New number registers.
10210 * pic/pic.man: Update reference for pic paper to May, 1991
10213 1999-09-11 Werner LEMBERG <wl@gnu.org>
10215 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10216 Removed quotation marks which prevented correct expansion of
10219 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
10221 1999-09-10 Werner LEMBERG <wl@gnu.org>
10223 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
10226 * Removed configure.old.
10228 1999-08-31 Werner LEMBERG <wl@gnu.org>
10230 * VERSION: Updated to 1.11.1
10232 1999-05-27 Werner LEMBERG <wl@gnu.org>
10234 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
10236 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
10237 added quotations around $(tmac_wrap) to avoid syntax error if
10240 * configure: Newly generated using autoconf 2.13.
10242 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
10244 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
10246 * README, PROJECTS, NEWS, INSTALL, VERSION,
10247 doc/Makefile. doc/pic.ms, groff/groff.man:
10248 Prepare for 1.11 release. No code changes.
10249 Documentation for pic added (doc/pic.ms).
10251 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
10253 * Version 1.10 released.
10255 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
10257 * afmtodit/afmtodit.pl: Avoid comment on first line.
10259 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
10261 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
10262 * configure.in: Call it.
10264 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
10265 (distfiles): Doesn't depend on config.log or config.cache.
10267 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
10269 * grog/grog.sh: Use print "" rather than print in END rule.
10271 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
10273 * tbl/main.cc (process_data): Don't give error for excess data
10274 entries that are comments.
10276 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
10278 * tbl/main.cc (process_data): Fix case where new for-scope rules
10279 silently change meaning of code.
10281 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
10283 * troff/env.cc (hyphenate): Loop over all consecutive sequences
10284 of non-zero hyphenation codes.
10286 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
10288 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10290 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
10292 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10294 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
10296 * tmac/tmac.andoc: Make it work in compatibility mode.
10298 * refer/token.h (token_info::is_range_sep): New function.
10299 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
10300 * refer/ref.cc (reference::output): More sophisticated check for
10303 * devps/prologue.ps (MANUAL): New procedure.
10304 * grops/ps.cc (main): New -m option.
10305 (usage): Include -m.
10306 (ps_printer::~ps_printer): Implement -m.
10308 * aclocal.m4 (GROFF_G): New macro.
10309 * configure.in: Call it.
10310 * Makefile.in (g): Provided by configure.
10312 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10314 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
10317 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10318 (tmac_m, tmac_s): Deleted.
10319 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10320 tmac_s_prefix): New variables.
10321 (MDEFINES): Change accordingly.
10322 * Makefile.comm (.man.n): Use new TMAC_* variables.
10323 * configure.in (GROFF_TMAC): Call.
10324 * aclocal.m4 (GROFF_TMAC): Define.
10325 * tmac/Makefile.sub (stamp_wrap): New target.
10326 (install_data, uninstall_sub): Handle macro wrapping.
10328 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
10330 * tbl/main.cc (main): Ignore -T option.
10332 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
10334 * devlj4/generate/special.map: Add definition of \(nb.
10336 * tmac/tmac.dvi: Add definition of \(nb.
10338 * troff/dictionary.c (dictionary::dictionary): association::v gets
10339 initialized by association::association.
10341 * tmac/Makefile.sub: Avoid using temporary files when installing.
10343 * troff/env.cc (environment::set_font): Make bad font number a
10346 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10348 * Makefile.in (datadir): Use share rather than lib.
10350 * groff/groff.cc (basename): Rename to xbasename.
10352 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
10354 * Makefile (CCLIBS): Don't use.
10355 * Makefile.ccpg: Likewise.
10357 * acgroff.m4: Rename to...
10358 * aclocal.m4: Modify extensively for autoconf 2.
10359 * configure.in: Likewise.
10360 * Makefile.in: Likewise.
10362 * groff/pipeline.c (const): Declare as empty if __STDC__ not
10364 (xstrsignal): Check for definition of NSIG. Conditionalize
10365 on SYS_SIGLIST_DECLARED. Make return type const.
10367 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
10369 * troff/input.cc (interpolate_macro): Rephrase missing space
10372 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10374 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10375 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10376 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10377 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10378 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10379 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10380 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10381 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10382 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10383 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10384 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10387 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
10389 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10391 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10393 (macro_iterator::macro_iterator): Add additional argument.
10395 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
10397 * troff/div.cc (vertical_size::vertical_size): In place of integer
10398 specifying line spacing use cunits specifying post vertical
10400 (macro_diversion::output, top_level_diversion::output): Likewise.
10401 * troff/div.h: Change declarations accordingly.
10402 * troff/env.cc (pending_output_line): Replace ls field by post_vs
10404 (pending_output_line::pending_output_line,
10405 pending_output_line::output, environment::output,
10406 environment::output_line, environment::output_title,
10407 environment::hyphenate_line): In place of
10408 integer specifying line spacing use cunits specifying post vertical
10410 (environment::environment): Add post_vertical_spacing and
10411 prev_post_vertical_spacing arguments.
10412 (environment::get_post_vertical_spacing): New function.
10413 (environment::total_post_vertical_spacing): New function.
10414 (environment::post_vertical_spacing): New function.
10415 (init_env_requests): Initialize pvs request and .pvs register.
10416 * troff/env.h: Change declarations.
10418 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
10420 * tmac/tmac.pspic: Immediately remove the temporary file.
10422 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
10424 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10425 height is specified.
10427 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
10429 * tbl/table.c (struct vertical rule, class table_entry): Use int
10430 not short for start_row and end_row.
10432 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
10434 * troff/input.cc (trapping_blank_line, blank_line_macro): New
10436 (diverted_space_node::reread, process_input_stack): Call
10437 trapping_blank_line() rather than blank_line().
10438 (init_input_requests): Bind "blm" to blank_line_macro().
10440 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10442 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
10444 * troff/env.cc (environment::possibly_break_line): Require that
10445 width total excluding width of final space node be greater than
10446 the target text length.
10448 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
10450 * troff/node.cc (kern_pair_node::vertical_extent): New function.
10452 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
10454 * troff/node.cc (charinfo_node): New class.
10455 (glyph_node, composite_node): Derive from charinfo_node. Change
10456 member functions accordingly.
10458 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
10460 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10462 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
10464 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10466 * devps/generate/textmap (notsubset): Add.
10468 * tmac/tmac.a4: New file.
10470 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
10472 * pic/main.cc (had_parse_error): New variable.
10473 (do_picture, do_whole_file): Set had_parse_error if yyparse()
10475 (main): Return 1 if had_parse_error is true.
10477 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
10479 * grolj4/lj4.cc (main): Avoid use of strtoul.
10481 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
10483 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10484 iso_8859_1 or $LESSCHARSET is latin1.
10486 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
10488 * hpftodit: New directory.
10489 * Makefile.in (CCPROGDIRS): Add hpftodit.
10490 * devlj4/generate: New directory.
10492 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
10494 * configure.in: Don't use AC_VFORK.
10495 * groff/pipeline.c (run_pipeline): Use fork() always.
10497 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
10499 * grops/ps.cc (main): Use %1 not %s in error message for -w.
10501 * Makefile.in (CCPROGDIRS): Add grolj4.
10502 (DEVDIRS): Add devlj4.
10503 * grolj4, devlj4: New directories.
10504 * tmac/troffrc: Handle lj4.
10505 * tmac/tmac.lj4: New file.
10507 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
10509 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10511 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
10513 * troff/input.cc (do_if_request): At end of second string, switch
10514 environments before getting next token.
10516 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
10518 * devps/psstrip.sed: Split rule that strips whitespace on either
10519 side of delimiters.
10521 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
10523 * troff/node.h (font_family::make_definition): Add return value to
10524 declaration. * troff/symbol.h (symbol::operator==,
10525 symbol::operator!=): Likewise.
10527 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
10529 * groff/groff.cc (main, help, synopsis): Handle -S.
10530 (possible_command::insert_arg): New function.
10532 * tmac/tmac.safer: New file.
10533 * tmac/msafer.man: New file.
10534 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10536 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
10538 * pic/pic.h, pic/main.cc (safer_flag): New variable.
10539 * pic/pic.y (placeless_element): Avoid unsafe operations if
10540 `safer_flag' is set.
10541 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10543 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
10545 * eqn/lex.cc (get_token): Put call to add_context() in block to
10546 work around Sun C++ 4.0 bug.
10548 * include/stringclass.h (operator +): Use ?: instead of `if' to
10549 work around Sun C++ 4.0 bug.
10551 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
10553 * tbl/main.cc (process_format): Accept - as a synonym for the _
10556 * libbib/index.cc (minus_one): Don't declare as const.
10558 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
10560 * troff/input.cc (get_char_for_escape_name): Push back a newline.
10562 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
10564 * troff/input.cc (write_macro_request): New function.
10565 (init_input_requests): Bind write_macro_request to writem.
10567 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
10569 * tmac/tmac.s (@EN): Turn filling back on even if there was no
10572 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10574 * tmac/tmac.s (@TS): Renamed from TS.
10575 (TS): Call LP then TS again.
10576 (cov*ab-init): Alias @TS to TS.
10578 * tmac/tmac.s: Allow QP or RS to initialize.
10580 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
10581 Move initializations of PS and LL here.
10582 (par@init): Don't initialize HY. Avoid changing environment 0.
10583 (par*env-init): Don't all par@reset.
10585 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
10587 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10589 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
10591 * Makefile.in (MDEFINES): Add LDFLAGS.
10592 (LDFLAGS): Add definition line.
10594 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
10596 * troff/input.cc (get_optional_char): Split off error check into...
10597 (check_missing_character): New function.
10598 * troff/token.h: Declare it.
10599 * troff/env.cc (margin_character): Don't call get_optional_char.
10600 Only call tok.next() after making the node.
10602 * include/lib.h (getopt): Make 2nd argument char *const *.
10604 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
10606 * nroff/conftest.sh: Deleted.
10608 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
10610 * pic/make-dos-dist: Deleted.
10612 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
10614 * devps/psstrip.sed: Strip comments before stripping trailing
10617 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
10619 * Version 1.09 released.
10621 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
10623 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10625 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
10627 * libgroff/font.cc (font::load_desc): Fix typo in error message.
10629 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
10631 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10632 about returning without a value.
10634 * troff/charinfo.h (charinfo::get_special_translation): Cast
10635 TRANSLATE_NONE to int.
10637 * refer/token.cc (lookup_token, store_token): Remove bogus loop
10638 test. Fix test so that it works with n unsigned.
10640 * pic/pic.y (defaults_table): Fully bracket initializer.
10641 * pic/lex.cc (lookup_keyword): Likewise.
10642 * eqn/lex.cc (token_table, def_table): Likewise.
10643 * eqn/box.cc (param_table): Likewise.
10644 * troff/input.cc (warning_table): Likewise.
10645 * libgroff/font.cc (table): Likewise.
10646 * grops/ps.cc (ps_printer::special): Likewise.
10647 * grops/psrm.cc (resource_manager::process_file): Likewise.
10648 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10649 * refer/command.cc (command_table): Likewise.
10650 * addftinfo/addftinfo.cc (param_table): Likewise.
10652 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10653 about temp's being unused.
10654 (unused): New function.
10656 * groff/pipeline.cc: Declare c_fatal.
10658 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10661 * libbib/index.cc (index_search_item::load): Prevent compiler
10662 warnings about fd_closer's being unused.
10663 (unused): New function.
10665 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
10667 * troff/input.cc (copy_mode_error): Make `prefix' static.
10670 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10672 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10673 HAVE_CC_OSFCN_H and modify accordingly.
10675 * troff/input.cc (init_charset_table): radicalex overlaps
10678 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10679 udodo!hans@relay.NL.net).
10680 * groff/configure.in: Call it.
10682 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10683 * groff/configure.in: Call it.
10684 * include/lib.h: Conditionalize declaration of pclose.
10686 * troff/div.cc (last_page_number): New global variable.
10687 (top_level_diversion::begin_page): Exit if we just printed the
10689 * troff/div.h (last_page_number): Declare it.
10690 * troff/input.cc (parse_output_page_list): Set last_page_number.
10692 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10693 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10694 tmac/tmac.X: Likewise.
10695 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10696 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10698 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
10700 * tmac/doc-ditroff (hK): Remove groff specific code which
10701 prevented page-breaks between separate manual entries. If this is
10702 the first page, don't set the page number to 1.
10704 * acgroff.m4 (GROFF_POSIX): New macro.
10705 * configure.in: Use it.
10707 * troff/node.cc (class real_output_file,
10708 real_output_file::real_output_file,
10709 real_output_file::~real_output_file): Conditionalize use of
10710 popen/pclose on POPEN_MISSING.
10711 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10712 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10713 (pipe_source): Similarily.
10715 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10717 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10718 presence of declarations by trying to compile example with
10719 conflicting declarations. (gcc only gives a warning for missing
10722 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
10724 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10725 (from Ulrich Lauther).
10727 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
10729 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10731 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
10733 * indxbib/indxbib.cc (write_hash_table): Add code for case where
10734 pointers and ints have different sizes.
10736 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
10738 * tmac/tmac.s (par*env-init): Call par@reset.
10740 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
10742 * tmac/tmac.s (@IP): Switch to a new environment when diverting
10744 (par*push-tag-env, par*pop-tag-env): New macros.
10746 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
10748 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10749 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
10751 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10752 comment. Include <time.h>.
10754 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
10756 * grops/ps.cc (is_small_h, is_small_v): Deleted.
10757 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10760 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
10762 * troff/input.cc (read_request): Only print a prompt if reading
10763 from the terminal. Also clearerr on EOF if reading from the
10764 terminal. Declare isatty.
10766 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
10768 * refer/label.y: Rename map_t to map_func and extractor_t to
10771 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
10773 * include/assert.h: Don't use volatile.
10774 * libgroff/assert.cc: Likewise.
10776 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
10778 * troff/input.cc (abort_request): Look at character in tok before
10779 calling get_copy().
10781 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
10783 * troff/troff.h (NO_RETURN): Deleted.
10784 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
10785 * troff/input.cc (exit_troff): Likewise
10787 * Makefile.in: Remove `Making ...' messages since GNU make now
10790 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10792 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
10794 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10795 to constant 1 inch.
10797 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
10799 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10801 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
10803 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10804 MARK_REG if there was no left delimiter.
10806 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
10808 * pic/troff.cc (troff_output::text): Set line thickness to
10809 relative before outputting text.
10811 * tmac/tmac.e (@k): Don't zero ?T.
10814 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
10816 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10818 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
10820 * troff/input.cc (decode_args): Warn about unquoted tabs (from
10823 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
10825 * troff/input.cc (ignoring): New variable.
10826 (ignore): Set ignoring during call to do_define_macro.
10827 (do_define_macro): Clear ignoring before interpolating terminating
10829 (copy_mode_error): New function.
10830 (get_char_for_escape_name, read_long_escape_name,
10831 interpolate_arg): Use copy_mode_error.
10832 (warning_table): Add WARN_IG.
10833 * troff/troff.h (WARN_IG): Declare.
10834 (WARN_TOTAL): Change accordingly.
10836 * groff/pipeline.c (strsignal): Rename to xstrsignal.
10837 * groff/groff.cc (strsignal): Delete declaration.
10839 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
10841 * troff/div.cc (page_offset): Use 'm' as default scaling.
10843 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
10845 * nroff/nroff.sh: Ignore -u.
10847 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
10849 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10851 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
10853 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10855 (B2): With -Tascii, leave additional vertical space before
10856 and after. Ensure that the left and right indent is restored to
10857 what it was even if the point size changes. Don't call
10858 par@finish. Change the indent, line length and title length
10859 directly. With -Tascii, make the width of the box 1n less.
10860 (B1): Remember 1n at the current point size. Don't call
10861 par@reset. Change the indent, line length and title length
10862 directly. Ensure that the temporary indent is preserved.
10863 (par*box-mark-top): Turn off no spacing mode.
10865 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
10867 * Makefile.in (dist): Use .gz suffix.
10869 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
10871 * troff/input.cc (main): Add return 0.
10872 * pic/main.cc (main): Use return instead of exit.
10873 * tbl/main.cc (main): Likewise.
10874 * eqn/main.cc (main): Likewise.
10875 * grops/ps.cc (main): Likewise.
10876 * grotty/tty.cc (main): Likewise.
10877 * groff/groff.cc (main): Likewise.
10878 * grodvi/dvi.cc (main): Likewise.
10879 * refer/refer.cc (main): Likewise.
10880 * indxbib/indxbib.cc (main): Likewise.
10881 * lkbib/lkbib.cc (main): Likewise.
10882 * soelim/soelim.cc (main): Likewise.
10883 * addftinfo/addftinfo.cc (main): Likewise.
10884 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10885 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10887 * troff/token.h (process_input_stack): Don't declare as static.
10888 * troff/input.cc: Likewise.
10890 * troff/node.c (invalidate_fontno): Make it a static member of
10891 class font_family. Change callers.
10892 * troff/node.c: Change declaration.
10894 * tbl/main.cc (struct input_entry_format): Add explicit public
10896 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10897 struct double_hline_stuff): Likewise.
10898 * tbl/table.h (struct entry_format): Likewise.
10899 * pic/object.h (struct saved_state): Likewise.
10901 * include/stringclass.h: Add forward declarations of friend
10902 functions that are later declared as inline. Don't include inline
10903 specifier in friend declaration.
10905 * libgroff/lib.h: Declare popen and pclose.
10906 * acgroff.m4 (GROFF_POPEN): New macro.
10907 * configure.in: Call it.
10909 * include/lib.h (PI): New constant. Undef first if necessary.
10910 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10911 * grops/ps.cc (degrees, radians): Likewise.
10912 * libgroff/font.cc (font::get_skew): Likewise.
10914 * grops/ps.cc (is_ascii): New function.
10915 (ps_output::put_string): Use is_ascii. Use csprint rather than
10917 (ps_printer::define_encoding): Use csspace.
10918 * libgroff/strtol.c (ISASCII): New macro.
10919 (strtol): Cast arguments to is*() and tolower() to unsigned char.
10920 Use ISASCII rather than isascii.
10921 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10922 * libgroff/cset.cc: Likewise.
10923 * libdriver/input.cc: Include cset.h.
10924 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10927 * refer/refer.cc (main): Use %ld rather than %d for longs.
10929 * libbib/index.cc (index_search_item_iterator::get_tag): Use
10932 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10934 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
10936 * troff/input.cc (hyphenation_code): Skip white space between
10939 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
10941 * tbl/table.h (table::entry_list_tailp): New member.
10942 (table::table): Initialize it.
10943 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10946 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
10948 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10949 with negative horizontal positions. Remove casts of glyph::hpos to
10951 (USHRT_MAX): Delete definition.
10952 (SHRT_MAX, SHRT_MIN): New definitions.
10953 (glyph::hpos): Change type to short.
10954 (tty_printer::end_page): Output multiple backspaces if necessary.
10955 Remove casts of glyph::hpos to int.
10957 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
10959 * tmac/tmac.s (@RT): New definition.
10961 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
10963 * refer/refer.cc (do_file): Make sure current_filename is set when
10966 * pic/common.cc (common_output::dot_line): Handle zero length
10969 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
10971 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
10972 (par@init): Initialize \n[HY].
10974 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
10976 * troff/dictionary.cc (dictionary::remove): Continue when
10979 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
10981 * Makefile.com (.y.cc): Avoid ending up with two versions of
10984 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
10986 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
10987 (\(,C): Likewise. Also fix typo.
10989 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
10991 * lib.h: Delete extraneous semi-colon.
10993 * Add pso request: `so' from a pipe.
10994 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
10995 (file_iterator::close): New function.
10996 (file_iterator::~file_iterator, file_iterator::next_file): Use
10997 file_iterator::close.
10998 (file_iterator::backtrace): Say `process' rather than `file' when
10999 the stream is popened.
11000 (pipe_source): New function.
11001 (init_input_requests): Bind ".pso" to pipe_source.
11003 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
11005 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
11007 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
11008 digits in lower case.
11010 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
11012 * Version 1.08 released.
11014 * Makefile.in (dist): Insert || true after ln -s commands that
11017 * mm: Update to mm 1.16.
11019 * acgroff.m4 (GROFF_CSH_HACK): New macro.
11020 * configure.in: Call GROFF_CSH_HACK. Substitute for
11022 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
11024 * nroff/Makefile.sub (nroff): New target.
11025 (install_data): Install nroff.
11026 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
11027 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
11029 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
11031 * eqn/Makefile.sub (neqn): Add chmod +x.
11033 * grog/Makefile.sub (grog): Remove spurious semi-colon.
11035 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
11037 * troff/input.cc (string_iterator::string_iterator()): Initialize
11040 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
11042 * troff/div.cc (macro_diversion::space,
11043 top_level_diversion::space): Don't set high_water_mark.
11044 (macro_diversion::output, top_level_diversion::output): Don't
11045 include post line space in high water mark.
11047 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
11049 * eqn/eqn.y: Don't define YYDEBUG.
11050 * pic/pic.y: Likewise.
11052 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
11054 * tmac/tmac.e ([3): Add space after comma following editors.
11055 Change double spaces to single spaces.
11056 ([4): Change double spaces to single spaces.
11058 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
11059 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
11060 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
11061 after %!PS-Adobe- (for Newsprint).
11063 * troff/div.cc (top_level_diversion::begin_page): When
11064 before_first_page is 1, set page_number to 1.
11066 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
11068 * eqn/box.cc (box::top_level): Protect equation with \&.
11070 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
11072 * groff/groff.cc (possible_command::set_name): Delete old name.
11074 * groff/groff.cc (possible_command::~possible_command): Use
11077 * troff/node.cc (troff_output_file::begun_page): New member.
11078 (troff_output_file::troff_output_file): Initialize it.
11079 (troff_output_file::really_begin_page): Only output V command if a
11080 page has been begun.
11082 * pic/pic.y (placeless_element): Delete argument to PRINT after
11085 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
11087 * Make wrapman work.
11088 * troff/div.h (class top_level_diversion): Replace
11089 first_page_begun by before_first_page (with opposite sense).
11090 * Change first_page_begun to before_first_page inverting sense.
11091 * troff/div.cc (class nl_reg): New class.
11092 (init_div_requests): Use class nl_reg for \n(nl.
11093 (top_level_diversion::begin_page): Don't call
11094 output_file::begin_page if before_first_page is 2;
11095 reset before_first_page afterwards. If have_next_page_number is
11096 false, then always increment page_number.
11097 * tmac/tmac.an: Set traps within TH rather than at the top-level.
11098 Restore compatibility mode after loading, and then disable
11099 compatibility mode in TH.
11101 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
11103 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
11105 * troff/node.h (output_file::trailer): Declare.
11106 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
11107 * troff/node.cc (output_file::trailer): New function.
11108 (troff_output_file::~troff_output_file): Move most code into...
11109 (troff_output_file::trailer): New function.
11110 (class troff_output_file): Delete page_length member. Declare
11112 (troff_output_file::really_begin_page): Use current page length
11113 for final V command.
11115 * tbl/main.cc (struct options): New decimal_point_char member.
11116 (options::options): Initialize this.
11117 (process_options): Implement decimalpoint option.
11118 (process_data): Pass decimal_point_char option to table::table.
11119 * tbl/table.h (class table): New decimal_point_char member.
11120 (table::table): Add additional argument.
11121 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
11122 second argument specifying decimal point character. Use this
11124 (table::table): Initialize decimal_point_char.
11125 (table::add_entry): Change call to find_dot.
11127 * troff/input.cc (get_copy, token::next): Implement \V.
11128 (interpolate_environment_variable): New function.
11130 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
11132 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
11133 * pic/pic.y: Likewise.
11135 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
11137 * refer/ref.cc (reference::insert_field, reference::delete_field):
11139 * troff/number.cc (parse_term): Likewise.
11141 * acgroff.m4 (GROFF_PROG_YACC): New macro.
11142 * configure.in: Use GROFF_PROG_YACC.
11144 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
11146 * Makefile.in (OPTIMIZE): New define.
11147 (DEBUG): Empty by default.
11148 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
11150 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
11151 (GROFF_ARRAY_DELETE): Likewise.
11152 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
11154 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
11156 * devps/psstrip.sed: Use different delimiter on last line (so that
11157 it works with BSD 4.4 sed.)
11159 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
11161 * devps/psstrip.sed: Delete comments.
11163 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
11164 optind, opterr, optarg.
11165 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
11168 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
11170 * Makefile.in (check): Dummy target.
11172 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
11174 * Version 1.07 released.
11176 * Integrate mm 1.11.
11178 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
11179 where start_col was meant.
11181 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
11183 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
11185 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
11187 * troff/input.cc (token::next): Make \z\o'...' and similar things
11190 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
11192 (environment): Add margin_character_flags member.
11193 * env.cc (environment::environment(symbol),
11194 environment::environment(const environment *): Initialize
11195 margin_character_flags.
11196 (margin_character): Rewrite.
11197 (environment::output_line): Add a margin character if
11198 margin_character_flags is non-zero. Turn off the
11199 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
11200 zero, use margin_character_node without copying and then set
11201 margin_character_node to 0.
11203 * devps/DESC.in: Change minimum size to 1000.
11205 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
11207 * troff/symbol.h (symbol::hash): Change return type to unsigned
11209 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
11212 * test-groff: Use -r rather than -x.
11214 * grops/psfig.diff: Include in distribution again.
11216 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
11218 * Makefile.in (dist): Use gzip.
11220 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
11222 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
11223 unistd.h as well as in stdlib.h.
11224 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
11225 defined; otherwise include <sys/types.h> and <unistd.h> if
11226 UNISTD_H_DECLARES_GETOPT is defined.
11228 * configure.in: use builtin(include, ... rather than include(...
11229 * configure: Regenerate with autoconf 1.3.
11231 * libdriver/print.cc (printer::adjust_arc_center): Use new
11232 algorithm suggested by Andy Fyfe.
11234 * libdriver/printer.cc (printer::adjust_arc_center): New function.
11235 * include/printer.h: Declare this.
11236 * grops/ps.cc (ps_printer::draw): Use it.
11237 * grodvi/dvi.cc (dvi_printer::draw): Use it.
11239 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
11241 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
11243 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
11245 * eqn/main.cc (main): Handle "eqn -".
11247 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
11249 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
11251 * mm: Integrate version 1.08.
11253 * pic/troff.cc (troff_output::finish_picture): Set
11254 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
11255 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
11256 if it's not defined. Check whether the register is non-zero rather
11257 than whether it's not defined.
11258 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
11260 * indxbib/indxbib.cc: Move all signal handling into...
11261 * indxbib/signal.c: New file.
11262 * configure.in: Call AC_RETSIGTYPE.
11264 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
11265 * configure.in: Call GROFF_STRUCT_EXCEPTION.
11266 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
11268 * troff/input.cc (token::token, token::operator=): Work round SGI
11270 * pic/object.cc (position::position): Likewise.
11272 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
11274 * pic/pic.h: Move declaration of hypot().
11276 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
11278 * pic/pic.h: Declare hypot().
11280 * pic/pic.h: Define M_PI if necessary.
11282 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
11284 * tmac/tmac.e (re): Add alternative version that doesn't use groff
11287 * devps/prologue.ps (RE): Handle the possibility that the old font
11288 doesn't have a FontName entry.
11290 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
11292 * tmac/tmac.e (fam): Redefine to set family in environment 2.
11293 (@C): Use @fam not fam.
11295 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
11297 * lookbib/lookbib.cc (main): Change type of start to const char *.
11298 * lkbib/lkbib.cc (main): Likewise.
11300 * eqn/lex.cc (definition::definition): Don't use member
11301 initializer syntax for members of anonymous unions.
11303 * troff/input.cc (input_stack::backtrace): Change type of to const
11306 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
11308 * include/stringclass.h (class string): Declare inline friend
11309 functions as inline in class declaration.
11310 * troff/hvunits.h (class hunits, class vunits): Likewise.
11311 * include/refid.h (class reference_id): Likewise
11312 * troff/troff.h (points_to_units(units), scale(units, double)):
11313 Delete declarations.
11314 * libdriver/input.cc (get_char): Delete declaration.
11315 * include/lib.h: Change 2nd argument of getopt from const char **
11317 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11318 char **' before assigning to a `const char **'.
11319 * tbl/table.cc: Delete extra declarations of prints().
11321 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
11323 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11324 char **' before assigning to a `const char **'.
11326 * libgroff/errarg.cc (errarg::errarg): Don't use member
11327 initializer syntax for members of anonymous unions.
11329 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
11331 * mm: Integrate version 1.07.
11333 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
11335 * troff/input.c (translate2): Rename to
11336 (translate_no_transparent).
11337 (init_input_requests): Rename tr2 to trnt.
11339 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
11341 * troff/charinfo.h (class charinfo): Add transparent_translate field.
11342 (charinfo::set_translation, charinfo::set_special_translation):
11343 Add second argument that specifies value for
11344 transparent_translate.
11345 (charinfo::get_translation, charinfo::get_special_translation):
11346 Add optional second argument that specifies whether translation is
11347 being used for transparent throughput.
11348 * troff/input.cc (charinfo::set_translation,
11349 charinfo::set_special_translation): Handle second argument.
11350 (charinfo::charinfo): Initialize transparent_translate.
11351 (translate): Split main part off into
11352 (do_translate): New function. Pass argument saying whether
11353 translation applies to transparent throughput.
11354 (translate2): New request.
11355 (init_input_requests): Bind translate2 to `tr2'.
11357 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
11359 * tbl/table.h (class table): Add `nokeep' flag.
11360 * tbl/main.cc (process_options): Handle `nokeep' option.
11361 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11362 table::do_bottom): Don't output keep/release macro definitions or
11363 calls when `nokeep' option has been specified.
11365 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
11367 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11369 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
11371 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11372 block_entry::divert, alphabetic_block_entry::divert): Add extra
11373 argument giving column separation.
11374 (table::compute_widths): Pass column separation to
11375 table_entry::divert().
11376 (block_entry::do_divert): If an entry spans multiple columns and a
11377 minimumum width has been specified for each column, then set the
11378 line length to the sum of the widths (plus possibly the column
11381 * troff/input.cc (set_escape_char): Don't set the escape_char
11382 until after calling has_arg().
11384 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
11386 * tbl/table.cc (table::do_top): Add missing \s0 for double box
11389 * tbl/table.cc (table::print_double_hline): Avoid extra new line
11390 in case where r > nrows - 1.
11392 * tbl/table.cc (BODY_HEIGHT): Deleted.
11393 (LINE_SEP): New definition.
11394 (table::print_single_hline, table::print_double_hline,
11395 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11396 table::do_row, table::do_top): Use LINE_SEP space before a line
11397 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11399 * tbl/table.cc (text_entry::print_contents): New function.
11400 (text_string_name, right_text_string_name): Deleted.
11401 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11402 (simple_text_entry::do_width, numeric_text_entry::do_width,
11403 alphabetic_text_entry::do_width): Don't store the contents of the
11405 (left_text_entry::simple_print, right_text_entry::simple_print,
11406 center_text_entry::simple_print,
11407 alphabetic_text_entry::simple_print,
11408 numeric_text_entry::simple_print): Print the entry directly
11409 instead of using the stored string.
11411 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
11413 * devps/Makefile: Strip PostScript files.
11414 * devps/prologue: Rename to...
11415 * devps/prologue.ps.
11416 * devps/psstrip.sed: New file.
11417 * devps/download: Use .pfa rather than .ps for installed versions
11420 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
11422 * troff/env.cc (input_trap): Give a warning if the argument is out
11425 * troff/env.cc (adjust): Treat negative argument as missing. Round
11426 argument > 5 down to 5.
11428 * troff/env.cc (center, right_justify): Make negative argument zero.
11430 * troff/div.cc (page_offset, vertical_position_traps): Treat
11431 invalid argument as missing.
11432 * troff/env.cc (line_spacing, line_length, title_length, indent,
11433 underline, hyphen_line_max_request, control_char,
11434 no_break_control_char, widow_control_request, adjust, input_trap,
11435 point_size): Likewise.
11436 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11437 constant_space): Likewise.
11438 * troff/input.cc (compatible, shift, warn_request,
11439 set_escape_char): Likewise.
11441 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11442 * tbl/table.cc (table::table): Likewise.
11444 * Makefile.dev (install_dev): depends on $(DEVFILES).
11446 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
11448 * devX75, devX75-12, devX100, devX100-12: New directories.
11449 * Makefile.in: Add these to DEVDIRS.
11451 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11452 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11453 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11454 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11456 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11457 (uninstall): New target.
11458 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11459 uninstall_prog, uninstall_dev): New targets.
11461 * troff/div.cc (return_request): Treat an invalid argument as
11464 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
11466 * tmac/tmac.e ((f): Set up the environment even when there's a
11467 current diversion. Transperently throughput a call to @N.
11470 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
11472 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11473 up to vertical resolution.
11475 * tbl/table.cc (table::do_row): Change row number after printing
11478 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11480 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
11482 * Rename CHANGES to NEWS.
11484 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
11486 * libgroff/new.cc (operator new): Avoid calling malloc(0).
11488 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
11490 * man.ultrix: Removed.
11492 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
11494 * Makefile.comm (extraclean): Delete files whose names begin with
11497 * pic/troff.cc (troff_output::text): Fix typo in implementation of
11500 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
11502 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11503 * troff/div.cc (page_length, need_space, space_request): Treat
11504 invalid optional argument as missing.
11505 * troff/env.cc (number_lines): If the first argument is present
11506 but not a number, turn on line numbering, don't change the next
11507 line number and parse the remaining arguments.
11509 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11511 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
11513 * eqn/box.h: Change declaration accordingly.
11514 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
11515 the specified size was bad but don't give an error. Check for
11517 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11518 * eqn/lex (do_size): Likewise.
11520 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
11522 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11523 compatible headers.
11525 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
11527 * tbl/table.cc (table::init_output): Improve error message when
11528 table won't fit on one page.
11530 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
11532 * pic/troff.cc (troff_output::start_picture): Generate line
11533 containing a horizontal motion equal to the width of the picture.
11535 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11536 using GROFF_COMMAND_PREFIX environment variable.
11538 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
11540 * mdate.sh: Use $NF rather than $(NF).
11542 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
11544 * pic/main.cc (main): Use %1 not %c in argument to warning.
11546 * eqn/main.cc (main): Output code to check that geqn was given the
11549 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
11551 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11552 `ln -s ../Makefile .; make; rm -f Makefile'.
11554 * troff/hyphen: Rename to...
11556 * troff/input.cc (main): Delete -H option. Don't call
11557 read_hyphen_file().
11558 * troff/env.cc: Include searchpath.h and macropath.h.
11559 (exception_dictionary): Deleted.
11561 (read_hyphen_file): Deleted.
11562 (hyphenation_language): New struct.
11563 (class trie, class hyphen_trie): Move declarations up.
11564 (trie_node::~trie_node): Deleted.
11565 (trie::delete_trie_node): New function.
11566 (trie::do_delete): New pure virtual function.
11567 (hyphen_trie::do_delete): New function.
11568 (trie::~trie): New function.
11569 (hyphen_trie::~hyphen_trie): New function.
11570 (trie::clear): No need to chcek that tp is not 0.
11571 (current_language, language_dictionary): New variables.
11572 (hyphen_word): Give an error if no current language. Use
11573 exceptions dictionary in current language.
11574 (hyphen_trie::read_patterns_file): Find file using macro_path.
11575 Allow comments (starting with %) in patterns file. Don't make it
11576 a fatal error if the file can't be found.
11577 (hyphenate): Return if no current language. Get the exceptions
11578 dictionary and the hyphenation patterns from the current language.
11579 (set_hyphenation_language): New variable.
11580 (hyphenation_patterns_file): New function.
11581 (hyphenation_language_reg): New class.
11582 (hyphenation_language_reg::get_string): New function.
11583 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11584 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
11586 * groff/groff.cc (main, help, synopsis): Delete -H option.
11587 * include/Makefile.sub: Don't define HYPHENFILE.
11588 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11589 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11590 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11591 hyphenation patterns.
11593 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
11595 * eqn/neqn.sh: New file.
11596 * eqn/Makefile.sub: Handle neqn.sh.
11598 * eqn/eqn.h: Declare `nroff' variable.
11599 * eqn/box.cc (param_table): Add `nroff' param.
11600 (nroff): Define it.
11601 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11603 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11605 * troff/troff.h (WARN_FONT): New warning.
11606 (WARN_TOTAL): Change accordingly.
11607 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11608 (warning_table): Add WARN_FONT.
11609 * troff/node.cc (mount_font_no_translate): Pass argument to
11610 font::load_font. If this is non-zero, give a warning.
11611 Don't give an error message when accessing a font that has already
11612 been found to be invalid.
11613 * include/font.h (font::load, font::load_font): Add additional
11614 optional argument which suppresses error message if the font is
11616 * libgroff/font.cc (font::load_font): Handle additional argument.
11617 (font::load): Add additional argument. If this is non-null, set it
11618 to 1 and don't give error message.
11620 * include/printer.h (printer::end_page): Add argument giving
11622 * libdriver/input.cc (do_file): Pass this.
11623 * grops/ps.cc (ps_printer::end_page): Add argument.
11624 * grodvi/dvi.cc (dvi_printer::end_page,
11625 draw_dvi_printer::end_page): Add argument.
11626 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11627 columns_per_page members. New member nlines.
11628 (DEFAULT_LINES_PER_PAGE): Deleted.
11629 (tty_printer::tty_printer): Don't compute lines_per_page from
11630 font::paperlength. Don't compute columns_per_page from
11632 (tty_printer::add_char): Don't check horizontal position against
11633 columns_per_page. Grow glyphs vector if neccessary.
11634 (tty_printer::end_page): Add argument giving page_length in units.
11635 Discard lines past end of page.
11637 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
11639 * tmac/tmac.tty-char: Fix definition of \(/l.
11641 * tmac/tmac.X: Define \(en.
11643 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
11645 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11646 lpq, then use lp rather than lpr.
11648 * tmac/tmac.s (par@reset): Don't call `ad'.
11649 (par*env-init): Call `ad'.
11651 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
11653 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11656 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11657 * indxbib/indxbib.cc: Likewise.
11659 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
11661 * libgroff/putenv.c: New file.
11662 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11663 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11664 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11665 stdlib.h with AC_HAVE_HEADERS.
11667 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
11669 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11672 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
11674 * eqn/box.cc (gsize): Make it an int.
11675 (set_gsize): Parse argument handling increment or decrement.
11676 (box::top_level): Convert gsize to a string.
11678 * troff/input.cc (exit_troff): Make buf unsigned char [].
11679 Call to make_temp_iterator casts buf to char*.
11681 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11683 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11684 * Makefile.cpg (depend.temp): Likewise.
11686 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11688 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11690 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
11692 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11694 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
11696 * Version 1.06 released.
11698 * Integrate mm 1.04.
11700 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
11702 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11704 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
11706 * afmtodit/afmtodit.pl: Add -n option that disables generation of
11708 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11709 afmtodit. Regenerate.
11711 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11712 @f back past the current position.
11714 * tmac/tmac.e: Change calls to @R so that comments are not part of
11717 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
11719 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11721 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11722 check that we can link a call to a function declared in <stdio.h>.
11723 (GROFF_UNISTD_H): New macro.
11724 * configure.in: Call it.
11725 * Makefile.in: Document it.
11726 * include/posix.h: New file.
11727 * troff/troff.h: Don't include <osfcn.h>
11728 * troff/input.cc: Include posix.h.
11729 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11731 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11732 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11734 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11735 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11736 * libbib/search.cc (O_RDONLY): Delete definition.
11737 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11738 Don't include <osfcn.h>.
11740 * acgroff.m4 (GROFF_TIME_T): New macro.
11741 * configure.in: Call it.
11742 * Makefile.in: Document it.
11744 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11745 * configure.in: Call it.
11746 * Makefile.in: Document -DTRADITIONAL_CPP.
11747 * include/ptable.h: Don't include generic.h.
11748 (name2): Define it.
11750 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11751 Afterwards remove [T1 and [T2.
11752 (ref*spec!0, ref*spec!2): Use T1 rather than T.
11753 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11754 (ref*add-T2): Renamed from ref*add-T.
11755 (ref*add-T1): New macro.
11757 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
11759 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11761 * libbib/index.cc: Include <fcntl.h>.
11762 (O_RDONLY): Define if necessary.
11763 (make_index_search_item, index_search_item_iterator::get_tag,
11764 index_search_item::check_files): Use O_RDONLY.
11765 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11766 (O_RDONLY): Define if necessary.
11767 (search_list::add_file): Use O_RDONLY.
11768 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11770 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11773 * libbib/index.cc (S_ISREG): Define it if necessary.
11774 (index_search_item::load): Use S_ISREG.
11776 * include/driver.h: Include <errno.h>.
11778 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
11780 * eqn/box.cc (body_height): Increase default value to 85.
11781 (body_depth): Increase default value to 35.
11783 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
11785 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11786 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11787 protected from expansion with \E.
11789 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11791 * Makefile (Makefile): New target.
11793 * Makefile.sub (configure, distfiles): New targets.
11795 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11798 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
11800 * eqn/box.cc (param_table): Add body_height and body_depth.
11802 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11804 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
11806 * psbb/Makefile.sub: Don't link with libgroff.a.
11808 * acgroff.m4 (GROFF_PUTENV): New macro.
11809 * configure.in: Call GROFF_PUTENV.
11810 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11811 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11814 * troff/env.cc (distribute_space): Rename force_forward argument
11815 to force_reverse. Reverse the list if force_reverse is true.
11817 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
11819 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11821 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11822 height or depth to be negative. Guard against SUP_RAISE quantity
11825 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
11827 * devps/generate/textmap: Add `an' (arrowhorizex).
11828 * tmac/tmac.ps: \(an overlaps horizontally.
11829 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11831 * devps/symbolchars: Add arrowverttp, arrowvertbt.
11832 * devps/textmap: Add arrowvertex.
11833 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11834 updownarrow delimiters.
11835 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11837 * tbl/table.cc (simple_entry::position_vertically,
11838 block_entry::position_vertically): For a centered entry, perform
11839 the motion in two stages.
11841 * refer/refer.cc (split_punct): Don't call lookup_token if there
11844 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
11846 * troff/input.cc (token::next): Delete token_node after copying
11849 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11852 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11854 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11856 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
11858 * grops/ps.cc (usage): -b option takes an argument.
11860 * devps/prologue (PLG): New procedure.
11861 * grops/ps.cc (main, usage): New -g option.
11862 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
11865 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
11867 * include/cset.h: Include <limits.h> if we have it.
11869 * libgroff/illegal.cc: New file.
11870 * include/lib.h (illegal_input_char): Use table.
11871 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11872 * pic/lex.cc (ARG1): Renumber to 14.
11873 * eqn/lex.cc (ARG1): Likewise.
11875 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11876 (eg 1.05.90) correctly.
11878 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
11880 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11881 Rename $r and $R registers to $v and $V.
11882 ($r, $R): Initialize to 0.
11883 (@v, @V): New macros.
11887 * troff/input.cc (main, usage): Add -R option that says not to
11889 * eqn/main.cc (main, usage): Rename -n to -R.
11891 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
11893 * devps/DESC.in: Leave font positions 5-9 blank.
11894 * devdvi/DESC.in: Likewise.
11896 * grog/grog.pl: Handle `.PS <file' correctly.
11898 * troff/input.cc (input_stack::push): Improve error message when
11899 input stack limit exceeded.
11901 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
11903 * refer/refer.cc (main): Fix typo in handling of `a' option.
11905 * refer/refer.cc (do_bib): In state START after a newline remain
11908 * groff/groff.sh: Deleted.
11909 * groff/Makefile.sub: Delete handling of groff.sh.
11911 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11912 to determine whether to use \X'ps:...'.
11913 * tmac/troffrc: Set 0p register to 0.
11914 * tmac/tmac.ps: Set 0p register to 1.
11916 * groff/groff.cc: Support -X option. Give warning for -TXps and
11917 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11918 * tmac/troffrc: Support -r.X=1.
11920 * pic/troff.cc (troff_output::dot): Don't test
11921 zero_length_line_flag.
11923 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
11925 * include/lib.h: Declare getopt() and friends unless
11926 STDLIB_H_DECLARES_GETOPT is defined.
11928 * doc/chars.tr: Delete.
11929 * man/groff_char.man: New file.
11931 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
11933 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11934 user has changed register format.
11936 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
11938 * groff/groff.cc: Get rid of device_table. Get postprocessor from
11939 `postpro' command in DESC file. Get spooler command from `print'
11940 command in DESC file. Execute spooler command with /bin/sh.
11942 * groff/groff.cc: Split Unix-specific parts into...
11943 * groff/pipeline.c: New file.
11946 * COPYING: New file.
11947 * all files: Update copyright notices.
11949 * Rearrange files. Redo Makefiles. Use autoconf.
11951 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
11953 * troff/input.c (charinfo_to_node_list): Interpret character
11954 definition with escape_char of `\'.
11956 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
11958 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11959 Define INT_DIGITS as big enough for 64-bit integer.
11960 * lib/strtol.c: Don't include lib.h.
11961 * lib/lib.h: Delete ifdef __cplusplus stuff.
11963 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
11965 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
11966 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
11967 get DESC from current directory.
11969 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
11971 * tbl/main.c (main): Always reset the line number when reading
11974 * tbl/table.c (table::print_single_hline, table::print_double_hline,
11975 table::define_bottom_macro, table::do_row, table::do_top): Round
11976 vertical spacing up to vertical resolution.
11978 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
11980 * ps/ps.h (enum resource_type): Avoid comma at end of
11982 * dvi/dvi.c (class dvi_printer): Likewise.
11983 * dvi/tfmtodit.c (gf::load): Likewise.
11984 * refer/label.y (struct expression): Likewise.
11985 * refer/refer.c (class label_processing_state): Likewise.
11986 * refer/indxbib.c (do_file): Likewise.
11987 * troff/troff.c (enum warning_type): Likewise.
11988 * tbl/main.c (process_data): Likewise.
11989 * troff/charinfo.h (class charinfo):
11991 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
11993 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
11995 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
11997 * groff.c: Move to new groff subdirectory.
11998 * groff/Makefile: New file.
11999 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
12001 * man/mdate.sh: Use ls -L if supported.
12003 * Consolidate all header files produced by gendef into lib/defs.h.
12004 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
12005 Don't include path.h.
12006 * lib/Makefile (path.h): Don't generate.
12007 * troff/input.c: Include defs.h. Don't include config.h.
12008 * troff/Makefile (config.h): Don't generate.
12009 * refer/index.h: Don't include suffix.h.
12010 * refer/index.c: Include defs.h.
12011 * refer/indxbib.c: Include defs.h.
12012 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
12014 * refer/Makefile (suffix.h, path.h): Don't generate.
12015 * groff.c: Don't include config.h. Include defs.h.
12016 * Makefile (config.h): Don't generate.
12017 (lib/defs.h): Generate.
12018 (topclean): Remove lib/defs.h.
12020 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
12022 * lib/malloc.c, lib/getpagesize.h: Deleted.
12023 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
12025 * lib/Makefile: Delete malloc-related stuff.
12026 * lib/new.c: Workaround COOKIE_BUG if necessary.
12028 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
12029 needed header files directly.
12030 * refer/refer.h: Omit definition of DEFAULT_INDEX.
12031 * Makefile: Include definition of DEFAULT_INDEX in path.h.
12033 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
12035 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
12037 * lib/font (font::load_desc, font::load): Don't split argument of
12039 (font::handle_unknown_font_command): Change type.
12040 * ps/ps.c (ps_font::handle_unknown_font_command,
12041 handle_unknown_desc_command): Change type.
12042 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
12044 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
12046 * lib/font.h (font::handle_unknown_font_command): Add file and
12048 * lib/font.c (font::handle_unknown_font_command):
12049 * ps/ps.c (ps_font::handle_unknown_font_command):
12050 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
12051 lineno arguments. Use _with_file_and_line functions for error
12054 * lib/fontfile.c (font::unknown_desc_command_handler): New static
12056 * lib/font.c (font::set_unknown_desc_command_handler): New
12058 (font::load_desc): For unknown commands, call
12059 unknown_desc_command_handler if not null.
12060 * lib/font.h (class font): Declare them.
12061 (FONT_COMMAND_HANDLER): New typedef.
12062 * ps/ps.c (handle_unknown_desc_command): New function.
12063 (main): Set bflag if we had a -b option. Call
12064 font::set_unknown_desc_command_handler.
12065 (broken.h): Don't include.
12066 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
12068 * ps/devps/Makefile: Add `broken' command to DESC file using
12069 BROKEN_SPOOLER_FLAGS.
12071 * macros/tmac.e ([, ]): Add as synonyms for { and }.
12073 * macros/tmac.e ($p): Only exdent if \$3 > 0.
12075 * macros/tmac.e (@R, @S): New macros.
12076 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
12077 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
12078 Declare $H, $[0-9], .. macros with @S.
12079 Declare |0, |1, |2, |3 strings with @S.
12081 * macros/tmac.e (@S): Rename to @U.
12083 * macros/tmac.e (@z): Define @b and bp as empty instead of
12086 * macros/tmac.e (@m): Deleted.
12087 (@h): Don't call @m.
12088 (@z): Don't set @m trap.
12090 * macros/tmac.e ($h, $f): Define |z as empty string.
12092 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
12095 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
12097 ()f): Likewise for * register.
12099 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
12100 argument is missing, don't change $R. Call sr with three
12101 arguments when initializing.
12103 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
12105 * macros/tmac.e (sr): New macro.
12106 Initialize $r and $R using sr.
12108 * macros/tmac.e (,): Delete \*(#[.
12110 * troff/env.c (set_tabs): Read the tab type even if the position
12111 is bad. Allow the position of the first tab stop to be negative.
12113 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
12115 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
12117 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
12118 rather than -DPATHCONF_MISSING.
12119 * Makefile: Get rid of PATHCONF_MISSING.
12121 * refer/map.c: New file.
12122 * refer/index.c: Interface to mmap through map.c. Rename map_size
12124 * refer/Makefile: Handle map.c.
12125 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
12127 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
12129 * Makefile: RANLIB should be `true' if there is no ranlib.
12130 * lib/Makefile (libgroff.a): Simplify.
12131 * driver/Makefile (libdriver.a): Simplify.
12133 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
12134 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
12137 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
12139 * troff/env.c (compare_ranges): Declare as extern "C".
12141 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
12143 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
12145 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
12147 * pic/troff.c (troff_output::text): Merge in grops_output::text,
12148 but conditionalize use of \X based on \*(.T.
12149 (grops_output::*): Deleted.
12150 * pic/output.h: Delete declaration of make_grops_output.
12151 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
12152 by default. -n sets it to 0.
12153 (usage): Corresponding changes.
12154 * groff.c (main): Don't pass -x or -p to pic.
12155 * groff.sh: Likewise.
12157 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
12160 * ps/devps/afmtodit: Change calculation of asc_boundary and
12161 desc_boundary. Make these bounds inclusive.
12162 * ps/devps: Regenerate font files.
12164 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
12166 * macros/tmac.latin1: New file.
12167 * macros/tmac.tty-char: Use tmac.latin1.
12168 (tmac.tty-tr): Deleted.
12169 * macros/Makefile: Install tmac.latin1.
12170 * macros/tmac.dvi: Use tmac.latin1.
12171 * macros/troffrc: Translate \[char160] onto no-break space here.
12172 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
12174 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
12176 * macros/tmac.Xps: Use `do' request.
12178 * macros/tmac.ps: Use `do' request.
12180 * macros/tmac.e (@C): Use `do' request.
12182 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
12183 * macros/Makefile: Install tmac.X*.
12185 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
12186 * tty/Makefile: Don't install tmac.tty*.
12187 * macros/Makefile: Install tmac.tty*.
12189 * dvi/tmac.dvi: Move to macros.
12190 * dvi/Makefile: Don't install tmac.dvi.
12191 * macros/Makefile: Install tmac.dvi.
12193 * ps/tmac.ps*: Move to macros.
12194 * ps/Makefile: Don't install tmac.ps*.
12195 * macros/Makefile: Install tmac.ps*.
12197 * eqn/box.c: Provide draw_lines parameter corresponding to -D
12199 * macros/eqnrc: Set draw_lines parameter based on device.
12200 * groff.c: Don't pass -D flag to eqn.
12201 * groff.sh: Likewise.
12202 * eqn/main.c: Warn about use of -D.
12204 * troff/input.c (process_startup_file): New function.
12205 (main): Call process_startup_file().
12206 * macros/troffrc: New file.
12207 * macros/Makefile: Install troffrc.
12208 * groff.c (main): Don't pass extra -m option to troff. For a
12209 pseudo device pass the name of the pseudo device to troff using
12211 * groff.sh: Likewise.
12212 * groff.c (possible_command::prepend_arg): Deleted.
12214 * troff/input.c (do_request): New function.
12215 (init_input_requests): Bind "do" to do_request.
12217 * eqn/main.c (main): Instead of loading eqnchar from device directory,
12218 load eqnrc from macro directory.
12219 * macros/eqnrc: New file.
12220 * macros/Makefile: Install eqnrc.
12221 * ps/devps/eqnchar: Deleted.
12222 * ps/devps/Makefile: Don't install eqnchar.
12223 * dvi/devdvi/eqnchar: Deleted.
12224 * dvi/devdvi/Makefile: Don't install eqnchar.
12225 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
12228 * lib/device.[ch]: New files.
12229 * lib/font.h (font::set_device_name, font::get_device_name):
12231 * lib/fontfile.c: Use device.h.
12232 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
12233 * troff/input.c: Delete definition of `device'.
12234 (main): Don't initialize device.
12235 * troff/troff.h: Include device.h rather than declaring device.
12236 * troff/Makefile: No need to handle DEVICE.
12237 * driver/input.c: Include device.h. Don't use
12238 font::{set,get}_device_name.
12239 * groff.c, Makefile: Rename device.h to config.h.
12240 * groff.c: Use library device variable.
12241 * eqn/main.c: Use library device variable.
12242 * eqn/Makefile: No need to handle DEVICE.
12244 * lib/searchpath.[ch]: New files.
12245 * lib/Makefile: Handle searchpath.[ch].
12246 * troff/input.c (open_file, init_dirs): Deleted.
12247 (macro_dirs): Deleted.
12248 (open_mac_file, macro_source): Use class search_path.
12249 (add_string, struct string_list): Move definition.
12250 (main): Change -M option to use macro_path. Delete call to
12252 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
12253 Rewrite to use class search_path.
12254 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
12255 * lib/Makefile: fontfile.c depends on searchpath.h.
12256 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
12258 * lib/macropath.[ch]: New files.
12259 * troff/Makefile: No need to handle MACROPATH.
12261 * troff/input.c: Delete DUMP code.
12262 * lib/fontfile.c, lib/font.h: Delete
12263 font::forget_command_line_font_dirs.
12265 * troff/input.c (push_token): New function.
12266 (handle_first_page_transition): Use push_token().
12267 (process_input_stack): Change handling of a space at the beginning
12270 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
12272 * troff/input.c (font_dirs): Delete unused variable.
12274 * eqn/lex.c (do_set): Correct error messages.
12276 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
12278 * troff/input.c (do_define_string): Allow the string name to be
12279 followed immediately by a tab.
12280 (define_character): Likewise.
12282 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
12284 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12287 * troff/input.c (input_iterator::is_file): New virtual function.
12288 (file_iterator::is_file): New function.
12289 (input_stack::end_file): New function.
12290 (input_stack::next_file): Handle the situation where there is no
12291 file on the input stack correctly. Avoid making two passes over
12293 (next_file): Make the filename optional; in this case call
12294 input_stack::end_file().
12296 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
12298 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
12299 produce a real _ charater when the current font is CW and _
12302 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
12303 expression to work around gcc 2.2 bug.
12305 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
12307 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12309 * troff/env.c (environment::add_padding): New function.
12310 (environment::add_char): Use add_padding().
12311 (environment::space): Likewise.
12312 (environment::wrap_up_field): Add some padding if there is none
12313 and there's no current tab.
12314 * troff/env.h: Declare environment::add_padding.
12316 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
12318 * pic/pic.y: undef fmod and rand before declaring them.
12320 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
12322 * troff/input.c (main): If the DESC file specifies a font name of
12323 0, then leave the corresponding font position empty.
12325 * nroff.sh: New file.
12326 * Makefile (install.nobin): Install nroff.sh.
12328 * tty/devlatin1/R.proto: Add ao as synonym for de.
12329 * tty/tmac.tty-char: Define ao as o.
12331 * tty/dev{ascii,latin1}/R.proto: Add aq.
12332 * tty/tmac.tty-char: Delete definition of aq.
12334 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
12336 * troff/input.c (init_charset_table): Don't translate 0240.
12337 * ps/tmac.ps: Translate char160 to space.
12338 * dvi/tmac.dvi: Likewise.
12339 * tty/tmac.tty: Likewise.
12341 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
12343 * dvi/tmac.dvi: Add support for all Latin-1 characters.
12345 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12346 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12349 * tty/tmac.tty-char: Add \(ah.
12351 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12352 No need to define \(FM and \(!/. Conditionalize all character
12355 * ps/devps/lgreekmap: Add +h, +f, +p.
12357 * ps/tmac.psnew: New file.
12358 * ps/Makefile: Install tmac.psnew.
12360 * troff/input.c (charinfo_to_node_list): Don't ever interpret
12361 character definitions in compatible mode.
12363 * troff/input.c (remove_character): New function.
12364 (init_input_requests): Bind remove_character to "rchar".
12366 * ps/tmac.psold: New file.
12367 * ps/Makefile: Install tmac.psold.
12368 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12369 characters into tmac.psold. Make these definitions unconditional.
12371 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12373 * ps/tmac.ps: Don't define \('c and \('C.
12375 * ps/devps/textmap: Move Greek characters to...
12376 * ps/devps/symbolchars:
12378 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
12380 * ps/devps/text.enc: Add quotesingle.
12381 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12382 * tty/tmac.tty-char: Likewise.
12383 * dvi/devdvi/texmi.map: Add +h, +f, +p.
12384 * dvi/devdvi/texi.map: Add Fn.
12385 * dvi/devdvi/msam.map: Add lz.
12386 * dvi/tmac.dvi: Handle Bq, bq, aq.
12388 * pic/lex.c (get_token): Recognize 'th.
12389 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12391 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
12393 * ps/devps/textmap: Move di, mu, +- to...
12394 * ps/devps/symbolchars:
12396 * macros/tmac.s (@XS): Don't call par@reset or fi.
12397 (XA): Call LP. Turn off adjustment. Reduce line length.
12399 * macros/tmac.s: Initially alias XS to LP.
12400 (XS): Rename to @XS.
12401 (cov*ab-init): Alias XS to @XS.
12403 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
12405 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12406 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12407 (token::is_size, token::changes_env): Deleted.
12408 * troff/number.c (parse_term): No need to process \s explicitly.
12409 Call tok.next() only after scale indicator has been processed.
12410 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12412 (token::next): Handle \s, \f, \S, \H immediately rather than
12413 returning them as tokens.
12414 (token::operator==, token::description, token::add_to_node_list,
12415 token::process): Remove handling of deleted tokens.
12417 * troff/env.c (environment::add_char): When adding padding
12418 indicator character, call start_line() if necessary.
12420 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
12422 * ps/devps/afmtodit: Don't output 0 kerns.
12424 * ps/devps/afmtodit: Remove directory from name of encoding in
12425 font description file.
12427 * ps/devps/afmtodit: Improve error messages.
12429 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12431 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12432 * ps/devps/FontMakefile: Deleted.
12433 * ps/devps/afmname: New file.
12435 * ps/devps/symbol.sed: New file.
12436 * ps/devps/symbol.diff: Deleted.
12437 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12438 Generate zapfdr.afm from zapfd.afm.
12440 * tty/tmac.tty (tty-char): Prefix definition with ".
12442 * macros/tmac.an (TP): Don't start a diversion if one has already
12445 * tty/tmac.tty-char: Add Latin-1 characters.
12447 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12449 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
12451 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12452 Move declaration of struct horizontal_span.
12454 * tbl/table.c (table::table): Initialize span_list.
12455 (table::~table): Delete span_list.
12457 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12459 * ps/devps/Makefile: Avoid dependency on GNU make.
12461 * ps/tmac.ps: Check that character does not already exist before
12464 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12465 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12466 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12469 * tty/tmac.tty-char: New file.
12470 * tty/Makefile: Install tmac.tty-char.
12471 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12474 * tty/tmac.tty: Fix definition of \(34.
12476 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12477 bracket-drawing characters onto |. Add *o.
12479 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12480 only if current_field.
12482 * troff/dictionary.c (dictionary::lookup): Free old_table after
12485 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
12487 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12488 whose glyphs are identical to glyphs of some Roman character.
12490 * tty/devlatin1/R.proto (bu): Deleted.
12491 * tty/devascii/R.proto (bu): Deleted.
12492 * tty/tmac.tty: Add definition of \(bu.
12494 * eqn/main.c (do_file): Pass FILE as argument.
12495 (main): Automatically load eqnchar. New options -F and -n.
12496 Pass do_file an opened FILE.
12497 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12498 No need to include font.h.
12499 * groff.sh: Likewise. Don't need to use - for standard input.
12500 Prefix files with -- if first file starts with -.
12502 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12504 * troff/env.c (environment::possibly_break_line): Don't set line
12505 to 0 across call to output_line(). Don't call output_line() until
12506 after discarding nodes after break.
12508 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
12510 * request.h (macro::empty): Declare it.
12511 * input.c (macro::empty): New method.
12512 (interpolate_macro): Don't give a WARN_SPACE if the two-character
12515 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
12517 * troff/env.c (environment::start_field): Decrement space_total
12518 when a space is frozen.
12520 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
12522 * macros/tmac.an (R): Delete macro.
12524 * troff/input.c (get_copy, token::next): Support \# (like \" but
12525 newline is ignored).
12527 * troff/input.c (token::next): Fix error message in 'Y' case.
12529 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
12531 * eqn/delim.c (define_extensible_string): Recognize any prefix of
12534 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
12536 * c++test.c: Include <osfcn.h>.
12538 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12541 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
12543 * tbl/table.c (table::divide_span): Don't count column separation
12544 if expand was specified.
12546 * tbl/main.c (process_format): Don't ignore width specs in
12547 continued format. Give warning for changing equal widths or
12548 column separation in continued format.
12549 (process_data): Set column separation, minimum width, equal
12550 columns at end of table.
12552 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
12554 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12555 node::add_discretionary_hyphen): Use soft_hyphen_char.
12556 (set_soft_hyphen_char): New function.
12557 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
12559 * Makefile (c++tested): Give more helpful message if test fails.
12561 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
12563 * troff/input.c (init_charset_table): Translate 0240 to
12564 an unbreakable space.
12566 * troff/token.h (token::hyphen_indicator): New function.
12567 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12569 * troff/input.c (translate): Allow translation to \%.
12570 * troff/node.c (node::add_char): Handle
12571 TRANSLATE_HYPHEN_INDICATOR.
12572 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12574 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12577 * tty/devlatin1/R.proto: \(hy and - should print as 055.
12579 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
12581 * groff.c (run_commands): If the last command gets a SIGPIPE send
12582 a SIGPIPE to all children than haven't yet terminated. When
12583 command terminates, set pid field to -1.
12585 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
12587 * groff.c (main): Pass an appropriate -filename option to gxditview.
12589 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
12591 * Makefile.bd (install): Remove existing program before copying.
12593 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12594 programs which have Unix counterparts to be installed with
12595 user-specified prefix.
12597 * troff/input.c (exit_troff): Don't check if exit_started.
12598 (exit_request): Don't call exit_troff if exit_started.
12600 * Makefile.bd (install.mm): Rename to install.dwbmm.
12602 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
12604 * driver/input.c (do_file): Add missing break for '#' case.
12606 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
12608 * troff/input.c (input_stack::clear): Clear past any boundaries and
12609 then add the boundaries back.
12611 * troff/input.c (exit_troff): Return immediately if already
12614 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
12616 (pg*end-page): If the text has ended and there are no more
12617 footnotes or keeps, exit.
12619 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12621 * troff/input.c (init_charset_table): Make \(rq transparent by
12624 * macros/tmac.an: Define lq and rq strings.
12626 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12628 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
12630 * troff/env.c (environment::final_break): New function.
12631 (environment::newline): Set prev_line_interrupted to 2 if
12633 * troff/env.h: Declare environment::final_break.
12634 * troff/input.c (exit_troff): Call environment::final_break()
12635 instead of environment::do_break().
12637 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12638 doesn't already exist.
12639 * macros/man.local: New file.
12640 * macros/tmac.an: Load man.local.
12641 * macros/man.ultrix: New file.
12643 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
12645 * troff/input.c (exit_groff): Rename to...
12646 (exit_troff): New function.
12648 * troff/div.c (exit_started, done_end_macro,
12649 seen_last_page_ejector): New global variables.
12650 (began_page_in_end_macro): New static variable.
12651 (exit_flag): Deleted.
12652 (top_level_diversion::top_level_diversion): Initialize
12654 (top_level_diversion): More elaborate test for whether
12655 cleanup_and_exit() should be called.
12656 Set began_page_in_end_macro if the end macro isn't yet finished.
12657 * troff/div.h (top_level_diversion::last_page_count): New data
12659 (top_level_diversion::set_last_page): New function.
12660 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12661 * troff/env.c (do_break): Zero prev_line_interrupted.
12662 * troff/input.c (exit_flag): Delete declaration.
12663 (LAST_PAGE_EJECTOR): New magic cookie.
12664 (token::next): Handle LAST_PAGE_EJECTOR.
12665 (exit_groff): Set exit_started and done_end_macro instead of
12666 exit_flag. Call top_level_diversion::set_last_page. Push a
12667 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
12668 another ejection after setting seen_last_page_ejector.
12670 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
12672 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12674 * macros/tmac.e (TH): Make sure there's room for the initial
12677 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12678 Set FVS in points rather than units.
12680 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
12682 * troff/div.c (top_level_diversion::add_trap): Don't consider the
12683 position of empty slots.
12685 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
12687 * ps/devps/S: Fix height and depth of parenrightex.
12688 * ps/devps/symbol.diff: Regenerate.
12690 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
12692 * tmac.e (u): Do underlining as in -mgs.
12694 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
12696 * tty/tty.c (tty_printer::end_page): If overstriking is
12697 suppressed, still turn overstruck horizontal and vertical lines
12700 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12703 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12705 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
12707 * Version 1.05 released.
12709 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
12711 * tty/tty.c: Instead of keeping an array of glyphs and then
12712 sorting it, keep a ordered linked list of glyphs for each line.
12714 * driver/driver.h: Include stddef.h.
12716 * tty/tty.c (compare_glyph):
12717 * refer/refer.c (rcompare):
12718 * troff/env.c (compare_ranges): Arguments of qsort comparison
12719 function should be const void *.
12721 * troff/number.c (parse_term):
12722 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12725 * refer/label.y (consider_authors): Don't access variables
12726 constructed under a condition outside that condition: put braces
12727 round for statement containing declaration; redeclare use of same
12730 * pic/pic.y (text_expr): Delete production that allows
12731 parenthesised text_expr.
12732 (expr): Allow a conditional_expr to appear in parentheses.
12733 (conditional_expr): Rename to any_expr.
12735 * mm: Install new version 1.01 from jh.
12737 * lib/font.c (font::get_width): Cache scaled widths.
12738 (font::font): Initialize widths_cache.
12739 (font::~font): Destroy widths_cache.
12740 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12742 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
12744 * c++test.c, c++test.ref: New files.
12745 * Makefile: Check that the C++ compiler works.
12747 * ps/tmac.pspic (PSPIC): Do a break.
12749 * ps/tmac.ps: Move definition of PSPIC into...
12750 * ps/tmac.pspic: New file.
12751 (PSPIC): Draw box around picture, but make it invisible to grops.
12752 * ps/tmac.ps: Load tmac.pspic.
12753 * ps/Makefile: Install tmac.pspic.
12755 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
12757 * lib/font.c (scale_round): If n is negative,
12758 subtract .5 before truncating floating point result.
12760 * lib/fontfile.c: Include <errno.h>.
12762 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
12764 * driver/input.c (get_char): Inline. Don't update current_lineno.
12765 Change callers to up date current_lineno if necessary.
12766 Use get_char() instead of getc(current_file).
12768 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
12770 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12772 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
12774 * tty/tty.c (tmac.tty): Define \(rg as (R).
12776 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
12778 * lib/lib.h: New define a_delete.
12779 * Use a_delete instead of delete when deleting an array of objects
12780 without destructors.
12782 * lib/lib.h: Rename adelete to ad_delete.
12783 * Change uses of adelete.
12785 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
12787 * eqn/eqn.y: Include lib.h.
12789 * troff/node.c (grow_font_table): Delete old_font_table.
12791 * mm: Install new version from jh.
12793 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
12795 * tbl/table.h (format_type): Make global instead of local to class
12796 entry_format. Prefix enumerators with FORMAT_.
12797 * tbl/table.c, tbl/main.c: Corresponding changes.
12798 * refer/token.h (token_type): Make global. Prefix enumerators
12800 * refer/token.[ch]: Corresponding changes.
12801 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12803 * troff/div.c (node::set_vertical_size): Don't name argument.
12805 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
12807 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12808 * lib/lib.h: Define adelete accordingly.
12809 * pic/object.c (graphic_object::graphic_object):
12810 * tbl/main.c (format::~format):
12811 * tbl/table.c (table::~table):
12812 * refer/ref.c (reference::~reference, reference::merge,
12813 reference::insert_field, reference::delete_field): Use adelete.
12815 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12817 * tbl/table.h: Corresponding changes.
12819 * common.c (common_output::dashed_arc, common_output::dotted_arc):
12820 Ensure total_angle is positive.
12822 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
12824 * refer/ref.c (reference::merge, reference::insert_field,
12825 reference::delete_field): Avoid delete[0].
12827 * refer/token.c (init_special_chars): Move calls to cmupper
12828 outside calls to init_two_char_letter to work around bug in gcc
12831 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
12833 * lib/new.c (operator new): Use __builtin_new for g++.
12835 * pic/object.c (graphic_object::~graphic_object): Don't use
12838 * pic/object.c (output::compute_scale): Initialize max_width and
12841 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
12843 * troff/input.c (write_request): Call fflush.
12845 * troff/node.h (class composite_node): Move declaration to node.c
12846 * troff/input.c (charinfo_to_node): Rename to ...
12847 (charinfo_to_node_list): Return node list rather than composite
12849 * troff/node.c (make_composite_node): New function.
12850 (make_node, add_char): Call make_composite_node instead of
12852 (class composite_node): Add a tfont * member. Delete font_size
12854 (composite_node::composite_node, composite_node::copy,
12855 composite_node::size): Corresponding changes.
12856 (composite_node::tprint): Provide constant spacing, emboldening
12857 and track kerning as specified in tfont.
12858 (composite_node::width): Change width calculation accordingly.
12859 * troff/env.h (environment::composite): New member.
12860 (environment::is_composite, environment::set_composite): New
12862 * troff/env.c (environment::environment): Initialize composite.
12863 * troff/input.c (charinfo_to_node): Call
12864 environment::set_composite.
12865 * troff/node.c (make_composite_node, make_glyph_node): Use the
12866 plain version of the tfont if the environment is composite.
12868 * troff/node.c (font_info::get_space_width): Additional argument
12869 giving space_size. Handle constant space correctly. Scale by
12870 space_size unless constant spaced.
12871 (env_sentence_space_width): New function.
12872 * troff/node.h: Declare it.
12873 * troff/env.h (environment::get_space_size,
12874 environment::get_sentence_space_size,
12875 environment::get_narrow_space_width,
12876 environment::get_half_narrow_space_width): Make inline.
12877 (environment::get_space_width): Make inline. Just call
12879 * troff/env.c: Delete definitions for funtions made inline.
12880 (environment::space_newline, environment::space): Use
12881 env_sentence_space_width(). Don't scale by space_size.
12882 * troff/node.h: Move declarations of env*space_width() functions
12885 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
12887 * macros/tmac.s (PS): Don't try to set negative indent.
12889 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
12891 * pic/pic.y: Fix min function.
12893 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
12895 * man/mdate.sh: Clear LANGUAGE.
12897 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
12899 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12900 * pic/lex.c: New COMMAND keyword.
12901 * pic/pic.y (print_args, print_arg): New rules.
12902 (placeless_element): Use print_args for PRINT.
12903 New COMMAND element.
12905 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
12907 * troff/input.c (terminal): Handle missing argument correctly.
12909 * pic/pic.y (text_expr): New rule.
12911 * pic/pic.y: Implement := operator.
12913 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
12915 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12918 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
12920 * ps/devps/dingbatsrmap: Include this in the distribution.
12922 * macros/tmac.doc: Replace with new version from 2nd Networking
12923 Release. Fix loading of doc-* files.
12924 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12925 * macros/tmac.doc.old: New file. Apply fixes that had been
12926 applied to old tmac.doc.
12927 * macros/tmac.andoc: Check that we're running under groff.
12928 * macros/Makefile: Rework.
12930 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
12932 * tbl/table.h (format_type):
12933 * refer/token.h (token_type): If NESTED_TYPES is defined, use
12934 typedef to make these types visible at file scope.
12935 * Makefile: Add NESTED_TYPES configuration option.
12937 * troff/div.c (mark): At the top level use the value of
12938 nl_reg_contents rather than the current vertical position.
12940 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
12942 * tty/tty.c: Implement \D for horizontal or vertical lines.
12943 (tty_printer::set_char): Use vec_used+2 as serial number.
12944 Don't allow size of vector to exceed USHRT_MAX-2.
12945 Split off part into...
12946 (tty_printer::add_char): New function.
12947 (tty_printer::draw): New function.
12948 (compare_glyph): Handle equal serial numbers.
12949 (tty_printer::end_page): Handle overstruck characters from \D.
12950 (main, usage): Implement -d option.
12952 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
12954 * tbl/main.c (process_format):
12955 * eqn/text.c (split_text):
12956 * troff/input.c (token::next): Use inner block for declarations
12957 with initializers in switch statement.
12959 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
12961 * pic/common.c (common_output::dash_line): Cope with zero-length
12964 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
12966 * Version 1.04 released.
12968 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
12970 * macros/tmac.an (TH): Define a macro an-init to define variables
12971 based on command line arguments.
12972 (an-header): Call it.
12974 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
12976 * Makefile (install.mm): Rename to install.dwbmm.
12978 * Makefile: Integrate mm.
12979 * mm: New directory.
12981 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
12983 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
12986 * pic/troff.c (troff_output::simple_spline,
12987 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
12988 shadowing parameter.
12990 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
12992 * lib/ptable.h: Add explicit casts when converting from unsigned
12995 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
12996 * dvi/devdvi/Makefile: Install SA, SB.
12998 * refer/indxbib.c: Add declaration of mktemp.
13000 * refer/lookbib.c: Add declaration of isatty.
13002 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
13004 * pic/lex.c (interpolate_macro_with_args): While collecting
13005 arguments, keep track of whether we're in a string.
13007 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
13009 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
13010 down with \v, so as to avoid problems with top of page trap
13011 setting no space mode.
13013 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
13015 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
13017 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
13019 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
13020 Improve error message.
13022 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
13024 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
13027 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
13029 * groff.c (possible_command::execp): Always use _exit() after a
13032 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
13033 NO_SYS_WAIT_H configuration options.
13034 * groff.c: Use these options. Use POSIX-style macros to extract
13035 fields from the status returned by wait().
13037 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
13039 * tbl/table.c (table::compute_separation_factor): Allow the
13040 separation factor to drop to 0.
13042 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
13044 * refer/search.c: Include <errno.h>.
13046 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
13048 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
13050 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
13053 * pic/lex.c (input_stack::bol): Move definition out of class body.
13055 * pic/main.c: On MSDOS munge argv[0].
13057 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
13059 * lib/ptable.c (hash_string): Use unsigned long rather than
13061 (next_ptable_size): Use unsigned rather than int. Give an error
13062 message if we've hit the largest table size.
13063 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
13066 * pic/object.h (object_spec): Make flags unsigned long. Declare
13067 flags as const unisgned long rather than as enums.
13069 * pic/output.c: Deleted.
13071 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
13073 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
13074 Add additional argument.
13075 (line_entry::note_double_vrule_on_{left,right}): Set value of
13076 douvle_vrule_on_{right,left} flag according to argument.
13077 (simple_line_entry::simple_print,
13078 simple_line_entry::double_line_print): If adjacent to double vrule
13079 on a corner extend rather than shorten the rule by half the double
13082 * troff/number.c (parse_term): In checking for overflow, handle the
13083 case where the current horizontal position is negative.
13085 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
13087 * pic/object.c (draw_arrow): Check for object having zero length.
13089 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
13091 * eqn/main.c (do_file): Split off inline equation handling into...
13092 (inline_equation): New function. Search for starting delimiter
13094 (delim_search): New function. Don't recognize a delimiter that
13095 occurs in the name of an escape sequence, number register, string
13098 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
13100 * eqn/delim.c (delim_box::compute_metrics): Don't call
13101 define_extensible_string if left is 0.
13102 (delim_box::output): Don't print the left delimiter if left is 0.
13103 (delim_box::debug_print): Check for left == 0 before calling printf.
13105 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
13107 * troff/Makefile (majorminor.c): Include only digits in
13110 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
13112 * refer/dirnamemax.c: new file.
13113 * refer/genlimits.c: Deleted.
13114 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
13115 Don't check path length.
13116 * refer/Makefile: Add dir_name_max.o; delete genlimits.
13117 * Makefile: Add PATHCONF_MISSING option.
13119 * refer/indxbib.c (get_cwd): New function.
13120 (main): Use get_cwd().
13121 * lib/getcwd.c: New file.
13122 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
13123 GETCWD in SUBFLAGS.
13124 * lib/Makefile: Compile getcwd.o.
13126 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
13129 * refer/indxbib.c (main): Check success of mktemp.
13131 * lib/tmpfile.c: New file.
13132 * lib/Makefile: Add tmpfile.c.
13133 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
13134 * ps/ps.h: Delete declaration of mktemp().
13135 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
13136 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
13137 * driver/driver.h: No need now to include errno.h.
13139 * everywhere: Set errno to 0 before calling fopen().
13141 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
13142 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
13143 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
13145 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
13147 * troff/env.h (translate_space_to_dummy): Declare it.
13148 * troff/env.c (environment::space_newline, environment::space):
13149 If translate_space_to_dummy is set then make the width of spaces 0.
13150 * troff/input.c (translate): If the second character of a
13151 translation is a space, translate to unbreakable space. If the
13152 first character is a space, set or clear translate_space_to_dummy
13153 according to whether the second character is \&. Weird!
13155 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
13157 * groff.c (run_commands): Don't use non-zero exit code because a
13158 command gets SIGPIPE.
13160 * groff.c, groff.sh: Use -mXps with -TXps.
13162 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
13163 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
13164 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
13165 (ps_printer::special): New specials invis and endinvis.
13166 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
13167 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
13168 (ps_printer::end_page): Check that invis_count == 0.
13169 (ps_printer::invis_count): New member.
13170 (ps_printer::ps_printer): Initialize invis_count to 0.
13172 * troff/env.c (environment::hyphenate_line): Hyphenation
13173 indicator at beginning of word inhibits splitting after -, \(em
13176 * pic/pic.y (element): Allow another element to follow } without
13177 any intervening separator.
13179 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
13181 * pic/lex.c (get_delimited): Allow tabs before delimiter.
13183 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
13185 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
13186 declaration of wait() in header files.
13187 * Makefile: Get rid of -DHAVE_UNION_WAIT.
13189 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
13191 * lib/lib.h: Declare return type of strerror as char *.
13193 * man/Makefile: Add g flag to sed substitutions.
13194 * Makefile (shgroff, bindist): Likewise.
13196 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
13198 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
13199 * ps/devps/prologue (PBEGIN): Define showpage after pushing
13202 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
13204 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
13207 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
13209 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
13212 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
13214 * troff/input.c (define_number_reg): If currently undefined,
13215 don't define it if the argument is an invalid expression.
13217 * Makefile: Ignore return value of `if' commands without `else'
13220 * Makefile: Split up CPPDEFINES into a series of separate
13221 configuration options.
13223 * troff/input.c (init_registers): Use time_t instead of long
13224 unless LONG_FOR_TIME_T is defined. Use returned result rather
13225 than passing pointer.
13226 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
13228 * lib/Makefile (fontpath.h): Use gendef.
13230 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
13232 * troff/input.c (input_iterator::shift): Delete argument name.
13233 * troff/node.c (suppress_output_file::really_begin_page,
13234 suppress_output_file::really_transparent_char, node::ascii_print,
13235 node::tprint): Delete names of unused arguments.
13237 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
13239 * refer/label.y (string): Pass $4 to command_error.
13241 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
13243 * Version 1.03 released.
13245 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
13247 * Makefile: Pass definition of SHELL in SUBFLAGS.
13249 * gendef: New file.
13250 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
13251 ps/Makefile: Use gendef to construct header files that are
13252 constructed from the Makefile.
13254 * macros/Makefile: make all should build stripped version of tmac.e.
13256 * refer/Makefile (clean): Remove y.output.
13258 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
13260 * ps/pfbtops.c (main): Add -v option which prints out a version
13262 * ps/Makefile (pfbtops): Link with libgroff.a.
13264 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
13266 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
13267 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
13269 * refer/lkbib.c (main): Always terminate reference with blank
13271 * refer/lookbib.c (main): Likewise.
13273 * refer/linear.c (file_buffer::load): Check that the file is not a
13276 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13277 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13278 Delete second inclusion of <sys/param.h>.
13280 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
13282 * troff/token.h (token::special): Deleted.
13284 * tbl/main.c (process_format): Rework so that opt->tab_char is
13285 recognized only when appropriate.
13287 * ps/Makefile (clean): Remove pfbtops.
13289 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
13291 * lib/font.c (text_file::next): Don't return if we have got a
13294 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
13296 * refer/refer.c (store_reference): Get hash code from old_table[i]
13297 when rehashing the table.
13299 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
13301 * eqn/box.c (box::top_level): Save size and prev size using \R and
13302 restore it afterwards. Set the size to the size at the beginning
13304 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
13305 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
13307 * refer/Makefile (limits.h): Use ./genlimits.
13309 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
13311 * refer/index.c: Delete declarations of stat() and fstat().
13313 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
13315 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13317 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
13319 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13321 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
13323 * troff/input.c (token::get_char): Handle \e.
13325 * refer/linear.c: Delete declarations of fstat() and stat().
13327 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
13329 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13330 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13332 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
13334 * troff/input.c (do_define_macro): Improve error handling for end
13335 of file while defining macro.
13337 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
13339 * eqn/box.h: Fix declaration of set_gsize.
13340 * eqn/box.c (set_gsize): Make argument const char *.
13341 (gsize): Declare as char *.
13342 * eqn/main.c (main): Don't convert gsize to int.
13343 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13345 * Version 1.02 released.
13347 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
13349 * macros/tmac.andoc: New file.
13350 * macros/Makefile: Install tmac.andoc.
13352 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13353 operator new and delete on OP_DELETE_BROKEN not being defined.
13354 * Makefile: Mention OP_DELETE_BROKEN.
13356 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
13358 * Makefile (bindist): Pass SUBFLAGS.
13360 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
13362 * Makefile, groff.c: Pass definitions to groff.c via device.h.
13364 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13367 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13369 * ps/ps.h, ps/psrm.c: Make comment_table and
13370 header_comment_table local to resource_manager::process_file.
13372 * groff.sh: With -TXps pass -printCommand option to gxditview.
13374 * groff.c (possible_command::print): Implement using
13375 append_arg_to_string.
13377 * xditview: Merge in new implementation with own ChangeLog.
13379 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
13381 * groff.c (main): Implement PRINT_OPTION.
13382 (append_arg_to_string): New command.
13383 (device_table): Set PRINT_OPTION flag for Xps.
13385 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
13387 * troff/groff.h: Rename to troff.h.
13389 * pic/lex.c (lookup_keyword, docmp): New functions.
13390 (get_token): Use new lookup_keyword.
13391 Don't include key.h.
13392 * pic/key.[ch], pic/pic.gperf: Deleted.
13393 * pic/Makefile: Remove gperf stuff.
13395 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13397 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13399 * troff/Makefile, troff/node.c: Move definition of
13400 STORE_WIDTH into node.c.
13402 * etc/grog.pl, etc/grog.sh: Support -mdoc.
13404 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
13406 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13407 dvi/devdvi/texb.map: Add lq and rq.
13408 dvi/devdvi: Regenerate fonts.
13409 * ps/devps/textmap: Add lq and rq.
13410 * ps/devps: Regenerate fonts.
13411 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13412 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13414 * pic/object.c (position_rectangle): When checking radius
13415 cope with possiblity that width or height is negative.
13416 (box_object::box_object): Have separate xrad and yrad with
13417 signs matching signs of dim components.
13418 (box_object::{north,south}_{east,west}): Use xrad and yrad.
13419 (box_object::print): With rounded boxes use absolute values
13420 for dim and rad arguments.
13422 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13425 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13427 * various files: Add explicit destructors to keep Saber CC +d
13430 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
13432 * eqn/box.c (box::top_level): Restore fonts correctly after
13433 font changes in line containing inline equation. Also
13434 restore previous font as well as current font.
13435 * eqn/pbox.h: Define necessary string and register names.
13437 * troff/input.c (token::next): Case 'R' calls do_register.
13438 (do_register): New function.
13440 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
13442 * groff.c, groff.sh: Support Xps device. Allow each device
13443 to have a pseudo_name and a real_name.
13445 * groff.c (run_commands): Don't print `Broken pipe' messages.
13447 * ps/pfbtops.c: New file.
13448 * ps/Makefile: Add pfbtops.
13450 * troff/number.c (parse_term): Improved error message.
13452 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
13454 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13456 * Makefile: Integrate refer.
13457 * refer: New directory.
13458 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13459 man/lkbib.man: New files.
13460 * man/Makefile: Support refer man pages.
13462 * lib/lib.h: Declare is_prime.
13463 * lib/prime.c: New file.
13465 * troff/input.c (macro_source): New function.
13466 (init_input_requests): Bind "mso" to macro_source.
13468 * troff/env.c (environment::possibly_break_line): Maintain
13469 pointer to pointer to node to be split in ndp so as to avoid
13470 using address of freed node.
13472 * troff/env.c (environment::hyphenate_line): Maintain pointer to
13473 pointer to first node to be hyphenated in startp so as to
13474 avoid using address of freed node.
13476 * troff/env.c (class trie, class hyphen_trie): Make the
13477 elements of the trie be of type char not unsigned char.
13478 Declare arguments to be const char* instead of unsigned char *.
13480 * troff/env.c (hyphenate): Initialize hbuf[0].
13482 * troff/input.c (set_string): Declare p to be char * and cast
13483 *p to unsigned char when necessary.
13485 * troff/input.c (do_define_macro): Declare s to be const
13486 char*. Cast element to unisgned char when necessary, Declare
13487 d to be an int. Handle EOF better.
13489 * troff/Makefile, troff/input.c: Different scheme for passing
13490 definitions of MACROPATH, HYPHENFILE and DEVICE.
13492 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
13494 * tty/devascii/R.proto: Delete entry for em.
13495 * tty/devlatin1/R.proto: Likewise.
13497 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
13499 * troff/input.c (translate): Stop when we get a space. Treat eof
13502 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13504 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
13506 * tbl/main.c (process_format): A font name following a `f'
13507 modifier that starts with a digit can be only one character long.
13508 Also deal with EOF on the second character of the font name.
13510 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
13512 * troff/input.c (token::next): Turn \~ into an
13513 unbreakable_space_node.
13514 * troff/node.c (unbreakable_space_node): New class.
13515 * troff/node.h: Declare it.
13517 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
13519 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
13520 it's >= 0, before outputting it as a single byte.
13522 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
13524 * lib/font.c: Make font_char_metric::code an int.
13525 (font::get_code): Change return type to int.
13526 (font::load): Allow code to be arbitrary integer.
13527 * lib/font.h (font::get_code): Change return type to int.
13528 (font::number_to_index): Change argument type to int.
13529 * troff/input.c (token::next): In case 'N', allow any value.
13530 Store value in token::val.
13531 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13532 (token::get_char, token::add_to_node_list, token::process): Get
13534 (charinfo::set_number): Change argument to int.
13535 (charinfo::get_number): Require that NUMBERED flag be set.
13536 (get_charinfo_by_number): Store numbered characters not between 0
13537 and 255 in a dictionary.
13538 * troff/charinfo.h (get_charinfo_by_number): Change argument type
13540 (charinfo::number): Change type to int.
13541 (charinfo::set_number): Change type of set_number to int.
13542 * troff/node.c (troff_output_file::put_char_width,
13543 troff_output_file::put_char): Test whether character is numbered
13544 using charinfo::numbered().
13545 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13547 * lib/nametoindex.c: New implementation to cope with arbitrary
13550 * troff/input.c (token::operator==): Test val for
13551 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13554 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13555 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
13557 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
13559 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
13562 * all Makefiles: rm targets of cp and >.
13564 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13567 * eqn/lex.c (def_table): Add dollar.
13569 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
13571 * troff/input.c (do_width): Push back newline before closing delim
13574 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
13576 * groff.c (possible_command::prepend_arg): New function.
13577 (main): Prepend device -m option.
13578 * groff.sh: Put device -m options before command-line options.
13580 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
13582 * macros/tmac.an (IP): Quote argument to TP.
13584 * ps/ps.c (main): New option -b, which sets...
13585 (broken_flags): New variable.
13586 (ps_printer::~ps_printer): Incorporate the setup section in the
13587 prolog if (broken_flags & NO_SETUP_SECTION).
13588 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13589 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13590 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13591 ps_printer::print_needed_font_comment,
13592 ps_printer::print_supplied_font_comment,
13593 ps_printer::print_include_font_comments,
13594 ps_printer::lookup_doc_font, ps_printer::download_fonts,
13595 ps_printer::read_download_file, read_document_fonts, add_font,
13596 skip_line, parse_fonts_arg, document_font::document_font,
13597 document_font::~document_font, document_font::download,
13598 ps_output::include_file): Deleted.
13599 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13600 rather than %!PS-Adobe-2.0. Make calls to
13601 resource_manager::need_font for each font that we used. Replace
13602 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13603 print_supplied_font_comment, print_needed_font_comment by call to
13604 resource_manager::print_header_comments. Output %%Orientation
13605 comment. Output %%Requirements: numcopies comment if ncopies > 1.
13606 Don't output the prolog directly. Instead call
13607 resource_manager::output_prolog. Only define #copies when ncopies
13608 > 1. Delete calls to print_include_font_comments and
13609 download_fonts. Add call to resource_manager::document_setup.
13610 (ps_printer::do_file): Call resource_manager::import_file instead
13611 of including it ourselves.
13612 (ps_printer::do_import): Likewise. Also don't call
13613 merge_import_fonts. Push userdict on the dictionary stack before
13614 and pop it afterwards.
13615 Move declaration of ps_output into ps.h.
13616 * ps/psrm.c: New file implementing resource_manager class.
13617 * ps/ps.h: New file declaring ps_output and resource_manager
13619 * ps/devps/zapfdr.ps:
13620 * ps/devps/symbolsl.ps:
13621 * ps/devps/prologue: Use 3.0 conventions.
13622 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13623 Add default definition of BROKEN_SPOOLER_FLAGS.
13624 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
13625 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13627 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
13629 * etc/grog.pl: New file.
13630 * Makefile (GROG): New variable.
13631 Add GROG to SUBFLAGS.
13632 * etc/Makefile (GROG): New variable.
13633 (install.nobin): Install $(GROG) rather than grog.sh.
13635 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
13637 * eqn/special.c (special_box::compute_metrics): Make the input and
13638 output strings the same. Get the new height and depth from the
13639 predefined height and depth registers. Also make subscript kern
13640 and skew available.
13641 (special_box::compute_subscript_kern, special_box::compute_skew):
13644 * eqn/box.c (pointer_box::compute_skew,
13645 simple_box::compute_metrics, box::top_level)
13646 * eqn/text.c (prime_box::compute_metrics,
13647 prime_box::comput_subscript_kern)
13648 * eqn/limit.c (limit_box::compute_metrics):
13649 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13650 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13651 negative numbers in `nr' requests with a leading 0.
13653 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
13655 * eqn/special.c: New file.
13656 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
13657 Add new rule for simple.
13658 * eqn/lex.c (token_table): Add SPECIAL.
13659 * eqn/box.h: Declare make_special_box.
13660 * eqn/Makefile: Add special.[co].
13662 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
13664 * ps/devps/prologue: Possibly set packing to true while defining.
13665 Create grops dictionary here. Initialize local variables before
13666 defining procedures.
13667 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13668 the dictionary stack. Set strokeadjust and overprint to false if
13669 the relevant operators are defined.
13670 (PEND): New procedure.
13671 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13672 prologue. Do everything else in the setup section.
13673 (ps_printer::do_import): Just call PBEGIN and PEND around the
13674 picture. Also push userdict before, and pop it afterwards.
13676 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
13678 * troff/node.c (bracket_node::tprint): Brackets were being printed
13681 * macros/tmac.an (SH, SS): Set fill mode.
13683 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
13685 * troff/div.c (top_level_diversion::begin_page): Set
13686 high_water_mark to 0.
13688 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
13690 * man/mdate.sh: New file.
13691 * man/mdate.c: Deleted.
13692 * man/Makefile: Use mdate.sh instead of mdate.
13695 * eqn/lex.c (do_gsize): Supply missing argument to error message.
13697 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
13699 * man/mdate.c: New file.
13700 * man/*.man: Replace modification date by @MDATE@.
13701 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13702 (mdate): New target.
13704 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13705 Remove illegal input characters.
13707 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
13709 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13711 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
13713 * troff/div.c (begin_page): Change behaviour when
13714 !first_page_begun and !break_flag.
13716 * troff/input.c (do_name_test): Return 0 if argument is empty.
13718 * troff/input.c (read_long_escape_name): Require closing ] to be
13719 at same input level as opening [.
13721 * troff/input.c (read_increment_and_escape_name): New function.
13722 (get_copy, process_input_stack): Use this for \n.
13724 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
13726 * troff/div.c (top_level_diversion::begin_page): Ignore the
13727 current value of page_number if !first_page_begun.
13729 * groff.c (main): Fix declaration of buf.
13731 * troff/input.c (do_name_test): New function.
13732 (token::next): Implement \A.
13733 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13734 (token::description, token::add_to_node_list, token::process):
13735 Handle TOKEN_ESCAPE.
13736 * troff/token.h: New token TOKEN_ESCAPE.
13738 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
13740 * pic/main.c (do_picture): Allow space before and after filename
13741 following `<'. Check that the filename is not empty.
13743 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
13745 * Version 1.01 released.
13747 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13749 * dvi/tmac.dvi: ftr HR to H.
13751 * macros/tmac.e: Round up computation of $r.
13753 * xditview/tmac.X: Don't give up completely in compatibility mode.
13754 Use \n(.s instead of \n[.s].
13756 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13757 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13758 Add u to factors inside \s[...]. Rename frac to dvi-frac.
13759 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13760 short names in the char definitions.
13762 * ps/tmac.ps: Don't give up completely in compatibility mode.
13763 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13764 quote in front of \n(.s. Add u to factors inside \s[...].
13766 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
13768 * tty/tmac.tty: Call the nroff request.
13770 * macros/tmac.e ((x, )x): Better definitions that work properly
13772 (@0, @1): Helper macros for (x.
13774 * macros/tmac.e ($s, hl): Use \l rather than \D.
13776 * tty/tmac.tty: Make it work better in compatibility mode.
13777 (pchar): Rename to tty-char.
13779 * macros/tmac.e (@E): New macro.
13780 (r, i, b, rb, bi): Use @E.
13782 * macros/tmac.e (@F): Don't use (;...) syntax.
13784 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
13785 it was modified for groff.
13787 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13789 * macros/tmac.e (<., .>): Removed.
13790 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13792 * macros/tmac.e: Remove check that groff is being used.
13794 * macros/tmac.e (@C): Change families only if using groff; turn
13795 compatibility mode off while changing familes. Save compatibility
13796 mode before changing families and restore it afterwards.
13798 * macros/tmac.e (@h): Remove test for offset + line length.
13800 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
13801 (lo, th, ac): Define to call @S instead of using als.
13803 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13804 the ratio of the vertical spacing to the point size in units
13805 expressed as a percentage. Use these instead of $10r and $10R,
13806 Delete $10r and $10R.
13808 * lib/font.c (font::load): In default computation of space_width,
13809 divide by sizescale. Use scale_round.
13811 * macros/tmac.an (TP): Don't call `nf'.
13812 (an-do-tag): Don't call `fi'.
13814 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
13816 * troff/input.c (process_input_stack): Handle the case where
13817 spaces at the beginning of an input line are followed by a
13820 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
13822 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13823 * groff.sh: Use pic -x with the dvi device.
13825 * dvi/devdvi/FontMakefile (H): Don't use -s.
13827 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13828 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13829 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13832 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
13834 * ps/psfig.diff: New file.
13835 * ps/tmac.psfig: New file.
13837 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
13839 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13840 (]-): Don't call ref*do-tl.
13842 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13844 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13845 (fn@do-FS): Rename to fn*do-FS.
13847 * troff/input.c (transparent_translate): New function.
13848 (process_input_stack): Apply transparent_translate before calling
13849 diversion::transparent_output(unsigned char).
13851 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
13853 * troff/input.c (do_define_macro): Define the macro before calling
13856 * xditview/Makefile: Add DEVICES variable. Change install target
13859 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
13861 * groff.c (run_commands): Handle the possibility that there are
13862 child processes other than those forked by us.
13864 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
13866 * lib/string.c (string::append): New function.
13867 * lib/stringclass.h: Declare it.
13869 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
13871 * eqn/main.c (main): New option -N which sets
13872 no_newline_in_delim_flag.
13873 (do_file): If no_newline_in_delim_flag is set don't allow newlines
13875 * groff.c (main): Pass -N on to eqn.
13876 (help, synopsis): Mention -N.
13877 * groff.sh: Implement -N.
13879 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
13881 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13882 (]-): Call ref*do-tl if ref*need-tl is non-zero.
13883 (XP): Allow as initializer.
13885 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
13887 * troff/env.c (environment::wrap_up_field): If field_spaces are
13888 non-zero and we have a current_tab, subtract padding from
13889 tab_distance. If this makes tab_distance <= 0, use the next tab
13890 stop instead. If there isn't any next tab or it's a left tab,
13891 wrap up the current tab.
13892 (environment::start_field): Initialize tab_precedes_field.
13893 (environment::wrap_up_tab): If there's a current field, update
13894 pre_field_width, field_distance and tab_precedes_field.
13895 * troff/env.h (environment::tab_precedes_field): New member.
13897 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
13899 * ps/ps.c (ps_printer::do_file): New function.
13900 (ps_printer::special): Bind to `file' special.
13901 (ps_printer::do_exec): Set ndefined_styles to 0.
13903 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
13905 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13906 Avoid stripping first character from the start of unrecognized
13907 escapes. Use lex_error instead of error to report errors.
13908 * eqn/lex.c (get_token): Rework handling of escapes.
13909 (lex_error): Move declaration into...
13912 * xditview/xditview.c (main): Make -page option work.
13914 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13916 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
13918 * macros/tmac.s (B2): Correct size of box.
13920 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
13922 * macros/tmac.s (B2): Postpone drawing the box until in the
13923 top-level diversion.
13925 * tty/tmac.tty: Add font translations for C, CR, CW.
13927 * groff.c (synopsis, help): Document -i.
13928 * groff.sh: Implement -i.
13930 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13931 Simplify the construction of SN.
13933 * troff/number.c (parse_term): Give `|' a higher precedence.
13934 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13937 * macros/tmac.s (B2): Use par@finish instead of par@reset.
13939 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
13941 * lib/string.c (string::move): New function.
13942 * lib/stringclass.h: Declare it.
13944 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
13946 * troff/env.c (distribute_space): Add optional argument
13948 (environment::wrap_up_field): Call distribute_space with
13949 `force_forward' argument of 1.
13951 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
13953 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13954 Inline it. Move reallocation into...
13955 (string::grow1): New function.
13956 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13957 dependencies to include library header files.
13958 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13960 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
13962 * macros/tmac.s (@NH): Use the same number registers than -ms does
13963 for the heading level counters. Use the same string that -ms does
13964 for the number for this heading.
13966 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
13968 * lib/new.c (operator new): Cast result of malloc to char *.
13970 * troff/input.c (spring_trap, lookup_request): Add assert that nm
13973 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
13975 * groff.c (main): Support -i.
13977 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
13979 * pic/pic.h: Include <osfcn.h>.
13981 * ps/ps.c: Add declaration of mktemp.
13983 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
13984 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
13985 argument as union wait *.
13986 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
13987 argument to union wait *.
13989 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
13991 * tty/tmac.tty: Add definition of \(co.
13993 * pic/object.c (make_arc): Only increase radius when radius
13994 strictly less than d.
13995 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
13998 * troff/env.c (environment::environment(symbol),
13999 environment::environment(const environment *)): Initialize
14002 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
14004 * tbl/main.c (main): Add exit(0).
14006 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
14008 * pic/main.c (main):
14009 * eqn/main.c (main):
14010 * tbl/main.c (main):
14011 * etc/soelim.c (main):
14012 * driver/printer.c (printer::~printer):
14013 * troff/node.c (real_output_file::~real_output_file,
14014 real_output_file::flush): Check for errors on stdout.
14016 * most files: Add 1991 to copyright notice.
14018 * macros/tmac.s: Don't test \n(.x and \n(.y.
14020 * troff/input.c (token::next): Rename `escape_char' label to
14021 `handle_escape_char' and `normal_char' label to
14022 `handle_normal_char'.
14024 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
14026 * groff.c (main, synopsis, help): Support -a option.
14027 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
14028 to trflags while parsing options.
14030 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
14032 * troff/number.c (parse_term): With `m', `M' and `n' scale
14033 indicators, convert scale factor to hunits before scaling.
14035 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
14037 * lib/font.c (scale_round): Better test for overflow when n is
14040 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
14042 * tbl/main.c (process_format): Add second argument of type
14043 options*. Change callers. Allow opt->tab_char as well as '\t'
14044 between format items.
14046 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
14048 * macros/tmac.an (PD): With no arguments, make sure register PD is
14050 (TH): Call PD with no argument, instead of setting register PD
14053 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
14055 * Version 1.00 released.
14057 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
14059 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
14061 * dvi/devdvi/DESC: Mount CW instead of CR.
14063 * dvi/tmac.dvi: Add definition of \(tm.
14065 * dvi/devdvi/texsy.map: Add lh, and rh.
14066 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
14067 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
14069 * dvi/devdvi/FontMakefile: Generate H from cmss10.
14070 * dvi/devdvi/Makefile: Install H.
14071 * dvi/devdvi/H: New file.
14073 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
14075 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
14078 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
14080 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
14082 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
14084 * macros/tmac.s (@EN): Handle the case where the equation is empty
14085 but the label is not.
14087 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
14089 * troff/groff.h: New warning category WARN_SPACE.
14090 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
14091 WARN_SPACE to warning_table.
14092 (interpolate_macro): Give a warning of type WARN_SPACE if the name
14093 is longer than two characters and is not defined, but the first
14094 two characters do make a defined name.
14096 * PROBLEMS: New file.
14098 * CHANGES: New file.
14099 * README-0.6, README-1.00: Deleted.
14101 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
14102 * xditview/devX75/Makefile: Make devX75-12.
14103 * xditview/devX100/Makefile: Make devX100-12.
14105 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
14106 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
14108 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
14110 * README-0.7: Rename to README-1.00.
14112 * macros/tmac.pic: New file.
14113 * macros/Makefile (install.nobin): Install tmac.pic.
14115 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
14117 * troff/env.c (hyphen_word): Correct the test for whether the
14118 token is a hyphen. Reset npos to 0.
14120 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
14122 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
14124 * macros/tmac.s (ds*common-end): Call par*reset.
14126 (par@reset-indent): Deleted.
14128 * macros/tmac.s (@IP): Divert the label.
14130 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
14132 * xditview/draw.c (setGC): Use a line width of .1m rather than
14133 .04m by default; round rather than truncate value.
14135 * tbl/table.c (class empty_entry): New class.
14136 (empty_entry::empty_entry, empty_entry::line_type): New functions.
14137 (table::add_entry): Represent empty entries by objects of type
14139 (table_entry::line_type): Return -1.
14140 (table::determine_row_type): Ignore entries with line_type 0.
14141 Treat type -1 as non-lines.
14143 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
14145 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
14146 macros/tmac.s: Rename \(-d to \(Sd.
14148 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
14150 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
14151 * xditview/libXdvi/DviChar.c: Likewise.
14152 * dvi/devdvi/texsy.map: Add `<<', `>>'.
14154 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
14156 * troff/div.c (top_level_diversion::begin_page): Call
14157 init_output() if the_output is 0.
14159 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
14161 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
14163 (get_copy): Turn \E into ESCAPE_E.
14164 (token::process, asciify): Handle ESCAPE_E.
14166 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
14168 (DS): Implement `.DS R'.
14170 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
14172 * macros/tmac.s (FS): New macro.
14174 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
14176 * macros/tmac.s (cov*tl-init): Remove after first execution
14177 instead of aliasing to @nop. Call top of page macro explicitly
14178 instead of setting trap; call @init first. Set pg@top as top of
14180 (cov*auto-init): Deleted. Set cov*tl-init instead of
14181 cov*auto-init as top of page trap.
14182 (TL, LP): Do a break instead of calling cov*tl-init.
14183 (cov*print): With RP format but no TL, alias FS and FE to @FS and
14184 @FE; in this case also give a warning and always start another
14185 page. No need to set pg@top here.
14186 (cov*tl-init): Rename to cov*first-page-init.
14188 * macros/tmac.s (RP): Do `.pn 0'.
14189 (cov*tl-init): With RP format don't do `.pn 0'.
14191 * macros/tmac.s (pg@cs-top): Set no space mode.
14193 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
14194 (cov*ab-init): Alias TL, AU and AI to these.
14196 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
14198 * macros/tmac.s (@EQ): Move the space before the equation into @EN
14199 (@EN): Do nothing unless \n[dl] is > 0.
14201 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
14203 * pic/object.c (ellipse_object::radius): New function.
14205 * VERSION: Change version to 0.7.
14207 * tbl/table.c (block_entry::do_divert): Declare return type as
14209 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
14211 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
14213 * troff/column.c: New file.
14214 * troff/Makefile: Corresponding changes.
14216 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
14219 * troff/div.c (top_level_diversion::space): If the space causes
14220 the first-page transition and springs a trap, truncate the space
14223 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
14225 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
14228 * pic/troff.c (troff_output::line_thickness,
14229 troff_output::set_fill): Do a horizontal motion to compensate for
14230 the width of the \D escape sequence.
14232 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
14234 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
14237 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
14240 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
14241 Supply empty definition.
14242 (text_entry::simple_print, simple_text_entry::simple_print):
14243 Delete declarations.
14244 (table::add_entry): Represent empty entries by objects of type
14247 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
14249 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
14251 * tbl/table.c (left_text_entry::add_tab): New function.
14253 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
14254 initialize like LP.
14256 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
14258 * troff/env.c (environment::start_field): Give an error message if
14259 there is no next tab.
14261 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
14263 * troff/env.c (hyphenate): Skip initial elements with zero
14266 * macros/tmac.s (par@init): Keep VS in points rather than units.
14268 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
14270 * pic/main.c (main): Implement `-c' option.
14271 * pic/output.h: Declare make_tpic_output().
14272 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14274 (tpic_output): New class.
14275 (tpic_output::tpic_output, tpic_output::set_pen_size,
14276 tpic_output::command, make_tpic_output): New functions.
14278 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
14280 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
14281 if they're not already defined.
14282 * tbl/table.c (init_output): Don't test \n(.g.
14284 * troff/input.c (do_if_request): Delete `g' condition. Recognize
14285 `d', `r' and `c' conditions even in compatibility mode.
14287 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
14289 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14292 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
14294 * troff/env.h (environment::prev_line_interrupted): New member.
14295 (environment::get_prev_line_interrupted): New function.
14296 * troff/env.c (environment::newline): Set prev_line_interrupted.
14297 (environment::environment(const environment *),
14298 environment::environment(symbol)): Initialize
14299 prev_line_interrupted.
14300 * troff/input.c (process_input_stack): Don't give special
14301 treatment to space and newline at the beginning of the line if the
14302 previous line was interrupted.
14304 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
14306 * eqn/eqn.y: Disallow PRIME by itself.
14307 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14309 (def_table): Remove definition of '. Define prime to be `.
14311 * eqn/eqn.y: Split off part of rule `script' into a new rule
14314 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
14316 * macros/tmac.s ({, }): New string aliases.
14318 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
14320 * README-0.7: New file.
14322 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
14324 * macros/tmac.s: New file.
14325 * man/groff_ms.man: New file.
14326 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14327 * Makefile.bd: Similarily.
14328 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14329 definition of TMAC_S.
14330 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14331 * macros/TODO: New file.
14333 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
14335 * troff/env.c (right_justify): New function.
14336 (init_env_requests): Bind this to request "rj".
14337 (center_lines): Set right_justify_lines to 0. If we get a bad
14338 integer, center 1 line.
14339 (environment::environment(symbol), environment::environment(const
14340 environment *)): Initialize right_justify_lines.
14341 (environment::get_right_justify_lines): New function.
14342 (init_env_requests): Bind this to number_register ".rj".
14344 * troff/env.c (environment::choose_breakpoint): Implement
14345 hyphenation_margin and hyphenation_space.
14346 (environment::get_hyphenation_space,
14347 environment::get_hyphenation_margin): New functions.
14348 (init_env_requests): Bind these to .hys and .hym.
14349 (hyphenation_space_request, hyphenation_margin_request): New
14351 (init_env_requests): Bind these to hys and hym.
14352 (environment::environment(symbol), environment::environment(const
14353 environment *)): Initialize hyphenation_margin and
14355 * troff/env.h: Corresponding changes to class environment.
14357 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
14359 * troff/div.c (blank_line): Always do a break.
14361 * eqn/box.c (do_text): Turn off escapes while appending text to
14364 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
14366 * troff/input.c (while_break_request, while_continue_request): New
14368 (init_input_requests): Bind these to "break" and "continue".
14369 (while_depth, while_break_flag): New variables.
14370 (while_request): Update while_depth. Break out of loop if
14371 while_break_flag is set.
14373 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
14375 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14378 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
14380 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
14382 * stringify: New file.
14383 * Makefile (groff.o): Use stringify.
14385 * xditview/tmac.X: Remove definition of \(rn.
14386 * xditview/libXdvi/DviChar.c: Remove radicalex from
14389 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
14391 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14392 (alphabetic_block_entry::alphabetic_block_entry,
14393 alphabetic_block_entry::divert, alphabetic_block_entry::print):
14395 (block_entry::divert): Split off body into ...
14396 (block_entry::do_divert): If the block is alphabetic, subtract 2n
14397 from the line length; also update the span width to dl+2n, and the
14398 alphabetic span width to dl.
14400 * driver/input.c (do_file): While reading argument to D command,
14401 when expanding buffer, multiply szp by sizeof(int) rather than 2
14402 in the argument to memcpy.
14404 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14405 width of alphabetic columns.
14407 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
14409 * troff/node.c (lookup_family): Supply second argument to lookup.
14411 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14412 search, return immediately if v is 0.
14414 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14415 (troff_output::start_picture): Set this reg.
14416 (troff_output::end_picture): Remove this reg
14417 * eqn/box.c (box::extra_space): Don't produce `\x's if
14418 EQN_NO_EXTRA_SPACE_REG is defined.
14420 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14421 * eqn/text.c (split_text): Map ' to \(fm when it's the first
14424 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
14426 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14429 * troff/div.c (top_level_diversion::top_level_diversion):
14430 Initialize page_number to 0.
14432 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
14434 * groff/troff (environment::environment(const environment *)):
14435 Initialize name to e->name, rather than "anonymous".
14437 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
14439 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14440 requested_page. Split middle part into ...
14441 (FindPage): New function.
14442 (SetValues): If we don't yet know the last page, and the requested
14443 page is greater than the current page, call FindPage.
14444 Update the font_map_string before doing this.
14446 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14447 Translate \(lh and \(rh into left and right double arrows.
14449 * troff/node.c (class hyphen_inhibitor_node): New class.
14450 (hyphen_inhibitor_node::hyphen_inhibitor_node,
14451 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14452 hyphen_inhibitor_node::type,
14453 hyphen_inhibitor_node::get_hyphenation_type): New functions.
14454 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14455 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14458 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
14460 * troff/node.h (dummy_node::get_hyphenation_type,
14461 transparent_dummy_node::get_hyphenation_type): Declare them.
14462 * troff/node.c: (dummy_node::get_hyphenation_type,
14463 transparent_dummy_node::get_hyphenation_type): New functions.
14465 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
14467 * xditview/libXdvi/draw.c: If M_PI not defined after including
14468 math.h, then define it.
14470 * xditview/Makefile: Add definition of AR. Pass it to the submake
14472 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14474 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
14476 * troff/dictionary.h (object_dictionary::alias): Declare return
14478 * troff/dictionary.c (object_dictionary::alias): Return non-zero
14479 if the old name was defined.
14480 * troff/input.c (alias_macro): Give a warning if the old name was
14482 * troff/reg.c (alias_reg): Likewise.
14484 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
14486 * troff/input.c (token::next): Delete implementation of \R.
14488 * macros/Makefile: Strip comments from tmac.e while installing it.
14490 * troff/input.c: New variable `nroff_mode'.
14491 (troff_request, nroff_request): New functions.
14492 (init_input_requests): Bind `troff' and `nroff' to troff_request
14494 (do_if_request): Compute results of t and n conditions from
14497 * text/text.c (split_text): Fix typo in >=.
14499 * eqn/lex.c: Add definition of `==' to def_table.
14501 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
14503 * pic/tex.c (tex_output::start_picture): Change the definitions of
14504 \graph and \graphtemp so that they work properly with Plain TeX.
14506 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14507 argument to `ar' is not less than the first.
14509 * pic/pic.y: Allow a comma between elements of the variable list
14510 in the argument to `reset'.
14512 * pic/object.c (arc_object::arc_object): Fix computation of
14515 * eqn/main.c (main): Add exit(0).
14517 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
14519 * troff/div.c (begin_page): Test no_space_mode after doing the
14520 break, but still push the page ejector cookie before doing the
14521 break. Also set the next page number after doing the break.
14523 * xditview/xditview.c (NewFile): Don't set the title and icon name
14524 if this is the first file and its name is `-'.
14525 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
14526 the X75 and X100 devices.
14527 (main): If a device has the XT_OPTION flag set and there's exactly
14528 one file argument, pass the driver -xrm and -title options to set
14529 the icon name and window title to the name of the file.
14531 * troff/env.c (environment_switch): If there was an argument but
14532 it wasn't a valid number or name, then pop an environment but
14533 don't give an error message on underflow.
14535 * troff/number.c (start_number): Correct spelling in error message.
14537 * troff/input.c (token::delimiter): Don't print an error message
14540 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14541 ParseDrawFunction if dw->display_enable is true.
14543 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
14545 * pic/pic.y: Parse text positioning like normal attributes, so as
14546 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
14547 positioning attribute.
14549 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
14551 * tbl/main.c (process_data): When in state START while reading a
14552 text block, don't change to state MIDDLE if c is a newline.
14554 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
14556 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14557 so as to avoid shadowing parameter.
14559 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
14561 * tbl/table.c (trim_space): Deleted.
14562 (table::add_entry): Don't call trim_space.
14564 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
14566 * VERSION: Change version to 0.6.
14568 * troff/number.c (parse_expr): Make == work.
14570 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
14572 * man/grog.man: New file.
14573 * man/Makefile: Add grog.n to MAN1PAGES.
14574 * etc/grog.sh: New file.
14575 * etc/Makefile: Install grog.sh as grog.
14577 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
14579 * troff/input.c (token::next): Implement \E.
14581 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
14583 * xditview/tmac.X: Change font translations to match tmac.ps.
14585 * troff/input.c (non_empty_name_warning): Don't give a warning if
14586 `\{' terminates the name.
14588 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
14590 * ps/devps/symbol.diff: New file.
14591 * ps/devps/FontMakefile: Mention symbol.diff.
14593 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
14595 * troff/node.c (font_position): Use get_long_name to read the
14598 * troff/env.c (environment_switch): If we get a number that's < 0
14599 or >= NENVIRONMENTS, treat it like a name.
14600 Change NENVIRONMENTS to 10.
14602 * troff/groff.h: Remove definition of FONTS_MAX.
14603 * troff/node.h (class font_family): Make map a pointer instead of
14604 an array. Add a map_size member. Make it a class. Make nm const
14605 and public. Make invalidate_fontno a friend.
14606 * troff/node.c: Define font_table_size. Make font_info a pointer
14607 rather than an array.
14608 (class troff_output_file): Allocate font_position dynamically. Add
14609 nfont_positions member.
14610 (troff_output_file::set_font): Grow font_position if necessary.
14611 (troff_output_file::~troff_output_file): Delete font_position.
14612 (troff_output_file::troff_output_file): Allocate font_position.
14613 (grow_font_table): New function.
14614 (troff_output_file::really_begin_page,
14615 troff_output_file:really_copy_page): Use nfont_positions rather
14617 (mount_font_no_translate, mount_style): Call grow_font_table if
14619 (font_family::font_family): Allocate map.
14620 (font_family::make_definite): Grow map if necessary. Use
14621 font_table_size instead of FONTS_MAX.
14622 (font_family::~font_family): New function.
14623 (invalidate_fontno): Use font_family::map_size.
14624 (get_fontno, env_space_width, env_half_narrow_space_width,
14625 env_narrow_space_width, symbol_fotno, is_good_fontno,
14626 get_bold_fontno, make_glyph_node): Use font_table_size rather than
14628 (next_available_font_position): Never return 0.
14630 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
14632 * ps/tmac.ps: Add font translations for compatibility with dpost.
14634 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
14636 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14637 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14638 Move definitions baseline_sep, shift_down, column_sep,
14639 matrix_side_sep into...
14640 * eqn/box.c: Add them to param_table.
14641 * eqn/pbox.h: Add declarations to pbox.h.
14643 * troff/input.c (set_string): Cast value to unsigned char *.
14645 * troff/token.h (process_input_stack): Declare it static before
14646 declaring it a friend.
14648 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
14650 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14652 * dvi/devdvi/EX: Regenerate.
14654 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14657 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
14659 * eqn/lex.c: In defaults_table, make definition of `dot' call
14660 `dot_def'. Don't explicitly make it roman. Similarily for other
14663 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14665 (for_input::get, for_input::peek): Use this.
14666 (do_for): Add by_is_multiplicative argument.
14667 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14668 Change semantic value of optional_by to be a double plus a flag
14669 saying whethet the by clause is multiplicative.
14671 * eqn/lex.c (get_delimited_text): Remember location of start of
14672 definition. Improve error handling when EOF is encountered.
14674 * lib/font.h: Rename handle_x_command to
14675 handle_unknown_font_command.
14676 * lib/font.c (font::load): Call handle_unknown_font_command for
14677 any unknown command in the font description file. Don't call
14678 handle_x_command. Include the name of the command in the argv.
14679 Improve message for unknown command after kernpairs or charset
14681 * ps/ps.c (ps_font::handle_x_command): Rename to
14682 handle_unknown_font_command. Remove message about `x download'
14683 command. Give error message for wrong number of arguments.
14684 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14685 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14686 handle_unknown_font_command. Give an error message for wrong
14687 number of arguments. Rename design_size to designsize.
14688 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14689 checksum', `designsize' instead of `design_size'.
14691 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
14693 * eqn/*.[chy]: Change underaccent to uaccent.
14695 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
14696 give it the same precedence as ACCENT.
14697 * eqn/other.c (make_underaccent_box): New function.
14698 * eqn/box.h: Declare it.
14699 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14702 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
14704 * pic/pic.y (reset_all): New function. Called in rule for RESET.
14705 (parse_init): Call reset_all.
14706 (define_variable): When defining scale reset only those
14707 pre-defined variables that are scaled.
14708 (defaults_table): Add `scale' as non-scaled value.
14710 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14711 together with the text; allow any number of positioning words;
14712 allow center as a positioning word.
14714 * pic/object.c (output::compute_scale): Get picture maximum height
14715 and width from variables called maxpswid and maxpsht.
14716 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14718 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
14720 * pic/object.c (object_spec::make_text): Multiply textht by number
14723 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14725 (do_sprintf): New function.
14726 (pic.gperf): Add sprintf token.
14727 (text, sprintf): New rules.
14729 * pic/pic.y: `rand()' with no arguments returns a random number
14730 in the range [0,1).
14732 * pic/pic.y: Allow a bare expression to be an attribute: change
14733 precedences to support this. Change optional_ordinal rule to
14734 optional_ordinal_last to avoid reduce/reduce conflict.
14735 * pic/object.c (object_spec::object_spec): Initialize direction.
14737 * pic/pic.y: Implement ^ operator meaning exponentiation.
14739 * troff/node.h: Add default argument to mount_font.
14740 * troff/node.c (font_position): Read an optional third argument
14741 giving the external_name.
14742 (mount_font): Add optional argument giving the external_name.
14743 (mount_font_not_translate): Have additional argument giving
14744 external name. Use this name to load the font. Pass both names
14745 to font_info::font_info.
14746 (font_info::font_info): Have additional argument giving
14748 (class tfont): New member external_name.
14749 (font_info::get_tfont): Use external name to construct tfont_spec.
14751 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
14753 * eqn/lex.c (init_table): Add argument giving device. Define
14754 name of device to be "1".
14755 (do_ifdef): Counts as true if the argument has been defined with
14757 * eqn/main.c (main): Call init_table with device argument. Make
14758 device local to main.
14759 * eqn/eqn.h: Change declaration of init_table. Remove declaration
14762 * pic/lex.c (get_delimited): Allow text to be delimited by
14763 matching {}s. Don't recognize ending delimiter within a string.
14765 * troff/input.c (get_delim_name): New function.
14766 (token::next): Implement \C.
14768 * lib/font.c (font::load): Grok ---. Add an alias for each
14769 character based on its code.
14770 (font::get_code_width): Deleted.
14771 * lib/font.h (class font): Declare font::number_to_index().
14772 Remove declaration of font::get_code_width.
14773 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14774 to indices of named characters.
14775 (font::number_to_index): New function.
14776 * troff/input.c (font::number_to_index): New function.
14777 (get_charinfo_by_number, charinfo::get_number,
14778 charinfo::set_number): New functions.
14779 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14780 (token::process, token::description, token::get_char,
14781 token::add_to_node_list, token::operator==): Handle
14782 TOKEN_NUMBERED_CHAR.
14783 * troff/charinfo.h: Declare get_charinfo_by_number,
14784 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
14786 (charinfo::numbered): New function.
14787 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14788 * troff/env.h (class environment): Remove declaration of ...
14789 * troff/env.c (environment::make_numbered_char_node): Deleted.
14790 * troff/node.c (make_numbered_node): Deleted.
14791 (class numbered_glyph_node): Remove.
14792 (troff_output_file::put_char_width, troff_output_file::put_char):
14793 Handle numbered chars.
14794 (troff_output_file::numbered_char): Removed.
14795 (tfont::get_code_width): Removed.
14796 (make_glyph_node): Don't search special fonts for numbered
14798 * troff/node.h: Remove declaration of make_numbered_node.
14799 * driver/input.c (do_file): Handle N command.
14800 * driver/printer.h: Add declaration of ...
14801 * driver/printer.c (printer::set_numbered_char): New function.
14802 * dvi/tfmtodit.c (main): Generate unnamed entries.
14803 * ps/devps/afmtodit: Likewise.
14804 * xditview/xtotroff.c (MapFont): Likewise.
14805 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14807 * tbl/main.c (process_format): If multiple widths are specified
14808 for a column but all the widths are the same, don't give an error
14811 * tbl/table.c (table::do_row): If the current row is all lines and
14812 the stuff doesn't contains a line, mark the top of the row after
14813 printing stuff before the row. If the current row is not all
14814 lines and the stuff doesn't contain a line, don't unnecessarily
14815 mark the top of the row before printing the stuff.
14817 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
14819 * troff/groff.h: Remove MAX_PATH.
14820 * troff/input.c (open_file): Dynamically allocate space for the
14822 (open_mac_file, process_macro_file): Corresponding changes.
14824 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
14826 * troff/node.h (class output_file): Make copy_file pure. Add
14827 vspace method ifdef COLUMN. Add is_printing method.
14828 * troff/node.c: Add class printing_reg. Add class
14829 real_output_file. Derive other output_file classes from
14830 real_output_file; in these classes rename begin_page to
14831 really_begin_page, print_line to really_print_line, copy_file to
14832 really_copy_file, transparent_char to really_transparent_char.
14833 Move output_file::flush to real_output_file. Add printing member
14834 to class output_file.
14835 * troff/div.h: Remove printing member from top_level_diversion.
14836 Add vspace member function to class diversion ifdef COLUMN. Add
14837 some declarations ifdef COLUMN.
14838 * troff/div.c (top_level_diversion::copy_file,
14839 top_level_diversion::transparent_output,
14840 top_level_diversion::output): Don't test printing member before
14842 * troff/input.c: Handle initial variable_space_request ifdef
14844 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14845 but comment it out.
14847 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
14849 * troff/div.c (diversion::need): Make any space forced. If we
14850 sprung a trap, set truncated_space to minus the distance to the
14851 trap and set needed_space to the amount that was needed.
14852 (top_level_diversion::space): A forced space turns no_space_mode
14854 (class constant_vunits_reg): New class.
14855 (init_div_requests): Implement number registers .trunc and .ne
14856 using constant_vunits_reg.
14857 (class truncated_space_reg): Deleted.
14859 * troff/div.h: Don't have a no_space_mode member in diversion.
14860 Instead have it in top_level_diversion.
14861 * troff/div.c (diversion::diversion): Don't initialize
14863 (top_level_diversion::top_level_diversion): Initialize
14865 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14866 (macro_diversion::output): Don't clear no_space_mode.
14868 * troff/input.c (diverted_space_node::reread): Don't call
14869 environment::do_break. In fill mode, act like a blank line.
14870 (diverted_copy_file_node::reread): Don't call
14871 environment::do_break.
14873 * troff/div.c (blank_line): New function.
14874 * troff/div.h: Declare it.
14875 * troff/input.c (process_input_stack): Call it.
14877 * troff/div.c (truncated_space_reg::get_string): New function.
14878 (init_div_requests): Bind to .trunc.
14879 (space_request, top_level_diversion::space,
14880 top_level_diversion::output, macro_diversion::space,
14881 macro_diversion::output): Update truncated_space.
14882 (macro_diversion::output): Redo calculations when trap sprung.
14883 (macro_diversion::output, macro_diversion::space): No need for
14886 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14887 after truncating post line spacing.
14889 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
14891 * ps/devps/prologue (MF, SF): Make them work even if setfont is
14892 defined as a procedure rather than as an operator.
14894 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
14896 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14898 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
14900 * troff/div.c (top_level_diversion::output): Merge
14901 output_file::print_line and output_file::end_of_line member
14903 * troff/div.h (class output_file):
14904 * troff/node.c (troff_output_file::print_line,
14905 troff_output_file::end_of_line, output_file::end_of_line,
14906 ascii_output_file::print_line, suppress_output_file::print_line):
14907 Corresponding changes.
14909 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
14911 * troff/input.c (token::next): Don't give a warning for `\.'.
14913 * troff/env.c (environment::get_center_lines): New function.
14914 (init_env_requests): Bind number register .ce to it.
14915 * troff/env.h: Declare it.
14916 * tbl/table.c (table::init_output): Define reset macro to restore
14917 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
14919 (table::print): If center option not given, then imply center
14920 option if SAVED_CENTER_REG > 0.
14922 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
14924 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14925 Troff.ps from DOWNLOAD.
14927 * troff/Makefile: Change comment in DEFINES to avoid confusing
14930 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14931 code. Don't try to catch errors with stopped.
14932 (check_line_lengths): New function.
14933 * ps/devps/prologue (EXEC): Deleted.
14934 (EBEGIN, EEND): New procedures.
14936 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
14938 * troff/input.c: Include request.h before node.h.
14939 * troff/node.c: Likewise.
14940 * troff/env.c: Likewise.
14941 * troff/div.c: Likewise.
14942 * troff/node.h (class special_node): Store argument as a macro
14943 rather than a char *.
14944 * troff/node.c (special_node::special_node, special_node::copy):
14946 (special_node::~special_node): Deleted.
14947 (special_node::tprint): Deleted.
14948 (special_node::tprint_start, special_node::tprint_end,
14949 special_node::tprint_char): New functions.
14950 (troff_output_file::special): Deleted.
14951 (troff_output_file::start_special, troff_output_file::end_special,
14952 troff_output_file::special_char): New functions.
14953 * troff/input.c (special_node::tprint): New function.
14954 (do_special): Use macro not char *.
14955 (do_transparent_macro): Deleted.
14956 (token::next): Don't call do_transparent_macro.
14958 * troff/input.c (token::next): Add 'Y' case.
14959 (do_transparent_macro): New function.
14960 * troff/node.c (troff_output_file::special): Handle newlines with
14961 argument using new continuation convention.
14962 * driver/input.c (get_string): Cope with continuation convention.
14963 (do_file): Don't call skip_line after calling get_string(1).
14964 * ps/ps.c (ps_printer::special, ps_printer::do_import,
14965 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
14967 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
14970 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
14972 * troff/input.c (asciify): By default, illegal input characters
14973 should return empty string.
14975 * troff/input.c (copy_file): Handle first page transition like title.
14976 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
14978 * troff/input.c (token::next): Improve error message for EOF after
14980 (input_char_description): New function.
14981 (get_char_for_escape_name): Use input_char_description.
14982 (token::next): Warn about unrecognized escape sequences.
14983 (warning_table): Add WARN_ESCAPE.
14984 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
14987 * troff/token.h: Remove declaration of process_input_stack.
14989 * troff/input.c: Remove declaration of init_hyphen_requests.
14990 * troff/request.h: Correct spelling in declaration of same.
14992 * troff/input.c (token::next): Check whether escape_char is 0.
14994 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
14996 * groff.c (main, usage, help): Implement -P and -L options.
14997 * groff.sh: Likewise.
14999 * troff/input.c (token::next): Use some gotos to avoid code
15002 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
15003 Avoid calling symbol::symbol if name empty.
15005 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
15007 * troff/input.c (init_input_requests): Make \n(.x return the major
15008 version number and \n(.y return the minor version number.
15009 * troff/Makefile: Construct file majorminor.c defining
15010 major_version and minor_version automatically from ../VERSION.
15012 * troff/node.c (class glyph_node): Make operator new and operator
15014 (class ligature_node): Similarily.
15016 * troff/input.c (operator==(const macro &, const macro &)): New
15018 (non_interpreted_node::same): Use this.
15019 (string_iterator::string_iterator): Make macro& argument const.
15021 * troff/input.c (input_iterator::get): New function. Don't make
15022 asciify_macro or class non_interpreted_node friends of class
15024 (non_interpreted_node::interpret): Use input_iterator::get.
15025 (asciify_macro): Likewise.
15027 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
15028 ~non_interpreted_node): Deleted.
15029 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
15032 * troff/symbol.h: Make all symbol member functions const.
15034 * lib/strtol.c: New file.
15035 * lib/Makefile: Add strtol.c.
15036 * Makefile: Define STRTOL as strtol.o to include strtol in
15039 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
15041 * pic/troff.c (troff_output::simple_circle): Divide by scale.
15043 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
15045 * troff/input.c (do_special): Use input_level.
15047 * troff/token.h (TOKEN_BACKSPACE): New token.
15048 (token::backspace): New function.
15049 * troff/input.c (token::description, token::next, token::process):
15050 Grok TOKEN_BACKSPACE.
15051 (do_special): Turn TOKEN_BACKSPACE back into \b.
15053 * troff/token.h (token::leader): New function.
15054 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
15056 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
15058 * troff/input.c (do_special): Use token::description in error
15061 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
15063 * troff/input.c (decode_args): Combine quoted and
15064 quote_input_level variables. Make it a for (;;) loop.
15066 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
15068 * troff/input.c (read_long_escape_name): The test for whether to
15069 expand buffer was off by 1.
15070 (read_string): Similarily.
15072 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
15074 * troff/input.c: Use `const int' rather than `static const int'.
15076 * troff/div.h (diversion::copy_file): Declare as pure virtual.
15077 (macro_diversion::copy_file): New function.
15078 * troff/node.h: New class diverted_copy_file_node.
15079 * troff/node.c: Implement it.
15080 * troff/input.c (copy_file): Use diversion::copy_file. Handle
15081 first page transition by pushing a diverted_copy_file_node.
15082 * troff/input.c (token::next, process_input_stack): Don't handle
15085 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
15087 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
15088 whether space widths need adjusting.
15090 * troff/charinfo.h: Generalize translated_to_space to
15091 special_translation so as to allow translation to \&.
15092 * troff/input.c (translate): Allow translation to \&.
15093 (charinfo::*): Corresponding changes.
15094 * troff/node.c (make_node, node::add_char): Corresponding changes.
15095 * troff/node.h (dummy_node::dummy_node): Allow optional first
15098 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
15099 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
15101 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
15102 TOKEN_REQUEST with an argument of TITLE_REQUEST.
15103 (token::process): Grok that.
15104 * troff/input.c (copy_file): Handle first page transition like
15105 title by pushing a COPY_FILE_REQUEST cookie.
15106 (token::next, process_input_stack): Grok that.
15107 * troff/node.h (output_file::copy_file): Add x and y arguments.
15109 * troff/div.c (top_level_diversion::copy_file): Supply them.
15110 * troff/node.c (troff_output_file::copy_file): Add x and y
15111 arguments; moveto specified position. Invalidate font_position
15112 array after copying file.
15113 (output_file::copy_file): New function.
15114 (suppressed_output_file::copy_file, ascii_output::copy_file):
15116 * troff/input.c (transparent_file): New function.
15117 (init_input_requests): Bind to "trf".
15118 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
15119 (process_input_stack): Likewise.
15121 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
15123 * troff/node.c (init_node_requests): New number registers .kern
15124 pointing to global_kern_mode, and .lg pointing to
15125 global_ligature_mode.
15127 * troff/node.c (ligature): Don't change it if we get a bad
15130 * troff/input.c (do_define_string): Don't strip tabs.
15132 * troff/input.c (asciify_macro): Make the string_iterator auto.
15134 * troff/node.c (init_font_requests): Rename to...
15135 (init_node_requests):
15136 * troff/node.h: Change declaration.
15137 * troff/input.c (main): Change call.
15139 * troff/input.c (node::reread, diverted_space_node::reread): New
15141 (process_input_stack): Call reread rather than
15142 get_diverted_space_node.
15143 * troff/node.c (node::get_diverted_space_node,
15144 diverted_space_node::get_diverted_space_node): Removed.
15145 * troff/node.h: Declare reread methods instead of
15146 get_diverted_space_node methods. Make `n' member private.
15147 * troff/input.c: (token::diverted_space): Removed.
15148 * troff/token.h: Removed declaration.
15151 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
15153 * eqn/script.c (script_box::compute_metrics): Don't let
15154 SUP_RAISE_FORMAT become negative.
15156 * tbl/table.c (table::do_row): Entries that don't end in the
15157 this row shouldn't make the row non-blank.
15159 * tbl/table.c (table::make_columns_equal): Only set the width of
15160 columns which are marked as equal.
15162 * tbl/main.c (process_data): Before issuing excess data error,
15163 if last character was a newline unget it; then get it again after
15164 the error. Also include the contents of the entry in the message.
15166 * groff.c: New file.
15167 * Makefile: Build groff from groff.c. Make it possible to use
15168 either groff.sh or groff.c as groff.
15169 * Makefile.bd: Similarily.
15171 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
15173 * groff.sh: Don't delay expansion of $@ in assignment to files.
15174 Remove occurrences of \".
15176 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
15178 * all Makefiles: Simplify and rearrange.
15180 * Makefile: Handle fmod like malloc.
15181 * lib/Makefile: Similarily.
15182 * lib/fmod.c: Remove #ifdef NEED_FMOD.
15184 * Makefile: Rename OPTIMISE to OPTIMIZE.
15186 * groff.sh: Remove assignment to PATH.
15187 * Makefile: Remove SHPATH variable.
15188 * Makefile.bd: Similarily.
15190 * groff.sh: Add -V option to print the pipeline instead of
15193 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
15195 * lib/font.c: Split off file searching into ...
15196 * lib/fontfile.c: New file.
15198 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
15200 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
15202 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
15203 Also change misleading comment.
15204 (table::do_vspan): Change similarily misleading comment.
15205 * tbl/main.c (process_data): A format row with an explicit `s'
15206 uses up a data line, even if all the other columns are `_' or `='.
15208 * troff/input.c (token::description): Fix description of
15209 TOKEN_DUMMY and TOKEN_EMPTY.
15211 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
15213 * groff.sh: Fix description of -Z in help message.
15215 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
15217 * pic/object.c (object_spec::make_object): Allow negative and zero
15219 * pic/pic.y: Give linethick default value of -1.0.
15220 * pic/troff.c (troff_output::troff_output): Initialize
15221 last_line_thickness to BAD_THICKNESS.
15222 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
15223 (troff_output::line_thickness): Canonicalize negative thicknesses
15224 to RELATIVE_THICKNESS.
15225 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
15226 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
15228 (tex_output::start_picture): Set pen_size to -2.0.
15230 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
15231 0, then use 0 linewidth.
15232 (ps_printer::ps_printer): Initialize line_thickness to -1.
15234 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
15236 * ps/devps/symbolchars: Remove `or'.
15237 * ps/tmac.ps: Implement \(or with .char.
15239 * ps/devps/symbolchars: Move most characters into textmap.
15240 * ps/devps/textmap: Add names for troff bracket characters. Remove
15243 * ps/devps/TSymbol.ps: Removed.
15244 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
15245 * ps/tmac.ps: Do with .char what TSymbol did.
15246 * ps/devps/download: Remove TSymbol.
15248 * ps/devps/T: Removed.
15249 * ps/devps/Troff.ps: Removed.
15250 * ps/devps/Troff.afm: Removed.
15251 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
15252 * ps/devps/download: Remove Troff.
15253 * ps/devps/FontMakefile: Remove T target.
15254 * ps/devps/DESC-A4: Remove T from font list.
15255 * ps/devps/DESC-letter: Likewise.
15257 * troff/input.c (macro_to_node): Rename to ...
15258 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
15259 character's definition while processing it.
15260 * troff/node.c (node::add_char, make_node): Change calls to
15261 macro_to_node accordingly.
15263 * troff/input.c (token::next): Translate \_ to \(ul.
15265 * tty/devascii/R.proto: Add `|'.
15266 * tty/devlatin1/R.proto: Likewise.
15268 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
15270 * man: Put the version number in all the man pages.
15272 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
15274 * Makefile.bd: New file.
15275 * README.bd: New file.
15277 * VERSION: New file.
15278 * lib/version.c: Removed.
15279 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15282 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15283 environment variable.
15285 * all Makefiles: Split install target into install.bin for
15286 binaries, and install.nobin for everything else.
15287 * Makefile: Add bindist target.
15289 * man/afmtodit.man: New file.
15290 * man/Makefile: Add afmtodit.n to MAN1PAGES.
15291 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15293 * ps/Makefile: Pass BINDIR to make install in devps.
15295 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15296 the space character.
15298 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
15300 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
15302 * ps/ps.c: Redo font downloading.
15303 * ps/devps/download: New file.
15304 * ps/devps/Makefile: Add download to DEVICEFILES.
15305 * ps/devps/afmtodit: Remove -d option.
15306 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
15307 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15308 * ps/devps/zapfdr.ps: Likewise.
15309 * ps/devps/TSymbol.ps: Likewise.
15311 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
15313 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15315 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
15317 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15318 then strip the first line if it starts with %.
15319 * Makefile: Add a comment about this.
15321 * man/tfmtodit.man: New file.
15322 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15323 * dvi/Makefile: Install tfmtodit in BINDIR.
15325 * dvi/tfmtodit.c (usage): Mention -v option.
15327 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
15329 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15330 * troff/node.c (troff_output_file::transparent_char): Don't call
15333 * eqn: Add check_tabs method to most box classes.
15334 * eqn/box.c (box::top_level): Call check_tabs.
15336 * eqn/script.c (script_box::output): Use \Z.
15337 * eqn/limit.c (limit_box::output): Use \Z.
15339 * eqn/box.c (box::top_level): Use itoa.
15341 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
15343 * dvi/tmac.dvi: Add font translations for CR, C, TT.
15344 * dvi/devdvi/Makefile: Don't make links to CW.
15346 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15348 * xditview/tmac.X: Likewise.
15350 * troff/node.c: Add font translation feature.
15351 (get_font_translation): New function.
15352 (symbol_fontno): Translate the font name.
15353 (mount_font_no_translate): Rename to mount_font to this.
15354 (mount_font): New function.
15355 (font_family::make_definite): Call mount_font_no_translate instead
15357 (mount_style): Translate the font name.
15358 (font_translate): New function.
15359 (init_font_requests): Bind "ftr" to font_translate.
15361 * ps/devps/prologue (SN): New procedure that rounds a position to
15362 the nearest (pixel + (.25,.25)).
15363 (DL): Use SN to round endpoints.
15365 * lib/version.c: Changed version to 0.5.
15367 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
15369 * Makefile: Move definition of PAGE to the very beginning, so that
15370 people are less likely to miss it.
15372 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
15374 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15376 * troff/env.c (environment::choose_breakpoint): Make `can't find
15377 breakpoint' error a warning of type WARN_BREAK. Change message to
15378 `can't break line'.
15379 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15381 * troff/input.c: Add WARN_BREAK to warning_table. Include
15382 WARN_BREAK in DEFAULT_WARNING_MASK.
15384 * tty/tmac.tty: Add definition of \(+-.
15386 * groff.sh: Remove `--' option to set command.
15388 * dvi/devdvi/texsy.map: Remove duplicate md entry.
15390 * ps/devps/eqnchar: Better definition of cdot using md.
15391 * dvi/devdvi/eqnchar: Likewise.
15392 * xditview/devX100/eqnchar: Likewise.
15393 * xditview/devX75/eqnchar: Likewise.
15394 * eqn/lex.c: Add definition of cdot.
15396 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
15398 * troff/input.c (get_optional_char): New function.
15399 * troff/input.c (set_page_character): Use get_optional_char(),
15400 rather than has_arg() and tok.get_char(1).
15401 * troff/env.c (tab_character, leader_character, hyphen_char,
15402 field_characters): Likewise.
15403 (margin_character): Likewise. Also always delete the
15404 margin_character_node.
15406 * troff/input.c (token::get_char): Use token::description.
15408 * troff/input.c (has_arg): Don't skip over tab and \}.
15409 * troff/number.c (start_number): Give a warning if the number
15410 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15412 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
15414 * troff/input.c (empty_name_warning, non_empty_name_warning): New
15416 (get_name, get_long_name): Use these. Rename `warn' argument to
15419 * troff/node.c (get_fontno): Test that the symbol is not null.
15421 * troff/input.c (token::description): New function.
15422 * troff/number.c (parse_term): Use token::description in `numeric
15423 expression expected' message.
15424 * troff/groff.h: Add WARN_MISSING.
15425 * troff/number.c (start_number): New function.
15426 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15427 get_incr_number): Use start_number().
15428 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15430 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15431 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15433 * troff/input.c (token::get_char): Use WARN_MISSING.
15434 * troff/input.c (token::delimiter): Use token::description.
15435 * troff/env.c (environment_switch): Back out Aug 3 change.
15436 * troff/input.c (has_arg): Skip over \}s and tabs but give a
15438 * troff/token.h (token::tab): New function.
15439 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15440 * troff/reg.c (alter_format): Likewise.
15441 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15443 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
15445 * troff (most files): Redo warnings. Divide warnings into various
15446 categories; warning() has an additional first argument indicating
15447 the category it falls into.
15448 * troff/input.c (main): -w now takes an argument. New option -W.
15449 (enable_warning, disable_warning): New functions.
15451 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15452 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15454 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
15456 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15457 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15458 * xditview/devX75/eqnchar: Likewise.
15459 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15461 * eqn/other.c: When bar or over applies to a single character
15462 don't produce an overline_box or an underline_box. Instead produce
15463 an accent_box or an underaccent_box, with the accent a line
15464 whose width is accent_width. New classes underaccent_box,
15465 overline_char_box and underline_char_box.
15466 * eqn/box.h: Move overline_box, underline_box, accent_box class
15467 declarations into eqn/other.c. Add declarations of
15468 make_underline_box, make_overline_box, make_accent_box.
15469 * eqn/eqn.y: Call make_overline_box, make_underline_box
15470 make_accent_box instead of constructors.
15471 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15473 * eqn/other.c: Add accent_box::~accent_box.
15474 * eqn/box.h: Declare it.
15476 * groff.sh: With -Tps, use eqn -D.
15478 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15480 (underline_box::output): Similarily.
15481 (accent_box::output): Use \Z.
15483 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15486 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
15488 * troff/div.c (top_level_diversion::transparent_output(unsigned
15489 char)): Use asciify.
15490 * troff/input.c (asciify): Don't make it static.
15491 * troff/token.h (asciify): Declare it.
15493 * troff/input.c (get_name, get_long_name, token::get_char,
15494 token::delimiter): Add an extra default argument which says
15495 whether a warning should be printed.
15496 * troff: Pass a non-zero argument to one of these rather than
15497 printing a warning directly.
15499 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
15501 * troff: Consistently use symbol::is_null.
15503 * troff/dictionary.h: Move some inline functions into
15506 * troff/request.h: Move inline functions into input.c.
15507 (request_or_macro::invoke): Make it pure.
15509 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15510 * troff/input.c (init_input_requests): Use class constant_int_reg.
15511 (class compatible_reg): Deleted.
15512 * troff/div.c (init_div_requests): Use class constant_int_reg.
15513 (class last_post_line_extra_space_reg): Deleted.
15515 * troff/env.c (tab_character): Don't change the tab character if
15516 we get an invalid argument.
15517 (hyphen_char): Similarily.
15519 * troff/reg.c (alter_format): Check that nm is not null.
15521 * Makefile, groff.sh: Make it possible to customize the commands
15522 used for printing PostScript and dvi files. Also make it possible
15523 to customize the path used by groff.sh.
15525 * eqn/eqn.y: Make `left' right associative.
15527 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
15529 * pic/pic.h: Added definition of M_SQRT2 for those systems that
15532 * pic/pic.h: Removed definition of INT_MAX.
15534 * troff/node.c (italic_corrected_node::vertical_extent): Omit
15537 * troff/input.c (token::next): Handle \R like \n.
15539 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
15541 * ps/tmac.pc (PSPIC): Simplify.
15543 * troff/env.c (tab_stops::to_string):
15544 * pic/pic.y (object_type_name):
15545 * pic/troff.c (simple_output::line):
15546 * pic/tex.c (tex_output::spline):
15547 * pic/object.c (object_spec::make_object):
15548 * tbl/main.c (process_data): Add cases to switch statements to
15549 avoid cfront warnings. (Some of these are spurious, since the
15550 switch already has a default case.)
15552 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
15553 `ps-'. Don't test systat; instead check number of arguments to
15556 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
15558 * macros/tmac.e: Do not decrease the page offset by 0.5i.
15560 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15561 Unlink the file as soon as we have opened it, so that we don't
15562 have to bother with signal handlers.
15563 (handler): Deleted.
15564 (fatal_error_exit): Deleted.
15565 (main): Don't call signal.
15567 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15569 * dvi/devdvi/Makefile: Use the -k option with S and MI.
15571 * pic/pic.y: If there is a label, or an nth construction before
15572 the first `.' in the argument to `with', ignore it and generate a
15574 * pic/lex.c (lex_warning): New function.
15576 * tbl/table.c (table::init_output): In section keep and release
15577 macro, use 0 indent when diverting and the correct indent when
15580 * troff/input.c (interpolate_number_format): Do not interpolate
15581 anything if the number register is not defined.
15583 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15585 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
15587 * ps/devps/prologue (PICTURE): Set components of graphics state to
15588 their default values.
15590 * ps/devps/text.enc: Add trademark
15591 * ps/devps/textmap: Add names for club, spade, heart, diamond,
15592 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15593 * ps/devps/symbolchars: Add names for summation and product.
15595 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15596 suchthat. Add pp. Add upper-case letters.
15598 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15599 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15602 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15603 rA (right angle bracket) to ra. Introduce names for double-headed
15604 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15605 * ps/devps/textmap: Likewise for ps device.
15606 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15607 * tty/devascii/R.proto: Rename lA to la and rA to ra.
15608 * tty/devascii/R.proto: Likewise.
15609 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15611 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15613 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15615 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15618 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
15620 * troff/div.c (when_request): Use symbol::is_null rather than
15621 has_arg to determine whether we have an argument.
15622 (change_trap): Remove the trap if we get an invalid number. Give
15623 an error if we don't get at least the macro name.
15624 (diversion_trap): Remove trap if we get an invalid name or number.
15626 * troff/env.c (environment_switch): Pop if we get an invalid
15627 symbol or numeric expression.
15629 * troff/input.c (do_define_macro): If EOF is encoutered while
15630 defining the macro, do tok.next() before returning.
15632 * troff/token.h (has_arg): Move definition from here, to ...
15633 * troff/input.c (has_arg): ... here
15635 * troff/env.c (space_size): Do nothing if we get an invalid argument.
15636 * troff/input.c (shift): Likewise.
15638 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
15641 * pic/troff.c (troff_output::start_picture): Comment out calls to
15644 * eqn/main.c (do_file): Subtract 1 from current_lineno if
15645 interpret_lf_args succeeds.
15647 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15648 \\. This avoids problems with \$N.
15650 * groff.sh: Pass -C to preprocessors.
15652 * lib/lf.c (interpret_lf_args): Be more flexible.
15654 * tbl/main.c (main): Add -C option.
15655 (table_input::get): Do not recognize TE if followed by character
15656 other than a space or newline unless -C option given.
15657 (process_input_file): Likewise for lf, TS.
15658 (process_data): Likewise for lf in text blocks.
15660 * eqn/main.c (main): Add -C option.
15661 (do_file): Don't recognize EQ, EN or lf if followed by character
15662 other than space or newline unless -C option given.
15663 * eqn/lex.c (file_input::read_line): Similarily.
15664 * eqn/eqn.h: Declare compatible_flag.
15666 * etc/soelim.c (main): Add -C option.
15667 (interpret_lf_args): Use version in libgroff.
15670 * pic/main.c (main): Add -C option, which sets compatible_flag.
15671 (top_input::get), (top_input::peek): If -C option not given,
15672 do not recognize .PS/.PE/.PF/.lf if followed by a character
15673 other than space or newline.
15674 * pic/lex.c (file_input::read_line): Similarily.
15675 * pic/pic.h: Add declaration of compatible_flag.
15677 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
15679 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15681 * troff/node.c, troff/node.h: Add `asciify' methods to classes
15682 derived from node. New class space_char_hmotion_node.
15683 * troff/input.c (asciify_macro): New function.
15684 * troff/input.c (init_input_requests): New request `asciify' bound
15686 * macros/mm.diff: New file.
15687 * Makefile: In install.mm target use `patch' to apply
15690 * troff/input.c (macro::print_size): Just print the size in bytes.
15692 * troff/div.c (return_request): Correct the argument
15695 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
15697 * troff/node.h (class composite_node): Add sz member.
15698 * troff/node.c (composite_node::size): Return sz.
15699 * troff/input.c (macro_to_node): Use the initial size in the
15700 environment as the size of the composite_node.
15702 * troff/node.c (node::zero_width_tprint): Provide a reasonable
15705 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
15707 * troff/div.c (change_trap): If we get a bad number expression,
15710 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
15712 * lib/matherr.c (matherr): Define this only if math.h defines
15715 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
15717 * troff/div.c (macro_diversion::distance_to_next_trap): If there
15718 no diversion trap return vunits(INT_MAX - vresolution).
15720 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
15722 * troff/input.c (do_zero_width): New implementation that doesn't
15723 use a temporary environment. Use instead:
15724 (token::add_to_node_list): New function.
15725 * troff/env.c (environment::get_prev_char_height),
15726 (environment::get_prev_char_height),
15727 (environment::get_prev_char_skew): New functions.
15728 (environment::get_prev_char): New function.
15729 (environment::get_prev_char_width): Change to use get_prev_char.
15730 (init_env_request): Implement new registers .cht, .cdp, .csk.
15731 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15732 \Z being processed in a separate environment.
15734 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
15736 * tbl/table.c: Removed TABLE_BOTTOM_REG.
15738 * tbl/table.c (table::init_output): In the section release macro,
15739 give a warning message if the section won't fit on one page.
15741 * tbl/table.c (table::do_top): Emit table keep only if table is
15743 (table::do_bottom): Likewise for table release.
15744 (table::table), (table::add_vertical_rule): Remove reference to
15746 * tbl/table.h: Remove keep member.
15748 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15749 SECTION_RELEASE_MACRO, if there's not enough space before the next
15750 trap to output the diversion, call T# ourselves, set
15751 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15752 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
15753 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
15754 vertical position and return to it before turning traps on again.
15756 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
15758 * troff/node.c, troff/node.h: In classes derived from node,
15759 replace prev_char_width method by last_char_node method.
15760 * troff/env.c (environment::get_prev_char_width): Use
15761 node::last_char_node rather than node::get_prev_char_width.
15763 * Makefile: Added comment about -fno-inline on 68030-based
15766 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15767 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15768 expressions using sizeof to int.
15769 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15771 * macros/tmac.e (TS): Don't move @f back past the current
15774 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
15776 * ps/ps.c (main): Buffer stderr.
15777 * dvi/dvi.c (main): Likewise.
15778 * tty/tty.c (main): Likewise.
15780 * ps/ps.c (ps_printer::do_import): Improve error handling.
15782 * troff/input.c (abort_request): Use asciify.
15784 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15785 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15786 type of first argument int rather than char. This works around a
15787 bug on the 68030 based Apollo using g++ 1.37.1.
15789 * tbl/table.h (class table): Add `keep' member.
15790 * tbl/table.c (table::table): Initialize `keep'.
15791 (table::add_vertical_rule): Set `keep' to 1.
15792 (table::do_top): Only emit table keep macro is `keep' is non-zero.
15793 (table::do_bottom): Likewise for table release macro.
15794 (table::do_row): Emit section keep macro even if the row is 0.
15796 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
15798 * macros/tmac.e (@C): Preserve the font family across the change
15801 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
15803 * lib/font.c: Initialize font::hor and font::vert to 1.
15804 (font::load_desc): Check the values of font::hor and font::vert.
15806 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15807 be included in a C compilation.
15808 (iftoa): Use INT_DIGITS. Include lib.h.
15810 (as_string): Likewise.
15811 * tbl/table.c: Removed definition of INT_DIGITS.
15812 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15813 * troff/input.c (input_input_requests): Likewise.
15814 * ps/ps.c (make_encoding_name): Likewise.
15815 (ps_printer::set_style): Likewise.
15816 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15818 * tty/devascii/R.proto: Map fm onto '.
15819 * tty/devlatin1/R.proto: Likewise.
15821 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
15823 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15824 argument to \w is at a different input level.
15826 * tbl/table.c (table::init_output): Define a new macro
15827 REPEATED_VPT_MACRO, like vpt but if in a diversion also
15828 transparently outputs itself.
15829 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15831 (table::do_row): Likewise.
15833 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15834 TRANSPARENT_STRING_NAME.
15836 * tbl/table.c (table::init_output): In the table release macro
15837 print an error message and don't produce any output if after
15838 issuing the need request the table still will not fit. Also
15839 remove the diversion after bringing it back.
15841 * tbl/table.c (table::init_output): Define a new macro
15842 REPEATED_MARK_MACRO, like mk but if in a diversion also
15843 transparently outputs itself.
15844 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15845 is necessary because .TH might not call .T#.
15846 (table::do_top): Likewise TOP_REG.
15847 (table::define_bottom_macro): If TOP_REG is no longer valid, use
15848 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15849 table header might contain just the two top rules.
15851 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
15853 * troff/div.c: Implement new request `ptr' to print all traps.
15855 * troff/env.c (init_env_requests): Implement `.tabs' reg with
15856 init_string_env_reg.
15857 * troff/env.c (class tab_reg): Deleted.
15859 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
15861 * troff/div.c: New number register .pn returns the number of the
15862 next page as set by the pn request.
15864 * macros/tmac.an: Redid headers and footers. Number each manual
15865 entry starting from 1 unless \nC is > 0, like Sun. Added an
15866 optional 5th argument to .TH which specifies the manual name and
15867 appears in the center of the header. Understand the X, P and D
15868 registers like Sun.
15870 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
15872 * troff/env.c (init_env_requests): New number register `.lt' to
15873 return the title length.
15875 * troff/node.h (class transparent_dummy_node): New class.
15876 * troff/node.c (class transparent_dummy_node): Provide member
15878 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15881 * troff/input.c (token::next): New escape sequence \).
15882 * troff/input.c (get_copy): Recognize \) in copy mode.
15884 * troff/input.c (input_stack::clear): New function.
15885 * troff/input.c (exit_request): Use input_stack::clear.
15887 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15888 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15890 * troff/env.c: Move set_page_character to input.c. Move
15891 page_character to input.c also.
15892 * troff/env.c (title): Split off the reading of the parts of the
15893 title into read_title_parts.
15894 * troff/input.c (read_title_parts): New function. Check the
15895 input_level when testing whether a token matches the delimiter.
15897 * troff/input.c (exit_request): New function.
15898 * troff/input.c (init_input_requests): Bind ex request to
15899 exit_request rather than exit_groff.
15901 * troff/input.c (exit_groff): Call tok.next() before
15902 process_input_stack().
15904 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
15906 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15907 * troff/env.h: ditto.
15908 * troff/input.c: ditto.
15910 * troff/env.c (environment::is_empty): Test pending_lines.
15912 * troff/env.c (environment::have_pending_lines): Removed.
15914 * troff/input.c: Add request to flush pending lines from the
15917 * troff/env.c, troff/env.h: Add automatic widow control feature.
15919 * troff/input.c (exit_groff): Do process_input_stack() after
15920 do_break() but before setting exit_flag to 2.
15922 * troff/input.c: Remove FLUSH_PENDING_LINES and
15923 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15924 environment after END_TRAP token seen, but only if there aren't
15925 any more traps still unfinished.
15926 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15928 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
15930 * troff/env.c: Rename the `retain_size' member of class
15931 pending_output_line to `no_fill'.
15933 * troff/env.c (title): When the line is output, make the
15934 retain_size argument !fill.
15936 * troff/node.h: Add `hyphenated' member to struct breakpoint.
15937 * troff/node.c (space_node::get_breakpoints),
15938 (dbreak_node::get_breakpoints): Fill this in.
15939 * troff/env.c: Allow specification of maximum number of
15940 consecutive hyphenated lines.
15942 * troff/env.c (environment::is_empty): Add test for !current_tab.
15944 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
15946 * troff/env.c (environment::hyphenate_line): Don't completely give
15947 up if the word is not to be hyphenated; continue so that breaks
15948 can be made at break_char_node's.
15950 * lib/lib.h: Only define INT_MAX if it's not already defined;
15951 undef INT_MIN if it's already defined.
15953 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15955 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15956 This works around a bug in AT&T C++ 2.0 used with an ANSI C
15959 * macros/tmac.an (an-header): Set no-space mode.
15961 * macros/tmac.an (TH): Start a new page if necessary.
15963 * Started using ChangeLog at version 0.4.
15966 version-control: never